Skip to content

Commit 619dd0c

Browse files
committed
up
1 parent 6a26b93 commit 619dd0c

File tree

83 files changed

+2191
-821
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2191
-821
lines changed

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/aws_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/aws_attributes.py

+13-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
15+
from deprecated import deprecated
1616
from enum import Enum
1717

1818

@@ -54,7 +54,7 @@
5454

5555
AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES = "aws.dynamodb.global_secondary_index_updates"
5656
"""
57-
The JSON-serialized value of each item in the the `GlobalSecondaryIndexUpdates` request field.
57+
The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field.
5858
"""
5959

6060

@@ -132,7 +132,7 @@
132132

133133
AWS_DYNAMODB_TABLE_COUNT = "aws.dynamodb.table_count"
134134
"""
135-
The the number of items in the `TableNames` response parameter.
135+
The number of items in the `TableNames` response parameter.
136136
"""
137137

138138

@@ -168,19 +168,25 @@
168168

169169
AWS_ECS_TASK_ARN = "aws.ecs.task.arn"
170170
"""
171-
The ARN of an [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html).
171+
The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids).
172172
"""
173173

174174

175175
AWS_ECS_TASK_FAMILY = "aws.ecs.task.family"
176176
"""
177-
The task definition family this task definition is a member of.
177+
The family name of the [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html) used to create the ECS task.
178+
"""
179+
180+
181+
AWS_ECS_TASK_ID = "aws.ecs.task.id"
182+
"""
183+
The ID of a running ECS task. The ID MUST be extracted from `task.arn`.
178184
"""
179185

180186

181187
AWS_ECS_TASK_REVISION = "aws.ecs.task.revision"
182188
"""
183-
The revision for this task definition.
189+
The revision for the task definition used to create the ECS task.
184190
"""
185191

186192

@@ -296,6 +302,7 @@
296302
"""
297303

298304

305+
299306
class AwsEcsLaunchtypeValues(Enum):
300307
EC2 = "ec2"
301308
"""ec2."""

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/browser_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/browser_attributes.py

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
16+
1517
BROWSER_BRANDS = "browser.brands"
1618
"""
1719
Array of brand name and version separated by a space.Note: This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`).

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/user_agent_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/client_attributes.py

+12-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,19 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
USER_AGENT_ORIGINAL = "user_agent.original"
15+
16+
17+
CLIENT_ADDRESS = "client.address"
18+
"""
19+
20+
Deprecated: The attribute is stable now, use :py:const:`opentelemetry.semconv.attributes.client_attributes.CLIENT_ADDRESS` instead.
1621
"""
17-
Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client.
18-
See Also: the attribute is stable now, use :py:const:`opentelemetry.semconv.user_agent_attributes.USER_AGENT_ORIGINAL` instead.
22+
23+
24+
CLIENT_PORT = "client.port"
25+
"""
26+
27+
Deprecated: The attribute is stable now, use :py:const:`opentelemetry.semconv.attributes.client_attributes.CLIENT_PORT` instead.
1928
"""
2029

2130

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/cloud_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/cloud_attributes.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
15+
from deprecated import deprecated
1616
from enum import Enum
1717

1818

@@ -68,6 +68,7 @@
6868
"""
6969

7070

71+
7172
class CloudPlatformValues(Enum):
7273
ALIBABA_CLOUD_ECS = "alibaba_cloud_ecs"
7374
"""Alibaba Cloud Elastic Compute Service."""
@@ -102,6 +103,9 @@ class CloudPlatformValues(Enum):
102103
AZURE_VM = "azure_vm"
103104
"""Azure Virtual Machines."""
104105

106+
AZURE_CONTAINER_APPS = "azure_container_apps"
107+
"""Azure Container Apps."""
108+
105109
AZURE_CONTAINER_INSTANCES = "azure_container_instances"
106110
"""Azure Container Instances."""
107111

@@ -151,6 +155,7 @@ class CloudPlatformValues(Enum):
151155
"""Tencent Cloud Serverless Cloud Function (SCF)."""
152156

153157

158+
154159
class CloudProviderValues(Enum):
155160
ALIBABA_CLOUD = "alibaba_cloud"
156161
"""Alibaba Cloud."""

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/cloudevents_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/cloudevents_attributes.py

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
16+
1517
CLOUDEVENTS_EVENT_ID = "cloudevents.event_id"
1618
"""
1719
The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event.

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/code_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/code_attributes.py

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
16+
1517
CODE_COLUMN = "code.column"
1618
"""
1719
The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`.

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/container_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/container_attributes.py

