Method: Sentry::Configuration#background_worker_threads

Defined in:
lib/sentry/configuration.rb

#background_worker_threadsInteger

to send events in a non-blocking way, sentry-ruby has its own background worker by default, the worker holds a thread pool that has [the number of processors] threads but you can configure it with this configuration option E.g.: config.background_worker_threads = 5

if you want to send events synchronously, set the value to 0 E.g.: config.background_worker_threads = 0

Returns:

  • (Integer)
[View source]

46
47
48
# File 'lib/sentry/configuration.rb', line 46

def background_worker_threads
  @background_worker_threads
end