-
Notifications
You must be signed in to change notification settings - Fork 142
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
♻️ [RUM-249] update worker protocol #2346
Merged
Merged
Changes from 14 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2b30c39
♻️ [RUM-249] remove `rawBytesCount` from the protocol
BenoitZugmeyer 3d21fba
✨ [RUM-249] add a `result` field to `written` responses
BenoitZugmeyer 149620d
🔥 [RUM-249] remove compressedBytesCount
BenoitZugmeyer e05847a
✨ [RUM-249] add a reset action
BenoitZugmeyer ae70ec1
✨ [RUM-249] add trailer to wrote response
BenoitZugmeyer 07b3c64
♻️ [RUM-249] replace `flush` action usage with `write` + `reset`
BenoitZugmeyer b883cfe
🔥 [RUM-249] remove the flush action
BenoitZugmeyer 8d5c63d
✨ [RUM-249] multi-streams support
BenoitZugmeyer 9f3bd00
✨ [RUM-249] add streamId to error responses
BenoitZugmeyer d024234
✨ [RUM-249] add version to init response
BenoitZugmeyer 19ba44e
👌 include the stream id in telemetry errors
BenoitZugmeyer e326704
👌 add some doc to the `makeTrailer` function
BenoitZugmeyer 20c9df2
🚚✅ move worker tests closer to the worker
BenoitZugmeyer 093e058
✅ add more tests around uncaught errors
BenoitZugmeyer dd5c779
👌♻️ put `concatBuffers` in @datadog/browser-core
BenoitZugmeyer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
💭 thought: this function is needed in both the worker and RUM. I duplicated it, it's not great, but it avoids adding a dependency between the worker code and main packages. Maybe the worker can expose some utility function like that, but we'd need to ensure that it is tree-shakable to a pulling too much of the worker code in main packages.
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.
Would it be simpler if the utility code was exposed from core?
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.
Let's try it. I put it in core, so now the worker depends on core. I was hesitating about it, because in the future core might very well depend on the worker. We'll see how it goes!