class ElasticAPM::Transaction

def initialize(

rubocop:disable Metrics/ParameterLists
def initialize(
  name = nil,
  type = nil,
  sampled: true,
  context: nil,
  tags: nil,
  trace_context: nil
)
  @name = name
  @type = type || DEFAULT_TYPE
  @sampled = sampled
  @context = context || Context.new # TODO: Lazy generate this?
  Util.reverse_merge!(@context.tags, tags) if tags
  @trace_context = trace_context || TraceContext.new(recorded: sampled)
  @started_spans = 0
  @dropped_spans = 0
  @notifications = [] # for AS::Notifications
end