class Atatus::Span::Context

@api private

Attributes

db[R]
destination[R]
http[R]
labels[R]
sync[R]

Public Class Methods

new( db: nil, destination: nil, http: nil, labels: {}, sync: nil ) click to toggle source
# File lib/atatus/span/context.rb, line 24
def initialize(
  db: nil,
  destination: nil,
  http: nil,
  labels: {},
  sync: nil
)
  @sync = sync
  @db = db && Db.new(**db)
  @http = http && Http.new(**http)
  @destination =
    case destination
    when Destination then destination
    when Hash then Destination.new(**destination)
    end
  @labels = labels
end