View Source OpenTelemetry.SemConv.ServerAttributes (OpenTelemetry.SemConv v1.27.0)

OpenTelemetry Semantic Conventions for Server attributes.

Summary

Functions

Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.

Server port number.

Functions

@spec server_address() :: :"server.address"

Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.

Value type

Value must be of type atom() | String.t().

Notes

When observed from the client side, and when communicating through an intermediary, server.address SHOULD represent the server address behind any intermediaries, for example proxies, if it's available.

Examples

["example.com", "10.1.2.80", "/tmp/my.sock"]
iex> OpenTelemetry.SemConv.ServerAttributes.server_address()
:"server.address"
@spec server_port() :: :"server.port"

Server port number.

Value type

Value must be of type integer().

Notes

When observed from the client side, and when communicating through an intermediary, server.port SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.

Examples

[80, 8080, 443]
iex> OpenTelemetry.SemConv.ServerAttributes.server_port()
:"server.port"