class ElasticAPM::Span::Context
@api private
Attributes
db[R]
destination[RW]
http[R]
labels[R]
links[R]
message[R]
service[RW]
sync[R]
Public Class Methods
new( db: nil, destination: nil, http: nil, labels: {}, sync: nil, message: nil, service: nil, links: nil )
click to toggle source
# File lib/elastic_apm/span/context.rb, line 24 def initialize( db: nil, destination: nil, http: nil, labels: {}, sync: nil, message: nil, service: nil, links: 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 @service = case service when Service then service when Hash then Service.new(**service) end @links = case links when Links then links when Array then Links.new(links) end end