View Source OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics (OpenTelemetry.SemConv v1.27.0)
OpenTelemetry Semantic Conventions for HTTP metrics.
Summary
Functions
Number of active HTTP requests.
The duration of the successfully established outbound HTTP connections.
Number of outbound HTTP connections that are currently active or idle on the client.
Size of HTTP client request bodies.
Size of HTTP client response bodies.
Number of active HTTP server requests.
Size of HTTP server request bodies.
Size of HTTP server response bodies.
Functions
@spec http_client_active_requests() :: :"http.client.active_requests"
Number of active HTTP requests.
Instrument: updowncounter
Unit: {request}
iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_active_requests()
:"http.client.active_requests"
?HTTP_CLIENT_ACTIVE_REQUESTS.
'http.client.active_requests'
@spec http_client_connection_duration() :: :"http.client.connection.duration"
The duration of the successfully established outbound HTTP connections.
Instrument: histogram
Unit: s
iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_connection_duration()
:"http.client.connection.duration"
?HTTP_CLIENT_CONNECTION_DURATION.
'http.client.connection.duration'
@spec http_client_open_connections() :: :"http.client.open_connections"
Number of outbound HTTP connections that are currently active or idle on the client.
Instrument: updowncounter
Unit: {connection}
iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_open_connections()
:"http.client.open_connections"
?HTTP_CLIENT_OPEN_CONNECTIONS.
'http.client.open_connections'
@spec http_client_request_body_size() :: :"http.client.request.body.size"
Size of HTTP client request bodies.
Instrument: histogram
Unit: By
Notes
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.
iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_request_body_size()
:"http.client.request.body.size"
?HTTP_CLIENT_REQUEST_BODY_SIZE.
'http.client.request.body.size'
@spec http_client_response_body_size() :: :"http.client.response.body.size"
Size of HTTP client response bodies.
Instrument: histogram
Unit: By
Notes
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.
iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_response_body_size()
:"http.client.response.body.size"
?HTTP_CLIENT_RESPONSE_BODY_SIZE.
'http.client.response.body.size'
@spec http_server_active_requests() :: :"http.server.active_requests"
Number of active HTTP server requests.
Instrument: updowncounter
Unit: {request}
iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_server_active_requests()
:"http.server.active_requests"
?HTTP_SERVER_ACTIVE_REQUESTS.
'http.server.active_requests'
@spec http_server_request_body_size() :: :"http.server.request.body.size"
Size of HTTP server request bodies.
Instrument: histogram
Unit: By
Notes
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.
iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_server_request_body_size()
:"http.server.request.body.size"
?HTTP_SERVER_REQUEST_BODY_SIZE.
'http.server.request.body.size'
@spec http_server_response_body_size() :: :"http.server.response.body.size"
Size of HTTP server response bodies.
Instrument: histogram
Unit: By
Notes
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.
iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_server_response_body_size()
:"http.server.response.body.size"
?HTTP_SERVER_RESPONSE_BODY_SIZE.
'http.server.response.body.size'