lib/new_relic/agent/transaction/segment.rb in newrelic_rpm-8.2.0 vs lib/new_relic/agent/transaction/segment.rb in newrelic_rpm-8.3.0
- old
+ new
@@ -13,20 +13,20 @@
# unscoped_metrics can be nil, a string, or array. we do this to save
# object allocations. if allocations weren't important then we would
# initialize it as an array that would be empty, have one item, or many items.
attr_reader :unscoped_metrics, :custom_transaction_attributes
- def initialize name=nil, unscoped_metrics=nil, start_time=nil
+ def initialize name = nil, unscoped_metrics = nil, start_time = nil
@unscoped_metrics = unscoped_metrics
super name, start_time
end
def attributes
@attributes ||= Attributes.new(NewRelic::Agent.instance.attribute_filter)
end
- def add_agent_attribute(key, value, default_destinations=AttributeFilter::DST_SPAN_EVENTS)
+ def add_agent_attribute(key, value, default_destinations = AttributeFilter::DST_SPAN_EVENTS)
attributes.add_agent_attribute(key, value, default_destinations)
end
def self.merge_untrusted_agent_attributes(attributes, prefix, default_destinations)
if segment = NewRelic::Agent::Tracer.current_segment
@@ -81,10 +81,10 @@
def record_span_event
# don't record a span event if the transaction is ignored
return if transaction.ignore?
aggregator = ::NewRelic::Agent.agent.span_event_aggregator
- priority = transaction.priority
+ priority = transaction.priority
aggregator.record(priority: priority) do
SpanEventPrimitive.for_segment(self)
end
end