Sha256: fdd8cd78f6c51fdf80bcb800d126fe87bc9a96563b461ee49a6aa2b60959bf25
Contents?: true
Size: 578 Bytes
Versions: 63
Compression:
Stored size: 578 Bytes
Contents
module Datadog module OpenTracer # Creates new Datadog::OpenTracer::SpanContext module SpanContextFactory module_function def build(datadog_context:, baggage: {}) SpanContext.new( datadog_context: datadog_context, baggage: baggage.dup ) end def clone(span_context:, baggage: {}) SpanContext.new( datadog_context: span_context.datadog_context, # Merge baggage from previous SpanContext baggage: span_context.baggage.merge(baggage) ) end end end end
Version data entries
63 entries across 63 versions & 2 rubygems