| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379 |
- /*
- * 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
- {
- /**
- The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network.
- */
- static constexpr const char *kNetworkCarrierIcc = "network.carrier.icc";
- /**
- The mobile carrier country code.
- */
- static constexpr const char *kNetworkCarrierMcc = "network.carrier.mcc";
- /**
- The mobile carrier network code.
- */
- static constexpr const char *kNetworkCarrierMnc = "network.carrier.mnc";
- /**
- The name of the mobile carrier.
- */
- static constexpr const char *kNetworkCarrierName = "network.carrier.name";
- /**
- The state of network connection
- <p>
- Connection states are defined as part of the <a
- href="https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2">rfc9293</a>
- */
- static constexpr const char *kNetworkConnectionState = "network.connection.state";
- /**
- This describes more details regarding the connection.type. It may be the type of cell technology
- connection, but it could be used for describing details about a wifi connection.
- */
- static constexpr const char *kNetworkConnectionSubtype = "network.connection.subtype";
- /**
- The internet connection type.
- */
- static constexpr const char *kNetworkConnectionType = "network.connection.type";
- /**
- The network interface name.
- */
- static constexpr const char *kNetworkInterfaceName = "network.interface.name";
- /**
- The network IO operation direction.
- */
- static constexpr const char *kNetworkIoDirection = "network.io.direction";
- /**
- 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";
- /**
- <a href="https://wikipedia.org/wiki/Application_layer">OSI application layer</a> or non-OSI
- equivalent. <p> 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.
- <p>
- If protocol version is subject to negotiation (for example using <a
- href="https://www.rfc-editor.org/rfc/rfc7301.html">ALPN</a>), 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";
- /**
- <a href="https://wikipedia.org/wiki/Transport_layer">OSI transport layer</a> or <a
- href="https://wikipedia.org/wiki/Inter-process_communication">inter-process communication
- method</a>. <p> The value SHOULD be normalized to lowercase. <p> 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";
- /**
- <a href="https://wikipedia.org/wiki/Network_layer">OSI network layer</a> or non-OSI equivalent.
- <p>
- The value SHOULD be normalized to lowercase.
- */
- static constexpr const char *kNetworkType = "network.type";
- namespace NetworkConnectionStateValues
- {
- /**
- none
- */
- static constexpr const char *kClosed = "closed";
- /**
- none
- */
- static constexpr const char *kCloseWait = "close_wait";
- /**
- none
- */
- static constexpr const char *kClosing = "closing";
- /**
- none
- */
- static constexpr const char *kEstablished = "established";
- /**
- none
- */
- static constexpr const char *kFinWait1 = "fin_wait_1";
- /**
- none
- */
- static constexpr const char *kFinWait2 = "fin_wait_2";
- /**
- none
- */
- static constexpr const char *kLastAck = "last_ack";
- /**
- none
- */
- static constexpr const char *kListen = "listen";
- /**
- none
- */
- static constexpr const char *kSynReceived = "syn_received";
- /**
- none
- */
- static constexpr const char *kSynSent = "syn_sent";
- /**
- none
- */
- static constexpr const char *kTimeWait = "time_wait";
- } // namespace NetworkConnectionStateValues
- namespace NetworkConnectionSubtypeValues
- {
- /**
- GPRS
- */
- static constexpr const char *kGprs = "gprs";
- /**
- EDGE
- */
- static constexpr const char *kEdge = "edge";
- /**
- UMTS
- */
- static constexpr const char *kUmts = "umts";
- /**
- CDMA
- */
- static constexpr const char *kCdma = "cdma";
- /**
- EVDO Rel. 0
- */
- static constexpr const char *kEvdo0 = "evdo_0";
- /**
- EVDO Rev. A
- */
- static constexpr const char *kEvdoA = "evdo_a";
- /**
- CDMA2000 1XRTT
- */
- static constexpr const char *kCdma20001xrtt = "cdma2000_1xrtt";
- /**
- HSDPA
- */
- static constexpr const char *kHsdpa = "hsdpa";
- /**
- HSUPA
- */
- static constexpr const char *kHsupa = "hsupa";
- /**
- HSPA
- */
- static constexpr const char *kHspa = "hspa";
- /**
- IDEN
- */
- static constexpr const char *kIden = "iden";
- /**
- EVDO Rev. B
- */
- static constexpr const char *kEvdoB = "evdo_b";
- /**
- LTE
- */
- static constexpr const char *kLte = "lte";
- /**
- EHRPD
- */
- static constexpr const char *kEhrpd = "ehrpd";
- /**
- HSPAP
- */
- static constexpr const char *kHspap = "hspap";
- /**
- GSM
- */
- static constexpr const char *kGsm = "gsm";
- /**
- TD-SCDMA
- */
- static constexpr const char *kTdScdma = "td_scdma";
- /**
- IWLAN
- */
- static constexpr const char *kIwlan = "iwlan";
- /**
- 5G NR (New Radio)
- */
- static constexpr const char *kNr = "nr";
- /**
- 5G NRNSA (New Radio Non-Standalone)
- */
- static constexpr const char *kNrnsa = "nrnsa";
- /**
- LTE CA
- */
- static constexpr const char *kLteCa = "lte_ca";
- } // namespace NetworkConnectionSubtypeValues
- namespace NetworkConnectionTypeValues
- {
- /**
- none
- */
- static constexpr const char *kWifi = "wifi";
- /**
- none
- */
- static constexpr const char *kWired = "wired";
- /**
- none
- */
- static constexpr const char *kCell = "cell";
- /**
- none
- */
- static constexpr const char *kUnavailable = "unavailable";
- /**
- none
- */
- static constexpr const char *kUnknown = "unknown";
- } // namespace NetworkConnectionTypeValues
- namespace NetworkIoDirectionValues
- {
- /**
- none
- */
- static constexpr const char *kTransmit = "transmit";
- /**
- none
- */
- static constexpr const char *kReceive = "receive";
- } // namespace NetworkIoDirectionValues
- 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
|