Sha256: fb909033d97e1560f46e5e54b8d317bf8626b32d65c78715a5bc346ac7365760

Contents?: true

Size: 776 Bytes

Versions: 5

Compression:

Stored size: 776 Bytes

Contents

# typed: false
module Datadog
  module OpenTracer
    # OpenTracing propagator for Datadog::OpenTracer::Tracer
    module Propagator
      # 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`
      def inject(span_context, carrier)
        raise NotImplementedError
      end

      # 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
      def extract(carrier)
        raise NotImplementedError
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/ddtrace/opentracer/propagator.rb
ddtrace-0.54.1 lib/ddtrace/opentracer/propagator.rb
ddtrace-0.54.0 lib/ddtrace/opentracer/propagator.rb
ddtrace-0.53.0 lib/ddtrace/opentracer/propagator.rb
ddtrace-0.52.0 lib/ddtrace/opentracer/propagator.rb