Skip to content

Capture transaction tags#1701

Merged
st0012 merged 1 commit intogetsentry:masterfrom
karlentwistle:ke/transaction_tags
Jan 27, 2022
Merged

Capture transaction tags#1701
st0012 merged 1 commit intogetsentry:masterfrom
karlentwistle:ke/transaction_tags

Conversation

@karlentwistle
Copy link
Copy Markdown
Contributor

@karlentwistle karlentwistle commented Jan 26, 2022

Description

With the following code:

transaction = Sentry.start_transaction(name: 'example transaction', description: "example transaction")
transaction.set_tag('host', 'www.example.org')
transaction.finish

I was expecting Sentry to create a clickable tag within the Tag Details section here:

Screenshot 2022-01-26 at 22 08 13

However - this doesn't currently work because the transaction's tags aren't shared here:

def event_from_transaction(transaction)

With this change applied the tags from the transaction are captured and it creates a clickable tag within Event Details -> Tag Details

Screenshot 2022-01-26 at 22 13 34

I wondered if there might be a specific reason transaction tags aren't currently captured or might it be possible to introduce this change.

Please let me know your thoughts - thanks very much!

@st0012 st0012 added this to the 5.0.2 milestone Jan 27, 2022
Copy link
Copy Markdown
Contributor

@st0012 st0012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it's something I missed. Sorry about that and thanks for the PR 🙌

@st0012
Copy link
Copy Markdown
Contributor

st0012 commented Jan 27, 2022

@sl0thentr0py FYI. And here is sentry-python's implementation.

@st0012 st0012 self-assigned this Jan 27, 2022
@st0012 st0012 merged commit b4d1b93 into getsentry:master Jan 27, 2022
st0012 added a commit that referenced this pull request Jan 27, 2022
* Update changelog

* Improve Transaction#finish's tests
lewispb added a commit to lewispb/sentry-ruby that referenced this pull request Feb 1, 2022
* master:
  feat(performance): Sync activerecord and net-http span names (getsentry#1681)
  Register Sentry's ErrorSubscriber for Rails 7.0+ apps (getsentry#1705)
  Support serializing ActiveRecord job arguments in global id form (getsentry#1688)
  release: 5.0.2
  Fix report_after_job_retries's decision logic (getsentry#1704)
  Followup of getsentry#1701 (getsentry#1703)
  Capture transaction tags (getsentry#1701)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants