Class: Highlight::Tracing::BaggageSpanProcessor

Inherits:
OpenTelemetry::SDK::Trace::SpanProcessor
  • Object
show all
Defined in:
lib/highlight.rb

Instance Method Summary collapse

Instance Method Details

#on_start(span, parent_context) ⇒ Object



16
17
18
# File 'lib/highlight.rb', line 16

def on_start(span, parent_context)
  span.add_attributes(OpenTelemetry::Baggage.values(context: parent_context))
end