Current section

Files

Jump to
otel lib otel semantic_conventions attributes http.ex
Raw

lib/otel/semantic_conventions/attributes/http.ex

defmodule Otel.SemanticConventions.Attributes.HTTP do
# This is an auto-generated file
@moduledoc """
OpenTelemetry Semantic Conventions for HTTP attributes.
"""
@doc """
HTTP request headers, `<key>` being the normalized HTTP Header name (lowercase), the value being the header values.
iex> Otel.SemanticConventions.Attributes.HTTP.http_request_header()
"http.request.header"
"""
@spec http_request_header :: String.t()
def http_request_header do
"http.request.header"
end
@typedoc """
HTTP request method.
"""
@type http_request_method_values :: %{
:connect => String.t(),
:delete => String.t(),
:get => String.t(),
:head => String.t(),
:options => String.t(),
:patch => String.t(),
:post => String.t(),
:put => String.t(),
:trace => String.t(),
:other => String.t()
}
@doc """
HTTP request method.
iex> Otel.SemanticConventions.Attributes.HTTP.http_request_method()
"http.request.method"
"""
@spec http_request_method :: String.t()
def http_request_method do
"http.request.method"
end
@doc """
Enum values for `http_request_method`.
iex> Otel.SemanticConventions.Attributes.HTTP.http_request_method_values()[:connect]
"CONNECT"
"""
@spec http_request_method_values :: http_request_method_values()
def http_request_method_values do
%{
:connect => "CONNECT",
:delete => "DELETE",
:get => "GET",
:head => "HEAD",
:options => "OPTIONS",
:patch => "PATCH",
:post => "POST",
:put => "PUT",
:trace => "TRACE",
:other => "_OTHER"
}
end
@doc """
Original HTTP method sent by the client in the request line.
iex> Otel.SemanticConventions.Attributes.HTTP.http_request_method_original()
"http.request.method_original"
"""
@spec http_request_method_original :: String.t()
def http_request_method_original do
"http.request.method_original"
end
@doc """
The ordinal number of request resending attempt (for any reason, including redirects).
iex> Otel.SemanticConventions.Attributes.HTTP.http_request_resend_count()
"http.request.resend_count"
"""
@spec http_request_resend_count :: String.t()
def http_request_resend_count do
"http.request.resend_count"
end
@doc """
HTTP response headers, `<key>` being the normalized HTTP Header name (lowercase), the value being the header values.
iex> Otel.SemanticConventions.Attributes.HTTP.http_response_header()
"http.response.header"
"""
@spec http_response_header :: String.t()
def http_response_header do
"http.response.header"
end
@doc """
[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6).
iex> Otel.SemanticConventions.Attributes.HTTP.http_response_status_code()
"http.response.status_code"
"""
@spec http_response_status_code :: String.t()
def http_response_status_code do
"http.response.status_code"
end
@doc """
The matched route template for the request. This **MUST** be low-cardinality and include all static path segments, with dynamic path segments represented with placeholders.
iex> Otel.SemanticConventions.Attributes.HTTP.http_route()
"http.route"
"""
@spec http_route :: String.t()
def http_route do
"http.route"
end
end