lib/mnemosyne/trace.rb in mnemosyne-ruby-1.0.1 vs lib/mnemosyne/trace.rb in mnemosyne-ruby-1.1.0.rc1

- old
+ new

@@ -1,12 +1,12 @@ # frozen_string_literal: true module Mnemosyne class Trace < Span - attr_reader :uuid, :transaction, :origin + attr_reader :uuid, :transaction, :origin, :span - def initialize(instrumenter, name, transaction: nil, origin: nil) - super name + def initialize(instrumenter, name, transaction: nil, origin: nil, **kwargs) + super(name, **kwargs) @uuid = ::SecureRandom.uuid @span = [] @origin = origin