Class: Sentry::Sidekiq::SentryContextClientMiddleware
- Inherits:
-
Object
- Object
- Sentry::Sidekiq::SentryContextClientMiddleware
- Defined in:
- lib/sentry/sidekiq/sentry_context_middleware.rb
Instance Method Summary collapse
Instance Method Details
#call(_worker_class, job, _queue, _redis_pool) ⇒ Object
66 67 68 69 70 71 72 73 |
# File 'lib/sentry/sidekiq/sentry_context_middleware.rb', line 66 def call(_worker_class, job, _queue, _redis_pool) return yield unless Sentry.initialized? user = Sentry.get_current_scope.user job["sentry_user"] = user unless user.empty? job["trace_propagation_headers"] ||= Sentry.get_trace_propagation_headers yield end |