+29-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from deprecated import deprecated
16+
from enum import Enum
17+
18+
1519
CONTAINER_COMMAND = "container.command"
1620
"""
1721
The command used to run the container (i.e. the command name).Note: If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage.
@@ -30,6 +34,12 @@
3034
"""
3135

3236

37+
CONTAINER_CPU_STATE = "container.cpu.state"
38+
"""
39+
The CPU state for this data point.
40+
"""
41+
42+
3343
CONTAINER_ID = "container.id"
3444
"""
3545
Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated.
@@ -62,12 +72,18 @@
6272
"""
6373

6474

65-
CONTAINER_LABELS_TEMPLATE = "container.labels"
75+
CONTAINER_LABEL_TEMPLATE = "container.label"
6676
"""
6777
Container labels, `<key>` being the label name, the value being the label value.
6878
"""
6979

7080

81+
CONTAINER_LABELS_TEMPLATE = "container.labels"
82+
"""
83+
Deprecated: Replaced by `container.label`.
84+
"""
85+
86+
7187
CONTAINER_NAME = "container.name"
7288
"""
7389
Container name used by container runtime.
@@ -80,3 +96,15 @@
8096
"""
8197

8298

99+
100+
class ContainerCpuStateValues(Enum):
101+
USER = "user"
102+
"""When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows)."""
103+
104+
SYSTEM = "system"
105+
"""When CPU is used by the system (host OS)."""
106+
107+
KERNEL = "kernel"
108+
"""When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows)."""
109+
110+

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/db_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/db_attributes.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
15+
from deprecated import deprecated
1616
from enum import Enum
1717

1818

@@ -60,7 +60,7 @@
6060

6161
DB_CONNECTION_STRING = "db.connection_string"
6262
"""
63-
The connection string used to connect to the database. It is recommended to remove embedded credentials.
63+
Deprecated: "Replaced by `server.address` and `server.port`.".
6464
"""
6565

6666

@@ -120,7 +120,7 @@
120120

121121
DB_ELASTICSEARCH_NODE_NAME = "db.elasticsearch.node.name"
122122
"""
123-
Represents the human-readable identifier of the node/instance to which a request was routed.
123+
Deprecated: Replaced by `db.instance.id`.
124124
"""
125125

126126

@@ -138,7 +138,7 @@
138138

139139
DB_JDBC_DRIVER_CLASSNAME = "db.jdbc.driver_classname"
140140
"""
141-
The fully-qualified class name of the [Java Database Connectivity (JDBC)](https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/) driver used to connect.
141+
Deprecated: Removed as not used.
142142
"""
143143

144144

