1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
|
/*
* 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
{
static constexpr const char *kClosed = "closed";
static constexpr const char *kCloseWait = "close_wait";
static constexpr const char *kClosing = "closing";
static constexpr const char *kEstablished = "established";
static constexpr const char *kFinWait1 = "fin_wait_1";
static constexpr const char *kFinWait2 = "fin_wait_2";
static constexpr const char *kLastAck = "last_ack";
static constexpr const char *kListen = "listen";
static constexpr const char *kSynReceived = "syn_received";
static constexpr const char *kSynSent = "syn_sent";
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
{
static constexpr const char *kWifi = "wifi";
static constexpr const char *kWired = "wired";
static constexpr const char *kCell = "cell";
static constexpr const char *kUnavailable = "unavailable";
static constexpr const char *kUnknown = "unknown";
} // namespace NetworkConnectionTypeValues
namespace NetworkIoDirectionValues
{
static constexpr const char *kTransmit = "transmit";
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
|