View Source OpenTelemetry.SemConv.Incubating.HTTPAttributes (OpenTelemetry.SemConv v1.27.0)
OpenTelemetry Semantic Conventions for HTTP attributes.
Summary
Types
State of the HTTP connection in the HTTP connection pool.
Deprecated, use network.protocol.name
instead.
Functions
State of the HTTP connection in the HTTP connection pool.
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.
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.
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.
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.
Types
@type http_connection_state_values() :: %{active: :active, idle: :idle}
State of the HTTP connection in the HTTP connection pool.
Enum Values
@type http_flavor_values() :: %{
http_1_0: :"1.0",
http_1_1: :"1.1",
http_2_0: :"2.0",
http_3_0: :"3.0",
spdy: :SPDY,
quic: :QUIC
}
Deprecated, use network.protocol.name
instead.
Enum Values
Functions
@spec http_client_ip() :: :"http.client_ip"
@spec http_connection_state() :: :"http.connection.state"
State of the HTTP connection in the HTTP connection pool.
Examples
["active", "idle"]
iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state()
:"http.connection.state"
iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state_values().active
:active
iex> %{OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state() => OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state_values().active}
%{:"http.connection.state" => :active}
?HTTP_CONNECTION_STATE.
'http.connection.state'
?HTTP_CONNECTION_STATE_VALUES_ACTIVE.
'active'
#{?HTTP_CONNECTION_STATE => ?HTTP_CONNECTION_STATE_VALUES_ACTIVE}.
#{'http.connection.state' => 'active'}
@spec http_connection_state_values() :: http_connection_state_values()
@spec http_flavor() :: :"http.flavor"
@spec http_flavor_values() :: http_flavor_values()
@spec http_host() :: :"http.host"
@spec http_method() :: :"http.method"
@spec http_request_body_size() :: :"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.
Value type
Value must be of type integer()
.
Examples
3495
iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_request_body_size()
:"http.request.body.size"
?HTTP_REQUEST_BODY_SIZE.
'http.request.body.size'
@spec http_request_content_length() :: :"http.request_content_length"
@spec http_request_content_length_uncompressed() ::
:"http.request_content_length_uncompressed"
See OpenTelemetry.SemConv.HTTPAttributes.http_request_header/0
.
See OpenTelemetry.SemConv.HTTPAttributes.http_request_method/0
.
See OpenTelemetry.SemConv.HTTPAttributes.http_request_method_original/0
.
See OpenTelemetry.SemConv.HTTPAttributes.http_request_method_values/0
.
See OpenTelemetry.SemConv.HTTPAttributes.http_request_resend_count/0
.
@spec http_request_size() :: :"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.
Value type
Value must be of type integer()
.
Examples
1437
iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_request_size()
:"http.request.size"
?HTTP_REQUEST_SIZE.
'http.request.size'
@spec 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.
Value type
Value must be of type integer()
.
Examples
3495
iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_response_body_size()
:"http.response.body.size"
?HTTP_RESPONSE_BODY_SIZE.
'http.response.body.size'
@spec http_response_content_length() :: :"http.response_content_length"
@spec http_response_content_length_uncompressed() ::
:"http.response_content_length_uncompressed"
See OpenTelemetry.SemConv.HTTPAttributes.http_response_header/0
.
@spec http_response_size() :: :"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.
Value type
Value must be of type integer()
.
Examples
1437
iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_response_size()
:"http.response.size"
?HTTP_RESPONSE_SIZE.
'http.response.size'
See OpenTelemetry.SemConv.HTTPAttributes.http_response_status_code/0
.
@spec http_scheme() :: :"http.scheme"
@spec http_server_name() :: :"http.server_name"
@spec http_status_code() :: :"http.status_code"
@spec http_target() :: :"http.target"
@spec http_url() :: :"http.url"
@spec http_user_agent() :: :"http.user_agent"