-
Notifications
You must be signed in to change notification settings - Fork 0
chore(release): 0.24.0 — payload-shape telemetry #135
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
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
34a4fe1
feat(telemetry): add bytes_in/out, tokens_in/out, tokenize_ms via gpt…
c4f5752
fix(tokenize): zero tokenize_ms when neither payload tokenized
cursoragent 7a61b66
test: integration test for full telemetry write path
6b8dac4
fix(telemetry): guard response.clone in try/catch to uphold non-break…
cursoragent 336691a
test: lock in Bugbot's tokenize_ms fix (c4f5752)
b94aaa6
fix(telemetry): drop content-type filter — MCP responses are SSE, not…
cf52c18
fix(telemetry): clone response before waitUntil to preserve body
cursoragent b17e7fb
telemetry: avoid double response clone in waitUntil
cursoragent 8c91ceb
Remove unused measureResponseShape helper and its tests
cursoragent 279f761
fix(tokenize): use Date.now() — performance.now() doesn't advance in …
8153745
feat(telemetry): drop tokenize_ms — Workers timer is unmeasurable
d023ad6
chore(release): 0.24.0
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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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.
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.
Unprotected
response.clone()can break MCP responsesMedium Severity
The
response.clone()call sits outside any try/catch, while thectx.waitUntilcallback's catch block (line 991–993) explicitly upholds the invariant "Telemetry must never break MCP requests." Ifclone()throws (e.g., the SDK returns a response with an already-disturbed or locked body), the exception preventsreturn responsefrom ever executing, turning a telemetry-only code path into a user-facing 500 error. The old code had noresponse.clone()at all, so this is a new risk. Moving the clone inside the existing try/catch (or wrapping it in its own) would preserve the stated safety guarantee.Additional Locations (1)
workers/src/index.ts#L990-L993Reviewed by Cursor Bugbot for commit d023ad6. Configure here.