Module: Datadog::OpenTracer::Propagator Abstract

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

Overview

This module is abstract.

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)


21
22
23
# File 'lib/datadog/opentracer/propagator.rb', line 21

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)


13
14
15
# File 'lib/datadog/opentracer/propagator.rb', line 13

def inject(span_context, carrier)
  raise NotImplementedError
end