class ElasticAPM::Span
def initialize(
def initialize( name, type = nil, transaction: nil, parent: nil, context: nil, stacktrace_builder: nil ) @name = name @type = type || DEFAULT_TYPE @id = SecureRandom.hex(8) self.transaction = transaction self.parent = parent @context = context @stacktrace_builder = stacktrace_builder end