Skip to content

Commit

Permalink
Document that Mailer is available late
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc committed Jun 19, 2024
1 parent a305f6e commit 0797c4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def on_start(span, event, _id, payload)
def on_finish(span, event, _id, payload)
super

span.resource = payload[:mailer]
span.resource = payload[:mailer] # Mailer is not available at `on_start`

span.set_tag(Ext::TAG_MAILER, payload[:mailer])
span.set_tag(Ext::TAG_MSG_ID, payload[:message_id])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def span_type
def on_start(span, event, _id, payload)
super

span.resource = payload[:mailer]
span.resource = payload[:mailer] # Mailer is not available at `on_start`

span.set_tag(Ext::TAG_ACTION, payload[:action])
span.set_tag(Ext::TAG_MAILER, payload[:mailer])
Expand Down

0 comments on commit 0797c4e

Please sign in to comment.