Repository navigation
feat(attributes): Add HTTP body size and status text attributes - #574
Conversation
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Attributes
Other
Bug Fixes 🐛Names
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 27a72aa. Configure here.
Lms24
left a comment
There was a problem hiding this comment.
LGTM! For other reviewers: The gist is that we want to continue sending compressed and uncompressed sizes and OTel only specifies compressed sizes. Therefore we introduce uncompressed size attributes that are in line with the new naming scheme.
2b43255 to
3a4e3ec
Compare

Description
Registers 4 deprecated HTTP attributes the JS SDK currently emits:
http.request_content_lengthhttp.request_content_length_uncompressedhttp.response_content_length_uncompressedhttp.status_text,deprecates the existing
http.decoded_response_content_lengthand registers the following replacements:
http.request.body.sizehttp.request.body.decoded_sizehttp.response.body.decoded_sizehttp.response.status_textPR Checklist
yarn testand verified that the tests pass.yarn generateto generate and format code and docs.If an attribute was added:
nextjs.function_id, notfunction_id)apply_scrubbing(i.e.manualorauto. Useneveronly for values that should never be scrubbed such as IDs)If an attribute was deprecated: