Class: OpenTelemetry::Instrumentation::Que::Instrumentation
- Inherits:
-
Base
- Object
- Base
- OpenTelemetry::Instrumentation::Que::Instrumentation
- Defined in:
- lib/opentelemetry/instrumentation/que/instrumentation.rb
Overview
The Instrumentation class contains logic to detect and install the Que instrumentation
Constant Summary collapse
- MINIMUM_VERSION =
Gem::Version.new('1.2.0')
Instance Method Summary collapse
-
#propagation_style ⇒ Object
Supported configuration keys for the install config hash:.
Instance Method Details
#propagation_style ⇒ Object
Supported configuration keys for the install config hash:
propagation_style: controls how the job's execution is traced and related to the trace where the job was enqueued. Can be one of:
- :link (default) - the job will be executed in a separate trace. The initial span of the execution trace will be linked to the span that enqueued the job, via a Span Link.
- :child - the job will be executed in the same logical trace, as a direct child of the span that enqueued the job.
- :none - the job's execution will not be explicitly linked to the span that enqueued the job. trace_poller: controls whether Que Poller is traced or not.
Note that in all cases, we will store Que's Job ID as the
messaging.message_id
attribute, so out-of-band correlation may
still be possible depending on your backend system.
48 |
# File 'lib/opentelemetry/instrumentation/que/instrumentation.rb', line 48 option :propagation_style, default: :link, validate: %i[link child none] |