/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ /* * DO NOT EDIT, this is an Auto-generated file from: * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2 */ #pragma once #include "opentelemetry/common/macros.h" #include "opentelemetry/version.h" OPENTELEMETRY_BEGIN_NAMESPACE namespace semconv { namespace network { /** Local address of the network connection - IP address or Unix domain socket name. */ static constexpr const char *kNetworkLocalAddress = "network.local.address"; /** Local port number of the network connection. */ static constexpr const char *kNetworkLocalPort = "network.local.port"; /** Peer address of the network connection - IP address or Unix domain socket name. */ static constexpr const char *kNetworkPeerAddress = "network.peer.address"; /** Peer port number of the network connection. */ static constexpr const char *kNetworkPeerPort = "network.peer.port"; /** OSI application layer or non-OSI equivalent.
The value SHOULD be normalized to lowercase. */ static constexpr const char *kNetworkProtocolName = "network.protocol.name"; /** The actual version of the protocol used for network communication.
If protocol version is subject to negotiation (for example using ALPN), this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set. */ static constexpr const char *kNetworkProtocolVersion = "network.protocol.version"; /** OSI transport layer or inter-process communication method.
The value SHOULD be normalized to lowercase.
Consider always setting the transport when setting a port number, since a port number is ambiguous without knowing the transport. For example different processes could be listening on TCP port 12345 and UDP port 12345. */ static constexpr const char *kNetworkTransport = "network.transport"; /** OSI network layer or non-OSI equivalent.
The value SHOULD be normalized to lowercase. */ static constexpr const char *kNetworkType = "network.type"; namespace NetworkTransportValues { /** TCP */ static constexpr const char *kTcp = "tcp"; /** UDP */ static constexpr const char *kUdp = "udp"; /** Named or anonymous pipe. */ static constexpr const char *kPipe = "pipe"; /** Unix domain socket */ static constexpr const char *kUnix = "unix"; /** QUIC */ static constexpr const char *kQuic = "quic"; } // namespace NetworkTransportValues namespace NetworkTypeValues { /** IPv4 */ static constexpr const char *kIpv4 = "ipv4"; /** IPv6 */ static constexpr const char *kIpv6 = "ipv6"; } // namespace NetworkTypeValues } // namespace network } // namespace semconv OPENTELEMETRY_END_NAMESPACE