module Sentry
def init(&block)
-
(void)
-
Other tags:
- Yieldparam: config -
def init(&block) config = Configuration.new yield(config) if block_given? config.detect_release apply_patches(config) client = Client.new(config) scope = Scope.new(max_breadcrumbs: config.max_breadcrumbs) hub = Hub.new(client, scope) Thread.current.thread_variable_set(THREAD_LOCAL, hub) @main_hub = hub @background_worker = Sentry::BackgroundWorker.new(config) @session_flusher = if config.auto_session_tracking Sentry::SessionFlusher.new(config, client) else nil end if config.include_local_variables exception_locals_tp.enable end at_exit { close } end