-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom tags not added to Perfromance Issues #15833
Comments
Hey @landenai - if you capture an error, do you get the custom tag applied? Could you also try running |
Yes, different function but same server action. We capture an error and can see the tag in Sentry. I just tried |
Performance events are created on the server from transactions (and spans) and transactions don't have tags so I think this is moot (?). |
Are we not suppose to be able to add tags to perfromance events? I've seen performance events with tags successfully added but maybe this wasn't intended functionality |
Transactions do have tags, and the performance issue should be inheriting from the transaction. The fact that it works locally but not on vercel is the red flag for me. I suspect what is happening is that on Vercel when we finish the transaction we aren’t in the right context anymore (outside of request) so we grab stuff from the wrong scope. Therefore the @landenai One thing you could do to double check this is to do |
@AbhiPrasad Sorry for the delay here, just tested |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
8.37.1
Framework Version
Next 15.0.1
Link to Sentry event
https://demo.sentry.io/issues/6396022267/?project=4508968158429184&query=&referrer=issue-stream&sort=date&stream_index=0
Reproduction Example/SDK Setup
I add a custom tag within a server action before a query is made that triggers a performance issue. When testing locally, I see the tag on the perfromance issue in Sentry. When testing on my vercel deployment, I do not see the tag. Here is how I add the tag
Note: Ive already added console log statements and seen that
se
has a value.Steps to Reproduce
Expected Result
Tag is observable on performance issue in Sentry
Actual Result
Tag is not added to performance issue in Sentry
The text was updated successfully, but these errors were encountered: