class ElasticAPM::Span::Context
@api private
def initialize(
def initialize( db: nil, destination: nil, http: nil, labels: {}, sync: nil, message: 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 @message = case message when Message then message when Hash then Message.new(**message) end @labels = labels end