@@ -196,6 +196,7 @@
196196
"""
197197

198198

199+
199200
class DbCassandraConsistencyLevelValues(Enum):
200201
ALL = "all"
201202
"""all."""
@@ -231,6 +232,7 @@ class DbCassandraConsistencyLevelValues(Enum):
231232
"""local_serial."""
232233

233234

235+
234236
class DbCosmosdbConnectionModeValues(Enum):
235237
GATEWAY = "gateway"
236238
"""Gateway (HTTP) connections mode."""
@@ -239,6 +241,7 @@ class DbCosmosdbConnectionModeValues(Enum):
239241
"""Direct connection."""
240242

241243

244+
242245
class DbCosmosdbOperationTypeValues(Enum):
243246
INVALID = "Invalid"
244247
"""invalid."""
@@ -286,6 +289,7 @@ class DbCosmosdbOperationTypeValues(Enum):
286289
"""execute_javascript."""
287290

288291

292+
289293
class DbSystemValues(Enum):
290294
OTHER_SQL = "other_sql"
291295
"""Some other SQL database. Fallback only. See notes."""

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/deployment_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/deployment_attributes.py

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
16+
1517
DEPLOYMENT_ENVIRONMENT = "deployment.environment"
1618
"""
1719
Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier).Note: `deployment.environment` does not affect the uniqueness constraints defined through

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/destination_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/destination_attributes.py

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
16+
1517
DESTINATION_ADDRESS = "destination.address"
1618
"""
1719
Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.Note: When observed from the source side, and when communicating through an intermediary, `destination.address` SHOULD represent the destination address behind any intermediaries, for example proxies, if it's available.

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/device_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/device_attributes.py

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
16+
1517
DEVICE_ID = "device.id"
1618
"""
1719
A unique identifier representing the device.Note: The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. Caution should be taken when storing personal data or anything which can identify a user. GDPR and data protection laws may apply, ensure you do your own due diligence.

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/disk_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/disk_attributes.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
15+
from deprecated import deprecated
1616
from enum import Enum
1717

1818

@@ -22,6 +22,7 @@
2222
"""
2323

2424

25+
2526
class DiskIoDirectionValues(Enum):
2627
READ = "read"
2728
"""read."""

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/dns_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/dns_attributes.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
16+
1517
DNS_QUESTION_NAME = "dns.question.name"
1618
"""
17-
The name being queried.Note: The name being queried.
18-
If the name field contains non-printable characters (below 32 or above 126), those characters should be represented as escaped base 10 integers (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns, and line feeds should be converted to \t, \r, and \n respectively.
19+
The name being queried.Note: If the name field contains non-printable characters (below 32 or above 126), those characters should be represented as escaped base 10 integers (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns, and line feeds should be converted to \t, \r, and \n respectively.
1920
"""
2021

2122

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/enduser_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/enduser_attributes.py

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
16+
1517
ENDUSER_ID = "enduser.id"
1618
"""
1719
Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright The OpenTelemetry Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from deprecated import deprecated
16+
from enum import Enum
17+
18+
19+
ERROR_TYPE = "error.type"
20+
"""
21+
22+
Deprecated: The attribute is stable now, use :py:const:`opentelemetry.semconv.attributes.error_attributes.ERROR_TYPE` instead.
23+
"""
24+
25+
26+
27+
@deprecated(reason="The attribute is stable now, use :py:const:`opentelemetry.semconv.attributes.error_attributes.ErrorTypeValues` instead.")
28+
class ErrorTypeValues(Enum):
29+
OTHER = "_OTHER"
30+
"""A fallback error value to be used when the instrumentation doesn't define a custom value."""
31+
32+

opentelemetry-semantic-conventions/src/opentelemetry/semconv/incubating/event_attributes.py renamed to opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/event_attributes.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
16+
1517
EVENT_NAME = "event.name"
1618
"""
17-
Identifies the class / type of event.Note: Event names are subject to the same rules as [attribute names](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.26.0/specification/common/attribute-naming.md). Notably, event names are namespaced to avoid collisions and provide a clean separation of semantics for events in separate domains like browser, mobile, and kubernetes.
19+
Identifies the class / type of event.Note: Event names are subject to the same rules as [attribute names](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.31.0/specification/common/attribute-naming.md). Notably, event names are namespaced to avoid collisions and provide a clean separation of semantics for events in separate domains like browser, mobile, and kubernetes.
1820
"""
1921

2022

0 commit comments

Comments
 (0)