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

Link to this function

http_client_active_requests()

View Source
@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"
Link to this function

http_client_connection_duration()

View Source
@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"
Link to this function

http_client_open_connections()

View Source
@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"
Link to this function

http_client_request_body_size()

View Source
@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"
Link to this function

http_client_response_body_size()

View Source
@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"
Link to this function

http_server_active_requests()

View Source
@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"
Link to this function

http_server_request_body_size()

View Source
@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"
Link to this function

http_server_response_body_size()

View Source
@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"