getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.87k stars 1.55k forks source link

Ensure Span attributes are mapped to correct properties in JSON spans #10272

Closed Lms24 closed 1 week ago

Lms24 commented 7 months ago

Currently, all values in Span._attributes are merged with Span.data and put into the data attribute of a JSON span.

Plan for v8: We use span attributes as a replacement for setting tags or dedicated fields onto a span. For example:

The consequences:

Solution

I think as long as our backend doesn't handle picking specific keys from span.data (I have no idea what it does with these currently) to handle them like they were tags, we need to map back things to the original span JSON payloads.

But how are we going to do this reliably?

getsantry[bot] commented 2 weeks ago

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 🥀