-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(replay): Fix ts errors with replay_type
#6681
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
packages/types/src/replay.ts
Outdated
| trace_ids: string[]; | ||
| replay_id: string; | ||
| segment_id: number; | ||
| replay_type: 'session' | 'error'; |
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 is of type ReplayRecordingMode, but that type is defined in replays/types and would probably cause circular import issues -- should we move that type into types package?
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.
Yes, I think that makes sense! I'll move it there and get this PR merged (so we unblock master) 👍
| const dsn = client?.getDsn(); | ||
|
|
||
| if (!client || !scope || !transport || !dsn) { | ||
| if (!client || !scope || !transport || !dsn || !this.session || !this.session.sampled) { |
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 should never be the case in this method but needed for ts and got rid of optional chaining
size-limit report 📦
|
d7c84b5 to
6cdcd81
Compare
mydea
left a comment
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 took this over in order to get this merged, hope that's ok @billyvg :)
Fixes type error from #6658 (semantic merge issue).
017b763 to
e120865
Compare
Fixes type error from #6658 (semantic merge issue).