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

[sveltekit] orphaned/broken subtraces with wizard example page

Open JLuse opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
  • [X] I have reviewed the documentation https://docs.sentry.io/
  • [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/sveltekit

SDK Version

  7.103.0

Framework Version

No response

Link to Sentry event

No response

SDK Setup

Wizard generated init and example code. No other options added.

Steps to Reproduce

Description: It looks like the example page (“/sentry-example”) the wizard creates, produces orphaned/broken subtraces when testing that page. Example trace with result: https://j-org.sentry.io/performance/trace/d760ee30bcc64b689068af164ff06cc0/?limit=100&pageEnd=2024-03-01T08%3A42%3A42.115&pageStart=2024-02-29T08%3A42%3A42.115

Steps to reproduce:

  1. Create sceltekit project
  2. Install SDK with the wizard
  3. Trigger test error from /sentry-example
  4. Inspect associated transaction in Sentry

Expected Result

Subtraces to properly associate to parent from the /sentry-example

Actual Result

Example page produces broken or orphaned subtraces

JLuse avatar Mar 03 '24 20:03 JLuse

Hi, we will address this in the upcoming version 8 of the SDK. Unfortunately we have very intransparent logic for frontend traces at the moment and the trace you shared is one example of that.

lforst avatar Mar 04 '24 10:03 lforst

This should hopefully be improved/fixed in v8.0.0 - could you give it a try there?

mydea avatar May 15 '24 14:05 mydea

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Jun 06 '24 07:06 getsantry[bot]