Module: Datadog::OpenTracer::BinaryPropagator

Extended by:
Propagator
Defined in:
lib/datadog/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



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

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

.inject(span_context, carrier) ⇒ Object

Inject a SpanContext into the given carrier

Parameters:



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

def self.inject(span_context, carrier)
  nil
end