debian-mirror-gitlab/debian/gems-compat/opentracing-0.4.3/lib/opentracing/span_context.rb
2019-03-14 13:13:30 +05:30

14 lines
381 B
Ruby

module OpenTracing
# SpanContext holds the data for a span that gets inherited to child spans
class SpanContext
NOOP_INSTANCE = SpanContext.new.freeze
attr_reader :baggage
# Create a new SpanContext
# @param id the ID of the Context
# @param trace_id the ID of the current trace
# @param baggage baggage
def initialize(baggage: {}); end
end
end