Debian Codegraph @

semconv/v1.28.0/attribute_group.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 // Code generated from semantic convention specification. DO NOT EDIT.
5
6 package semconv // import "go.opentelemetry.io/otel/semconv/v1.28.0"
7
8 import "go.opentelemetry.io/otel/attribute"
9
10 // Namespace: android
11 const (
12 // AndroidOSAPILevelKey is the attribute Key conforming to the
13 // "android.os.api_level" semantic conventions. It represents the uniquely
14 // identifies the framework API revision offered by a version (`os.version`) of
15 // the android operating system. More information can be found [here].
16 //
17 // Type: string
18 // RequirementLevel: Recommended
19 // Stability: Development
20 //
21 // Examples: "33", "32"
22 //
23 // [here]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
24 AndroidOSAPILevelKey = attribute.Key("android.os.api_level")
25 )
26
27 // AndroidOSAPILevel returns an attribute KeyValue conforming to the
28 // "android.os.api_level" semantic conventions. It represents the uniquely
29 // identifies the framework API revision offered by a version (`os.version`) of
30 // the android operating system. More information can be found [here].
31 //
32 // [here]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
33 func AndroidOSAPILevel(val string) attribute.KeyValue {
34 return AndroidOSAPILevelKey.String(val)
35 }
36
37 // Namespace: artifact
38 const (
39 // ArtifactAttestationFilenameKey is the attribute Key conforming to the
40 // "artifact.attestation.filename" semantic conventions. It represents the
41 // provenance filename of the built attestation which directly relates to the
42 // build artifact filename. This filename SHOULD accompany the artifact at
43 // publish time. See the [SLSA Relationship] specification for more information.
44 //
45 // Type: string
46 // RequirementLevel: Recommended
47 // Stability: Development
48 //
49 // Examples: "golang-binary-amd64-v0.1.0.attestation",
50 // "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation",
51 // "file-name-package.tar.gz.intoto.json1"
52 //
53 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
54 ArtifactAttestationFilenameKey = attribute.Key("artifact.attestation.filename")
55
56 // ArtifactAttestationHashKey is the attribute Key conforming to the
57 // "artifact.attestation.hash" semantic conventions. It represents the full
58 // [hash value (see glossary)], of the built attestation. Some envelopes in the
59 // software attestation space also refer to this as the [digest].
60 //
61 // Type: string
62 // RequirementLevel: Recommended
63 // Stability: Development
64 //
65 // Examples: "1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408"
66 //
67 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
68 // [digest]: https://github.com/in-toto/attestation/blob/main/spec/README.md#in-toto-attestation-framework-spec
69 ArtifactAttestationHashKey = attribute.Key("artifact.attestation.hash")
70
71 // ArtifactAttestationIDKey is the attribute Key conforming to the
72 // "artifact.attestation.id" semantic conventions. It represents the id of the
73 // build [software attestation].
74 //
75 // Type: string
76 // RequirementLevel: Recommended
77 // Stability: Development
78 //
79 // Examples: "123"
80 //
81 // [software attestation]: https://slsa.dev/attestation-model
82 ArtifactAttestationIDKey = attribute.Key("artifact.attestation.id")
83
84 // ArtifactFilenameKey is the attribute Key conforming to the
85 // "artifact.filename" semantic conventions. It represents the human readable
86 // file name of the artifact, typically generated during build and release
87 // processes. Often includes the package name and version in the file name.
88 //
89 // Type: string
90 // RequirementLevel: Recommended
91 // Stability: Development
92 //
93 // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0",
94 // "release-1.tar.gz", "file-name-package.tar.gz"
95 // Note: This file name can also act as the [Package Name]
96 // in cases where the package ecosystem maps accordingly.
97 // Additionally, the artifact [can be published]
98 // for others, but that is not a guarantee.
99 //
100 // [Package Name]: https://slsa.dev/spec/v1.0/terminology#package-model
101 // [can be published]: https://slsa.dev/spec/v1.0/terminology#software-supply-chain
102 ArtifactFilenameKey = attribute.Key("artifact.filename")
103
104 // ArtifactHashKey is the attribute Key conforming to the "artifact.hash"
105 // semantic conventions. It represents the full [hash value (see glossary)],
106 // often found in checksum.txt on a release of the artifact and used to verify
107 // package integrity.
108 //
109 // Type: string
110 // RequirementLevel: Recommended
111 // Stability: Development
112 //
113 // Examples: "9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9"
114 // Note: The specific algorithm used to create the cryptographic hash value is
115 // not defined. In situations where an artifact has multiple
116 // cryptographic hashes, it is up to the implementer to choose which
117 // hash value to set here; this should be the most secure hash algorithm
118 // that is suitable for the situation and consistent with the
119 // corresponding attestation. The implementer can then provide the other
120 // hash values through an additional set of attribute extensions as they
121 // deem necessary.
122 //
123 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
124 ArtifactHashKey = attribute.Key("artifact.hash")
125
126 // ArtifactPurlKey is the attribute Key conforming to the "artifact.purl"
127 // semantic conventions. It represents the [Package URL] of the
128 // [package artifact] provides a standard way to identify and locate the
129 // packaged artifact.
130 //
131 // Type: string
132 // RequirementLevel: Recommended
133 // Stability: Development
134 //
135 // Examples: "pkg:github/package-url/purl-spec@1209109710924",
136 // "pkg:npm/[email protected]"
137 //
138 // [Package URL]: https://github.com/package-url/purl-spec
139 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
140 ArtifactPurlKey = attribute.Key("artifact.purl")
141
142 // ArtifactVersionKey is the attribute Key conforming to the "artifact.version"
143 // semantic conventions. It represents the version of the artifact.
144 //
145 // Type: string
146 // RequirementLevel: Recommended
147 // Stability: Development
148 //
149 // Examples: "v0.1.0", "1.2.1", "122691-build"
150 ArtifactVersionKey = attribute.Key("artifact.version")
151 )
152
153 // ArtifactAttestationFilename returns an attribute KeyValue conforming to the
154 // "artifact.attestation.filename" semantic conventions. It represents the
155 // provenance filename of the built attestation which directly relates to the
156 // build artifact filename. This filename SHOULD accompany the artifact at
157 // publish time. See the [SLSA Relationship] specification for more information.
158 //
159 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
160 func ArtifactAttestationFilename(val string) attribute.KeyValue {
161 return ArtifactAttestationFilenameKey.String(val)
162 }
163
164 // ArtifactAttestationHash returns an attribute KeyValue conforming to the
165 // "artifact.attestation.hash" semantic conventions. It represents the full
166 // [hash value (see glossary)], of the built attestation. Some envelopes in the
167 // software attestation space also refer to this as the [digest].
168 //
169 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
170 // [digest]: https://github.com/in-toto/attestation/blob/main/spec/README.md#in-toto-attestation-framework-spec
171 func ArtifactAttestationHash(val string) attribute.KeyValue {
172 return ArtifactAttestationHashKey.String(val)
173 }
174
175 // ArtifactAttestationID returns an attribute KeyValue conforming to the
176 // "artifact.attestation.id" semantic conventions. It represents the id of the
177 // build [software attestation].
178 //
179 // [software attestation]: https://slsa.dev/attestation-model
180 func ArtifactAttestationID(val string) attribute.KeyValue {
181 return ArtifactAttestationIDKey.String(val)
182 }
183
184 // ArtifactFilename returns an attribute KeyValue conforming to the
185 // "artifact.filename" semantic conventions. It represents the human readable
186 // file name of the artifact, typically generated during build and release
187 // processes. Often includes the package name and version in the file name.
188 func ArtifactFilename(val string) attribute.KeyValue {
189 return ArtifactFilenameKey.String(val)
190 }
191
192 // ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash"
193 // semantic conventions. It represents the full [hash value (see glossary)],
194 // often found in checksum.txt on a release of the artifact and used to verify
195 // package integrity.
196 //
197 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
198 func ArtifactHash(val string) attribute.KeyValue {
199 return ArtifactHashKey.String(val)
200 }
201
202 // ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl"
203 // semantic conventions. It represents the [Package URL] of the
204 // [package artifact] provides a standard way to identify and locate the packaged
205 // artifact.
206 //
207 // [Package URL]: https://github.com/package-url/purl-spec
208 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
209 func ArtifactPurl(val string) attribute.KeyValue {
210 return ArtifactPurlKey.String(val)
211 }
212
213 // ArtifactVersion returns an attribute KeyValue conforming to the
214 // "artifact.version" semantic conventions. It represents the version of the
215 // artifact.
216 func ArtifactVersion(val string) attribute.KeyValue {
217 return ArtifactVersionKey.String(val)
218 }
219
220 // Namespace: aws
221 const (
222 // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the
223 // "aws.dynamodb.attribute_definitions" semantic conventions. It represents the
224 // JSON-serialized value of each item in the `AttributeDefinitions` request
225 // field.
226 //
227 // Type: string[]
228 // RequirementLevel: Recommended
229 // Stability: Development
230 //
231 // Examples: "{ "AttributeName": "string", "AttributeType": "string" }"
232 AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions")
233
234 // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the
235 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the
236 // value of the `AttributesToGet` request parameter.
237 //
238 // Type: string[]
239 // RequirementLevel: Recommended
240 // Stability: Development
241 //
242 // Examples: "lives", "id"
243 AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get")
244
245 // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the
246 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
247 // of the `ConsistentRead` request parameter.
248 //
249 // Type: boolean
250 // RequirementLevel: Recommended
251 // Stability: Development
252 //
253 // Examples:
254 AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read")
255
256 // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the
257 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
258 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
259 //
260 // Type: string[]
261 // RequirementLevel: Recommended
262 // Stability: Development
263 //
264 // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" :
265 // { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits":
266 // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number,
267 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } },
268 // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number,
269 // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName":
270 // "string", "WriteCapacityUnits": number }"
271 AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity")
272
273 // AWSDynamoDBCountKey is the attribute Key conforming to the
274 // "aws.dynamodb.count" semantic conventions. It represents the value of the
275 // `Count` response parameter.
276 //
277 // Type: int
278 // RequirementLevel: Recommended
279 // Stability: Development
280 //
281 // Examples: 10
282 AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count")
283
284 // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the
285 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
286 // value of the `ExclusiveStartTableName` request parameter.
287 //
288 // Type: string
289 // RequirementLevel: Recommended
290 // Stability: Development
291 //
292 // Examples: "Users", "CatsTable"
293 AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table")
294
295 // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to
296 // the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It
297 // represents the JSON-serialized value of each item in the
298 // `GlobalSecondaryIndexUpdates` request field.
299 //
300 // Type: string[]
301 // RequirementLevel: Recommended
302 // Stability: Development
303 //
304 // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ {
305 // "AttributeName": "string", "KeyType": "string" } ], "Projection": {
306 // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" },
307 // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits":
308 // number } }"
309 AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates")
310
311 // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the
312 // "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents
313 // the JSON-serialized value of each item of the `GlobalSecondaryIndexes`
314 // request field.
315 //
316 // Type: string[]
317 // RequirementLevel: Recommended
318 // Stability: Development
319 //
320 // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName":
321 // "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [
322 // "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": {
323 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"
324 AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes")
325
326 // AWSDynamoDBIndexNameKey is the attribute Key conforming to the
327 // "aws.dynamodb.index_name" semantic conventions. It represents the value of
328 // the `IndexName` request parameter.
329 //
330 // Type: string
331 // RequirementLevel: Recommended
332 // Stability: Development
333 //
334 // Examples: "name_to_group"
335 AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name")
336
337 // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the
338 // "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
339 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
340 //
341 // Type: string
342 // RequirementLevel: Recommended
343 // Stability: Development
344 //
345 // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob,
346 // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" :
347 // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S":
348 // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }"
349 AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics")
350
351 // AWSDynamoDBLimitKey is the attribute Key conforming to the
352 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
353 // `Limit` request parameter.
354 //
355 // Type: int
356 // RequirementLevel: Recommended
357 // Stability: Development
358 //
359 // Examples: 10
360 AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit")
361
362 // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the
363 // "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
364 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
365 // field.
366 //
367 // Type: string[]
368 // RequirementLevel: Recommended
369 // Stability: Development
370 //
371 // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes":
372 // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string",
373 // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ],
374 // "ProjectionType": "string" } }"
375 AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes")
376
377 // AWSDynamoDBProjectionKey is the attribute Key conforming to the
378 // "aws.dynamodb.projection" semantic conventions. It represents the value of
379 // the `ProjectionExpression` request parameter.
380 //
381 // Type: string
382 // RequirementLevel: Recommended
383 // Stability: Development
384 //
385 // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems,
386 // ProductReviews"
387 AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection")
388
389 // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the
390 // "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents
391 // the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
392 //
393 // Type: double
394 // RequirementLevel: Recommended
395 // Stability: Development
396 //
397 // Examples: 1.0, 2.0
398 AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity")
399
400 // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the
401 // "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents
402 // the value of the `ProvisionedThroughput.WriteCapacityUnits` request
403 // parameter.
404 //
405 // Type: double
406 // RequirementLevel: Recommended
407 // Stability: Development
408 //
409 // Examples: 1.0, 2.0
410 AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity")
411
412 // AWSDynamoDBScanForwardKey is the attribute Key conforming to the
413 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
414 // the `ScanIndexForward` request parameter.
415 //
416 // Type: boolean
417 // RequirementLevel: Recommended
418 // Stability: Development
419 //
420 // Examples:
421 AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward")
422
423 // AWSDynamoDBScannedCountKey is the attribute Key conforming to the
424 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
425 // the `ScannedCount` response parameter.
426 //
427 // Type: int
428 // RequirementLevel: Recommended
429 // Stability: Development
430 //
431 // Examples: 50
432 AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count")
433
434 // AWSDynamoDBSegmentKey is the attribute Key conforming to the
435 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
436 // `Segment` request parameter.
437 //
438 // Type: int
439 // RequirementLevel: Recommended
440 // Stability: Development
441 //
442 // Examples: 10
443 AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment")
444
445 // AWSDynamoDBSelectKey is the attribute Key conforming to the
446 // "aws.dynamodb.select" semantic conventions. It represents the value of the
447 // `Select` request parameter.
448 //
449 // Type: string
450 // RequirementLevel: Recommended
451 // Stability: Development
452 //
453 // Examples: "ALL_ATTRIBUTES", "COUNT"
454 AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select")
455
456 // AWSDynamoDBTableCountKey is the attribute Key conforming to the
457 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
458 // items in the `TableNames` response parameter.
459 //
460 // Type: int
461 // RequirementLevel: Recommended
462 // Stability: Development
463 //
464 // Examples: 20
465 AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count")
466
467 // AWSDynamoDBTableNamesKey is the attribute Key conforming to the
468 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in
469 // the `RequestItems` object field.
470 //
471 // Type: string[]
472 // RequirementLevel: Recommended
473 // Stability: Development
474 //
475 // Examples: "Users", "Cats"
476 AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names")
477
478 // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the
479 // "aws.dynamodb.total_segments" semantic conventions. It represents the value
480 // of the `TotalSegments` request parameter.
481 //
482 // Type: int
483 // RequirementLevel: Recommended
484 // Stability: Development
485 //
486 // Examples: 100
487 AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments")
488
489 // AWSECSClusterARNKey is the attribute Key conforming to the
490 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
491 // [ECS cluster].
492 //
493 // Type: string
494 // RequirementLevel: Recommended
495 // Stability: Development
496 //
497 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
498 //
499 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
500 AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn")
501
502 // AWSECSContainerARNKey is the attribute Key conforming to the
503 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
504 // Resource Name (ARN) of an [ECS container instance].
505 //
506 // Type: string
507 // RequirementLevel: Recommended
508 // Stability: Development
509 //
510 // Examples:
511 // "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9"
512 //
513 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
514 AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn")
515
516 // AWSECSLaunchtypeKey is the attribute Key conforming to the
517 // "aws.ecs.launchtype" semantic conventions. It represents the [launch type]
518 // for an ECS task.
519 //
520 // Type: Enum
521 // RequirementLevel: Recommended
522 // Stability: Development
523 //
524 // Examples:
525 //
526 // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
527 AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype")
528
529 // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn"
530 // semantic conventions. It represents the ARN of a running [ECS task].
531 //
532 // Type: string
533 // RequirementLevel: Recommended
534 // Stability: Development
535 //
536 // Examples:
537 // "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b",
538 // "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
539 //
540 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
541 AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn")
542
543 // AWSECSTaskFamilyKey is the attribute Key conforming to the
544 // "aws.ecs.task.family" semantic conventions. It represents the family name of
545 // the [ECS task definition] used to create the ECS task.
546 //
547 // Type: string
548 // RequirementLevel: Recommended
549 // Stability: Development
550 //
551 // Examples: "opentelemetry-family"
552 //
553 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
554 AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family")
555
556 // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id"
557 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
558 // be extracted from `task.arn`.
559 //
560 // Type: string
561 // RequirementLevel: {"Conditionally_Required": "If And Only If `Task.Arn` Is
562 // Populated."}
563 // Stability: Development
564 //
565 // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b",
566 // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
567 AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id")
568
569 // AWSECSTaskRevisionKey is the attribute Key conforming to the
570 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
571 // the task definition used to create the ECS task.
572 //
573 // Type: string
574 // RequirementLevel: Recommended
575 // Stability: Development
576 //
577 // Examples: "8", "26"
578 AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision")
579
580 // AWSEKSClusterARNKey is the attribute Key conforming to the
581 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
582 // cluster.
583 //
584 // Type: string
585 // RequirementLevel: Recommended
586 // Stability: Development
587 //
588 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
589 AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn")
590
591 // AWSLambdaInvokedARNKey is the attribute Key conforming to the
592 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
593 // ARN as provided on the `Context` passed to the function (
594 // `Lambda-Runtime-Invoked-Function-Arn` header on the
595 // `/runtime/invocation/next` applicable).
596 //
597 // Type: string
598 // RequirementLevel: Recommended
599 // Stability: Development
600 //
601 // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias"
602 // Note: This may be different from `cloud.resource_id` if an alias is involved.
603 AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn")
604
605 // AWSLogGroupARNsKey is the attribute Key conforming to the
606 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
607 // Name(s) (ARN) of the AWS log group(s).
608 //
609 // Type: string[]
610 // RequirementLevel: Recommended
611 // Stability: Development
612 //
613 // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"
614 // Note: See the [log group ARN format documentation].
615 //
616 // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
617 AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns")
618
619 // AWSLogGroupNamesKey is the attribute Key conforming to the
620 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
621 // AWS log group(s) an application is writing to.
622 //
623 // Type: string[]
624 // RequirementLevel: Recommended
625 // Stability: Development
626 //
627 // Examples: "/aws/lambda/my-function", "opentelemetry-service"
628 // Note: Multiple log groups must be supported for cases like multi-container
629 // applications, where a single application has sidecar containers, and each
630 // write to their own log group.
631 AWSLogGroupNamesKey = attribute.Key("aws.log.group.names")
632
633 // AWSLogStreamARNsKey is the attribute Key conforming to the
634 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
635 // AWS log stream(s).
636 //
637 // Type: string[]
638 // RequirementLevel: Recommended
639 // Stability: Development
640 //
641 // Examples:
642 // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
643 // Note: See the [log stream ARN format documentation]. One log group can
644 // contain several log streams, so these ARNs necessarily identify both a log
645 // group and a log stream.
646 //
647 // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
648 AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns")
649
650 // AWSLogStreamNamesKey is the attribute Key conforming to the
651 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
652 // AWS log stream(s) an application is writing to.
653 //
654 // Type: string[]
655 // RequirementLevel: Recommended
656 // Stability: Development
657 //
658 // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
659 AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names")
660
661 // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id"
662 // semantic conventions. It represents the AWS request ID as returned in the
663 // response headers `x-amz-request-id` or `x-amz-requestid`.
664 //
665 // Type: string
666 // RequirementLevel: Recommended
667 // Stability: Development
668 //
669 // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ"
670 AWSRequestIDKey = attribute.Key("aws.request_id")
671
672 // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket"
673 // semantic conventions. It represents the S3 bucket name the request refers to.
674 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
675 //
676 // Type: string
677 // RequirementLevel: Recommended
678 // Stability: Development
679 //
680 // Examples: "some-bucket-name"
681 // Note: The `bucket` attribute is applicable to all S3 operations that
682 // reference a bucket, i.e. that require the bucket name as a mandatory
683 // parameter.
684 // This applies to almost all S3 operations except `list-buckets`.
685 //
686 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
687 AWSS3BucketKey = attribute.Key("aws.s3.bucket")
688
689 // AWSS3CopySourceKey is the attribute Key conforming to the
690 // "aws.s3.copy_source" semantic conventions. It represents the source object
691 // (in the form `bucket`/`key`) for the copy operation.
692 //
693 // Type: string
694 // RequirementLevel: Recommended
695 // Stability: Development
696 //
697 // Examples: "someFile.yml"
698 // Note: The `copy_source` attribute applies to S3 copy operations and
699 // corresponds to the `--copy-source` parameter
700 // of the [copy-object operation within the S3 API].
701 // This applies in particular to the following operations:
702 //
703 // - [copy-object]
704 // - [upload-part-copy]
705 //
706 //
707 // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
708 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
709 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
710 AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source")
711
712 // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete"
713 // semantic conventions. It represents the delete request container that
714 // specifies the objects to be deleted.
715 //
716 // Type: string
717 // RequirementLevel: Recommended
718 // Stability: Development
719 //
720 // Examples:
721 // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"
722 // Note: The `delete` attribute is only applicable to the [delete-object]
723 // operation.
724 // The `delete` attribute corresponds to the `--delete` parameter of the
725 // [delete-objects operation within the S3 API].
726 //
727 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
728 // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html
729 AWSS3DeleteKey = attribute.Key("aws.s3.delete")
730
731 // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic
732 // conventions. It represents the S3 object key the request refers to.
733 // Corresponds to the `--key` parameter of the [S3 API] operations.
734 //
735 // Type: string
736 // RequirementLevel: Recommended
737 // Stability: Development
738 //
739 // Examples: "someFile.yml"
740 // Note: The `key` attribute is applicable to all object-related S3 operations,
741 // i.e. that require the object key as a mandatory parameter.
742 // This applies in particular to the following operations:
743 //
744 // - [copy-object]
745 // - [delete-object]
746 // - [get-object]
747 // - [head-object]
748 // - [put-object]
749 // - [restore-object]
750 // - [select-object-content]
751 // - [abort-multipart-upload]
752 // - [complete-multipart-upload]
753 // - [create-multipart-upload]
754 // - [list-parts]
755 // - [upload-part]
756 // - [upload-part-copy]
757 //
758 //
759 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
760 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
761 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
762 // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html
763 // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html
764 // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html
765 // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html
766 // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html
767 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
768 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
769 // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html
770 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
771 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
772 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
773 AWSS3KeyKey = attribute.Key("aws.s3.key")
774
775 // AWSS3PartNumberKey is the attribute Key conforming to the
776 // "aws.s3.part_number" semantic conventions. It represents the part number of
777 // the part being uploaded in a multipart-upload operation. This is a positive
778 // integer between 1 and 10,000.
779 //
780 // Type: int
781 // RequirementLevel: Recommended
782 // Stability: Development
783 //
784 // Examples: 3456
785 // Note: The `part_number` attribute is only applicable to the [upload-part]
786 // and [upload-part-copy] operations.
787 // The `part_number` attribute corresponds to the `--part-number` parameter of
788 // the
789 // [upload-part operation within the S3 API].
790 //
791 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
792 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
793 // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
794 AWSS3PartNumberKey = attribute.Key("aws.s3.part_number")
795
796 // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id"
797 // semantic conventions. It represents the upload ID that identifies the
798 // multipart upload.
799 //
800 // Type: string
801 // RequirementLevel: Recommended
802 // Stability: Development
803 //
804 // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ"
805 // Note: The `upload_id` attribute applies to S3 multipart-upload operations and
806 // corresponds to the `--upload-id` parameter
807 // of the [S3 API] multipart operations.
808 // This applies in particular to the following operations:
809 //
810 // - [abort-multipart-upload]
811 // - [complete-multipart-upload]
812 // - [list-parts]
813 // - [upload-part]
814 // - [upload-part-copy]
815 //
816 //
817 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
818 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
819 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
820 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
821 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
822 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
823 AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id")
824 )
825
826 // AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to
827 // the "aws.dynamodb.attribute_definitions" semantic conventions. It represents
828 // the JSON-serialized value of each item in the `AttributeDefinitions` request
829 // field.
830 func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue {
831 return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val)
832 }
833
834 // AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the
835 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value
836 // of the `AttributesToGet` request parameter.
837 func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue {
838 return AWSDynamoDBAttributesToGetKey.StringSlice(val)
839 }
840
841 // AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the
842 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
843 // of the `ConsistentRead` request parameter.
844 func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue {
845 return AWSDynamoDBConsistentReadKey.Bool(val)
846 }
847
848 // AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the
849 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
850 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
851 func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue {
852 return AWSDynamoDBConsumedCapacityKey.StringSlice(val)
853 }
854
855 // AWSDynamoDBCount returns an attribute KeyValue conforming to the
856 // "aws.dynamodb.count" semantic conventions. It represents the value of the
857 // `Count` response parameter.
858 func AWSDynamoDBCount(val int) attribute.KeyValue {
859 return AWSDynamoDBCountKey.Int(val)
860 }
861
862 // AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the
863 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
864 // value of the `ExclusiveStartTableName` request parameter.
865 func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue {
866 return AWSDynamoDBExclusiveStartTableKey.String(val)
867 }
868
869 // AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue
870 // conforming to the "aws.dynamodb.global_secondary_index_updates" semantic
871 // conventions. It represents the JSON-serialized value of each item in the
872 // `GlobalSecondaryIndexUpdates` request field.
873 func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue {
874 return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val)
875 }
876
877 // AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to
878 // the "aws.dynamodb.global_secondary_indexes" semantic conventions. It
879 // represents the JSON-serialized value of each item of the
880 // `GlobalSecondaryIndexes` request field.
881 func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue {
882 return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val)
883 }
884
885 // AWSDynamoDBIndexName returns an attribute KeyValue conforming to the
886 // "aws.dynamodb.index_name" semantic conventions. It represents the value of the
887 // `IndexName` request parameter.
888 func AWSDynamoDBIndexName(val string) attribute.KeyValue {
889 return AWSDynamoDBIndexNameKey.String(val)
890 }
891
892 // AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to
893 // the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
894 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
895 func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue {
896 return AWSDynamoDBItemCollectionMetricsKey.String(val)
897 }
898
899 // AWSDynamoDBLimit returns an attribute KeyValue conforming to the
900 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
901 // `Limit` request parameter.
902 func AWSDynamoDBLimit(val int) attribute.KeyValue {
903 return AWSDynamoDBLimitKey.Int(val)
904 }
905
906 // AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to
907 // the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
908 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
909 // field.
910 func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue {
911 return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val)
912 }
913
914 // AWSDynamoDBProjection returns an attribute KeyValue conforming to the
915 // "aws.dynamodb.projection" semantic conventions. It represents the value of the
916 // `ProjectionExpression` request parameter.
917 func AWSDynamoDBProjection(val string) attribute.KeyValue {
918 return AWSDynamoDBProjectionKey.String(val)
919 }
920
921 // AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to
922 // the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It
923 // represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request
924 // parameter.
925 func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue {
926 return AWSDynamoDBProvisionedReadCapacityKey.Float64(val)
927 }
928
929 // AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming
930 // to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It
931 // represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request
932 // parameter.
933 func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue {
934 return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val)
935 }
936
937 // AWSDynamoDBScanForward returns an attribute KeyValue conforming to the
938 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
939 // the `ScanIndexForward` request parameter.
940 func AWSDynamoDBScanForward(val bool) attribute.KeyValue {
941 return AWSDynamoDBScanForwardKey.Bool(val)
942 }
943
944 // AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the
945 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
946 // the `ScannedCount` response parameter.
947 func AWSDynamoDBScannedCount(val int) attribute.KeyValue {
948 return AWSDynamoDBScannedCountKey.Int(val)
949 }
950
951 // AWSDynamoDBSegment returns an attribute KeyValue conforming to the
952 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
953 // `Segment` request parameter.
954 func AWSDynamoDBSegment(val int) attribute.KeyValue {
955 return AWSDynamoDBSegmentKey.Int(val)
956 }
957
958 // AWSDynamoDBSelect returns an attribute KeyValue conforming to the
959 // "aws.dynamodb.select" semantic conventions. It represents the value of the
960 // `Select` request parameter.
961 func AWSDynamoDBSelect(val string) attribute.KeyValue {
962 return AWSDynamoDBSelectKey.String(val)
963 }
964
965 // AWSDynamoDBTableCount returns an attribute KeyValue conforming to the
966 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
967 // items in the `TableNames` response parameter.
968 func AWSDynamoDBTableCount(val int) attribute.KeyValue {
969 return AWSDynamoDBTableCountKey.Int(val)
970 }
971
972 // AWSDynamoDBTableNames returns an attribute KeyValue conforming to the
973 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in the
974 // `RequestItems` object field.
975 func AWSDynamoDBTableNames(val ...string) attribute.KeyValue {
976 return AWSDynamoDBTableNamesKey.StringSlice(val)
977 }
978
979 // AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the
980 // "aws.dynamodb.total_segments" semantic conventions. It represents the value of
981 // the `TotalSegments` request parameter.
982 func AWSDynamoDBTotalSegments(val int) attribute.KeyValue {
983 return AWSDynamoDBTotalSegmentsKey.Int(val)
984 }
985
986 // AWSECSClusterARN returns an attribute KeyValue conforming to the
987 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
988 // [ECS cluster].
989 //
990 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
991 func AWSECSClusterARN(val string) attribute.KeyValue {
992 return AWSECSClusterARNKey.String(val)
993 }
994
995 // AWSECSContainerARN returns an attribute KeyValue conforming to the
996 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
997 // Resource Name (ARN) of an [ECS container instance].
998 //
999 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
1000 func AWSECSContainerARN(val string) attribute.KeyValue {
1001 return AWSECSContainerARNKey.String(val)
1002 }
1003
1004 // AWSECSTaskARN returns an attribute KeyValue conforming to the
1005 // "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running
1006 // [ECS task].
1007 //
1008 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
1009 func AWSECSTaskARN(val string) attribute.KeyValue {
1010 return AWSECSTaskARNKey.String(val)
1011 }
1012
1013 // AWSECSTaskFamily returns an attribute KeyValue conforming to the
1014 // "aws.ecs.task.family" semantic conventions. It represents the family name of
1015 // the [ECS task definition] used to create the ECS task.
1016 //
1017 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
1018 func AWSECSTaskFamily(val string) attribute.KeyValue {
1019 return AWSECSTaskFamilyKey.String(val)
1020 }
1021
1022 // AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id"
1023 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
1024 // be extracted from `task.arn`.
1025 func AWSECSTaskID(val string) attribute.KeyValue {
1026 return AWSECSTaskIDKey.String(val)
1027 }
1028
1029 // AWSECSTaskRevision returns an attribute KeyValue conforming to the
1030 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
1031 // the task definition used to create the ECS task.
1032 func AWSECSTaskRevision(val string) attribute.KeyValue {
1033 return AWSECSTaskRevisionKey.String(val)
1034 }
1035
1036 // AWSEKSClusterARN returns an attribute KeyValue conforming to the
1037 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
1038 // cluster.
1039 func AWSEKSClusterARN(val string) attribute.KeyValue {
1040 return AWSEKSClusterARNKey.String(val)
1041 }
1042
1043 // AWSLambdaInvokedARN returns an attribute KeyValue conforming to the
1044 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
1045 // ARN as provided on the `Context` passed to the function (
1046 // `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next`
1047 // applicable).
1048 func AWSLambdaInvokedARN(val string) attribute.KeyValue {
1049 return AWSLambdaInvokedARNKey.String(val)
1050 }
1051
1052 // AWSLogGroupARNs returns an attribute KeyValue conforming to the
1053 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
1054 // Name(s) (ARN) of the AWS log group(s).
1055 func AWSLogGroupARNs(val ...string) attribute.KeyValue {
1056 return AWSLogGroupARNsKey.StringSlice(val)
1057 }
1058
1059 // AWSLogGroupNames returns an attribute KeyValue conforming to the
1060 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
1061 // AWS log group(s) an application is writing to.
1062 func AWSLogGroupNames(val ...string) attribute.KeyValue {
1063 return AWSLogGroupNamesKey.StringSlice(val)
1064 }
1065
1066 // AWSLogStreamARNs returns an attribute KeyValue conforming to the
1067 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
1068 // AWS log stream(s).
1069 func AWSLogStreamARNs(val ...string) attribute.KeyValue {
1070 return AWSLogStreamARNsKey.StringSlice(val)
1071 }
1072
1073 // AWSLogStreamNames returns an attribute KeyValue conforming to the
1074 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
1075 // AWS log stream(s) an application is writing to.
1076 func AWSLogStreamNames(val ...string) attribute.KeyValue {
1077 return AWSLogStreamNamesKey.StringSlice(val)
1078 }
1079
1080 // AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id"
1081 // semantic conventions. It represents the AWS request ID as returned in the
1082 // response headers `x-amz-request-id` or `x-amz-requestid`.
1083 func AWSRequestID(val string) attribute.KeyValue {
1084 return AWSRequestIDKey.String(val)
1085 }
1086
1087 // AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket"
1088 // semantic conventions. It represents the S3 bucket name the request refers to.
1089 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
1090 //
1091 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1092 func AWSS3Bucket(val string) attribute.KeyValue {
1093 return AWSS3BucketKey.String(val)
1094 }
1095
1096 // AWSS3CopySource returns an attribute KeyValue conforming to the
1097 // "aws.s3.copy_source" semantic conventions. It represents the source object (in
1098 // the form `bucket`/`key`) for the copy operation.
1099 func AWSS3CopySource(val string) attribute.KeyValue {
1100 return AWSS3CopySourceKey.String(val)
1101 }
1102
1103 // AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete"
1104 // semantic conventions. It represents the delete request container that
1105 // specifies the objects to be deleted.
1106 func AWSS3Delete(val string) attribute.KeyValue {
1107 return AWSS3DeleteKey.String(val)
1108 }
1109
1110 // AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic
1111 // conventions. It represents the S3 object key the request refers to.
1112 // Corresponds to the `--key` parameter of the [S3 API] operations.
1113 //
1114 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1115 func AWSS3Key(val string) attribute.KeyValue {
1116 return AWSS3KeyKey.String(val)
1117 }
1118
1119 // AWSS3PartNumber returns an attribute KeyValue conforming to the
1120 // "aws.s3.part_number" semantic conventions. It represents the part number of
1121 // the part being uploaded in a multipart-upload operation. This is a positive
1122 // integer between 1 and 10,000.
1123 func AWSS3PartNumber(val int) attribute.KeyValue {
1124 return AWSS3PartNumberKey.Int(val)
1125 }
1126
1127 // AWSS3UploadID returns an attribute KeyValue conforming to the
1128 // "aws.s3.upload_id" semantic conventions. It represents the upload ID that
1129 // identifies the multipart upload.
1130 func AWSS3UploadID(val string) attribute.KeyValue {
1131 return AWSS3UploadIDKey.String(val)
1132 }
1133
1134 // Enum values for aws.ecs.launchtype
1135 var (
1136 // ec2
1137 // Stability: development
1138 AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2")
1139 // fargate
1140 // Stability: development
1141 AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate")
1142 )
1143
1144 // Namespace: az
1145 const (
1146 // AzNamespaceKey is the attribute Key conforming to the "az.namespace" semantic
1147 // conventions. It represents the [Azure Resource Provider Namespace] as
1148 // recognized by the client.
1149 //
1150 // Type: string
1151 // RequirementLevel: Recommended
1152 // Stability: Development
1153 //
1154 // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus"
1155 //
1156 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1157 AzNamespaceKey = attribute.Key("az.namespace")
1158
1159 // AzServiceRequestIDKey is the attribute Key conforming to the
1160 // "az.service_request_id" semantic conventions. It represents the unique
1161 // identifier of the service request. It's generated by the Azure service and
1162 // returned with the response.
1163 //
1164 // Type: string
1165 // RequirementLevel: Recommended
1166 // Stability: Development
1167 //
1168 // Examples: "00000000-0000-0000-0000-000000000000"
1169 AzServiceRequestIDKey = attribute.Key("az.service_request_id")
1170 )
1171
1172 // AzNamespace returns an attribute KeyValue conforming to the "az.namespace"
1173 // semantic conventions. It represents the [Azure Resource Provider Namespace] as
1174 // recognized by the client.
1175 //
1176 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1177 func AzNamespace(val string) attribute.KeyValue {
1178 return AzNamespaceKey.String(val)
1179 }
1180
1181 // AzServiceRequestID returns an attribute KeyValue conforming to the
1182 // "az.service_request_id" semantic conventions. It represents the unique
1183 // identifier of the service request. It's generated by the Azure service and
1184 // returned with the response.
1185 func AzServiceRequestID(val string) attribute.KeyValue {
1186 return AzServiceRequestIDKey.String(val)
1187 }
1188
1189 // Namespace: browser
1190 const (
1191 // BrowserBrandsKey is the attribute Key conforming to the "browser.brands"
1192 // semantic conventions. It represents the array of brand name and version
1193 // separated by a space.
1194 //
1195 // Type: string[]
1196 // RequirementLevel: Recommended
1197 // Stability: Development
1198 //
1199 // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99"
1200 // Note: This value is intended to be taken from the [UA client hints API] (
1201 // `navigator.userAgentData.brands`).
1202 //
1203 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1204 BrowserBrandsKey = attribute.Key("browser.brands")
1205
1206 // BrowserLanguageKey is the attribute Key conforming to the "browser.language"
1207 // semantic conventions. It represents the preferred language of the user using
1208 // the browser.
1209 //
1210 // Type: string
1211 // RequirementLevel: Recommended
1212 // Stability: Development
1213 //
1214 // Examples: "en", "en-US", "fr", "fr-FR"
1215 // Note: This value is intended to be taken from the Navigator API
1216 // `navigator.language`.
1217 BrowserLanguageKey = attribute.Key("browser.language")
1218
1219 // BrowserMobileKey is the attribute Key conforming to the "browser.mobile"
1220 // semantic conventions. It represents a boolean that is true if the browser is
1221 // running on a mobile device.
1222 //
1223 // Type: boolean
1224 // RequirementLevel: Recommended
1225 // Stability: Development
1226 //
1227 // Examples:
1228 // Note: This value is intended to be taken from the [UA client hints API] (
1229 // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be
1230 // left unset.
1231 //
1232 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1233 BrowserMobileKey = attribute.Key("browser.mobile")
1234
1235 // BrowserPlatformKey is the attribute Key conforming to the "browser.platform"
1236 // semantic conventions. It represents the platform on which the browser is
1237 // running.
1238 //
1239 // Type: string
1240 // RequirementLevel: Recommended
1241 // Stability: Development
1242 //
1243 // Examples: "Windows", "macOS", "Android"
1244 // Note: This value is intended to be taken from the [UA client hints API] (
1245 // `navigator.userAgentData.platform`). If unavailable, the legacy
1246 // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD
1247 // be left unset in order for the values to be consistent.
1248 // The list of possible values is defined in the
1249 // [W3C User-Agent Client Hints specification]. Note that some (but not all) of
1250 // these values can overlap with values in the
1251 // [`os.type` and `os.name` attributes]. However, for consistency, the values in
1252 // the `browser.platform` attribute should capture the exact value that the user
1253 // agent provides.
1254 //
1255 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1256 // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform
1257 // [`os.type` and `os.name` attributes]: ./os.md
1258 BrowserPlatformKey = attribute.Key("browser.platform")
1259 )
1260
1261 // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands"
1262 // semantic conventions. It represents the array of brand name and version
1263 // separated by a space.
1264 func BrowserBrands(val ...string) attribute.KeyValue {
1265 return BrowserBrandsKey.StringSlice(val)
1266 }
1267
1268 // BrowserLanguage returns an attribute KeyValue conforming to the
1269 // "browser.language" semantic conventions. It represents the preferred language
1270 // of the user using the browser.
1271 func BrowserLanguage(val string) attribute.KeyValue {
1272 return BrowserLanguageKey.String(val)
1273 }
1274
1275 // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile"
1276 // semantic conventions. It represents a boolean that is true if the browser is
1277 // running on a mobile device.
1278 func BrowserMobile(val bool) attribute.KeyValue {
1279 return BrowserMobileKey.Bool(val)
1280 }
1281
1282 // BrowserPlatform returns an attribute KeyValue conforming to the
1283 // "browser.platform" semantic conventions. It represents the platform on which
1284 // the browser is running.
1285 func BrowserPlatform(val string) attribute.KeyValue {
1286 return BrowserPlatformKey.String(val)
1287 }
1288
1289 // Namespace: cicd
1290 const (
1291 // CICDPipelineNameKey is the attribute Key conforming to the
1292 // "cicd.pipeline.name" semantic conventions. It represents the human readable
1293 // name of the pipeline within a CI/CD system.
1294 //
1295 // Type: string
1296 // RequirementLevel: Recommended
1297 // Stability: Development
1298 //
1299 // Examples: "Build and Test", "Lint", "Deploy Go Project",
1300 // "deploy_to_environment"
1301 CICDPipelineNameKey = attribute.Key("cicd.pipeline.name")
1302
1303 // CICDPipelineRunIDKey is the attribute Key conforming to the
1304 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
1305 // identifier of a pipeline run within a CI/CD system.
1306 //
1307 // Type: string
1308 // RequirementLevel: Recommended
1309 // Stability: Development
1310 //
1311 // Examples: "120912"
1312 CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id")
1313
1314 // CICDPipelineTaskNameKey is the attribute Key conforming to the
1315 // "cicd.pipeline.task.name" semantic conventions. It represents the human
1316 // readable name of a task within a pipeline. Task here most closely aligns with
1317 // a [computing process] in a pipeline. Other terms for tasks include commands,
1318 // steps, and procedures.
1319 //
1320 // Type: string
1321 // RequirementLevel: Recommended
1322 // Stability: Development
1323 //
1324 // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary"
1325 //
1326 // [computing process]: https://en.wikipedia.org/wiki/Pipeline_(computing)
1327 CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name")
1328
1329 // CICDPipelineTaskRunIDKey is the attribute Key conforming to the
1330 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
1331 // identifier of a task run within a pipeline.
1332 //
1333 // Type: string
1334 // RequirementLevel: Recommended
1335 // Stability: Development
1336 //
1337 // Examples: "12097"
1338 CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id")
1339
1340 // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the
1341 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
1342 // [URL] of the pipeline run providing the complete address in order to locate
1343 // and identify the pipeline run.
1344 //
1345 // Type: string
1346 // RequirementLevel: Recommended
1347 // Stability: Development
1348 //
1349 // Examples:
1350 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"
1351 //
1352 // [URL]: https://en.wikipedia.org/wiki/URL
1353 CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full")
1354
1355 // CICDPipelineTaskTypeKey is the attribute Key conforming to the
1356 // "cicd.pipeline.task.type" semantic conventions. It represents the type of the
1357 // task within a pipeline.
1358 //
1359 // Type: Enum
1360 // RequirementLevel: Recommended
1361 // Stability: Development
1362 //
1363 // Examples: "build", "test", "deploy"
1364 CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type")
1365 )
1366
1367 // CICDPipelineName returns an attribute KeyValue conforming to the
1368 // "cicd.pipeline.name" semantic conventions. It represents the human readable
1369 // name of the pipeline within a CI/CD system.
1370 func CICDPipelineName(val string) attribute.KeyValue {
1371 return CICDPipelineNameKey.String(val)
1372 }
1373
1374 // CICDPipelineRunID returns an attribute KeyValue conforming to the
1375 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
1376 // identifier of a pipeline run within a CI/CD system.
1377 func CICDPipelineRunID(val string) attribute.KeyValue {
1378 return CICDPipelineRunIDKey.String(val)
1379 }
1380
1381 // CICDPipelineTaskName returns an attribute KeyValue conforming to the
1382 // "cicd.pipeline.task.name" semantic conventions. It represents the human
1383 // readable name of a task within a pipeline. Task here most closely aligns with
1384 // a [computing process] in a pipeline. Other terms for tasks include commands,
1385 // steps, and procedures.
1386 //
1387 // [computing process]: https://en.wikipedia.org/wiki/Pipeline_(computing)
1388 func CICDPipelineTaskName(val string) attribute.KeyValue {
1389 return CICDPipelineTaskNameKey.String(val)
1390 }
1391
1392 // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the
1393 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
1394 // identifier of a task run within a pipeline.
1395 func CICDPipelineTaskRunID(val string) attribute.KeyValue {
1396 return CICDPipelineTaskRunIDKey.String(val)
1397 }
1398
1399 // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the
1400 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
1401 // [URL] of the pipeline run providing the complete address in order to locate
1402 // and identify the pipeline run.
1403 //
1404 // [URL]: https://en.wikipedia.org/wiki/URL
1405 func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue {
1406 return CICDPipelineTaskRunURLFullKey.String(val)
1407 }
1408
1409 // Enum values for cicd.pipeline.task.type
1410 var (
1411 // build
1412 // Stability: development
1413 CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build")
1414 // test
1415 // Stability: development
1416 CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test")
1417 // deploy
1418 // Stability: development
1419 CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy")
1420 )
1421
1422 // Namespace: client
1423 const (
1424 // ClientAddressKey is the attribute Key conforming to the "client.address"
1425 // semantic conventions. It represents the client address - domain name if
1426 // available without reverse DNS lookup; otherwise, IP address or Unix domain
1427 // socket name.
1428 //
1429 // Type: string
1430 // RequirementLevel: Recommended
1431 // Stability: Stable
1432 //
1433 // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock"
1434 // Note: When observed from the server side, and when communicating through an
1435 // intermediary, `client.address` SHOULD represent the client address behind any
1436 // intermediaries, for example proxies, if it's available.
1437 ClientAddressKey = attribute.Key("client.address")
1438
1439 // ClientPortKey is the attribute Key conforming to the "client.port" semantic
1440 // conventions. It represents the client port number.
1441 //
1442 // Type: int
1443 // RequirementLevel: Recommended
1444 // Stability: Stable
1445 //
1446 // Examples: 65123
1447 // Note: When observed from the server side, and when communicating through an
1448 // intermediary, `client.port` SHOULD represent the client port behind any
1449 // intermediaries, for example proxies, if it's available.
1450 ClientPortKey = attribute.Key("client.port")
1451 )
1452
1453 // ClientAddress returns an attribute KeyValue conforming to the "client.address"
1454 // semantic conventions. It represents the client address - domain name if
1455 // available without reverse DNS lookup; otherwise, IP address or Unix domain
1456 // socket name.
1457 func ClientAddress(val string) attribute.KeyValue {
1458 return ClientAddressKey.String(val)
1459 }
1460
1461 // ClientPort returns an attribute KeyValue conforming to the "client.port"
1462 // semantic conventions. It represents the client port number.
1463 func ClientPort(val int) attribute.KeyValue {
1464 return ClientPortKey.Int(val)
1465 }
1466
1467 // Namespace: cloud
1468 const (
1469 // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id"
1470 // semantic conventions. It represents the cloud account ID the resource is
1471 // assigned to.
1472 //
1473 // Type: string
1474 // RequirementLevel: Recommended
1475 // Stability: Development
1476 //
1477 // Examples: "111111111111", "opentelemetry"
1478 CloudAccountIDKey = attribute.Key("cloud.account.id")
1479
1480 // CloudAvailabilityZoneKey is the attribute Key conforming to the
1481 // "cloud.availability_zone" semantic conventions. It represents the cloud
1482 // regions often have multiple, isolated locations known as zones to increase
1483 // availability. Availability zone represents the zone where the resource is
1484 // running.
1485 //
1486 // Type: string
1487 // RequirementLevel: Recommended
1488 // Stability: Development
1489 //
1490 // Examples: "us-east-1c"
1491 // Note: Availability zones are called "zones" on Alibaba Cloud and Google
1492 // Cloud.
1493 CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
1494
1495 // CloudPlatformKey is the attribute Key conforming to the "cloud.platform"
1496 // semantic conventions. It represents the cloud platform in use.
1497 //
1498 // Type: Enum
1499 // RequirementLevel: Recommended
1500 // Stability: Development
1501 //
1502 // Examples:
1503 // Note: The prefix of the service SHOULD match the one specified in
1504 // `cloud.provider`.
1505 CloudPlatformKey = attribute.Key("cloud.platform")
1506
1507 // CloudProviderKey is the attribute Key conforming to the "cloud.provider"
1508 // semantic conventions. It represents the name of the cloud provider.
1509 //
1510 // Type: Enum
1511 // RequirementLevel: Recommended
1512 // Stability: Development
1513 //
1514 // Examples:
1515 CloudProviderKey = attribute.Key("cloud.provider")
1516
1517 // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic
1518 // conventions. It represents the geographical region the resource is running.
1519 //
1520 // Type: string
1521 // RequirementLevel: Recommended
1522 // Stability: Development
1523 //
1524 // Examples: "us-central1", "us-east-1"
1525 // Note: Refer to your provider's docs to see the available regions, for example
1526 // [Alibaba Cloud regions], [AWS regions], [Azure regions],
1527 // [Google Cloud regions], or [Tencent Cloud regions].
1528 //
1529 // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm
1530 // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/
1531 // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/
1532 // [Google Cloud regions]: https://cloud.google.com/about/locations
1533 // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091
1534 CloudRegionKey = attribute.Key("cloud.region")
1535
1536 // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id"
1537 // semantic conventions. It represents the cloud provider-specific native
1538 // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a
1539 // [fully qualified resource ID] on Azure, a [full resource name] on GCP).
1540 //
1541 // Type: string
1542 // RequirementLevel: Recommended
1543 // Stability: Development
1544 //
1545 // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",
1546 // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID",
1547 // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>
1548 // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>"
1549 // Note: On some cloud providers, it may not be possible to determine the full
1550 // ID at startup,
1551 // so it may be necessary to set `cloud.resource_id` as a span attribute
1552 // instead.
1553 //
1554 // The exact value to use for `cloud.resource_id` depends on the cloud provider.
1555 // The following well-known definitions MUST be used if you set this attribute
1556 // and they apply:
1557 //
1558 // - **AWS Lambda:** The function [ARN].
1559 // Take care not to use the "invoked ARN" directly but replace any
1560 // [alias suffix]
1561 // with the resolved function version, as the same runtime instance may be
1562 // invocable with
1563 // multiple different aliases.
1564 // - **GCP:** The [URI of the resource]
1565 // - **Azure:** The [Fully Qualified Resource ID] of the invoked function,
1566 // *not* the function app, having the form
1567 //
1568 // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`
1569 // .
1570 // This means that a span attribute MUST be used, as an Azure function app
1571 // can host multiple functions that would usually share
1572 // a TracerProvider.
1573 //
1574 //
1575 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
1576 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
1577 // [full resource name]: https://cloud.google.com/apis/design/resource_names#full_resource_name
1578 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
1579 // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
1580 // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names
1581 // [Fully Qualified Resource ID]: https://docs.microsoft.com/rest/api/resources/resources/get-by-id
1582 CloudResourceIDKey = attribute.Key("cloud.resource_id")
1583 )
1584
1585 // CloudAccountID returns an attribute KeyValue conforming to the
1586 // "cloud.account.id" semantic conventions. It represents the cloud account ID
1587 // the resource is assigned to.
1588 func CloudAccountID(val string) attribute.KeyValue {
1589 return CloudAccountIDKey.String(val)
1590 }
1591
1592 // CloudAvailabilityZone returns an attribute KeyValue conforming to the
1593 // "cloud.availability_zone" semantic conventions. It represents the cloud
1594 // regions often have multiple, isolated locations known as zones to increase
1595 // availability. Availability zone represents the zone where the resource is
1596 // running.
1597 func CloudAvailabilityZone(val string) attribute.KeyValue {
1598 return CloudAvailabilityZoneKey.String(val)
1599 }
1600
1601 // CloudRegion returns an attribute KeyValue conforming to the "cloud.region"
1602 // semantic conventions. It represents the geographical region the resource is
1603 // running.
1604 func CloudRegion(val string) attribute.KeyValue {
1605 return CloudRegionKey.String(val)
1606 }
1607
1608 // CloudResourceID returns an attribute KeyValue conforming to the
1609 // "cloud.resource_id" semantic conventions. It represents the cloud
1610 // provider-specific native identifier of the monitored cloud resource (e.g. an
1611 // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name]
1612 // on GCP).
1613 //
1614 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
1615 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
1616 // [full resource name]: https://cloud.google.com/apis/design/resource_names#full_resource_name
1617 func CloudResourceID(val string) attribute.KeyValue {
1618 return CloudResourceIDKey.String(val)
1619 }
1620
1621 // Enum values for cloud.platform
1622 var (
1623 // Alibaba Cloud Elastic Compute Service
1624 // Stability: development
1625 CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
1626 // Alibaba Cloud Function Compute
1627 // Stability: development
1628 CloudPlatformAlibabaCloudFc = CloudPlatformKey.String("alibaba_cloud_fc")
1629 // Red Hat OpenShift on Alibaba Cloud
1630 // Stability: development
1631 CloudPlatformAlibabaCloudOpenshift = CloudPlatformKey.String("alibaba_cloud_openshift")
1632 // AWS Elastic Compute Cloud
1633 // Stability: development
1634 CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
1635 // AWS Elastic Container Service
1636 // Stability: development
1637 CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
1638 // AWS Elastic Kubernetes Service
1639 // Stability: development
1640 CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
1641 // AWS Lambda
1642 // Stability: development
1643 CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
1644 // AWS Elastic Beanstalk
1645 // Stability: development
1646 CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
1647 // AWS App Runner
1648 // Stability: development
1649 CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
1650 // Red Hat OpenShift on AWS (ROSA)
1651 // Stability: development
1652 CloudPlatformAWSOpenshift = CloudPlatformKey.String("aws_openshift")
1653 // Azure Virtual Machines
1654 // Stability: development
1655 CloudPlatformAzureVM = CloudPlatformKey.String("azure_vm")
1656 // Azure Container Apps
1657 // Stability: development
1658 CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure_container_apps")
1659 // Azure Container Instances
1660 // Stability: development
1661 CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure_container_instances")
1662 // Azure Kubernetes Service
1663 // Stability: development
1664 CloudPlatformAzureAKS = CloudPlatformKey.String("azure_aks")
1665 // Azure Functions
1666 // Stability: development
1667 CloudPlatformAzureFunctions = CloudPlatformKey.String("azure_functions")
1668 // Azure App Service
1669 // Stability: development
1670 CloudPlatformAzureAppService = CloudPlatformKey.String("azure_app_service")
1671 // Azure Red Hat OpenShift
1672 // Stability: development
1673 CloudPlatformAzureOpenshift = CloudPlatformKey.String("azure_openshift")
1674 // Google Bare Metal Solution (BMS)
1675 // Stability: development
1676 CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
1677 // Google Cloud Compute Engine (GCE)
1678 // Stability: development
1679 CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
1680 // Google Cloud Run
1681 // Stability: development
1682 CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
1683 // Google Cloud Kubernetes Engine (GKE)
1684 // Stability: development
1685 CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
1686 // Google Cloud Functions (GCF)
1687 // Stability: development
1688 CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
1689 // Google Cloud App Engine (GAE)
1690 // Stability: development
1691 CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
1692 // Red Hat OpenShift on Google Cloud
1693 // Stability: development
1694 CloudPlatformGCPOpenshift = CloudPlatformKey.String("gcp_openshift")
1695 // Red Hat OpenShift on IBM Cloud
1696 // Stability: development
1697 CloudPlatformIbmCloudOpenshift = CloudPlatformKey.String("ibm_cloud_openshift")
1698 // Tencent Cloud Cloud Virtual Machine (CVM)
1699 // Stability: development
1700 CloudPlatformTencentCloudCvm = CloudPlatformKey.String("tencent_cloud_cvm")
1701 // Tencent Cloud Elastic Kubernetes Service (EKS)
1702 // Stability: development
1703 CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
1704 // Tencent Cloud Serverless Cloud Function (SCF)
1705 // Stability: development
1706 CloudPlatformTencentCloudScf = CloudPlatformKey.String("tencent_cloud_scf")
1707 )
1708
1709 // Enum values for cloud.provider
1710 var (
1711 // Alibaba Cloud
1712 // Stability: development
1713 CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
1714 // Amazon Web Services
1715 // Stability: development
1716 CloudProviderAWS = CloudProviderKey.String("aws")
1717 // Microsoft Azure
1718 // Stability: development
1719 CloudProviderAzure = CloudProviderKey.String("azure")
1720 // Google Cloud Platform
1721 // Stability: development
1722 CloudProviderGCP = CloudProviderKey.String("gcp")
1723 // Heroku Platform as a Service
1724 // Stability: development
1725 CloudProviderHeroku = CloudProviderKey.String("heroku")
1726 // IBM Cloud
1727 // Stability: development
1728 CloudProviderIbmCloud = CloudProviderKey.String("ibm_cloud")
1729 // Tencent Cloud
1730 // Stability: development
1731 CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
1732 )
1733
1734 // Namespace: cloudevents
1735 const (
1736 // CloudeventsEventIDKey is the attribute Key conforming to the
1737 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
1738 // uniquely identifies the event.
1739 //
1740 // Type: string
1741 // RequirementLevel: Recommended
1742 // Stability: Development
1743 //
1744 // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
1745 //
1746 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
1747 CloudeventsEventIDKey = attribute.Key("cloudevents.event_id")
1748
1749 // CloudeventsEventSourceKey is the attribute Key conforming to the
1750 // "cloudevents.event_source" semantic conventions. It represents the [source]
1751 // identifies the context in which an event happened.
1752 //
1753 // Type: string
1754 // RequirementLevel: Recommended
1755 // Stability: Development
1756 //
1757 // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
1758 // "my-service"
1759 //
1760 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
1761 CloudeventsEventSourceKey = attribute.Key("cloudevents.event_source")
1762
1763 // CloudeventsEventSpecVersionKey is the attribute Key conforming to the
1764 // "cloudevents.event_spec_version" semantic conventions. It represents the
1765 // [version of the CloudEvents specification] which the event uses.
1766 //
1767 // Type: string
1768 // RequirementLevel: Recommended
1769 // Stability: Development
1770 //
1771 // Examples: 1.0
1772 //
1773 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
1774 CloudeventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
1775
1776 // CloudeventsEventSubjectKey is the attribute Key conforming to the
1777 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
1778 // of the event in the context of the event producer (identified by source).
1779 //
1780 // Type: string
1781 // RequirementLevel: Recommended
1782 // Stability: Development
1783 //
1784 // Examples: mynewfile.jpg
1785 //
1786 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
1787 CloudeventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
1788
1789 // CloudeventsEventTypeKey is the attribute Key conforming to the
1790 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
1791 // contains a value describing the type of event related to the originating
1792 // occurrence.
1793 //
1794 // Type: string
1795 // RequirementLevel: Recommended
1796 // Stability: Development
1797 //
1798 // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
1799 //
1800 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
1801 CloudeventsEventTypeKey = attribute.Key("cloudevents.event_type")
1802 )
1803
1804 // CloudeventsEventID returns an attribute KeyValue conforming to the
1805 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
1806 // uniquely identifies the event.
1807 //
1808 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
1809 func CloudeventsEventID(val string) attribute.KeyValue {
1810 return CloudeventsEventIDKey.String(val)
1811 }
1812
1813 // CloudeventsEventSource returns an attribute KeyValue conforming to the
1814 // "cloudevents.event_source" semantic conventions. It represents the [source]
1815 // identifies the context in which an event happened.
1816 //
1817 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
1818 func CloudeventsEventSource(val string) attribute.KeyValue {
1819 return CloudeventsEventSourceKey.String(val)
1820 }
1821
1822 // CloudeventsEventSpecVersion returns an attribute KeyValue conforming to the
1823 // "cloudevents.event_spec_version" semantic conventions. It represents the
1824 // [version of the CloudEvents specification] which the event uses.
1825 //
1826 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
1827 func CloudeventsEventSpecVersion(val string) attribute.KeyValue {
1828 return CloudeventsEventSpecVersionKey.String(val)
1829 }
1830
1831 // CloudeventsEventSubject returns an attribute KeyValue conforming to the
1832 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
1833 // of the event in the context of the event producer (identified by source).
1834 //
1835 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
1836 func CloudeventsEventSubject(val string) attribute.KeyValue {
1837 return CloudeventsEventSubjectKey.String(val)
1838 }
1839
1840 // CloudeventsEventType returns an attribute KeyValue conforming to the
1841 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
1842 // contains a value describing the type of event related to the originating
1843 // occurrence.
1844 //
1845 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
1846 func CloudeventsEventType(val string) attribute.KeyValue {
1847 return CloudeventsEventTypeKey.String(val)
1848 }
1849
1850 // Namespace: cloudfoundry
1851 const (
1852 // CloudfoundryAppIDKey is the attribute Key conforming to the
1853 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
1854 // application.
1855 //
1856 // Type: string
1857 // RequirementLevel: Recommended
1858 // Stability: Development
1859 //
1860 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
1861 // Note: Application instrumentation should use the value from environment
1862 // variable `VCAP_APPLICATION.application_id`. This is the same value as
1863 // reported by `cf app <app-name> --guid`.
1864 CloudfoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
1865
1866 // CloudfoundryAppInstanceIDKey is the attribute Key conforming to the
1867 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
1868 // of the application instance. 0 when just one instance is active.
1869 //
1870 // Type: string
1871 // RequirementLevel: Recommended
1872 // Stability: Development
1873 //
1874 // Examples: "0", "1"
1875 // Note: CloudFoundry defines the `instance_id` in the [Loggegator v2 envelope]
1876 // .
1877 // It is used for logs and metrics emitted by CloudFoundry. It is
1878 // supposed to contain the application instance index for applications
1879 // deployed on the runtime.
1880 //
1881 // Application instrumentation should use the value from environment
1882 // variable `CF_INSTANCE_INDEX`.
1883 //
1884 // [Loggegator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
1885 CloudfoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
1886
1887 // CloudfoundryAppNameKey is the attribute Key conforming to the
1888 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
1889 // application.
1890 //
1891 // Type: string
1892 // RequirementLevel: Recommended
1893 // Stability: Development
1894 //
1895 // Examples: "my-app-name"
1896 // Note: Application instrumentation should use the value from environment
1897 // variable `VCAP_APPLICATION.application_name`. This is the same value
1898 // as reported by `cf apps`.
1899 CloudfoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
1900
1901 // CloudfoundryOrgIDKey is the attribute Key conforming to the
1902 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
1903 // CloudFoundry org the application is running in.
1904 //
1905 // Type: string
1906 // RequirementLevel: Recommended
1907 // Stability: Development
1908 //
1909 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
1910 // Note: Application instrumentation should use the value from environment
1911 // variable `VCAP_APPLICATION.org_id`. This is the same value as
1912 // reported by `cf org <org-name> --guid`.
1913 CloudfoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
1914
1915 // CloudfoundryOrgNameKey is the attribute Key conforming to the
1916 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
1917 // CloudFoundry organization the app is running in.
1918 //
1919 // Type: string
1920 // RequirementLevel: Recommended
1921 // Stability: Development
1922 //
1923 // Examples: "my-org-name"
1924 // Note: Application instrumentation should use the value from environment
1925 // variable `VCAP_APPLICATION.org_name`. This is the same value as
1926 // reported by `cf orgs`.
1927 CloudfoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
1928
1929 // CloudfoundryProcessIDKey is the attribute Key conforming to the
1930 // "cloudfoundry.process.id" semantic conventions. It represents the UID
1931 // identifying the process.
1932 //
1933 // Type: string
1934 // RequirementLevel: Recommended
1935 // Stability: Development
1936 //
1937 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
1938 // Note: Application instrumentation should use the value from environment
1939 // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
1940 // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
1941 // For system components, this could be the actual PID.
1942 CloudfoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
1943
1944 // CloudfoundryProcessTypeKey is the attribute Key conforming to the
1945 // "cloudfoundry.process.type" semantic conventions. It represents the type of
1946 // process.
1947 //
1948 // Type: string
1949 // RequirementLevel: Recommended
1950 // Stability: Development
1951 //
1952 // Examples: "web"
1953 // Note: CloudFoundry applications can consist of multiple jobs. Usually the
1954 // main process will be of type `web`. There can be additional background
1955 // tasks or side-cars with different process types.
1956 CloudfoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
1957
1958 // CloudfoundrySpaceIDKey is the attribute Key conforming to the
1959 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
1960 // CloudFoundry space the application is running in.
1961 //
1962 // Type: string
1963 // RequirementLevel: Recommended
1964 // Stability: Development
1965 //
1966 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
1967 // Note: Application instrumentation should use the value from environment
1968 // variable `VCAP_APPLICATION.space_id`. This is the same value as
1969 // reported by `cf space <space-name> --guid`.
1970 CloudfoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
1971
1972 // CloudfoundrySpaceNameKey is the attribute Key conforming to the
1973 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
1974 // CloudFoundry space the application is running in.
1975 //
1976 // Type: string
1977 // RequirementLevel: Recommended
1978 // Stability: Development
1979 //
1980 // Examples: "my-space-name"
1981 // Note: Application instrumentation should use the value from environment
1982 // variable `VCAP_APPLICATION.space_name`. This is the same value as
1983 // reported by `cf spaces`.
1984 CloudfoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
1985
1986 // CloudfoundrySystemIDKey is the attribute Key conforming to the
1987 // "cloudfoundry.system.id" semantic conventions. It represents a guid or
1988 // another name describing the event source.
1989 //
1990 // Type: string
1991 // RequirementLevel: Recommended
1992 // Stability: Development
1993 //
1994 // Examples: "cf/gorouter"
1995 // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
1996 // It is used for logs and metrics emitted by CloudFoundry. It is
1997 // supposed to contain the component name, e.g. "gorouter", for
1998 // CloudFoundry components.
1999 //
2000 // When system components are instrumented, values from the
2001 // [Bosh spec]
2002 // should be used. The `system.id` should be set to
2003 // `spec.deployment/spec.name`.
2004 //
2005 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2006 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2007 CloudfoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
2008
2009 // CloudfoundrySystemInstanceIDKey is the attribute Key conforming to the
2010 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
2011 // describing the concrete instance of the event source.
2012 //
2013 // Type: string
2014 // RequirementLevel: Recommended
2015 // Stability: Development
2016 //
2017 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2018 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2019 // .
2020 // It is used for logs and metrics emitted by CloudFoundry. It is
2021 // supposed to contain the vm id for CloudFoundry components.
2022 //
2023 // When system components are instrumented, values from the
2024 // [Bosh spec]
2025 // should be used. The `system.instance.id` should be set to `spec.id`.
2026 //
2027 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2028 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2029 CloudfoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
2030 )
2031
2032 // CloudfoundryAppID returns an attribute KeyValue conforming to the
2033 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2034 // application.
2035 func CloudfoundryAppID(val string) attribute.KeyValue {
2036 return CloudfoundryAppIDKey.String(val)
2037 }
2038
2039 // CloudfoundryAppInstanceID returns an attribute KeyValue conforming to the
2040 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2041 // of the application instance. 0 when just one instance is active.
2042 func CloudfoundryAppInstanceID(val string) attribute.KeyValue {
2043 return CloudfoundryAppInstanceIDKey.String(val)
2044 }
2045
2046 // CloudfoundryAppName returns an attribute KeyValue conforming to the
2047 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2048 // application.
2049 func CloudfoundryAppName(val string) attribute.KeyValue {
2050 return CloudfoundryAppNameKey.String(val)
2051 }
2052
2053 // CloudfoundryOrgID returns an attribute KeyValue conforming to the
2054 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
2055 // CloudFoundry org the application is running in.
2056 func CloudfoundryOrgID(val string) attribute.KeyValue {
2057 return CloudfoundryOrgIDKey.String(val)
2058 }
2059
2060 // CloudfoundryOrgName returns an attribute KeyValue conforming to the
2061 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
2062 // CloudFoundry organization the app is running in.
2063 func CloudfoundryOrgName(val string) attribute.KeyValue {
2064 return CloudfoundryOrgNameKey.String(val)
2065 }
2066
2067 // CloudfoundryProcessID returns an attribute KeyValue conforming to the
2068 // "cloudfoundry.process.id" semantic conventions. It represents the UID
2069 // identifying the process.
2070 func CloudfoundryProcessID(val string) attribute.KeyValue {
2071 return CloudfoundryProcessIDKey.String(val)
2072 }
2073
2074 // CloudfoundryProcessType returns an attribute KeyValue conforming to the
2075 // "cloudfoundry.process.type" semantic conventions. It represents the type of
2076 // process.
2077 func CloudfoundryProcessType(val string) attribute.KeyValue {
2078 return CloudfoundryProcessTypeKey.String(val)
2079 }
2080
2081 // CloudfoundrySpaceID returns an attribute KeyValue conforming to the
2082 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
2083 // CloudFoundry space the application is running in.
2084 func CloudfoundrySpaceID(val string) attribute.KeyValue {
2085 return CloudfoundrySpaceIDKey.String(val)
2086 }
2087
2088 // CloudfoundrySpaceName returns an attribute KeyValue conforming to the
2089 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
2090 // CloudFoundry space the application is running in.
2091 func CloudfoundrySpaceName(val string) attribute.KeyValue {
2092 return CloudfoundrySpaceNameKey.String(val)
2093 }
2094
2095 // CloudfoundrySystemID returns an attribute KeyValue conforming to the
2096 // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
2097 // name describing the event source.
2098 func CloudfoundrySystemID(val string) attribute.KeyValue {
2099 return CloudfoundrySystemIDKey.String(val)
2100 }
2101
2102 // CloudfoundrySystemInstanceID returns an attribute KeyValue conforming to the
2103 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
2104 // describing the concrete instance of the event source.
2105 func CloudfoundrySystemInstanceID(val string) attribute.KeyValue {
2106 return CloudfoundrySystemInstanceIDKey.String(val)
2107 }
2108
2109 // Namespace: code
2110 const (
2111 // CodeColumnKey is the attribute Key conforming to the "code.column" semantic
2112 // conventions. It represents the column number in `code.filepath` best
2113 // representing the operation. It SHOULD point within the code unit named in
2114 // `code.function`.
2115 //
2116 // Type: int
2117 // RequirementLevel: Recommended
2118 // Stability: Development
2119 CodeColumnKey = attribute.Key("code.column")
2120
2121 // CodeFilepathKey is the attribute Key conforming to the "code.filepath"
2122 // semantic conventions. It represents the source code file name that identifies
2123 // the code unit as uniquely as possible (preferably an absolute file path).
2124 //
2125 // Type: string
2126 // RequirementLevel: Recommended
2127 // Stability: Development
2128 //
2129 // Examples: /usr/local/MyApplication/content_root/app/index.php
2130 CodeFilepathKey = attribute.Key("code.filepath")
2131
2132 // CodeFunctionKey is the attribute Key conforming to the "code.function"
2133 // semantic conventions. It represents the method or function name, or
2134 // equivalent (usually rightmost part of the code unit's name).
2135 //
2136 // Type: string
2137 // RequirementLevel: Recommended
2138 // Stability: Development
2139 //
2140 // Examples: serveRequest
2141 CodeFunctionKey = attribute.Key("code.function")
2142
2143 // CodeLineNumberKey is the attribute Key conforming to the "code.lineno"
2144 // semantic conventions. It represents the line number in `code.filepath` best
2145 // representing the operation. It SHOULD point within the code unit named in
2146 // `code.function`.
2147 //
2148 // Type: int
2149 // RequirementLevel: Recommended
2150 // Stability: Development
2151 CodeLineNumberKey = attribute.Key("code.lineno")
2152
2153 // CodeNamespaceKey is the attribute Key conforming to the "code.namespace"
2154 // semantic conventions. It represents the "namespace" within which
2155 // `code.function` is defined. Usually the qualified class or module name, such
2156 // that `code.namespace` + some separator + `code.function` form a unique
2157 // identifier for the code unit.
2158 //
2159 // Type: string
2160 // RequirementLevel: Recommended
2161 // Stability: Development
2162 //
2163 // Examples: com.example.MyHttpService
2164 CodeNamespaceKey = attribute.Key("code.namespace")
2165
2166 // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
2167 // semantic conventions. It represents a stacktrace as a string in the natural
2168 // representation for the language runtime. The representation is to be
2169 // determined and documented by each language SIG.
2170 //
2171 // Type: string
2172 // RequirementLevel: Recommended
2173 // Stability: Development
2174 //
2175 // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
2176 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
2177 // com.example.GenerateTrace.main(GenerateTrace.java:5)
2178 CodeStacktraceKey = attribute.Key("code.stacktrace")
2179 )
2180
2181 // CodeColumn returns an attribute KeyValue conforming to the "code.column"
2182 // semantic conventions. It represents the column number in `code.filepath` best
2183 // representing the operation. It SHOULD point within the code unit named in
2184 // `code.function`.
2185 func CodeColumn(val int) attribute.KeyValue {
2186 return CodeColumnKey.Int(val)
2187 }
2188
2189 // CodeFilepath returns an attribute KeyValue conforming to the "code.filepath"
2190 // semantic conventions. It represents the source code file name that identifies
2191 // the code unit as uniquely as possible (preferably an absolute file path).
2192 func CodeFilepath(val string) attribute.KeyValue {
2193 return CodeFilepathKey.String(val)
2194 }
2195
2196 // CodeFunction returns an attribute KeyValue conforming to the "code.function"
2197 // semantic conventions. It represents the method or function name, or equivalent
2198 // (usually rightmost part of the code unit's name).
2199 func CodeFunction(val string) attribute.KeyValue {
2200 return CodeFunctionKey.String(val)
2201 }
2202
2203 // CodeLineNumber returns an attribute KeyValue conforming to the "code.lineno"
2204 // semantic conventions. It represents the line number in `code.filepath` best
2205 // representing the operation. It SHOULD point within the code unit named in
2206 // `code.function`.
2207 func CodeLineNumber(val int) attribute.KeyValue {
2208 return CodeLineNumberKey.Int(val)
2209 }
2210
2211 // CodeNamespace returns an attribute KeyValue conforming to the "code.namespace"
2212 // semantic conventions. It represents the "namespace" within which
2213 // `code.function` is defined. Usually the qualified class or module name, such
2214 // that `code.namespace` + some separator + `code.function` form a unique
2215 // identifier for the code unit.
2216 func CodeNamespace(val string) attribute.KeyValue {
2217 return CodeNamespaceKey.String(val)
2218 }
2219
2220 // CodeStacktrace returns an attribute KeyValue conforming to the
2221 // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
2222 // in the natural representation for the language runtime. The representation is
2223 // to be determined and documented by each language SIG.
2224 func CodeStacktrace(val string) attribute.KeyValue {
2225 return CodeStacktraceKey.String(val)
2226 }
2227
2228 // Namespace: container
2229 const (
2230 // ContainerCommandKey is the attribute Key conforming to the
2231 // "container.command" semantic conventions. It represents the command used to
2232 // run the container (i.e. the command name).
2233 //
2234 // Type: string
2235 // RequirementLevel: Recommended
2236 // Stability: Development
2237 //
2238 // Examples: "otelcontribcol"
2239 // Note: If using embedded credentials or sensitive data, it is recommended to
2240 // remove them to prevent potential leakage.
2241 ContainerCommandKey = attribute.Key("container.command")
2242
2243 // ContainerCommandArgsKey is the attribute Key conforming to the
2244 // "container.command_args" semantic conventions. It represents the all the
2245 // command arguments (including the command/executable itself) run by the
2246 // container.
2247 //
2248 // Type: string[]
2249 // RequirementLevel: Recommended
2250 // Stability: Development
2251 //
2252 // Examples: "otelcontribcol", "--config", "config.yaml"
2253 ContainerCommandArgsKey = attribute.Key("container.command_args")
2254
2255 // ContainerCommandLineKey is the attribute Key conforming to the
2256 // "container.command_line" semantic conventions. It represents the full command
2257 // run by the container as a single string representing the full command.
2258 //
2259 // Type: string
2260 // RequirementLevel: Recommended
2261 // Stability: Development
2262 //
2263 // Examples: "otelcontribcol --config config.yaml"
2264 ContainerCommandLineKey = attribute.Key("container.command_line")
2265
2266 // ContainerCsiPluginNameKey is the attribute Key conforming to the
2267 // "container.csi.plugin.name" semantic conventions. It represents the name of
2268 // the CSI ([Container Storage Interface]) plugin used by the volume.
2269 //
2270 // Type: string
2271 // RequirementLevel: Recommended
2272 // Stability: Development
2273 //
2274 // Examples: "pd.csi.storage.gke.io"
2275 // Note: This can sometimes be referred to as a "driver" in CSI implementations.
2276 // This should represent the `name` field of the GetPluginInfo RPC.
2277 //
2278 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2279 ContainerCsiPluginNameKey = attribute.Key("container.csi.plugin.name")
2280
2281 // ContainerCsiVolumeIDKey is the attribute Key conforming to the
2282 // "container.csi.volume.id" semantic conventions. It represents the unique
2283 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
2284 //
2285 // Type: string
2286 // RequirementLevel: Recommended
2287 // Stability: Development
2288 //
2289 // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
2290 // Note: This can sometimes be referred to as a "volume handle" in CSI
2291 // implementations. This should represent the `Volume.volume_id` field in CSI
2292 // spec.
2293 //
2294 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2295 ContainerCsiVolumeIDKey = attribute.Key("container.csi.volume.id")
2296
2297 // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
2298 // conventions. It represents the container ID. Usually a UUID, as for example
2299 // used to [identify Docker containers]. The UUID might be abbreviated.
2300 //
2301 // Type: string
2302 // RequirementLevel: Recommended
2303 // Stability: Development
2304 //
2305 // Examples: "a3bf90e006b2"
2306 //
2307 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
2308 ContainerIDKey = attribute.Key("container.id")
2309
2310 // ContainerImageIDKey is the attribute Key conforming to the
2311 // "container.image.id" semantic conventions. It represents the runtime specific
2312 // image identifier. Usually a hash algorithm followed by a UUID.
2313 //
2314 // Type: string
2315 // RequirementLevel: Recommended
2316 // Stability: Development
2317 //
2318 // Examples:
2319 // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
2320 // Note: Docker defines a sha256 of the image id; `container.image.id`
2321 // corresponds to the `Image` field from the Docker container inspect [API]
2322 // endpoint.
2323 // K8s defines a link to the container registry repository with digest
2324 // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
2325 // .
2326 // The ID is assigned by the container runtime and can vary in different
2327 // environments. Consider using `oci.manifest.digest` if it is important to
2328 // identify the same image in different environments/runtimes.
2329 //
2330 // [API]: https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect
2331 ContainerImageIDKey = attribute.Key("container.image.id")
2332
2333 // ContainerImageNameKey is the attribute Key conforming to the
2334 // "container.image.name" semantic conventions. It represents the name of the
2335 // image the container was built on.
2336 //
2337 // Type: string
2338 // RequirementLevel: Recommended
2339 // Stability: Development
2340 //
2341 // Examples: "gcr.io/opentelemetry/operator"
2342 ContainerImageNameKey = attribute.Key("container.image.name")
2343
2344 // ContainerImageRepoDigestsKey is the attribute Key conforming to the
2345 // "container.image.repo_digests" semantic conventions. It represents the repo
2346 // digests of the container image as provided by the container runtime.
2347 //
2348 // Type: string[]
2349 // RequirementLevel: Recommended
2350 // Stability: Development
2351 //
2352 // Examples:
2353 // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
2354 // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
2355 // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
2356 //
2357 // [Docker]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
2358 // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
2359 ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
2360
2361 // ContainerImageTagsKey is the attribute Key conforming to the
2362 // "container.image.tags" semantic conventions. It represents the container
2363 // image tags. An example can be found in [Docker Image Inspect]. Should be only
2364 // the `<tag>` section of the full name for example from
2365 // `registry.example.com/my-org/my-image:<tag>`.
2366 //
2367 // Type: string[]
2368 // RequirementLevel: Recommended
2369 // Stability: Development
2370 //
2371 // Examples: "v1.27.1", "3.5.7-0"
2372 //
2373 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
2374 ContainerImageTagsKey = attribute.Key("container.image.tags")
2375
2376 // ContainerNameKey is the attribute Key conforming to the "container.name"
2377 // semantic conventions. It represents the container name used by container
2378 // runtime.
2379 //
2380 // Type: string
2381 // RequirementLevel: Recommended
2382 // Stability: Development
2383 //
2384 // Examples: "opentelemetry-autoconf"
2385 ContainerNameKey = attribute.Key("container.name")
2386
2387 // ContainerRuntimeKey is the attribute Key conforming to the
2388 // "container.runtime" semantic conventions. It represents the container runtime
2389 // managing this container.
2390 //
2391 // Type: string
2392 // RequirementLevel: Recommended
2393 // Stability: Development
2394 //
2395 // Examples: "docker", "containerd", "rkt"
2396 ContainerRuntimeKey = attribute.Key("container.runtime")
2397 )
2398
2399 // ContainerCommand returns an attribute KeyValue conforming to the
2400 // "container.command" semantic conventions. It represents the command used to
2401 // run the container (i.e. the command name).
2402 func ContainerCommand(val string) attribute.KeyValue {
2403 return ContainerCommandKey.String(val)
2404 }
2405
2406 // ContainerCommandArgs returns an attribute KeyValue conforming to the
2407 // "container.command_args" semantic conventions. It represents the all the
2408 // command arguments (including the command/executable itself) run by the
2409 // container.
2410 func ContainerCommandArgs(val ...string) attribute.KeyValue {
2411 return ContainerCommandArgsKey.StringSlice(val)
2412 }
2413
2414 // ContainerCommandLine returns an attribute KeyValue conforming to the
2415 // "container.command_line" semantic conventions. It represents the full command
2416 // run by the container as a single string representing the full command.
2417 func ContainerCommandLine(val string) attribute.KeyValue {
2418 return ContainerCommandLineKey.String(val)
2419 }
2420
2421 // ContainerCsiPluginName returns an attribute KeyValue conforming to the
2422 // "container.csi.plugin.name" semantic conventions. It represents the name of
2423 // the CSI ([Container Storage Interface]) plugin used by the volume.
2424 //
2425 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2426 func ContainerCsiPluginName(val string) attribute.KeyValue {
2427 return ContainerCsiPluginNameKey.String(val)
2428 }
2429
2430 // ContainerCsiVolumeID returns an attribute KeyValue conforming to the
2431 // "container.csi.volume.id" semantic conventions. It represents the unique
2432 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
2433 //
2434 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2435 func ContainerCsiVolumeID(val string) attribute.KeyValue {
2436 return ContainerCsiVolumeIDKey.String(val)
2437 }
2438
2439 // ContainerID returns an attribute KeyValue conforming to the "container.id"
2440 // semantic conventions. It represents the container ID. Usually a UUID, as for
2441 // example used to [identify Docker containers]. The UUID might be abbreviated.
2442 //
2443 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
2444 func ContainerID(val string) attribute.KeyValue {
2445 return ContainerIDKey.String(val)
2446 }
2447
2448 // ContainerImageID returns an attribute KeyValue conforming to the
2449 // "container.image.id" semantic conventions. It represents the runtime specific
2450 // image identifier. Usually a hash algorithm followed by a UUID.
2451 func ContainerImageID(val string) attribute.KeyValue {
2452 return ContainerImageIDKey.String(val)
2453 }
2454
2455 // ContainerImageName returns an attribute KeyValue conforming to the
2456 // "container.image.name" semantic conventions. It represents the name of the
2457 // image the container was built on.
2458 func ContainerImageName(val string) attribute.KeyValue {
2459 return ContainerImageNameKey.String(val)
2460 }
2461
2462 // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
2463 // "container.image.repo_digests" semantic conventions. It represents the repo
2464 // digests of the container image as provided by the container runtime.
2465 func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
2466 return ContainerImageRepoDigestsKey.StringSlice(val)
2467 }
2468
2469 // ContainerImageTags returns an attribute KeyValue conforming to the
2470 // "container.image.tags" semantic conventions. It represents the container image
2471 // tags. An example can be found in [Docker Image Inspect]. Should be only the
2472 // `<tag>` section of the full name for example from
2473 // `registry.example.com/my-org/my-image:<tag>`.
2474 //
2475 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
2476 func ContainerImageTags(val ...string) attribute.KeyValue {
2477 return ContainerImageTagsKey.StringSlice(val)
2478 }
2479
2480 // ContainerName returns an attribute KeyValue conforming to the "container.name"
2481 // semantic conventions. It represents the container name used by container
2482 // runtime.
2483 func ContainerName(val string) attribute.KeyValue {
2484 return ContainerNameKey.String(val)
2485 }
2486
2487 // ContainerRuntime returns an attribute KeyValue conforming to the
2488 // "container.runtime" semantic conventions. It represents the container runtime
2489 // managing this container.
2490 func ContainerRuntime(val string) attribute.KeyValue {
2491 return ContainerRuntimeKey.String(val)
2492 }
2493
2494 // Namespace: cpu
2495 const (
2496 // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
2497 // conventions. It represents the mode of the CPU.
2498 //
2499 // Type: Enum
2500 // RequirementLevel: Recommended
2501 // Stability: Development
2502 //
2503 // Examples: "user", "system"
2504 CPUModeKey = attribute.Key("cpu.mode")
2505 )
2506
2507 // Enum values for cpu.mode
2508 var (
2509 // user
2510 // Stability: development
2511 CPUModeUser = CPUModeKey.String("user")
2512 // system
2513 // Stability: development
2514 CPUModeSystem = CPUModeKey.String("system")
2515 // nice
2516 // Stability: development
2517 CPUModeNice = CPUModeKey.String("nice")
2518 // idle
2519 // Stability: development
2520 CPUModeIdle = CPUModeKey.String("idle")
2521 // iowait
2522 // Stability: development
2523 CPUModeIowait = CPUModeKey.String("iowait")
2524 // interrupt
2525 // Stability: development
2526 CPUModeInterrupt = CPUModeKey.String("interrupt")
2527 // steal
2528 // Stability: development
2529 CPUModeSteal = CPUModeKey.String("steal")
2530 // kernel
2531 // Stability: development
2532 CPUModeKernel = CPUModeKey.String("kernel")
2533 )
2534
2535 // Namespace: db
2536 const (
2537 // DBCassandraConsistencyLevelKey is the attribute Key conforming to the
2538 // "db.cassandra.consistency_level" semantic conventions. It represents the
2539 // consistency level of the query. Based on consistency values from [CQL].
2540 //
2541 // Type: Enum
2542 // RequirementLevel: Recommended
2543 // Stability: Development
2544 //
2545 // Examples:
2546 //
2547 // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
2548 DBCassandraConsistencyLevelKey = attribute.Key("db.cassandra.consistency_level")
2549
2550 // DBCassandraCoordinatorDCKey is the attribute Key conforming to the
2551 // "db.cassandra.coordinator.dc" semantic conventions. It represents the data
2552 // center of the coordinating node for a query.
2553 //
2554 // Type: string
2555 // RequirementLevel: Recommended
2556 // Stability: Development
2557 //
2558 // Examples: us-west-2
2559 DBCassandraCoordinatorDCKey = attribute.Key("db.cassandra.coordinator.dc")
2560
2561 // DBCassandraCoordinatorIDKey is the attribute Key conforming to the
2562 // "db.cassandra.coordinator.id" semantic conventions. It represents the ID of
2563 // the coordinating node for a query.
2564 //
2565 // Type: string
2566 // RequirementLevel: Recommended
2567 // Stability: Development
2568 //
2569 // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af
2570 DBCassandraCoordinatorIDKey = attribute.Key("db.cassandra.coordinator.id")
2571
2572 // DBCassandraIdempotenceKey is the attribute Key conforming to the
2573 // "db.cassandra.idempotence" semantic conventions. It represents the whether or
2574 // not the query is idempotent.
2575 //
2576 // Type: boolean
2577 // RequirementLevel: Recommended
2578 // Stability: Development
2579 //
2580 // Examples:
2581 DBCassandraIdempotenceKey = attribute.Key("db.cassandra.idempotence")
2582
2583 // DBCassandraPageSizeKey is the attribute Key conforming to the
2584 // "db.cassandra.page_size" semantic conventions. It represents the fetch size
2585 // used for paging, i.e. how many rows will be returned at once.
2586 //
2587 // Type: int
2588 // RequirementLevel: Recommended
2589 // Stability: Development
2590 //
2591 // Examples: 5000
2592 DBCassandraPageSizeKey = attribute.Key("db.cassandra.page_size")
2593
2594 // DBCassandraSpeculativeExecutionCountKey is the attribute Key conforming to
2595 // the "db.cassandra.speculative_execution_count" semantic conventions. It
2596 // represents the number of times a query was speculatively executed. Not set or
2597 // `0` if the query was not executed speculatively.
2598 //
2599 // Type: int
2600 // RequirementLevel: Recommended
2601 // Stability: Development
2602 //
2603 // Examples: 0, 2
2604 DBCassandraSpeculativeExecutionCountKey = attribute.Key("db.cassandra.speculative_execution_count")
2605
2606 // DBClientConnectionPoolNameKey is the attribute Key conforming to the
2607 // "db.client.connection.pool.name" semantic conventions. It represents the name
2608 // of the connection pool; unique within the instrumented application. In case
2609 // the connection pool implementation doesn't provide a name, instrumentation
2610 // SHOULD use a combination of parameters that would make the name unique, for
2611 // example, combining attributes `server.address`, `server.port`, and
2612 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
2613 // Instrumentations that generate connection pool name following different
2614 // patterns SHOULD document it.
2615 //
2616 // Type: string
2617 // RequirementLevel: Recommended
2618 // Stability: Development
2619 //
2620 // Examples: "myDataSource"
2621 DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
2622
2623 // DBClientConnectionStateKey is the attribute Key conforming to the
2624 // "db.client.connection.state" semantic conventions. It represents the state of
2625 // a connection in the pool.
2626 //
2627 // Type: Enum
2628 // RequirementLevel: Recommended
2629 // Stability: Development
2630 //
2631 // Examples: "idle"
2632 DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
2633
2634 // DBCollectionNameKey is the attribute Key conforming to the
2635 // "db.collection.name" semantic conventions. It represents the name of a
2636 // collection (table, container) within the database.
2637 //
2638 // Type: string
2639 // RequirementLevel: Recommended
2640 // Stability: Development
2641 //
2642 // Examples: "public.users", "customers"
2643 // Note: It is RECOMMENDED to capture the value as provided by the application
2644 // without attempting to do any case normalization.
2645 // If the collection name is parsed from the query text, it SHOULD be the first
2646 // collection name found in the query and it SHOULD match the value provided in
2647 // the query text including any schema and database name prefix.
2648 // For batch operations, if the individual operations are known to have the same
2649 // collection name then that collection name SHOULD be used, otherwise
2650 // `db.collection.name` SHOULD NOT be captured.
2651 // This attribute has stability level RELEASE CANDIDATE.
2652 DBCollectionNameKey = attribute.Key("db.collection.name")
2653
2654 // DBCosmosDBClientIDKey is the attribute Key conforming to the
2655 // "db.cosmosdb.client_id" semantic conventions. It represents the unique Cosmos
2656 // client instance id.
2657 //
2658 // Type: string
2659 // RequirementLevel: Recommended
2660 // Stability: Development
2661 //
2662 // Examples: 3ba4827d-4422-483f-b59f-85b74211c11d
2663 DBCosmosDBClientIDKey = attribute.Key("db.cosmosdb.client_id")
2664
2665 // DBCosmosDBConnectionModeKey is the attribute Key conforming to the
2666 // "db.cosmosdb.connection_mode" semantic conventions. It represents the cosmos
2667 // client connection mode.
2668 //
2669 // Type: Enum
2670 // RequirementLevel: Recommended
2671 // Stability: Development
2672 //
2673 // Examples:
2674 DBCosmosDBConnectionModeKey = attribute.Key("db.cosmosdb.connection_mode")
2675
2676 // DBCosmosDBOperationTypeKey is the attribute Key conforming to the
2677 // "db.cosmosdb.operation_type" semantic conventions. It represents the cosmos
2678 // DB Operation Type.
2679 //
2680 // Type: Enum
2681 // RequirementLevel: Recommended
2682 // Stability: Development
2683 //
2684 // Examples:
2685 DBCosmosDBOperationTypeKey = attribute.Key("db.cosmosdb.operation_type")
2686
2687 // DBCosmosDBRequestChargeKey is the attribute Key conforming to the
2688 // "db.cosmosdb.request_charge" semantic conventions. It represents the rU
2689 // consumed for that operation.
2690 //
2691 // Type: double
2692 // RequirementLevel: Recommended
2693 // Stability: Development
2694 //
2695 // Examples: 46.18, 1.0
2696 DBCosmosDBRequestChargeKey = attribute.Key("db.cosmosdb.request_charge")
2697
2698 // DBCosmosDBRequestContentLengthKey is the attribute Key conforming to the
2699 // "db.cosmosdb.request_content_length" semantic conventions. It represents the
2700 // request payload size in bytes.
2701 //
2702 // Type: int
2703 // RequirementLevel: Recommended
2704 // Stability: Development
2705 //
2706 // Examples:
2707 DBCosmosDBRequestContentLengthKey = attribute.Key("db.cosmosdb.request_content_length")
2708
2709 // DBCosmosDBSubStatusCodeKey is the attribute Key conforming to the
2710 // "db.cosmosdb.sub_status_code" semantic conventions. It represents the cosmos
2711 // DB sub status code.
2712 //
2713 // Type: int
2714 // RequirementLevel: Recommended
2715 // Stability: Development
2716 //
2717 // Examples: 1000, 1002
2718 DBCosmosDBSubStatusCodeKey = attribute.Key("db.cosmosdb.sub_status_code")
2719
2720 // DBElasticsearchNodeNameKey is the attribute Key conforming to the
2721 // "db.elasticsearch.node.name" semantic conventions. It represents the
2722 // represents the human-readable identifier of the node/instance to which a
2723 // request was routed.
2724 //
2725 // Type: string
2726 // RequirementLevel: Recommended
2727 // Stability: Development
2728 //
2729 // Examples: "instance-0000000001"
2730 DBElasticsearchNodeNameKey = attribute.Key("db.elasticsearch.node.name")
2731
2732 // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
2733 // conventions. It represents the name of the database, fully qualified within
2734 // the server address and port.
2735 //
2736 // Type: string
2737 // RequirementLevel: Recommended
2738 // Stability: Development
2739 //
2740 // Examples: "customers", "test.users"
2741 // Note: If a database system has multiple namespace components, they SHOULD be
2742 // concatenated (potentially using database system specific conventions) from
2743 // most general to most specific namespace component, and more specific
2744 // namespaces SHOULD NOT be captured without the more general namespaces, to
2745 // ensure that "startswith" queries for the more general namespaces will be
2746 // valid.
2747 // Semantic conventions for individual database systems SHOULD document what
2748 // `db.namespace` means in the context of that system.
2749 // It is RECOMMENDED to capture the value as provided by the application without
2750 // attempting to do any case normalization.
2751 // This attribute has stability level RELEASE CANDIDATE.
2752 DBNamespaceKey = attribute.Key("db.namespace")
2753
2754 // DBOperationBatchSizeKey is the attribute Key conforming to the
2755 // "db.operation.batch.size" semantic conventions. It represents the number of
2756 // queries included in a batch operation.
2757 //
2758 // Type: int
2759 // RequirementLevel: Recommended
2760 // Stability: Development
2761 //
2762 // Examples: 2, 3, 4
2763 // Note: Operations are only considered batches when they contain two or more
2764 // operations, and so `db.operation.batch.size` SHOULD never be `1`.
2765 // This attribute has stability level RELEASE CANDIDATE.
2766 DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
2767
2768 // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
2769 // semantic conventions. It represents the name of the operation or command
2770 // being executed.
2771 //
2772 // Type: string
2773 // RequirementLevel: Recommended
2774 // Stability: Development
2775 //
2776 // Examples: "findAndModify", "HMSET", "SELECT"
2777 // Note: It is RECOMMENDED to capture the value as provided by the application
2778 // without attempting to do any case normalization.
2779 // If the operation name is parsed from the query text, it SHOULD be the first
2780 // operation name found in the query.
2781 // For batch operations, if the individual operations are known to have the same
2782 // operation name then that operation name SHOULD be used prepended by `BATCH `
2783 // , otherwise `db.operation.name` SHOULD be `BATCH` or some other database
2784 // system specific term if more applicable.
2785 // This attribute has stability level RELEASE CANDIDATE.
2786 DBOperationNameKey = attribute.Key("db.operation.name")
2787
2788 // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
2789 // semantic conventions. It represents the database query being executed.
2790 //
2791 // Type: string
2792 // RequirementLevel: Recommended
2793 // Stability: Development
2794 //
2795 // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey
2796 // "WuValue""
2797 // Note: For sanitization see [Sanitization of `db.query.text`].
2798 // For batch operations, if the individual operations are known to have the same
2799 // query text then that query text SHOULD be used, otherwise all of the
2800 // individual query texts SHOULD be concatenated with separator `; ` or some
2801 // other database system specific separator if more applicable.
2802 // Even though parameterized query text can potentially have sensitive data, by
2803 // using a parameterized query the user is giving a strong signal that any
2804 // sensitive data will be passed as parameter values, and the benefit to
2805 // observability of capturing the static part of the query text by default
2806 // outweighs the risk.
2807 // This attribute has stability level RELEASE CANDIDATE.
2808 //
2809 // [Sanitization of `db.query.text`]: ../../docs/database/database-spans.md#sanitization-of-dbquerytext
2810 DBQueryTextKey = attribute.Key("db.query.text")
2811
2812 // DBResponseStatusCodeKey is the attribute Key conforming to the
2813 // "db.response.status_code" semantic conventions. It represents the database
2814 // response status code.
2815 //
2816 // Type: string
2817 // RequirementLevel: Recommended
2818 // Stability: Development
2819 //
2820 // Examples: "102", "ORA-17002", "08P01", "404"
2821 // Note: The status code returned by the database. Usually it represents an
2822 // error code, but may also represent partial success, warning, or differentiate
2823 // between various types of successful outcomes.
2824 // Semantic conventions for individual database systems SHOULD document what
2825 // `db.response.status_code` means in the context of that system.
2826 // This attribute has stability level RELEASE CANDIDATE.
2827 DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
2828
2829 // DBSystemKey is the attribute Key conforming to the "db.system" semantic
2830 // conventions. It represents the database management system (DBMS) product as
2831 // identified by the client instrumentation.
2832 //
2833 // Type: Enum
2834 // RequirementLevel: Recommended
2835 // Stability: Development
2836 //
2837 // Examples:
2838 // Note: The actual DBMS may differ from the one identified by the client. For
2839 // example, when using PostgreSQL client libraries to connect to a CockroachDB,
2840 // the `db.system` is set to `postgresql` based on the instrumentation's best
2841 // knowledge.
2842 // This attribute has stability level RELEASE CANDIDATE.
2843 DBSystemKey = attribute.Key("db.system")
2844 )
2845
2846 // DBCassandraCoordinatorDC returns an attribute KeyValue conforming to the
2847 // "db.cassandra.coordinator.dc" semantic conventions. It represents the data
2848 // center of the coordinating node for a query.
2849 func DBCassandraCoordinatorDC(val string) attribute.KeyValue {
2850 return DBCassandraCoordinatorDCKey.String(val)
2851 }
2852
2853 // DBCassandraCoordinatorID returns an attribute KeyValue conforming to the
2854 // "db.cassandra.coordinator.id" semantic conventions. It represents the ID of
2855 // the coordinating node for a query.
2856 func DBCassandraCoordinatorID(val string) attribute.KeyValue {
2857 return DBCassandraCoordinatorIDKey.String(val)
2858 }
2859
2860 // DBCassandraIdempotence returns an attribute KeyValue conforming to the
2861 // "db.cassandra.idempotence" semantic conventions. It represents the whether or
2862 // not the query is idempotent.
2863 func DBCassandraIdempotence(val bool) attribute.KeyValue {
2864 return DBCassandraIdempotenceKey.Bool(val)
2865 }
2866
2867 // DBCassandraPageSize returns an attribute KeyValue conforming to the
2868 // "db.cassandra.page_size" semantic conventions. It represents the fetch size
2869 // used for paging, i.e. how many rows will be returned at once.
2870 func DBCassandraPageSize(val int) attribute.KeyValue {
2871 return DBCassandraPageSizeKey.Int(val)
2872 }
2873
2874 // DBCassandraSpeculativeExecutionCount returns an attribute KeyValue conforming
2875 // to the "db.cassandra.speculative_execution_count" semantic conventions. It
2876 // represents the number of times a query was speculatively executed. Not set or
2877 // `0` if the query was not executed speculatively.
2878 func DBCassandraSpeculativeExecutionCount(val int) attribute.KeyValue {
2879 return DBCassandraSpeculativeExecutionCountKey.Int(val)
2880 }
2881
2882 // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
2883 // "db.client.connection.pool.name" semantic conventions. It represents the name
2884 // of the connection pool; unique within the instrumented application. In case
2885 // the connection pool implementation doesn't provide a name, instrumentation
2886 // SHOULD use a combination of parameters that would make the name unique, for
2887 // example, combining attributes `server.address`, `server.port`, and
2888 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
2889 // Instrumentations that generate connection pool name following different
2890 // patterns SHOULD document it.
2891 func DBClientConnectionPoolName(val string) attribute.KeyValue {
2892 return DBClientConnectionPoolNameKey.String(val)
2893 }
2894
2895 // DBCollectionName returns an attribute KeyValue conforming to the
2896 // "db.collection.name" semantic conventions. It represents the name of a
2897 // collection (table, container) within the database.
2898 func DBCollectionName(val string) attribute.KeyValue {
2899 return DBCollectionNameKey.String(val)
2900 }
2901
2902 // DBCosmosDBClientID returns an attribute KeyValue conforming to the
2903 // "db.cosmosdb.client_id" semantic conventions. It represents the unique Cosmos
2904 // client instance id.
2905 func DBCosmosDBClientID(val string) attribute.KeyValue {
2906 return DBCosmosDBClientIDKey.String(val)
2907 }
2908
2909 // DBCosmosDBRequestCharge returns an attribute KeyValue conforming to the
2910 // "db.cosmosdb.request_charge" semantic conventions. It represents the rU
2911 // consumed for that operation.
2912 func DBCosmosDBRequestCharge(val float64) attribute.KeyValue {
2913 return DBCosmosDBRequestChargeKey.Float64(val)
2914 }
2915
2916 // DBCosmosDBRequestContentLength returns an attribute KeyValue conforming to the
2917 // "db.cosmosdb.request_content_length" semantic conventions. It represents the
2918 // request payload size in bytes.
2919 func DBCosmosDBRequestContentLength(val int) attribute.KeyValue {
2920 return DBCosmosDBRequestContentLengthKey.Int(val)
2921 }
2922
2923 // DBCosmosDBSubStatusCode returns an attribute KeyValue conforming to the
2924 // "db.cosmosdb.sub_status_code" semantic conventions. It represents the cosmos
2925 // DB sub status code.
2926 func DBCosmosDBSubStatusCode(val int) attribute.KeyValue {
2927 return DBCosmosDBSubStatusCodeKey.Int(val)
2928 }
2929
2930 // DBElasticsearchNodeName returns an attribute KeyValue conforming to the
2931 // "db.elasticsearch.node.name" semantic conventions. It represents the
2932 // represents the human-readable identifier of the node/instance to which a
2933 // request was routed.
2934 func DBElasticsearchNodeName(val string) attribute.KeyValue {
2935 return DBElasticsearchNodeNameKey.String(val)
2936 }
2937
2938 // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
2939 // semantic conventions. It represents the name of the database, fully qualified
2940 // within the server address and port.
2941 func DBNamespace(val string) attribute.KeyValue {
2942 return DBNamespaceKey.String(val)
2943 }
2944
2945 // DBOperationBatchSize returns an attribute KeyValue conforming to the
2946 // "db.operation.batch.size" semantic conventions. It represents the number of
2947 // queries included in a batch operation.
2948 func DBOperationBatchSize(val int) attribute.KeyValue {
2949 return DBOperationBatchSizeKey.Int(val)
2950 }
2951
2952 // DBOperationName returns an attribute KeyValue conforming to the
2953 // "db.operation.name" semantic conventions. It represents the name of the
2954 // operation or command being executed.
2955 func DBOperationName(val string) attribute.KeyValue {
2956 return DBOperationNameKey.String(val)
2957 }
2958
2959 // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
2960 // semantic conventions. It represents the database query being executed.
2961 func DBQueryText(val string) attribute.KeyValue {
2962 return DBQueryTextKey.String(val)
2963 }
2964
2965 // DBResponseStatusCode returns an attribute KeyValue conforming to the
2966 // "db.response.status_code" semantic conventions. It represents the database
2967 // response status code.
2968 func DBResponseStatusCode(val string) attribute.KeyValue {
2969 return DBResponseStatusCodeKey.String(val)
2970 }
2971
2972 // Enum values for db.cassandra.consistency_level
2973 var (
2974 // all
2975 // Stability: development
2976 DBCassandraConsistencyLevelAll = DBCassandraConsistencyLevelKey.String("all")
2977 // each_quorum
2978 // Stability: development
2979 DBCassandraConsistencyLevelEachQuorum = DBCassandraConsistencyLevelKey.String("each_quorum")
2980 // quorum
2981 // Stability: development
2982 DBCassandraConsistencyLevelQuorum = DBCassandraConsistencyLevelKey.String("quorum")
2983 // local_quorum
2984 // Stability: development
2985 DBCassandraConsistencyLevelLocalQuorum = DBCassandraConsistencyLevelKey.String("local_quorum")
2986 // one
2987 // Stability: development
2988 DBCassandraConsistencyLevelOne = DBCassandraConsistencyLevelKey.String("one")
2989 // two
2990 // Stability: development
2991 DBCassandraConsistencyLevelTwo = DBCassandraConsistencyLevelKey.String("two")
2992 // three
2993 // Stability: development
2994 DBCassandraConsistencyLevelThree = DBCassandraConsistencyLevelKey.String("three")
2995 // local_one
2996 // Stability: development
2997 DBCassandraConsistencyLevelLocalOne = DBCassandraConsistencyLevelKey.String("local_one")
2998 // any
2999 // Stability: development
3000 DBCassandraConsistencyLevelAny = DBCassandraConsistencyLevelKey.String("any")
3001 // serial
3002 // Stability: development
3003 DBCassandraConsistencyLevelSerial = DBCassandraConsistencyLevelKey.String("serial")
3004 // local_serial
3005 // Stability: development
3006 DBCassandraConsistencyLevelLocalSerial = DBCassandraConsistencyLevelKey.String("local_serial")
3007 )
3008
3009 // Enum values for db.client.connection.state
3010 var (
3011 // idle
3012 // Stability: development
3013 DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
3014 // used
3015 // Stability: development
3016 DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
3017 )
3018
3019 // Enum values for db.cosmosdb.connection_mode
3020 var (
3021 // Gateway (HTTP) connections mode
3022 // Stability: development
3023 DBCosmosDBConnectionModeGateway = DBCosmosDBConnectionModeKey.String("gateway")
3024 // Direct connection.
3025 // Stability: development
3026 DBCosmosDBConnectionModeDirect = DBCosmosDBConnectionModeKey.String("direct")
3027 )
3028
3029 // Enum values for db.cosmosdb.operation_type
3030 var (
3031 // batch
3032 // Stability: development
3033 DBCosmosDBOperationTypeBatch = DBCosmosDBOperationTypeKey.String("batch")
3034 // create
3035 // Stability: development
3036 DBCosmosDBOperationTypeCreate = DBCosmosDBOperationTypeKey.String("create")
3037 // delete
3038 // Stability: development
3039 DBCosmosDBOperationTypeDelete = DBCosmosDBOperationTypeKey.String("delete")
3040 // execute
3041 // Stability: development
3042 DBCosmosDBOperationTypeExecute = DBCosmosDBOperationTypeKey.String("execute")
3043 // execute_javascript
3044 // Stability: development
3045 DBCosmosDBOperationTypeExecuteJavascript = DBCosmosDBOperationTypeKey.String("execute_javascript")
3046 // invalid
3047 // Stability: development
3048 DBCosmosDBOperationTypeInvalid = DBCosmosDBOperationTypeKey.String("invalid")
3049 // head
3050 // Stability: development
3051 DBCosmosDBOperationTypeHead = DBCosmosDBOperationTypeKey.String("head")
3052 // head_feed
3053 // Stability: development
3054 DBCosmosDBOperationTypeHeadFeed = DBCosmosDBOperationTypeKey.String("head_feed")
3055 // patch
3056 // Stability: development
3057 DBCosmosDBOperationTypePatch = DBCosmosDBOperationTypeKey.String("patch")
3058 // query
3059 // Stability: development
3060 DBCosmosDBOperationTypeQuery = DBCosmosDBOperationTypeKey.String("query")
3061 // query_plan
3062 // Stability: development
3063 DBCosmosDBOperationTypeQueryPlan = DBCosmosDBOperationTypeKey.String("query_plan")
3064 // read
3065 // Stability: development
3066 DBCosmosDBOperationTypeRead = DBCosmosDBOperationTypeKey.String("read")
3067 // read_feed
3068 // Stability: development
3069 DBCosmosDBOperationTypeReadFeed = DBCosmosDBOperationTypeKey.String("read_feed")
3070 // replace
3071 // Stability: development
3072 DBCosmosDBOperationTypeReplace = DBCosmosDBOperationTypeKey.String("replace")
3073 // upsert
3074 // Stability: development
3075 DBCosmosDBOperationTypeUpsert = DBCosmosDBOperationTypeKey.String("upsert")
3076 )
3077
3078 // Enum values for db.system
3079 var (
3080 // Some other SQL database. Fallback only. See notes.
3081 // Stability: development
3082 DBSystemOtherSQL = DBSystemKey.String("other_sql")
3083 // Adabas (Adaptable Database System)
3084 // Stability: development
3085 DBSystemAdabas = DBSystemKey.String("adabas")
3086 // Deprecated: Replaced by `intersystems_cache`.
3087 DBSystemCache = DBSystemKey.String("cache")
3088 // InterSystems Caché
3089 // Stability: development
3090 DBSystemIntersystemsCache = DBSystemKey.String("intersystems_cache")
3091 // Apache Cassandra
3092 // Stability: development
3093 DBSystemCassandra = DBSystemKey.String("cassandra")
3094 // ClickHouse
3095 // Stability: development
3096 DBSystemClickhouse = DBSystemKey.String("clickhouse")
3097 // Deprecated: Replaced by `other_sql`.
3098 DBSystemCloudscape = DBSystemKey.String("cloudscape")
3099 // CockroachDB
3100 // Stability: development
3101 DBSystemCockroachdb = DBSystemKey.String("cockroachdb")
3102 // Deprecated: Removed.
3103 DBSystemColdfusion = DBSystemKey.String("coldfusion")
3104 // Microsoft Azure Cosmos DB
3105 // Stability: development
3106 DBSystemCosmosDB = DBSystemKey.String("cosmosdb")
3107 // Couchbase
3108 // Stability: development
3109 DBSystemCouchbase = DBSystemKey.String("couchbase")
3110 // CouchDB
3111 // Stability: development
3112 DBSystemCouchDB = DBSystemKey.String("couchdb")
3113 // IBM Db2
3114 // Stability: development
3115 DBSystemDb2 = DBSystemKey.String("db2")
3116 // Apache Derby
3117 // Stability: development
3118 DBSystemDerby = DBSystemKey.String("derby")
3119 // Amazon DynamoDB
3120 // Stability: development
3121 DBSystemDynamoDB = DBSystemKey.String("dynamodb")
3122 // EnterpriseDB
3123 // Stability: development
3124 DBSystemEDB = DBSystemKey.String("edb")
3125 // Elasticsearch
3126 // Stability: development
3127 DBSystemElasticsearch = DBSystemKey.String("elasticsearch")
3128 // FileMaker
3129 // Stability: development
3130 DBSystemFilemaker = DBSystemKey.String("filemaker")
3131 // Firebird
3132 // Stability: development
3133 DBSystemFirebird = DBSystemKey.String("firebird")
3134 // Deprecated: Replaced by `other_sql`.
3135 DBSystemFirstSQL = DBSystemKey.String("firstsql")
3136 // Apache Geode
3137 // Stability: development
3138 DBSystemGeode = DBSystemKey.String("geode")
3139 // H2
3140 // Stability: development
3141 DBSystemH2 = DBSystemKey.String("h2")
3142 // SAP HANA
3143 // Stability: development
3144 DBSystemHanaDB = DBSystemKey.String("hanadb")
3145 // Apache HBase
3146 // Stability: development
3147 DBSystemHBase = DBSystemKey.String("hbase")
3148 // Apache Hive
3149 // Stability: development
3150 DBSystemHive = DBSystemKey.String("hive")
3151 // HyperSQL DataBase
3152 // Stability: development
3153 DBSystemHSQLDB = DBSystemKey.String("hsqldb")
3154 // InfluxDB
3155 // Stability: development
3156 DBSystemInfluxdb = DBSystemKey.String("influxdb")
3157 // Informix
3158 // Stability: development
3159 DBSystemInformix = DBSystemKey.String("informix")
3160 // Ingres
3161 // Stability: development
3162 DBSystemIngres = DBSystemKey.String("ingres")
3163 // InstantDB
3164 // Stability: development
3165 DBSystemInstantDB = DBSystemKey.String("instantdb")
3166 // InterBase
3167 // Stability: development
3168 DBSystemInterbase = DBSystemKey.String("interbase")
3169 // MariaDB (This value has stability level RELEASE CANDIDATE)
3170 // Stability: development
3171 DBSystemMariaDB = DBSystemKey.String("mariadb")
3172 // SAP MaxDB
3173 // Stability: development
3174 DBSystemMaxDB = DBSystemKey.String("maxdb")
3175 // Memcached
3176 // Stability: development
3177 DBSystemMemcached = DBSystemKey.String("memcached")
3178 // MongoDB
3179 // Stability: development
3180 DBSystemMongoDB = DBSystemKey.String("mongodb")
3181 // Microsoft SQL Server (This value has stability level RELEASE CANDIDATE)
3182 // Stability: development
3183 DBSystemMSSQL = DBSystemKey.String("mssql")
3184 // Deprecated: Removed, use `other_sql` instead.
3185 DBSystemMssqlcompact = DBSystemKey.String("mssqlcompact")
3186 // MySQL (This value has stability level RELEASE CANDIDATE)
3187 // Stability: development
3188 DBSystemMySQL = DBSystemKey.String("mysql")
3189 // Neo4j
3190 // Stability: development
3191 DBSystemNeo4j = DBSystemKey.String("neo4j")
3192 // Netezza
3193 // Stability: development
3194 DBSystemNetezza = DBSystemKey.String("netezza")
3195 // OpenSearch
3196 // Stability: development
3197 DBSystemOpensearch = DBSystemKey.String("opensearch")
3198 // Oracle Database
3199 // Stability: development
3200 DBSystemOracle = DBSystemKey.String("oracle")
3201 // Pervasive PSQL
3202 // Stability: development
3203 DBSystemPervasive = DBSystemKey.String("pervasive")
3204 // PointBase
3205 // Stability: development
3206 DBSystemPointbase = DBSystemKey.String("pointbase")
3207 // PostgreSQL (This value has stability level RELEASE CANDIDATE)
3208 // Stability: development
3209 DBSystemPostgreSQL = DBSystemKey.String("postgresql")
3210 // Progress Database
3211 // Stability: development
3212 DBSystemProgress = DBSystemKey.String("progress")
3213 // Redis
3214 // Stability: development
3215 DBSystemRedis = DBSystemKey.String("redis")
3216 // Amazon Redshift
3217 // Stability: development
3218 DBSystemRedshift = DBSystemKey.String("redshift")
3219 // Cloud Spanner
3220 // Stability: development
3221 DBSystemSpanner = DBSystemKey.String("spanner")
3222 // SQLite
3223 // Stability: development
3224 DBSystemSqlite = DBSystemKey.String("sqlite")
3225 // Sybase
3226 // Stability: development
3227 DBSystemSybase = DBSystemKey.String("sybase")
3228 // Teradata
3229 // Stability: development
3230 DBSystemTeradata = DBSystemKey.String("teradata")
3231 // Trino
3232 // Stability: development
3233 DBSystemTrino = DBSystemKey.String("trino")
3234 // Vertica
3235 // Stability: development
3236 DBSystemVertica = DBSystemKey.String("vertica")
3237 )
3238
3239 // Namespace: deployment
3240 const (
3241 // DeploymentEnvironmentNameKey is the attribute Key conforming to the
3242 // "deployment.environment.name" semantic conventions. It represents the name of
3243 // the [deployment environment] (aka deployment tier).
3244 //
3245 // Type: string
3246 // RequirementLevel: Recommended
3247 // Stability: Development
3248 //
3249 // Examples: "staging", "production"
3250 // Note: `deployment.environment.name` does not affect the uniqueness
3251 // constraints defined through
3252 // the `service.namespace`, `service.name` and `service.instance.id` resource
3253 // attributes.
3254 // This implies that resources carrying the following attribute combinations
3255 // MUST be
3256 // considered to be identifying the same service:
3257 //
3258 // - `service.name=frontend`, `deployment.environment.name=production`
3259 // - `service.name=frontend`, `deployment.environment.name=staging`.
3260 //
3261 //
3262 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
3263 DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
3264
3265 // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
3266 // semantic conventions. It represents the id of the deployment.
3267 //
3268 // Type: string
3269 // RequirementLevel: Recommended
3270 // Stability: Development
3271 //
3272 // Examples: "1208"
3273 DeploymentIDKey = attribute.Key("deployment.id")
3274
3275 // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
3276 // semantic conventions. It represents the name of the deployment.
3277 //
3278 // Type: string
3279 // RequirementLevel: Recommended
3280 // Stability: Development
3281 //
3282 // Examples: "deploy my app", "deploy-frontend"
3283 DeploymentNameKey = attribute.Key("deployment.name")
3284
3285 // DeploymentStatusKey is the attribute Key conforming to the
3286 // "deployment.status" semantic conventions. It represents the status of the
3287 // deployment.
3288 //
3289 // Type: Enum
3290 // RequirementLevel: Recommended
3291 // Stability: Development
3292 //
3293 // Examples:
3294 DeploymentStatusKey = attribute.Key("deployment.status")
3295 )
3296
3297 // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
3298 // "deployment.environment.name" semantic conventions. It represents the name of
3299 // the [deployment environment] (aka deployment tier).
3300 //
3301 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
3302 func DeploymentEnvironmentName(val string) attribute.KeyValue {
3303 return DeploymentEnvironmentNameKey.String(val)
3304 }
3305
3306 // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
3307 // semantic conventions. It represents the id of the deployment.
3308 func DeploymentID(val string) attribute.KeyValue {
3309 return DeploymentIDKey.String(val)
3310 }
3311
3312 // DeploymentName returns an attribute KeyValue conforming to the
3313 // "deployment.name" semantic conventions. It represents the name of the
3314 // deployment.
3315 func DeploymentName(val string) attribute.KeyValue {
3316 return DeploymentNameKey.String(val)
3317 }
3318
3319 // Enum values for deployment.status
3320 var (
3321 // failed
3322 // Stability: development
3323 DeploymentStatusFailed = DeploymentStatusKey.String("failed")
3324 // succeeded
3325 // Stability: development
3326 DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
3327 )
3328
3329 // Namespace: destination
3330 const (
3331 // DestinationAddressKey is the attribute Key conforming to the
3332 // "destination.address" semantic conventions. It represents the destination
3333 // address - domain name if available without reverse DNS lookup; otherwise, IP
3334 // address or Unix domain socket name.
3335 //
3336 // Type: string
3337 // RequirementLevel: Recommended
3338 // Stability: Development
3339 //
3340 // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
3341 // Note: When observed from the source side, and when communicating through an
3342 // intermediary, `destination.address` SHOULD represent the destination address
3343 // behind any intermediaries, for example proxies, if it's available.
3344 DestinationAddressKey = attribute.Key("destination.address")
3345
3346 // DestinationPortKey is the attribute Key conforming to the "destination.port"
3347 // semantic conventions. It represents the destination port number.
3348 //
3349 // Type: int
3350 // RequirementLevel: Recommended
3351 // Stability: Development
3352 //
3353 // Examples: 3389, 2888
3354 DestinationPortKey = attribute.Key("destination.port")
3355 )
3356
3357 // DestinationAddress returns an attribute KeyValue conforming to the
3358 // "destination.address" semantic conventions. It represents the destination
3359 // address - domain name if available without reverse DNS lookup; otherwise, IP
3360 // address or Unix domain socket name.
3361 func DestinationAddress(val string) attribute.KeyValue {
3362 return DestinationAddressKey.String(val)
3363 }
3364
3365 // DestinationPort returns an attribute KeyValue conforming to the
3366 // "destination.port" semantic conventions. It represents the destination port
3367 // number.
3368 func DestinationPort(val int) attribute.KeyValue {
3369 return DestinationPortKey.Int(val)
3370 }
3371
3372 // Namespace: device
3373 const (
3374 // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
3375 // conventions. It represents a unique identifier representing the device.
3376 //
3377 // Type: string
3378 // RequirementLevel: Recommended
3379 // Stability: Development
3380 //
3381 // Examples: "2ab2916d-a51f-4ac8-80ee-45ac31a28092"
3382 // Note: The device identifier MUST only be defined using the values outlined
3383 // below. This value is not an advertising identifier and MUST NOT be used as
3384 // such. On iOS (Swift or Objective-C), this value MUST be equal to the
3385 // [vendor identifier]. On Android (Java or Kotlin), this value MUST be equal to
3386 // the Firebase Installation ID or a globally unique UUID which is persisted
3387 // across sessions in your application. More information can be found [here] on
3388 // best practices and exact implementation details. Caution should be taken when
3389 // storing personal data or anything which can identify a user. GDPR and data
3390 // protection laws may apply, ensure you do your own due diligence.
3391 //
3392 // [vendor identifier]: https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor
3393 // [here]: https://developer.android.com/training/articles/user-data-ids
3394 DeviceIDKey = attribute.Key("device.id")
3395
3396 // DeviceManufacturerKey is the attribute Key conforming to the
3397 // "device.manufacturer" semantic conventions. It represents the name of the
3398 // device manufacturer.
3399 //
3400 // Type: string
3401 // RequirementLevel: Recommended
3402 // Stability: Development
3403 //
3404 // Examples: "Apple", "Samsung"
3405 // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
3406 // hardcode the value `Apple`.
3407 //
3408 // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
3409 DeviceManufacturerKey = attribute.Key("device.manufacturer")
3410
3411 // DeviceModelIdentifierKey is the attribute Key conforming to the
3412 // "device.model.identifier" semantic conventions. It represents the model
3413 // identifier for the device.
3414 //
3415 // Type: string
3416 // RequirementLevel: Recommended
3417 // Stability: Development
3418 //
3419 // Examples: "iPhone3,4", "SM-G920F"
3420 // Note: It's recommended this value represents a machine-readable version of
3421 // the model identifier rather than the market or consumer-friendly name of the
3422 // device.
3423 DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
3424
3425 // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
3426 // semantic conventions. It represents the marketing name for the device model.
3427 //
3428 // Type: string
3429 // RequirementLevel: Recommended
3430 // Stability: Development
3431 //
3432 // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
3433 // Note: It's recommended this value represents a human-readable version of the
3434 // device model rather than a machine-readable alternative.
3435 DeviceModelNameKey = attribute.Key("device.model.name")
3436 )
3437
3438 // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
3439 // conventions. It represents a unique identifier representing the device.
3440 func DeviceID(val string) attribute.KeyValue {
3441 return DeviceIDKey.String(val)
3442 }
3443
3444 // DeviceManufacturer returns an attribute KeyValue conforming to the
3445 // "device.manufacturer" semantic conventions. It represents the name of the
3446 // device manufacturer.
3447 func DeviceManufacturer(val string) attribute.KeyValue {
3448 return DeviceManufacturerKey.String(val)
3449 }
3450
3451 // DeviceModelIdentifier returns an attribute KeyValue conforming to the
3452 // "device.model.identifier" semantic conventions. It represents the model
3453 // identifier for the device.
3454 func DeviceModelIdentifier(val string) attribute.KeyValue {
3455 return DeviceModelIdentifierKey.String(val)
3456 }
3457
3458 // DeviceModelName returns an attribute KeyValue conforming to the
3459 // "device.model.name" semantic conventions. It represents the marketing name for
3460 // the device model.
3461 func DeviceModelName(val string) attribute.KeyValue {
3462 return DeviceModelNameKey.String(val)
3463 }
3464
3465 // Namespace: disk
3466 const (
3467 // DiskIoDirectionKey is the attribute Key conforming to the "disk.io.direction"
3468 // semantic conventions. It represents the disk IO operation direction.
3469 //
3470 // Type: Enum
3471 // RequirementLevel: Recommended
3472 // Stability: Development
3473 //
3474 // Examples: "read"
3475 DiskIoDirectionKey = attribute.Key("disk.io.direction")
3476 )
3477
3478 // Enum values for disk.io.direction
3479 var (
3480 // read
3481 // Stability: development
3482 DiskIoDirectionRead = DiskIoDirectionKey.String("read")
3483 // write
3484 // Stability: development
3485 DiskIoDirectionWrite = DiskIoDirectionKey.String("write")
3486 )
3487
3488 // Namespace: dns
3489 const (
3490 // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
3491 // semantic conventions. It represents the name being queried.
3492 //
3493 // Type: string
3494 // RequirementLevel: Recommended
3495 // Stability: Development
3496 //
3497 // Examples: "www.example.com", "opentelemetry.io"
3498 // Note: If the name field contains non-printable characters (below 32 or above
3499 // 126), those characters should be represented as escaped base 10 integers
3500 // (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns,
3501 // and line feeds should be converted to \t, \r, and \n respectively.
3502 DNSQuestionNameKey = attribute.Key("dns.question.name")
3503 )
3504
3505 // DNSQuestionName returns an attribute KeyValue conforming to the
3506 // "dns.question.name" semantic conventions. It represents the name being
3507 // queried.
3508 func DNSQuestionName(val string) attribute.KeyValue {
3509 return DNSQuestionNameKey.String(val)
3510 }
3511
3512 // Namespace: error
3513 const (
3514 // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
3515 // conventions. It represents the describes a class of error the operation ended
3516 // with.
3517 //
3518 // Type: Enum
3519 // RequirementLevel: Recommended
3520 // Stability: Stable
3521 //
3522 // Examples: "timeout", "java.net.UnknownHostException",
3523 // "server_certificate_invalid", "500"
3524 // Note: The `error.type` SHOULD be predictable, and SHOULD have low
3525 // cardinality.
3526 //
3527 // When `error.type` is set to a type (e.g., an exception type), its
3528 // canonical class name identifying the type within the artifact SHOULD be used.
3529 //
3530 // Instrumentations SHOULD document the list of errors they report.
3531 //
3532 // The cardinality of `error.type` within one instrumentation library SHOULD be
3533 // low.
3534 // Telemetry consumers that aggregate data from multiple instrumentation
3535 // libraries and applications
3536 // should be prepared for `error.type` to have high cardinality at query time
3537 // when no
3538 // additional filters are applied.
3539 //
3540 // If the operation has completed successfully, instrumentations SHOULD NOT set
3541 // `error.type`.
3542 //
3543 // If a specific domain defines its own set of error identifiers (such as HTTP
3544 // or gRPC status codes),
3545 // it's RECOMMENDED to:
3546 //
3547 // - Use a domain-specific attribute
3548 // - Set `error.type` to capture all errors, regardless of whether they are
3549 // defined within the domain-specific set or not.
3550 ErrorTypeKey = attribute.Key("error.type")
3551 )
3552
3553 // Enum values for error.type
3554 var (
3555 // A fallback error value to be used when the instrumentation doesn't define a
3556 // custom value.
3557 //
3558 // Stability: stable
3559 ErrorTypeOther = ErrorTypeKey.String("_OTHER")
3560 )
3561
3562 // Namespace: event
3563 const (
3564 // EventNameKey is the attribute Key conforming to the "event.name" semantic
3565 // conventions. It represents the identifies the class / type of event.
3566 //
3567 // Type: string
3568 // RequirementLevel: Recommended
3569 // Stability: Development
3570 //
3571 // Examples: "browser.mouse.click", "device.app.lifecycle"
3572 // Note: Event names are subject to the same rules as [attribute names].
3573 // Notably, event names are namespaced to avoid collisions and provide a clean
3574 // separation of semantics for events in separate domains like browser, mobile,
3575 // and kubernetes.
3576 //
3577 // [attribute names]: /docs/general/attribute-naming.md
3578 EventNameKey = attribute.Key("event.name")
3579 )
3580
3581 // EventName returns an attribute KeyValue conforming to the "event.name"
3582 // semantic conventions. It represents the identifies the class / type of event.
3583 func EventName(val string) attribute.KeyValue {
3584 return EventNameKey.String(val)
3585 }
3586
3587 // Namespace: exception
3588 const (
3589 // ExceptionEscapedKey is the attribute Key conforming to the
3590 // "exception.escaped" semantic conventions. It represents the sHOULD be set to
3591 // true if the exception event is recorded at a point where it is known that the
3592 // exception is escaping the scope of the span.
3593 //
3594 // Type: boolean
3595 // RequirementLevel: Recommended
3596 // Stability: Stable
3597 //
3598 // Examples:
3599 // Note: An exception is considered to have escaped (or left) the scope of a
3600 // span,
3601 // if that span is ended while the exception is still logically "in flight".
3602 // This may be actually "in flight" in some languages (e.g. if the exception
3603 // is passed to a Context manager's `__exit__` method in Python) but will
3604 // usually be caught at the point of recording the exception in most languages.
3605 //
3606 // It is usually not possible to determine at the point where an exception is
3607 // thrown
3608 // whether it will escape the scope of a span.
3609 // However, it is trivial to know that an exception
3610 // will escape, if one checks for an active exception just before ending the
3611 // span,
3612 // as done in the [example for recording span exceptions].
3613 //
3614 // It follows that an exception may still escape the scope of the span
3615 // even if the `exception.escaped` attribute was not set or set to false,
3616 // since the event might have been recorded at a time where it was not
3617 // clear whether the exception will escape.
3618 //
3619 // [example for recording span exceptions]: https://opentelemetry.io/docs/specs/semconv/exceptions/exceptions-spans/#recording-an-exception
3620 ExceptionEscapedKey = attribute.Key("exception.escaped")
3621
3622 // ExceptionMessageKey is the attribute Key conforming to the
3623 // "exception.message" semantic conventions. It represents the exception
3624 // message.
3625 //
3626 // Type: string
3627 // RequirementLevel: Recommended
3628 // Stability: Stable
3629 //
3630 // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
3631 ExceptionMessageKey = attribute.Key("exception.message")
3632
3633 // ExceptionStacktraceKey is the attribute Key conforming to the
3634 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
3635 // string in the natural representation for the language runtime. The
3636 // representation is to be determined and documented by each language SIG.
3637 //
3638 // Type: string
3639 // RequirementLevel: Recommended
3640 // Stability: Stable
3641 //
3642 // Examples: Exception in thread "main" java.lang.RuntimeException: Test
3643 // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
3644 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
3645 // com.example.GenerateTrace.main(GenerateTrace.java:5)
3646 ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
3647
3648 // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
3649 // semantic conventions. It represents the type of the exception (its
3650 // fully-qualified class name, if applicable). The dynamic type of the exception
3651 // should be preferred over the static type in languages that support it.
3652 //
3653 // Type: string
3654 // RequirementLevel: Recommended
3655 // Stability: Stable
3656 //
3657 // Examples: "java.net.ConnectException", "OSError"
3658 ExceptionTypeKey = attribute.Key("exception.type")
3659 )
3660
3661 // ExceptionEscaped returns an attribute KeyValue conforming to the
3662 // "exception.escaped" semantic conventions. It represents the sHOULD be set to
3663 // true if the exception event is recorded at a point where it is known that the
3664 // exception is escaping the scope of the span.
3665 func ExceptionEscaped(val bool) attribute.KeyValue {
3666 return ExceptionEscapedKey.Bool(val)
3667 }
3668
3669 // ExceptionMessage returns an attribute KeyValue conforming to the
3670 // "exception.message" semantic conventions. It represents the exception message.
3671 func ExceptionMessage(val string) attribute.KeyValue {
3672 return ExceptionMessageKey.String(val)
3673 }
3674
3675 // ExceptionStacktrace returns an attribute KeyValue conforming to the
3676 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
3677 // string in the natural representation for the language runtime. The
3678 // representation is to be determined and documented by each language SIG.
3679 func ExceptionStacktrace(val string) attribute.KeyValue {
3680 return ExceptionStacktraceKey.String(val)
3681 }
3682
3683 // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
3684 // semantic conventions. It represents the type of the exception (its
3685 // fully-qualified class name, if applicable). The dynamic type of the exception
3686 // should be preferred over the static type in languages that support it.
3687 func ExceptionType(val string) attribute.KeyValue {
3688 return ExceptionTypeKey.String(val)
3689 }
3690
3691 // Namespace: faas
3692 const (
3693 // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
3694 // semantic conventions. It represents a boolean that is true if the serverless
3695 // function is executed for the first time (aka cold-start).
3696 //
3697 // Type: boolean
3698 // RequirementLevel: Recommended
3699 // Stability: Development
3700 //
3701 // Examples:
3702 FaaSColdstartKey = attribute.Key("faas.coldstart")
3703
3704 // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
3705 // conventions. It represents a string containing the schedule period as
3706 // [Cron Expression].
3707 //
3708 // Type: string
3709 // RequirementLevel: Recommended
3710 // Stability: Development
3711 //
3712 // Examples: 0/5 * * * ? *
3713 //
3714 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
3715 FaaSCronKey = attribute.Key("faas.cron")
3716
3717 // FaaSDocumentCollectionKey is the attribute Key conforming to the
3718 // "faas.document.collection" semantic conventions. It represents the name of
3719 // the source on which the triggering operation was performed. For example, in
3720 // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
3721 // database name.
3722 //
3723 // Type: string
3724 // RequirementLevel: Recommended
3725 // Stability: Development
3726 //
3727 // Examples: "myBucketName", "myDbName"
3728 FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
3729
3730 // FaaSDocumentNameKey is the attribute Key conforming to the
3731 // "faas.document.name" semantic conventions. It represents the document
3732 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
3733 // the name of the file, and in Cosmos DB the table name.
3734 //
3735 // Type: string
3736 // RequirementLevel: Recommended
3737 // Stability: Development
3738 //
3739 // Examples: "myFile.txt", "myTableName"
3740 FaaSDocumentNameKey = attribute.Key("faas.document.name")
3741
3742 // FaaSDocumentOperationKey is the attribute Key conforming to the
3743 // "faas.document.operation" semantic conventions. It represents the describes
3744 // the type of the operation that was performed on the data.
3745 //
3746 // Type: Enum
3747 // RequirementLevel: Recommended
3748 // Stability: Development
3749 //
3750 // Examples:
3751 FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
3752
3753 // FaaSDocumentTimeKey is the attribute Key conforming to the
3754 // "faas.document.time" semantic conventions. It represents a string containing
3755 // the time when the data was accessed in the [ISO 8601] format expressed in
3756 // [UTC].
3757 //
3758 // Type: string
3759 // RequirementLevel: Recommended
3760 // Stability: Development
3761 //
3762 // Examples: 2020-01-23T13:47:06Z
3763 //
3764 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
3765 // [UTC]: https://www.w3.org/TR/NOTE-datetime
3766 FaaSDocumentTimeKey = attribute.Key("faas.document.time")
3767
3768 // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
3769 // semantic conventions. It represents the execution environment ID as a string,
3770 // that will be potentially reused for other invocations to the same
3771 // function/function version.
3772 //
3773 // Type: string
3774 // RequirementLevel: Recommended
3775 // Stability: Development
3776 //
3777 // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
3778 // Note: * **AWS Lambda:** Use the (full) log stream name.
3779 FaaSInstanceKey = attribute.Key("faas.instance")
3780
3781 // FaaSInvocationIDKey is the attribute Key conforming to the
3782 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
3783 // the current function invocation.
3784 //
3785 // Type: string
3786 // RequirementLevel: Recommended
3787 // Stability: Development
3788 //
3789 // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
3790 FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
3791
3792 // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
3793 // semantic conventions. It represents the name of the invoked function.
3794 //
3795 // Type: string
3796 // RequirementLevel: Recommended
3797 // Stability: Development
3798 //
3799 // Examples: my-function
3800 // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
3801 // function.
3802 FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
3803
3804 // FaaSInvokedProviderKey is the attribute Key conforming to the
3805 // "faas.invoked_provider" semantic conventions. It represents the cloud
3806 // provider of the invoked function.
3807 //
3808 // Type: Enum
3809 // RequirementLevel: Recommended
3810 // Stability: Development
3811 //
3812 // Examples:
3813 // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
3814 // invoked function.
3815 FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
3816
3817 // FaaSInvokedRegionKey is the attribute Key conforming to the
3818 // "faas.invoked_region" semantic conventions. It represents the cloud region of
3819 // the invoked function.
3820 //
3821 // Type: string
3822 // RequirementLevel: Recommended
3823 // Stability: Development
3824 //
3825 // Examples: eu-central-1
3826 // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
3827 // function.
3828 FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
3829
3830 // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
3831 // semantic conventions. It represents the amount of memory available to the
3832 // serverless function converted to Bytes.
3833 //
3834 // Type: int
3835 // RequirementLevel: Recommended
3836 // Stability: Development
3837 //
3838 // Note: It's recommended to set this attribute since e.g. too little memory can
3839 // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
3840 // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
3841 // information (which must be multiplied by 1,048,576).
3842 FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
3843
3844 // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
3845 // conventions. It represents the name of the single function that this runtime
3846 // instance executes.
3847 //
3848 // Type: string
3849 // RequirementLevel: Recommended
3850 // Stability: Development
3851 //
3852 // Examples: "my-function", "myazurefunctionapp/some-function-name"
3853 // Note: This is the name of the function as configured/deployed on the FaaS
3854 // platform and is usually different from the name of the callback
3855 // function (which may be stored in the
3856 // [`code.namespace`/`code.function`]
3857 // span attributes).
3858 //
3859 // For some cloud providers, the above definition is ambiguous. The following
3860 // definition of function name MUST be used for this attribute
3861 // (and consequently the span name) for the listed cloud providers/products:
3862 //
3863 // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
3864 // followed by a forward slash followed by the function name (this form
3865 // can also be seen in the resource JSON for the function).
3866 // This means that a span attribute MUST be used, as an Azure function
3867 // app can host multiple functions that would usually share
3868 // a TracerProvider (see also the `cloud.resource_id` attribute).
3869 //
3870 //
3871 // [`code.namespace`/`code.function`]: /docs/general/attributes.md#source-code-attributes
3872 FaaSNameKey = attribute.Key("faas.name")
3873
3874 // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
3875 // conventions. It represents a string containing the function invocation time
3876 // in the [ISO 8601] format expressed in [UTC].
3877 //
3878 // Type: string
3879 // RequirementLevel: Recommended
3880 // Stability: Development
3881 //
3882 // Examples: 2020-01-23T13:47:06Z
3883 //
3884 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
3885 // [UTC]: https://www.w3.org/TR/NOTE-datetime
3886 FaaSTimeKey = attribute.Key("faas.time")
3887
3888 // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
3889 // conventions. It represents the type of the trigger which caused this function
3890 // invocation.
3891 //
3892 // Type: Enum
3893 // RequirementLevel: Recommended
3894 // Stability: Development
3895 //
3896 // Examples:
3897 FaaSTriggerKey = attribute.Key("faas.trigger")
3898
3899 // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
3900 // conventions. It represents the immutable version of the function being
3901 // executed.
3902 //
3903 // Type: string
3904 // RequirementLevel: Recommended
3905 // Stability: Development
3906 //
3907 // Examples: "26", "pinkfroid-00002"
3908 // Note: Depending on the cloud provider and platform, use:
3909 //
3910 // - **AWS Lambda:** The [function version]
3911 // (an integer represented as a decimal string).
3912 // - **Google Cloud Run (Services):** The [revision]
3913 // (i.e., the function name plus the revision suffix).
3914 // - **Google Cloud Functions:** The value of the
3915 // [`K_REVISION` environment variable].
3916 // - **Azure Functions:** Not applicable. Do not set this attribute.
3917 //
3918 //
3919 // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
3920 // [revision]: https://cloud.google.com/run/docs/managing/revisions
3921 // [`K_REVISION` environment variable]: https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically
3922 FaaSVersionKey = attribute.Key("faas.version")
3923 )
3924
3925 // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
3926 // semantic conventions. It represents a boolean that is true if the serverless
3927 // function is executed for the first time (aka cold-start).
3928 func FaaSColdstart(val bool) attribute.KeyValue {
3929 return FaaSColdstartKey.Bool(val)
3930 }
3931
3932 // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
3933 // conventions. It represents a string containing the schedule period as
3934 // [Cron Expression].
3935 //
3936 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
3937 func FaaSCron(val string) attribute.KeyValue {
3938 return FaaSCronKey.String(val)
3939 }
3940
3941 // FaaSDocumentCollection returns an attribute KeyValue conforming to the
3942 // "faas.document.collection" semantic conventions. It represents the name of the
3943 // source on which the triggering operation was performed. For example, in Cloud
3944 // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
3945 // name.
3946 func FaaSDocumentCollection(val string) attribute.KeyValue {
3947 return FaaSDocumentCollectionKey.String(val)
3948 }
3949
3950 // FaaSDocumentName returns an attribute KeyValue conforming to the
3951 // "faas.document.name" semantic conventions. It represents the document
3952 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
3953 // the name of the file, and in Cosmos DB the table name.
3954 func FaaSDocumentName(val string) attribute.KeyValue {
3955 return FaaSDocumentNameKey.String(val)
3956 }
3957
3958 // FaaSDocumentTime returns an attribute KeyValue conforming to the
3959 // "faas.document.time" semantic conventions. It represents a string containing
3960 // the time when the data was accessed in the [ISO 8601] format expressed in
3961 // [UTC].
3962 //
3963 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
3964 // [UTC]: https://www.w3.org/TR/NOTE-datetime
3965 func FaaSDocumentTime(val string) attribute.KeyValue {
3966 return FaaSDocumentTimeKey.String(val)
3967 }
3968
3969 // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
3970 // semantic conventions. It represents the execution environment ID as a string,
3971 // that will be potentially reused for other invocations to the same
3972 // function/function version.
3973 func FaaSInstance(val string) attribute.KeyValue {
3974 return FaaSInstanceKey.String(val)
3975 }
3976
3977 // FaaSInvocationID returns an attribute KeyValue conforming to the
3978 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
3979 // the current function invocation.
3980 func FaaSInvocationID(val string) attribute.KeyValue {
3981 return FaaSInvocationIDKey.String(val)
3982 }
3983
3984 // FaaSInvokedName returns an attribute KeyValue conforming to the
3985 // "faas.invoked_name" semantic conventions. It represents the name of the
3986 // invoked function.
3987 func FaaSInvokedName(val string) attribute.KeyValue {
3988 return FaaSInvokedNameKey.String(val)
3989 }
3990
3991 // FaaSInvokedRegion returns an attribute KeyValue conforming to the
3992 // "faas.invoked_region" semantic conventions. It represents the cloud region of
3993 // the invoked function.
3994 func FaaSInvokedRegion(val string) attribute.KeyValue {
3995 return FaaSInvokedRegionKey.String(val)
3996 }
3997
3998 // FaaSMaxMemory returns an attribute KeyValue conforming to the
3999 // "faas.max_memory" semantic conventions. It represents the amount of memory
4000 // available to the serverless function converted to Bytes.
4001 func FaaSMaxMemory(val int) attribute.KeyValue {
4002 return FaaSMaxMemoryKey.Int(val)
4003 }
4004
4005 // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
4006 // conventions. It represents the name of the single function that this runtime
4007 // instance executes.
4008 func FaaSName(val string) attribute.KeyValue {
4009 return FaaSNameKey.String(val)
4010 }
4011
4012 // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
4013 // conventions. It represents a string containing the function invocation time in
4014 // the [ISO 8601] format expressed in [UTC].
4015 //
4016 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4017 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4018 func FaaSTime(val string) attribute.KeyValue {
4019 return FaaSTimeKey.String(val)
4020 }
4021
4022 // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
4023 // semantic conventions. It represents the immutable version of the function
4024 // being executed.
4025 func FaaSVersion(val string) attribute.KeyValue {
4026 return FaaSVersionKey.String(val)
4027 }
4028
4029 // Enum values for faas.document.operation
4030 var (
4031 // When a new object is created.
4032 // Stability: development
4033 FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
4034 // When an object is modified.
4035 // Stability: development
4036 FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
4037 // When an object is deleted.
4038 // Stability: development
4039 FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
4040 )
4041
4042 // Enum values for faas.invoked_provider
4043 var (
4044 // Alibaba Cloud
4045 // Stability: development
4046 FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
4047 // Amazon Web Services
4048 // Stability: development
4049 FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
4050 // Microsoft Azure
4051 // Stability: development
4052 FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
4053 // Google Cloud Platform
4054 // Stability: development
4055 FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
4056 // Tencent Cloud
4057 // Stability: development
4058 FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
4059 )
4060
4061 // Enum values for faas.trigger
4062 var (
4063 // A response to some data source operation such as a database or filesystem
4064 // read/write
4065 // Stability: development
4066 FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
4067 // To provide an answer to an inbound HTTP request
4068 // Stability: development
4069 FaaSTriggerHTTP = FaaSTriggerKey.String("http")
4070 // A function is set to be executed when messages are sent to a messaging system
4071 // Stability: development
4072 FaaSTriggerPubsub = FaaSTriggerKey.String("pubsub")
4073 // A function is scheduled to be executed regularly
4074 // Stability: development
4075 FaaSTriggerTimer = FaaSTriggerKey.String("timer")
4076 // If none of the others apply
4077 // Stability: development
4078 FaaSTriggerOther = FaaSTriggerKey.String("other")
4079 )
4080
4081 // Namespace: feature_flag
4082 const (
4083 // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
4084 // semantic conventions. It represents the unique identifier of the feature
4085 // flag.
4086 //
4087 // Type: string
4088 // RequirementLevel: Recommended
4089 // Stability: Development
4090 //
4091 // Examples: "logo-color"
4092 FeatureFlagKeyKey = attribute.Key("feature_flag.key")
4093
4094 // FeatureFlagProviderNameKey is the attribute Key conforming to the
4095 // "feature_flag.provider_name" semantic conventions. It represents the name of
4096 // the service provider that performs the flag evaluation.
4097 //
4098 // Type: string
4099 // RequirementLevel: Recommended
4100 // Stability: Development
4101 //
4102 // Examples: "Flag Manager"
4103 FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider_name")
4104
4105 // FeatureFlagVariantKey is the attribute Key conforming to the
4106 // "feature_flag.variant" semantic conventions. It represents the sHOULD be a
4107 // semantic identifier for a value. If one is unavailable, a stringified version
4108 // of the value can be used.
4109 //
4110 // Type: string
4111 // RequirementLevel: Recommended
4112 // Stability: Development
4113 //
4114 // Examples: "red", "true", "on"
4115 // Note: A semantic identifier, commonly referred to as a variant, provides a
4116 // means
4117 // for referring to a value without including the value itself. This can
4118 // provide additional context for understanding the meaning behind a value.
4119 // For example, the variant `red` maybe be used for the value `#c05543`.
4120 //
4121 // A stringified version of the value can be used in situations where a
4122 // semantic identifier is unavailable. String representation of the value
4123 // should be determined by the implementer.
4124 FeatureFlagVariantKey = attribute.Key("feature_flag.variant")
4125 )
4126
4127 // FeatureFlagKey returns an attribute KeyValue conforming to the
4128 // "feature_flag.key" semantic conventions. It represents the unique identifier
4129 // of the feature flag.
4130 func FeatureFlagKey(val string) attribute.KeyValue {
4131 return FeatureFlagKeyKey.String(val)
4132 }
4133
4134 // FeatureFlagProviderName returns an attribute KeyValue conforming to the
4135 // "feature_flag.provider_name" semantic conventions. It represents the name of
4136 // the service provider that performs the flag evaluation.
4137 func FeatureFlagProviderName(val string) attribute.KeyValue {
4138 return FeatureFlagProviderNameKey.String(val)
4139 }
4140
4141 // FeatureFlagVariant returns an attribute KeyValue conforming to the
4142 // "feature_flag.variant" semantic conventions. It represents the sHOULD be a
4143 // semantic identifier for a value. If one is unavailable, a stringified version
4144 // of the value can be used.
4145 func FeatureFlagVariant(val string) attribute.KeyValue {
4146 return FeatureFlagVariantKey.String(val)
4147 }
4148
4149 // Namespace: file
4150 const (
4151 // FileAccessedKey is the attribute Key conforming to the "file.accessed"
4152 // semantic conventions. It represents the time when the file was last accessed,
4153 // in ISO 8601 format.
4154 //
4155 // Type: string
4156 // RequirementLevel: Recommended
4157 // Stability: Development
4158 //
4159 // Examples: "2021-01-01T12:00:00Z"
4160 // Note: This attribute might not be supported by some file systems — NFS,
4161 // FAT32, in embedded OS, etc.
4162 FileAccessedKey = attribute.Key("file.accessed")
4163
4164 // FileAttributesKey is the attribute Key conforming to the "file.attributes"
4165 // semantic conventions. It represents the array of file attributes.
4166 //
4167 // Type: string[]
4168 // RequirementLevel: Recommended
4169 // Stability: Development
4170 //
4171 // Examples: "readonly", "hidden"
4172 // Note: Attributes names depend on the OS or file system. Here’s a
4173 // non-exhaustive list of values expected for this attribute: `archive`,
4174 // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
4175 // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
4176 // `write`.
4177 FileAttributesKey = attribute.Key("file.attributes")
4178
4179 // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
4180 // conventions. It represents the time when the file attributes or metadata was
4181 // last changed, in ISO 8601 format.
4182 //
4183 // Type: string
4184 // RequirementLevel: Recommended
4185 // Stability: Development
4186 //
4187 // Examples: "2021-01-01T12:00:00Z"
4188 // Note: `file.changed` captures the time when any of the file's properties or
4189 // attributes (including the content) are changed, while `file.modified`
4190 // captures the timestamp when the file content is modified.
4191 FileChangedKey = attribute.Key("file.changed")
4192
4193 // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
4194 // conventions. It represents the time when the file was created, in ISO 8601
4195 // format.
4196 //
4197 // Type: string
4198 // RequirementLevel: Recommended
4199 // Stability: Development
4200 //
4201 // Examples: "2021-01-01T12:00:00Z"
4202 // Note: This attribute might not be supported by some file systems — NFS,
4203 // FAT32, in embedded OS, etc.
4204 FileCreatedKey = attribute.Key("file.created")
4205
4206 // FileDirectoryKey is the attribute Key conforming to the "file.directory"
4207 // semantic conventions. It represents the directory where the file is located.
4208 // It should include the drive letter, when appropriate.
4209 //
4210 // Type: string
4211 // RequirementLevel: Recommended
4212 // Stability: Development
4213 //
4214 // Examples: "/home/user", "C:\Program Files\MyApp"
4215 FileDirectoryKey = attribute.Key("file.directory")
4216
4217 // FileExtensionKey is the attribute Key conforming to the "file.extension"
4218 // semantic conventions. It represents the file extension, excluding the leading
4219 // dot.
4220 //
4221 // Type: string
4222 // RequirementLevel: Recommended
4223 // Stability: Development
4224 //
4225 // Examples: "png", "gz"
4226 // Note: When the file name has multiple extensions (example.tar.gz), only the
4227 // last one should be captured ("gz", not "tar.gz").
4228 FileExtensionKey = attribute.Key("file.extension")
4229
4230 // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
4231 // semantic conventions. It represents the name of the fork. A fork is
4232 // additional data associated with a filesystem object.
4233 //
4234 // Type: string
4235 // RequirementLevel: Recommended
4236 // Stability: Development
4237 //
4238 // Examples: "Zone.Identifer"
4239 // Note: On Linux, a resource fork is used to store additional data with a
4240 // filesystem object. A file always has at least one fork for the data portion,
4241 // and additional forks may exist.
4242 // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
4243 // data stream for a file is just called $DATA. Zone.Identifier is commonly used
4244 // by Windows to track contents downloaded from the Internet. An ADS is
4245 // typically of the form: C:\path\to\filename.extension:some_fork_name, and
4246 // some_fork_name is the value that should populate `fork_name`.
4247 // `filename.extension` should populate `file.name`, and `extension` should
4248 // populate `file.extension`. The full path, `file.path`, will include the fork
4249 // name.
4250 FileForkNameKey = attribute.Key("file.fork_name")
4251
4252 // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
4253 // semantic conventions. It represents the primary Group ID (GID) of the file.
4254 //
4255 // Type: string
4256 // RequirementLevel: Recommended
4257 // Stability: Development
4258 //
4259 // Examples: "1000"
4260 FileGroupIDKey = attribute.Key("file.group.id")
4261
4262 // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
4263 // semantic conventions. It represents the primary group name of the file.
4264 //
4265 // Type: string
4266 // RequirementLevel: Recommended
4267 // Stability: Development
4268 //
4269 // Examples: "users"
4270 FileGroupNameKey = attribute.Key("file.group.name")
4271
4272 // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
4273 // conventions. It represents the inode representing the file in the filesystem.
4274 //
4275 // Type: string
4276 // RequirementLevel: Recommended
4277 // Stability: Development
4278 //
4279 // Examples: "256383"
4280 FileInodeKey = attribute.Key("file.inode")
4281
4282 // FileModeKey is the attribute Key conforming to the "file.mode" semantic
4283 // conventions. It represents the mode of the file in octal representation.
4284 //
4285 // Type: string
4286 // RequirementLevel: Recommended
4287 // Stability: Development
4288 //
4289 // Examples: "0640"
4290 FileModeKey = attribute.Key("file.mode")
4291
4292 // FileModifiedKey is the attribute Key conforming to the "file.modified"
4293 // semantic conventions. It represents the time when the file content was last
4294 // modified, in ISO 8601 format.
4295 //
4296 // Type: string
4297 // RequirementLevel: Recommended
4298 // Stability: Development
4299 //
4300 // Examples: "2021-01-01T12:00:00Z"
4301 FileModifiedKey = attribute.Key("file.modified")
4302
4303 // FileNameKey is the attribute Key conforming to the "file.name" semantic
4304 // conventions. It represents the name of the file including the extension,
4305 // without the directory.
4306 //
4307 // Type: string
4308 // RequirementLevel: Recommended
4309 // Stability: Development
4310 //
4311 // Examples: "example.png"
4312 FileNameKey = attribute.Key("file.name")
4313
4314 // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
4315 // semantic conventions. It represents the user ID (UID) or security identifier
4316 // (SID) of the file owner.
4317 //
4318 // Type: string
4319 // RequirementLevel: Recommended
4320 // Stability: Development
4321 //
4322 // Examples: "1000"
4323 FileOwnerIDKey = attribute.Key("file.owner.id")
4324
4325 // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
4326 // semantic conventions. It represents the username of the file owner.
4327 //
4328 // Type: string
4329 // RequirementLevel: Recommended
4330 // Stability: Development
4331 //
4332 // Examples: "root"
4333 FileOwnerNameKey = attribute.Key("file.owner.name")
4334
4335 // FilePathKey is the attribute Key conforming to the "file.path" semantic
4336 // conventions. It represents the full path to the file, including the file
4337 // name. It should include the drive letter, when appropriate.
4338 //
4339 // Type: string
4340 // RequirementLevel: Recommended
4341 // Stability: Development
4342 //
4343 // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
4344 FilePathKey = attribute.Key("file.path")
4345
4346 // FileSizeKey is the attribute Key conforming to the "file.size" semantic
4347 // conventions. It represents the file size in bytes.
4348 //
4349 // Type: int
4350 // RequirementLevel: Recommended
4351 // Stability: Development
4352 //
4353 // Examples:
4354 FileSizeKey = attribute.Key("file.size")
4355
4356 // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
4357 // "file.symbolic_link.target_path" semantic conventions. It represents the path
4358 // to the target of a symbolic link.
4359 //
4360 // Type: string
4361 // RequirementLevel: Recommended
4362 // Stability: Development
4363 //
4364 // Examples: "/usr/bin/python3"
4365 // Note: This attribute is only applicable to symbolic links.
4366 FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
4367 )
4368
4369 // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
4370 // semantic conventions. It represents the time when the file was last accessed,
4371 // in ISO 8601 format.
4372 func FileAccessed(val string) attribute.KeyValue {
4373 return FileAccessedKey.String(val)
4374 }
4375
4376 // FileAttributes returns an attribute KeyValue conforming to the
4377 // "file.attributes" semantic conventions. It represents the array of file
4378 // attributes.
4379 func FileAttributes(val ...string) attribute.KeyValue {
4380 return FileAttributesKey.StringSlice(val)
4381 }
4382
4383 // FileChanged returns an attribute KeyValue conforming to the "file.changed"
4384 // semantic conventions. It represents the time when the file attributes or
4385 // metadata was last changed, in ISO 8601 format.
4386 func FileChanged(val string) attribute.KeyValue {
4387 return FileChangedKey.String(val)
4388 }
4389
4390 // FileCreated returns an attribute KeyValue conforming to the "file.created"
4391 // semantic conventions. It represents the time when the file was created, in ISO
4392 // 8601 format.
4393 func FileCreated(val string) attribute.KeyValue {
4394 return FileCreatedKey.String(val)
4395 }
4396
4397 // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
4398 // semantic conventions. It represents the directory where the file is located.
4399 // It should include the drive letter, when appropriate.
4400 func FileDirectory(val string) attribute.KeyValue {
4401 return FileDirectoryKey.String(val)
4402 }
4403
4404 // FileExtension returns an attribute KeyValue conforming to the "file.extension"
4405 // semantic conventions. It represents the file extension, excluding the leading
4406 // dot.
4407 func FileExtension(val string) attribute.KeyValue {
4408 return FileExtensionKey.String(val)
4409 }
4410
4411 // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
4412 // semantic conventions. It represents the name of the fork. A fork is additional
4413 // data associated with a filesystem object.
4414 func FileForkName(val string) attribute.KeyValue {
4415 return FileForkNameKey.String(val)
4416 }
4417
4418 // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
4419 // semantic conventions. It represents the primary Group ID (GID) of the file.
4420 func FileGroupID(val string) attribute.KeyValue {
4421 return FileGroupIDKey.String(val)
4422 }
4423
4424 // FileGroupName returns an attribute KeyValue conforming to the
4425 // "file.group.name" semantic conventions. It represents the primary group name
4426 // of the file.
4427 func FileGroupName(val string) attribute.KeyValue {
4428 return FileGroupNameKey.String(val)
4429 }
4430
4431 // FileInode returns an attribute KeyValue conforming to the "file.inode"
4432 // semantic conventions. It represents the inode representing the file in the
4433 // filesystem.
4434 func FileInode(val string) attribute.KeyValue {
4435 return FileInodeKey.String(val)
4436 }
4437
4438 // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
4439 // conventions. It represents the mode of the file in octal representation.
4440 func FileMode(val string) attribute.KeyValue {
4441 return FileModeKey.String(val)
4442 }
4443
4444 // FileModified returns an attribute KeyValue conforming to the "file.modified"
4445 // semantic conventions. It represents the time when the file content was last
4446 // modified, in ISO 8601 format.
4447 func FileModified(val string) attribute.KeyValue {
4448 return FileModifiedKey.String(val)
4449 }
4450
4451 // FileName returns an attribute KeyValue conforming to the "file.name" semantic
4452 // conventions. It represents the name of the file including the extension,
4453 // without the directory.
4454 func FileName(val string) attribute.KeyValue {
4455 return FileNameKey.String(val)
4456 }
4457
4458 // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
4459 // semantic conventions. It represents the user ID (UID) or security identifier
4460 // (SID) of the file owner.
4461 func FileOwnerID(val string) attribute.KeyValue {
4462 return FileOwnerIDKey.String(val)
4463 }
4464
4465 // FileOwnerName returns an attribute KeyValue conforming to the
4466 // "file.owner.name" semantic conventions. It represents the username of the file
4467 // owner.
4468 func FileOwnerName(val string) attribute.KeyValue {
4469 return FileOwnerNameKey.String(val)
4470 }
4471
4472 // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
4473 // conventions. It represents the full path to the file, including the file name.
4474 // It should include the drive letter, when appropriate.
4475 func FilePath(val string) attribute.KeyValue {
4476 return FilePathKey.String(val)
4477 }
4478
4479 // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
4480 // conventions. It represents the file size in bytes.
4481 func FileSize(val int) attribute.KeyValue {
4482 return FileSizeKey.Int(val)
4483 }
4484
4485 // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
4486 // "file.symbolic_link.target_path" semantic conventions. It represents the path
4487 // to the target of a symbolic link.
4488 func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
4489 return FileSymbolicLinkTargetPathKey.String(val)
4490 }
4491
4492 // Namespace: gcp
4493 const (
4494 // GCPClientServiceKey is the attribute Key conforming to the
4495 // "gcp.client.service" semantic conventions. It represents the identifies the
4496 // Google Cloud service for which the official client library is intended.
4497 //
4498 // Type: string
4499 // RequirementLevel: Recommended
4500 // Stability: Development
4501 //
4502 // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
4503 // Note: Intended to be a stable identifier for Google Cloud client libraries
4504 // that is uniform across implementation languages. The value should be derived
4505 // from the canonical service domain for the service; for example,
4506 // 'foo.googleapis.com' should result in a value of 'foo'.
4507 GCPClientServiceKey = attribute.Key("gcp.client.service")
4508
4509 // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
4510 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
4511 // the Cloud Run [execution] being run for the Job, as set by the
4512 // [`CLOUD_RUN_EXECUTION`] environment variable.
4513 //
4514 // Type: string
4515 // RequirementLevel: Recommended
4516 // Stability: Development
4517 //
4518 // Examples: "job-name-xxxx", "sample-job-mdw84"
4519 //
4520 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
4521 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
4522 GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
4523
4524 // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
4525 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
4526 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
4527 // environment variable.
4528 //
4529 // Type: int
4530 // RequirementLevel: Recommended
4531 // Stability: Development
4532 //
4533 // Examples: 0, 1
4534 //
4535 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
4536 GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
4537
4538 // GCPGceInstanceHostnameKey is the attribute Key conforming to the
4539 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
4540 // of a GCE instance. This is the full value of the default or [custom hostname]
4541 // .
4542 //
4543 // Type: string
4544 // RequirementLevel: Recommended
4545 // Stability: Development
4546 //
4547 // Examples: "my-host1234.example.com",
4548 // "sample-vm.us-west1-b.c.my-project.internal"
4549 //
4550 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
4551 GCPGceInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
4552
4553 // GCPGceInstanceNameKey is the attribute Key conforming to the
4554 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
4555 // of a GCE instance. This is the value provided by `host.name`, the visible
4556 // name of the instance in the Cloud Console UI, and the prefix for the default
4557 // hostname of the instance as defined by the [default internal DNS name].
4558 //
4559 // Type: string
4560 // RequirementLevel: Recommended
4561 // Stability: Development
4562 //
4563 // Examples: "instance-1", "my-vm-name"
4564 //
4565 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
4566 GCPGceInstanceNameKey = attribute.Key("gcp.gce.instance.name")
4567 )
4568
4569 // GCPClientService returns an attribute KeyValue conforming to the
4570 // "gcp.client.service" semantic conventions. It represents the identifies the
4571 // Google Cloud service for which the official client library is intended.
4572 func GCPClientService(val string) attribute.KeyValue {
4573 return GCPClientServiceKey.String(val)
4574 }
4575
4576 // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
4577 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
4578 // the Cloud Run [execution] being run for the Job, as set by the
4579 // [`CLOUD_RUN_EXECUTION`] environment variable.
4580 //
4581 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
4582 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
4583 func GCPCloudRunJobExecution(val string) attribute.KeyValue {
4584 return GCPCloudRunJobExecutionKey.String(val)
4585 }
4586
4587 // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
4588 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
4589 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
4590 // environment variable.
4591 //
4592 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
4593 func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
4594 return GCPCloudRunJobTaskIndexKey.Int(val)
4595 }
4596
4597 // GCPGceInstanceHostname returns an attribute KeyValue conforming to the
4598 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
4599 // of a GCE instance. This is the full value of the default or [custom hostname]
4600 // .
4601 //
4602 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
4603 func GCPGceInstanceHostname(val string) attribute.KeyValue {
4604 return GCPGceInstanceHostnameKey.String(val)
4605 }
4606
4607 // GCPGceInstanceName returns an attribute KeyValue conforming to the
4608 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
4609 // of a GCE instance. This is the value provided by `host.name`, the visible name
4610 // of the instance in the Cloud Console UI, and the prefix for the default
4611 // hostname of the instance as defined by the [default internal DNS name].
4612 //
4613 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
4614 func GCPGceInstanceName(val string) attribute.KeyValue {
4615 return GCPGceInstanceNameKey.String(val)
4616 }
4617
4618 // Namespace: gen_ai
4619 const (
4620 // GenAIOpenaiRequestResponseFormatKey is the attribute Key conforming to the
4621 // "gen_ai.openai.request.response_format" semantic conventions. It represents
4622 // the response format that is requested.
4623 //
4624 // Type: Enum
4625 // RequirementLevel: Recommended
4626 // Stability: Development
4627 //
4628 // Examples: "json"
4629 GenAIOpenaiRequestResponseFormatKey = attribute.Key("gen_ai.openai.request.response_format")
4630
4631 // GenAIOpenaiRequestSeedKey is the attribute Key conforming to the
4632 // "gen_ai.openai.request.seed" semantic conventions. It represents the requests
4633 // with same seed value more likely to return same result.
4634 //
4635 // Type: int
4636 // RequirementLevel: Recommended
4637 // Stability: Development
4638 //
4639 // Examples: 100
4640 GenAIOpenaiRequestSeedKey = attribute.Key("gen_ai.openai.request.seed")
4641
4642 // GenAIOpenaiRequestServiceTierKey is the attribute Key conforming to the
4643 // "gen_ai.openai.request.service_tier" semantic conventions. It represents the
4644 // service tier requested. May be a specific tier, detault, or auto.
4645 //
4646 // Type: Enum
4647 // RequirementLevel: Recommended
4648 // Stability: Development
4649 //
4650 // Examples: "auto", "default"
4651 GenAIOpenaiRequestServiceTierKey = attribute.Key("gen_ai.openai.request.service_tier")
4652
4653 // GenAIOpenaiResponseServiceTierKey is the attribute Key conforming to the
4654 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
4655 // service tier used for the response.
4656 //
4657 // Type: string
4658 // RequirementLevel: Recommended
4659 // Stability: Development
4660 //
4661 // Examples: "scale", "detault"
4662 GenAIOpenaiResponseServiceTierKey = attribute.Key("gen_ai.openai.response.service_tier")
4663
4664 // GenAIOperationNameKey is the attribute Key conforming to the
4665 // "gen_ai.operation.name" semantic conventions. It represents the name of the
4666 // operation being performed.
4667 //
4668 // Type: Enum
4669 // RequirementLevel: Recommended
4670 // Stability: Development
4671 //
4672 // Examples:
4673 // Note: If one of the predefined values applies, but specific system uses a
4674 // different name it's RECOMMENDED to document it in the semantic conventions
4675 // for specific GenAI system and use system-specific name in the
4676 // instrumentation. If a different name is not documented, instrumentation
4677 // libraries SHOULD use applicable predefined value.
4678 GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
4679
4680 // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
4681 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
4682 // frequency penalty setting for the GenAI request.
4683 //
4684 // Type: double
4685 // RequirementLevel: Recommended
4686 // Stability: Development
4687 //
4688 // Examples: 0.1
4689 GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
4690
4691 // GenAIRequestMaxTokensKey is the attribute Key conforming to the
4692 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
4693 // number of tokens the model generates for a request.
4694 //
4695 // Type: int
4696 // RequirementLevel: Recommended
4697 // Stability: Development
4698 //
4699 // Examples: 100
4700 GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
4701
4702 // GenAIRequestModelKey is the attribute Key conforming to the
4703 // "gen_ai.request.model" semantic conventions. It represents the name of the
4704 // GenAI model a request is being made to.
4705 //
4706 // Type: string
4707 // RequirementLevel: Recommended
4708 // Stability: Development
4709 //
4710 // Examples: gpt-4
4711 GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
4712
4713 // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
4714 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
4715 // presence penalty setting for the GenAI request.
4716 //
4717 // Type: double
4718 // RequirementLevel: Recommended
4719 // Stability: Development
4720 //
4721 // Examples: 0.1
4722 GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
4723
4724 // GenAIRequestStopSequencesKey is the attribute Key conforming to the
4725 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
4726 // of sequences that the model will use to stop generating further tokens.
4727 //
4728 // Type: string[]
4729 // RequirementLevel: Recommended
4730 // Stability: Development
4731 //
4732 // Examples: "forest", "lived"
4733 GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
4734
4735 // GenAIRequestTemperatureKey is the attribute Key conforming to the
4736 // "gen_ai.request.temperature" semantic conventions. It represents the
4737 // temperature setting for the GenAI request.
4738 //
4739 // Type: double
4740 // RequirementLevel: Recommended
4741 // Stability: Development
4742 //
4743 // Examples: 0.0
4744 GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
4745
4746 // GenAIRequestTopKKey is the attribute Key conforming to the
4747 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
4748 // setting for the GenAI request.
4749 //
4750 // Type: double
4751 // RequirementLevel: Recommended
4752 // Stability: Development
4753 //
4754 // Examples: 1.0
4755 GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
4756
4757 // GenAIRequestTopPKey is the attribute Key conforming to the
4758 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
4759 // setting for the GenAI request.
4760 //
4761 // Type: double
4762 // RequirementLevel: Recommended
4763 // Stability: Development
4764 //
4765 // Examples: 1.0
4766 GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
4767
4768 // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
4769 // "gen_ai.response.finish_reasons" semantic conventions. It represents the
4770 // array of reasons the model stopped generating tokens, corresponding to each
4771 // generation received.
4772 //
4773 // Type: string[]
4774 // RequirementLevel: Recommended
4775 // Stability: Development
4776 //
4777 // Examples: "stop"], ["stop", "length"
4778 GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
4779
4780 // GenAIResponseIDKey is the attribute Key conforming to the
4781 // "gen_ai.response.id" semantic conventions. It represents the unique
4782 // identifier for the completion.
4783 //
4784 // Type: string
4785 // RequirementLevel: Recommended
4786 // Stability: Development
4787 //
4788 // Examples: "chatcmpl-123"
4789 GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
4790
4791 // GenAIResponseModelKey is the attribute Key conforming to the
4792 // "gen_ai.response.model" semantic conventions. It represents the name of the
4793 // model that generated the response.
4794 //
4795 // Type: string
4796 // RequirementLevel: Recommended
4797 // Stability: Development
4798 //
4799 // Examples: "gpt-4-0613"
4800 GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
4801
4802 // GenAISystemKey is the attribute Key conforming to the "gen_ai.system"
4803 // semantic conventions. It represents the Generative AI product as identified
4804 // by the client or server instrumentation.
4805 //
4806 // Type: Enum
4807 // RequirementLevel: Recommended
4808 // Stability: Development
4809 //
4810 // Examples: openai
4811 // Note: The `gen_ai.system` describes a family of GenAI models with specific
4812 // model identified
4813 // by `gen_ai.request.model` and `gen_ai.response.model` attributes.
4814 //
4815 // The actual GenAI product may differ from the one identified by the client.
4816 // For example, when using OpenAI client libraries to communicate with Mistral,
4817 // the `gen_ai.system`
4818 // is set to `openai` based on the instrumentation's best knowledge.
4819 //
4820 // For custom model, a custom friendly name SHOULD be used.
4821 // If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER`
4822 // .
4823 GenAISystemKey = attribute.Key("gen_ai.system")
4824
4825 // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
4826 // semantic conventions. It represents the type of token being counted.
4827 //
4828 // Type: Enum
4829 // RequirementLevel: Recommended
4830 // Stability: Development
4831 //
4832 // Examples: "input", "output"
4833 GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
4834
4835 // GenAIUsageInputTokensKey is the attribute Key conforming to the
4836 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
4837 // tokens used in the GenAI input (prompt).
4838 //
4839 // Type: int
4840 // RequirementLevel: Recommended
4841 // Stability: Development
4842 //
4843 // Examples: 100
4844 GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
4845
4846 // GenAIUsageOutputTokensKey is the attribute Key conforming to the
4847 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
4848 // of tokens used in the GenAI response (completion).
4849 //
4850 // Type: int
4851 // RequirementLevel: Recommended
4852 // Stability: Development
4853 //
4854 // Examples: 180
4855 GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
4856 )
4857
4858 // GenAIOpenaiRequestSeed returns an attribute KeyValue conforming to the
4859 // "gen_ai.openai.request.seed" semantic conventions. It represents the requests
4860 // with same seed value more likely to return same result.
4861 func GenAIOpenaiRequestSeed(val int) attribute.KeyValue {
4862 return GenAIOpenaiRequestSeedKey.Int(val)
4863 }
4864
4865 // GenAIOpenaiResponseServiceTier returns an attribute KeyValue conforming to the
4866 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
4867 // service tier used for the response.
4868 func GenAIOpenaiResponseServiceTier(val string) attribute.KeyValue {
4869 return GenAIOpenaiResponseServiceTierKey.String(val)
4870 }
4871
4872 // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
4873 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
4874 // frequency penalty setting for the GenAI request.
4875 func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
4876 return GenAIRequestFrequencyPenaltyKey.Float64(val)
4877 }
4878
4879 // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
4880 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
4881 // number of tokens the model generates for a request.
4882 func GenAIRequestMaxTokens(val int) attribute.KeyValue {
4883 return GenAIRequestMaxTokensKey.Int(val)
4884 }
4885
4886 // GenAIRequestModel returns an attribute KeyValue conforming to the
4887 // "gen_ai.request.model" semantic conventions. It represents the name of the
4888 // GenAI model a request is being made to.
4889 func GenAIRequestModel(val string) attribute.KeyValue {
4890 return GenAIRequestModelKey.String(val)
4891 }
4892
4893 // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
4894 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
4895 // presence penalty setting for the GenAI request.
4896 func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
4897 return GenAIRequestPresencePenaltyKey.Float64(val)
4898 }
4899
4900 // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
4901 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
4902 // of sequences that the model will use to stop generating further tokens.
4903 func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
4904 return GenAIRequestStopSequencesKey.StringSlice(val)
4905 }
4906
4907 // GenAIRequestTemperature returns an attribute KeyValue conforming to the
4908 // "gen_ai.request.temperature" semantic conventions. It represents the
4909 // temperature setting for the GenAI request.
4910 func GenAIRequestTemperature(val float64) attribute.KeyValue {
4911 return GenAIRequestTemperatureKey.Float64(val)
4912 }
4913
4914 // GenAIRequestTopK returns an attribute KeyValue conforming to the
4915 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
4916 // setting for the GenAI request.
4917 func GenAIRequestTopK(val float64) attribute.KeyValue {
4918 return GenAIRequestTopKKey.Float64(val)
4919 }
4920
4921 // GenAIRequestTopP returns an attribute KeyValue conforming to the
4922 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
4923 // setting for the GenAI request.
4924 func GenAIRequestTopP(val float64) attribute.KeyValue {
4925 return GenAIRequestTopPKey.Float64(val)
4926 }
4927
4928 // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
4929 // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
4930 // of reasons the model stopped generating tokens, corresponding to each
4931 // generation received.
4932 func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
4933 return GenAIResponseFinishReasonsKey.StringSlice(val)
4934 }
4935
4936 // GenAIResponseID returns an attribute KeyValue conforming to the
4937 // "gen_ai.response.id" semantic conventions. It represents the unique identifier
4938 // for the completion.
4939 func GenAIResponseID(val string) attribute.KeyValue {
4940 return GenAIResponseIDKey.String(val)
4941 }
4942
4943 // GenAIResponseModel returns an attribute KeyValue conforming to the
4944 // "gen_ai.response.model" semantic conventions. It represents the name of the
4945 // model that generated the response.
4946 func GenAIResponseModel(val string) attribute.KeyValue {
4947 return GenAIResponseModelKey.String(val)
4948 }
4949
4950 // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
4951 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
4952 // tokens used in the GenAI input (prompt).
4953 func GenAIUsageInputTokens(val int) attribute.KeyValue {
4954 return GenAIUsageInputTokensKey.Int(val)
4955 }
4956
4957 // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
4958 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
4959 // tokens used in the GenAI response (completion).
4960 func GenAIUsageOutputTokens(val int) attribute.KeyValue {
4961 return GenAIUsageOutputTokensKey.Int(val)
4962 }
4963
4964 // Enum values for gen_ai.openai.request.response_format
4965 var (
4966 // Text response format
4967 // Stability: development
4968 GenAIOpenaiRequestResponseFormatText = GenAIOpenaiRequestResponseFormatKey.String("text")
4969 // JSON object response format
4970 // Stability: development
4971 GenAIOpenaiRequestResponseFormatJSONObject = GenAIOpenaiRequestResponseFormatKey.String("json_object")
4972 // JSON schema response format
4973 // Stability: development
4974 GenAIOpenaiRequestResponseFormatJSONSchema = GenAIOpenaiRequestResponseFormatKey.String("json_schema")
4975 )
4976
4977 // Enum values for gen_ai.openai.request.service_tier
4978 var (
4979 // The system will utilize scale tier credits until they are exhausted.
4980 // Stability: development
4981 GenAIOpenaiRequestServiceTierAuto = GenAIOpenaiRequestServiceTierKey.String("auto")
4982 // The system will utilize the default scale tier.
4983 // Stability: development
4984 GenAIOpenaiRequestServiceTierDefault = GenAIOpenaiRequestServiceTierKey.String("default")
4985 )
4986
4987 // Enum values for gen_ai.operation.name
4988 var (
4989 // Chat completion operation such as [OpenAI Chat API]
4990 // Stability: development
4991 //
4992 // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
4993 GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
4994 // Text completions operation such as [OpenAI Completions API (Legacy)]
4995 // Stability: development
4996 //
4997 // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
4998 GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
4999 )
5000
5001 // Enum values for gen_ai.system
5002 var (
5003 // OpenAI
5004 // Stability: development
5005 GenAISystemOpenai = GenAISystemKey.String("openai")
5006 // Vertex AI
5007 // Stability: development
5008 GenAISystemVertexAI = GenAISystemKey.String("vertex_ai")
5009 // Anthropic
5010 // Stability: development
5011 GenAISystemAnthropic = GenAISystemKey.String("anthropic")
5012 // Cohere
5013 // Stability: development
5014 GenAISystemCohere = GenAISystemKey.String("cohere")
5015 )
5016
5017 // Enum values for gen_ai.token.type
5018 var (
5019 // Input tokens (prompt, input, etc.)
5020 // Stability: development
5021 GenAITokenTypeInput = GenAITokenTypeKey.String("input")
5022 // Output tokens (completion, response, etc.)
5023 // Stability: development
5024 GenAITokenTypeCompletion = GenAITokenTypeKey.String("output")
5025 )
5026
5027 // Namespace: go
5028 const (
5029 // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
5030 // semantic conventions. It represents the type of memory.
5031 //
5032 // Type: Enum
5033 // RequirementLevel: Recommended
5034 // Stability: Development
5035 //
5036 // Examples: "other", "stack"
5037 GoMemoryTypeKey = attribute.Key("go.memory.type")
5038 )
5039
5040 // Enum values for go.memory.type
5041 var (
5042 // Memory allocated from the heap that is reserved for stack space, whether or
5043 // not it is currently in-use.
5044 // Stability: development
5045 GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
5046 // Memory used by the Go runtime, excluding other categories of memory usage
5047 // described in this enumeration.
5048 // Stability: development
5049 GoMemoryTypeOther = GoMemoryTypeKey.String("other")
5050 )
5051
5052 // Namespace: graphql
5053 const (
5054 // GraphqlDocumentKey is the attribute Key conforming to the "graphql.document"
5055 // semantic conventions. It represents the GraphQL document being executed.
5056 //
5057 // Type: string
5058 // RequirementLevel: Recommended
5059 // Stability: Development
5060 //
5061 // Examples: query findBookById { bookById(id: ?) { name } }
5062 // Note: The value may be sanitized to exclude sensitive information.
5063 GraphqlDocumentKey = attribute.Key("graphql.document")
5064
5065 // GraphqlOperationNameKey is the attribute Key conforming to the
5066 // "graphql.operation.name" semantic conventions. It represents the name of the
5067 // operation being executed.
5068 //
5069 // Type: string
5070 // RequirementLevel: Recommended
5071 // Stability: Development
5072 //
5073 // Examples: findBookById
5074 GraphqlOperationNameKey = attribute.Key("graphql.operation.name")
5075
5076 // GraphqlOperationTypeKey is the attribute Key conforming to the
5077 // "graphql.operation.type" semantic conventions. It represents the type of the
5078 // operation being executed.
5079 //
5080 // Type: Enum
5081 // RequirementLevel: Recommended
5082 // Stability: Development
5083 //
5084 // Examples: "query", "mutation", "subscription"
5085 GraphqlOperationTypeKey = attribute.Key("graphql.operation.type")
5086 )
5087
5088 // GraphqlDocument returns an attribute KeyValue conforming to the
5089 // "graphql.document" semantic conventions. It represents the GraphQL document
5090 // being executed.
5091 func GraphqlDocument(val string) attribute.KeyValue {
5092 return GraphqlDocumentKey.String(val)
5093 }
5094
5095 // GraphqlOperationName returns an attribute KeyValue conforming to the
5096 // "graphql.operation.name" semantic conventions. It represents the name of the
5097 // operation being executed.
5098 func GraphqlOperationName(val string) attribute.KeyValue {
5099 return GraphqlOperationNameKey.String(val)
5100 }
5101
5102 // Enum values for graphql.operation.type
5103 var (
5104 // GraphQL query
5105 // Stability: development
5106 GraphqlOperationTypeQuery = GraphqlOperationTypeKey.String("query")
5107 // GraphQL mutation
5108 // Stability: development
5109 GraphqlOperationTypeMutation = GraphqlOperationTypeKey.String("mutation")
5110 // GraphQL subscription
5111 // Stability: development
5112 GraphqlOperationTypeSubscription = GraphqlOperationTypeKey.String("subscription")
5113 )
5114
5115 // Namespace: heroku
5116 const (
5117 // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
5118 // semantic conventions. It represents the unique identifier for the
5119 // application.
5120 //
5121 // Type: string
5122 // RequirementLevel: Recommended
5123 // Stability: Development
5124 //
5125 // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
5126 HerokuAppIDKey = attribute.Key("heroku.app.id")
5127
5128 // HerokuReleaseCommitKey is the attribute Key conforming to the
5129 // "heroku.release.commit" semantic conventions. It represents the commit hash
5130 // for the current release.
5131 //
5132 // Type: string
5133 // RequirementLevel: Recommended
5134 // Stability: Development
5135 //
5136 // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
5137 HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
5138
5139 // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
5140 // "heroku.release.creation_timestamp" semantic conventions. It represents the
5141 // time and date the release was created.
5142 //
5143 // Type: string
5144 // RequirementLevel: Recommended
5145 // Stability: Development
5146 //
5147 // Examples: "2022-10-23T18:00:42Z"
5148 HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
5149 )
5150
5151 // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
5152 // semantic conventions. It represents the unique identifier for the application.
5153 func HerokuAppID(val string) attribute.KeyValue {
5154 return HerokuAppIDKey.String(val)
5155 }
5156
5157 // HerokuReleaseCommit returns an attribute KeyValue conforming to the
5158 // "heroku.release.commit" semantic conventions. It represents the commit hash
5159 // for the current release.
5160 func HerokuReleaseCommit(val string) attribute.KeyValue {
5161 return HerokuReleaseCommitKey.String(val)
5162 }
5163
5164 // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
5165 // "heroku.release.creation_timestamp" semantic conventions. It represents the
5166 // time and date the release was created.
5167 func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
5168 return HerokuReleaseCreationTimestampKey.String(val)
5169 }
5170
5171 // Namespace: host
5172 const (
5173 // HostArchKey is the attribute Key conforming to the "host.arch" semantic
5174 // conventions. It represents the CPU architecture the host system is running
5175 // on.
5176 //
5177 // Type: Enum
5178 // RequirementLevel: Recommended
5179 // Stability: Development
5180 //
5181 // Examples:
5182 HostArchKey = attribute.Key("host.arch")
5183
5184 // HostCPUCacheL2SizeKey is the attribute Key conforming to the
5185 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
5186 // level 2 memory cache available to the processor (in Bytes).
5187 //
5188 // Type: int
5189 // RequirementLevel: Recommended
5190 // Stability: Development
5191 //
5192 // Examples: 12288000
5193 HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
5194
5195 // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
5196 // semantic conventions. It represents the family or generation of the CPU.
5197 //
5198 // Type: string
5199 // RequirementLevel: Recommended
5200 // Stability: Development
5201 //
5202 // Examples: "6", "PA-RISC 1.1e"
5203 HostCPUFamilyKey = attribute.Key("host.cpu.family")
5204
5205 // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
5206 // semantic conventions. It represents the model identifier. It provides more
5207 // granular information about the CPU, distinguishing it from other CPUs within
5208 // the same family.
5209 //
5210 // Type: string
5211 // RequirementLevel: Recommended
5212 // Stability: Development
5213 //
5214 // Examples: "6", "9000/778/B180L"
5215 HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
5216
5217 // HostCPUModelNameKey is the attribute Key conforming to the
5218 // "host.cpu.model.name" semantic conventions. It represents the model
5219 // designation of the processor.
5220 //
5221 // Type: string
5222 // RequirementLevel: Recommended
5223 // Stability: Development
5224 //
5225 // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
5226 HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
5227
5228 // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
5229 // semantic conventions. It represents the stepping or core revisions.
5230 //
5231 // Type: string
5232 // RequirementLevel: Recommended
5233 // Stability: Development
5234 //
5235 // Examples: "1", "r1p1"
5236 HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
5237
5238 // HostCPUVendorIDKey is the attribute Key conforming to the
5239 // "host.cpu.vendor.id" semantic conventions. It represents the processor
5240 // manufacturer identifier. A maximum 12-character string.
5241 //
5242 // Type: string
5243 // RequirementLevel: Recommended
5244 // Stability: Development
5245 //
5246 // Examples: "GenuineIntel"
5247 // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
5248 // registers. Writing these to memory in this order results in a 12-character
5249 // string.
5250 //
5251 // [CPUID]: https://wiki.osdev.org/CPUID
5252 HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
5253
5254 // HostIDKey is the attribute Key conforming to the "host.id" semantic
5255 // conventions. It represents the unique host ID. For Cloud, this must be the
5256 // instance_id assigned by the cloud provider. For non-containerized systems,
5257 // this should be the `machine-id`. See the table below for the sources to use
5258 // to determine the `machine-id` based on operating system.
5259 //
5260 // Type: string
5261 // RequirementLevel: Recommended
5262 // Stability: Development
5263 //
5264 // Examples: "fdbf79e8af94cb7f9e8df36789187052"
5265 HostIDKey = attribute.Key("host.id")
5266
5267 // HostImageIDKey is the attribute Key conforming to the "host.image.id"
5268 // semantic conventions. It represents the vM image ID or host OS image ID. For
5269 // Cloud, this value is from the provider.
5270 //
5271 // Type: string
5272 // RequirementLevel: Recommended
5273 // Stability: Development
5274 //
5275 // Examples: "ami-07b06b442921831e5"
5276 HostImageIDKey = attribute.Key("host.image.id")
5277
5278 // HostImageNameKey is the attribute Key conforming to the "host.image.name"
5279 // semantic conventions. It represents the name of the VM image or OS install
5280 // the host was instantiated from.
5281 //
5282 // Type: string
5283 // RequirementLevel: Recommended
5284 // Stability: Development
5285 //
5286 // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
5287 HostImageNameKey = attribute.Key("host.image.name")
5288
5289 // HostImageVersionKey is the attribute Key conforming to the
5290 // "host.image.version" semantic conventions. It represents the version string
5291 // of the VM image or host OS as defined in [Version Attributes].
5292 //
5293 // Type: string
5294 // RequirementLevel: Recommended
5295 // Stability: Development
5296 //
5297 // Examples: "0.1"
5298 //
5299 // [Version Attributes]: /docs/resource/README.md#version-attributes
5300 HostImageVersionKey = attribute.Key("host.image.version")
5301
5302 // HostIPKey is the attribute Key conforming to the "host.ip" semantic
5303 // conventions. It represents the available IP addresses of the host, excluding
5304 // loopback interfaces.
5305 //
5306 // Type: string[]
5307 // RequirementLevel: Recommended
5308 // Stability: Development
5309 //
5310 // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
5311 // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
5312 // addresses MUST be specified in the [RFC 5952] format.
5313 //
5314 // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
5315 HostIPKey = attribute.Key("host.ip")
5316
5317 // HostMacKey is the attribute Key conforming to the "host.mac" semantic
5318 // conventions. It represents the available MAC addresses of the host, excluding
5319 // loopback interfaces.
5320 //
5321 // Type: string[]
5322 // RequirementLevel: Recommended
5323 // Stability: Development
5324 //
5325 // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
5326 // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
5327 // hyphen-separated octets in uppercase hexadecimal form from most to least
5328 // significant.
5329 //
5330 // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
5331 HostMacKey = attribute.Key("host.mac")
5332
5333 // HostNameKey is the attribute Key conforming to the "host.name" semantic
5334 // conventions. It represents the name of the host. On Unix systems, it may
5335 // contain what the hostname command returns, or the fully qualified hostname,
5336 // or another name specified by the user.
5337 //
5338 // Type: string
5339 // RequirementLevel: Recommended
5340 // Stability: Development
5341 //
5342 // Examples: "opentelemetry-test"
5343 HostNameKey = attribute.Key("host.name")
5344
5345 // HostTypeKey is the attribute Key conforming to the "host.type" semantic
5346 // conventions. It represents the type of host. For Cloud, this must be the
5347 // machine type.
5348 //
5349 // Type: string
5350 // RequirementLevel: Recommended
5351 // Stability: Development
5352 //
5353 // Examples: "n1-standard-1"
5354 HostTypeKey = attribute.Key("host.type")
5355 )
5356
5357 // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
5358 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
5359 // level 2 memory cache available to the processor (in Bytes).
5360 func HostCPUCacheL2Size(val int) attribute.KeyValue {
5361 return HostCPUCacheL2SizeKey.Int(val)
5362 }
5363
5364 // HostCPUFamily returns an attribute KeyValue conforming to the
5365 // "host.cpu.family" semantic conventions. It represents the family or generation
5366 // of the CPU.
5367 func HostCPUFamily(val string) attribute.KeyValue {
5368 return HostCPUFamilyKey.String(val)
5369 }
5370
5371 // HostCPUModelID returns an attribute KeyValue conforming to the
5372 // "host.cpu.model.id" semantic conventions. It represents the model identifier.
5373 // It provides more granular information about the CPU, distinguishing it from
5374 // other CPUs within the same family.
5375 func HostCPUModelID(val string) attribute.KeyValue {
5376 return HostCPUModelIDKey.String(val)
5377 }
5378
5379 // HostCPUModelName returns an attribute KeyValue conforming to the
5380 // "host.cpu.model.name" semantic conventions. It represents the model
5381 // designation of the processor.
5382 func HostCPUModelName(val string) attribute.KeyValue {
5383 return HostCPUModelNameKey.String(val)
5384 }
5385
5386 // HostCPUStepping returns an attribute KeyValue conforming to the
5387 // "host.cpu.stepping" semantic conventions. It represents the stepping or core
5388 // revisions.
5389 func HostCPUStepping(val string) attribute.KeyValue {
5390 return HostCPUSteppingKey.String(val)
5391 }
5392
5393 // HostCPUVendorID returns an attribute KeyValue conforming to the
5394 // "host.cpu.vendor.id" semantic conventions. It represents the processor
5395 // manufacturer identifier. A maximum 12-character string.
5396 func HostCPUVendorID(val string) attribute.KeyValue {
5397 return HostCPUVendorIDKey.String(val)
5398 }
5399
5400 // HostID returns an attribute KeyValue conforming to the "host.id" semantic
5401 // conventions. It represents the unique host ID. For Cloud, this must be the
5402 // instance_id assigned by the cloud provider. For non-containerized systems,
5403 // this should be the `machine-id`. See the table below for the sources to use to
5404 // determine the `machine-id` based on operating system.
5405 func HostID(val string) attribute.KeyValue {
5406 return HostIDKey.String(val)
5407 }
5408
5409 // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
5410 // semantic conventions. It represents the vM image ID or host OS image ID. For
5411 // Cloud, this value is from the provider.
5412 func HostImageID(val string) attribute.KeyValue {
5413 return HostImageIDKey.String(val)
5414 }
5415
5416 // HostImageName returns an attribute KeyValue conforming to the
5417 // "host.image.name" semantic conventions. It represents the name of the VM image
5418 // or OS install the host was instantiated from.
5419 func HostImageName(val string) attribute.KeyValue {
5420 return HostImageNameKey.String(val)
5421 }
5422
5423 // HostImageVersion returns an attribute KeyValue conforming to the
5424 // "host.image.version" semantic conventions. It represents the version string of
5425 // the VM image or host OS as defined in [Version Attributes].
5426 //
5427 // [Version Attributes]: /docs/resource/README.md#version-attributes
5428 func HostImageVersion(val string) attribute.KeyValue {
5429 return HostImageVersionKey.String(val)
5430 }
5431
5432 // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
5433 // conventions. It represents the available IP addresses of the host, excluding
5434 // loopback interfaces.
5435 func HostIP(val ...string) attribute.KeyValue {
5436 return HostIPKey.StringSlice(val)
5437 }
5438
5439 // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
5440 // conventions. It represents the available MAC addresses of the host, excluding
5441 // loopback interfaces.
5442 func HostMac(val ...string) attribute.KeyValue {
5443 return HostMacKey.StringSlice(val)
5444 }
5445
5446 // HostName returns an attribute KeyValue conforming to the "host.name" semantic
5447 // conventions. It represents the name of the host. On Unix systems, it may
5448 // contain what the hostname command returns, or the fully qualified hostname, or
5449 // another name specified by the user.
5450 func HostName(val string) attribute.KeyValue {
5451 return HostNameKey.String(val)
5452 }
5453
5454 // HostType returns an attribute KeyValue conforming to the "host.type" semantic
5455 // conventions. It represents the type of host. For Cloud, this must be the
5456 // machine type.
5457 func HostType(val string) attribute.KeyValue {
5458 return HostTypeKey.String(val)
5459 }
5460
5461 // Enum values for host.arch
5462 var (
5463 // AMD64
5464 // Stability: development
5465 HostArchAMD64 = HostArchKey.String("amd64")
5466 // ARM32
5467 // Stability: development
5468 HostArchARM32 = HostArchKey.String("arm32")
5469 // ARM64
5470 // Stability: development
5471 HostArchARM64 = HostArchKey.String("arm64")
5472 // Itanium
5473 // Stability: development
5474 HostArchIA64 = HostArchKey.String("ia64")
5475 // 32-bit PowerPC
5476 // Stability: development
5477 HostArchPPC32 = HostArchKey.String("ppc32")
5478 // 64-bit PowerPC
5479 // Stability: development
5480 HostArchPPC64 = HostArchKey.String("ppc64")
5481 // IBM z/Architecture
5482 // Stability: development
5483 HostArchS390x = HostArchKey.String("s390x")
5484 // 32-bit x86
5485 // Stability: development
5486 HostArchX86 = HostArchKey.String("x86")
5487 )
5488
5489 // Namespace: http
5490 const (
5491 // HTTPConnectionStateKey is the attribute Key conforming to the
5492 // "http.connection.state" semantic conventions. It represents the state of the
5493 // HTTP connection in the HTTP connection pool.
5494 //
5495 // Type: Enum
5496 // RequirementLevel: Recommended
5497 // Stability: Development
5498 //
5499 // Examples: "active", "idle"
5500 HTTPConnectionStateKey = attribute.Key("http.connection.state")
5501
5502 // HTTPRequestBodySizeKey is the attribute Key conforming to the
5503 // "http.request.body.size" semantic conventions. It represents the size of the
5504 // request payload body in bytes. This is the number of bytes transferred
5505 // excluding headers and is often, but not always, present as the
5506 // [Content-Length] header. For requests using transport encoding, this should
5507 // be the compressed size.
5508 //
5509 // Type: int
5510 // RequirementLevel: Recommended
5511 // Stability: Development
5512 //
5513 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
5514 HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
5515
5516 // HTTPRequestMethodKey is the attribute Key conforming to the
5517 // "http.request.method" semantic conventions. It represents the hTTP request
5518 // method.
5519 //
5520 // Type: Enum
5521 // RequirementLevel: Recommended
5522 // Stability: Stable
5523 //
5524 // Examples: "GET", "POST", "HEAD"
5525 // Note: HTTP request method value SHOULD be "known" to the instrumentation.
5526 // By default, this convention defines "known" methods as the ones listed in
5527 // [RFC9110]
5528 // and the PATCH method defined in [RFC5789].
5529 //
5530 // If the HTTP request method is not known to instrumentation, it MUST set the
5531 // `http.request.method` attribute to `_OTHER`.
5532 //
5533 // If the HTTP instrumentation could end up converting valid HTTP request
5534 // methods to `_OTHER`, then it MUST provide a way to override
5535 // the list of known HTTP methods. If this override is done via environment
5536 // variable, then the environment variable MUST be named
5537 // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
5538 // case-sensitive known HTTP methods
5539 // (this list MUST be a full override of the default known method, it is not a
5540 // list of known methods in addition to the defaults).
5541 //
5542 // HTTP method names are case-sensitive and `http.request.method` attribute
5543 // value MUST match a known HTTP method name exactly.
5544 // Instrumentations for specific web frameworks that consider HTTP methods to be
5545 // case insensitive, SHOULD populate a canonical equivalent.
5546 // Tracing instrumentations that do so, MUST also set
5547 // `http.request.method_original` to the original value.
5548 //
5549 // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
5550 // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
5551 HTTPRequestMethodKey = attribute.Key("http.request.method")
5552
5553 // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
5554 // "http.request.method_original" semantic conventions. It represents the
5555 // original HTTP method sent by the client in the request line.
5556 //
5557 // Type: string
5558 // RequirementLevel: Recommended
5559 // Stability: Stable
5560 //
5561 // Examples: "GeT", "ACL", "foo"
5562 HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
5563
5564 // HTTPRequestResendCountKey is the attribute Key conforming to the
5565 // "http.request.resend_count" semantic conventions. It represents the ordinal
5566 // number of request resending attempt (for any reason, including redirects).
5567 //
5568 // Type: int
5569 // RequirementLevel: Recommended
5570 // Stability: Stable
5571 //
5572 // Note: The resend count SHOULD be updated each time an HTTP request gets
5573 // resent by the client, regardless of what was the cause of the resending (e.g.
5574 // redirection, authorization failure, 503 Server Unavailable, network issues,
5575 // or any other).
5576 HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
5577
5578 // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
5579 // semantic conventions. It represents the total size of the request in bytes.
5580 // This should be the total number of bytes sent over the wire, including the
5581 // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
5582 // body if any.
5583 //
5584 // Type: int
5585 // RequirementLevel: Recommended
5586 // Stability: Development
5587 HTTPRequestSizeKey = attribute.Key("http.request.size")
5588
5589 // HTTPResponseBodySizeKey is the attribute Key conforming to the
5590 // "http.response.body.size" semantic conventions. It represents the size of the
5591 // response payload body in bytes. This is the number of bytes transferred
5592 // excluding headers and is often, but not always, present as the
5593 // [Content-Length] header. For requests using transport encoding, this should
5594 // be the compressed size.
5595 //
5596 // Type: int
5597 // RequirementLevel: Recommended
5598 // Stability: Development
5599 //
5600 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
5601 HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
5602
5603 // HTTPResponseSizeKey is the attribute Key conforming to the
5604 // "http.response.size" semantic conventions. It represents the total size of
5605 // the response in bytes. This should be the total number of bytes sent over the
5606 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
5607 // headers, and response body and trailers if any.
5608 //
5609 // Type: int
5610 // RequirementLevel: Recommended
5611 // Stability: Development
5612 HTTPResponseSizeKey = attribute.Key("http.response.size")
5613
5614 // HTTPResponseStatusCodeKey is the attribute Key conforming to the
5615 // "http.response.status_code" semantic conventions. It represents the
5616 // [HTTP response status code].
5617 //
5618 // Type: int
5619 // RequirementLevel: Recommended
5620 // Stability: Stable
5621 //
5622 // Examples: 200
5623 //
5624 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
5625 HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
5626
5627 // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
5628 // conventions. It represents the matched route, that is, the path template in
5629 // the format used by the respective server framework.
5630 //
5631 // Type: string
5632 // RequirementLevel: Recommended
5633 // Stability: Stable
5634 //
5635 // Examples: "/users/:userID?", "{controller}/{action}/{id?}"
5636 // Note: MUST NOT be populated when this is not supported by the HTTP server
5637 // framework as the route attribute should have low-cardinality and the URI path
5638 // can NOT substitute it.
5639 // SHOULD include the [application root] if there is one.
5640 //
5641 // [application root]: /docs/http/http-spans.md#http-server-definitions
5642 HTTPRouteKey = attribute.Key("http.route")
5643 )
5644
5645 // HTTPRequestBodySize returns an attribute KeyValue conforming to the
5646 // "http.request.body.size" semantic conventions. It represents the size of the
5647 // request payload body in bytes. This is the number of bytes transferred
5648 // excluding headers and is often, but not always, present as the
5649 // [Content-Length] header. For requests using transport encoding, this should be
5650 // the compressed size.
5651 //
5652 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
5653 func HTTPRequestBodySize(val int) attribute.KeyValue {
5654 return HTTPRequestBodySizeKey.Int(val)
5655 }
5656
5657 // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
5658 // "http.request.method_original" semantic conventions. It represents the
5659 // original HTTP method sent by the client in the request line.
5660 func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
5661 return HTTPRequestMethodOriginalKey.String(val)
5662 }
5663
5664 // HTTPRequestResendCount returns an attribute KeyValue conforming to the
5665 // "http.request.resend_count" semantic conventions. It represents the ordinal
5666 // number of request resending attempt (for any reason, including redirects).
5667 func HTTPRequestResendCount(val int) attribute.KeyValue {
5668 return HTTPRequestResendCountKey.Int(val)
5669 }
5670
5671 // HTTPRequestSize returns an attribute KeyValue conforming to the
5672 // "http.request.size" semantic conventions. It represents the total size of the
5673 // request in bytes. This should be the total number of bytes sent over the wire,
5674 // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
5675 // and request body if any.
5676 func HTTPRequestSize(val int) attribute.KeyValue {
5677 return HTTPRequestSizeKey.Int(val)
5678 }
5679
5680 // HTTPResponseBodySize returns an attribute KeyValue conforming to the
5681 // "http.response.body.size" semantic conventions. It represents the size of the
5682 // response payload body in bytes. This is the number of bytes transferred
5683 // excluding headers and is often, but not always, present as the
5684 // [Content-Length] header. For requests using transport encoding, this should be
5685 // the compressed size.
5686 //
5687 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
5688 func HTTPResponseBodySize(val int) attribute.KeyValue {
5689 return HTTPResponseBodySizeKey.Int(val)
5690 }
5691
5692 // HTTPResponseSize returns an attribute KeyValue conforming to the
5693 // "http.response.size" semantic conventions. It represents the total size of the
5694 // response in bytes. This should be the total number of bytes sent over the
5695 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
5696 // headers, and response body and trailers if any.
5697 func HTTPResponseSize(val int) attribute.KeyValue {
5698 return HTTPResponseSizeKey.Int(val)
5699 }
5700
5701 // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
5702 // "http.response.status_code" semantic conventions. It represents the
5703 // [HTTP response status code].
5704 //
5705 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
5706 func HTTPResponseStatusCode(val int) attribute.KeyValue {
5707 return HTTPResponseStatusCodeKey.Int(val)
5708 }
5709
5710 // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
5711 // semantic conventions. It represents the matched route, that is, the path
5712 // template in the format used by the respective server framework.
5713 func HTTPRoute(val string) attribute.KeyValue {
5714 return HTTPRouteKey.String(val)
5715 }
5716
5717 // Enum values for http.connection.state
5718 var (
5719 // active state.
5720 // Stability: development
5721 HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
5722 // idle state.
5723 // Stability: development
5724 HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
5725 )
5726
5727 // Enum values for http.request.method
5728 var (
5729 // CONNECT method.
5730 // Stability: stable
5731 HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
5732 // DELETE method.
5733 // Stability: stable
5734 HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
5735 // GET method.
5736 // Stability: stable
5737 HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
5738 // HEAD method.
5739 // Stability: stable
5740 HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
5741 // OPTIONS method.
5742 // Stability: stable
5743 HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
5744 // PATCH method.
5745 // Stability: stable
5746 HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
5747 // POST method.
5748 // Stability: stable
5749 HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
5750 // PUT method.
5751 // Stability: stable
5752 HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
5753 // TRACE method.
5754 // Stability: stable
5755 HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
5756 // Any HTTP method that the instrumentation has no prior knowledge of.
5757 // Stability: stable
5758 HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
5759 )
5760
5761 // Namespace: hw
5762 const (
5763 // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
5764 // It represents an identifier for the hardware component, unique within the
5765 // monitored host.
5766 //
5767 // Type: string
5768 // RequirementLevel: Recommended
5769 // Stability: Development
5770 //
5771 // Examples: "win32battery_battery_testsysa33_1"
5772 HwIDKey = attribute.Key("hw.id")
5773
5774 // HwNameKey is the attribute Key conforming to the "hw.name" semantic
5775 // conventions. It represents an easily-recognizable name for the hardware
5776 // component.
5777 //
5778 // Type: string
5779 // RequirementLevel: Recommended
5780 // Stability: Development
5781 //
5782 // Examples: "eth0"
5783 HwNameKey = attribute.Key("hw.name")
5784
5785 // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
5786 // conventions. It represents the unique identifier of the parent component
5787 // (typically the `hw.id` attribute of the enclosure, or disk controller).
5788 //
5789 // Type: string
5790 // RequirementLevel: Recommended
5791 // Stability: Development
5792 //
5793 // Examples: "dellStorage_perc_0"
5794 HwParentKey = attribute.Key("hw.parent")
5795
5796 // HwStateKey is the attribute Key conforming to the "hw.state" semantic
5797 // conventions. It represents the current state of the component.
5798 //
5799 // Type: Enum
5800 // RequirementLevel: Recommended
5801 // Stability: Development
5802 //
5803 // Examples:
5804 HwStateKey = attribute.Key("hw.state")
5805
5806 // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
5807 // conventions. It represents the type of the component.
5808 //
5809 // Type: Enum
5810 // RequirementLevel: Recommended
5811 // Stability: Development
5812 //
5813 // Examples:
5814 // Note: Describes the category of the hardware component for which `hw.state`
5815 // is being reported. For example, `hw.type=temperature` along with
5816 // `hw.state=degraded` would indicate that the temperature of the hardware
5817 // component has been reported as `degraded`.
5818 HwTypeKey = attribute.Key("hw.type")
5819 )
5820
5821 // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
5822 // conventions. It represents an identifier for the hardware component, unique
5823 // within the monitored host.
5824 func HwID(val string) attribute.KeyValue {
5825 return HwIDKey.String(val)
5826 }
5827
5828 // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
5829 // conventions. It represents an easily-recognizable name for the hardware
5830 // component.
5831 func HwName(val string) attribute.KeyValue {
5832 return HwNameKey.String(val)
5833 }
5834
5835 // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
5836 // conventions. It represents the unique identifier of the parent component
5837 // (typically the `hw.id` attribute of the enclosure, or disk controller).
5838 func HwParent(val string) attribute.KeyValue {
5839 return HwParentKey.String(val)
5840 }
5841
5842 // Enum values for hw.state
5843 var (
5844 // Ok
5845 // Stability: development
5846 HwStateOk = HwStateKey.String("ok")
5847 // Degraded
5848 // Stability: development
5849 HwStateDegraded = HwStateKey.String("degraded")
5850 // Failed
5851 // Stability: development
5852 HwStateFailed = HwStateKey.String("failed")
5853 )
5854
5855 // Enum values for hw.type
5856 var (
5857 // Battery
5858 // Stability: development
5859 HwTypeBattery = HwTypeKey.String("battery")
5860 // CPU
5861 // Stability: development
5862 HwTypeCPU = HwTypeKey.String("cpu")
5863 // Disk controller
5864 // Stability: development
5865 HwTypeDiskController = HwTypeKey.String("disk_controller")
5866 // Enclosure
5867 // Stability: development
5868 HwTypeEnclosure = HwTypeKey.String("enclosure")
5869 // Fan
5870 // Stability: development
5871 HwTypeFan = HwTypeKey.String("fan")
5872 // GPU
5873 // Stability: development
5874 HwTypeGpu = HwTypeKey.String("gpu")
5875 // Logical disk
5876 // Stability: development
5877 HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
5878 // Memory
5879 // Stability: development
5880 HwTypeMemory = HwTypeKey.String("memory")
5881 // Network
5882 // Stability: development
5883 HwTypeNetwork = HwTypeKey.String("network")
5884 // Physical disk
5885 // Stability: development
5886 HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
5887 // Power supply
5888 // Stability: development
5889 HwTypePowerSupply = HwTypeKey.String("power_supply")
5890 // Tape drive
5891 // Stability: development
5892 HwTypeTapeDrive = HwTypeKey.String("tape_drive")
5893 // Temperature
5894 // Stability: development
5895 HwTypeTemperature = HwTypeKey.String("temperature")
5896 // Voltage
5897 // Stability: development
5898 HwTypeVoltage = HwTypeKey.String("voltage")
5899 )
5900
5901 // Namespace: k8s
5902 const (
5903 // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
5904 // semantic conventions. It represents the name of the cluster.
5905 //
5906 // Type: string
5907 // RequirementLevel: Recommended
5908 // Stability: Development
5909 //
5910 // Examples: "opentelemetry-cluster"
5911 K8SClusterNameKey = attribute.Key("k8s.cluster.name")
5912
5913 // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
5914 // semantic conventions. It represents a pseudo-ID for the cluster, set to the
5915 // UID of the `kube-system` namespace.
5916 //
5917 // Type: string
5918 // RequirementLevel: Recommended
5919 // Stability: Development
5920 //
5921 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
5922 // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
5923 // added, we will recommend collecting the `k8s.cluster.uid` through the
5924 // official APIs. In the meantime, we are able to use the `uid` of the
5925 // `kube-system` namespace as a proxy for cluster ID. Read on for the
5926 // rationale.
5927 //
5928 // Every object created in a K8s cluster is assigned a distinct UID. The
5929 // `kube-system` namespace is used by Kubernetes itself and will exist
5930 // for the lifetime of the cluster. Using the `uid` of the `kube-system`
5931 // namespace is a reasonable proxy for the K8s ClusterID as it will only
5932 // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
5933 // UUIDs as standardized by
5934 // [ISO/IEC 9834-8 and ITU-T X.667].
5935 // Which states:
5936 //
5937 // > If generated according to one of the mechanisms defined in Rec.
5938 // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
5939 // > different from all other UUIDs generated before 3603 A.D., or is
5940 // > extremely likely to be different (depending on the mechanism chosen).
5941 //
5942 // Therefore, UIDs between clusters should be extremely unlikely to
5943 // conflict.
5944 //
5945 // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
5946 K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
5947
5948 // K8SContainerNameKey is the attribute Key conforming to the
5949 // "k8s.container.name" semantic conventions. It represents the name of the
5950 // Container from Pod specification, must be unique within a Pod. Container
5951 // runtime usually uses different globally unique name (`container.name`).
5952 //
5953 // Type: string
5954 // RequirementLevel: Recommended
5955 // Stability: Development
5956 //
5957 // Examples: "redis"
5958 K8SContainerNameKey = attribute.Key("k8s.container.name")
5959
5960 // K8SContainerRestartCountKey is the attribute Key conforming to the
5961 // "k8s.container.restart_count" semantic conventions. It represents the number
5962 // of times the container was restarted. This attribute can be used to identify
5963 // a particular container (running or stopped) within a container spec.
5964 //
5965 // Type: int
5966 // RequirementLevel: Recommended
5967 // Stability: Development
5968 //
5969 // Examples:
5970 K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
5971
5972 // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
5973 // the "k8s.container.status.last_terminated_reason" semantic conventions. It
5974 // represents the last terminated reason of the Container.
5975 //
5976 // Type: string
5977 // RequirementLevel: Recommended
5978 // Stability: Development
5979 //
5980 // Examples: "Evicted", "Error"
5981 K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
5982
5983 // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
5984 // semantic conventions. It represents the name of the CronJob.
5985 //
5986 // Type: string
5987 // RequirementLevel: Recommended
5988 // Stability: Development
5989 //
5990 // Examples: "opentelemetry"
5991 K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
5992
5993 // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
5994 // semantic conventions. It represents the UID of the CronJob.
5995 //
5996 // Type: string
5997 // RequirementLevel: Recommended
5998 // Stability: Development
5999 //
6000 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6001 K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
6002
6003 // K8SDaemonSetNameKey is the attribute Key conforming to the
6004 // "k8s.daemonset.name" semantic conventions. It represents the name of the
6005 // DaemonSet.
6006 //
6007 // Type: string
6008 // RequirementLevel: Recommended
6009 // Stability: Development
6010 //
6011 // Examples: "opentelemetry"
6012 K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
6013
6014 // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
6015 // semantic conventions. It represents the UID of the DaemonSet.
6016 //
6017 // Type: string
6018 // RequirementLevel: Recommended
6019 // Stability: Development
6020 //
6021 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6022 K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
6023
6024 // K8SDeploymentNameKey is the attribute Key conforming to the
6025 // "k8s.deployment.name" semantic conventions. It represents the name of the
6026 // Deployment.
6027 //
6028 // Type: string
6029 // RequirementLevel: Recommended
6030 // Stability: Development
6031 //
6032 // Examples: "opentelemetry"
6033 K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
6034
6035 // K8SDeploymentUIDKey is the attribute Key conforming to the
6036 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
6037 // Deployment.
6038 //
6039 // Type: string
6040 // RequirementLevel: Recommended
6041 // Stability: Development
6042 //
6043 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6044 K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
6045
6046 // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
6047 // conventions. It represents the name of the Job.
6048 //
6049 // Type: string
6050 // RequirementLevel: Recommended
6051 // Stability: Development
6052 //
6053 // Examples: "opentelemetry"
6054 K8SJobNameKey = attribute.Key("k8s.job.name")
6055
6056 // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
6057 // conventions. It represents the UID of the Job.
6058 //
6059 // Type: string
6060 // RequirementLevel: Recommended
6061 // Stability: Development
6062 //
6063 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6064 K8SJobUIDKey = attribute.Key("k8s.job.uid")
6065
6066 // K8SNamespaceNameKey is the attribute Key conforming to the
6067 // "k8s.namespace.name" semantic conventions. It represents the name of the
6068 // namespace that the pod is running in.
6069 //
6070 // Type: string
6071 // RequirementLevel: Recommended
6072 // Stability: Development
6073 //
6074 // Examples: "default"
6075 K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
6076
6077 // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
6078 // semantic conventions. It represents the name of the Node.
6079 //
6080 // Type: string
6081 // RequirementLevel: Recommended
6082 // Stability: Development
6083 //
6084 // Examples: "node-1"
6085 K8SNodeNameKey = attribute.Key("k8s.node.name")
6086
6087 // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
6088 // conventions. It represents the UID of the Node.
6089 //
6090 // Type: string
6091 // RequirementLevel: Recommended
6092 // Stability: Development
6093 //
6094 // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
6095 K8SNodeUIDKey = attribute.Key("k8s.node.uid")
6096
6097 // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
6098 // conventions. It represents the name of the Pod.
6099 //
6100 // Type: string
6101 // RequirementLevel: Recommended
6102 // Stability: Development
6103 //
6104 // Examples: "opentelemetry-pod-autoconf"
6105 K8SPodNameKey = attribute.Key("k8s.pod.name")
6106
6107 // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
6108 // conventions. It represents the UID of the Pod.
6109 //
6110 // Type: string
6111 // RequirementLevel: Recommended
6112 // Stability: Development
6113 //
6114 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6115 K8SPodUIDKey = attribute.Key("k8s.pod.uid")
6116
6117 // K8SReplicaSetNameKey is the attribute Key conforming to the
6118 // "k8s.replicaset.name" semantic conventions. It represents the name of the
6119 // ReplicaSet.
6120 //
6121 // Type: string
6122 // RequirementLevel: Recommended
6123 // Stability: Development
6124 //
6125 // Examples: "opentelemetry"
6126 K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
6127
6128 // K8SReplicaSetUIDKey is the attribute Key conforming to the
6129 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
6130 // ReplicaSet.
6131 //
6132 // Type: string
6133 // RequirementLevel: Recommended
6134 // Stability: Development
6135 //
6136 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6137 K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
6138
6139 // K8SStatefulSetNameKey is the attribute Key conforming to the
6140 // "k8s.statefulset.name" semantic conventions. It represents the name of the
6141 // StatefulSet.
6142 //
6143 // Type: string
6144 // RequirementLevel: Recommended
6145 // Stability: Development
6146 //
6147 // Examples: "opentelemetry"
6148 K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
6149
6150 // K8SStatefulSetUIDKey is the attribute Key conforming to the
6151 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
6152 // StatefulSet.
6153 //
6154 // Type: string
6155 // RequirementLevel: Recommended
6156 // Stability: Development
6157 //
6158 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6159 K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
6160
6161 // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
6162 // semantic conventions. It represents the name of the K8s volume.
6163 //
6164 // Type: string
6165 // RequirementLevel: Recommended
6166 // Stability: Development
6167 //
6168 // Examples: "volume0"
6169 K8SVolumeNameKey = attribute.Key("k8s.volume.name")
6170
6171 // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
6172 // semantic conventions. It represents the type of the K8s volume.
6173 //
6174 // Type: Enum
6175 // RequirementLevel: Recommended
6176 // Stability: Development
6177 //
6178 // Examples: "emptyDir", "persistentVolumeClaim"
6179 K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
6180 )
6181
6182 // K8SClusterName returns an attribute KeyValue conforming to the
6183 // "k8s.cluster.name" semantic conventions. It represents the name of the
6184 // cluster.
6185 func K8SClusterName(val string) attribute.KeyValue {
6186 return K8SClusterNameKey.String(val)
6187 }
6188
6189 // K8SClusterUID returns an attribute KeyValue conforming to the
6190 // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
6191 // cluster, set to the UID of the `kube-system` namespace.
6192 func K8SClusterUID(val string) attribute.KeyValue {
6193 return K8SClusterUIDKey.String(val)
6194 }
6195
6196 // K8SContainerName returns an attribute KeyValue conforming to the
6197 // "k8s.container.name" semantic conventions. It represents the name of the
6198 // Container from Pod specification, must be unique within a Pod. Container
6199 // runtime usually uses different globally unique name (`container.name`).
6200 func K8SContainerName(val string) attribute.KeyValue {
6201 return K8SContainerNameKey.String(val)
6202 }
6203
6204 // K8SContainerRestartCount returns an attribute KeyValue conforming to the
6205 // "k8s.container.restart_count" semantic conventions. It represents the number
6206 // of times the container was restarted. This attribute can be used to identify a
6207 // particular container (running or stopped) within a container spec.
6208 func K8SContainerRestartCount(val int) attribute.KeyValue {
6209 return K8SContainerRestartCountKey.Int(val)
6210 }
6211
6212 // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
6213 // conforming to the "k8s.container.status.last_terminated_reason" semantic
6214 // conventions. It represents the last terminated reason of the Container.
6215 func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
6216 return K8SContainerStatusLastTerminatedReasonKey.String(val)
6217 }
6218
6219 // K8SCronJobName returns an attribute KeyValue conforming to the
6220 // "k8s.cronjob.name" semantic conventions. It represents the name of the
6221 // CronJob.
6222 func K8SCronJobName(val string) attribute.KeyValue {
6223 return K8SCronJobNameKey.String(val)
6224 }
6225
6226 // K8SCronJobUID returns an attribute KeyValue conforming to the
6227 // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
6228 func K8SCronJobUID(val string) attribute.KeyValue {
6229 return K8SCronJobUIDKey.String(val)
6230 }
6231
6232 // K8SDaemonSetName returns an attribute KeyValue conforming to the
6233 // "k8s.daemonset.name" semantic conventions. It represents the name of the
6234 // DaemonSet.
6235 func K8SDaemonSetName(val string) attribute.KeyValue {
6236 return K8SDaemonSetNameKey.String(val)
6237 }
6238
6239 // K8SDaemonSetUID returns an attribute KeyValue conforming to the
6240 // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
6241 // DaemonSet.
6242 func K8SDaemonSetUID(val string) attribute.KeyValue {
6243 return K8SDaemonSetUIDKey.String(val)
6244 }
6245
6246 // K8SDeploymentName returns an attribute KeyValue conforming to the
6247 // "k8s.deployment.name" semantic conventions. It represents the name of the
6248 // Deployment.
6249 func K8SDeploymentName(val string) attribute.KeyValue {
6250 return K8SDeploymentNameKey.String(val)
6251 }
6252
6253 // K8SDeploymentUID returns an attribute KeyValue conforming to the
6254 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
6255 // Deployment.
6256 func K8SDeploymentUID(val string) attribute.KeyValue {
6257 return K8SDeploymentUIDKey.String(val)
6258 }
6259
6260 // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
6261 // semantic conventions. It represents the name of the Job.
6262 func K8SJobName(val string) attribute.KeyValue {
6263 return K8SJobNameKey.String(val)
6264 }
6265
6266 // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
6267 // semantic conventions. It represents the UID of the Job.
6268 func K8SJobUID(val string) attribute.KeyValue {
6269 return K8SJobUIDKey.String(val)
6270 }
6271
6272 // K8SNamespaceName returns an attribute KeyValue conforming to the
6273 // "k8s.namespace.name" semantic conventions. It represents the name of the
6274 // namespace that the pod is running in.
6275 func K8SNamespaceName(val string) attribute.KeyValue {
6276 return K8SNamespaceNameKey.String(val)
6277 }
6278
6279 // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
6280 // semantic conventions. It represents the name of the Node.
6281 func K8SNodeName(val string) attribute.KeyValue {
6282 return K8SNodeNameKey.String(val)
6283 }
6284
6285 // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
6286 // semantic conventions. It represents the UID of the Node.
6287 func K8SNodeUID(val string) attribute.KeyValue {
6288 return K8SNodeUIDKey.String(val)
6289 }
6290
6291 // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
6292 // semantic conventions. It represents the name of the Pod.
6293 func K8SPodName(val string) attribute.KeyValue {
6294 return K8SPodNameKey.String(val)
6295 }
6296
6297 // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
6298 // semantic conventions. It represents the UID of the Pod.
6299 func K8SPodUID(val string) attribute.KeyValue {
6300 return K8SPodUIDKey.String(val)
6301 }
6302
6303 // K8SReplicaSetName returns an attribute KeyValue conforming to the
6304 // "k8s.replicaset.name" semantic conventions. It represents the name of the
6305 // ReplicaSet.
6306 func K8SReplicaSetName(val string) attribute.KeyValue {
6307 return K8SReplicaSetNameKey.String(val)
6308 }
6309
6310 // K8SReplicaSetUID returns an attribute KeyValue conforming to the
6311 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
6312 // ReplicaSet.
6313 func K8SReplicaSetUID(val string) attribute.KeyValue {
6314 return K8SReplicaSetUIDKey.String(val)
6315 }
6316
6317 // K8SStatefulSetName returns an attribute KeyValue conforming to the
6318 // "k8s.statefulset.name" semantic conventions. It represents the name of the
6319 // StatefulSet.
6320 func K8SStatefulSetName(val string) attribute.KeyValue {
6321 return K8SStatefulSetNameKey.String(val)
6322 }
6323
6324 // K8SStatefulSetUID returns an attribute KeyValue conforming to the
6325 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
6326 // StatefulSet.
6327 func K8SStatefulSetUID(val string) attribute.KeyValue {
6328 return K8SStatefulSetUIDKey.String(val)
6329 }
6330
6331 // K8SVolumeName returns an attribute KeyValue conforming to the
6332 // "k8s.volume.name" semantic conventions. It represents the name of the K8s
6333 // volume.
6334 func K8SVolumeName(val string) attribute.KeyValue {
6335 return K8SVolumeNameKey.String(val)
6336 }
6337
6338 // Enum values for k8s.volume.type
6339 var (
6340 // A [persistentVolumeClaim] volume
6341 // Stability: development
6342 //
6343 // [persistentVolumeClaim]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
6344 K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
6345 // A [configMap] volume
6346 // Stability: development
6347 //
6348 // [configMap]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
6349 K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
6350 // A [downwardAPI] volume
6351 // Stability: development
6352 //
6353 // [downwardAPI]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
6354 K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
6355 // An [emptyDir] volume
6356 // Stability: development
6357 //
6358 // [emptyDir]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
6359 K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
6360 // A [secret] volume
6361 // Stability: development
6362 //
6363 // [secret]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
6364 K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
6365 // A [local] volume
6366 // Stability: development
6367 //
6368 // [local]: https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#local
6369 K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
6370 )
6371
6372 // Namespace: linux
6373 const (
6374 // LinuxMemorySlabStateKey is the attribute Key conforming to the
6375 // "linux.memory.slab.state" semantic conventions. It represents the Linux Slab
6376 // memory state.
6377 //
6378 // Type: Enum
6379 // RequirementLevel: Recommended
6380 // Stability: Development
6381 //
6382 // Examples: "reclaimable", "unreclaimable"
6383 LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state")
6384 )
6385
6386 // Enum values for linux.memory.slab.state
6387 var (
6388 // reclaimable
6389 // Stability: development
6390 LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable")
6391 // unreclaimable
6392 // Stability: development
6393 LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable")
6394 )
6395
6396 // Namespace: log
6397 const (
6398 // LogFileNameKey is the attribute Key conforming to the "log.file.name"
6399 // semantic conventions. It represents the basename of the file.
6400 //
6401 // Type: string
6402 // RequirementLevel: Recommended
6403 // Stability: Development
6404 //
6405 // Examples: "audit.log"
6406 LogFileNameKey = attribute.Key("log.file.name")
6407
6408 // LogFileNameResolvedKey is the attribute Key conforming to the
6409 // "log.file.name_resolved" semantic conventions. It represents the basename of
6410 // the file, with symlinks resolved.
6411 //
6412 // Type: string
6413 // RequirementLevel: Recommended
6414 // Stability: Development
6415 //
6416 // Examples: "uuid.log"
6417 LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
6418
6419 // LogFilePathKey is the attribute Key conforming to the "log.file.path"
6420 // semantic conventions. It represents the full path to the file.
6421 //
6422 // Type: string
6423 // RequirementLevel: Recommended
6424 // Stability: Development
6425 //
6426 // Examples: "/var/log/mysql/audit.log"
6427 LogFilePathKey = attribute.Key("log.file.path")
6428
6429 // LogFilePathResolvedKey is the attribute Key conforming to the
6430 // "log.file.path_resolved" semantic conventions. It represents the full path to
6431 // the file, with symlinks resolved.
6432 //
6433 // Type: string
6434 // RequirementLevel: Recommended
6435 // Stability: Development
6436 //
6437 // Examples: "/var/lib/docker/uuid.log"
6438 LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
6439
6440 // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
6441 // conventions. It represents the stream associated with the log. See below for
6442 // a list of well-known values.
6443 //
6444 // Type: Enum
6445 // RequirementLevel: Recommended
6446 // Stability: Development
6447 //
6448 // Examples:
6449 LogIostreamKey = attribute.Key("log.iostream")
6450
6451 // LogRecordOriginalKey is the attribute Key conforming to the
6452 // "log.record.original" semantic conventions. It represents the complete
6453 // original Log Record.
6454 //
6455 // Type: string
6456 // RequirementLevel: Recommended
6457 // Stability: Development
6458 //
6459 // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
6460 // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
6461 // Note: This value MAY be added when processing a Log Record which was
6462 // originally transmitted as a string or equivalent data type AND the Body field
6463 // of the Log Record does not contain the same value. (e.g. a syslog or a log
6464 // record read from a file.)
6465 LogRecordOriginalKey = attribute.Key("log.record.original")
6466
6467 // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
6468 // semantic conventions. It represents a unique identifier for the Log Record.
6469 //
6470 // Type: string
6471 // RequirementLevel: Recommended
6472 // Stability: Development
6473 //
6474 // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
6475 // Note: If an id is provided, other log records with the same id will be
6476 // considered duplicates and can be removed safely. This means, that two
6477 // distinguishable log records MUST have different values.
6478 // The id MAY be an
6479 // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
6480 // identifiers (e.g. UUID) may be used as needed.
6481 //
6482 // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
6483 LogRecordUIDKey = attribute.Key("log.record.uid")
6484 )
6485
6486 // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
6487 // semantic conventions. It represents the basename of the file.
6488 func LogFileName(val string) attribute.KeyValue {
6489 return LogFileNameKey.String(val)
6490 }
6491
6492 // LogFileNameResolved returns an attribute KeyValue conforming to the
6493 // "log.file.name_resolved" semantic conventions. It represents the basename of
6494 // the file, with symlinks resolved.
6495 func LogFileNameResolved(val string) attribute.KeyValue {
6496 return LogFileNameResolvedKey.String(val)
6497 }
6498
6499 // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
6500 // semantic conventions. It represents the full path to the file.
6501 func LogFilePath(val string) attribute.KeyValue {
6502 return LogFilePathKey.String(val)
6503 }
6504
6505 // LogFilePathResolved returns an attribute KeyValue conforming to the
6506 // "log.file.path_resolved" semantic conventions. It represents the full path to
6507 // the file, with symlinks resolved.
6508 func LogFilePathResolved(val string) attribute.KeyValue {
6509 return LogFilePathResolvedKey.String(val)
6510 }
6511
6512 // LogRecordOriginal returns an attribute KeyValue conforming to the
6513 // "log.record.original" semantic conventions. It represents the complete
6514 // original Log Record.
6515 func LogRecordOriginal(val string) attribute.KeyValue {
6516 return LogRecordOriginalKey.String(val)
6517 }
6518
6519 // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
6520 // semantic conventions. It represents a unique identifier for the Log Record.
6521 func LogRecordUID(val string) attribute.KeyValue {
6522 return LogRecordUIDKey.String(val)
6523 }
6524
6525 // Enum values for log.iostream
6526 var (
6527 // Logs from stdout stream
6528 // Stability: development
6529 LogIostreamStdout = LogIostreamKey.String("stdout")
6530 // Events from stderr stream
6531 // Stability: development
6532 LogIostreamStderr = LogIostreamKey.String("stderr")
6533 )
6534
6535 // Namespace: messaging
6536 const (
6537 // MessagingBatchMessageCountKey is the attribute Key conforming to the
6538 // "messaging.batch.message_count" semantic conventions. It represents the
6539 // number of messages sent, received, or processed in the scope of the batching
6540 // operation.
6541 //
6542 // Type: int
6543 // RequirementLevel: Recommended
6544 // Stability: Development
6545 //
6546 // Examples: 0, 1, 2
6547 // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
6548 // spans that operate with a single message. When a messaging client library
6549 // supports both batch and single-message API for the same operation,
6550 // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
6551 // and SHOULD NOT use it for single-message APIs.
6552 MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
6553
6554 // MessagingClientIDKey is the attribute Key conforming to the
6555 // "messaging.client.id" semantic conventions. It represents a unique identifier
6556 // for the client that consumes or produces a message.
6557 //
6558 // Type: string
6559 // RequirementLevel: Recommended
6560 // Stability: Development
6561 //
6562 // Examples: "client-5", "myhost@8742@s8083jm"
6563 MessagingClientIDKey = attribute.Key("messaging.client.id")
6564
6565 // MessagingConsumerGroupNameKey is the attribute Key conforming to the
6566 // "messaging.consumer.group.name" semantic conventions. It represents the name
6567 // of the consumer group with which a consumer is associated.
6568 //
6569 // Type: string
6570 // RequirementLevel: Recommended
6571 // Stability: Development
6572 //
6573 // Examples: "my-group", "indexer"
6574 // Note: Semantic conventions for individual messaging systems SHOULD document
6575 // whether `messaging.consumer.group.name` is applicable and what it means in
6576 // the context of that system.
6577 MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
6578
6579 // MessagingDestinationAnonymousKey is the attribute Key conforming to the
6580 // "messaging.destination.anonymous" semantic conventions. It represents a
6581 // boolean that is true if the message destination is anonymous (could be
6582 // unnamed or have auto-generated name).
6583 //
6584 // Type: boolean
6585 // RequirementLevel: Recommended
6586 // Stability: Development
6587 //
6588 // Examples:
6589 MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
6590
6591 // MessagingDestinationNameKey is the attribute Key conforming to the
6592 // "messaging.destination.name" semantic conventions. It represents the message
6593 // destination name.
6594 //
6595 // Type: string
6596 // RequirementLevel: Recommended
6597 // Stability: Development
6598 //
6599 // Examples: "MyQueue", "MyTopic"
6600 // Note: Destination name SHOULD uniquely identify a specific queue, topic or
6601 // other entity within the broker. If
6602 // the broker doesn't have such notion, the destination name SHOULD uniquely
6603 // identify the broker.
6604 MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
6605
6606 // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
6607 // "messaging.destination.partition.id" semantic conventions. It represents the
6608 // identifier of the partition messages are sent to or received from, unique
6609 // within the `messaging.destination.name`.
6610 //
6611 // Type: string
6612 // RequirementLevel: Recommended
6613 // Stability: Development
6614 //
6615 // Examples: 1
6616 MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
6617
6618 // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
6619 // the "messaging.destination.subscription.name" semantic conventions. It
6620 // represents the name of the destination subscription from which a message is
6621 // consumed.
6622 //
6623 // Type: string
6624 // RequirementLevel: Recommended
6625 // Stability: Development
6626 //
6627 // Examples: "subscription-a"
6628 // Note: Semantic conventions for individual messaging systems SHOULD document
6629 // whether `messaging.destination.subscription.name` is applicable and what it
6630 // means in the context of that system.
6631 MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
6632
6633 // MessagingDestinationTemplateKey is the attribute Key conforming to the
6634 // "messaging.destination.template" semantic conventions. It represents the low
6635 // cardinality representation of the messaging destination name.
6636 //
6637 // Type: string
6638 // RequirementLevel: Recommended
6639 // Stability: Development
6640 //
6641 // Examples: "/customers/{customerId}"
6642 // Note: Destination names could be constructed from templates. An example would
6643 // be a destination name involving a user name or product id. Although the
6644 // destination name in this case is of high cardinality, the underlying template
6645 // is of low cardinality and can be effectively used for grouping and
6646 // aggregation.
6647 MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
6648
6649 // MessagingDestinationTemporaryKey is the attribute Key conforming to the
6650 // "messaging.destination.temporary" semantic conventions. It represents a
6651 // boolean that is true if the message destination is temporary and might not
6652 // exist anymore after messages are processed.
6653 //
6654 // Type: boolean
6655 // RequirementLevel: Recommended
6656 // Stability: Development
6657 //
6658 // Examples:
6659 MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
6660
6661 // MessagingEventhubsMessageEnqueuedTimeKey is the attribute Key conforming to
6662 // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
6663 // represents the UTC epoch seconds at which the message has been accepted and
6664 // stored in the entity.
6665 //
6666 // Type: int
6667 // RequirementLevel: Recommended
6668 // Stability: Development
6669 MessagingEventhubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
6670
6671 // MessagingGCPPubsubMessageAckDeadlineKey is the attribute Key conforming to
6672 // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
6673 // represents the ack deadline in seconds set for the modify ack deadline
6674 // request.
6675 //
6676 // Type: int
6677 // RequirementLevel: Recommended
6678 // Stability: Development
6679 MessagingGCPPubsubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
6680
6681 // MessagingGCPPubsubMessageAckIDKey is the attribute Key conforming to the
6682 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
6683 // ack id for a given message.
6684 //
6685 // Type: string
6686 // RequirementLevel: Recommended
6687 // Stability: Development
6688 //
6689 // Examples: ack_id
6690 MessagingGCPPubsubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
6691
6692 // MessagingGCPPubsubMessageDeliveryAttemptKey is the attribute Key conforming
6693 // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
6694 // It represents the delivery attempt for a given message.
6695 //
6696 // Type: int
6697 // RequirementLevel: Recommended
6698 // Stability: Development
6699 MessagingGCPPubsubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
6700
6701 // MessagingGCPPubsubMessageOrderingKeyKey is the attribute Key conforming to
6702 // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
6703 // represents the ordering key for a given message. If the attribute is not
6704 // present, the message does not have an ordering key.
6705 //
6706 // Type: string
6707 // RequirementLevel: Recommended
6708 // Stability: Development
6709 //
6710 // Examples: ordering_key
6711 MessagingGCPPubsubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
6712
6713 // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
6714 // "messaging.kafka.message.key" semantic conventions. It represents the message
6715 // keys in Kafka are used for grouping alike messages to ensure they're
6716 // processed on the same partition. They differ from `messaging.message.id` in
6717 // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
6718 //
6719 // Type: string
6720 // RequirementLevel: Recommended
6721 // Stability: Development
6722 //
6723 // Examples: myKey
6724 // Note: If the key type is not string, it's string representation has to be
6725 // supplied for the attribute. If the key has no unambiguous, canonical string
6726 // form, don't include its value.
6727 MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
6728
6729 // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
6730 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
6731 // boolean that is true if the message is a tombstone.
6732 //
6733 // Type: boolean
6734 // RequirementLevel: Recommended
6735 // Stability: Development
6736 //
6737 // Examples:
6738 MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
6739
6740 // MessagingKafkaOffsetKey is the attribute Key conforming to the
6741 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
6742 // record in the corresponding Kafka partition.
6743 //
6744 // Type: int
6745 // RequirementLevel: Recommended
6746 // Stability: Development
6747 MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
6748
6749 // MessagingMessageBodySizeKey is the attribute Key conforming to the
6750 // "messaging.message.body.size" semantic conventions. It represents the size of
6751 // the message body in bytes.
6752 //
6753 // Type: int
6754 // RequirementLevel: Recommended
6755 // Stability: Development
6756 //
6757 // Note: This can refer to both the compressed or uncompressed body size. If
6758 // both sizes are known, the uncompressed
6759 // body size should be used.
6760 MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
6761
6762 // MessagingMessageConversationIDKey is the attribute Key conforming to the
6763 // "messaging.message.conversation_id" semantic conventions. It represents the
6764 // conversation ID identifying the conversation to which the message belongs,
6765 // represented as a string. Sometimes called "Correlation ID".
6766 //
6767 // Type: string
6768 // RequirementLevel: Recommended
6769 // Stability: Development
6770 //
6771 // Examples: MyConversationId
6772 MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
6773
6774 // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
6775 // "messaging.message.envelope.size" semantic conventions. It represents the
6776 // size of the message body and metadata in bytes.
6777 //
6778 // Type: int
6779 // RequirementLevel: Recommended
6780 // Stability: Development
6781 //
6782 // Note: This can refer to both the compressed or uncompressed size. If both
6783 // sizes are known, the uncompressed
6784 // size should be used.
6785 MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
6786
6787 // MessagingMessageIDKey is the attribute Key conforming to the
6788 // "messaging.message.id" semantic conventions. It represents a value used by
6789 // the messaging system as an identifier for the message, represented as a
6790 // string.
6791 //
6792 // Type: string
6793 // RequirementLevel: Recommended
6794 // Stability: Development
6795 //
6796 // Examples: 452a7c7c7c7048c2f887f61572b18fc2
6797 MessagingMessageIDKey = attribute.Key("messaging.message.id")
6798
6799 // MessagingOperationNameKey is the attribute Key conforming to the
6800 // "messaging.operation.name" semantic conventions. It represents the
6801 // system-specific name of the messaging operation.
6802 //
6803 // Type: string
6804 // RequirementLevel: Recommended
6805 // Stability: Development
6806 //
6807 // Examples: "ack", "nack", "send"
6808 MessagingOperationNameKey = attribute.Key("messaging.operation.name")
6809
6810 // MessagingOperationTypeKey is the attribute Key conforming to the
6811 // "messaging.operation.type" semantic conventions. It represents a string
6812 // identifying the type of the messaging operation.
6813 //
6814 // Type: Enum
6815 // RequirementLevel: Recommended
6816 // Stability: Development
6817 //
6818 // Examples:
6819 // Note: If a custom value is used, it MUST be of low cardinality.
6820 MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
6821
6822 // MessagingRabbitmqDestinationRoutingKeyKey is the attribute Key conforming to
6823 // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
6824 // represents the rabbitMQ message routing key.
6825 //
6826 // Type: string
6827 // RequirementLevel: Recommended
6828 // Stability: Development
6829 //
6830 // Examples: myKey
6831 MessagingRabbitmqDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
6832
6833 // MessagingRabbitmqMessageDeliveryTagKey is the attribute Key conforming to the
6834 // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
6835 // the rabbitMQ message delivery tag.
6836 //
6837 // Type: int
6838 // RequirementLevel: Recommended
6839 // Stability: Development
6840 MessagingRabbitmqMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
6841
6842 // MessagingRocketmqConsumptionModelKey is the attribute Key conforming to the
6843 // "messaging.rocketmq.consumption_model" semantic conventions. It represents
6844 // the model of message consumption. This only applies to consumer spans.
6845 //
6846 // Type: Enum
6847 // RequirementLevel: Recommended
6848 // Stability: Development
6849 //
6850 // Examples:
6851 MessagingRocketmqConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
6852
6853 // MessagingRocketmqMessageDelayTimeLevelKey is the attribute Key conforming to
6854 // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
6855 // represents the delay time level for delay message, which determines the
6856 // message delay time.
6857 //
6858 // Type: int
6859 // RequirementLevel: Recommended
6860 // Stability: Development
6861 MessagingRocketmqMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
6862
6863 // MessagingRocketmqMessageDeliveryTimestampKey is the attribute Key conforming
6864 // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
6865 // It represents the timestamp in milliseconds that the delay message is
6866 // expected to be delivered to consumer.
6867 //
6868 // Type: int
6869 // RequirementLevel: Recommended
6870 // Stability: Development
6871 MessagingRocketmqMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
6872
6873 // MessagingRocketmqMessageGroupKey is the attribute Key conforming to the
6874 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
6875 // is essential for FIFO message. Messages that belong to the same message group
6876 // are always processed one by one within the same consumer group.
6877 //
6878 // Type: string
6879 // RequirementLevel: Recommended
6880 // Stability: Development
6881 //
6882 // Examples: myMessageGroup
6883 MessagingRocketmqMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
6884
6885 // MessagingRocketmqMessageKeysKey is the attribute Key conforming to the
6886 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
6887 // key(s) of message, another way to mark message besides message id.
6888 //
6889 // Type: string[]
6890 // RequirementLevel: Recommended
6891 // Stability: Development
6892 //
6893 // Examples: "keyA", "keyB"
6894 MessagingRocketmqMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
6895
6896 // MessagingRocketmqMessageTagKey is the attribute Key conforming to the
6897 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
6898 // secondary classifier of message besides topic.
6899 //
6900 // Type: string
6901 // RequirementLevel: Recommended
6902 // Stability: Development
6903 //
6904 // Examples: tagA
6905 MessagingRocketmqMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
6906
6907 // MessagingRocketmqMessageTypeKey is the attribute Key conforming to the
6908 // "messaging.rocketmq.message.type" semantic conventions. It represents the
6909 // type of message.
6910 //
6911 // Type: Enum
6912 // RequirementLevel: Recommended
6913 // Stability: Development
6914 //
6915 // Examples:
6916 MessagingRocketmqMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
6917
6918 // MessagingRocketmqNamespaceKey is the attribute Key conforming to the
6919 // "messaging.rocketmq.namespace" semantic conventions. It represents the
6920 // namespace of RocketMQ resources, resources in different namespaces are
6921 // individual.
6922 //
6923 // Type: string
6924 // RequirementLevel: Recommended
6925 // Stability: Development
6926 //
6927 // Examples: myNamespace
6928 MessagingRocketmqNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
6929
6930 // MessagingServicebusDispositionStatusKey is the attribute Key conforming to
6931 // the "messaging.servicebus.disposition_status" semantic conventions. It
6932 // represents the describes the [settlement type].
6933 //
6934 // Type: Enum
6935 // RequirementLevel: Recommended
6936 // Stability: Development
6937 //
6938 // Examples:
6939 //
6940 // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
6941 MessagingServicebusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
6942
6943 // MessagingServicebusMessageDeliveryCountKey is the attribute Key conforming to
6944 // the "messaging.servicebus.message.delivery_count" semantic conventions. It
6945 // represents the number of deliveries that have been attempted for this
6946 // message.
6947 //
6948 // Type: int
6949 // RequirementLevel: Recommended
6950 // Stability: Development
6951 MessagingServicebusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
6952
6953 // MessagingServicebusMessageEnqueuedTimeKey is the attribute Key conforming to
6954 // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
6955 // represents the UTC epoch seconds at which the message has been accepted and
6956 // stored in the entity.
6957 //
6958 // Type: int
6959 // RequirementLevel: Recommended
6960 // Stability: Development
6961 MessagingServicebusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
6962
6963 // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
6964 // semantic conventions. It represents the messaging system as identified by the
6965 // client instrumentation.
6966 //
6967 // Type: Enum
6968 // RequirementLevel: Recommended
6969 // Stability: Development
6970 //
6971 // Examples:
6972 // Note: The actual messaging system may differ from the one known by the
6973 // client. For example, when using Kafka client libraries to communicate with
6974 // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
6975 // instrumentation's best knowledge.
6976 MessagingSystemKey = attribute.Key("messaging.system")
6977 )
6978
6979 // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
6980 // "messaging.batch.message_count" semantic conventions. It represents the number
6981 // of messages sent, received, or processed in the scope of the batching
6982 // operation.
6983 func MessagingBatchMessageCount(val int) attribute.KeyValue {
6984 return MessagingBatchMessageCountKey.Int(val)
6985 }
6986
6987 // MessagingClientID returns an attribute KeyValue conforming to the
6988 // "messaging.client.id" semantic conventions. It represents a unique identifier
6989 // for the client that consumes or produces a message.
6990 func MessagingClientID(val string) attribute.KeyValue {
6991 return MessagingClientIDKey.String(val)
6992 }
6993
6994 // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
6995 // "messaging.consumer.group.name" semantic conventions. It represents the name
6996 // of the consumer group with which a consumer is associated.
6997 func MessagingConsumerGroupName(val string) attribute.KeyValue {
6998 return MessagingConsumerGroupNameKey.String(val)
6999 }
7000
7001 // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
7002 // "messaging.destination.anonymous" semantic conventions. It represents a
7003 // boolean that is true if the message destination is anonymous (could be unnamed
7004 // or have auto-generated name).
7005 func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
7006 return MessagingDestinationAnonymousKey.Bool(val)
7007 }
7008
7009 // MessagingDestinationName returns an attribute KeyValue conforming to the
7010 // "messaging.destination.name" semantic conventions. It represents the message
7011 // destination name.
7012 func MessagingDestinationName(val string) attribute.KeyValue {
7013 return MessagingDestinationNameKey.String(val)
7014 }
7015
7016 // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
7017 // the "messaging.destination.partition.id" semantic conventions. It represents
7018 // the identifier of the partition messages are sent to or received from, unique
7019 // within the `messaging.destination.name`.
7020 func MessagingDestinationPartitionID(val string) attribute.KeyValue {
7021 return MessagingDestinationPartitionIDKey.String(val)
7022 }
7023
7024 // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
7025 // to the "messaging.destination.subscription.name" semantic conventions. It
7026 // represents the name of the destination subscription from which a message is
7027 // consumed.
7028 func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
7029 return MessagingDestinationSubscriptionNameKey.String(val)
7030 }
7031
7032 // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
7033 // "messaging.destination.template" semantic conventions. It represents the low
7034 // cardinality representation of the messaging destination name.
7035 func MessagingDestinationTemplate(val string) attribute.KeyValue {
7036 return MessagingDestinationTemplateKey.String(val)
7037 }
7038
7039 // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
7040 // "messaging.destination.temporary" semantic conventions. It represents a
7041 // boolean that is true if the message destination is temporary and might not
7042 // exist anymore after messages are processed.
7043 func MessagingDestinationTemporary(val bool) attribute.KeyValue {
7044 return MessagingDestinationTemporaryKey.Bool(val)
7045 }
7046
7047 // MessagingEventhubsMessageEnqueuedTime returns an attribute KeyValue conforming
7048 // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
7049 // represents the UTC epoch seconds at which the message has been accepted and
7050 // stored in the entity.
7051 func MessagingEventhubsMessageEnqueuedTime(val int) attribute.KeyValue {
7052 return MessagingEventhubsMessageEnqueuedTimeKey.Int(val)
7053 }
7054
7055 // MessagingGCPPubsubMessageAckDeadline returns an attribute KeyValue conforming
7056 // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
7057 // represents the ack deadline in seconds set for the modify ack deadline
7058 // request.
7059 func MessagingGCPPubsubMessageAckDeadline(val int) attribute.KeyValue {
7060 return MessagingGCPPubsubMessageAckDeadlineKey.Int(val)
7061 }
7062
7063 // MessagingGCPPubsubMessageAckID returns an attribute KeyValue conforming to the
7064 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
7065 // ack id for a given message.
7066 func MessagingGCPPubsubMessageAckID(val string) attribute.KeyValue {
7067 return MessagingGCPPubsubMessageAckIDKey.String(val)
7068 }
7069
7070 // MessagingGCPPubsubMessageDeliveryAttempt returns an attribute KeyValue
7071 // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
7072 // conventions. It represents the delivery attempt for a given message.
7073 func MessagingGCPPubsubMessageDeliveryAttempt(val int) attribute.KeyValue {
7074 return MessagingGCPPubsubMessageDeliveryAttemptKey.Int(val)
7075 }
7076
7077 // MessagingGCPPubsubMessageOrderingKey returns an attribute KeyValue conforming
7078 // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
7079 // represents the ordering key for a given message. If the attribute is not
7080 // present, the message does not have an ordering key.
7081 func MessagingGCPPubsubMessageOrderingKey(val string) attribute.KeyValue {
7082 return MessagingGCPPubsubMessageOrderingKeyKey.String(val)
7083 }
7084
7085 // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
7086 // "messaging.kafka.message.key" semantic conventions. It represents the message
7087 // keys in Kafka are used for grouping alike messages to ensure they're processed
7088 // on the same partition. They differ from `messaging.message.id` in that they're
7089 // not unique. If the key is `null`, the attribute MUST NOT be set.
7090 func MessagingKafkaMessageKey(val string) attribute.KeyValue {
7091 return MessagingKafkaMessageKeyKey.String(val)
7092 }
7093
7094 // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
7095 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
7096 // boolean that is true if the message is a tombstone.
7097 func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
7098 return MessagingKafkaMessageTombstoneKey.Bool(val)
7099 }
7100
7101 // MessagingKafkaOffset returns an attribute KeyValue conforming to the
7102 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
7103 // record in the corresponding Kafka partition.
7104 func MessagingKafkaOffset(val int) attribute.KeyValue {
7105 return MessagingKafkaOffsetKey.Int(val)
7106 }
7107
7108 // MessagingMessageBodySize returns an attribute KeyValue conforming to the
7109 // "messaging.message.body.size" semantic conventions. It represents the size of
7110 // the message body in bytes.
7111 func MessagingMessageBodySize(val int) attribute.KeyValue {
7112 return MessagingMessageBodySizeKey.Int(val)
7113 }
7114
7115 // MessagingMessageConversationID returns an attribute KeyValue conforming to the
7116 // "messaging.message.conversation_id" semantic conventions. It represents the
7117 // conversation ID identifying the conversation to which the message belongs,
7118 // represented as a string. Sometimes called "Correlation ID".
7119 func MessagingMessageConversationID(val string) attribute.KeyValue {
7120 return MessagingMessageConversationIDKey.String(val)
7121 }
7122
7123 // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
7124 // "messaging.message.envelope.size" semantic conventions. It represents the size
7125 // of the message body and metadata in bytes.
7126 func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
7127 return MessagingMessageEnvelopeSizeKey.Int(val)
7128 }
7129
7130 // MessagingMessageID returns an attribute KeyValue conforming to the
7131 // "messaging.message.id" semantic conventions. It represents a value used by the
7132 // messaging system as an identifier for the message, represented as a string.
7133 func MessagingMessageID(val string) attribute.KeyValue {
7134 return MessagingMessageIDKey.String(val)
7135 }
7136
7137 // MessagingOperationName returns an attribute KeyValue conforming to the
7138 // "messaging.operation.name" semantic conventions. It represents the
7139 // system-specific name of the messaging operation.
7140 func MessagingOperationName(val string) attribute.KeyValue {
7141 return MessagingOperationNameKey.String(val)
7142 }
7143
7144 // MessagingRabbitmqDestinationRoutingKey returns an attribute KeyValue
7145 // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
7146 // conventions. It represents the rabbitMQ message routing key.
7147 func MessagingRabbitmqDestinationRoutingKey(val string) attribute.KeyValue {
7148 return MessagingRabbitmqDestinationRoutingKeyKey.String(val)
7149 }
7150
7151 // MessagingRabbitmqMessageDeliveryTag returns an attribute KeyValue conforming
7152 // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
7153 // represents the rabbitMQ message delivery tag.
7154 func MessagingRabbitmqMessageDeliveryTag(val int) attribute.KeyValue {
7155 return MessagingRabbitmqMessageDeliveryTagKey.Int(val)
7156 }
7157
7158 // MessagingRocketmqMessageDelayTimeLevel returns an attribute KeyValue
7159 // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
7160 // conventions. It represents the delay time level for delay message, which
7161 // determines the message delay time.
7162 func MessagingRocketmqMessageDelayTimeLevel(val int) attribute.KeyValue {
7163 return MessagingRocketmqMessageDelayTimeLevelKey.Int(val)
7164 }
7165
7166 // MessagingRocketmqMessageDeliveryTimestamp returns an attribute KeyValue
7167 // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
7168 // conventions. It represents the timestamp in milliseconds that the delay
7169 // message is expected to be delivered to consumer.
7170 func MessagingRocketmqMessageDeliveryTimestamp(val int) attribute.KeyValue {
7171 return MessagingRocketmqMessageDeliveryTimestampKey.Int(val)
7172 }
7173
7174 // MessagingRocketmqMessageGroup returns an attribute KeyValue conforming to the
7175 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
7176 // is essential for FIFO message. Messages that belong to the same message group
7177 // are always processed one by one within the same consumer group.
7178 func MessagingRocketmqMessageGroup(val string) attribute.KeyValue {
7179 return MessagingRocketmqMessageGroupKey.String(val)
7180 }
7181
7182 // MessagingRocketmqMessageKeys returns an attribute KeyValue conforming to the
7183 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
7184 // key(s) of message, another way to mark message besides message id.
7185 func MessagingRocketmqMessageKeys(val ...string) attribute.KeyValue {
7186 return MessagingRocketmqMessageKeysKey.StringSlice(val)
7187 }
7188
7189 // MessagingRocketmqMessageTag returns an attribute KeyValue conforming to the
7190 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
7191 // secondary classifier of message besides topic.
7192 func MessagingRocketmqMessageTag(val string) attribute.KeyValue {
7193 return MessagingRocketmqMessageTagKey.String(val)
7194 }
7195
7196 // MessagingRocketmqNamespace returns an attribute KeyValue conforming to the
7197 // "messaging.rocketmq.namespace" semantic conventions. It represents the
7198 // namespace of RocketMQ resources, resources in different namespaces are
7199 // individual.
7200 func MessagingRocketmqNamespace(val string) attribute.KeyValue {
7201 return MessagingRocketmqNamespaceKey.String(val)
7202 }
7203
7204 // MessagingServicebusMessageDeliveryCount returns an attribute KeyValue
7205 // conforming to the "messaging.servicebus.message.delivery_count" semantic
7206 // conventions. It represents the number of deliveries that have been attempted
7207 // for this message.
7208 func MessagingServicebusMessageDeliveryCount(val int) attribute.KeyValue {
7209 return MessagingServicebusMessageDeliveryCountKey.Int(val)
7210 }
7211
7212 // MessagingServicebusMessageEnqueuedTime returns an attribute KeyValue
7213 // conforming to the "messaging.servicebus.message.enqueued_time" semantic
7214 // conventions. It represents the UTC epoch seconds at which the message has been
7215 // accepted and stored in the entity.
7216 func MessagingServicebusMessageEnqueuedTime(val int) attribute.KeyValue {
7217 return MessagingServicebusMessageEnqueuedTimeKey.Int(val)
7218 }
7219
7220 // Enum values for messaging.operation.type
7221 var (
7222 // A message is created. "Create" spans always refer to a single message and are
7223 // used to provide a unique creation context for messages in batch sending
7224 // scenarios.
7225 //
7226 // Stability: development
7227 MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
7228 // One or more messages are provided for sending to an intermediary. If a single
7229 // message is sent, the context of the "Send" span can be used as the creation
7230 // context and no "Create" span needs to be created.
7231 //
7232 // Stability: development
7233 MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
7234 // One or more messages are requested by a consumer. This operation refers to
7235 // pull-based scenarios, where consumers explicitly call methods of messaging
7236 // SDKs to receive messages.
7237 //
7238 // Stability: development
7239 MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
7240 // One or more messages are processed by a consumer.
7241 //
7242 // Stability: development
7243 MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
7244 // One or more messages are settled.
7245 //
7246 // Stability: development
7247 MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
7248 // Deprecated: Replaced by `process`.
7249 MessagingOperationTypeDeliver = MessagingOperationTypeKey.String("deliver")
7250 // Deprecated: Replaced by `send`.
7251 MessagingOperationTypePublish = MessagingOperationTypeKey.String("publish")
7252 )
7253
7254 // Enum values for messaging.rocketmq.consumption_model
7255 var (
7256 // Clustering consumption model
7257 // Stability: development
7258 MessagingRocketmqConsumptionModelClustering = MessagingRocketmqConsumptionModelKey.String("clustering")
7259 // Broadcasting consumption model
7260 // Stability: development
7261 MessagingRocketmqConsumptionModelBroadcasting = MessagingRocketmqConsumptionModelKey.String("broadcasting")
7262 )
7263
7264 // Enum values for messaging.rocketmq.message.type
7265 var (
7266 // Normal message
7267 // Stability: development
7268 MessagingRocketmqMessageTypeNormal = MessagingRocketmqMessageTypeKey.String("normal")
7269 // FIFO message
7270 // Stability: development
7271 MessagingRocketmqMessageTypeFifo = MessagingRocketmqMessageTypeKey.String("fifo")
7272 // Delay message
7273 // Stability: development
7274 MessagingRocketmqMessageTypeDelay = MessagingRocketmqMessageTypeKey.String("delay")
7275 // Transaction message
7276 // Stability: development
7277 MessagingRocketmqMessageTypeTransaction = MessagingRocketmqMessageTypeKey.String("transaction")
7278 )
7279
7280 // Enum values for messaging.servicebus.disposition_status
7281 var (
7282 // Message is completed
7283 // Stability: development
7284 MessagingServicebusDispositionStatusComplete = MessagingServicebusDispositionStatusKey.String("complete")
7285 // Message is abandoned
7286 // Stability: development
7287 MessagingServicebusDispositionStatusAbandon = MessagingServicebusDispositionStatusKey.String("abandon")
7288 // Message is sent to dead letter queue
7289 // Stability: development
7290 MessagingServicebusDispositionStatusDeadLetter = MessagingServicebusDispositionStatusKey.String("dead_letter")
7291 // Message is deferred
7292 // Stability: development
7293 MessagingServicebusDispositionStatusDefer = MessagingServicebusDispositionStatusKey.String("defer")
7294 )
7295
7296 // Enum values for messaging.system
7297 var (
7298 // Apache ActiveMQ
7299 // Stability: development
7300 MessagingSystemActivemq = MessagingSystemKey.String("activemq")
7301 // Amazon Simple Queue Service (SQS)
7302 // Stability: development
7303 MessagingSystemAWSSqs = MessagingSystemKey.String("aws_sqs")
7304 // Azure Event Grid
7305 // Stability: development
7306 MessagingSystemEventgrid = MessagingSystemKey.String("eventgrid")
7307 // Azure Event Hubs
7308 // Stability: development
7309 MessagingSystemEventhubs = MessagingSystemKey.String("eventhubs")
7310 // Azure Service Bus
7311 // Stability: development
7312 MessagingSystemServicebus = MessagingSystemKey.String("servicebus")
7313 // Google Cloud Pub/Sub
7314 // Stability: development
7315 MessagingSystemGCPPubsub = MessagingSystemKey.String("gcp_pubsub")
7316 // Java Message Service
7317 // Stability: development
7318 MessagingSystemJms = MessagingSystemKey.String("jms")
7319 // Apache Kafka
7320 // Stability: development
7321 MessagingSystemKafka = MessagingSystemKey.String("kafka")
7322 // RabbitMQ
7323 // Stability: development
7324 MessagingSystemRabbitmq = MessagingSystemKey.String("rabbitmq")
7325 // Apache RocketMQ
7326 // Stability: development
7327 MessagingSystemRocketmq = MessagingSystemKey.String("rocketmq")
7328 // Apache Pulsar
7329 // Stability: development
7330 MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
7331 )
7332
7333 // Namespace: network
7334 const (
7335 // NetworkCarrierIccKey is the attribute Key conforming to the
7336 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
7337 // alpha-2 2-character country code associated with the mobile carrier network.
7338 //
7339 // Type: string
7340 // RequirementLevel: Recommended
7341 // Stability: Development
7342 //
7343 // Examples: DE
7344 NetworkCarrierIccKey = attribute.Key("network.carrier.icc")
7345
7346 // NetworkCarrierMccKey is the attribute Key conforming to the
7347 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
7348 // country code.
7349 //
7350 // Type: string
7351 // RequirementLevel: Recommended
7352 // Stability: Development
7353 //
7354 // Examples: 310
7355 NetworkCarrierMccKey = attribute.Key("network.carrier.mcc")
7356
7357 // NetworkCarrierMncKey is the attribute Key conforming to the
7358 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
7359 // network code.
7360 //
7361 // Type: string
7362 // RequirementLevel: Recommended
7363 // Stability: Development
7364 //
7365 // Examples: 001
7366 NetworkCarrierMncKey = attribute.Key("network.carrier.mnc")
7367
7368 // NetworkCarrierNameKey is the attribute Key conforming to the
7369 // "network.carrier.name" semantic conventions. It represents the name of the
7370 // mobile carrier.
7371 //
7372 // Type: string
7373 // RequirementLevel: Recommended
7374 // Stability: Development
7375 //
7376 // Examples: sprint
7377 NetworkCarrierNameKey = attribute.Key("network.carrier.name")
7378
7379 // NetworkConnectionSubtypeKey is the attribute Key conforming to the
7380 // "network.connection.subtype" semantic conventions. It represents the this
7381 // describes more details regarding the connection.type. It may be the type of
7382 // cell technology connection, but it could be used for describing details about
7383 // a wifi connection.
7384 //
7385 // Type: Enum
7386 // RequirementLevel: Recommended
7387 // Stability: Development
7388 //
7389 // Examples: LTE
7390 NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
7391
7392 // NetworkConnectionTypeKey is the attribute Key conforming to the
7393 // "network.connection.type" semantic conventions. It represents the internet
7394 // connection type.
7395 //
7396 // Type: Enum
7397 // RequirementLevel: Recommended
7398 // Stability: Development
7399 //
7400 // Examples: wifi
7401 NetworkConnectionTypeKey = attribute.Key("network.connection.type")
7402
7403 // NetworkIoDirectionKey is the attribute Key conforming to the
7404 // "network.io.direction" semantic conventions. It represents the network IO
7405 // operation direction.
7406 //
7407 // Type: Enum
7408 // RequirementLevel: Recommended
7409 // Stability: Development
7410 //
7411 // Examples: "transmit"
7412 NetworkIoDirectionKey = attribute.Key("network.io.direction")
7413
7414 // NetworkLocalAddressKey is the attribute Key conforming to the
7415 // "network.local.address" semantic conventions. It represents the local address
7416 // of the network connection - IP address or Unix domain socket name.
7417 //
7418 // Type: string
7419 // RequirementLevel: Recommended
7420 // Stability: Stable
7421 //
7422 // Examples: "10.1.2.80", "/tmp/my.sock"
7423 NetworkLocalAddressKey = attribute.Key("network.local.address")
7424
7425 // NetworkLocalPortKey is the attribute Key conforming to the
7426 // "network.local.port" semantic conventions. It represents the local port
7427 // number of the network connection.
7428 //
7429 // Type: int
7430 // RequirementLevel: Recommended
7431 // Stability: Stable
7432 //
7433 // Examples: 65123
7434 NetworkLocalPortKey = attribute.Key("network.local.port")
7435
7436 // NetworkPeerAddressKey is the attribute Key conforming to the
7437 // "network.peer.address" semantic conventions. It represents the peer address
7438 // of the network connection - IP address or Unix domain socket name.
7439 //
7440 // Type: string
7441 // RequirementLevel: Recommended
7442 // Stability: Stable
7443 //
7444 // Examples: "10.1.2.80", "/tmp/my.sock"
7445 NetworkPeerAddressKey = attribute.Key("network.peer.address")
7446
7447 // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
7448 // semantic conventions. It represents the peer port number of the network
7449 // connection.
7450 //
7451 // Type: int
7452 // RequirementLevel: Recommended
7453 // Stability: Stable
7454 //
7455 // Examples: 65123
7456 NetworkPeerPortKey = attribute.Key("network.peer.port")
7457
7458 // NetworkProtocolNameKey is the attribute Key conforming to the
7459 // "network.protocol.name" semantic conventions. It represents the
7460 // [OSI application layer] or non-OSI equivalent.
7461 //
7462 // Type: string
7463 // RequirementLevel: Recommended
7464 // Stability: Stable
7465 //
7466 // Examples: "amqp", "http", "mqtt"
7467 // Note: The value SHOULD be normalized to lowercase.
7468 //
7469 // [OSI application layer]: https://osi-model.com/application-layer/
7470 NetworkProtocolNameKey = attribute.Key("network.protocol.name")
7471
7472 // NetworkProtocolVersionKey is the attribute Key conforming to the
7473 // "network.protocol.version" semantic conventions. It represents the actual
7474 // version of the protocol used for network communication.
7475 //
7476 // Type: string
7477 // RequirementLevel: Recommended
7478 // Stability: Stable
7479 //
7480 // Examples: "1.1", "2"
7481 // Note: If protocol version is subject to negotiation (for example using [ALPN]
7482 // ), this attribute SHOULD be set to the negotiated version. If the actual
7483 // protocol version is not known, this attribute SHOULD NOT be set.
7484 //
7485 // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
7486 NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
7487
7488 // NetworkTransportKey is the attribute Key conforming to the
7489 // "network.transport" semantic conventions. It represents the
7490 // [OSI transport layer] or [inter-process communication method].
7491 //
7492 // Type: Enum
7493 // RequirementLevel: Recommended
7494 // Stability: Stable
7495 //
7496 // Examples: "tcp", "udp"
7497 // Note: The value SHOULD be normalized to lowercase.
7498 //
7499 // Consider always setting the transport when setting a port number, since
7500 // a port number is ambiguous without knowing the transport. For example
7501 // different processes could be listening on TCP port 12345 and UDP port 12345.
7502 //
7503 // [OSI transport layer]: https://osi-model.com/transport-layer/
7504 // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
7505 NetworkTransportKey = attribute.Key("network.transport")
7506
7507 // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
7508 // conventions. It represents the [OSI network layer] or non-OSI equivalent.
7509 //
7510 // Type: Enum
7511 // RequirementLevel: Recommended
7512 // Stability: Stable
7513 //
7514 // Examples: "ipv4", "ipv6"
7515 // Note: The value SHOULD be normalized to lowercase.
7516 //
7517 // [OSI network layer]: https://osi-model.com/network-layer/
7518 NetworkTypeKey = attribute.Key("network.type")
7519 )
7520
7521 // NetworkCarrierIcc returns an attribute KeyValue conforming to the
7522 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
7523 // alpha-2 2-character country code associated with the mobile carrier network.
7524 func NetworkCarrierIcc(val string) attribute.KeyValue {
7525 return NetworkCarrierIccKey.String(val)
7526 }
7527
7528 // NetworkCarrierMcc returns an attribute KeyValue conforming to the
7529 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
7530 // country code.
7531 func NetworkCarrierMcc(val string) attribute.KeyValue {
7532 return NetworkCarrierMccKey.String(val)
7533 }
7534
7535 // NetworkCarrierMnc returns an attribute KeyValue conforming to the
7536 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
7537 // network code.
7538 func NetworkCarrierMnc(val string) attribute.KeyValue {
7539 return NetworkCarrierMncKey.String(val)
7540 }
7541
7542 // NetworkCarrierName returns an attribute KeyValue conforming to the
7543 // "network.carrier.name" semantic conventions. It represents the name of the
7544 // mobile carrier.
7545 func NetworkCarrierName(val string) attribute.KeyValue {
7546 return NetworkCarrierNameKey.String(val)
7547 }
7548
7549 // NetworkLocalAddress returns an attribute KeyValue conforming to the
7550 // "network.local.address" semantic conventions. It represents the local address
7551 // of the network connection - IP address or Unix domain socket name.
7552 func NetworkLocalAddress(val string) attribute.KeyValue {
7553 return NetworkLocalAddressKey.String(val)
7554 }
7555
7556 // NetworkLocalPort returns an attribute KeyValue conforming to the
7557 // "network.local.port" semantic conventions. It represents the local port number
7558 // of the network connection.
7559 func NetworkLocalPort(val int) attribute.KeyValue {
7560 return NetworkLocalPortKey.Int(val)
7561 }
7562
7563 // NetworkPeerAddress returns an attribute KeyValue conforming to the
7564 // "network.peer.address" semantic conventions. It represents the peer address of
7565 // the network connection - IP address or Unix domain socket name.
7566 func NetworkPeerAddress(val string) attribute.KeyValue {
7567 return NetworkPeerAddressKey.String(val)
7568 }
7569
7570 // NetworkPeerPort returns an attribute KeyValue conforming to the
7571 // "network.peer.port" semantic conventions. It represents the peer port number
7572 // of the network connection.
7573 func NetworkPeerPort(val int) attribute.KeyValue {
7574 return NetworkPeerPortKey.Int(val)
7575 }
7576
7577 // NetworkProtocolName returns an attribute KeyValue conforming to the
7578 // "network.protocol.name" semantic conventions. It represents the
7579 // [OSI application layer] or non-OSI equivalent.
7580 //
7581 // [OSI application layer]: https://osi-model.com/application-layer/
7582 func NetworkProtocolName(val string) attribute.KeyValue {
7583 return NetworkProtocolNameKey.String(val)
7584 }
7585
7586 // NetworkProtocolVersion returns an attribute KeyValue conforming to the
7587 // "network.protocol.version" semantic conventions. It represents the actual
7588 // version of the protocol used for network communication.
7589 func NetworkProtocolVersion(val string) attribute.KeyValue {
7590 return NetworkProtocolVersionKey.String(val)
7591 }
7592
7593 // Enum values for network.connection.subtype
7594 var (
7595 // GPRS
7596 // Stability: development
7597 NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
7598 // EDGE
7599 // Stability: development
7600 NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
7601 // UMTS
7602 // Stability: development
7603 NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
7604 // CDMA
7605 // Stability: development
7606 NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
7607 // EVDO Rel. 0
7608 // Stability: development
7609 NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
7610 // EVDO Rev. A
7611 // Stability: development
7612 NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
7613 // CDMA2000 1XRTT
7614 // Stability: development
7615 NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
7616 // HSDPA
7617 // Stability: development
7618 NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
7619 // HSUPA
7620 // Stability: development
7621 NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
7622 // HSPA
7623 // Stability: development
7624 NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
7625 // IDEN
7626 // Stability: development
7627 NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
7628 // EVDO Rev. B
7629 // Stability: development
7630 NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
7631 // LTE
7632 // Stability: development
7633 NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
7634 // EHRPD
7635 // Stability: development
7636 NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
7637 // HSPAP
7638 // Stability: development
7639 NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
7640 // GSM
7641 // Stability: development
7642 NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
7643 // TD-SCDMA
7644 // Stability: development
7645 NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
7646 // IWLAN
7647 // Stability: development
7648 NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
7649 // 5G NR (New Radio)
7650 // Stability: development
7651 NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
7652 // 5G NRNSA (New Radio Non-Standalone)
7653 // Stability: development
7654 NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
7655 // LTE CA
7656 // Stability: development
7657 NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
7658 )
7659
7660 // Enum values for network.connection.type
7661 var (
7662 // wifi
7663 // Stability: development
7664 NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
7665 // wired
7666 // Stability: development
7667 NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
7668 // cell
7669 // Stability: development
7670 NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
7671 // unavailable
7672 // Stability: development
7673 NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
7674 // unknown
7675 // Stability: development
7676 NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
7677 )
7678
7679 // Enum values for network.io.direction
7680 var (
7681 // transmit
7682 // Stability: development
7683 NetworkIoDirectionTransmit = NetworkIoDirectionKey.String("transmit")
7684 // receive
7685 // Stability: development
7686 NetworkIoDirectionReceive = NetworkIoDirectionKey.String("receive")
7687 )
7688
7689 // Enum values for network.transport
7690 var (
7691 // TCP
7692 // Stability: stable
7693 NetworkTransportTCP = NetworkTransportKey.String("tcp")
7694 // UDP
7695 // Stability: stable
7696 NetworkTransportUDP = NetworkTransportKey.String("udp")
7697 // Named or anonymous pipe.
7698 // Stability: stable
7699 NetworkTransportPipe = NetworkTransportKey.String("pipe")
7700 // Unix domain socket
7701 // Stability: stable
7702 NetworkTransportUnix = NetworkTransportKey.String("unix")
7703 // QUIC
7704 // Stability: development
7705 NetworkTransportQUIC = NetworkTransportKey.String("quic")
7706 )
7707
7708 // Enum values for network.type
7709 var (
7710 // IPv4
7711 // Stability: stable
7712 NetworkTypeIpv4 = NetworkTypeKey.String("ipv4")
7713 // IPv6
7714 // Stability: stable
7715 NetworkTypeIpv6 = NetworkTypeKey.String("ipv6")
7716 )
7717
7718 // Namespace: oci
7719 const (
7720 // OciManifestDigestKey is the attribute Key conforming to the
7721 // "oci.manifest.digest" semantic conventions. It represents the digest of the
7722 // OCI image manifest. For container images specifically is the digest by which
7723 // the container image is known.
7724 //
7725 // Type: string
7726 // RequirementLevel: Recommended
7727 // Stability: Development
7728 //
7729 // Examples:
7730 // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
7731 // Note: Follows [OCI Image Manifest Specification], and specifically the
7732 // [Digest property].
7733 // An example can be found in [Example Image Manifest].
7734 //
7735 // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
7736 // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
7737 // [Example Image Manifest]: https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest
7738 OciManifestDigestKey = attribute.Key("oci.manifest.digest")
7739 )
7740
7741 // OciManifestDigest returns an attribute KeyValue conforming to the
7742 // "oci.manifest.digest" semantic conventions. It represents the digest of the
7743 // OCI image manifest. For container images specifically is the digest by which
7744 // the container image is known.
7745 func OciManifestDigest(val string) attribute.KeyValue {
7746 return OciManifestDigestKey.String(val)
7747 }
7748
7749 // Namespace: opentracing
7750 const (
7751 // OpentracingRefTypeKey is the attribute Key conforming to the
7752 // "opentracing.ref_type" semantic conventions. It represents the parent-child
7753 // Reference type.
7754 //
7755 // Type: Enum
7756 // RequirementLevel: Recommended
7757 // Stability: Development
7758 //
7759 // Examples:
7760 // Note: The causal relationship between a child Span and a parent Span.
7761 OpentracingRefTypeKey = attribute.Key("opentracing.ref_type")
7762 )
7763
7764 // Enum values for opentracing.ref_type
7765 var (
7766 // The parent Span depends on the child Span in some capacity
7767 // Stability: development
7768 OpentracingRefTypeChildOf = OpentracingRefTypeKey.String("child_of")
7769 // The parent Span doesn't depend in any way on the result of the child Span
7770 // Stability: development
7771 OpentracingRefTypeFollowsFrom = OpentracingRefTypeKey.String("follows_from")
7772 )
7773
7774 // Namespace: os
7775 const (
7776 // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
7777 // conventions. It represents the unique identifier for a particular build or
7778 // compilation of the operating system.
7779 //
7780 // Type: string
7781 // RequirementLevel: Recommended
7782 // Stability: Development
7783 //
7784 // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
7785 OSBuildIDKey = attribute.Key("os.build_id")
7786
7787 // OSDescriptionKey is the attribute Key conforming to the "os.description"
7788 // semantic conventions. It represents the human readable (not intended to be
7789 // parsed) OS version information, like e.g. reported by `ver` or
7790 // `lsb_release -a` commands.
7791 //
7792 // Type: string
7793 // RequirementLevel: Recommended
7794 // Stability: Development
7795 //
7796 // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
7797 OSDescriptionKey = attribute.Key("os.description")
7798
7799 // OSNameKey is the attribute Key conforming to the "os.name" semantic
7800 // conventions. It represents the human readable operating system name.
7801 //
7802 // Type: string
7803 // RequirementLevel: Recommended
7804 // Stability: Development
7805 //
7806 // Examples: "iOS", "Android", "Ubuntu"
7807 OSNameKey = attribute.Key("os.name")
7808
7809 // OSTypeKey is the attribute Key conforming to the "os.type" semantic
7810 // conventions. It represents the operating system type.
7811 //
7812 // Type: Enum
7813 // RequirementLevel: Recommended
7814 // Stability: Development
7815 //
7816 // Examples:
7817 OSTypeKey = attribute.Key("os.type")
7818
7819 // OSVersionKey is the attribute Key conforming to the "os.version" semantic
7820 // conventions. It represents the version string of the operating system as
7821 // defined in [Version Attributes].
7822 //
7823 // Type: string
7824 // RequirementLevel: Recommended
7825 // Stability: Development
7826 //
7827 // Examples: "14.2.1", "18.04.1"
7828 //
7829 // [Version Attributes]: /docs/resource/README.md#version-attributes
7830 OSVersionKey = attribute.Key("os.version")
7831 )
7832
7833 // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
7834 // semantic conventions. It represents the unique identifier for a particular
7835 // build or compilation of the operating system.
7836 func OSBuildID(val string) attribute.KeyValue {
7837 return OSBuildIDKey.String(val)
7838 }
7839
7840 // OSDescription returns an attribute KeyValue conforming to the "os.description"
7841 // semantic conventions. It represents the human readable (not intended to be
7842 // parsed) OS version information, like e.g. reported by `ver` or
7843 // `lsb_release -a` commands.
7844 func OSDescription(val string) attribute.KeyValue {
7845 return OSDescriptionKey.String(val)
7846 }
7847
7848 // OSName returns an attribute KeyValue conforming to the "os.name" semantic
7849 // conventions. It represents the human readable operating system name.
7850 func OSName(val string) attribute.KeyValue {
7851 return OSNameKey.String(val)
7852 }
7853
7854 // OSVersion returns an attribute KeyValue conforming to the "os.version"
7855 // semantic conventions. It represents the version string of the operating system
7856 // as defined in [Version Attributes].
7857 //
7858 // [Version Attributes]: /docs/resource/README.md#version-attributes
7859 func OSVersion(val string) attribute.KeyValue {
7860 return OSVersionKey.String(val)
7861 }
7862
7863 // Enum values for os.type
7864 var (
7865 // Microsoft Windows
7866 // Stability: development
7867 OSTypeWindows = OSTypeKey.String("windows")
7868 // Linux
7869 // Stability: development
7870 OSTypeLinux = OSTypeKey.String("linux")
7871 // Apple Darwin
7872 // Stability: development
7873 OSTypeDarwin = OSTypeKey.String("darwin")
7874 // FreeBSD
7875 // Stability: development
7876 OSTypeFreeBSD = OSTypeKey.String("freebsd")
7877 // NetBSD
7878 // Stability: development
7879 OSTypeNetBSD = OSTypeKey.String("netbsd")
7880 // OpenBSD
7881 // Stability: development
7882 OSTypeOpenBSD = OSTypeKey.String("openbsd")
7883 // DragonFly BSD
7884 // Stability: development
7885 OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
7886 // HP-UX (Hewlett Packard Unix)
7887 // Stability: development
7888 OSTypeHPUX = OSTypeKey.String("hpux")
7889 // AIX (Advanced Interactive eXecutive)
7890 // Stability: development
7891 OSTypeAIX = OSTypeKey.String("aix")
7892 // SunOS, Oracle Solaris
7893 // Stability: development
7894 OSTypeSolaris = OSTypeKey.String("solaris")
7895 // IBM z/OS
7896 // Stability: development
7897 OSTypeZOS = OSTypeKey.String("z_os")
7898 )
7899
7900 // Namespace: otel
7901 const (
7902 // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
7903 // semantic conventions. It represents the name of the instrumentation scope - (
7904 // `InstrumentationScope.Name` in OTLP).
7905 //
7906 // Type: string
7907 // RequirementLevel: Recommended
7908 // Stability: Stable
7909 //
7910 // Examples: "io.opentelemetry.contrib.mongodb"
7911 OTelScopeNameKey = attribute.Key("otel.scope.name")
7912
7913 // OTelScopeVersionKey is the attribute Key conforming to the
7914 // "otel.scope.version" semantic conventions. It represents the version of the
7915 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
7916 //
7917 // Type: string
7918 // RequirementLevel: Recommended
7919 // Stability: Stable
7920 //
7921 // Examples: "1.0.0"
7922 OTelScopeVersionKey = attribute.Key("otel.scope.version")
7923
7924 // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
7925 // semantic conventions. It represents the name of the code, either "OK" or
7926 // "ERROR". MUST NOT be set if the status code is UNSET.
7927 //
7928 // Type: Enum
7929 // RequirementLevel: Recommended
7930 // Stability: Stable
7931 //
7932 // Examples:
7933 OTelStatusCodeKey = attribute.Key("otel.status_code")
7934
7935 // OTelStatusDescriptionKey is the attribute Key conforming to the
7936 // "otel.status_description" semantic conventions. It represents the description
7937 // of the Status if it has a value, otherwise not set.
7938 //
7939 // Type: string
7940 // RequirementLevel: Recommended
7941 // Stability: Stable
7942 //
7943 // Examples: "resource not found"
7944 OTelStatusDescriptionKey = attribute.Key("otel.status_description")
7945 )
7946
7947 // OTelScopeName returns an attribute KeyValue conforming to the
7948 // "otel.scope.name" semantic conventions. It represents the name of the
7949 // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
7950 func OTelScopeName(val string) attribute.KeyValue {
7951 return OTelScopeNameKey.String(val)
7952 }
7953
7954 // OTelScopeVersion returns an attribute KeyValue conforming to the
7955 // "otel.scope.version" semantic conventions. It represents the version of the
7956 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
7957 func OTelScopeVersion(val string) attribute.KeyValue {
7958 return OTelScopeVersionKey.String(val)
7959 }
7960
7961 // OTelStatusDescription returns an attribute KeyValue conforming to the
7962 // "otel.status_description" semantic conventions. It represents the description
7963 // of the Status if it has a value, otherwise not set.
7964 func OTelStatusDescription(val string) attribute.KeyValue {
7965 return OTelStatusDescriptionKey.String(val)
7966 }
7967
7968 // Enum values for otel.status_code
7969 var (
7970 // The operation has been validated by an Application developer or Operator to
7971 // have completed successfully.
7972 // Stability: stable
7973 OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
7974 // The operation contains an error.
7975 // Stability: stable
7976 OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
7977 )
7978
7979 // Namespace: peer
7980 const (
7981 // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic
7982 // conventions. It represents the [`service.name`] of the remote service. SHOULD
7983 // be equal to the actual `service.name` resource attribute of the remote
7984 // service if any.
7985 //
7986 // Type: string
7987 // RequirementLevel: Recommended
7988 // Stability: Development
7989 //
7990 // Examples: AuthTokenCache
7991 //
7992 // [`service.name`]: /docs/resource/README.md#service
7993 PeerServiceKey = attribute.Key("peer.service")
7994 )
7995
7996 // PeerService returns an attribute KeyValue conforming to the "peer.service"
7997 // semantic conventions. It represents the [`service.name`] of the remote
7998 // service. SHOULD be equal to the actual `service.name` resource attribute of
7999 // the remote service if any.
8000 //
8001 // [`service.name`]: /docs/resource/README.md#service
8002 func PeerService(val string) attribute.KeyValue {
8003 return PeerServiceKey.String(val)
8004 }
8005
8006 // Namespace: process
8007 const (
8008 // ProcessArgsCountKey is the attribute Key conforming to the
8009 // "process.args_count" semantic conventions. It represents the length of the
8010 // process.command_args array.
8011 //
8012 // Type: int
8013 // RequirementLevel: {"Recommended": "If `Process.Command_Args` Is Populated."}
8014 // Stability: Development
8015 //
8016 // Examples: 4
8017 // Note: This field can be useful for querying or performing bucket analysis on
8018 // how many arguments were provided to start a process. More arguments may be an
8019 // indication of suspicious activity.
8020 ProcessArgsCountKey = attribute.Key("process.args_count")
8021
8022 // ProcessCommandKey is the attribute Key conforming to the "process.command"
8023 // semantic conventions. It represents the command used to launch the process
8024 // (i.e. the command name). On Linux based systems, can be set to the zeroth
8025 // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
8026 // extracted from `GetCommandLineW`.
8027 //
8028 // Type: string
8029 // RequirementLevel: Recommended
8030 // Stability: Development
8031 //
8032 // Examples: "cmd/otelcol"
8033 ProcessCommandKey = attribute.Key("process.command")
8034
8035 // ProcessCommandArgsKey is the attribute Key conforming to the
8036 // "process.command_args" semantic conventions. It represents the all the
8037 // command arguments (including the command/executable itself) as received by
8038 // the process. On Linux-based systems (and some other Unixoid systems
8039 // supporting procfs), can be set according to the list of null-delimited
8040 // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
8041 // would be the full argv vector passed to `main`.
8042 //
8043 // Type: string[]
8044 // RequirementLevel: Recommended
8045 // Stability: Development
8046 //
8047 // Examples: "cmd/otecol", "--config=config.yaml"
8048 ProcessCommandArgsKey = attribute.Key("process.command_args")
8049
8050 // ProcessCommandLineKey is the attribute Key conforming to the
8051 // "process.command_line" semantic conventions. It represents the full command
8052 // used to launch the process as a single string representing the full command.
8053 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
8054 // you have to assemble it just for monitoring; use `process.command_args`
8055 // instead.
8056 //
8057 // Type: string
8058 // RequirementLevel: Recommended
8059 // Stability: Development
8060 //
8061 // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
8062 ProcessCommandLineKey = attribute.Key("process.command_line")
8063
8064 // ProcessContextSwitchTypeKey is the attribute Key conforming to the
8065 // "process.context_switch_type" semantic conventions. It represents the
8066 // specifies whether the context switches for this data point were voluntary or
8067 // involuntary.
8068 //
8069 // Type: Enum
8070 // RequirementLevel: Recommended
8071 // Stability: Development
8072 //
8073 // Examples:
8074 ProcessContextSwitchTypeKey = attribute.Key("process.context_switch_type")
8075
8076 // ProcessCreationTimeKey is the attribute Key conforming to the
8077 // "process.creation.time" semantic conventions. It represents the date and time
8078 // the process was created, in ISO 8601 format.
8079 //
8080 // Type: string
8081 // RequirementLevel: Recommended
8082 // Stability: Development
8083 //
8084 // Examples: "2023-11-21T09:25:34.853Z"
8085 ProcessCreationTimeKey = attribute.Key("process.creation.time")
8086
8087 // ProcessExecutableBuildIDGnuKey is the attribute Key conforming to the
8088 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
8089 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
8090 //
8091 // Type: string
8092 // RequirementLevel: Recommended
8093 // Stability: Development
8094 //
8095 // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
8096 ProcessExecutableBuildIDGnuKey = attribute.Key("process.executable.build_id.gnu")
8097
8098 // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the
8099 // "process.executable.build_id.go" semantic conventions. It represents the Go
8100 // build ID as retrieved by `go tool buildid <go executable>`.
8101 //
8102 // Type: string
8103 // RequirementLevel: Recommended
8104 // Stability: Development
8105 //
8106 // Examples:
8107 // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
8108 ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
8109
8110 // ProcessExecutableBuildIDProfilingKey is the attribute Key conforming to the
8111 // "process.executable.build_id.profiling" semantic conventions. It represents
8112 // the profiling specific build ID for executables. See the OTel specification
8113 // for Profiles for more information.
8114 //
8115 // Type: string
8116 // RequirementLevel: Recommended
8117 // Stability: Development
8118 //
8119 // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
8120 ProcessExecutableBuildIDProfilingKey = attribute.Key("process.executable.build_id.profiling")
8121
8122 // ProcessExecutableNameKey is the attribute Key conforming to the
8123 // "process.executable.name" semantic conventions. It represents the name of the
8124 // process executable. On Linux based systems, can be set to the `Name` in
8125 // `proc/[pid]/status`. On Windows, can be set to the base name of
8126 // `GetProcessImageFileNameW`.
8127 //
8128 // Type: string
8129 // RequirementLevel: Recommended
8130 // Stability: Development
8131 //
8132 // Examples: "otelcol"
8133 ProcessExecutableNameKey = attribute.Key("process.executable.name")
8134
8135 // ProcessExecutablePathKey is the attribute Key conforming to the
8136 // "process.executable.path" semantic conventions. It represents the full path
8137 // to the process executable. On Linux based systems, can be set to the target
8138 // of `proc/[pid]/exe`. On Windows, can be set to the result of
8139 // `GetProcessImageFileNameW`.
8140 //
8141 // Type: string
8142 // RequirementLevel: Recommended
8143 // Stability: Development
8144 //
8145 // Examples: "/usr/bin/cmd/otelcol"
8146 ProcessExecutablePathKey = attribute.Key("process.executable.path")
8147
8148 // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
8149 // semantic conventions. It represents the exit code of the process.
8150 //
8151 // Type: int
8152 // RequirementLevel: Recommended
8153 // Stability: Development
8154 //
8155 // Examples: 127
8156 ProcessExitCodeKey = attribute.Key("process.exit.code")
8157
8158 // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
8159 // semantic conventions. It represents the date and time the process exited, in
8160 // ISO 8601 format.
8161 //
8162 // Type: string
8163 // RequirementLevel: Recommended
8164 // Stability: Development
8165 //
8166 // Examples: "2023-11-21T09:26:12.315Z"
8167 ProcessExitTimeKey = attribute.Key("process.exit.time")
8168
8169 // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
8170 // "process.group_leader.pid" semantic conventions. It represents the PID of the
8171 // process's group leader. This is also the process group ID (PGID) of the
8172 // process.
8173 //
8174 // Type: int
8175 // RequirementLevel: Recommended
8176 // Stability: Development
8177 //
8178 // Examples: 23
8179 ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
8180
8181 // ProcessInteractiveKey is the attribute Key conforming to the
8182 // "process.interactive" semantic conventions. It represents the whether the
8183 // process is connected to an interactive shell.
8184 //
8185 // Type: boolean
8186 // RequirementLevel: Recommended
8187 // Stability: Development
8188 //
8189 // Examples:
8190 ProcessInteractiveKey = attribute.Key("process.interactive")
8191
8192 // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
8193 // semantic conventions. It represents the username of the user that owns the
8194 // process.
8195 //
8196 // Type: string
8197 // RequirementLevel: Recommended
8198 // Stability: Development
8199 //
8200 // Examples: "root"
8201 ProcessOwnerKey = attribute.Key("process.owner")
8202
8203 // ProcessPagingFaultTypeKey is the attribute Key conforming to the
8204 // "process.paging.fault_type" semantic conventions. It represents the type of
8205 // page fault for this data point. Type `major` is for major/hard page faults,
8206 // and `minor` is for minor/soft page faults.
8207 //
8208 // Type: Enum
8209 // RequirementLevel: Recommended
8210 // Stability: Development
8211 //
8212 // Examples:
8213 ProcessPagingFaultTypeKey = attribute.Key("process.paging.fault_type")
8214
8215 // ProcessParentPIDKey is the attribute Key conforming to the
8216 // "process.parent_pid" semantic conventions. It represents the parent Process
8217 // identifier (PPID).
8218 //
8219 // Type: int
8220 // RequirementLevel: Recommended
8221 // Stability: Development
8222 //
8223 // Examples: 111
8224 ProcessParentPIDKey = attribute.Key("process.parent_pid")
8225
8226 // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
8227 // conventions. It represents the process identifier (PID).
8228 //
8229 // Type: int
8230 // RequirementLevel: Recommended
8231 // Stability: Development
8232 //
8233 // Examples: 1234
8234 ProcessPIDKey = attribute.Key("process.pid")
8235
8236 // ProcessRealUserIDKey is the attribute Key conforming to the
8237 // "process.real_user.id" semantic conventions. It represents the real user ID
8238 // (RUID) of the process.
8239 //
8240 // Type: int
8241 // RequirementLevel: Recommended
8242 // Stability: Development
8243 //
8244 // Examples: 1000
8245 ProcessRealUserIDKey = attribute.Key("process.real_user.id")
8246
8247 // ProcessRealUserNameKey is the attribute Key conforming to the
8248 // "process.real_user.name" semantic conventions. It represents the username of
8249 // the real user of the process.
8250 //
8251 // Type: string
8252 // RequirementLevel: Recommended
8253 // Stability: Development
8254 //
8255 // Examples: "operator"
8256 ProcessRealUserNameKey = attribute.Key("process.real_user.name")
8257
8258 // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
8259 // "process.runtime.description" semantic conventions. It represents an
8260 // additional description about the runtime of the process, for example a
8261 // specific vendor customization of the runtime environment.
8262 //
8263 // Type: string
8264 // RequirementLevel: Recommended
8265 // Stability: Development
8266 //
8267 // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
8268 ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
8269
8270 // ProcessRuntimeNameKey is the attribute Key conforming to the
8271 // "process.runtime.name" semantic conventions. It represents the name of the
8272 // runtime of this process.
8273 //
8274 // Type: string
8275 // RequirementLevel: Recommended
8276 // Stability: Development
8277 //
8278 // Examples: "OpenJDK Runtime Environment"
8279 ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
8280
8281 // ProcessRuntimeVersionKey is the attribute Key conforming to the
8282 // "process.runtime.version" semantic conventions. It represents the version of
8283 // the runtime of this process, as returned by the runtime without modification.
8284 //
8285 // Type: string
8286 // RequirementLevel: Recommended
8287 // Stability: Development
8288 //
8289 // Examples: 14.0.2
8290 ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
8291
8292 // ProcessSavedUserIDKey is the attribute Key conforming to the
8293 // "process.saved_user.id" semantic conventions. It represents the saved user ID
8294 // (SUID) of the process.
8295 //
8296 // Type: int
8297 // RequirementLevel: Recommended
8298 // Stability: Development
8299 //
8300 // Examples: 1002
8301 ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
8302
8303 // ProcessSavedUserNameKey is the attribute Key conforming to the
8304 // "process.saved_user.name" semantic conventions. It represents the username of
8305 // the saved user.
8306 //
8307 // Type: string
8308 // RequirementLevel: Recommended
8309 // Stability: Development
8310 //
8311 // Examples: "operator"
8312 ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
8313
8314 // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
8315 // "process.session_leader.pid" semantic conventions. It represents the PID of
8316 // the process's session leader. This is also the session ID (SID) of the
8317 // process.
8318 //
8319 // Type: int
8320 // RequirementLevel: Recommended
8321 // Stability: Development
8322 //
8323 // Examples: 14
8324 ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
8325
8326 // ProcessTitleKey is the attribute Key conforming to the "process.title"
8327 // semantic conventions. It represents the process title (proctitle).
8328 //
8329 // Type: string
8330 // RequirementLevel: Recommended
8331 // Stability: Development
8332 //
8333 // Examples: "cat /etc/hostname", "xfce4-session", "bash"
8334 // Note: In many Unix-like systems, process title (proctitle), is the string
8335 // that represents the name or command line of a running process, displayed by
8336 // system monitoring tools like ps, top, and htop.
8337 ProcessTitleKey = attribute.Key("process.title")
8338
8339 // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
8340 // semantic conventions. It represents the effective user ID (EUID) of the
8341 // process.
8342 //
8343 // Type: int
8344 // RequirementLevel: Recommended
8345 // Stability: Development
8346 //
8347 // Examples: 1001
8348 ProcessUserIDKey = attribute.Key("process.user.id")
8349
8350 // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
8351 // semantic conventions. It represents the username of the effective user of the
8352 // process.
8353 //
8354 // Type: string
8355 // RequirementLevel: Recommended
8356 // Stability: Development
8357 //
8358 // Examples: "root"
8359 ProcessUserNameKey = attribute.Key("process.user.name")
8360
8361 // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
8362 // conventions. It represents the virtual process identifier.
8363 //
8364 // Type: int
8365 // RequirementLevel: Recommended
8366 // Stability: Development
8367 //
8368 // Examples: 12
8369 // Note: The process ID within a PID namespace. This is not necessarily unique
8370 // across all processes on the host but it is unique within the process
8371 // namespace that the process exists within.
8372 ProcessVpidKey = attribute.Key("process.vpid")
8373
8374 // ProcessWorkingDirectoryKey is the attribute Key conforming to the
8375 // "process.working_directory" semantic conventions. It represents the working
8376 // directory of the process.
8377 //
8378 // Type: string
8379 // RequirementLevel: Recommended
8380 // Stability: Development
8381 //
8382 // Examples: "/root"
8383 ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
8384 )
8385
8386 // ProcessArgsCount returns an attribute KeyValue conforming to the
8387 // "process.args_count" semantic conventions. It represents the length of the
8388 // process.command_args array.
8389 func ProcessArgsCount(val int) attribute.KeyValue {
8390 return ProcessArgsCountKey.Int(val)
8391 }
8392
8393 // ProcessCommand returns an attribute KeyValue conforming to the
8394 // "process.command" semantic conventions. It represents the command used to
8395 // launch the process (i.e. the command name). On Linux based systems, can be set
8396 // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
8397 // first parameter extracted from `GetCommandLineW`.
8398 func ProcessCommand(val string) attribute.KeyValue {
8399 return ProcessCommandKey.String(val)
8400 }
8401
8402 // ProcessCommandArgs returns an attribute KeyValue conforming to the
8403 // "process.command_args" semantic conventions. It represents the all the command
8404 // arguments (including the command/executable itself) as received by the
8405 // process. On Linux-based systems (and some other Unixoid systems supporting
8406 // procfs), can be set according to the list of null-delimited strings extracted
8407 // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
8408 // argv vector passed to `main`.
8409 func ProcessCommandArgs(val ...string) attribute.KeyValue {
8410 return ProcessCommandArgsKey.StringSlice(val)
8411 }
8412
8413 // ProcessCommandLine returns an attribute KeyValue conforming to the
8414 // "process.command_line" semantic conventions. It represents the full command
8415 // used to launch the process as a single string representing the full command.
8416 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
8417 // you have to assemble it just for monitoring; use `process.command_args`
8418 // instead.
8419 func ProcessCommandLine(val string) attribute.KeyValue {
8420 return ProcessCommandLineKey.String(val)
8421 }
8422
8423 // ProcessCreationTime returns an attribute KeyValue conforming to the
8424 // "process.creation.time" semantic conventions. It represents the date and time
8425 // the process was created, in ISO 8601 format.
8426 func ProcessCreationTime(val string) attribute.KeyValue {
8427 return ProcessCreationTimeKey.String(val)
8428 }
8429
8430 // ProcessExecutableBuildIDGnu returns an attribute KeyValue conforming to the
8431 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
8432 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
8433 func ProcessExecutableBuildIDGnu(val string) attribute.KeyValue {
8434 return ProcessExecutableBuildIDGnuKey.String(val)
8435 }
8436
8437 // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the
8438 // "process.executable.build_id.go" semantic conventions. It represents the Go
8439 // build ID as retrieved by `go tool buildid <go executable>`.
8440 func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
8441 return ProcessExecutableBuildIDGoKey.String(val)
8442 }
8443
8444 // ProcessExecutableBuildIDProfiling returns an attribute KeyValue conforming to
8445 // the "process.executable.build_id.profiling" semantic conventions. It
8446 // represents the profiling specific build ID for executables. See the OTel
8447 // specification for Profiles for more information.
8448 func ProcessExecutableBuildIDProfiling(val string) attribute.KeyValue {
8449 return ProcessExecutableBuildIDProfilingKey.String(val)
8450 }
8451
8452 // ProcessExecutableName returns an attribute KeyValue conforming to the
8453 // "process.executable.name" semantic conventions. It represents the name of the
8454 // process executable. On Linux based systems, can be set to the `Name` in
8455 // `proc/[pid]/status`. On Windows, can be set to the base name of
8456 // `GetProcessImageFileNameW`.
8457 func ProcessExecutableName(val string) attribute.KeyValue {
8458 return ProcessExecutableNameKey.String(val)
8459 }
8460
8461 // ProcessExecutablePath returns an attribute KeyValue conforming to the
8462 // "process.executable.path" semantic conventions. It represents the full path to
8463 // the process executable. On Linux based systems, can be set to the target of
8464 // `proc/[pid]/exe`. On Windows, can be set to the result of
8465 // `GetProcessImageFileNameW`.
8466 func ProcessExecutablePath(val string) attribute.KeyValue {
8467 return ProcessExecutablePathKey.String(val)
8468 }
8469
8470 // ProcessExitCode returns an attribute KeyValue conforming to the
8471 // "process.exit.code" semantic conventions. It represents the exit code of the
8472 // process.
8473 func ProcessExitCode(val int) attribute.KeyValue {
8474 return ProcessExitCodeKey.Int(val)
8475 }
8476
8477 // ProcessExitTime returns an attribute KeyValue conforming to the
8478 // "process.exit.time" semantic conventions. It represents the date and time the
8479 // process exited, in ISO 8601 format.
8480 func ProcessExitTime(val string) attribute.KeyValue {
8481 return ProcessExitTimeKey.String(val)
8482 }
8483
8484 // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
8485 // "process.group_leader.pid" semantic conventions. It represents the PID of the
8486 // process's group leader. This is also the process group ID (PGID) of the
8487 // process.
8488 func ProcessGroupLeaderPID(val int) attribute.KeyValue {
8489 return ProcessGroupLeaderPIDKey.Int(val)
8490 }
8491
8492 // ProcessInteractive returns an attribute KeyValue conforming to the
8493 // "process.interactive" semantic conventions. It represents the whether the
8494 // process is connected to an interactive shell.
8495 func ProcessInteractive(val bool) attribute.KeyValue {
8496 return ProcessInteractiveKey.Bool(val)
8497 }
8498
8499 // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
8500 // semantic conventions. It represents the username of the user that owns the
8501 // process.
8502 func ProcessOwner(val string) attribute.KeyValue {
8503 return ProcessOwnerKey.String(val)
8504 }
8505
8506 // ProcessParentPID returns an attribute KeyValue conforming to the
8507 // "process.parent_pid" semantic conventions. It represents the parent Process
8508 // identifier (PPID).
8509 func ProcessParentPID(val int) attribute.KeyValue {
8510 return ProcessParentPIDKey.Int(val)
8511 }
8512
8513 // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
8514 // semantic conventions. It represents the process identifier (PID).
8515 func ProcessPID(val int) attribute.KeyValue {
8516 return ProcessPIDKey.Int(val)
8517 }
8518
8519 // ProcessRealUserID returns an attribute KeyValue conforming to the
8520 // "process.real_user.id" semantic conventions. It represents the real user ID
8521 // (RUID) of the process.
8522 func ProcessRealUserID(val int) attribute.KeyValue {
8523 return ProcessRealUserIDKey.Int(val)
8524 }
8525
8526 // ProcessRealUserName returns an attribute KeyValue conforming to the
8527 // "process.real_user.name" semantic conventions. It represents the username of
8528 // the real user of the process.
8529 func ProcessRealUserName(val string) attribute.KeyValue {
8530 return ProcessRealUserNameKey.String(val)
8531 }
8532
8533 // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
8534 // "process.runtime.description" semantic conventions. It represents an
8535 // additional description about the runtime of the process, for example a
8536 // specific vendor customization of the runtime environment.
8537 func ProcessRuntimeDescription(val string) attribute.KeyValue {
8538 return ProcessRuntimeDescriptionKey.String(val)
8539 }
8540
8541 // ProcessRuntimeName returns an attribute KeyValue conforming to the
8542 // "process.runtime.name" semantic conventions. It represents the name of the
8543 // runtime of this process.
8544 func ProcessRuntimeName(val string) attribute.KeyValue {
8545 return ProcessRuntimeNameKey.String(val)
8546 }
8547
8548 // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
8549 // "process.runtime.version" semantic conventions. It represents the version of
8550 // the runtime of this process, as returned by the runtime without modification.
8551 func ProcessRuntimeVersion(val string) attribute.KeyValue {
8552 return ProcessRuntimeVersionKey.String(val)
8553 }
8554
8555 // ProcessSavedUserID returns an attribute KeyValue conforming to the
8556 // "process.saved_user.id" semantic conventions. It represents the saved user ID
8557 // (SUID) of the process.
8558 func ProcessSavedUserID(val int) attribute.KeyValue {
8559 return ProcessSavedUserIDKey.Int(val)
8560 }
8561
8562 // ProcessSavedUserName returns an attribute KeyValue conforming to the
8563 // "process.saved_user.name" semantic conventions. It represents the username of
8564 // the saved user.
8565 func ProcessSavedUserName(val string) attribute.KeyValue {
8566 return ProcessSavedUserNameKey.String(val)
8567 }
8568
8569 // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
8570 // "process.session_leader.pid" semantic conventions. It represents the PID of
8571 // the process's session leader. This is also the session ID (SID) of the
8572 // process.
8573 func ProcessSessionLeaderPID(val int) attribute.KeyValue {
8574 return ProcessSessionLeaderPIDKey.Int(val)
8575 }
8576
8577 // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
8578 // semantic conventions. It represents the process title (proctitle).
8579 func ProcessTitle(val string) attribute.KeyValue {
8580 return ProcessTitleKey.String(val)
8581 }
8582
8583 // ProcessUserID returns an attribute KeyValue conforming to the
8584 // "process.user.id" semantic conventions. It represents the effective user ID
8585 // (EUID) of the process.
8586 func ProcessUserID(val int) attribute.KeyValue {
8587 return ProcessUserIDKey.Int(val)
8588 }
8589
8590 // ProcessUserName returns an attribute KeyValue conforming to the
8591 // "process.user.name" semantic conventions. It represents the username of the
8592 // effective user of the process.
8593 func ProcessUserName(val string) attribute.KeyValue {
8594 return ProcessUserNameKey.String(val)
8595 }
8596
8597 // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
8598 // semantic conventions. It represents the virtual process identifier.
8599 func ProcessVpid(val int) attribute.KeyValue {
8600 return ProcessVpidKey.Int(val)
8601 }
8602
8603 // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
8604 // "process.working_directory" semantic conventions. It represents the working
8605 // directory of the process.
8606 func ProcessWorkingDirectory(val string) attribute.KeyValue {
8607 return ProcessWorkingDirectoryKey.String(val)
8608 }
8609
8610 // Enum values for process.context_switch_type
8611 var (
8612 // voluntary
8613 // Stability: development
8614 ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
8615 // involuntary
8616 // Stability: development
8617 ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
8618 )
8619
8620 // Enum values for process.paging.fault_type
8621 var (
8622 // major
8623 // Stability: development
8624 ProcessPagingFaultTypeMajor = ProcessPagingFaultTypeKey.String("major")
8625 // minor
8626 // Stability: development
8627 ProcessPagingFaultTypeMinor = ProcessPagingFaultTypeKey.String("minor")
8628 )
8629
8630 // Namespace: profile
8631 const (
8632 // ProfileFrameTypeKey is the attribute Key conforming to the
8633 // "profile.frame.type" semantic conventions. It represents the describes the
8634 // interpreter or compiler of a single frame.
8635 //
8636 // Type: Enum
8637 // RequirementLevel: Recommended
8638 // Stability: Development
8639 //
8640 // Examples: "cpython"
8641 ProfileFrameTypeKey = attribute.Key("profile.frame.type")
8642 )
8643
8644 // Enum values for profile.frame.type
8645 var (
8646 // [.NET]
8647 //
8648 // Stability: development
8649 //
8650 // [.NET]: https://wikipedia.org/wiki/.NET
8651 ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
8652 // [JVM]
8653 //
8654 // Stability: development
8655 //
8656 // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
8657 ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
8658 // [Kernel]
8659 //
8660 // Stability: development
8661 //
8662 // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
8663 ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
8664 // [C], [C++], [Go], [Rust]
8665 //
8666 // Stability: development
8667 //
8668 // [C]: https://wikipedia.org/wiki/C_(programming_language)
8669 // [C++]: https://wikipedia.org/wiki/C%2B%2B
8670 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
8671 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
8672 ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
8673 // [Perl]
8674 //
8675 // Stability: development
8676 //
8677 // [Perl]: https://wikipedia.org/wiki/Perl
8678 ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
8679 // [PHP]
8680 //
8681 // Stability: development
8682 //
8683 // [PHP]: https://wikipedia.org/wiki/PHP
8684 ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
8685 // [Python]
8686 //
8687 // Stability: development
8688 //
8689 // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
8690 ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
8691 // [Ruby]
8692 //
8693 // Stability: development
8694 //
8695 // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
8696 ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
8697 // [V8JS]
8698 //
8699 // Stability: development
8700 //
8701 // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
8702 ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
8703 )
8704
8705 // Namespace: rpc
8706 const (
8707 // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the
8708 // "rpc.connect_rpc.error_code" semantic conventions. It represents the
8709 // [error codes] of the Connect request. Error codes are always string values.
8710 //
8711 // Type: Enum
8712 // RequirementLevel: Recommended
8713 // Stability: Development
8714 //
8715 // Examples:
8716 //
8717 // [error codes]: https://connect.build/docs/protocol/#error-codes
8718 RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code")
8719
8720 // RPCGRPCStatusCodeKey is the attribute Key conforming to the
8721 // "rpc.grpc.status_code" semantic conventions. It represents the
8722 // [numeric status code] of the gRPC request.
8723 //
8724 // Type: Enum
8725 // RequirementLevel: Recommended
8726 // Stability: Development
8727 //
8728 // Examples:
8729 //
8730 // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md
8731 RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")
8732
8733 // RPCJsonrpcErrorCodeKey is the attribute Key conforming to the
8734 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
8735 // property of response if it is an error response.
8736 //
8737 // Type: int
8738 // RequirementLevel: Recommended
8739 // Stability: Development
8740 //
8741 // Examples: -32700, 100
8742 RPCJsonrpcErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code")
8743
8744 // RPCJsonrpcErrorMessageKey is the attribute Key conforming to the
8745 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
8746 // `error.message` property of response if it is an error response.
8747 //
8748 // Type: string
8749 // RequirementLevel: Recommended
8750 // Stability: Development
8751 //
8752 // Examples: "Parse error", "User already exists"
8753 RPCJsonrpcErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message")
8754
8755 // RPCJsonrpcRequestIDKey is the attribute Key conforming to the
8756 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id`
8757 // property of request or response. Since protocol allows id to be int, string,
8758 // `null` or missing (for notifications), value is expected to be cast to string
8759 // for simplicity. Use empty string in case of `null` value. Omit entirely if
8760 // this is a notification.
8761 //
8762 // Type: string
8763 // RequirementLevel: Recommended
8764 // Stability: Development
8765 //
8766 // Examples: "10", "request-7", ""
8767 RPCJsonrpcRequestIDKey = attribute.Key("rpc.jsonrpc.request_id")
8768
8769 // RPCJsonrpcVersionKey is the attribute Key conforming to the
8770 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol
8771 // version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0
8772 // doesn't specify this, the value can be omitted.
8773 //
8774 // Type: string
8775 // RequirementLevel: Recommended
8776 // Stability: Development
8777 //
8778 // Examples: "2.0", "1.0"
8779 RPCJsonrpcVersionKey = attribute.Key("rpc.jsonrpc.version")
8780
8781 // RPCMessageCompressedSizeKey is the attribute Key conforming to the
8782 // "rpc.message.compressed_size" semantic conventions. It represents the
8783 // compressed size of the message in bytes.
8784 //
8785 // Type: int
8786 // RequirementLevel: Recommended
8787 // Stability: Development
8788 //
8789 // Examples:
8790 RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size")
8791
8792 // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id"
8793 // semantic conventions. It represents the mUST be calculated as two different
8794 // counters starting from `1` one for sent messages and one for received
8795 // message.
8796 //
8797 // Type: int
8798 // RequirementLevel: Recommended
8799 // Stability: Development
8800 //
8801 // Examples:
8802 // Note: This way we guarantee that the values will be consistent between
8803 // different implementations.
8804 RPCMessageIDKey = attribute.Key("rpc.message.id")
8805
8806 // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type"
8807 // semantic conventions. It represents the whether this is a received or sent
8808 // message.
8809 //
8810 // Type: Enum
8811 // RequirementLevel: Recommended
8812 // Stability: Development
8813 //
8814 // Examples:
8815 RPCMessageTypeKey = attribute.Key("rpc.message.type")
8816
8817 // RPCMessageUncompressedSizeKey is the attribute Key conforming to the
8818 // "rpc.message.uncompressed_size" semantic conventions. It represents the
8819 // uncompressed size of the message in bytes.
8820 //
8821 // Type: int
8822 // RequirementLevel: Recommended
8823 // Stability: Development
8824 //
8825 // Examples:
8826 RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size")
8827
8828 // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
8829 // conventions. It represents the name of the (logical) method being called,
8830 // must be equal to the $method part in the span name.
8831 //
8832 // Type: string
8833 // RequirementLevel: Recommended
8834 // Stability: Development
8835 //
8836 // Examples: exampleMethod
8837 // Note: This is the logical name of the method from the RPC interface
8838 // perspective, which can be different from the name of any implementing
8839 // method/function. The `code.function` attribute may be used to store the
8840 // latter (e.g., method actually executing the call on the server side, RPC
8841 // client stub method on the client side).
8842 RPCMethodKey = attribute.Key("rpc.method")
8843
8844 // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic
8845 // conventions. It represents the full (logical) name of the service being
8846 // called, including its package name, if applicable.
8847 //
8848 // Type: string
8849 // RequirementLevel: Recommended
8850 // Stability: Development
8851 //
8852 // Examples: myservice.EchoService
8853 // Note: This is the logical name of the service from the RPC interface
8854 // perspective, which can be different from the name of any implementing class.
8855 // The `code.namespace` attribute may be used to store the latter (despite the
8856 // attribute name, it may include a class name; e.g., class with method actually
8857 // executing the call on the server side, RPC client stub class on the client
8858 // side).
8859 RPCServiceKey = attribute.Key("rpc.service")
8860
8861 // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic
8862 // conventions. It represents a string identifying the remoting system. See
8863 // below for a list of well-known identifiers.
8864 //
8865 // Type: Enum
8866 // RequirementLevel: Recommended
8867 // Stability: Development
8868 //
8869 // Examples:
8870 RPCSystemKey = attribute.Key("rpc.system")
8871 )
8872
8873 // RPCJsonrpcErrorCode returns an attribute KeyValue conforming to the
8874 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
8875 // property of response if it is an error response.
8876 func RPCJsonrpcErrorCode(val int) attribute.KeyValue {
8877 return RPCJsonrpcErrorCodeKey.Int(val)
8878 }
8879
8880 // RPCJsonrpcErrorMessage returns an attribute KeyValue conforming to the
8881 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
8882 // `error.message` property of response if it is an error response.
8883 func RPCJsonrpcErrorMessage(val string) attribute.KeyValue {
8884 return RPCJsonrpcErrorMessageKey.String(val)
8885 }
8886
8887 // RPCJsonrpcRequestID returns an attribute KeyValue conforming to the
8888 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property
8889 // of request or response. Since protocol allows id to be int, string, `null` or
8890 // missing (for notifications), value is expected to be cast to string for
8891 // simplicity. Use empty string in case of `null` value. Omit entirely if this is
8892 // a notification.
8893 func RPCJsonrpcRequestID(val string) attribute.KeyValue {
8894 return RPCJsonrpcRequestIDKey.String(val)
8895 }
8896
8897 // RPCJsonrpcVersion returns an attribute KeyValue conforming to the
8898 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol version
8899 // as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't
8900 // specify this, the value can be omitted.
8901 func RPCJsonrpcVersion(val string) attribute.KeyValue {
8902 return RPCJsonrpcVersionKey.String(val)
8903 }
8904
8905 // RPCMessageCompressedSize returns an attribute KeyValue conforming to the
8906 // "rpc.message.compressed_size" semantic conventions. It represents the
8907 // compressed size of the message in bytes.
8908 func RPCMessageCompressedSize(val int) attribute.KeyValue {
8909 return RPCMessageCompressedSizeKey.Int(val)
8910 }
8911
8912 // RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id"
8913 // semantic conventions. It represents the mUST be calculated as two different
8914 // counters starting from `1` one for sent messages and one for received message.
8915 func RPCMessageID(val int) attribute.KeyValue {
8916 return RPCMessageIDKey.Int(val)
8917 }
8918
8919 // RPCMessageUncompressedSize returns an attribute KeyValue conforming to the
8920 // "rpc.message.uncompressed_size" semantic conventions. It represents the
8921 // uncompressed size of the message in bytes.
8922 func RPCMessageUncompressedSize(val int) attribute.KeyValue {
8923 return RPCMessageUncompressedSizeKey.Int(val)
8924 }
8925
8926 // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
8927 // semantic conventions. It represents the name of the (logical) method being
8928 // called, must be equal to the $method part in the span name.
8929 func RPCMethod(val string) attribute.KeyValue {
8930 return RPCMethodKey.String(val)
8931 }
8932
8933 // RPCService returns an attribute KeyValue conforming to the "rpc.service"
8934 // semantic conventions. It represents the full (logical) name of the service
8935 // being called, including its package name, if applicable.
8936 func RPCService(val string) attribute.KeyValue {
8937 return RPCServiceKey.String(val)
8938 }
8939
8940 // Enum values for rpc.connect_rpc.error_code
8941 var (
8942 // cancelled
8943 // Stability: development
8944 RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled")
8945 // unknown
8946 // Stability: development
8947 RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown")
8948 // invalid_argument
8949 // Stability: development
8950 RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument")
8951 // deadline_exceeded
8952 // Stability: development
8953 RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded")
8954 // not_found
8955 // Stability: development
8956 RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found")
8957 // already_exists
8958 // Stability: development
8959 RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists")
8960 // permission_denied
8961 // Stability: development
8962 RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied")
8963 // resource_exhausted
8964 // Stability: development
8965 RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted")
8966 // failed_precondition
8967 // Stability: development
8968 RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition")
8969 // aborted
8970 // Stability: development
8971 RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted")
8972 // out_of_range
8973 // Stability: development
8974 RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range")
8975 // unimplemented
8976 // Stability: development
8977 RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented")
8978 // internal
8979 // Stability: development
8980 RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal")
8981 // unavailable
8982 // Stability: development
8983 RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable")
8984 // data_loss
8985 // Stability: development
8986 RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss")
8987 // unauthenticated
8988 // Stability: development
8989 RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated")
8990 )
8991
8992 // Enum values for rpc.grpc.status_code
8993 var (
8994 // OK
8995 // Stability: development
8996 RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0)
8997 // CANCELLED
8998 // Stability: development
8999 RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1)
9000 // UNKNOWN
9001 // Stability: development
9002 RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2)
9003 // INVALID_ARGUMENT
9004 // Stability: development
9005 RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3)
9006 // DEADLINE_EXCEEDED
9007 // Stability: development
9008 RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4)
9009 // NOT_FOUND
9010 // Stability: development
9011 RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5)
9012 // ALREADY_EXISTS
9013 // Stability: development
9014 RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6)
9015 // PERMISSION_DENIED
9016 // Stability: development
9017 RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7)
9018 // RESOURCE_EXHAUSTED
9019 // Stability: development
9020 RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8)
9021 // FAILED_PRECONDITION
9022 // Stability: development
9023 RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9)
9024 // ABORTED
9025 // Stability: development
9026 RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10)
9027 // OUT_OF_RANGE
9028 // Stability: development
9029 RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11)
9030 // UNIMPLEMENTED
9031 // Stability: development
9032 RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12)
9033 // INTERNAL
9034 // Stability: development
9035 RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13)
9036 // UNAVAILABLE
9037 // Stability: development
9038 RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14)
9039 // DATA_LOSS
9040 // Stability: development
9041 RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15)
9042 // UNAUTHENTICATED
9043 // Stability: development
9044 RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16)
9045 )
9046
9047 // Enum values for rpc.message.type
9048 var (
9049 // sent
9050 // Stability: development
9051 RPCMessageTypeSent = RPCMessageTypeKey.String("SENT")
9052 // received
9053 // Stability: development
9054 RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")
9055 )
9056
9057 // Enum values for rpc.system
9058 var (
9059 // gRPC
9060 // Stability: development
9061 RPCSystemGRPC = RPCSystemKey.String("grpc")
9062 // Java RMI
9063 // Stability: development
9064 RPCSystemJavaRmi = RPCSystemKey.String("java_rmi")
9065 // .NET WCF
9066 // Stability: development
9067 RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf")
9068 // Apache Dubbo
9069 // Stability: development
9070 RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo")
9071 // Connect RPC
9072 // Stability: development
9073 RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc")
9074 )
9075
9076 // Namespace: server
9077 const (
9078 // ServerAddressKey is the attribute Key conforming to the "server.address"
9079 // semantic conventions. It represents the server domain name if available
9080 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
9081 //
9082 // Type: string
9083 // RequirementLevel: Recommended
9084 // Stability: Stable
9085 //
9086 // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
9087 // Note: When observed from the client side, and when communicating through an
9088 // intermediary, `server.address` SHOULD represent the server address behind any
9089 // intermediaries, for example proxies, if it's available.
9090 ServerAddressKey = attribute.Key("server.address")
9091
9092 // ServerPortKey is the attribute Key conforming to the "server.port" semantic
9093 // conventions. It represents the server port number.
9094 //
9095 // Type: int
9096 // RequirementLevel: Recommended
9097 // Stability: Stable
9098 //
9099 // Examples: 80, 8080, 443
9100 // Note: When observed from the client side, and when communicating through an
9101 // intermediary, `server.port` SHOULD represent the server port behind any
9102 // intermediaries, for example proxies, if it's available.
9103 ServerPortKey = attribute.Key("server.port")
9104 )
9105
9106 // ServerAddress returns an attribute KeyValue conforming to the "server.address"
9107 // semantic conventions. It represents the server domain name if available
9108 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
9109 func ServerAddress(val string) attribute.KeyValue {
9110 return ServerAddressKey.String(val)
9111 }
9112
9113 // ServerPort returns an attribute KeyValue conforming to the "server.port"
9114 // semantic conventions. It represents the server port number.
9115 func ServerPort(val int) attribute.KeyValue {
9116 return ServerPortKey.Int(val)
9117 }
9118
9119 // Namespace: service
9120 const (
9121 // ServiceInstanceIDKey is the attribute Key conforming to the
9122 // "service.instance.id" semantic conventions. It represents the string ID of
9123 // the service instance.
9124 //
9125 // Type: string
9126 // RequirementLevel: Recommended
9127 // Stability: Development
9128 //
9129 // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
9130 // Note: MUST be unique for each instance of the same
9131 // `service.namespace,service.name` pair (in other words
9132 // `service.namespace,service.name,service.instance.id` triplet MUST be globally
9133 // unique). The ID helps to
9134 // distinguish instances of the same service that exist at the same time (e.g.
9135 // instances of a horizontally scaled
9136 // service).
9137 //
9138 // Implementations, such as SDKs, are recommended to generate a random Version 1
9139 // or Version 4 [RFC
9140 // 4122] UUID, but are free to use an inherent unique ID as
9141 // the source of
9142 // this value if stability is desirable. In that case, the ID SHOULD be used as
9143 // source of a UUID Version 5 and
9144 // SHOULD use the following UUID as the namespace:
9145 // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
9146 //
9147 // UUIDs are typically recommended, as only an opaque value for the purposes of
9148 // identifying a service instance is
9149 // needed. Similar to what can be seen in the man page for the
9150 // [`/etc/machine-id`] file, the underlying
9151 // data, such as pod name and namespace should be treated as confidential, being
9152 // the user's choice to expose it
9153 // or not via another resource attribute.
9154 //
9155 // For applications running behind an application server (like unicorn), we do
9156 // not recommend using one identifier
9157 // for all processes participating in the application. Instead, it's recommended
9158 // each division (e.g. a worker
9159 // thread in unicorn) to have its own instance.id.
9160 //
9161 // It's not recommended for a Collector to set `service.instance.id` if it can't
9162 // unambiguously determine the
9163 // service instance that is generating that telemetry. For instance, creating an
9164 // UUID based on `pod.name` will
9165 // likely be wrong, as the Collector might not know from which container within
9166 // that pod the telemetry originated.
9167 // However, Collectors can set the `service.instance.id` if they can
9168 // unambiguously determine the service instance
9169 // for that telemetry. This is typically the case for scraping receivers, as
9170 // they know the target address and
9171 // port.
9172 //
9173 // [RFC
9174 // 4122]: https://www.ietf.org/rfc/rfc4122.txt
9175 // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/machine-id.html
9176 ServiceInstanceIDKey = attribute.Key("service.instance.id")
9177
9178 // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
9179 // conventions. It represents the logical name of the service.
9180 //
9181 // Type: string
9182 // RequirementLevel: Recommended
9183 // Stability: Stable
9184 //
9185 // Examples: "shoppingcart"
9186 // Note: MUST be the same for all instances of horizontally scaled services. If
9187 // the value was not specified, SDKs MUST fallback to `unknown_service:`
9188 // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
9189 // If `process.executable.name` is not available, the value MUST be set to
9190 // `unknown_service`.
9191 //
9192 // [`process.executable.name`]: process.md
9193 ServiceNameKey = attribute.Key("service.name")
9194
9195 // ServiceNamespaceKey is the attribute Key conforming to the
9196 // "service.namespace" semantic conventions. It represents a namespace for
9197 // `service.name`.
9198 //
9199 // Type: string
9200 // RequirementLevel: Recommended
9201 // Stability: Development
9202 //
9203 // Examples: "Shop"
9204 // Note: A string value having a meaning that helps to distinguish a group of
9205 // services, for example the team name that owns a group of services.
9206 // `service.name` is expected to be unique within the same namespace. If
9207 // `service.namespace` is not specified in the Resource then `service.name` is
9208 // expected to be unique for all services that have no explicit namespace
9209 // defined (so the empty/unspecified namespace is simply one more valid
9210 // namespace). Zero-length namespace string is assumed equal to unspecified
9211 // namespace.
9212 ServiceNamespaceKey = attribute.Key("service.namespace")
9213
9214 // ServiceVersionKey is the attribute Key conforming to the "service.version"
9215 // semantic conventions. It represents the version string of the service API or
9216 // implementation. The format is not defined by these conventions.
9217 //
9218 // Type: string
9219 // RequirementLevel: Recommended
9220 // Stability: Stable
9221 //
9222 // Examples: "2.0.0", "a01dbef8a"
9223 ServiceVersionKey = attribute.Key("service.version")
9224 )
9225
9226 // ServiceInstanceID returns an attribute KeyValue conforming to the
9227 // "service.instance.id" semantic conventions. It represents the string ID of the
9228 // service instance.
9229 func ServiceInstanceID(val string) attribute.KeyValue {
9230 return ServiceInstanceIDKey.String(val)
9231 }
9232
9233 // ServiceName returns an attribute KeyValue conforming to the "service.name"
9234 // semantic conventions. It represents the logical name of the service.
9235 func ServiceName(val string) attribute.KeyValue {
9236 return ServiceNameKey.String(val)
9237 }
9238
9239 // ServiceNamespace returns an attribute KeyValue conforming to the
9240 // "service.namespace" semantic conventions. It represents a namespace for
9241 // `service.name`.
9242 func ServiceNamespace(val string) attribute.KeyValue {
9243 return ServiceNamespaceKey.String(val)
9244 }
9245
9246 // ServiceVersion returns an attribute KeyValue conforming to the
9247 // "service.version" semantic conventions. It represents the version string of
9248 // the service API or implementation. The format is not defined by these
9249 // conventions.
9250 func ServiceVersion(val string) attribute.KeyValue {
9251 return ServiceVersionKey.String(val)
9252 }
9253
9254 // Namespace: session
9255 const (
9256 // SessionIDKey is the attribute Key conforming to the "session.id" semantic
9257 // conventions. It represents a unique id to identify a session.
9258 //
9259 // Type: string
9260 // RequirementLevel: Recommended
9261 // Stability: Development
9262 //
9263 // Examples: 00112233-4455-6677-8899-aabbccddeeff
9264 SessionIDKey = attribute.Key("session.id")
9265
9266 // SessionPreviousIDKey is the attribute Key conforming to the
9267 // "session.previous_id" semantic conventions. It represents the previous
9268 // `session.id` for this user, when known.
9269 //
9270 // Type: string
9271 // RequirementLevel: Recommended
9272 // Stability: Development
9273 //
9274 // Examples: 00112233-4455-6677-8899-aabbccddeeff
9275 SessionPreviousIDKey = attribute.Key("session.previous_id")
9276 )
9277
9278 // SessionID returns an attribute KeyValue conforming to the "session.id"
9279 // semantic conventions. It represents a unique id to identify a session.
9280 func SessionID(val string) attribute.KeyValue {
9281 return SessionIDKey.String(val)
9282 }
9283
9284 // SessionPreviousID returns an attribute KeyValue conforming to the
9285 // "session.previous_id" semantic conventions. It represents the previous
9286 // `session.id` for this user, when known.
9287 func SessionPreviousID(val string) attribute.KeyValue {
9288 return SessionPreviousIDKey.String(val)
9289 }
9290
9291 // Namespace: signalr
9292 const (
9293 // SignalrConnectionStatusKey is the attribute Key conforming to the
9294 // "signalr.connection.status" semantic conventions. It represents the signalR
9295 // HTTP connection closure status.
9296 //
9297 // Type: Enum
9298 // RequirementLevel: Recommended
9299 // Stability: Stable
9300 //
9301 // Examples: "app_shutdown", "timeout"
9302 SignalrConnectionStatusKey = attribute.Key("signalr.connection.status")
9303
9304 // SignalrTransportKey is the attribute Key conforming to the
9305 // "signalr.transport" semantic conventions. It represents the
9306 // [SignalR transport type].
9307 //
9308 // Type: Enum
9309 // RequirementLevel: Recommended
9310 // Stability: Stable
9311 //
9312 // Examples: "web_sockets", "long_polling"
9313 //
9314 // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
9315 SignalrTransportKey = attribute.Key("signalr.transport")
9316 )
9317
9318 // Enum values for signalr.connection.status
9319 var (
9320 // The connection was closed normally.
9321 // Stability: stable
9322 SignalrConnectionStatusNormalClosure = SignalrConnectionStatusKey.String("normal_closure")
9323 // The connection was closed due to a timeout.
9324 // Stability: stable
9325 SignalrConnectionStatusTimeout = SignalrConnectionStatusKey.String("timeout")
9326 // The connection was closed because the app is shutting down.
9327 // Stability: stable
9328 SignalrConnectionStatusAppShutdown = SignalrConnectionStatusKey.String("app_shutdown")
9329 )
9330
9331 // Enum values for signalr.transport
9332 var (
9333 // ServerSentEvents protocol
9334 // Stability: stable
9335 SignalrTransportServerSentEvents = SignalrTransportKey.String("server_sent_events")
9336 // LongPolling protocol
9337 // Stability: stable
9338 SignalrTransportLongPolling = SignalrTransportKey.String("long_polling")
9339 // WebSockets protocol
9340 // Stability: stable
9341 SignalrTransportWebSockets = SignalrTransportKey.String("web_sockets")
9342 )
9343
9344 // Namespace: source
9345 const (
9346 // SourceAddressKey is the attribute Key conforming to the "source.address"
9347 // semantic conventions. It represents the source address - domain name if
9348 // available without reverse DNS lookup; otherwise, IP address or Unix domain
9349 // socket name.
9350 //
9351 // Type: string
9352 // RequirementLevel: Recommended
9353 // Stability: Development
9354 //
9355 // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
9356 // Note: When observed from the destination side, and when communicating through
9357 // an intermediary, `source.address` SHOULD represent the source address behind
9358 // any intermediaries, for example proxies, if it's available.
9359 SourceAddressKey = attribute.Key("source.address")
9360
9361 // SourcePortKey is the attribute Key conforming to the "source.port" semantic
9362 // conventions. It represents the source port number.
9363 //
9364 // Type: int
9365 // RequirementLevel: Recommended
9366 // Stability: Development
9367 //
9368 // Examples: 3389, 2888
9369 SourcePortKey = attribute.Key("source.port")
9370 )
9371
9372 // SourceAddress returns an attribute KeyValue conforming to the "source.address"
9373 // semantic conventions. It represents the source address - domain name if
9374 // available without reverse DNS lookup; otherwise, IP address or Unix domain
9375 // socket name.
9376 func SourceAddress(val string) attribute.KeyValue {
9377 return SourceAddressKey.String(val)
9378 }
9379
9380 // SourcePort returns an attribute KeyValue conforming to the "source.port"
9381 // semantic conventions. It represents the source port number.
9382 func SourcePort(val int) attribute.KeyValue {
9383 return SourcePortKey.Int(val)
9384 }
9385
9386 // Namespace: system
9387 const (
9388 // SystemCPULogicalNumberKey is the attribute Key conforming to the
9389 // "system.cpu.logical_number" semantic conventions. It represents the logical
9390 // CPU number [0..n-1].
9391 //
9392 // Type: int
9393 // RequirementLevel: Recommended
9394 // Stability: Development
9395 //
9396 // Examples: 1
9397 SystemCPULogicalNumberKey = attribute.Key("system.cpu.logical_number")
9398
9399 // SystemDeviceKey is the attribute Key conforming to the "system.device"
9400 // semantic conventions. It represents the device identifier.
9401 //
9402 // Type: string
9403 // RequirementLevel: Recommended
9404 // Stability: Development
9405 //
9406 // Examples: "(identifier)"
9407 SystemDeviceKey = attribute.Key("system.device")
9408
9409 // SystemFilesystemModeKey is the attribute Key conforming to the
9410 // "system.filesystem.mode" semantic conventions. It represents the filesystem
9411 // mode.
9412 //
9413 // Type: string
9414 // RequirementLevel: Recommended
9415 // Stability: Development
9416 //
9417 // Examples: "rw, ro"
9418 SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
9419
9420 // SystemFilesystemMountpointKey is the attribute Key conforming to the
9421 // "system.filesystem.mountpoint" semantic conventions. It represents the
9422 // filesystem mount path.
9423 //
9424 // Type: string
9425 // RequirementLevel: Recommended
9426 // Stability: Development
9427 //
9428 // Examples: "/mnt/data"
9429 SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
9430
9431 // SystemFilesystemStateKey is the attribute Key conforming to the
9432 // "system.filesystem.state" semantic conventions. It represents the filesystem
9433 // state.
9434 //
9435 // Type: Enum
9436 // RequirementLevel: Recommended
9437 // Stability: Development
9438 //
9439 // Examples: "used"
9440 SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
9441
9442 // SystemFilesystemTypeKey is the attribute Key conforming to the
9443 // "system.filesystem.type" semantic conventions. It represents the filesystem
9444 // type.
9445 //
9446 // Type: Enum
9447 // RequirementLevel: Recommended
9448 // Stability: Development
9449 //
9450 // Examples: "ext4"
9451 SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
9452
9453 // SystemMemoryStateKey is the attribute Key conforming to the
9454 // "system.memory.state" semantic conventions. It represents the memory state.
9455 //
9456 // Type: Enum
9457 // RequirementLevel: Recommended
9458 // Stability: Development
9459 //
9460 // Examples: "free", "cached"
9461 SystemMemoryStateKey = attribute.Key("system.memory.state")
9462
9463 // SystemNetworkStateKey is the attribute Key conforming to the
9464 // "system.network.state" semantic conventions. It represents a stateless
9465 // protocol MUST NOT set this attribute.
9466 //
9467 // Type: Enum
9468 // RequirementLevel: Recommended
9469 // Stability: Development
9470 //
9471 // Examples: "close_wait"
9472 SystemNetworkStateKey = attribute.Key("system.network.state")
9473
9474 // SystemPagingDirectionKey is the attribute Key conforming to the
9475 // "system.paging.direction" semantic conventions. It represents the paging
9476 // access direction.
9477 //
9478 // Type: Enum
9479 // RequirementLevel: Recommended
9480 // Stability: Development
9481 //
9482 // Examples: "in"
9483 SystemPagingDirectionKey = attribute.Key("system.paging.direction")
9484
9485 // SystemPagingStateKey is the attribute Key conforming to the
9486 // "system.paging.state" semantic conventions. It represents the memory paging
9487 // state.
9488 //
9489 // Type: Enum
9490 // RequirementLevel: Recommended
9491 // Stability: Development
9492 //
9493 // Examples: "free"
9494 SystemPagingStateKey = attribute.Key("system.paging.state")
9495
9496 // SystemPagingTypeKey is the attribute Key conforming to the
9497 // "system.paging.type" semantic conventions. It represents the memory paging
9498 // type.
9499 //
9500 // Type: Enum
9501 // RequirementLevel: Recommended
9502 // Stability: Development
9503 //
9504 // Examples: "minor"
9505 SystemPagingTypeKey = attribute.Key("system.paging.type")
9506
9507 // SystemProcessStatusKey is the attribute Key conforming to the
9508 // "system.process.status" semantic conventions. It represents the process
9509 // state, e.g., [Linux Process State Codes].
9510 //
9511 // Type: Enum
9512 // RequirementLevel: Recommended
9513 // Stability: Development
9514 //
9515 // Examples: "running"
9516 //
9517 // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
9518 SystemProcessStatusKey = attribute.Key("system.process.status")
9519 )
9520
9521 // SystemCPULogicalNumber returns an attribute KeyValue conforming to the
9522 // "system.cpu.logical_number" semantic conventions. It represents the logical
9523 // CPU number [0..n-1].
9524 func SystemCPULogicalNumber(val int) attribute.KeyValue {
9525 return SystemCPULogicalNumberKey.Int(val)
9526 }
9527
9528 // SystemDevice returns an attribute KeyValue conforming to the "system.device"
9529 // semantic conventions. It represents the device identifier.
9530 func SystemDevice(val string) attribute.KeyValue {
9531 return SystemDeviceKey.String(val)
9532 }
9533
9534 // SystemFilesystemMode returns an attribute KeyValue conforming to the
9535 // "system.filesystem.mode" semantic conventions. It represents the filesystem
9536 // mode.
9537 func SystemFilesystemMode(val string) attribute.KeyValue {
9538 return SystemFilesystemModeKey.String(val)
9539 }
9540
9541 // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
9542 // "system.filesystem.mountpoint" semantic conventions. It represents the
9543 // filesystem mount path.
9544 func SystemFilesystemMountpoint(val string) attribute.KeyValue {
9545 return SystemFilesystemMountpointKey.String(val)
9546 }
9547
9548 // Enum values for system.filesystem.state
9549 var (
9550 // used
9551 // Stability: development
9552 SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
9553 // free
9554 // Stability: development
9555 SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
9556 // reserved
9557 // Stability: development
9558 SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
9559 )
9560
9561 // Enum values for system.filesystem.type
9562 var (
9563 // fat32
9564 // Stability: development
9565 SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
9566 // exfat
9567 // Stability: development
9568 SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
9569 // ntfs
9570 // Stability: development
9571 SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
9572 // refs
9573 // Stability: development
9574 SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
9575 // hfsplus
9576 // Stability: development
9577 SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
9578 // ext4
9579 // Stability: development
9580 SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
9581 )
9582
9583 // Enum values for system.memory.state
9584 var (
9585 // used
9586 // Stability: development
9587 SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
9588 // free
9589 // Stability: development
9590 SystemMemoryStateFree = SystemMemoryStateKey.String("free")
9591 // Deprecated: Removed, report shared memory usage with
9592 // `metric.system.memory.shared` metric.
9593 SystemMemoryStateShared = SystemMemoryStateKey.String("shared")
9594 // buffers
9595 // Stability: development
9596 SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
9597 // cached
9598 // Stability: development
9599 SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
9600 )
9601
9602 // Enum values for system.network.state
9603 var (
9604 // close
9605 // Stability: development
9606 SystemNetworkStateClose = SystemNetworkStateKey.String("close")
9607 // close_wait
9608 // Stability: development
9609 SystemNetworkStateCloseWait = SystemNetworkStateKey.String("close_wait")
9610 // closing
9611 // Stability: development
9612 SystemNetworkStateClosing = SystemNetworkStateKey.String("closing")
9613 // delete
9614 // Stability: development
9615 SystemNetworkStateDelete = SystemNetworkStateKey.String("delete")
9616 // established
9617 // Stability: development
9618 SystemNetworkStateEstablished = SystemNetworkStateKey.String("established")
9619 // fin_wait_1
9620 // Stability: development
9621 SystemNetworkStateFinWait1 = SystemNetworkStateKey.String("fin_wait_1")
9622 // fin_wait_2
9623 // Stability: development
9624 SystemNetworkStateFinWait2 = SystemNetworkStateKey.String("fin_wait_2")
9625 // last_ack
9626 // Stability: development
9627 SystemNetworkStateLastAck = SystemNetworkStateKey.String("last_ack")
9628 // listen
9629 // Stability: development
9630 SystemNetworkStateListen = SystemNetworkStateKey.String("listen")
9631 // syn_recv
9632 // Stability: development
9633 SystemNetworkStateSynRecv = SystemNetworkStateKey.String("syn_recv")
9634 // syn_sent
9635 // Stability: development
9636 SystemNetworkStateSynSent = SystemNetworkStateKey.String("syn_sent")
9637 // time_wait
9638 // Stability: development
9639 SystemNetworkStateTimeWait = SystemNetworkStateKey.String("time_wait")
9640 )
9641
9642 // Enum values for system.paging.direction
9643 var (
9644 // in
9645 // Stability: development
9646 SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
9647 // out
9648 // Stability: development
9649 SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
9650 )
9651
9652 // Enum values for system.paging.state
9653 var (
9654 // used
9655 // Stability: development
9656 SystemPagingStateUsed = SystemPagingStateKey.String("used")
9657 // free
9658 // Stability: development
9659 SystemPagingStateFree = SystemPagingStateKey.String("free")
9660 )
9661
9662 // Enum values for system.paging.type
9663 var (
9664 // major
9665 // Stability: development
9666 SystemPagingTypeMajor = SystemPagingTypeKey.String("major")
9667 // minor
9668 // Stability: development
9669 SystemPagingTypeMinor = SystemPagingTypeKey.String("minor")
9670 )
9671
9672 // Enum values for system.process.status
9673 var (
9674 // running
9675 // Stability: development
9676 SystemProcessStatusRunning = SystemProcessStatusKey.String("running")
9677 // sleeping
9678 // Stability: development
9679 SystemProcessStatusSleeping = SystemProcessStatusKey.String("sleeping")
9680 // stopped
9681 // Stability: development
9682 SystemProcessStatusStopped = SystemProcessStatusKey.String("stopped")
9683 // defunct
9684 // Stability: development
9685 SystemProcessStatusDefunct = SystemProcessStatusKey.String("defunct")
9686 )
9687
9688 // Namespace: telemetry
9689 const (
9690 // TelemetryDistroNameKey is the attribute Key conforming to the
9691 // "telemetry.distro.name" semantic conventions. It represents the name of the
9692 // auto instrumentation agent or distribution, if used.
9693 //
9694 // Type: string
9695 // RequirementLevel: Recommended
9696 // Stability: Development
9697 //
9698 // Examples: "parts-unlimited-java"
9699 // Note: Official auto instrumentation agents and distributions SHOULD set the
9700 // `telemetry.distro.name` attribute to
9701 // a string starting with `opentelemetry-`, e.g.
9702 // `opentelemetry-java-instrumentation`.
9703 TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
9704
9705 // TelemetryDistroVersionKey is the attribute Key conforming to the
9706 // "telemetry.distro.version" semantic conventions. It represents the version
9707 // string of the auto instrumentation agent or distribution, if used.
9708 //
9709 // Type: string
9710 // RequirementLevel: Recommended
9711 // Stability: Development
9712 //
9713 // Examples: "1.2.3"
9714 TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
9715
9716 // TelemetrySDKLanguageKey is the attribute Key conforming to the
9717 // "telemetry.sdk.language" semantic conventions. It represents the language of
9718 // the telemetry SDK.
9719 //
9720 // Type: Enum
9721 // RequirementLevel: Required
9722 // Stability: Stable
9723 //
9724 // Examples:
9725 TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
9726
9727 // TelemetrySDKNameKey is the attribute Key conforming to the
9728 // "telemetry.sdk.name" semantic conventions. It represents the name of the
9729 // telemetry SDK as defined above.
9730 //
9731 // Type: string
9732 // RequirementLevel: Required
9733 // Stability: Stable
9734 //
9735 // Examples: "opentelemetry"
9736 // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
9737 // `opentelemetry`.
9738 // If another SDK, like a fork or a vendor-provided implementation, is used,
9739 // this SDK MUST set the
9740 // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
9741 // this SDK's main entry point
9742 // or another suitable identifier depending on the language.
9743 // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
9744 // All custom identifiers SHOULD be stable across different versions of an
9745 // implementation.
9746 TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
9747
9748 // TelemetrySDKVersionKey is the attribute Key conforming to the
9749 // "telemetry.sdk.version" semantic conventions. It represents the version
9750 // string of the telemetry SDK.
9751 //
9752 // Type: string
9753 // RequirementLevel: Required
9754 // Stability: Stable
9755 //
9756 // Examples: "1.2.3"
9757 TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
9758 )
9759
9760 // TelemetryDistroName returns an attribute KeyValue conforming to the
9761 // "telemetry.distro.name" semantic conventions. It represents the name of the
9762 // auto instrumentation agent or distribution, if used.
9763 func TelemetryDistroName(val string) attribute.KeyValue {
9764 return TelemetryDistroNameKey.String(val)
9765 }
9766
9767 // TelemetryDistroVersion returns an attribute KeyValue conforming to the
9768 // "telemetry.distro.version" semantic conventions. It represents the version
9769 // string of the auto instrumentation agent or distribution, if used.
9770 func TelemetryDistroVersion(val string) attribute.KeyValue {
9771 return TelemetryDistroVersionKey.String(val)
9772 }
9773
9774 // TelemetrySDKName returns an attribute KeyValue conforming to the
9775 // "telemetry.sdk.name" semantic conventions. It represents the name of the
9776 // telemetry SDK as defined above.
9777 func TelemetrySDKName(val string) attribute.KeyValue {
9778 return TelemetrySDKNameKey.String(val)
9779 }
9780
9781 // TelemetrySDKVersion returns an attribute KeyValue conforming to the
9782 // "telemetry.sdk.version" semantic conventions. It represents the version string
9783 // of the telemetry SDK.
9784 func TelemetrySDKVersion(val string) attribute.KeyValue {
9785 return TelemetrySDKVersionKey.String(val)
9786 }
9787
9788 // Enum values for telemetry.sdk.language
9789 var (
9790 // cpp
9791 // Stability: stable
9792 TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
9793 // dotnet
9794 // Stability: stable
9795 TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
9796 // erlang
9797 // Stability: stable
9798 TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
9799 // go
9800 // Stability: stable
9801 TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
9802 // java
9803 // Stability: stable
9804 TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
9805 // nodejs
9806 // Stability: stable
9807 TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
9808 // php
9809 // Stability: stable
9810 TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
9811 // python
9812 // Stability: stable
9813 TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
9814 // ruby
9815 // Stability: stable
9816 TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
9817 // rust
9818 // Stability: stable
9819 TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
9820 // swift
9821 // Stability: stable
9822 TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
9823 // webjs
9824 // Stability: stable
9825 TelemetrySDKLanguageWebjs = TelemetrySDKLanguageKey.String("webjs")
9826 )
9827
9828 // Namespace: test
9829 const (
9830 // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
9831 // semantic conventions. It represents the fully qualified human readable name
9832 // of the [test case].
9833 //
9834 // Type: string
9835 // RequirementLevel: Recommended
9836 // Stability: Development
9837 //
9838 // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
9839 // "ExampleTestCase1_test1"
9840 //
9841 // [test case]: https://en.wikipedia.org/wiki/Test_case
9842 TestCaseNameKey = attribute.Key("test.case.name")
9843
9844 // TestCaseResultStatusKey is the attribute Key conforming to the
9845 // "test.case.result.status" semantic conventions. It represents the status of
9846 // the actual test case result from test execution.
9847 //
9848 // Type: Enum
9849 // RequirementLevel: Recommended
9850 // Stability: Development
9851 //
9852 // Examples: "pass", "fail"
9853 TestCaseResultStatusKey = attribute.Key("test.case.result.status")
9854
9855 // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
9856 // semantic conventions. It represents the human readable name of a [test suite]
9857 // .
9858 //
9859 // Type: string
9860 // RequirementLevel: Recommended
9861 // Stability: Development
9862 //
9863 // Examples: "TestSuite1"
9864 //
9865 // [test suite]: https://en.wikipedia.org/wiki/Test_suite
9866 TestSuiteNameKey = attribute.Key("test.suite.name")
9867
9868 // TestSuiteRunStatusKey is the attribute Key conforming to the
9869 // "test.suite.run.status" semantic conventions. It represents the status of the
9870 // test suite run.
9871 //
9872 // Type: Enum
9873 // RequirementLevel: Recommended
9874 // Stability: Development
9875 //
9876 // Examples: "success", "failure", "skipped", "aborted", "timed_out",
9877 // "in_progress"
9878 TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
9879 )
9880
9881 // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
9882 // semantic conventions. It represents the fully qualified human readable name of
9883 // the [test case].
9884 //
9885 // [test case]: https://en.wikipedia.org/wiki/Test_case
9886 func TestCaseName(val string) attribute.KeyValue {
9887 return TestCaseNameKey.String(val)
9888 }
9889
9890 // TestSuiteName returns an attribute KeyValue conforming to the
9891 // "test.suite.name" semantic conventions. It represents the human readable name
9892 // of a [test suite].
9893 //
9894 // [test suite]: https://en.wikipedia.org/wiki/Test_suite
9895 func TestSuiteName(val string) attribute.KeyValue {
9896 return TestSuiteNameKey.String(val)
9897 }
9898
9899 // Enum values for test.case.result.status
9900 var (
9901 // pass
9902 // Stability: development
9903 TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
9904 // fail
9905 // Stability: development
9906 TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
9907 )
9908
9909 // Enum values for test.suite.run.status
9910 var (
9911 // success
9912 // Stability: development
9913 TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
9914 // failure
9915 // Stability: development
9916 TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
9917 // skipped
9918 // Stability: development
9919 TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
9920 // aborted
9921 // Stability: development
9922 TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
9923 // timed_out
9924 // Stability: development
9925 TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
9926 // in_progress
9927 // Stability: development
9928 TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
9929 )
9930
9931 // Namespace: thread
9932 const (
9933 // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
9934 // conventions. It represents the current "managed" thread ID (as opposed to OS
9935 // thread ID).
9936 //
9937 // Type: int
9938 // RequirementLevel: Recommended
9939 // Stability: Development
9940 ThreadIDKey = attribute.Key("thread.id")
9941
9942 // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
9943 // conventions. It represents the current thread name.
9944 //
9945 // Type: string
9946 // RequirementLevel: Recommended
9947 // Stability: Development
9948 //
9949 // Examples: main
9950 ThreadNameKey = attribute.Key("thread.name")
9951 )
9952
9953 // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
9954 // conventions. It represents the current "managed" thread ID (as opposed to OS
9955 // thread ID).
9956 func ThreadID(val int) attribute.KeyValue {
9957 return ThreadIDKey.Int(val)
9958 }
9959
9960 // ThreadName returns an attribute KeyValue conforming to the "thread.name"
9961 // semantic conventions. It represents the current thread name.
9962 func ThreadName(val string) attribute.KeyValue {
9963 return ThreadNameKey.String(val)
9964 }
9965
9966 // Namespace: tls
9967 const (
9968 // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
9969 // conventions. It represents the string indicating the [cipher] used during the
9970 // current connection.
9971 //
9972 // Type: string
9973 // RequirementLevel: Recommended
9974 // Stability: Development
9975 //
9976 // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
9977 // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
9978 // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
9979 // of the [registered TLS Cipher Suits].
9980 //
9981 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
9982 // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
9983 TLSCipherKey = attribute.Key("tls.cipher")
9984
9985 // TLSClientCertificateKey is the attribute Key conforming to the
9986 // "tls.client.certificate" semantic conventions. It represents the pEM-encoded
9987 // stand-alone certificate offered by the client. This is usually
9988 // mutually-exclusive of `client.certificate_chain` since this value also exists
9989 // in that list.
9990 //
9991 // Type: string
9992 // RequirementLevel: Recommended
9993 // Stability: Development
9994 //
9995 // Examples: "MII..."
9996 TLSClientCertificateKey = attribute.Key("tls.client.certificate")
9997
9998 // TLSClientCertificateChainKey is the attribute Key conforming to the
9999 // "tls.client.certificate_chain" semantic conventions. It represents the array
10000 // of PEM-encoded certificates that make up the certificate chain offered by the
10001 // client. This is usually mutually-exclusive of `client.certificate` since that
10002 // value should be the first certificate in the chain.
10003 //
10004 // Type: string[]
10005 // RequirementLevel: Recommended
10006 // Stability: Development
10007 //
10008 // Examples: "MII...", "MI..."
10009 TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
10010
10011 // TLSClientHashMd5Key is the attribute Key conforming to the
10012 // "tls.client.hash.md5" semantic conventions. It represents the certificate
10013 // fingerprint using the MD5 digest of DER-encoded version of certificate
10014 // offered by the client. For consistency with other hash values, this value
10015 // should be formatted as an uppercase hash.
10016 //
10017 // Type: string
10018 // RequirementLevel: Recommended
10019 // Stability: Development
10020 //
10021 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
10022 TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
10023
10024 // TLSClientHashSha1Key is the attribute Key conforming to the
10025 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
10026 // fingerprint using the SHA1 digest of DER-encoded version of certificate
10027 // offered by the client. For consistency with other hash values, this value
10028 // should be formatted as an uppercase hash.
10029 //
10030 // Type: string
10031 // RequirementLevel: Recommended
10032 // Stability: Development
10033 //
10034 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
10035 TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
10036
10037 // TLSClientHashSha256Key is the attribute Key conforming to the
10038 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
10039 // fingerprint using the SHA256 digest of DER-encoded version of certificate
10040 // offered by the client. For consistency with other hash values, this value
10041 // should be formatted as an uppercase hash.
10042 //
10043 // Type: string
10044 // RequirementLevel: Recommended
10045 // Stability: Development
10046 //
10047 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
10048 TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
10049
10050 // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
10051 // semantic conventions. It represents the distinguished name of [subject] of
10052 // the issuer of the x.509 certificate presented by the client.
10053 //
10054 // Type: string
10055 // RequirementLevel: Recommended
10056 // Stability: Development
10057 //
10058 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
10059 //
10060 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
10061 TLSClientIssuerKey = attribute.Key("tls.client.issuer")
10062
10063 // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
10064 // semantic conventions. It represents a hash that identifies clients based on
10065 // how they perform an SSL/TLS handshake.
10066 //
10067 // Type: string
10068 // RequirementLevel: Recommended
10069 // Stability: Development
10070 //
10071 // Examples: "d4e5b18d6b55c71272893221c96ba240"
10072 TLSClientJa3Key = attribute.Key("tls.client.ja3")
10073
10074 // TLSClientNotAfterKey is the attribute Key conforming to the
10075 // "tls.client.not_after" semantic conventions. It represents the date/Time
10076 // indicating when client certificate is no longer considered valid.
10077 //
10078 // Type: string
10079 // RequirementLevel: Recommended
10080 // Stability: Development
10081 //
10082 // Examples: "2021-01-01T00:00:00.000Z"
10083 TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
10084
10085 // TLSClientNotBeforeKey is the attribute Key conforming to the
10086 // "tls.client.not_before" semantic conventions. It represents the date/Time
10087 // indicating when client certificate is first considered valid.
10088 //
10089 // Type: string
10090 // RequirementLevel: Recommended
10091 // Stability: Development
10092 //
10093 // Examples: "1970-01-01T00:00:00.000Z"
10094 TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
10095
10096 // TLSClientSubjectKey is the attribute Key conforming to the
10097 // "tls.client.subject" semantic conventions. It represents the distinguished
10098 // name of subject of the x.509 certificate presented by the client.
10099 //
10100 // Type: string
10101 // RequirementLevel: Recommended
10102 // Stability: Development
10103 //
10104 // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
10105 TLSClientSubjectKey = attribute.Key("tls.client.subject")
10106
10107 // TLSClientSupportedCiphersKey is the attribute Key conforming to the
10108 // "tls.client.supported_ciphers" semantic conventions. It represents the array
10109 // of ciphers offered by the client during the client hello.
10110 //
10111 // Type: string[]
10112 // RequirementLevel: Recommended
10113 // Stability: Development
10114 //
10115 // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
10116 // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
10117 TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
10118
10119 // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
10120 // conventions. It represents the string indicating the curve used for the given
10121 // cipher, when applicable.
10122 //
10123 // Type: string
10124 // RequirementLevel: Recommended
10125 // Stability: Development
10126 //
10127 // Examples: "secp256r1"
10128 TLSCurveKey = attribute.Key("tls.curve")
10129
10130 // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
10131 // semantic conventions. It represents the boolean flag indicating if the TLS
10132 // negotiation was successful and transitioned to an encrypted tunnel.
10133 //
10134 // Type: boolean
10135 // RequirementLevel: Recommended
10136 // Stability: Development
10137 //
10138 // Examples: true
10139 TLSEstablishedKey = attribute.Key("tls.established")
10140
10141 // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
10142 // semantic conventions. It represents the string indicating the protocol being
10143 // tunneled. Per the values in the [IANA registry], this string should be lower
10144 // case.
10145 //
10146 // Type: string
10147 // RequirementLevel: Recommended
10148 // Stability: Development
10149 //
10150 // Examples: "http/1.1"
10151 //
10152 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
10153 TLSNextProtocolKey = attribute.Key("tls.next_protocol")
10154
10155 // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
10156 // semantic conventions. It represents the normalized lowercase protocol name
10157 // parsed from original string of the negotiated [SSL/TLS protocol version].
10158 //
10159 // Type: Enum
10160 // RequirementLevel: Recommended
10161 // Stability: Development
10162 //
10163 // Examples:
10164 //
10165 // [SSL/TLS protocol version]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES
10166 TLSProtocolNameKey = attribute.Key("tls.protocol.name")
10167
10168 // TLSProtocolVersionKey is the attribute Key conforming to the
10169 // "tls.protocol.version" semantic conventions. It represents the numeric part
10170 // of the version parsed from the original string of the negotiated
10171 // [SSL/TLS protocol version].
10172 //
10173 // Type: string
10174 // RequirementLevel: Recommended
10175 // Stability: Development
10176 //
10177 // Examples: "1.2", "3"
10178 //
10179 // [SSL/TLS protocol version]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES
10180 TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
10181
10182 // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
10183 // conventions. It represents the boolean flag indicating if this TLS connection
10184 // was resumed from an existing TLS negotiation.
10185 //
10186 // Type: boolean
10187 // RequirementLevel: Recommended
10188 // Stability: Development
10189 //
10190 // Examples: true
10191 TLSResumedKey = attribute.Key("tls.resumed")
10192
10193 // TLSServerCertificateKey is the attribute Key conforming to the
10194 // "tls.server.certificate" semantic conventions. It represents the pEM-encoded
10195 // stand-alone certificate offered by the server. This is usually
10196 // mutually-exclusive of `server.certificate_chain` since this value also exists
10197 // in that list.
10198 //
10199 // Type: string
10200 // RequirementLevel: Recommended
10201 // Stability: Development
10202 //
10203 // Examples: "MII..."
10204 TLSServerCertificateKey = attribute.Key("tls.server.certificate")
10205
10206 // TLSServerCertificateChainKey is the attribute Key conforming to the
10207 // "tls.server.certificate_chain" semantic conventions. It represents the array
10208 // of PEM-encoded certificates that make up the certificate chain offered by the
10209 // server. This is usually mutually-exclusive of `server.certificate` since that
10210 // value should be the first certificate in the chain.
10211 //
10212 // Type: string[]
10213 // RequirementLevel: Recommended
10214 // Stability: Development
10215 //
10216 // Examples: "MII...", "MI..."
10217 TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
10218
10219 // TLSServerHashMd5Key is the attribute Key conforming to the
10220 // "tls.server.hash.md5" semantic conventions. It represents the certificate
10221 // fingerprint using the MD5 digest of DER-encoded version of certificate
10222 // offered by the server. For consistency with other hash values, this value
10223 // should be formatted as an uppercase hash.
10224 //
10225 // Type: string
10226 // RequirementLevel: Recommended
10227 // Stability: Development
10228 //
10229 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
10230 TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
10231
10232 // TLSServerHashSha1Key is the attribute Key conforming to the
10233 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
10234 // fingerprint using the SHA1 digest of DER-encoded version of certificate
10235 // offered by the server. For consistency with other hash values, this value
10236 // should be formatted as an uppercase hash.
10237 //
10238 // Type: string
10239 // RequirementLevel: Recommended
10240 // Stability: Development
10241 //
10242 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
10243 TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
10244
10245 // TLSServerHashSha256Key is the attribute Key conforming to the
10246 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
10247 // fingerprint using the SHA256 digest of DER-encoded version of certificate
10248 // offered by the server. For consistency with other hash values, this value
10249 // should be formatted as an uppercase hash.
10250 //
10251 // Type: string
10252 // RequirementLevel: Recommended
10253 // Stability: Development
10254 //
10255 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
10256 TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
10257
10258 // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
10259 // semantic conventions. It represents the distinguished name of [subject] of
10260 // the issuer of the x.509 certificate presented by the client.
10261 //
10262 // Type: string
10263 // RequirementLevel: Recommended
10264 // Stability: Development
10265 //
10266 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
10267 //
10268 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
10269 TLSServerIssuerKey = attribute.Key("tls.server.issuer")
10270
10271 // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
10272 // semantic conventions. It represents a hash that identifies servers based on
10273 // how they perform an SSL/TLS handshake.
10274 //
10275 // Type: string
10276 // RequirementLevel: Recommended
10277 // Stability: Development
10278 //
10279 // Examples: "d4e5b18d6b55c71272893221c96ba240"
10280 TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
10281
10282 // TLSServerNotAfterKey is the attribute Key conforming to the
10283 // "tls.server.not_after" semantic conventions. It represents the date/Time
10284 // indicating when server certificate is no longer considered valid.
10285 //
10286 // Type: string
10287 // RequirementLevel: Recommended
10288 // Stability: Development
10289 //
10290 // Examples: "2021-01-01T00:00:00.000Z"
10291 TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
10292
10293 // TLSServerNotBeforeKey is the attribute Key conforming to the
10294 // "tls.server.not_before" semantic conventions. It represents the date/Time
10295 // indicating when server certificate is first considered valid.
10296 //
10297 // Type: string
10298 // RequirementLevel: Recommended
10299 // Stability: Development
10300 //
10301 // Examples: "1970-01-01T00:00:00.000Z"
10302 TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
10303
10304 // TLSServerSubjectKey is the attribute Key conforming to the
10305 // "tls.server.subject" semantic conventions. It represents the distinguished
10306 // name of subject of the x.509 certificate presented by the server.
10307 //
10308 // Type: string
10309 // RequirementLevel: Recommended
10310 // Stability: Development
10311 //
10312 // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
10313 TLSServerSubjectKey = attribute.Key("tls.server.subject")
10314 )
10315
10316 // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
10317 // semantic conventions. It represents the string indicating the [cipher] used
10318 // during the current connection.
10319 //
10320 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
10321 func TLSCipher(val string) attribute.KeyValue {
10322 return TLSCipherKey.String(val)
10323 }
10324
10325 // TLSClientCertificate returns an attribute KeyValue conforming to the
10326 // "tls.client.certificate" semantic conventions. It represents the pEM-encoded
10327 // stand-alone certificate offered by the client. This is usually
10328 // mutually-exclusive of `client.certificate_chain` since this value also exists
10329 // in that list.
10330 func TLSClientCertificate(val string) attribute.KeyValue {
10331 return TLSClientCertificateKey.String(val)
10332 }
10333
10334 // TLSClientCertificateChain returns an attribute KeyValue conforming to the
10335 // "tls.client.certificate_chain" semantic conventions. It represents the array
10336 // of PEM-encoded certificates that make up the certificate chain offered by the
10337 // client. This is usually mutually-exclusive of `client.certificate` since that
10338 // value should be the first certificate in the chain.
10339 func TLSClientCertificateChain(val ...string) attribute.KeyValue {
10340 return TLSClientCertificateChainKey.StringSlice(val)
10341 }
10342
10343 // TLSClientHashMd5 returns an attribute KeyValue conforming to the
10344 // "tls.client.hash.md5" semantic conventions. It represents the certificate
10345 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
10346 // by the client. For consistency with other hash values, this value should be
10347 // formatted as an uppercase hash.
10348 func TLSClientHashMd5(val string) attribute.KeyValue {
10349 return TLSClientHashMd5Key.String(val)
10350 }
10351
10352 // TLSClientHashSha1 returns an attribute KeyValue conforming to the
10353 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
10354 // fingerprint using the SHA1 digest of DER-encoded version of certificate
10355 // offered by the client. For consistency with other hash values, this value
10356 // should be formatted as an uppercase hash.
10357 func TLSClientHashSha1(val string) attribute.KeyValue {
10358 return TLSClientHashSha1Key.String(val)
10359 }
10360
10361 // TLSClientHashSha256 returns an attribute KeyValue conforming to the
10362 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
10363 // fingerprint using the SHA256 digest of DER-encoded version of certificate
10364 // offered by the client. For consistency with other hash values, this value
10365 // should be formatted as an uppercase hash.
10366 func TLSClientHashSha256(val string) attribute.KeyValue {
10367 return TLSClientHashSha256Key.String(val)
10368 }
10369
10370 // TLSClientIssuer returns an attribute KeyValue conforming to the
10371 // "tls.client.issuer" semantic conventions. It represents the distinguished name
10372 // of [subject] of the issuer of the x.509 certificate presented by the client.
10373 //
10374 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
10375 func TLSClientIssuer(val string) attribute.KeyValue {
10376 return TLSClientIssuerKey.String(val)
10377 }
10378
10379 // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
10380 // semantic conventions. It represents a hash that identifies clients based on
10381 // how they perform an SSL/TLS handshake.
10382 func TLSClientJa3(val string) attribute.KeyValue {
10383 return TLSClientJa3Key.String(val)
10384 }
10385
10386 // TLSClientNotAfter returns an attribute KeyValue conforming to the
10387 // "tls.client.not_after" semantic conventions. It represents the date/Time
10388 // indicating when client certificate is no longer considered valid.
10389 func TLSClientNotAfter(val string) attribute.KeyValue {
10390 return TLSClientNotAfterKey.String(val)
10391 }
10392
10393 // TLSClientNotBefore returns an attribute KeyValue conforming to the
10394 // "tls.client.not_before" semantic conventions. It represents the date/Time
10395 // indicating when client certificate is first considered valid.
10396 func TLSClientNotBefore(val string) attribute.KeyValue {
10397 return TLSClientNotBeforeKey.String(val)
10398 }
10399
10400 // TLSClientSubject returns an attribute KeyValue conforming to the
10401 // "tls.client.subject" semantic conventions. It represents the distinguished
10402 // name of subject of the x.509 certificate presented by the client.
10403 func TLSClientSubject(val string) attribute.KeyValue {
10404 return TLSClientSubjectKey.String(val)
10405 }
10406
10407 // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
10408 // "tls.client.supported_ciphers" semantic conventions. It represents the array
10409 // of ciphers offered by the client during the client hello.
10410 func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
10411 return TLSClientSupportedCiphersKey.StringSlice(val)
10412 }
10413
10414 // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
10415 // conventions. It represents the string indicating the curve used for the given
10416 // cipher, when applicable.
10417 func TLSCurve(val string) attribute.KeyValue {
10418 return TLSCurveKey.String(val)
10419 }
10420
10421 // TLSEstablished returns an attribute KeyValue conforming to the
10422 // "tls.established" semantic conventions. It represents the boolean flag
10423 // indicating if the TLS negotiation was successful and transitioned to an
10424 // encrypted tunnel.
10425 func TLSEstablished(val bool) attribute.KeyValue {
10426 return TLSEstablishedKey.Bool(val)
10427 }
10428
10429 // TLSNextProtocol returns an attribute KeyValue conforming to the
10430 // "tls.next_protocol" semantic conventions. It represents the string indicating
10431 // the protocol being tunneled. Per the values in the [IANA registry], this
10432 // string should be lower case.
10433 //
10434 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
10435 func TLSNextProtocol(val string) attribute.KeyValue {
10436 return TLSNextProtocolKey.String(val)
10437 }
10438
10439 // TLSProtocolVersion returns an attribute KeyValue conforming to the
10440 // "tls.protocol.version" semantic conventions. It represents the numeric part of
10441 // the version parsed from the original string of the negotiated
10442 // [SSL/TLS protocol version].
10443 //
10444 // [SSL/TLS protocol version]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES
10445 func TLSProtocolVersion(val string) attribute.KeyValue {
10446 return TLSProtocolVersionKey.String(val)
10447 }
10448
10449 // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
10450 // semantic conventions. It represents the boolean flag indicating if this TLS
10451 // connection was resumed from an existing TLS negotiation.
10452 func TLSResumed(val bool) attribute.KeyValue {
10453 return TLSResumedKey.Bool(val)
10454 }
10455
10456 // TLSServerCertificate returns an attribute KeyValue conforming to the
10457 // "tls.server.certificate" semantic conventions. It represents the pEM-encoded
10458 // stand-alone certificate offered by the server. This is usually
10459 // mutually-exclusive of `server.certificate_chain` since this value also exists
10460 // in that list.
10461 func TLSServerCertificate(val string) attribute.KeyValue {
10462 return TLSServerCertificateKey.String(val)
10463 }
10464
10465 // TLSServerCertificateChain returns an attribute KeyValue conforming to the
10466 // "tls.server.certificate_chain" semantic conventions. It represents the array
10467 // of PEM-encoded certificates that make up the certificate chain offered by the
10468 // server. This is usually mutually-exclusive of `server.certificate` since that
10469 // value should be the first certificate in the chain.
10470 func TLSServerCertificateChain(val ...string) attribute.KeyValue {
10471 return TLSServerCertificateChainKey.StringSlice(val)
10472 }
10473
10474 // TLSServerHashMd5 returns an attribute KeyValue conforming to the
10475 // "tls.server.hash.md5" semantic conventions. It represents the certificate
10476 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
10477 // by the server. For consistency with other hash values, this value should be
10478 // formatted as an uppercase hash.
10479 func TLSServerHashMd5(val string) attribute.KeyValue {
10480 return TLSServerHashMd5Key.String(val)
10481 }
10482
10483 // TLSServerHashSha1 returns an attribute KeyValue conforming to the
10484 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
10485 // fingerprint using the SHA1 digest of DER-encoded version of certificate
10486 // offered by the server. For consistency with other hash values, this value
10487 // should be formatted as an uppercase hash.
10488 func TLSServerHashSha1(val string) attribute.KeyValue {
10489 return TLSServerHashSha1Key.String(val)
10490 }
10491
10492 // TLSServerHashSha256 returns an attribute KeyValue conforming to the
10493 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
10494 // fingerprint using the SHA256 digest of DER-encoded version of certificate
10495 // offered by the server. For consistency with other hash values, this value
10496 // should be formatted as an uppercase hash.
10497 func TLSServerHashSha256(val string) attribute.KeyValue {
10498 return TLSServerHashSha256Key.String(val)
10499 }
10500
10501 // TLSServerIssuer returns an attribute KeyValue conforming to the
10502 // "tls.server.issuer" semantic conventions. It represents the distinguished name
10503 // of [subject] of the issuer of the x.509 certificate presented by the client.
10504 //
10505 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
10506 func TLSServerIssuer(val string) attribute.KeyValue {
10507 return TLSServerIssuerKey.String(val)
10508 }
10509
10510 // TLSServerJa3s returns an attribute KeyValue conforming to the
10511 // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
10512 // servers based on how they perform an SSL/TLS handshake.
10513 func TLSServerJa3s(val string) attribute.KeyValue {
10514 return TLSServerJa3sKey.String(val)
10515 }
10516
10517 // TLSServerNotAfter returns an attribute KeyValue conforming to the
10518 // "tls.server.not_after" semantic conventions. It represents the date/Time
10519 // indicating when server certificate is no longer considered valid.
10520 func TLSServerNotAfter(val string) attribute.KeyValue {
10521 return TLSServerNotAfterKey.String(val)
10522 }
10523
10524 // TLSServerNotBefore returns an attribute KeyValue conforming to the
10525 // "tls.server.not_before" semantic conventions. It represents the date/Time
10526 // indicating when server certificate is first considered valid.
10527 func TLSServerNotBefore(val string) attribute.KeyValue {
10528 return TLSServerNotBeforeKey.String(val)
10529 }
10530
10531 // TLSServerSubject returns an attribute KeyValue conforming to the
10532 // "tls.server.subject" semantic conventions. It represents the distinguished
10533 // name of subject of the x.509 certificate presented by the server.
10534 func TLSServerSubject(val string) attribute.KeyValue {
10535 return TLSServerSubjectKey.String(val)
10536 }
10537
10538 // Enum values for tls.protocol.name
10539 var (
10540 // ssl
10541 // Stability: development
10542 TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
10543 // tls
10544 // Stability: development
10545 TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
10546 )
10547
10548 // Namespace: url
10549 const (
10550 // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
10551 // conventions. It represents the domain extracted from the `url.full`, such as
10552 // "opentelemetry.io".
10553 //
10554 // Type: string
10555 // RequirementLevel: Recommended
10556 // Stability: Development
10557 //
10558 // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
10559 // "[1080:0:0:0:8:800:200C:417A]"
10560 // Note: In some cases a URL may refer to an IP and/or port directly, without a
10561 // domain name. In this case, the IP address would go to the domain field. If
10562 // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
10563 // and `]` characters should also be captured in the domain field.
10564 //
10565 // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
10566 URLDomainKey = attribute.Key("url.domain")
10567
10568 // URLExtensionKey is the attribute Key conforming to the "url.extension"
10569 // semantic conventions. It represents the file extension extracted from the
10570 // `url.full`, excluding the leading dot.
10571 //
10572 // Type: string
10573 // RequirementLevel: Recommended
10574 // Stability: Development
10575 //
10576 // Examples: "png", "gz"
10577 // Note: The file extension is only set if it exists, as not every url has a
10578 // file extension. When the file name has multiple extensions `example.tar.gz`,
10579 // only the last one should be captured `gz`, not `tar.gz`.
10580 URLExtensionKey = attribute.Key("url.extension")
10581
10582 // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
10583 // conventions. It represents the [URI fragment] component.
10584 //
10585 // Type: string
10586 // RequirementLevel: Recommended
10587 // Stability: Stable
10588 //
10589 // Examples: "SemConv"
10590 //
10591 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
10592 URLFragmentKey = attribute.Key("url.fragment")
10593
10594 // URLFullKey is the attribute Key conforming to the "url.full" semantic
10595 // conventions. It represents the absolute URL describing a network resource
10596 // according to [RFC3986].
10597 //
10598 // Type: string
10599 // RequirementLevel: Recommended
10600 // Stability: Stable
10601 //
10602 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
10603 // Note: For network calls, URL usually has
10604 // `scheme://host[:port][path][?query][#fragment]` format, where the fragment is
10605 // not transmitted over HTTP, but if it is known, it SHOULD be included
10606 // nevertheless.
10607 // `url.full` MUST NOT contain credentials passed via URL in form of
10608 // `https://username:[email protected]/`. In such case username and
10609 // password SHOULD be redacted and attribute's value SHOULD be
10610 // `https://REDACTED:[email protected]/`.
10611 // `url.full` SHOULD capture the absolute URL when it is available (or can be
10612 // reconstructed). Sensitive content provided in `url.full` SHOULD be scrubbed
10613 // when instrumentations can identify it.
10614 //
10615 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
10616 URLFullKey = attribute.Key("url.full")
10617
10618 // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
10619 // conventions. It represents the unmodified original URL as seen in the event
10620 // source.
10621 //
10622 // Type: string
10623 // RequirementLevel: Recommended
10624 // Stability: Development
10625 //
10626 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
10627 // "search?q=OpenTelemetry"
10628 // Note: In network monitoring, the observed URL may be a full URL, whereas in
10629 // access logs, the URL is often just represented as a path. This field is meant
10630 // to represent the URL as it was observed, complete or not.
10631 // `url.original` might contain credentials passed via URL in form of
10632 // `https://username:[email protected]/`. In such case password and
10633 // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
10634 URLOriginalKey = attribute.Key("url.original")
10635
10636 // URLPathKey is the attribute Key conforming to the "url.path" semantic
10637 // conventions. It represents the [URI path] component.
10638 //
10639 // Type: string
10640 // RequirementLevel: Recommended
10641 // Stability: Stable
10642 //
10643 // Examples: "/search"
10644 // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
10645 // instrumentations can identify it.
10646 //
10647 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
10648 URLPathKey = attribute.Key("url.path")
10649
10650 // URLPortKey is the attribute Key conforming to the "url.port" semantic
10651 // conventions. It represents the port extracted from the `url.full`.
10652 //
10653 // Type: int
10654 // RequirementLevel: Recommended
10655 // Stability: Development
10656 //
10657 // Examples: 443
10658 URLPortKey = attribute.Key("url.port")
10659
10660 // URLQueryKey is the attribute Key conforming to the "url.query" semantic
10661 // conventions. It represents the [URI query] component.
10662 //
10663 // Type: string
10664 // RequirementLevel: Recommended
10665 // Stability: Stable
10666 //
10667 // Examples: "q=OpenTelemetry"
10668 // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
10669 // instrumentations can identify it.
10670 //
10671 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
10672 URLQueryKey = attribute.Key("url.query")
10673
10674 // URLRegisteredDomainKey is the attribute Key conforming to the
10675 // "url.registered_domain" semantic conventions. It represents the highest
10676 // registered url domain, stripped of the subdomain.
10677 //
10678 // Type: string
10679 // RequirementLevel: Recommended
10680 // Stability: Development
10681 //
10682 // Examples: "example.com", "foo.co.uk"
10683 // Note: This value can be determined precisely with the [public suffix list].
10684 // For example, the registered domain for `foo.example.com` is `example.com`.
10685 // Trying to approximate this by simply taking the last two labels will not work
10686 // well for TLDs such as `co.uk`.
10687 //
10688 // [public suffix list]: http://publicsuffix.org
10689 URLRegisteredDomainKey = attribute.Key("url.registered_domain")
10690
10691 // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
10692 // conventions. It represents the [URI scheme] component identifying the used
10693 // protocol.
10694 //
10695 // Type: string
10696 // RequirementLevel: Recommended
10697 // Stability: Stable
10698 //
10699 // Examples: "https", "ftp", "telnet"
10700 //
10701 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
10702 URLSchemeKey = attribute.Key("url.scheme")
10703
10704 // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
10705 // semantic conventions. It represents the subdomain portion of a fully
10706 // qualified domain name includes all of the names except the host name under
10707 // the registered_domain. In a partially qualified domain, or if the
10708 // qualification level of the full name cannot be determined, subdomain contains
10709 // all of the names below the registered domain.
10710 //
10711 // Type: string
10712 // RequirementLevel: Recommended
10713 // Stability: Development
10714 //
10715 // Examples: "east", "sub2.sub1"
10716 // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
10717 // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
10718 // subdomain field should contain `sub2.sub1`, with no trailing period.
10719 URLSubdomainKey = attribute.Key("url.subdomain")
10720
10721 // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
10722 // conventions. It represents the low-cardinality template of an
10723 // [absolute path reference].
10724 //
10725 // Type: string
10726 // RequirementLevel: Recommended
10727 // Stability: Development
10728 //
10729 // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
10730 //
10731 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
10732 URLTemplateKey = attribute.Key("url.template")
10733
10734 // URLTopLevelDomainKey is the attribute Key conforming to the
10735 // "url.top_level_domain" semantic conventions. It represents the effective top
10736 // level domain (eTLD), also known as the domain suffix, is the last part of the
10737 // domain name. For example, the top level domain for example.com is `com`.
10738 //
10739 // Type: string
10740 // RequirementLevel: Recommended
10741 // Stability: Development
10742 //
10743 // Examples: "com", "co.uk"
10744 // Note: This value can be determined precisely with the [public suffix list].
10745 //
10746 // [public suffix list]: http://publicsuffix.org
10747 URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
10748 )
10749
10750 // URLDomain returns an attribute KeyValue conforming to the "url.domain"
10751 // semantic conventions. It represents the domain extracted from the `url.full`,
10752 // such as "opentelemetry.io".
10753 func URLDomain(val string) attribute.KeyValue {
10754 return URLDomainKey.String(val)
10755 }
10756
10757 // URLExtension returns an attribute KeyValue conforming to the "url.extension"
10758 // semantic conventions. It represents the file extension extracted from the
10759 // `url.full`, excluding the leading dot.
10760 func URLExtension(val string) attribute.KeyValue {
10761 return URLExtensionKey.String(val)
10762 }
10763
10764 // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
10765 // semantic conventions. It represents the [URI fragment] component.
10766 //
10767 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
10768 func URLFragment(val string) attribute.KeyValue {
10769 return URLFragmentKey.String(val)
10770 }
10771
10772 // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
10773 // conventions. It represents the absolute URL describing a network resource
10774 // according to [RFC3986].
10775 //
10776 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
10777 func URLFull(val string) attribute.KeyValue {
10778 return URLFullKey.String(val)
10779 }
10780
10781 // URLOriginal returns an attribute KeyValue conforming to the "url.original"
10782 // semantic conventions. It represents the unmodified original URL as seen in the
10783 // event source.
10784 func URLOriginal(val string) attribute.KeyValue {
10785 return URLOriginalKey.String(val)
10786 }
10787
10788 // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
10789 // conventions. It represents the [URI path] component.
10790 //
10791 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
10792 func URLPath(val string) attribute.KeyValue {
10793 return URLPathKey.String(val)
10794 }
10795
10796 // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
10797 // conventions. It represents the port extracted from the `url.full`.
10798 func URLPort(val int) attribute.KeyValue {
10799 return URLPortKey.Int(val)
10800 }
10801
10802 // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
10803 // conventions. It represents the [URI query] component.
10804 //
10805 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
10806 func URLQuery(val string) attribute.KeyValue {
10807 return URLQueryKey.String(val)
10808 }
10809
10810 // URLRegisteredDomain returns an attribute KeyValue conforming to the
10811 // "url.registered_domain" semantic conventions. It represents the highest
10812 // registered url domain, stripped of the subdomain.
10813 func URLRegisteredDomain(val string) attribute.KeyValue {
10814 return URLRegisteredDomainKey.String(val)
10815 }
10816
10817 // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
10818 // semantic conventions. It represents the [URI scheme] component identifying the
10819 // used protocol.
10820 //
10821 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
10822 func URLScheme(val string) attribute.KeyValue {
10823 return URLSchemeKey.String(val)
10824 }
10825
10826 // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
10827 // semantic conventions. It represents the subdomain portion of a fully qualified
10828 // domain name includes all of the names except the host name under the
10829 // registered_domain. In a partially qualified domain, or if the qualification
10830 // level of the full name cannot be determined, subdomain contains all of the
10831 // names below the registered domain.
10832 func URLSubdomain(val string) attribute.KeyValue {
10833 return URLSubdomainKey.String(val)
10834 }
10835
10836 // URLTemplate returns an attribute KeyValue conforming to the "url.template"
10837 // semantic conventions. It represents the low-cardinality template of an
10838 // [absolute path reference].
10839 //
10840 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
10841 func URLTemplate(val string) attribute.KeyValue {
10842 return URLTemplateKey.String(val)
10843 }
10844
10845 // URLTopLevelDomain returns an attribute KeyValue conforming to the
10846 // "url.top_level_domain" semantic conventions. It represents the effective top
10847 // level domain (eTLD), also known as the domain suffix, is the last part of the
10848 // domain name. For example, the top level domain for example.com is `com`.
10849 func URLTopLevelDomain(val string) attribute.KeyValue {
10850 return URLTopLevelDomainKey.String(val)
10851 }
10852
10853 // Namespace: user
10854 const (
10855 // UserEmailKey is the attribute Key conforming to the "user.email" semantic
10856 // conventions. It represents the user email address.
10857 //
10858 // Type: string
10859 // RequirementLevel: Recommended
10860 // Stability: Development
10861 //
10862 // Examples: "[email protected]"
10863 UserEmailKey = attribute.Key("user.email")
10864
10865 // UserFullNameKey is the attribute Key conforming to the "user.full_name"
10866 // semantic conventions. It represents the user's full name.
10867 //
10868 // Type: string
10869 // RequirementLevel: Recommended
10870 // Stability: Development
10871 //
10872 // Examples: "Albert Einstein"
10873 UserFullNameKey = attribute.Key("user.full_name")
10874
10875 // UserHashKey is the attribute Key conforming to the "user.hash" semantic
10876 // conventions. It represents the unique user hash to correlate information for
10877 // a user in anonymized form.
10878 //
10879 // Type: string
10880 // RequirementLevel: Recommended
10881 // Stability: Development
10882 //
10883 // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
10884 // Note: Useful if `user.id` or `user.name` contain confidential information and
10885 // cannot be used.
10886 UserHashKey = attribute.Key("user.hash")
10887
10888 // UserIDKey is the attribute Key conforming to the "user.id" semantic
10889 // conventions. It represents the unique identifier of the user.
10890 //
10891 // Type: string
10892 // RequirementLevel: Recommended
10893 // Stability: Development
10894 //
10895 // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
10896 UserIDKey = attribute.Key("user.id")
10897
10898 // UserNameKey is the attribute Key conforming to the "user.name" semantic
10899 // conventions. It represents the short name or login/username of the user.
10900 //
10901 // Type: string
10902 // RequirementLevel: Recommended
10903 // Stability: Development
10904 //
10905 // Examples: "a.einstein"
10906 UserNameKey = attribute.Key("user.name")
10907
10908 // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
10909 // conventions. It represents the array of user roles at the time of the event.
10910 //
10911 // Type: string[]
10912 // RequirementLevel: Recommended
10913 // Stability: Development
10914 //
10915 // Examples: "admin", "reporting_user"
10916 UserRolesKey = attribute.Key("user.roles")
10917 )
10918
10919 // UserEmail returns an attribute KeyValue conforming to the "user.email"
10920 // semantic conventions. It represents the user email address.
10921 func UserEmail(val string) attribute.KeyValue {
10922 return UserEmailKey.String(val)
10923 }
10924
10925 // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
10926 // semantic conventions. It represents the user's full name.
10927 func UserFullName(val string) attribute.KeyValue {
10928 return UserFullNameKey.String(val)
10929 }
10930
10931 // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
10932 // conventions. It represents the unique user hash to correlate information for a
10933 // user in anonymized form.
10934 func UserHash(val string) attribute.KeyValue {
10935 return UserHashKey.String(val)
10936 }
10937
10938 // UserID returns an attribute KeyValue conforming to the "user.id" semantic
10939 // conventions. It represents the unique identifier of the user.
10940 func UserID(val string) attribute.KeyValue {
10941 return UserIDKey.String(val)
10942 }
10943
10944 // UserName returns an attribute KeyValue conforming to the "user.name" semantic
10945 // conventions. It represents the short name or login/username of the user.
10946 func UserName(val string) attribute.KeyValue {
10947 return UserNameKey.String(val)
10948 }
10949
10950 // UserRoles returns an attribute KeyValue conforming to the "user.roles"
10951 // semantic conventions. It represents the array of user roles at the time of the
10952 // event.
10953 func UserRoles(val ...string) attribute.KeyValue {
10954 return UserRolesKey.StringSlice(val)
10955 }
10956
10957 // Namespace: user_agent
10958 const (
10959 // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
10960 // semantic conventions. It represents the name of the user-agent extracted from
10961 // original. Usually refers to the browser's name.
10962 //
10963 // Type: string
10964 // RequirementLevel: Recommended
10965 // Stability: Development
10966 //
10967 // Examples: "Safari", "YourApp"
10968 // Note: [Example] of extracting browser's name from original string. In the
10969 // case of using a user-agent for non-browser products, such as microservices
10970 // with multiple names/versions inside the `user_agent.original`, the most
10971 // significant name SHOULD be selected. In such a scenario it should align with
10972 // `user_agent.version`
10973 //
10974 // [Example]: https://www.whatsmyua.info
10975 UserAgentNameKey = attribute.Key("user_agent.name")
10976
10977 // UserAgentOriginalKey is the attribute Key conforming to the
10978 // "user_agent.original" semantic conventions. It represents the value of the
10979 // [HTTP User-Agent] header sent by the client.
10980 //
10981 // Type: string
10982 // RequirementLevel: Recommended
10983 // Stability: Stable
10984 //
10985 // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
10986 // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
10987 // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
10988 // grpc-java-okhttp/1.27.2"
10989 //
10990 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
10991 UserAgentOriginalKey = attribute.Key("user_agent.original")
10992
10993 // UserAgentVersionKey is the attribute Key conforming to the
10994 // "user_agent.version" semantic conventions. It represents the version of the
10995 // user-agent extracted from original. Usually refers to the browser's version.
10996 //
10997 // Type: string
10998 // RequirementLevel: Recommended
10999 // Stability: Development
11000 //
11001 // Examples: "14.1.2", "1.0.0"
11002 // Note: [Example] of extracting browser's version from original string. In the
11003 // case of using a user-agent for non-browser products, such as microservices
11004 // with multiple names/versions inside the `user_agent.original`, the most
11005 // significant version SHOULD be selected. In such a scenario it should align
11006 // with `user_agent.name`
11007 //
11008 // [Example]: https://www.whatsmyua.info
11009 UserAgentVersionKey = attribute.Key("user_agent.version")
11010 )
11011
11012 // UserAgentName returns an attribute KeyValue conforming to the
11013 // "user_agent.name" semantic conventions. It represents the name of the
11014 // user-agent extracted from original. Usually refers to the browser's name.
11015 func UserAgentName(val string) attribute.KeyValue {
11016 return UserAgentNameKey.String(val)
11017 }
11018
11019 // UserAgentOriginal returns an attribute KeyValue conforming to the
11020 // "user_agent.original" semantic conventions. It represents the value of the
11021 // [HTTP User-Agent] header sent by the client.
11022 //
11023 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
11024 func UserAgentOriginal(val string) attribute.KeyValue {
11025 return UserAgentOriginalKey.String(val)
11026 }
11027
11028 // UserAgentVersion returns an attribute KeyValue conforming to the
11029 // "user_agent.version" semantic conventions. It represents the version of the
11030 // user-agent extracted from original. Usually refers to the browser's version.
11031 func UserAgentVersion(val string) attribute.KeyValue {
11032 return UserAgentVersionKey.String(val)
11033 }
11034
11035 // Namespace: vcs
11036 const (
11037 // VCSRepositoryChangeIDKey is the attribute Key conforming to the
11038 // "vcs.repository.change.id" semantic conventions. It represents the ID of the
11039 // change (pull request/merge request) if applicable. This is usually a unique
11040 // (within repository) identifier generated by the VCS system.
11041 //
11042 // Type: string
11043 // RequirementLevel: Recommended
11044 // Stability: Development
11045 //
11046 // Examples: "123"
11047 VCSRepositoryChangeIDKey = attribute.Key("vcs.repository.change.id")
11048
11049 // VCSRepositoryChangeTitleKey is the attribute Key conforming to the
11050 // "vcs.repository.change.title" semantic conventions. It represents the human
11051 // readable title of the change (pull request/merge request). This title is
11052 // often a brief summary of the change and may get merged in to a ref as the
11053 // commit summary.
11054 //
11055 // Type: string
11056 // RequirementLevel: Recommended
11057 // Stability: Development
11058 //
11059 // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
11060 // dependency"
11061 VCSRepositoryChangeTitleKey = attribute.Key("vcs.repository.change.title")
11062
11063 // VCSRepositoryRefNameKey is the attribute Key conforming to the
11064 // "vcs.repository.ref.name" semantic conventions. It represents the name of the
11065 // [reference] such as **branch** or **tag** in the repository.
11066 //
11067 // Type: string
11068 // RequirementLevel: Recommended
11069 // Stability: Development
11070 //
11071 // Examples: "my-feature-branch", "tag-1-test"
11072 //
11073 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
11074 VCSRepositoryRefNameKey = attribute.Key("vcs.repository.ref.name")
11075
11076 // VCSRepositoryRefRevisionKey is the attribute Key conforming to the
11077 // "vcs.repository.ref.revision" semantic conventions. It represents the
11078 // revision, literally [revised version], The revision most often refers to a
11079 // commit object in Git, or a revision number in SVN.
11080 //
11081 // Type: string
11082 // RequirementLevel: Recommended
11083 // Stability: Development
11084 //
11085 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
11086 // "main", "123", "HEAD"
11087 // Note: The revision can be a full [hash value (see glossary)],
11088 // of the recorded change to a ref within a repository pointing to a
11089 // commit [commit] object. It does
11090 // not necessarily have to be a hash; it can simply define a
11091 // [revision number]
11092 // which is an integer that is monotonically increasing. In cases where
11093 // it is identical to the `ref.name`, it SHOULD still be included. It is
11094 // up to the implementer to decide which value to set as the revision
11095 // based on the VCS system and situational context.
11096 //
11097 // [revised version]: https://www.merriam-webster.com/dictionary/revision
11098 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
11099 // [commit]: https://git-scm.com/docs/git-commit
11100 // [revision number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
11101 VCSRepositoryRefRevisionKey = attribute.Key("vcs.repository.ref.revision")
11102
11103 // VCSRepositoryRefTypeKey is the attribute Key conforming to the
11104 // "vcs.repository.ref.type" semantic conventions. It represents the type of the
11105 // [reference] in the repository.
11106 //
11107 // Type: Enum
11108 // RequirementLevel: Recommended
11109 // Stability: Development
11110 //
11111 // Examples: "branch", "tag"
11112 //
11113 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
11114 VCSRepositoryRefTypeKey = attribute.Key("vcs.repository.ref.type")
11115
11116 // VCSRepositoryURLFullKey is the attribute Key conforming to the
11117 // "vcs.repository.url.full" semantic conventions. It represents the [URL] of
11118 // the repository providing the complete address in order to locate and identify
11119 // the repository.
11120 //
11121 // Type: string
11122 // RequirementLevel: Recommended
11123 // Stability: Development
11124 //
11125 // Examples:
11126 // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
11127 // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
11128 //
11129 // [URL]: https://en.wikipedia.org/wiki/URL
11130 VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
11131 )
11132
11133 // VCSRepositoryChangeID returns an attribute KeyValue conforming to the
11134 // "vcs.repository.change.id" semantic conventions. It represents the ID of the
11135 // change (pull request/merge request) if applicable. This is usually a unique
11136 // (within repository) identifier generated by the VCS system.
11137 func VCSRepositoryChangeID(val string) attribute.KeyValue {
11138 return VCSRepositoryChangeIDKey.String(val)
11139 }
11140
11141 // VCSRepositoryChangeTitle returns an attribute KeyValue conforming to the
11142 // "vcs.repository.change.title" semantic conventions. It represents the human
11143 // readable title of the change (pull request/merge request). This title is often
11144 // a brief summary of the change and may get merged in to a ref as the commit
11145 // summary.
11146 func VCSRepositoryChangeTitle(val string) attribute.KeyValue {
11147 return VCSRepositoryChangeTitleKey.String(val)
11148 }
11149
11150 // VCSRepositoryRefName returns an attribute KeyValue conforming to the
11151 // "vcs.repository.ref.name" semantic conventions. It represents the name of the
11152 // [reference] such as **branch** or **tag** in the repository.
11153 //
11154 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
11155 func VCSRepositoryRefName(val string) attribute.KeyValue {
11156 return VCSRepositoryRefNameKey.String(val)
11157 }
11158
11159 // VCSRepositoryRefRevision returns an attribute KeyValue conforming to the
11160 // "vcs.repository.ref.revision" semantic conventions. It represents the
11161 // revision, literally [revised version], The revision most often refers to a
11162 // commit object in Git, or a revision number in SVN.
11163 //
11164 // [revised version]: https://www.merriam-webster.com/dictionary/revision
11165 func VCSRepositoryRefRevision(val string) attribute.KeyValue {
11166 return VCSRepositoryRefRevisionKey.String(val)
11167 }
11168
11169 // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
11170 // "vcs.repository.url.full" semantic conventions. It represents the [URL] of the
11171 // repository providing the complete address in order to locate and identify the
11172 // repository.
11173 //
11174 // [URL]: https://en.wikipedia.org/wiki/URL
11175 func VCSRepositoryURLFull(val string) attribute.KeyValue {
11176 return VCSRepositoryURLFullKey.String(val)
11177 }
11178
11179 // Enum values for vcs.repository.ref.type
11180 var (
11181 // [branch]
11182 // Stability: development
11183 //
11184 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
11185 VCSRepositoryRefTypeBranch = VCSRepositoryRefTypeKey.String("branch")
11186 // [tag]
11187 // Stability: development
11188 //
11189 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
11190 VCSRepositoryRefTypeTag = VCSRepositoryRefTypeKey.String("tag")
11191 )
11192
11193 // Namespace: webengine
11194 const (
11195 // WebEngineDescriptionKey is the attribute Key conforming to the
11196 // "webengine.description" semantic conventions. It represents the additional
11197 // description of the web engine (e.g. detailed version and edition
11198 // information).
11199 //
11200 // Type: string
11201 // RequirementLevel: Recommended
11202 // Stability: Development
11203 //
11204 // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
11205 // 2.2.2.Final"
11206 WebEngineDescriptionKey = attribute.Key("webengine.description")
11207
11208 // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
11209 // semantic conventions. It represents the name of the web engine.
11210 //
11211 // Type: string
11212 // RequirementLevel: Recommended
11213 // Stability: Development
11214 //
11215 // Examples: "WildFly"
11216 WebEngineNameKey = attribute.Key("webengine.name")
11217
11218 // WebEngineVersionKey is the attribute Key conforming to the
11219 // "webengine.version" semantic conventions. It represents the version of the
11220 // web engine.
11221 //
11222 // Type: string
11223 // RequirementLevel: Recommended
11224 // Stability: Development
11225 //
11226 // Examples: "21.0.0"
11227 WebEngineVersionKey = attribute.Key("webengine.version")
11228 )
11229
11230 // WebEngineDescription returns an attribute KeyValue conforming to the
11231 // "webengine.description" semantic conventions. It represents the additional
11232 // description of the web engine (e.g. detailed version and edition information).
11233 func WebEngineDescription(val string) attribute.KeyValue {
11234 return WebEngineDescriptionKey.String(val)
11235 }
11236
11237 // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
11238 // semantic conventions. It represents the name of the web engine.
11239 func WebEngineName(val string) attribute.KeyValue {
11240 return WebEngineNameKey.String(val)
11241 }
11242
11243 // WebEngineVersion returns an attribute KeyValue conforming to the
11244 // "webengine.version" semantic conventions. It represents the version of the web
11245 // engine.
11246 func WebEngineVersion(val string) attribute.KeyValue {
11247 return WebEngineVersionKey.String(val)
11248 }