sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Ember pageload and navigation spans lack span description inference attributes

Open Lms24 opened this issue 2 months ago • 4 comments

Description

Surfaced via https://github.com/getsentry/sentry-javascript/pull/24168#discussion_r3977008540, Ember pageload (and likely also navigation) spans don't carry a name that's equal to any of the attributes we need to infer the span description: https://getsentry.github.io/sentry-conventions/descriptions/#browser-pageload

We have a couple of options:

  1. router.navigation.route.id
  2. theoretically, url.template but the current pattern in the test doesn't seem to actually be a url
  3. we override this with sentry.description to avoid span description inference and define the description locally in the SDK.

Lms24 avatar Sep 10 '26 08:09 Lms24

JS-3649

linear-code[bot] avatar Sep 10 '26 08:09 linear-code[bot]

I'm interested in a small fix here. The current browser conventions prioritize router.navigation.route.id, while the Ember integration already has the route name. Would adding that attribute for pageload/navigation, with regression coverage through the streamed Ember app, fit the intended direction? I'd preserve the existing names and fallback behavior. I haven't run the reproduction yet. Is anyone already covering this, and should the attribute hold the raw route name or the existing route: form?

ihsraham avatar Sep 13 '26 09:09 ihsraham

Hi @ihsraham! Thanks for offering your help, I think that fits the intended direction, yes! I'd include the existing route: prefix since that matches the current name.

msonnb avatar Sep 14 '26 09:09 msonnb

A PR closing this issue has just been released 🚀

This issue was referenced by PR #24372, which was included in the 11.0.0 release.

github-actions[bot] avatar Sep 23 '26 12:09 github-actions[bot]