File: span_context.rb

package info (click to toggle)
ruby-opentracing 0.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 160 kB
  • sloc: ruby: 158; makefile: 4; sh: 4
file content (14 lines) | stat: -rw-r--r-- 381 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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