Skip to content

add http.{request,response}.body.content#3521

Open
SylvainJuge wants to merge 24 commits into
open-telemetry:mainfrom
SylvainJuge:http-request-response-body
Open

add http.{request,response}.body.content#3521
SylvainJuge wants to merge 24 commits into
open-telemetry:mainfrom
SylvainJuge:http-request-response-body

Conversation

@SylvainJuge

@SylvainJuge SylvainJuge commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Part of #857

  • adds http.{request,response}.body.content attribute as type any.
  • recommend to capture value as string whenever possible using heuristics

Covers both the request and response, however the implementation is likely to focus on the server request first:

@SylvainJuge SylvainJuge self-assigned this Mar 9, 2026
@github-actions github-actions Bot added enhancement New feature or request area:http labels Mar 9, 2026
@github-actions

github-actions Bot commented Mar 9, 2026

Copy link
Copy Markdown

This PR contains changes to area(s) that do not have an active SIG/project and will be auto-closed:

  • http

Such changes may be rejected or put on hold until a new SIG/project is established.

Please refer to the Semantic Convention Areas
document to see the current active SIGs and also to learn how to kick start a new one.

@SylvainJuge

Copy link
Copy Markdown
Contributor Author

@trask can you re-open this ? Should we create a dedicated SIG/project to handle that ?

@SylvainJuge

Copy link
Copy Markdown
Contributor Author

Update: updating to cover request + response (as suggested here) and also making it client+server.

@SylvainJuge SylvainJuge changed the title add http.request.body.content add http.{request,response}.body.content Mar 13, 2026
@SylvainJuge SylvainJuge marked this pull request as ready for review March 13, 2026 12:40
@SylvainJuge SylvainJuge requested review from a team as code owners March 13, 2026 12:40
@AlexanderWert AlexanderWert moved this from Untriaged to Awaiting codeowners approval in Semantic Conventions Triage Mar 23, 2026
Comment thread model/http/registry.yaml Outdated
Comment thread model/http/registry.yaml Outdated
Comment thread model/http/registry.yaml Outdated
Comment thread model/http/registry.yaml
Co-authored-by: Liudmila Molkova <neskazu@gmail.com>
@github-actions

Copy link
Copy Markdown

This PR has been labeled as stale due to lack of activity. It will be automatically closed if there is no further activity over the next 7 days.

@github-actions github-actions Bot added the Stale label Apr 15, 2026
@github-actions github-actions Bot removed the Stale label Apr 18, 2026
@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

This PR has been labeled as stale due to lack of activity. It will be automatically closed if there is no further activity over the next 7 days.

@github-actions github-actions Bot added the Stale label May 6, 2026
@github-actions github-actions Bot removed the Stale label May 7, 2026
@github-actions

Copy link
Copy Markdown

This PR has been labeled as stale due to lack of activity. It will be automatically closed if there is no further activity over the next 7 days.

@github-actions github-actions Bot added the Stale label May 21, 2026
@github-actions github-actions Bot removed the Stale label May 26, 2026
Comment thread model/http/registry.yaml Outdated
Comment thread model/http/registry.yaml Outdated
The maximum captured body size must be limited by the `AttributeValueLengthLimit` configuration option defined in the
[OpenTelemetry SDK specification](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#configurable-parameters).

To prevent excessive overhead and storage by default, instrumentations MUST issue a warning when the feature is used without an explicit `AttributeValueLengthLimit` configuration option.

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.

instrumentation has no knowledge of configuration applied by the application.

I'd propose to just remove this paragraph

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

From what I understand this means that without access to the SDK configuration, we have no way to issue a warning when the feature is used without limit (which is something we may want to avoid).

Do you think it would make sense to add the following requirement for feature implementation documentation ?

Enabling this feature is likely to capture large values and thus the feature documentation MUST recommend to set an explicit value for AttributeValueLengthLimit to avoid excessive overhead ?

Comment thread docs/registry/attributes/http.md
Comment thread docs/registry/attributes/http.md Outdated
Comment on lines +34 to +35
The maximum captured body size must be limited by the `AttributeValueLengthLimit` configuration option defined in the
[OpenTelemetry SDK specification](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#configurable-parameters).

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.

This is not actionable for instrumentation authors - let's remove ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Awaiting codeowners approval

Development

Successfully merging this pull request may close these issues.

5 participants