blob: 10de3e54dca3a8f5fad6f99212c0bbbee88e1971 (
about) (
plain)
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
|
# Copyright The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from enum import Enum
from typing import Final
from deprecated import deprecated
NETWORK_CARRIER_ICC: Final = "network.carrier.icc"
"""
The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network.
"""
NETWORK_CARRIER_MCC: Final = "network.carrier.mcc"
"""
The mobile carrier country code.
"""
NETWORK_CARRIER_MNC: Final = "network.carrier.mnc"
"""
The mobile carrier network code.
"""
NETWORK_CARRIER_NAME: Final = "network.carrier.name"
"""
The name of the mobile carrier.
"""
NETWORK_CONNECTION_STATE: Final = "network.connection.state"
"""
The state of network connection.
Note: Connection states are defined as part of the [rfc9293](https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2).
"""
NETWORK_CONNECTION_SUBTYPE: Final = "network.connection.subtype"
"""
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.
"""
NETWORK_CONNECTION_TYPE: Final = "network.connection.type"
"""
The internet connection type.
"""
NETWORK_INTERFACE_NAME: Final = "network.interface.name"
"""
The network interface name.
"""
NETWORK_IO_DIRECTION: Final = "network.io.direction"
"""
The network IO operation direction.
"""
NETWORK_LOCAL_ADDRESS: Final = "network.local.address"
"""
Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NETWORK_LOCAL_ADDRESS`.
"""
NETWORK_LOCAL_PORT: Final = "network.local.port"
"""
Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NETWORK_LOCAL_PORT`.
"""
NETWORK_PEER_ADDRESS: Final = "network.peer.address"
"""
Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NETWORK_PEER_ADDRESS`.
"""
NETWORK_PEER_PORT: Final = "network.peer.port"
"""
Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NETWORK_PEER_PORT`.
"""
NETWORK_PROTOCOL_NAME: Final = "network.protocol.name"
"""
Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NETWORK_PROTOCOL_NAME`.
"""
NETWORK_PROTOCOL_VERSION: Final = "network.protocol.version"
"""
Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NETWORK_PROTOCOL_VERSION`.
"""
NETWORK_TRANSPORT: Final = "network.transport"
"""
Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NETWORK_TRANSPORT`.
"""
NETWORK_TYPE: Final = "network.type"
"""
Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NETWORK_TYPE`.
"""
class NetworkConnectionStateValues(Enum):
CLOSED = "closed"
"""closed."""
CLOSE_WAIT = "close_wait"
"""close_wait."""
CLOSING = "closing"
"""closing."""
ESTABLISHED = "established"
"""established."""
FIN_WAIT_1 = "fin_wait_1"
"""fin_wait_1."""
FIN_WAIT_2 = "fin_wait_2"
"""fin_wait_2."""
LAST_ACK = "last_ack"
"""last_ack."""
LISTEN = "listen"
"""listen."""
SYN_RECEIVED = "syn_received"
"""syn_received."""
SYN_SENT = "syn_sent"
"""syn_sent."""
TIME_WAIT = "time_wait"
"""time_wait."""
class NetworkConnectionSubtypeValues(Enum):
GPRS = "gprs"
"""GPRS."""
EDGE = "edge"
"""EDGE."""
UMTS = "umts"
"""UMTS."""
CDMA = "cdma"
"""CDMA."""
EVDO_0 = "evdo_0"
"""EVDO Rel. 0."""
EVDO_A = "evdo_a"
"""EVDO Rev. A."""
CDMA2000_1XRTT = "cdma2000_1xrtt"
"""CDMA2000 1XRTT."""
HSDPA = "hsdpa"
"""HSDPA."""
HSUPA = "hsupa"
"""HSUPA."""
HSPA = "hspa"
"""HSPA."""
IDEN = "iden"
"""IDEN."""
EVDO_B = "evdo_b"
"""EVDO Rev. B."""
LTE = "lte"
"""LTE."""
EHRPD = "ehrpd"
"""EHRPD."""
HSPAP = "hspap"
"""HSPAP."""
GSM = "gsm"
"""GSM."""
TD_SCDMA = "td_scdma"
"""TD-SCDMA."""
IWLAN = "iwlan"
"""IWLAN."""
NR = "nr"
"""5G NR (New Radio)."""
NRNSA = "nrnsa"
"""5G NRNSA (New Radio Non-Standalone)."""
LTE_CA = "lte_ca"
"""LTE CA."""
class NetworkConnectionTypeValues(Enum):
WIFI = "wifi"
"""wifi."""
WIRED = "wired"
"""wired."""
CELL = "cell"
"""cell."""
UNAVAILABLE = "unavailable"
"""unavailable."""
UNKNOWN = "unknown"
"""unknown."""
class NetworkIoDirectionValues(Enum):
TRANSMIT = "transmit"
"""transmit."""
RECEIVE = "receive"
"""receive."""
@deprecated(
reason="Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NetworkTransportValues`."
) # type: ignore
class NetworkTransportValues(Enum):
TCP = "tcp"
"""Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NetworkTransportValues.TCP`."""
UDP = "udp"
"""Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NetworkTransportValues.UDP`."""
PIPE = "pipe"
"""Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NetworkTransportValues.PIPE`."""
UNIX = "unix"
"""Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NetworkTransportValues.UNIX`."""
QUIC = "quic"
"""QUIC."""
@deprecated(
reason="Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NetworkTypeValues`."
) # type: ignore
class NetworkTypeValues(Enum):
IPV4 = "ipv4"
"""Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NetworkTypeValues.IPV4`."""
IPV6 = "ipv6"
"""Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NetworkTypeValues.IPV6`."""
|