Repository navigation
Description
For meta frameworks like Next.js (but not only, also e.g. Remix, Nuxt, Sveltekit, SolidStart), all issues come into a single project. This includes browser (client) issues/transactions, but also server (node or vercel-edge) issues/transactions.
Today, it is very hard to see where an event is coming from. Really, you have to manually look at a bunch of rather obscure event data to figure this out. We should highlight this better for our users!
- We should show the runtime of the event (issue/transaction) somewhere on the top of the issue detail page.
- We should show the runtime of the event in the issue stream.
- We should probably do this for all JavaScript meta SDKs (but not all SDKs, as it is redundant information if I only have e.g. a React app)
Some notes on implementation/event structure:
How can we identify if an event comes from a meta SDK?
A pretty reliable way is to look at sdk.packages in the event. If this has more than one entry, it can be considered a meta SDK that covers more than one runtime. E.g. for Next.js this will be one of:
[
{
"name": "npm:@sentry/nextjs",
"version": "8.29.0"
},
{
// or @sentry/react, or @sentry/vercel-edge
"name": "npm:@sentry/node",
"version": "8.29.0"
}
]Where can I get the runtime information from?
This is a bit tricky as we do not really have a central place for this. The easiest heuristic is to look at contexts.runtime.name. This would be node or vercel-edge, respectively. If this is not set, it can be considered browser.
Alternatively, you could look at the sdk.packages (but this is a bit tricky as it may include e.g. @sentry/react or @sentry/vue or @sentry/browser).
PRs
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsNo status
Activity
mydea commentedon Mar 24, 2025
Also see #87697
feat(contexts): Hide client-related highlights in backend issues (#88539
feat(contexts): Differentiate client OS title (#88536)
feat(contexts): Hide client-related highlights in backend issues (#88539
feat(contexts): Differentiate client OS title (#88536)
timfish commentedon Apr 11, 2025
Maybe you can determine this from the
platformproperty in the event.It's should be
nodefor backend andjavascriptfor frontend.The develop docs already say:
This would also be helpful for the Electron SDK since that also has events from both.
s1gr1d commentedon Apr 14, 2025
That's correct for the most cases but e.g. Deno is considered
javascript, but it's on the backend.s1gr1d commentedon Apr 14, 2025
Linking this issue, as it came up during development: #89470
It's about showing the cloud platform in the highlights as well.
feat(issue-details): Add runtime label for JS issues (#88312)
feat(issue-details): Add runtime label for JS issues (#88312)
s1gr1d commentedon May 22, 2025
Closing this as this is done in the issue details view.
Discerning errors in the issue feed is tracked here: #89841