Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add semantic attributes for HTTP content length. #1376

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,30 @@ public final class SemanticAttributes {
/** The IP address of the original client behind all proxies, if known. */
public static final StringAttributeSetter HTTP_CLIENT_IP =
StringAttributeSetter.create("http.client_ip");
/**
* The size of the request payload body, in bytes. For payloads using transport encoding, this is
* the compressed size.
*/
public static final StringAttributeSetter HTTP_REQUEST_CONTENT_LENGTH =
StringAttributeSetter.create("http.request_content_length");
/**
* The size of the uncompressed request payload body, in bytes. Only set for requests that use
* transport encoding.
*/
public static final StringAttributeSetter HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED =
StringAttributeSetter.create("http.request_content_length_uncompressed");
/**
* The size of the response payload body, in bytes. For payloads using transport encoding, this is
* the compressed size.
*/
public static final StringAttributeSetter HTTP_RESPONSE_CONTENT_LENGTH =
StringAttributeSetter.create("http.response_content_length");
/**
* The size of the uncompressed response payload body, in bytes. Only set for response that use
anuraaga marked this conversation as resolved.
Show resolved Hide resolved
* transport encoding.
*/
public static final StringAttributeSetter HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED =
StringAttributeSetter.create("http.response_content_length_uncompressed");
/** The service name, must be equal to the $service part in the span name. */
public static final StringAttributeSetter RPC_SERVICE =
StringAttributeSetter.create("rpc.service");
Expand Down