module Datadog::OpenTracer::Propagator

OpenTracing propagator for Datadog::OpenTracer::Tracer

Public Instance Methods

extract(carrier) click to toggle source

Extract a SpanContext in the given format from the given carrier.

@param carrier [Carrier] A carrier object of the type dictated by the specified `format` @return [SpanContext, nil] the extracted SpanContext or nil if none could be found

# File lib/ddtrace/opentracer/propagator.rb, line 18
def extract(carrier)
  raise NotImplementedError
end
inject(span_context, carrier) click to toggle source

Inject a SpanContext into the given carrier

@param span_context [SpanContext] @param carrier [Carrier] A carrier object of the type dictated by the specified `format`

# File lib/ddtrace/opentracer/propagator.rb, line 10
def inject(span_context, carrier)
  raise NotImplementedError
end