Sha256: 4a85fb251bcc419fb34703b17ab449e21e6e90434167be38bd843668abcc1bc3

Contents?: true

Size: 578 Bytes

Versions: 3

Compression:

Stored size: 578 Bytes

Contents

module ZipkinTracer
  class TraceContainer
    attr_reader :trace_id, :parent_id, :span_id, :sampled, :flags
    class << self
      attr_accessor :current

      def setup_mock(trace_id:, parent_id:, span_id:, sampled:, flags:)
        @current = new(trace_id: trace_id, parent_id: parent_id, span_id: span_id, sampled: sampled, flags: flags)
      end
    end

    def initialize(trace_id:, parent_id:, span_id:, sampled:, flags:)
      @trace_id = trace_id
      @parent_id = parent_id
      @span_id = span_id
      @sampled = sampled
      @flags = flags
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lhc-6.6.0.zipkin.pre.03 spec/support/zipkin.rb
lhc-6.6.0.zipkin.pre.02 spec/support/zipkin.rb
lhc-6.6.0.zipkin.pre.01 spec/support/zipkin.rb