Class HttpIncubatingAttributes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classValues forHTTP_CONNECTION_STATE.static final classDeprecated.static final classDeprecated.deprecated in favor of stableHttpAttributes.HttpRequestMethodValues. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced byclient.address.static final io.opentelemetry.api.common.AttributeKey<String>State of the HTTP connection in the HTTP connection pool.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced bynetwork.protocol.name.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced by one ofserver.address,client.addressorhttp.request.header.host, depending on the usage.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced byhttp.request.method.static final io.opentelemetry.api.common.AttributeKey<Long>The size of the request payload body in bytes.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.Replaced byhttp.request.header.<key>.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.Replaced byhttp.request.body.size.Deprecated.deprecated in favor of stableHttpAttributes.HTTP_REQUEST_HEADERattribute.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableHttpAttributes.HTTP_REQUEST_METHODattribute.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableHttpAttributes.HTTP_REQUEST_METHOD_ORIGINALattribute.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.deprecated in favor of stableHttpAttributes.HTTP_REQUEST_RESEND_COUNTattribute.static final io.opentelemetry.api.common.AttributeKey<Long>The total size of the request in bytes.static final io.opentelemetry.api.common.AttributeKey<Long>The size of the response payload body in bytes.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.Replaced byhttp.response.header.<key>.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.Replace byhttp.response.body.size.Deprecated.deprecated in favor of stableHttpAttributes.HTTP_RESPONSE_HEADERattribute.static final io.opentelemetry.api.common.AttributeKey<Long>The total size of the response in bytes.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.deprecated in favor of stableHttpAttributes.HTTP_RESPONSE_STATUS_CODEattribute.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.deprecated in favor of stableHttpAttributes.HTTP_ROUTEattribute.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced byurl.schemeinstead.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced byserver.address.static final io.opentelemetry.api.common.AttributeKey<Long>Deprecated.Replaced byhttp.response.status_code.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Split tourl.pathand `url.query.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced byurl.full.static final io.opentelemetry.api.common.AttributeKey<String>Deprecated.Replaced byuser_agent.original. -
Method Summary
-
Field Details
-
HTTP_CLIENT_IP
Deprecated.Replaced byclient.address.Deprecated, useclient.addressinstead. -
HTTP_CONNECTION_STATE
State of the HTTP connection in the HTTP connection pool. -
HTTP_FLAVOR
Deprecated.Replaced bynetwork.protocol.name.Deprecated, usenetwork.protocol.nameinstead. -
HTTP_HOST
Deprecated.Replaced by one ofserver.address,client.addressorhttp.request.header.host, depending on the usage.Deprecated, use one ofserver.address,client.addressorhttp.request.header.hostinstead, depending on the usage. -
HTTP_METHOD
Deprecated.Replaced byhttp.request.method.Deprecated, usehttp.request.methodinstead. -
HTTP_REQUEST_BODY_SIZE
The size of the request 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. -
HTTP_REQUEST_HEADER
@Deprecated public static final io.opentelemetry.semconv.AttributeKeyTemplate<List<String>> HTTP_REQUEST_HEADERDeprecated.deprecated in favor of stableHttpAttributes.HTTP_REQUEST_HEADERattribute.HTTP request headers,<key>being the normalized HTTP Header name (lowercase), the value being the header values.Notes:
Instrumentations SHOULD require an explicit configuration of which headers are to be captured. Including all request headers can be a security risk - explicit configuration helps avoid leaking sensitive information. The
User-Agentheader is already captured in theuser_agent.originalattribute. Users MAY explicitly configure instrumentations to capture them even though it is not recommended. The attribute value MUST consist of either multiple header values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the HTTP library provides access to headers. -
HTTP_REQUEST_METHOD
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> HTTP_REQUEST_METHODDeprecated.deprecated in favor of stableHttpAttributes.HTTP_REQUEST_METHODattribute.HTTP request method.Notes:
HTTP request method value SHOULD be "known" to the instrumentation. By default, this convention defines "known" methods as the ones listed in RFC9110 and the PATCH method defined in RFC5789.
If the HTTP request method is not known to instrumentation, it MUST set the
http.request.methodattribute to_OTHER.If the HTTP instrumentation could end up converting valid HTTP request methods to
_OTHER, then it MUST provide a way to override the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).HTTP method names are case-sensitive and
http.request.methodattribute value MUST match a known HTTP method name exactly. Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. Tracing instrumentations that do so, MUST also sethttp.request.method_originalto the original value. -
HTTP_REQUEST_METHOD_ORIGINAL
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<String> HTTP_REQUEST_METHOD_ORIGINALDeprecated.deprecated in favor of stableHttpAttributes.HTTP_REQUEST_METHOD_ORIGINALattribute.Original HTTP method sent by the client in the request line. -
HTTP_REQUEST_RESEND_COUNT
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> HTTP_REQUEST_RESEND_COUNTDeprecated.deprecated in favor of stableHttpAttributes.HTTP_REQUEST_RESEND_COUNTattribute.The ordinal number of request resending attempt (for any reason, including redirects).Notes:
The resend count SHOULD be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other).
-
HTTP_REQUEST_SIZE
The total size of the request in bytes. This should be the total number of bytes sent over the wire, including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request body if any. -
HTTP_REQUEST_CONTENT_LENGTH
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> HTTP_REQUEST_CONTENT_LENGTHDeprecated.Replaced byhttp.request.header.<key>.Deprecated, usehttp.request.header.<key>instead. -
HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSEDDeprecated.Replaced byhttp.request.body.size.Deprecated, usehttp.request.body.sizeinstead. -
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. -
HTTP_RESPONSE_HEADER
@Deprecated public static final io.opentelemetry.semconv.AttributeKeyTemplate<List<String>> HTTP_RESPONSE_HEADERDeprecated.deprecated in favor of stableHttpAttributes.HTTP_RESPONSE_HEADERattribute.HTTP response headers,<key>being the normalized HTTP Header name (lowercase), the value being the header values.Notes:
Instrumentations SHOULD require an explicit configuration of which headers are to be captured. Including all response headers can be a security risk - explicit configuration helps avoid leaking sensitive information. Users MAY explicitly configure instrumentations to capture them even though it is not recommended. The attribute value MUST consist of either multiple header values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the HTTP library provides access to headers.
-
HTTP_RESPONSE_SIZE
The total size of the response in bytes. This should be the total number of bytes sent over the wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and response body and trailers if any. -
HTTP_RESPONSE_STATUS_CODE
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> HTTP_RESPONSE_STATUS_CODEDeprecated.deprecated in favor of stableHttpAttributes.HTTP_RESPONSE_STATUS_CODEattribute. -
HTTP_RESPONSE_CONTENT_LENGTH
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> HTTP_RESPONSE_CONTENT_LENGTHDeprecated.Replaced byhttp.response.header.<key>.Deprecated, usehttp.response.header.<key>instead. -
HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED
@Deprecated public static final io.opentelemetry.api.common.AttributeKey<Long> HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSEDDeprecated.Replace byhttp.response.body.size.Deprecated, usehttp.response.body.sizeinstead. -
HTTP_ROUTE
Deprecated.deprecated in favor of stableHttpAttributes.HTTP_ROUTEattribute.The matched route, that is, the path template in the format used by the respective server framework.Notes:
MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it. SHOULD include the application root if there is one.
-
HTTP_SCHEME
Deprecated.Replaced byurl.schemeinstead.Deprecated, useurl.schemeinstead. -
HTTP_SERVER_NAME
Deprecated.Replaced byserver.address.Deprecated, useserver.addressinstead. -
HTTP_STATUS_CODE
Deprecated.Replaced byhttp.response.status_code.Deprecated, usehttp.response.status_codeinstead. -
HTTP_TARGET
Deprecated.Split tourl.pathand `url.query.Deprecated, useurl.pathandurl.queryinstead. -
HTTP_URL
Deprecated.Replaced byurl.full.Deprecated, useurl.fullinstead. -
HTTP_USER_AGENT
Deprecated.Replaced byuser_agent.original.Deprecated, useuser_agent.originalinstead.
-
network.protocol.name.