Skip to content

feat(attributes): Add http.request.body.data attribute - #336

Merged
ericapisani merged 2 commits into
mainfrom
py-2362-add-http-request-body-data-convention
Apr 27, 2026
Merged

ericapisani merged 2 commits into
mainfrom
py-2362-add-http-request-body-data-convention

Conversation

@ericapisani

Copy link
Copy Markdown
Member

Add a new HTTP attribute http.request.body.data capturing the request body payload — JSON body or form data, with any attached files redacted.

Defined as a string with pii: maybe since request bodies can carry sensitive user data, and is_in_otel: false because the OpenTelemetry semantic conventions registry does not define an equivalent. Placing it under the existing http.request.* namespace keeps it discoverable alongside http.request.header.<key> and http.response.body.size.

Model JSON is the source of truth; the TypeScript and Python attribute files were regenerated via yarn generate and should not be hand-edited.

Refs PY-2362

Add a new HTTP attribute for the request body payload (JSON or form
data, with attached files redacted). Define it as a `string` with
`pii: maybe` since bodies may carry sensitive user data, and mark
`is_in_otel: false` — no OTel equivalent exists in the registry.

Refs PY-2362
Co-Authored-By: Claude Opus 4.7 <[email protected]>
@linear-code

linear-code Bot commented Apr 23, 2026

Copy link
Copy Markdown

@ericapisani
ericapisani marked this pull request as ready for review April 23, 2026 13:52
Broaden the brief to describe the attribute as a string or structural
data of any format, and regenerate the JavaScript and Python attribute
files.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@github-actions

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.request.body.data attribute by ericapisani in #336
  • Add device.low_power_mode attribute for iOS by itaybre in #314

Bug Fixes 🐛

  • Backfill several deprecated attributes by loewenheim in #332

Internal Changes 🔧

  • (attributes) Mark deprecated gen_ai and ai attributes as backfill by vgrozdanic in #333
  • (deps) Bump astro from 6.0.2 to 6.1.6 in /docs by dependabot in #330

🤖 This preview updates automatically when you update the PR.

@ericapisani
ericapisani merged commit 31f1822 into main Apr 27, 2026
12 checks passed
@ericapisani
ericapisani deleted the py-2362-add-http-request-body-data-convention branch April 27, 2026 18:29
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.

3 participants