Module: Datadog::OpenTracer::Propagator

Included in:
BinaryPropagator, RackPropagator, TextMapPropagator
Defined in:
lib/ddtrace/opentracer/propagator.rb

Overview

OpenTracing propagator for Datadog::OpenTracer::Tracer

Instance Method Summary collapse

Instance Method Details

#extract(carrier) ⇒ SpanContext?

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

Parameters:

  • carrier (Carrier)

    A carrier object of the type dictated by the specified ‘format`

Returns:

  • (SpanContext, nil)

    the extracted SpanContext or nil if none could be found

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/ddtrace/opentracer/propagator.rb', line 17

def extract(carrier)
  raise NotImplementedError
end

#inject(span_context, carrier) ⇒ Object

Inject a SpanContext into the given carrier

Parameters:

  • span_context (SpanContext)
  • carrier (Carrier)

    A carrier object of the type dictated by the specified ‘format`

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/ddtrace/opentracer/propagator.rb', line 9

def inject(span_context, carrier)
  raise NotImplementedError
end