lib/rails/instrumentation/utils.rb
def trace_notification(event:, tags: [])
          tags = ::Rails::Instrumentation::TAGS.clone.merge(tags)

          span = ::Rails::Instrumentation.tracer.start_span(event.name,
                                                            tags: tags,
                                                            start_time: event.time)

          # tag transaction_id
          span.set_tag('transaction.id', event.transaction_id)
          tag_error(span, event.payload) if event.payload.key? :exception

          span.finish(end_time: event.end)
        end
# takes and event and some set of tags from a handler, and creates a
# span with the event's name and the start and finish times.
takes and event and some set of tags from a handler, and creates a
span with the event's name and the start and finish times.
takes and event and some set of tags from a handler and creates a span with the event ' s name and the start and finish times .
def trace_notification(event:, tags: [])
          tags = ::Rails::Instrumentation::TAGS.clone.merge(tags)
          span = ::Rails::Instrumentation.tracer.start_span(event.name,
                                                            tags: tags,
                                                            start_time: event.time)
          span.set_tag('transaction.id', event.transaction_id)
          tag_error(span, event.payload) if event.payload.key? :exception
          span.finish(end_time: event.end)
        end
def trace_notification ( event : , tags : [ ] ) tags = :: Rails :: Instrumentation :: TAGS . clone . merge ( tags ) span = :: Rails :: Instrumentation . tracer . start_span ( event . name , tags : tags , start_time : event . time ) span . set_tag ( 'transaction.id' , event . transaction_id ) tag_error ( span , event . payload ) if event . payload . key? :exception span . finish ( end_time : event . end ) end
takes and event and some set of tags from a handler, and creates a
span with the event's name and the start and finish times.
takes and event and some set of tags from a handler and creates a span with the event ' s name and the start and finish times .
# tag transaction_id
event
tags