Module: AsyncTaskOTELPatch
- Defined in:
- lib/stack-service-base/open_telemetry.rb
Instance Method Summary collapse
Instance Method Details
#initialize(*pos, **kw, &block) ⇒ Object
61 62 63 64 65 66 67 68 69 70 |
# File 'lib/stack-service-base/open_telemetry.rb', line 61 def initialize(*pos, **kw, &block) ctx_ = OpenTelemetry::Context.current block_otl = ->(t, *arguments){ OpenTelemetry::Context.with_current(ctx_) do block.call t, *arguments end } super(*pos, **kw, &block_otl) end |