Skip to content

Commit

Permalink
Update lib/new_relic/agent/tracer.rb
Browse files Browse the repository at this point in the history
Co-authored-by: James Bunch <[email protected]>
  • Loading branch information
tannalynn and fallwith authored Jan 6, 2024
1 parent 4672266 commit ba8ec9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/new_relic/agent/tracer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def thread_block_with_current_transaction(segment_name: nil, parent: nil, &block
NewRelic::Agent::Tracer.state.current_transaction = current_txn
::Thread.current[:newrelic_thread_span_parent] = parent
current_txn.async = true
segment_name = segment_name.to_s + "/Thread#{::Thread.current.object_id}/Fiber#{::Fiber.current.object_id}" if NewRelic::Agent.config[:'thread_ids_enabled']
segment_name = "#{segment_name}/Thread#{::Thread.current.object_id}/Fiber#{::Fiber.current.object_id}" if NewRelic::Agent.config[:'thread_ids_enabled']
segment = NewRelic::Agent::Tracer.start_segment(name: segment_name, parent: parent) if segment_name
end
NewRelic::Agent::Tracer.capture_segment_error(segment) do
Expand Down

0 comments on commit ba8ec9d

Please sign in to comment.