Skip to content

Conversation

@pieh
Copy link
Contributor

@pieh pieh commented Oct 29, 2025

Example with those changes deployed:

image

})

span?.setAttributes({
'blobs.response.body.size': res.headers.get('content-length') ?? undefined,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

attribute name inspired by https://opentelemetry.io/docs/specs/semconv/registry/attributes/http/#http-response-body-size

http.response.body.size
The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the Content-Length header. For requests using transport encoding, this should be the compressed size.

@pieh pieh marked this pull request as ready for review October 29, 2025 10:21
@pieh pieh requested a review from a team as a code owner October 29, 2025 10:21
@pieh pieh merged commit a2424f4 into main Oct 29, 2025
26 of 29 checks passed
@pieh pieh deleted the fix/add-content-length-otel-attribute branch October 29, 2025 12: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.

5 participants