-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(core): Remove deprecated props from Span
interface
#10854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
import { GLOBAL_OBJ } from '@sentry/utils'; | ||
|
||
import { captureEvent, getCurrentScope } from '../../src'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually fixed a bunch of tests along there way here we we used to import from the package itself (we are in core here), which lead to tests only running on the built output, which is a bit weird IMHO.
@@ -36,6 +37,7 @@ describe('registerErrorHandlers()', () => { | |||
const client = new TestClient(options); | |||
setCurrentClient(client); | |||
client.init(); | |||
_resetErrorsInstrumented(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This apparently was not needed before because we imported this from the build output 🤔 now it should be more robust.
eb10a77
to
411cd68
Compare
size-limit report 📦
|
6695f6b
to
bde49b1
Compare
Instead, in places we need it we cast to a `SentrySpan` which still has the things in place, for now.
bde49b1
to
4c13b0c
Compare
Instead, in places we need it we cast to a
SentrySpan
which still has the things in place, for now.With this, our span interface is almost the same as for otel spans - missing are only:
traceFlags
- this has apparently been updated in OTEL to have typenumber
only, which makes this a bit easier.setStatus
which has a different signature in OTEL.I'll do these in follow ups!
The biggest work here was fixing tests - I tried to rewrite tests to do less mocking where possible, which IMHO should cover actual functionality better than before (e.g. in svelte).