Skip to content

feat(attributes): Add HTTP body size and status text attributes - #574

Merged
msonnb merged 2 commits into
mainfrom
ms/http-body-size-status-attributes
Aug 28, 2026
Merged

msonnb merged 2 commits into
mainfrom
ms/http-body-size-status-attributes

Conversation

@msonnb

@msonnb msonnb commented Aug 25, 2026

Copy link
Copy Markdown
Member

Description

  • Registers 4 deprecated HTTP attributes the JS SDK currently emits:

    • http.request_content_length
    • http.request_content_length_uncompressed
    • http.response_content_length_uncompressed
    • http.status_text,
  • deprecates the existing http.decoded_response_content_length

  • and registers the following replacements:

    • http.request.body.size
    • http.request.body.decoded_size
    • http.response.body.decoded_size
    • http.response.status_text

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate to generate and format code and docs.

If an attribute was added:

  • The attribute is in a namespace (e.g. nextjs.function_id, not function_id)
  • I have used the correct value for apply_scrubbing (i.e. manual or auto. Use never only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

@msonnb
msonnb requested review from a team, Lms24, cleptric, mjq and nsdeschenes as code owners August 25, 2026 09:00
@github-actions

github-actions Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Attributes

  • Add HTTP body size and status text attributes by msonnb in #574
  • Add graphql.processing.type by andreiborza in #572

Other

  • (span-names) Add url.domainrule for http.client spans by Lms24 in #575

Bug Fixes 🐛

Names

  • Add missing gen_ai ops to span name rules by Lms24 in #579
  • Include tool name in gen_ai.execute_tool span names by Lms24 in #580
  • Correct graphql span name examples by andreiborza in #573

Internal Changes 🔧

  • (attributes) Add search alias for segment name by nsdeschenes in #577

🤖 This preview updates automatically when you update the PR.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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.

@msonnb
msonnb marked this pull request as draft August 25, 2026 09:05
@msonnb
msonnb marked this pull request as ready for review August 25, 2026 09:09

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@msonnb
msonnb force-pushed the ms/http-body-size-status-attributes branch from 2b43255 to 3a4e3ec Compare August 28, 2026 07:20
@msonnb
msonnb merged commit 5259262 into main Aug 28, 2026
17 checks passed
@msonnb
msonnb deleted the ms/http-body-size-status-attributes branch August 28, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants