Skip to content

Include body sizes in outbound HTTP telemetry #3188

Open
@lann

Description

@lann

This would be useful for egress bandwidth accounting. See e.g. https://opentelemetry.io/docs/specs/semconv/registry/attributes/http/#http-request-body-size

The easy version of this would be to just report body sizes based off of content-length headers, which would work for "most" requests. The harder but more complete version would be to use custom Body wrapper(s) to record the actual bytes written, which would additionally work for streaming/chunked-encoding bodies that have no content-length.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions