lib/elastic_apm/trace_context/traceparent.rb in elastic-apm-3.12.1 vs lib/elastic_apm/trace_context/traceparent.rb in elastic-apm-3.13.0
- old
+ new
@@ -25,11 +25,10 @@
HEX_REGEX = /[^[:xdigit:]]/.freeze
TRACE_ID_LENGTH = 16
ID_LENGTH = 8
- # rubocop:disable Metrics/ParameterLists
def initialize(
version: VERSION,
trace_id: nil,
span_id: nil,
id: nil,
@@ -40,10 +39,9 @@
# TODO: rename span_id kw arg to parent_id with next major version bump
@parent_id = span_id
@id = id || hex(ID_LENGTH)
@recorded = recorded
end
- # rubocop:enable Metrics/ParameterLists
attr_accessor :version, :id, :trace_id, :parent_id, :recorded
alias :recorded? :recorded