|
| 1 | +<?php |
| 2 | + |
| 3 | +// DO NOT EDIT, this is an Auto-generated file from script/semantic-conventions |
| 4 | + |
| 5 | +declare(strict_types=1); |
| 6 | + |
| 7 | +namespace OpenTelemetry\SemConv\Attributes; |
| 8 | + |
| 9 | +/** |
| 10 | + * Semantic attributes and corresponding values for network. |
| 11 | + * @see https://opentelemetry.io/docs/specs/semconv/registry/attributes/network/ |
| 12 | + */ |
| 13 | +interface NetworkAttributes |
| 14 | +{ |
| 15 | + /** |
| 16 | + * Local address of the network connection - IP address or Unix domain socket name. |
| 17 | + * |
| 18 | + * @stable |
| 19 | + */ |
| 20 | + public const NETWORK_LOCAL_ADDRESS = 'network.local.address'; |
| 21 | + |
| 22 | + /** |
| 23 | + * Local port number of the network connection. |
| 24 | + * |
| 25 | + * @stable |
| 26 | + */ |
| 27 | + public const NETWORK_LOCAL_PORT = 'network.local.port'; |
| 28 | + |
| 29 | + /** |
| 30 | + * Peer address of the network connection - IP address or Unix domain socket name. |
| 31 | + * |
| 32 | + * @stable |
| 33 | + */ |
| 34 | + public const NETWORK_PEER_ADDRESS = 'network.peer.address'; |
| 35 | + |
| 36 | + /** |
| 37 | + * Peer port number of the network connection. |
| 38 | + * |
| 39 | + * @stable |
| 40 | + */ |
| 41 | + public const NETWORK_PEER_PORT = 'network.peer.port'; |
| 42 | + |
| 43 | + /** |
| 44 | + * [OSI application layer](https://wikipedia.org/wiki/Application_layer) or non-OSI equivalent. |
| 45 | + * The value SHOULD be normalized to lowercase. |
| 46 | + * @stable |
| 47 | + */ |
| 48 | + public const NETWORK_PROTOCOL_NAME = 'network.protocol.name'; |
| 49 | + |
| 50 | + /** |
| 51 | + * The actual version of the protocol used for network communication. |
| 52 | + * If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set. |
| 53 | + * |
| 54 | + * @stable |
| 55 | + */ |
| 56 | + public const NETWORK_PROTOCOL_VERSION = 'network.protocol.version'; |
| 57 | + |
| 58 | + /** |
| 59 | + * [OSI transport layer](https://wikipedia.org/wiki/Transport_layer) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). |
| 60 | + * |
| 61 | + * The value SHOULD be normalized to lowercase. |
| 62 | + * |
| 63 | + * Consider always setting the transport when setting a port number, since |
| 64 | + * a port number is ambiguous without knowing the transport. For example |
| 65 | + * different processes could be listening on TCP port 12345 and UDP port 12345. |
| 66 | + * |
| 67 | + * @stable |
| 68 | + */ |
| 69 | + public const NETWORK_TRANSPORT = 'network.transport'; |
| 70 | + |
| 71 | + /** |
| 72 | + * TCP |
| 73 | + * @stable |
| 74 | + */ |
| 75 | + public const NETWORK_TRANSPORT_VALUE_TCP = 'tcp'; |
| 76 | + |
| 77 | + /** |
| 78 | + * UDP |
| 79 | + * @stable |
| 80 | + */ |
| 81 | + public const NETWORK_TRANSPORT_VALUE_UDP = 'udp'; |
| 82 | + |
| 83 | + /** |
| 84 | + * Named or anonymous pipe. |
| 85 | + * @stable |
| 86 | + */ |
| 87 | + public const NETWORK_TRANSPORT_VALUE_PIPE = 'pipe'; |
| 88 | + |
| 89 | + /** |
| 90 | + * Unix domain socket |
| 91 | + * @stable |
| 92 | + */ |
| 93 | + public const NETWORK_TRANSPORT_VALUE_UNIX = 'unix'; |
| 94 | + |
| 95 | + /** |
| 96 | + * QUIC |
| 97 | + * @stable |
| 98 | + */ |
| 99 | + public const NETWORK_TRANSPORT_VALUE_QUIC = 'quic'; |
| 100 | + |
| 101 | + /** |
| 102 | + * [OSI network layer](https://wikipedia.org/wiki/Network_layer) or non-OSI equivalent. |
| 103 | + * The value SHOULD be normalized to lowercase. |
| 104 | + * @stable |
| 105 | + */ |
| 106 | + public const NETWORK_TYPE = 'network.type'; |
| 107 | + |
| 108 | + /** |
| 109 | + * IPv4 |
| 110 | + * @stable |
| 111 | + */ |
| 112 | + public const NETWORK_TYPE_VALUE_IPV4 = 'ipv4'; |
| 113 | + |
| 114 | + /** |
| 115 | + * IPv6 |
| 116 | + * @stable |
| 117 | + */ |
| 118 | + public const NETWORK_TYPE_VALUE_IPV6 = 'ipv6'; |
| 119 | + |
| 120 | +} |
0 commit comments