Skip to content

Commit 81a02da

Browse files
committed
up
1 parent ff7142c commit 81a02da

Some content is hidden

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

64 files changed

+5125
-13
lines changed

opentelemetry-semantic-conventions/src/opentelemetry/semconv/client_attributes.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
# distributed under the License is distributed on an "AS IS" BASIS,
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
13-
# limitations under the License.CLIENT_ADDRESS = "client.address"
13+
# limitations under the License.
14+
15+
CLIENT_ADDRESS = "client.address"
1416
"""
1517
Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.Note: When observed from the server side, and when communicating through an intermediary, `client.address` SHOULD represent the client address behind any intermediaries, for example proxies, if it's available.
1618
"""

opentelemetry-semantic-conventions/src/opentelemetry/semconv/error_attributes.py

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

15+
1516
from enum import Enum
1617

1718

opentelemetry-semantic-conventions/src/opentelemetry/semconv/http_attributes.py

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

15+
1516
from enum import Enum
1617

1718

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,306 @@
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+
16+
from enum import Enum
17+
18+
19+
AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS = "aws.dynamodb.attribute_definitions"
20+
"""
21+
The JSON-serialized value of each item in the `AttributeDefinitions` request field.
22+
"""
23+
24+
25+
AWS_DYNAMODB_ATTRIBUTES_TO_GET = "aws.dynamodb.attributes_to_get"
26+
"""
27+
The value of the `AttributesToGet` request parameter.
28+
"""
29+
30+
31+
AWS_DYNAMODB_CONSISTENT_READ = "aws.dynamodb.consistent_read"
32+
"""
33+
The value of the `ConsistentRead` request parameter.
34+
"""
35+
36+
37+
AWS_DYNAMODB_CONSUMED_CAPACITY = "aws.dynamodb.consumed_capacity"
38+
"""
39+
The JSON-serialized value of each item in the `ConsumedCapacity` response field.
40+
"""
41+
42+
43+
AWS_DYNAMODB_COUNT = "aws.dynamodb.count"
44+
"""
45+
The value of the `Count` response parameter.
46+
"""
47+
48+
49+
AWS_DYNAMODB_EXCLUSIVE_START_TABLE = "aws.dynamodb.exclusive_start_table"
50+
"""
51+
The value of the `ExclusiveStartTableName` request parameter.
52+
"""
53+
54+
55+
AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES = "aws.dynamodb.global_secondary_index_updates"
56+
"""
57+
The JSON-serialized value of each item in the the `GlobalSecondaryIndexUpdates` request field.
58+
"""
59+
60+
61+
AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES = "aws.dynamodb.global_secondary_indexes"
62+
"""
63+
The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field.
64+
"""
65+
66+
67+
AWS_DYNAMODB_INDEX_NAME = "aws.dynamodb.index_name"
68+
"""
69+
The value of the `IndexName` request parameter.
70+
"""
71+
72+
73+
AWS_DYNAMODB_ITEM_COLLECTION_METRICS = "aws.dynamodb.item_collection_metrics"
74+
"""
75+
The JSON-serialized value of the `ItemCollectionMetrics` response field.
76+
"""
77+
78+
79+
AWS_DYNAMODB_LIMIT = "aws.dynamodb.limit"
80+
"""
81+
The value of the `Limit` request parameter.
82+
"""
83+
84+
85+
AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES = "aws.dynamodb.local_secondary_indexes"
86+
"""
87+
The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field.
88+
"""
89+
90+
91+
AWS_DYNAMODB_PROJECTION = "aws.dynamodb.projection"
92+
"""
93+
The value of the `ProjectionExpression` request parameter.
94+
"""
95+
96+
97+
AWS_DYNAMODB_PROVISIONED_READ_CAPACITY = "aws.dynamodb.provisioned_read_capacity"
98+
"""
99+
The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
100+
"""
101+
102+
103+
AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY = "aws.dynamodb.provisioned_write_capacity"
104+
"""
105+
The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter.
106+
"""
107+
108+
109+
AWS_DYNAMODB_SCAN_FORWARD = "aws.dynamodb.scan_forward"
110+
"""
111+
The value of the `ScanIndexForward` request parameter.
112+
"""
113+
114+
115+
AWS_DYNAMODB_SCANNED_COUNT = "aws.dynamodb.scanned_count"
116+
"""
117+
The value of the `ScannedCount` response parameter.
118+
"""
119+
120+
121+
AWS_DYNAMODB_SEGMENT = "aws.dynamodb.segment"
122+
"""
123+
The value of the `Segment` request parameter.
124+
"""
125+
126+
127+
AWS_DYNAMODB_SELECT = "aws.dynamodb.select"
128+
"""
129+
The value of the `Select` request parameter.
130+
"""
131+
132+
133+
AWS_DYNAMODB_TABLE_COUNT = "aws.dynamodb.table_count"
134+
"""
135+
The the number of items in the `TableNames` response parameter.
136+
"""
137+
138+
139+
AWS_DYNAMODB_TABLE_NAMES = "aws.dynamodb.table_names"
140+
"""
141+
The keys in the `RequestItems` object field.
142+
"""
143+
144+
145+
AWS_DYNAMODB_TOTAL_SEGMENTS = "aws.dynamodb.total_segments"
146+
"""
147+
The value of the `TotalSegments` request parameter.
148+
"""
149+
150+
151+
AWS_ECS_CLUSTER_ARN = "aws.ecs.cluster.arn"
152+
"""
153+
The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html).
154+
"""
155+
156+
157+
AWS_ECS_CONTAINER_ARN = "aws.ecs.container.arn"
158+
"""
159+
The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html).
160+
"""
161+
162+
163+
AWS_ECS_LAUNCHTYPE = "aws.ecs.launchtype"
164+
"""
165+
The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task.
166+
"""
167+
168+
169+
AWS_ECS_TASK_ARN = "aws.ecs.task.arn"
170+
"""
171+
The ARN of an [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html).
172+
"""
173+
174+
175+
AWS_ECS_TASK_FAMILY = "aws.ecs.task.family"
176+
"""
177+
The task definition family this task definition is a member of.
178+
"""
179+
180+
181+
AWS_ECS_TASK_REVISION = "aws.ecs.task.revision"
182+
"""
183+
The revision for this task definition.
184+
"""
185+
186+
187+
AWS_EKS_CLUSTER_ARN = "aws.eks.cluster.arn"
188+
"""
189+
The ARN of an EKS cluster.
190+
"""
191+
192+
193+
AWS_LAMBDA_INVOKED_ARN = "aws.lambda.invoked_arn"
194+
"""
195+
The full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable).Note: This may be different from `cloud.resource_id` if an alias is involved.
196+
"""
197+
198+
199+
AWS_LOG_GROUP_ARNS = "aws.log.group.arns"
200+
"""
201+
The Amazon Resource Name(s) (ARN) of the AWS log group(s).Note: See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format).
202+
"""
203+
204+
205+
AWS_LOG_GROUP_NAMES = "aws.log.group.names"
206+
"""
207+
The name(s) of the AWS log group(s) an application is writing to.Note: Multiple log groups must be supported for cases like multi-container applications, where a single application has sidecar containers, and each write to their own log group.
208+
"""
209+
210+
211+
AWS_LOG_STREAM_ARNS = "aws.log.stream.arns"
212+
"""
213+
The ARN(s) of the AWS log stream(s).Note: See the [log stream ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). One log group can contain several log streams, so these ARNs necessarily identify both a log group and a log stream.
214+
"""
215+
216+
217+
AWS_LOG_STREAM_NAMES = "aws.log.stream.names"
218+
"""
219+
The name(s) of the AWS log stream(s) an application is writing to.
220+
"""
221+
222+
223+
AWS_REQUEST_ID = "aws.request_id"
224+
"""
225+
The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`.
226+
"""
227+
228+
229+
AWS_S3_BUCKET = "aws.s3.bucket"
230+
"""
231+
The S3 bucket name the request refers to. Corresponds to the `--bucket` parameter of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) operations.Note: The `bucket` attribute is applicable to all S3 operations that reference a bucket, i.e. that require the bucket name as a mandatory parameter.
232+
This applies to almost all S3 operations except `list-buckets`.
233+
"""
234+
235+
236+
AWS_S3_COPY_SOURCE = "aws.s3.copy_source"
237+
"""
238+
The source object (in the form `bucket`/`key`) for the copy operation.Note: The `copy_source` attribute applies to S3 copy operations and corresponds to the `--copy-source` parameter
239+
of the [copy-object operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html).
240+
This applies in particular to the following operations:
241+
242+
- [copy-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html)
243+
- [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html).
244+
"""
245+
246+
247+
AWS_S3_DELETE = "aws.s3.delete"
248+
"""
249+
The delete request container that specifies the objects to be deleted.Note: The `delete` attribute is only applicable to the [delete-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html) operation.
250+
The `delete` attribute corresponds to the `--delete` parameter of the
251+
[delete-objects operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html).
252+
"""
253+
254+
255+
AWS_S3_KEY = "aws.s3.key"
256+
"""
257+
The S3 object key the request refers to. Corresponds to the `--key` parameter of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) operations.Note: The `key` attribute is applicable to all object-related S3 operations, i.e. that require the object key as a mandatory parameter.
258+
This applies in particular to the following operations:
259+
260+
- [copy-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html)
261+
- [delete-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html)
262+
- [get-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html)
263+
- [head-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html)
264+
- [put-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html)
265+
- [restore-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html)
266+
- [select-object-content](https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html)
267+
- [abort-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html)
268+
- [complete-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html)
269+
- [create-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html)
270+
- [list-parts](https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html)
271+
- [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html)
272+
- [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html).
273+
"""
274+
275+
276+
AWS_S3_PART_NUMBER = "aws.s3.part_number"
277+
"""
278+
The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000.Note: The `part_number` attribute is only applicable to the [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html)
279+
and [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html) operations.
280+
The `part_number` attribute corresponds to the `--part-number` parameter of the
281+
[upload-part operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html).
282+
"""
283+
284+
285+
AWS_S3_UPLOAD_ID = "aws.s3.upload_id"
286+
"""
287+
Upload ID that identifies the multipart upload.Note: The `upload_id` attribute applies to S3 multipart-upload operations and corresponds to the `--upload-id` parameter
288+
of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) multipart operations.
289+
This applies in particular to the following operations:
290+
291+
- [abort-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html)
292+
- [complete-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html)
293+
- [list-parts](https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html)
294+
- [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html)
295+
- [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html).
296+
"""
297+
298+
299+
class AwsEcsLaunchtypeValues(Enum):
300+
EC2 = "ec2"
301+
"""ec2."""
302+
303+
FARGATE = "fargate"
304+
"""fargate."""
305+
306+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
BROWSER_BRANDS = "browser.brands"
16+
"""
17+
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`).
18+
"""
19+
20+
21+
BROWSER_LANGUAGE = "browser.language"
22+
"""
23+
Preferred language of the user using the browser.Note: This value is intended to be taken from the Navigator API `navigator.language`.
24+
"""
25+
26+
27+
BROWSER_MOBILE = "browser.mobile"
28+
"""
29+
A boolean that is true if the browser is running on a mobile device.Note: This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be left unset.
30+
"""
31+
32+
33+
BROWSER_PLATFORM = "browser.platform"
34+
"""
35+
The platform on which the browser is running.Note: This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.platform`). If unavailable, the legacy `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD be left unset in order for the values to be consistent.
36+
The list of possible values is defined in the [W3C User-Agent Client Hints specification](https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform). Note that some (but not all) of these values can overlap with values in the [`os.type` and `os.name` attributes](./os.md). However, for consistency, the values in the `browser.platform` attribute should capture the exact value that the user agent provides.
37+
"""
38+
39+

0 commit comments

Comments
 (0)