Module: Datadog::OpenTracer::BinaryPropagator

Extended by:
Propagator
Defined in:
lib/ddtrace/opentracer/binary_propagator.rb

Overview

OpenTracing propagator for Datadog::OpenTracer::Tracer

Class Method Summary collapse

Methods included from Propagator

extract, inject

Class Method Details

.extract(carrier) ⇒ SpanContext?

Extract a SpanContext in Binary format from the given carrier.

Parameters:

  • carrier (Carrier)

    A carrier object of Binary type

Returns:

  • (SpanContext, nil)

    the extracted SpanContext or nil if none could be found



19
20
21
# File 'lib/ddtrace/opentracer/binary_propagator.rb', line 19

def self.extract(carrier)
  SpanContext::NOOP_INSTANCE
end

.inject(span_context, carrier) ⇒ Object

Inject a SpanContext into the given carrier

Parameters:



11
12
13
# File 'lib/ddtrace/opentracer/binary_propagator.rb', line 11

def self.inject(span_context, carrier)
  nil
end