You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deprecate Remaining Span class and interface fields #10184
### Related fields on other interfaces
- [x] https://github.com/getsentry/sentry-javascript/pull/10274
- [ ] https://github.com/getsentry/sentry-javascript/pull/10361
setHttpStatusshould probably stay? It's pretty useful and doesn't hurt, unless I am missing something. can probably just go.
We have multiple instances where we (and our customers) set start- and endTimestamps. A getter like spanToJson doesn't help here as a migration path. @mydea Can you set the start and end timestamps on otel spans retroactively?
spanRecorder can likely be deprecated and be an implementation detail on the span object/class itself.
We have multiple instances where we (and our customers) set start- and endTimestamps. A getter like spanToJson doesn't help here as a migration path. @mydea Can you set the start and end timestamps on otel spans retroactively?
setting them via startSpan et al. should still work I think 🤔 ending would need to happen via span.end(endTimestamp)
IdleTransaction (soon to be IdleSpan) in browser adjusts the endTimestamp. I wonder if for this it's enough to make the timestamps of Span protected (so still remove them publicly).
yeah, retroactive update of start/end time is not possible. This needs to be rewritten to buffer the endtime somewhere (?) and set it - but I think I did this here already kind of #9972, so should work, I hope..!
Activity
lforst commentedon Jan 15, 2024
setHttpStatusshould probably stay? It's pretty useful and doesn't hurt, unless I am missing something.can probably just go.spanToJsondoesn't help here as a migration path. @mydea Can you set the start and end timestamps on otel spans retroactively?spanRecordercan likely be deprecated and be an implementation detail on the span object/class itself.The rest looks good to me 👍
Lms24 commentedon Jan 15, 2024
setting them via
startSpanet al. should still work I think 🤔 ending would need to happen viaspan.end(endTimestamp)IdleTransaction(soon to beIdleSpan) in browser adjusts the endTimestamp. I wonder if for this it's enough to make the timestamps ofSpanprotected (so still remove them publicly).mydea commentedon Jan 15, 2024
yeah, retroactive update of start/end time is not possible. This needs to be rewritten to buffer the endtime somewhere (?) and set it - but I think I did this here already kind of #9972, so should work, I hope..!
mydea commentedon Jan 16, 2024
I will deprecate the timestamps!
chore(core): Mark `Span.getSpanJSON` method as internal (#10197)
feat(core): Deprecate `Span.status` (#10208)