Debian Codegraph @

semconv/v1.30.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.30.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 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/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 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/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: Recommended
562 // Stability: Development
563 //
564 // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b",
565 // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
566 AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id")
567
568 // AWSECSTaskRevisionKey is the attribute Key conforming to the
569 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
570 // the task definition used to create the ECS task.
571 //
572 // Type: string
573 // RequirementLevel: Recommended
574 // Stability: Development
575 //
576 // Examples: "8", "26"
577 AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision")
578
579 // AWSEKSClusterARNKey is the attribute Key conforming to the
580 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
581 // cluster.
582 //
583 // Type: string
584 // RequirementLevel: Recommended
585 // Stability: Development
586 //
587 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
588 AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn")
589
590 // AWSExtendedRequestIDKey is the attribute Key conforming to the
591 // "aws.extended_request_id" semantic conventions. It represents the AWS
592 // extended request ID as returned in the response header `x-amz-id-2`.
593 //
594 // Type: string
595 // RequirementLevel: Recommended
596 // Stability: Development
597 //
598 // Examples:
599 // "wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ="
600 AWSExtendedRequestIDKey = attribute.Key("aws.extended_request_id")
601
602 // AWSLambdaInvokedARNKey is the attribute Key conforming to the
603 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
604 // ARN as provided on the `Context` passed to the function (
605 // `Lambda-Runtime-Invoked-Function-Arn` header on the
606 // `/runtime/invocation/next` applicable).
607 //
608 // Type: string
609 // RequirementLevel: Recommended
610 // Stability: Development
611 //
612 // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias"
613 // Note: This may be different from `cloud.resource_id` if an alias is involved.
614 AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn")
615
616 // AWSLogGroupARNsKey is the attribute Key conforming to the
617 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
618 // Name(s) (ARN) of the AWS log group(s).
619 //
620 // Type: string[]
621 // RequirementLevel: Recommended
622 // Stability: Development
623 //
624 // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"
625 // Note: See the [log group ARN format documentation].
626 //
627 // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
628 AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns")
629
630 // AWSLogGroupNamesKey is the attribute Key conforming to the
631 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
632 // AWS log group(s) an application is writing to.
633 //
634 // Type: string[]
635 // RequirementLevel: Recommended
636 // Stability: Development
637 //
638 // Examples: "/aws/lambda/my-function", "opentelemetry-service"
639 // Note: Multiple log groups must be supported for cases like multi-container
640 // applications, where a single application has sidecar containers, and each
641 // write to their own log group.
642 AWSLogGroupNamesKey = attribute.Key("aws.log.group.names")
643
644 // AWSLogStreamARNsKey is the attribute Key conforming to the
645 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
646 // AWS log stream(s).
647 //
648 // Type: string[]
649 // RequirementLevel: Recommended
650 // Stability: Development
651 //
652 // Examples:
653 // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
654 // Note: See the [log stream ARN format documentation]. One log group can
655 // contain several log streams, so these ARNs necessarily identify both a log
656 // group and a log stream.
657 //
658 // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
659 AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns")
660
661 // AWSLogStreamNamesKey is the attribute Key conforming to the
662 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
663 // AWS log stream(s) an application is writing to.
664 //
665 // Type: string[]
666 // RequirementLevel: Recommended
667 // Stability: Development
668 //
669 // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
670 AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names")
671
672 // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id"
673 // semantic conventions. It represents the AWS request ID as returned in the
674 // response headers `x-amzn-requestid`, `x-amzn-request-id` or
675 // `x-amz-request-id`.
676 //
677 // Type: string
678 // RequirementLevel: Recommended
679 // Stability: Development
680 //
681 // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ"
682 AWSRequestIDKey = attribute.Key("aws.request_id")
683
684 // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket"
685 // semantic conventions. It represents the S3 bucket name the request refers to.
686 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
687 //
688 // Type: string
689 // RequirementLevel: Recommended
690 // Stability: Development
691 //
692 // Examples: "some-bucket-name"
693 // Note: The `bucket` attribute is applicable to all S3 operations that
694 // reference a bucket, i.e. that require the bucket name as a mandatory
695 // parameter.
696 // This applies to almost all S3 operations except `list-buckets`.
697 //
698 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
699 AWSS3BucketKey = attribute.Key("aws.s3.bucket")
700
701 // AWSS3CopySourceKey is the attribute Key conforming to the
702 // "aws.s3.copy_source" semantic conventions. It represents the source object
703 // (in the form `bucket`/`key`) for the copy operation.
704 //
705 // Type: string
706 // RequirementLevel: Recommended
707 // Stability: Development
708 //
709 // Examples: "someFile.yml"
710 // Note: The `copy_source` attribute applies to S3 copy operations and
711 // corresponds to the `--copy-source` parameter
712 // of the [copy-object operation within the S3 API].
713 // This applies in particular to the following operations:
714 //
715 // - [copy-object]
716 // - [upload-part-copy]
717 //
718 //
719 // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
720 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
721 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
722 AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source")
723
724 // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete"
725 // semantic conventions. It represents the delete request container that
726 // specifies the objects to be deleted.
727 //
728 // Type: string
729 // RequirementLevel: Recommended
730 // Stability: Development
731 //
732 // Examples:
733 // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"
734 // Note: The `delete` attribute is only applicable to the [delete-object]
735 // operation.
736 // The `delete` attribute corresponds to the `--delete` parameter of the
737 // [delete-objects operation within the S3 API].
738 //
739 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
740 // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html
741 AWSS3DeleteKey = attribute.Key("aws.s3.delete")
742
743 // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic
744 // conventions. It represents the S3 object key the request refers to.
745 // Corresponds to the `--key` parameter of the [S3 API] operations.
746 //
747 // Type: string
748 // RequirementLevel: Recommended
749 // Stability: Development
750 //
751 // Examples: "someFile.yml"
752 // Note: The `key` attribute is applicable to all object-related S3 operations,
753 // i.e. that require the object key as a mandatory parameter.
754 // This applies in particular to the following operations:
755 //
756 // - [copy-object]
757 // - [delete-object]
758 // - [get-object]
759 // - [head-object]
760 // - [put-object]
761 // - [restore-object]
762 // - [select-object-content]
763 // - [abort-multipart-upload]
764 // - [complete-multipart-upload]
765 // - [create-multipart-upload]
766 // - [list-parts]
767 // - [upload-part]
768 // - [upload-part-copy]
769 //
770 //
771 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
772 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
773 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
774 // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html
775 // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html
776 // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html
777 // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html
778 // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html
779 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
780 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
781 // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html
782 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
783 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
784 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
785 AWSS3KeyKey = attribute.Key("aws.s3.key")
786
787 // AWSS3PartNumberKey is the attribute Key conforming to the
788 // "aws.s3.part_number" semantic conventions. It represents the part number of
789 // the part being uploaded in a multipart-upload operation. This is a positive
790 // integer between 1 and 10,000.
791 //
792 // Type: int
793 // RequirementLevel: Recommended
794 // Stability: Development
795 //
796 // Examples: 3456
797 // Note: The `part_number` attribute is only applicable to the [upload-part]
798 // and [upload-part-copy] operations.
799 // The `part_number` attribute corresponds to the `--part-number` parameter of
800 // the
801 // [upload-part operation within the S3 API].
802 //
803 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
804 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
805 // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
806 AWSS3PartNumberKey = attribute.Key("aws.s3.part_number")
807
808 // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id"
809 // semantic conventions. It represents the upload ID that identifies the
810 // multipart upload.
811 //
812 // Type: string
813 // RequirementLevel: Recommended
814 // Stability: Development
815 //
816 // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ"
817 // Note: The `upload_id` attribute applies to S3 multipart-upload operations and
818 // corresponds to the `--upload-id` parameter
819 // of the [S3 API] multipart operations.
820 // This applies in particular to the following operations:
821 //
822 // - [abort-multipart-upload]
823 // - [complete-multipart-upload]
824 // - [list-parts]
825 // - [upload-part]
826 // - [upload-part-copy]
827 //
828 //
829 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
830 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
831 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
832 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
833 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
834 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
835 AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id")
836 )
837
838 // AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to
839 // the "aws.dynamodb.attribute_definitions" semantic conventions. It represents
840 // the JSON-serialized value of each item in the `AttributeDefinitions` request
841 // field.
842 func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue {
843 return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val)
844 }
845
846 // AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the
847 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value
848 // of the `AttributesToGet` request parameter.
849 func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue {
850 return AWSDynamoDBAttributesToGetKey.StringSlice(val)
851 }
852
853 // AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the
854 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
855 // of the `ConsistentRead` request parameter.
856 func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue {
857 return AWSDynamoDBConsistentReadKey.Bool(val)
858 }
859
860 // AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the
861 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
862 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
863 func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue {
864 return AWSDynamoDBConsumedCapacityKey.StringSlice(val)
865 }
866
867 // AWSDynamoDBCount returns an attribute KeyValue conforming to the
868 // "aws.dynamodb.count" semantic conventions. It represents the value of the
869 // `Count` response parameter.
870 func AWSDynamoDBCount(val int) attribute.KeyValue {
871 return AWSDynamoDBCountKey.Int(val)
872 }
873
874 // AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the
875 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
876 // value of the `ExclusiveStartTableName` request parameter.
877 func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue {
878 return AWSDynamoDBExclusiveStartTableKey.String(val)
879 }
880
881 // AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue
882 // conforming to the "aws.dynamodb.global_secondary_index_updates" semantic
883 // conventions. It represents the JSON-serialized value of each item in the
884 // `GlobalSecondaryIndexUpdates` request field.
885 func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue {
886 return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val)
887 }
888
889 // AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to
890 // the "aws.dynamodb.global_secondary_indexes" semantic conventions. It
891 // represents the JSON-serialized value of each item of the
892 // `GlobalSecondaryIndexes` request field.
893 func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue {
894 return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val)
895 }
896
897 // AWSDynamoDBIndexName returns an attribute KeyValue conforming to the
898 // "aws.dynamodb.index_name" semantic conventions. It represents the value of the
899 // `IndexName` request parameter.
900 func AWSDynamoDBIndexName(val string) attribute.KeyValue {
901 return AWSDynamoDBIndexNameKey.String(val)
902 }
903
904 // AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to
905 // the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
906 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
907 func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue {
908 return AWSDynamoDBItemCollectionMetricsKey.String(val)
909 }
910
911 // AWSDynamoDBLimit returns an attribute KeyValue conforming to the
912 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
913 // `Limit` request parameter.
914 func AWSDynamoDBLimit(val int) attribute.KeyValue {
915 return AWSDynamoDBLimitKey.Int(val)
916 }
917
918 // AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to
919 // the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
920 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
921 // field.
922 func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue {
923 return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val)
924 }
925
926 // AWSDynamoDBProjection returns an attribute KeyValue conforming to the
927 // "aws.dynamodb.projection" semantic conventions. It represents the value of the
928 // `ProjectionExpression` request parameter.
929 func AWSDynamoDBProjection(val string) attribute.KeyValue {
930 return AWSDynamoDBProjectionKey.String(val)
931 }
932
933 // AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to
934 // the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It
935 // represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request
936 // parameter.
937 func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue {
938 return AWSDynamoDBProvisionedReadCapacityKey.Float64(val)
939 }
940
941 // AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming
942 // to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It
943 // represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request
944 // parameter.
945 func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue {
946 return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val)
947 }
948
949 // AWSDynamoDBScanForward returns an attribute KeyValue conforming to the
950 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
951 // the `ScanIndexForward` request parameter.
952 func AWSDynamoDBScanForward(val bool) attribute.KeyValue {
953 return AWSDynamoDBScanForwardKey.Bool(val)
954 }
955
956 // AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the
957 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
958 // the `ScannedCount` response parameter.
959 func AWSDynamoDBScannedCount(val int) attribute.KeyValue {
960 return AWSDynamoDBScannedCountKey.Int(val)
961 }
962
963 // AWSDynamoDBSegment returns an attribute KeyValue conforming to the
964 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
965 // `Segment` request parameter.
966 func AWSDynamoDBSegment(val int) attribute.KeyValue {
967 return AWSDynamoDBSegmentKey.Int(val)
968 }
969
970 // AWSDynamoDBSelect returns an attribute KeyValue conforming to the
971 // "aws.dynamodb.select" semantic conventions. It represents the value of the
972 // `Select` request parameter.
973 func AWSDynamoDBSelect(val string) attribute.KeyValue {
974 return AWSDynamoDBSelectKey.String(val)
975 }
976
977 // AWSDynamoDBTableCount returns an attribute KeyValue conforming to the
978 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
979 // items in the `TableNames` response parameter.
980 func AWSDynamoDBTableCount(val int) attribute.KeyValue {
981 return AWSDynamoDBTableCountKey.Int(val)
982 }
983
984 // AWSDynamoDBTableNames returns an attribute KeyValue conforming to the
985 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in the
986 // `RequestItems` object field.
987 func AWSDynamoDBTableNames(val ...string) attribute.KeyValue {
988 return AWSDynamoDBTableNamesKey.StringSlice(val)
989 }
990
991 // AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the
992 // "aws.dynamodb.total_segments" semantic conventions. It represents the value of
993 // the `TotalSegments` request parameter.
994 func AWSDynamoDBTotalSegments(val int) attribute.KeyValue {
995 return AWSDynamoDBTotalSegmentsKey.Int(val)
996 }
997
998 // AWSECSClusterARN returns an attribute KeyValue conforming to the
999 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
1000 // [ECS cluster].
1001 //
1002 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
1003 func AWSECSClusterARN(val string) attribute.KeyValue {
1004 return AWSECSClusterARNKey.String(val)
1005 }
1006
1007 // AWSECSContainerARN returns an attribute KeyValue conforming to the
1008 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
1009 // Resource Name (ARN) of an [ECS container instance].
1010 //
1011 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
1012 func AWSECSContainerARN(val string) attribute.KeyValue {
1013 return AWSECSContainerARNKey.String(val)
1014 }
1015
1016 // AWSECSTaskARN returns an attribute KeyValue conforming to the
1017 // "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running
1018 // [ECS task].
1019 //
1020 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
1021 func AWSECSTaskARN(val string) attribute.KeyValue {
1022 return AWSECSTaskARNKey.String(val)
1023 }
1024
1025 // AWSECSTaskFamily returns an attribute KeyValue conforming to the
1026 // "aws.ecs.task.family" semantic conventions. It represents the family name of
1027 // the [ECS task definition] used to create the ECS task.
1028 //
1029 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
1030 func AWSECSTaskFamily(val string) attribute.KeyValue {
1031 return AWSECSTaskFamilyKey.String(val)
1032 }
1033
1034 // AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id"
1035 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
1036 // be extracted from `task.arn`.
1037 func AWSECSTaskID(val string) attribute.KeyValue {
1038 return AWSECSTaskIDKey.String(val)
1039 }
1040
1041 // AWSECSTaskRevision returns an attribute KeyValue conforming to the
1042 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
1043 // the task definition used to create the ECS task.
1044 func AWSECSTaskRevision(val string) attribute.KeyValue {
1045 return AWSECSTaskRevisionKey.String(val)
1046 }
1047
1048 // AWSEKSClusterARN returns an attribute KeyValue conforming to the
1049 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
1050 // cluster.
1051 func AWSEKSClusterARN(val string) attribute.KeyValue {
1052 return AWSEKSClusterARNKey.String(val)
1053 }
1054
1055 // AWSExtendedRequestID returns an attribute KeyValue conforming to the
1056 // "aws.extended_request_id" semantic conventions. It represents the AWS extended
1057 // request ID as returned in the response header `x-amz-id-2`.
1058 func AWSExtendedRequestID(val string) attribute.KeyValue {
1059 return AWSExtendedRequestIDKey.String(val)
1060 }
1061
1062 // AWSLambdaInvokedARN returns an attribute KeyValue conforming to the
1063 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
1064 // ARN as provided on the `Context` passed to the function (
1065 // `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next`
1066 // applicable).
1067 func AWSLambdaInvokedARN(val string) attribute.KeyValue {
1068 return AWSLambdaInvokedARNKey.String(val)
1069 }
1070
1071 // AWSLogGroupARNs returns an attribute KeyValue conforming to the
1072 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
1073 // Name(s) (ARN) of the AWS log group(s).
1074 func AWSLogGroupARNs(val ...string) attribute.KeyValue {
1075 return AWSLogGroupARNsKey.StringSlice(val)
1076 }
1077
1078 // AWSLogGroupNames returns an attribute KeyValue conforming to the
1079 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
1080 // AWS log group(s) an application is writing to.
1081 func AWSLogGroupNames(val ...string) attribute.KeyValue {
1082 return AWSLogGroupNamesKey.StringSlice(val)
1083 }
1084
1085 // AWSLogStreamARNs returns an attribute KeyValue conforming to the
1086 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
1087 // AWS log stream(s).
1088 func AWSLogStreamARNs(val ...string) attribute.KeyValue {
1089 return AWSLogStreamARNsKey.StringSlice(val)
1090 }
1091
1092 // AWSLogStreamNames returns an attribute KeyValue conforming to the
1093 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
1094 // AWS log stream(s) an application is writing to.
1095 func AWSLogStreamNames(val ...string) attribute.KeyValue {
1096 return AWSLogStreamNamesKey.StringSlice(val)
1097 }
1098
1099 // AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id"
1100 // semantic conventions. It represents the AWS request ID as returned in the
1101 // response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`
1102 // .
1103 func AWSRequestID(val string) attribute.KeyValue {
1104 return AWSRequestIDKey.String(val)
1105 }
1106
1107 // AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket"
1108 // semantic conventions. It represents the S3 bucket name the request refers to.
1109 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
1110 //
1111 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1112 func AWSS3Bucket(val string) attribute.KeyValue {
1113 return AWSS3BucketKey.String(val)
1114 }
1115
1116 // AWSS3CopySource returns an attribute KeyValue conforming to the
1117 // "aws.s3.copy_source" semantic conventions. It represents the source object (in
1118 // the form `bucket`/`key`) for the copy operation.
1119 func AWSS3CopySource(val string) attribute.KeyValue {
1120 return AWSS3CopySourceKey.String(val)
1121 }
1122
1123 // AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete"
1124 // semantic conventions. It represents the delete request container that
1125 // specifies the objects to be deleted.
1126 func AWSS3Delete(val string) attribute.KeyValue {
1127 return AWSS3DeleteKey.String(val)
1128 }
1129
1130 // AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic
1131 // conventions. It represents the S3 object key the request refers to.
1132 // Corresponds to the `--key` parameter of the [S3 API] operations.
1133 //
1134 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1135 func AWSS3Key(val string) attribute.KeyValue {
1136 return AWSS3KeyKey.String(val)
1137 }
1138
1139 // AWSS3PartNumber returns an attribute KeyValue conforming to the
1140 // "aws.s3.part_number" semantic conventions. It represents the part number of
1141 // the part being uploaded in a multipart-upload operation. This is a positive
1142 // integer between 1 and 10,000.
1143 func AWSS3PartNumber(val int) attribute.KeyValue {
1144 return AWSS3PartNumberKey.Int(val)
1145 }
1146
1147 // AWSS3UploadID returns an attribute KeyValue conforming to the
1148 // "aws.s3.upload_id" semantic conventions. It represents the upload ID that
1149 // identifies the multipart upload.
1150 func AWSS3UploadID(val string) attribute.KeyValue {
1151 return AWSS3UploadIDKey.String(val)
1152 }
1153
1154 // Enum values for aws.ecs.launchtype
1155 var (
1156 // ec2
1157 // Stability: development
1158 AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2")
1159 // fargate
1160 // Stability: development
1161 AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate")
1162 )
1163
1164 // Namespace: az
1165 const (
1166 // AzNamespaceKey is the attribute Key conforming to the "az.namespace" semantic
1167 // conventions. It represents the [Azure Resource Provider Namespace] as
1168 // recognized by the client.
1169 //
1170 // Type: string
1171 // RequirementLevel: Recommended
1172 // Stability: Development
1173 //
1174 // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus"
1175 //
1176 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1177 AzNamespaceKey = attribute.Key("az.namespace")
1178
1179 // AzServiceRequestIDKey is the attribute Key conforming to the
1180 // "az.service_request_id" semantic conventions. It represents the unique
1181 // identifier of the service request. It's generated by the Azure service and
1182 // returned with the response.
1183 //
1184 // Type: string
1185 // RequirementLevel: Recommended
1186 // Stability: Development
1187 //
1188 // Examples: "00000000-0000-0000-0000-000000000000"
1189 AzServiceRequestIDKey = attribute.Key("az.service_request_id")
1190 )
1191
1192 // AzNamespace returns an attribute KeyValue conforming to the "az.namespace"
1193 // semantic conventions. It represents the [Azure Resource Provider Namespace] as
1194 // recognized by the client.
1195 //
1196 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1197 func AzNamespace(val string) attribute.KeyValue {
1198 return AzNamespaceKey.String(val)
1199 }
1200
1201 // AzServiceRequestID returns an attribute KeyValue conforming to the
1202 // "az.service_request_id" semantic conventions. It represents the unique
1203 // identifier of the service request. It's generated by the Azure service and
1204 // returned with the response.
1205 func AzServiceRequestID(val string) attribute.KeyValue {
1206 return AzServiceRequestIDKey.String(val)
1207 }
1208
1209 // Namespace: azure
1210 const (
1211 // AzureClientIDKey is the attribute Key conforming to the "azure.client.id"
1212 // semantic conventions. It represents the unique identifier of the client
1213 // instance.
1214 //
1215 // Type: string
1216 // RequirementLevel: Recommended
1217 // Stability: Development
1218 //
1219 // Examples: "3ba4827d-4422-483f-b59f-85b74211c11d", "storage-client-1"
1220 AzureClientIDKey = attribute.Key("azure.client.id")
1221
1222 // AzureCosmosDBConnectionModeKey is the attribute Key conforming to the
1223 // "azure.cosmosdb.connection.mode" semantic conventions. It represents the
1224 // cosmos client connection mode.
1225 //
1226 // Type: Enum
1227 // RequirementLevel: Recommended
1228 // Stability: Development
1229 //
1230 // Examples:
1231 AzureCosmosDBConnectionModeKey = attribute.Key("azure.cosmosdb.connection.mode")
1232
1233 // AzureCosmosDBConsistencyLevelKey is the attribute Key conforming to the
1234 // "azure.cosmosdb.consistency.level" semantic conventions. It represents the
1235 // account or request [consistency level].
1236 //
1237 // Type: Enum
1238 // RequirementLevel: Recommended
1239 // Stability: Development
1240 //
1241 // Examples: "Eventual", "ConsistentPrefix", "BoundedStaleness", "Strong",
1242 // "Session"
1243 //
1244 // [consistency level]: https://learn.microsoft.com/azure/cosmos-db/consistency-levels
1245 AzureCosmosDBConsistencyLevelKey = attribute.Key("azure.cosmosdb.consistency.level")
1246
1247 // AzureCosmosDBOperationContactedRegionsKey is the attribute Key conforming to
1248 // the "azure.cosmosdb.operation.contacted_regions" semantic conventions. It
1249 // represents the list of regions contacted during operation in the order that
1250 // they were contacted. If there is more than one region listed, it indicates
1251 // that the operation was performed on multiple regions i.e. cross-regional
1252 // call.
1253 //
1254 // Type: string[]
1255 // RequirementLevel: Recommended
1256 // Stability: Development
1257 //
1258 // Examples: "North Central US", "Australia East", "Australia Southeast"
1259 // Note: Region name matches the format of `displayName` in [Azure Location API]
1260 //
1261 // [Azure Location API]: https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location
1262 AzureCosmosDBOperationContactedRegionsKey = attribute.Key("azure.cosmosdb.operation.contacted_regions")
1263
1264 // AzureCosmosDBOperationRequestChargeKey is the attribute Key conforming to the
1265 // "azure.cosmosdb.operation.request_charge" semantic conventions. It represents
1266 // the number of request units consumed by the operation.
1267 //
1268 // Type: double
1269 // RequirementLevel: Recommended
1270 // Stability: Development
1271 //
1272 // Examples: 46.18, 1.0
1273 AzureCosmosDBOperationRequestChargeKey = attribute.Key("azure.cosmosdb.operation.request_charge")
1274
1275 // AzureCosmosDBRequestBodySizeKey is the attribute Key conforming to the
1276 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1277 // request payload size in bytes.
1278 //
1279 // Type: int
1280 // RequirementLevel: Recommended
1281 // Stability: Development
1282 //
1283 // Examples:
1284 AzureCosmosDBRequestBodySizeKey = attribute.Key("azure.cosmosdb.request.body.size")
1285
1286 // AzureCosmosDBResponseSubStatusCodeKey is the attribute Key conforming to the
1287 // "azure.cosmosdb.response.sub_status_code" semantic conventions. It represents
1288 // the cosmos DB sub status code.
1289 //
1290 // Type: int
1291 // RequirementLevel: Recommended
1292 // Stability: Development
1293 //
1294 // Examples: 1000, 1002
1295 AzureCosmosDBResponseSubStatusCodeKey = attribute.Key("azure.cosmosdb.response.sub_status_code")
1296 )
1297
1298 // AzureClientID returns an attribute KeyValue conforming to the
1299 // "azure.client.id" semantic conventions. It represents the unique identifier of
1300 // the client instance.
1301 func AzureClientID(val string) attribute.KeyValue {
1302 return AzureClientIDKey.String(val)
1303 }
1304
1305 // AzureCosmosDBOperationContactedRegions returns an attribute KeyValue
1306 // conforming to the "azure.cosmosdb.operation.contacted_regions" semantic
1307 // conventions. It represents the list of regions contacted during operation in
1308 // the order that they were contacted. If there is more than one region listed,
1309 // it indicates that the operation was performed on multiple regions i.e.
1310 // cross-regional call.
1311 func AzureCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue {
1312 return AzureCosmosDBOperationContactedRegionsKey.StringSlice(val)
1313 }
1314
1315 // AzureCosmosDBOperationRequestCharge returns an attribute KeyValue conforming
1316 // to the "azure.cosmosdb.operation.request_charge" semantic conventions. It
1317 // represents the number of request units consumed by the operation.
1318 func AzureCosmosDBOperationRequestCharge(val float64) attribute.KeyValue {
1319 return AzureCosmosDBOperationRequestChargeKey.Float64(val)
1320 }
1321
1322 // AzureCosmosDBRequestBodySize returns an attribute KeyValue conforming to the
1323 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1324 // request payload size in bytes.
1325 func AzureCosmosDBRequestBodySize(val int) attribute.KeyValue {
1326 return AzureCosmosDBRequestBodySizeKey.Int(val)
1327 }
1328
1329 // AzureCosmosDBResponseSubStatusCode returns an attribute KeyValue conforming to
1330 // the "azure.cosmosdb.response.sub_status_code" semantic conventions. It
1331 // represents the cosmos DB sub status code.
1332 func AzureCosmosDBResponseSubStatusCode(val int) attribute.KeyValue {
1333 return AzureCosmosDBResponseSubStatusCodeKey.Int(val)
1334 }
1335
1336 // Enum values for azure.cosmosdb.connection.mode
1337 var (
1338 // Gateway (HTTP) connection.
1339 // Stability: development
1340 AzureCosmosDBConnectionModeGateway = AzureCosmosDBConnectionModeKey.String("gateway")
1341 // Direct connection.
1342 // Stability: development
1343 AzureCosmosDBConnectionModeDirect = AzureCosmosDBConnectionModeKey.String("direct")
1344 )
1345
1346 // Enum values for azure.cosmosdb.consistency.level
1347 var (
1348 // strong
1349 // Stability: development
1350 AzureCosmosDBConsistencyLevelStrong = AzureCosmosDBConsistencyLevelKey.String("Strong")
1351 // bounded_staleness
1352 // Stability: development
1353 AzureCosmosDBConsistencyLevelBoundedStaleness = AzureCosmosDBConsistencyLevelKey.String("BoundedStaleness")
1354 // session
1355 // Stability: development
1356 AzureCosmosDBConsistencyLevelSession = AzureCosmosDBConsistencyLevelKey.String("Session")
1357 // eventual
1358 // Stability: development
1359 AzureCosmosDBConsistencyLevelEventual = AzureCosmosDBConsistencyLevelKey.String("Eventual")
1360 // consistent_prefix
1361 // Stability: development
1362 AzureCosmosDBConsistencyLevelConsistentPrefix = AzureCosmosDBConsistencyLevelKey.String("ConsistentPrefix")
1363 )
1364
1365 // Namespace: browser
1366 const (
1367 // BrowserBrandsKey is the attribute Key conforming to the "browser.brands"
1368 // semantic conventions. It represents the array of brand name and version
1369 // separated by a space.
1370 //
1371 // Type: string[]
1372 // RequirementLevel: Recommended
1373 // Stability: Development
1374 //
1375 // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99"
1376 // Note: This value is intended to be taken from the [UA client hints API] (
1377 // `navigator.userAgentData.brands`).
1378 //
1379 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1380 BrowserBrandsKey = attribute.Key("browser.brands")
1381
1382 // BrowserLanguageKey is the attribute Key conforming to the "browser.language"
1383 // semantic conventions. It represents the preferred language of the user using
1384 // the browser.
1385 //
1386 // Type: string
1387 // RequirementLevel: Recommended
1388 // Stability: Development
1389 //
1390 // Examples: "en", "en-US", "fr", "fr-FR"
1391 // Note: This value is intended to be taken from the Navigator API
1392 // `navigator.language`.
1393 BrowserLanguageKey = attribute.Key("browser.language")
1394
1395 // BrowserMobileKey is the attribute Key conforming to the "browser.mobile"
1396 // semantic conventions. It represents a boolean that is true if the browser is
1397 // running on a mobile device.
1398 //
1399 // Type: boolean
1400 // RequirementLevel: Recommended
1401 // Stability: Development
1402 //
1403 // Examples:
1404 // Note: This value is intended to be taken from the [UA client hints API] (
1405 // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be
1406 // left unset.
1407 //
1408 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1409 BrowserMobileKey = attribute.Key("browser.mobile")
1410
1411 // BrowserPlatformKey is the attribute Key conforming to the "browser.platform"
1412 // semantic conventions. It represents the platform on which the browser is
1413 // running.
1414 //
1415 // Type: string
1416 // RequirementLevel: Recommended
1417 // Stability: Development
1418 //
1419 // Examples: "Windows", "macOS", "Android"
1420 // Note: This value is intended to be taken from the [UA client hints API] (
1421 // `navigator.userAgentData.platform`). If unavailable, the legacy
1422 // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD
1423 // be left unset in order for the values to be consistent.
1424 // The list of possible values is defined in the
1425 // [W3C User-Agent Client Hints specification]. Note that some (but not all) of
1426 // these values can overlap with values in the
1427 // [`os.type` and `os.name` attributes]. However, for consistency, the values in
1428 // the `browser.platform` attribute should capture the exact value that the user
1429 // agent provides.
1430 //
1431 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1432 // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform
1433 // [`os.type` and `os.name` attributes]: ./os.md
1434 BrowserPlatformKey = attribute.Key("browser.platform")
1435 )
1436
1437 // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands"
1438 // semantic conventions. It represents the array of brand name and version
1439 // separated by a space.
1440 func BrowserBrands(val ...string) attribute.KeyValue {
1441 return BrowserBrandsKey.StringSlice(val)
1442 }
1443
1444 // BrowserLanguage returns an attribute KeyValue conforming to the
1445 // "browser.language" semantic conventions. It represents the preferred language
1446 // of the user using the browser.
1447 func BrowserLanguage(val string) attribute.KeyValue {
1448 return BrowserLanguageKey.String(val)
1449 }
1450
1451 // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile"
1452 // semantic conventions. It represents a boolean that is true if the browser is
1453 // running on a mobile device.
1454 func BrowserMobile(val bool) attribute.KeyValue {
1455 return BrowserMobileKey.Bool(val)
1456 }
1457
1458 // BrowserPlatform returns an attribute KeyValue conforming to the
1459 // "browser.platform" semantic conventions. It represents the platform on which
1460 // the browser is running.
1461 func BrowserPlatform(val string) attribute.KeyValue {
1462 return BrowserPlatformKey.String(val)
1463 }
1464
1465 // Namespace: cassandra
1466 const (
1467 // CassandraConsistencyLevelKey is the attribute Key conforming to the
1468 // "cassandra.consistency.level" semantic conventions. It represents the
1469 // consistency level of the query. Based on consistency values from [CQL].
1470 //
1471 // Type: Enum
1472 // RequirementLevel: Recommended
1473 // Stability: Development
1474 //
1475 // Examples:
1476 //
1477 // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
1478 CassandraConsistencyLevelKey = attribute.Key("cassandra.consistency.level")
1479
1480 // CassandraCoordinatorDCKey is the attribute Key conforming to the
1481 // "cassandra.coordinator.dc" semantic conventions. It represents the data
1482 // center of the coordinating node for a query.
1483 //
1484 // Type: string
1485 // RequirementLevel: Recommended
1486 // Stability: Development
1487 //
1488 // Examples: us-west-2
1489 CassandraCoordinatorDCKey = attribute.Key("cassandra.coordinator.dc")
1490
1491 // CassandraCoordinatorIDKey is the attribute Key conforming to the
1492 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1493 // coordinating node for a query.
1494 //
1495 // Type: string
1496 // RequirementLevel: Recommended
1497 // Stability: Development
1498 //
1499 // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af
1500 CassandraCoordinatorIDKey = attribute.Key("cassandra.coordinator.id")
1501
1502 // CassandraPageSizeKey is the attribute Key conforming to the
1503 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1504 // for paging, i.e. how many rows will be returned at once.
1505 //
1506 // Type: int
1507 // RequirementLevel: Recommended
1508 // Stability: Development
1509 //
1510 // Examples: 5000
1511 CassandraPageSizeKey = attribute.Key("cassandra.page.size")
1512
1513 // CassandraQueryIdempotentKey is the attribute Key conforming to the
1514 // "cassandra.query.idempotent" semantic conventions. It represents the whether
1515 // or not the query is idempotent.
1516 //
1517 // Type: boolean
1518 // RequirementLevel: Recommended
1519 // Stability: Development
1520 //
1521 // Examples:
1522 CassandraQueryIdempotentKey = attribute.Key("cassandra.query.idempotent")
1523
1524 // CassandraSpeculativeExecutionCountKey is the attribute Key conforming to the
1525 // "cassandra.speculative_execution.count" semantic conventions. It represents
1526 // the number of times a query was speculatively executed. Not set or `0` if the
1527 // query was not executed speculatively.
1528 //
1529 // Type: int
1530 // RequirementLevel: Recommended
1531 // Stability: Development
1532 //
1533 // Examples: 0, 2
1534 CassandraSpeculativeExecutionCountKey = attribute.Key("cassandra.speculative_execution.count")
1535 )
1536
1537 // CassandraCoordinatorDC returns an attribute KeyValue conforming to the
1538 // "cassandra.coordinator.dc" semantic conventions. It represents the data center
1539 // of the coordinating node for a query.
1540 func CassandraCoordinatorDC(val string) attribute.KeyValue {
1541 return CassandraCoordinatorDCKey.String(val)
1542 }
1543
1544 // CassandraCoordinatorID returns an attribute KeyValue conforming to the
1545 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1546 // coordinating node for a query.
1547 func CassandraCoordinatorID(val string) attribute.KeyValue {
1548 return CassandraCoordinatorIDKey.String(val)
1549 }
1550
1551 // CassandraPageSize returns an attribute KeyValue conforming to the
1552 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1553 // for paging, i.e. how many rows will be returned at once.
1554 func CassandraPageSize(val int) attribute.KeyValue {
1555 return CassandraPageSizeKey.Int(val)
1556 }
1557
1558 // CassandraQueryIdempotent returns an attribute KeyValue conforming to the
1559 // "cassandra.query.idempotent" semantic conventions. It represents the whether
1560 // or not the query is idempotent.
1561 func CassandraQueryIdempotent(val bool) attribute.KeyValue {
1562 return CassandraQueryIdempotentKey.Bool(val)
1563 }
1564
1565 // CassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to
1566 // the "cassandra.speculative_execution.count" semantic conventions. It
1567 // represents the number of times a query was speculatively executed. Not set or
1568 // `0` if the query was not executed speculatively.
1569 func CassandraSpeculativeExecutionCount(val int) attribute.KeyValue {
1570 return CassandraSpeculativeExecutionCountKey.Int(val)
1571 }
1572
1573 // Enum values for cassandra.consistency.level
1574 var (
1575 // all
1576 // Stability: development
1577 CassandraConsistencyLevelAll = CassandraConsistencyLevelKey.String("all")
1578 // each_quorum
1579 // Stability: development
1580 CassandraConsistencyLevelEachQuorum = CassandraConsistencyLevelKey.String("each_quorum")
1581 // quorum
1582 // Stability: development
1583 CassandraConsistencyLevelQuorum = CassandraConsistencyLevelKey.String("quorum")
1584 // local_quorum
1585 // Stability: development
1586 CassandraConsistencyLevelLocalQuorum = CassandraConsistencyLevelKey.String("local_quorum")
1587 // one
1588 // Stability: development
1589 CassandraConsistencyLevelOne = CassandraConsistencyLevelKey.String("one")
1590 // two
1591 // Stability: development
1592 CassandraConsistencyLevelTwo = CassandraConsistencyLevelKey.String("two")
1593 // three
1594 // Stability: development
1595 CassandraConsistencyLevelThree = CassandraConsistencyLevelKey.String("three")
1596 // local_one
1597 // Stability: development
1598 CassandraConsistencyLevelLocalOne = CassandraConsistencyLevelKey.String("local_one")
1599 // any
1600 // Stability: development
1601 CassandraConsistencyLevelAny = CassandraConsistencyLevelKey.String("any")
1602 // serial
1603 // Stability: development
1604 CassandraConsistencyLevelSerial = CassandraConsistencyLevelKey.String("serial")
1605 // local_serial
1606 // Stability: development
1607 CassandraConsistencyLevelLocalSerial = CassandraConsistencyLevelKey.String("local_serial")
1608 )
1609
1610 // Namespace: cicd
1611 const (
1612 // CICDPipelineNameKey is the attribute Key conforming to the
1613 // "cicd.pipeline.name" semantic conventions. It represents the human readable
1614 // name of the pipeline within a CI/CD system.
1615 //
1616 // Type: string
1617 // RequirementLevel: Recommended
1618 // Stability: Development
1619 //
1620 // Examples: "Build and Test", "Lint", "Deploy Go Project",
1621 // "deploy_to_environment"
1622 CICDPipelineNameKey = attribute.Key("cicd.pipeline.name")
1623
1624 // CICDPipelineResultKey is the attribute Key conforming to the
1625 // "cicd.pipeline.result" semantic conventions. It represents the result of a
1626 // pipeline run.
1627 //
1628 // Type: Enum
1629 // RequirementLevel: Recommended
1630 // Stability: Development
1631 //
1632 // Examples: "success", "failure", "timeout", "skipped"
1633 CICDPipelineResultKey = attribute.Key("cicd.pipeline.result")
1634
1635 // CICDPipelineRunIDKey is the attribute Key conforming to the
1636 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
1637 // identifier of a pipeline run within a CI/CD system.
1638 //
1639 // Type: string
1640 // RequirementLevel: Recommended
1641 // Stability: Development
1642 //
1643 // Examples: "120912"
1644 CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id")
1645
1646 // CICDPipelineRunStateKey is the attribute Key conforming to the
1647 // "cicd.pipeline.run.state" semantic conventions. It represents the pipeline
1648 // run goes through these states during its lifecycle.
1649 //
1650 // Type: Enum
1651 // RequirementLevel: Recommended
1652 // Stability: Development
1653 //
1654 // Examples: "pending", "executing", "finalizing"
1655 CICDPipelineRunStateKey = attribute.Key("cicd.pipeline.run.state")
1656
1657 // CICDPipelineTaskNameKey is the attribute Key conforming to the
1658 // "cicd.pipeline.task.name" semantic conventions. It represents the human
1659 // readable name of a task within a pipeline. Task here most closely aligns with
1660 // a [computing process] in a pipeline. Other terms for tasks include commands,
1661 // steps, and procedures.
1662 //
1663 // Type: string
1664 // RequirementLevel: Recommended
1665 // Stability: Development
1666 //
1667 // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary"
1668 //
1669 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
1670 CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name")
1671
1672 // CICDPipelineTaskRunIDKey is the attribute Key conforming to the
1673 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
1674 // identifier of a task run within a pipeline.
1675 //
1676 // Type: string
1677 // RequirementLevel: Recommended
1678 // Stability: Development
1679 //
1680 // Examples: "12097"
1681 CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id")
1682
1683 // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the
1684 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
1685 // [URL] of the pipeline run providing the complete address in order to locate
1686 // and identify the pipeline run.
1687 //
1688 // Type: string
1689 // RequirementLevel: Recommended
1690 // Stability: Development
1691 //
1692 // Examples:
1693 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"
1694 //
1695 // [URL]: https://wikipedia.org/wiki/URL
1696 CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full")
1697
1698 // CICDPipelineTaskTypeKey is the attribute Key conforming to the
1699 // "cicd.pipeline.task.type" semantic conventions. It represents the type of the
1700 // task within a pipeline.
1701 //
1702 // Type: Enum
1703 // RequirementLevel: Recommended
1704 // Stability: Development
1705 //
1706 // Examples: "build", "test", "deploy"
1707 CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type")
1708
1709 // CICDSystemComponentKey is the attribute Key conforming to the
1710 // "cicd.system.component" semantic conventions. It represents the name of a
1711 // component of the CICD system.
1712 //
1713 // Type: string
1714 // RequirementLevel: Recommended
1715 // Stability: Development
1716 //
1717 // Examples: "controller", "scheduler", "agent"
1718 CICDSystemComponentKey = attribute.Key("cicd.system.component")
1719
1720 // CICDWorkerStateKey is the attribute Key conforming to the "cicd.worker.state"
1721 // semantic conventions. It represents the state of a CICD worker / agent.
1722 //
1723 // Type: Enum
1724 // RequirementLevel: Recommended
1725 // Stability: Development
1726 //
1727 // Examples: "idle", "busy", "down"
1728 CICDWorkerStateKey = attribute.Key("cicd.worker.state")
1729 )
1730
1731 // CICDPipelineName returns an attribute KeyValue conforming to the
1732 // "cicd.pipeline.name" semantic conventions. It represents the human readable
1733 // name of the pipeline within a CI/CD system.
1734 func CICDPipelineName(val string) attribute.KeyValue {
1735 return CICDPipelineNameKey.String(val)
1736 }
1737
1738 // CICDPipelineRunID returns an attribute KeyValue conforming to the
1739 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
1740 // identifier of a pipeline run within a CI/CD system.
1741 func CICDPipelineRunID(val string) attribute.KeyValue {
1742 return CICDPipelineRunIDKey.String(val)
1743 }
1744
1745 // CICDPipelineTaskName returns an attribute KeyValue conforming to the
1746 // "cicd.pipeline.task.name" semantic conventions. It represents the human
1747 // readable name of a task within a pipeline. Task here most closely aligns with
1748 // a [computing process] in a pipeline. Other terms for tasks include commands,
1749 // steps, and procedures.
1750 //
1751 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
1752 func CICDPipelineTaskName(val string) attribute.KeyValue {
1753 return CICDPipelineTaskNameKey.String(val)
1754 }
1755
1756 // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the
1757 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
1758 // identifier of a task run within a pipeline.
1759 func CICDPipelineTaskRunID(val string) attribute.KeyValue {
1760 return CICDPipelineTaskRunIDKey.String(val)
1761 }
1762
1763 // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the
1764 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
1765 // [URL] of the pipeline run providing the complete address in order to locate
1766 // and identify the pipeline run.
1767 //
1768 // [URL]: https://wikipedia.org/wiki/URL
1769 func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue {
1770 return CICDPipelineTaskRunURLFullKey.String(val)
1771 }
1772
1773 // CICDSystemComponent returns an attribute KeyValue conforming to the
1774 // "cicd.system.component" semantic conventions. It represents the name of a
1775 // component of the CICD system.
1776 func CICDSystemComponent(val string) attribute.KeyValue {
1777 return CICDSystemComponentKey.String(val)
1778 }
1779
1780 // Enum values for cicd.pipeline.result
1781 var (
1782 // The pipeline run finished successfully.
1783 // Stability: development
1784 CICDPipelineResultSuccess = CICDPipelineResultKey.String("success")
1785 // The pipeline run did not finish successfully, eg. due to a compile error or a
1786 // failing test. Such failures are usually detected by non-zero exit codes of
1787 // the tools executed in the pipeline run.
1788 // Stability: development
1789 CICDPipelineResultFailure = CICDPipelineResultKey.String("failure")
1790 // The pipeline run failed due to an error in the CICD system, eg. due to the
1791 // worker being killed.
1792 // Stability: development
1793 CICDPipelineResultError = CICDPipelineResultKey.String("error")
1794 // A timeout caused the pipeline run to be interrupted.
1795 // Stability: development
1796 CICDPipelineResultTimeout = CICDPipelineResultKey.String("timeout")
1797 // The pipeline run was cancelled, eg. by a user manually cancelling the
1798 // pipeline run.
1799 // Stability: development
1800 CICDPipelineResultCancellation = CICDPipelineResultKey.String("cancellation")
1801 // The pipeline run was skipped, eg. due to a precondition not being met.
1802 // Stability: development
1803 CICDPipelineResultSkip = CICDPipelineResultKey.String("skip")
1804 )
1805
1806 // Enum values for cicd.pipeline.run.state
1807 var (
1808 // The run pending state spans from the event triggering the pipeline run until
1809 // the execution of the run starts (eg. time spent in a queue, provisioning
1810 // agents, creating run resources).
1811 //
1812 // Stability: development
1813 CICDPipelineRunStatePending = CICDPipelineRunStateKey.String("pending")
1814 // The executing state spans the execution of any run tasks (eg. build, test).
1815 // Stability: development
1816 CICDPipelineRunStateExecuting = CICDPipelineRunStateKey.String("executing")
1817 // The finalizing state spans from when the run has finished executing (eg.
1818 // cleanup of run resources).
1819 // Stability: development
1820 CICDPipelineRunStateFinalizing = CICDPipelineRunStateKey.String("finalizing")
1821 )
1822
1823 // Enum values for cicd.pipeline.task.type
1824 var (
1825 // build
1826 // Stability: development
1827 CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build")
1828 // test
1829 // Stability: development
1830 CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test")
1831 // deploy
1832 // Stability: development
1833 CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy")
1834 )
1835
1836 // Enum values for cicd.worker.state
1837 var (
1838 // The worker is not performing work for the CICD system. It is available to the
1839 // CICD system to perform work on (online / idle).
1840 // Stability: development
1841 CICDWorkerStateAvailable = CICDWorkerStateKey.String("available")
1842 // The worker is performing work for the CICD system.
1843 // Stability: development
1844 CICDWorkerStateBusy = CICDWorkerStateKey.String("busy")
1845 // The worker is not available to the CICD system (disconnected / down).
1846 // Stability: development
1847 CICDWorkerStateOffline = CICDWorkerStateKey.String("offline")
1848 )
1849
1850 // Namespace: client
1851 const (
1852 // ClientAddressKey is the attribute Key conforming to the "client.address"
1853 // semantic conventions. It represents the client address - domain name if
1854 // available without reverse DNS lookup; otherwise, IP address or Unix domain
1855 // socket name.
1856 //
1857 // Type: string
1858 // RequirementLevel: Recommended
1859 // Stability: Stable
1860 //
1861 // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock"
1862 // Note: When observed from the server side, and when communicating through an
1863 // intermediary, `client.address` SHOULD represent the client address behind any
1864 // intermediaries, for example proxies, if it's available.
1865 ClientAddressKey = attribute.Key("client.address")
1866
1867 // ClientPortKey is the attribute Key conforming to the "client.port" semantic
1868 // conventions. It represents the client port number.
1869 //
1870 // Type: int
1871 // RequirementLevel: Recommended
1872 // Stability: Stable
1873 //
1874 // Examples: 65123
1875 // Note: When observed from the server side, and when communicating through an
1876 // intermediary, `client.port` SHOULD represent the client port behind any
1877 // intermediaries, for example proxies, if it's available.
1878 ClientPortKey = attribute.Key("client.port")
1879 )
1880
1881 // ClientAddress returns an attribute KeyValue conforming to the "client.address"
1882 // semantic conventions. It represents the client address - domain name if
1883 // available without reverse DNS lookup; otherwise, IP address or Unix domain
1884 // socket name.
1885 func ClientAddress(val string) attribute.KeyValue {
1886 return ClientAddressKey.String(val)
1887 }
1888
1889 // ClientPort returns an attribute KeyValue conforming to the "client.port"
1890 // semantic conventions. It represents the client port number.
1891 func ClientPort(val int) attribute.KeyValue {
1892 return ClientPortKey.Int(val)
1893 }
1894
1895 // Namespace: cloud
1896 const (
1897 // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id"
1898 // semantic conventions. It represents the cloud account ID the resource is
1899 // assigned to.
1900 //
1901 // Type: string
1902 // RequirementLevel: Recommended
1903 // Stability: Development
1904 //
1905 // Examples: "111111111111", "opentelemetry"
1906 CloudAccountIDKey = attribute.Key("cloud.account.id")
1907
1908 // CloudAvailabilityZoneKey is the attribute Key conforming to the
1909 // "cloud.availability_zone" semantic conventions. It represents the cloud
1910 // regions often have multiple, isolated locations known as zones to increase
1911 // availability. Availability zone represents the zone where the resource is
1912 // running.
1913 //
1914 // Type: string
1915 // RequirementLevel: Recommended
1916 // Stability: Development
1917 //
1918 // Examples: "us-east-1c"
1919 // Note: Availability zones are called "zones" on Alibaba Cloud and Google
1920 // Cloud.
1921 CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
1922
1923 // CloudPlatformKey is the attribute Key conforming to the "cloud.platform"
1924 // semantic conventions. It represents the cloud platform in use.
1925 //
1926 // Type: Enum
1927 // RequirementLevel: Recommended
1928 // Stability: Development
1929 //
1930 // Examples:
1931 // Note: The prefix of the service SHOULD match the one specified in
1932 // `cloud.provider`.
1933 CloudPlatformKey = attribute.Key("cloud.platform")
1934
1935 // CloudProviderKey is the attribute Key conforming to the "cloud.provider"
1936 // semantic conventions. It represents the name of the cloud provider.
1937 //
1938 // Type: Enum
1939 // RequirementLevel: Recommended
1940 // Stability: Development
1941 //
1942 // Examples:
1943 CloudProviderKey = attribute.Key("cloud.provider")
1944
1945 // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic
1946 // conventions. It represents the geographical region the resource is running.
1947 //
1948 // Type: string
1949 // RequirementLevel: Recommended
1950 // Stability: Development
1951 //
1952 // Examples: "us-central1", "us-east-1"
1953 // Note: Refer to your provider's docs to see the available regions, for example
1954 // [Alibaba Cloud regions], [AWS regions], [Azure regions],
1955 // [Google Cloud regions], or [Tencent Cloud regions].
1956 //
1957 // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm
1958 // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/
1959 // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/
1960 // [Google Cloud regions]: https://cloud.google.com/about/locations
1961 // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091
1962 CloudRegionKey = attribute.Key("cloud.region")
1963
1964 // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id"
1965 // semantic conventions. It represents the cloud provider-specific native
1966 // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a
1967 // [fully qualified resource ID] on Azure, a [full resource name] on GCP).
1968 //
1969 // Type: string
1970 // RequirementLevel: Recommended
1971 // Stability: Development
1972 //
1973 // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",
1974 // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID",
1975 // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>
1976 // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>"
1977 // Note: On some cloud providers, it may not be possible to determine the full
1978 // ID at startup,
1979 // so it may be necessary to set `cloud.resource_id` as a span attribute
1980 // instead.
1981 //
1982 // The exact value to use for `cloud.resource_id` depends on the cloud provider.
1983 // The following well-known definitions MUST be used if you set this attribute
1984 // and they apply:
1985 //
1986 // - **AWS Lambda:** The function [ARN].
1987 // Take care not to use the "invoked ARN" directly but replace any
1988 // [alias suffix]
1989 // with the resolved function version, as the same runtime instance may be
1990 // invocable with
1991 // multiple different aliases.
1992 // - **GCP:** The [URI of the resource]
1993 // - **Azure:** The [Fully Qualified Resource ID] of the invoked function,
1994 // *not* the function app, having the form
1995 //
1996 // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`
1997 // .
1998 // This means that a span attribute MUST be used, as an Azure function app
1999 // can host multiple functions that would usually share
2000 // a TracerProvider.
2001 //
2002 //
2003 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2004 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2005 // [full resource name]: https://cloud.google.com/apis/design/resource_names#full_resource_name
2006 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2007 // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
2008 // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names
2009 // [Fully Qualified Resource ID]: https://docs.microsoft.com/rest/api/resources/resources/get-by-id
2010 CloudResourceIDKey = attribute.Key("cloud.resource_id")
2011 )
2012
2013 // CloudAccountID returns an attribute KeyValue conforming to the
2014 // "cloud.account.id" semantic conventions. It represents the cloud account ID
2015 // the resource is assigned to.
2016 func CloudAccountID(val string) attribute.KeyValue {
2017 return CloudAccountIDKey.String(val)
2018 }
2019
2020 // CloudAvailabilityZone returns an attribute KeyValue conforming to the
2021 // "cloud.availability_zone" semantic conventions. It represents the cloud
2022 // regions often have multiple, isolated locations known as zones to increase
2023 // availability. Availability zone represents the zone where the resource is
2024 // running.
2025 func CloudAvailabilityZone(val string) attribute.KeyValue {
2026 return CloudAvailabilityZoneKey.String(val)
2027 }
2028
2029 // CloudRegion returns an attribute KeyValue conforming to the "cloud.region"
2030 // semantic conventions. It represents the geographical region the resource is
2031 // running.
2032 func CloudRegion(val string) attribute.KeyValue {
2033 return CloudRegionKey.String(val)
2034 }
2035
2036 // CloudResourceID returns an attribute KeyValue conforming to the
2037 // "cloud.resource_id" semantic conventions. It represents the cloud
2038 // provider-specific native identifier of the monitored cloud resource (e.g. an
2039 // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name]
2040 // on GCP).
2041 //
2042 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2043 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2044 // [full resource name]: https://cloud.google.com/apis/design/resource_names#full_resource_name
2045 func CloudResourceID(val string) attribute.KeyValue {
2046 return CloudResourceIDKey.String(val)
2047 }
2048
2049 // Enum values for cloud.platform
2050 var (
2051 // Alibaba Cloud Elastic Compute Service
2052 // Stability: development
2053 CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
2054 // Alibaba Cloud Function Compute
2055 // Stability: development
2056 CloudPlatformAlibabaCloudFc = CloudPlatformKey.String("alibaba_cloud_fc")
2057 // Red Hat OpenShift on Alibaba Cloud
2058 // Stability: development
2059 CloudPlatformAlibabaCloudOpenshift = CloudPlatformKey.String("alibaba_cloud_openshift")
2060 // AWS Elastic Compute Cloud
2061 // Stability: development
2062 CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
2063 // AWS Elastic Container Service
2064 // Stability: development
2065 CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
2066 // AWS Elastic Kubernetes Service
2067 // Stability: development
2068 CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
2069 // AWS Lambda
2070 // Stability: development
2071 CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
2072 // AWS Elastic Beanstalk
2073 // Stability: development
2074 CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
2075 // AWS App Runner
2076 // Stability: development
2077 CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
2078 // Red Hat OpenShift on AWS (ROSA)
2079 // Stability: development
2080 CloudPlatformAWSOpenshift = CloudPlatformKey.String("aws_openshift")
2081 // Azure Virtual Machines
2082 // Stability: development
2083 CloudPlatformAzureVM = CloudPlatformKey.String("azure_vm")
2084 // Azure Container Apps
2085 // Stability: development
2086 CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure_container_apps")
2087 // Azure Container Instances
2088 // Stability: development
2089 CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure_container_instances")
2090 // Azure Kubernetes Service
2091 // Stability: development
2092 CloudPlatformAzureAKS = CloudPlatformKey.String("azure_aks")
2093 // Azure Functions
2094 // Stability: development
2095 CloudPlatformAzureFunctions = CloudPlatformKey.String("azure_functions")
2096 // Azure App Service
2097 // Stability: development
2098 CloudPlatformAzureAppService = CloudPlatformKey.String("azure_app_service")
2099 // Azure Red Hat OpenShift
2100 // Stability: development
2101 CloudPlatformAzureOpenshift = CloudPlatformKey.String("azure_openshift")
2102 // Google Bare Metal Solution (BMS)
2103 // Stability: development
2104 CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
2105 // Google Cloud Compute Engine (GCE)
2106 // Stability: development
2107 CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
2108 // Google Cloud Run
2109 // Stability: development
2110 CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
2111 // Google Cloud Kubernetes Engine (GKE)
2112 // Stability: development
2113 CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
2114 // Google Cloud Functions (GCF)
2115 // Stability: development
2116 CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
2117 // Google Cloud App Engine (GAE)
2118 // Stability: development
2119 CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
2120 // Red Hat OpenShift on Google Cloud
2121 // Stability: development
2122 CloudPlatformGCPOpenshift = CloudPlatformKey.String("gcp_openshift")
2123 // Red Hat OpenShift on IBM Cloud
2124 // Stability: development
2125 CloudPlatformIbmCloudOpenshift = CloudPlatformKey.String("ibm_cloud_openshift")
2126 // Compute on Oracle Cloud Infrastructure (OCI)
2127 // Stability: development
2128 CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute")
2129 // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI)
2130 // Stability: development
2131 CloudPlatformOracleCloudOke = CloudPlatformKey.String("oracle_cloud_oke")
2132 // Tencent Cloud Cloud Virtual Machine (CVM)
2133 // Stability: development
2134 CloudPlatformTencentCloudCvm = CloudPlatformKey.String("tencent_cloud_cvm")
2135 // Tencent Cloud Elastic Kubernetes Service (EKS)
2136 // Stability: development
2137 CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
2138 // Tencent Cloud Serverless Cloud Function (SCF)
2139 // Stability: development
2140 CloudPlatformTencentCloudScf = CloudPlatformKey.String("tencent_cloud_scf")
2141 )
2142
2143 // Enum values for cloud.provider
2144 var (
2145 // Alibaba Cloud
2146 // Stability: development
2147 CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
2148 // Amazon Web Services
2149 // Stability: development
2150 CloudProviderAWS = CloudProviderKey.String("aws")
2151 // Microsoft Azure
2152 // Stability: development
2153 CloudProviderAzure = CloudProviderKey.String("azure")
2154 // Google Cloud Platform
2155 // Stability: development
2156 CloudProviderGCP = CloudProviderKey.String("gcp")
2157 // Heroku Platform as a Service
2158 // Stability: development
2159 CloudProviderHeroku = CloudProviderKey.String("heroku")
2160 // IBM Cloud
2161 // Stability: development
2162 CloudProviderIbmCloud = CloudProviderKey.String("ibm_cloud")
2163 // Oracle Cloud Infrastructure (OCI)
2164 // Stability: development
2165 CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud")
2166 // Tencent Cloud
2167 // Stability: development
2168 CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
2169 )
2170
2171 // Namespace: cloudevents
2172 const (
2173 // CloudeventsEventIDKey is the attribute Key conforming to the
2174 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2175 // uniquely identifies the event.
2176 //
2177 // Type: string
2178 // RequirementLevel: Recommended
2179 // Stability: Development
2180 //
2181 // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
2182 //
2183 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2184 CloudeventsEventIDKey = attribute.Key("cloudevents.event_id")
2185
2186 // CloudeventsEventSourceKey is the attribute Key conforming to the
2187 // "cloudevents.event_source" semantic conventions. It represents the [source]
2188 // identifies the context in which an event happened.
2189 //
2190 // Type: string
2191 // RequirementLevel: Recommended
2192 // Stability: Development
2193 //
2194 // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
2195 // "my-service"
2196 //
2197 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2198 CloudeventsEventSourceKey = attribute.Key("cloudevents.event_source")
2199
2200 // CloudeventsEventSpecVersionKey is the attribute Key conforming to the
2201 // "cloudevents.event_spec_version" semantic conventions. It represents the
2202 // [version of the CloudEvents specification] which the event uses.
2203 //
2204 // Type: string
2205 // RequirementLevel: Recommended
2206 // Stability: Development
2207 //
2208 // Examples: 1.0
2209 //
2210 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2211 CloudeventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
2212
2213 // CloudeventsEventSubjectKey is the attribute Key conforming to the
2214 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2215 // of the event in the context of the event producer (identified by source).
2216 //
2217 // Type: string
2218 // RequirementLevel: Recommended
2219 // Stability: Development
2220 //
2221 // Examples: mynewfile.jpg
2222 //
2223 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2224 CloudeventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
2225
2226 // CloudeventsEventTypeKey is the attribute Key conforming to the
2227 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2228 // contains a value describing the type of event related to the originating
2229 // occurrence.
2230 //
2231 // Type: string
2232 // RequirementLevel: Recommended
2233 // Stability: Development
2234 //
2235 // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
2236 //
2237 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2238 CloudeventsEventTypeKey = attribute.Key("cloudevents.event_type")
2239 )
2240
2241 // CloudeventsEventID returns an attribute KeyValue conforming to the
2242 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2243 // uniquely identifies the event.
2244 //
2245 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2246 func CloudeventsEventID(val string) attribute.KeyValue {
2247 return CloudeventsEventIDKey.String(val)
2248 }
2249
2250 // CloudeventsEventSource returns an attribute KeyValue conforming to the
2251 // "cloudevents.event_source" semantic conventions. It represents the [source]
2252 // identifies the context in which an event happened.
2253 //
2254 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2255 func CloudeventsEventSource(val string) attribute.KeyValue {
2256 return CloudeventsEventSourceKey.String(val)
2257 }
2258
2259 // CloudeventsEventSpecVersion returns an attribute KeyValue conforming to the
2260 // "cloudevents.event_spec_version" semantic conventions. It represents the
2261 // [version of the CloudEvents specification] which the event uses.
2262 //
2263 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2264 func CloudeventsEventSpecVersion(val string) attribute.KeyValue {
2265 return CloudeventsEventSpecVersionKey.String(val)
2266 }
2267
2268 // CloudeventsEventSubject returns an attribute KeyValue conforming to the
2269 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2270 // of the event in the context of the event producer (identified by source).
2271 //
2272 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2273 func CloudeventsEventSubject(val string) attribute.KeyValue {
2274 return CloudeventsEventSubjectKey.String(val)
2275 }
2276
2277 // CloudeventsEventType returns an attribute KeyValue conforming to the
2278 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2279 // contains a value describing the type of event related to the originating
2280 // occurrence.
2281 //
2282 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2283 func CloudeventsEventType(val string) attribute.KeyValue {
2284 return CloudeventsEventTypeKey.String(val)
2285 }
2286
2287 // Namespace: cloudfoundry
2288 const (
2289 // CloudfoundryAppIDKey is the attribute Key conforming to the
2290 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2291 // application.
2292 //
2293 // Type: string
2294 // RequirementLevel: Recommended
2295 // Stability: Development
2296 //
2297 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2298 // Note: Application instrumentation should use the value from environment
2299 // variable `VCAP_APPLICATION.application_id`. This is the same value as
2300 // reported by `cf app <app-name> --guid`.
2301 CloudfoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
2302
2303 // CloudfoundryAppInstanceIDKey is the attribute Key conforming to the
2304 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2305 // of the application instance. 0 when just one instance is active.
2306 //
2307 // Type: string
2308 // RequirementLevel: Recommended
2309 // Stability: Development
2310 //
2311 // Examples: "0", "1"
2312 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2313 // .
2314 // It is used for logs and metrics emitted by CloudFoundry. It is
2315 // supposed to contain the application instance index for applications
2316 // deployed on the runtime.
2317 //
2318 // Application instrumentation should use the value from environment
2319 // variable `CF_INSTANCE_INDEX`.
2320 //
2321 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2322 CloudfoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
2323
2324 // CloudfoundryAppNameKey is the attribute Key conforming to the
2325 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2326 // application.
2327 //
2328 // Type: string
2329 // RequirementLevel: Recommended
2330 // Stability: Development
2331 //
2332 // Examples: "my-app-name"
2333 // Note: Application instrumentation should use the value from environment
2334 // variable `VCAP_APPLICATION.application_name`. This is the same value
2335 // as reported by `cf apps`.
2336 CloudfoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
2337
2338 // CloudfoundryOrgIDKey is the attribute Key conforming to the
2339 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
2340 // CloudFoundry org the application is running in.
2341 //
2342 // Type: string
2343 // RequirementLevel: Recommended
2344 // Stability: Development
2345 //
2346 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2347 // Note: Application instrumentation should use the value from environment
2348 // variable `VCAP_APPLICATION.org_id`. This is the same value as
2349 // reported by `cf org <org-name> --guid`.
2350 CloudfoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
2351
2352 // CloudfoundryOrgNameKey is the attribute Key conforming to the
2353 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
2354 // CloudFoundry organization the app is running in.
2355 //
2356 // Type: string
2357 // RequirementLevel: Recommended
2358 // Stability: Development
2359 //
2360 // Examples: "my-org-name"
2361 // Note: Application instrumentation should use the value from environment
2362 // variable `VCAP_APPLICATION.org_name`. This is the same value as
2363 // reported by `cf orgs`.
2364 CloudfoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
2365
2366 // CloudfoundryProcessIDKey is the attribute Key conforming to the
2367 // "cloudfoundry.process.id" semantic conventions. It represents the UID
2368 // identifying the process.
2369 //
2370 // Type: string
2371 // RequirementLevel: Recommended
2372 // Stability: Development
2373 //
2374 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2375 // Note: Application instrumentation should use the value from environment
2376 // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
2377 // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
2378 // For system components, this could be the actual PID.
2379 CloudfoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
2380
2381 // CloudfoundryProcessTypeKey is the attribute Key conforming to the
2382 // "cloudfoundry.process.type" semantic conventions. It represents the type of
2383 // process.
2384 //
2385 // Type: string
2386 // RequirementLevel: Recommended
2387 // Stability: Development
2388 //
2389 // Examples: "web"
2390 // Note: CloudFoundry applications can consist of multiple jobs. Usually the
2391 // main process will be of type `web`. There can be additional background
2392 // tasks or side-cars with different process types.
2393 CloudfoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
2394
2395 // CloudfoundrySpaceIDKey is the attribute Key conforming to the
2396 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
2397 // CloudFoundry space the application is running in.
2398 //
2399 // Type: string
2400 // RequirementLevel: Recommended
2401 // Stability: Development
2402 //
2403 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2404 // Note: Application instrumentation should use the value from environment
2405 // variable `VCAP_APPLICATION.space_id`. This is the same value as
2406 // reported by `cf space <space-name> --guid`.
2407 CloudfoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
2408
2409 // CloudfoundrySpaceNameKey is the attribute Key conforming to the
2410 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
2411 // CloudFoundry space the application is running in.
2412 //
2413 // Type: string
2414 // RequirementLevel: Recommended
2415 // Stability: Development
2416 //
2417 // Examples: "my-space-name"
2418 // Note: Application instrumentation should use the value from environment
2419 // variable `VCAP_APPLICATION.space_name`. This is the same value as
2420 // reported by `cf spaces`.
2421 CloudfoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
2422
2423 // CloudfoundrySystemIDKey is the attribute Key conforming to the
2424 // "cloudfoundry.system.id" semantic conventions. It represents a guid or
2425 // another name describing the event source.
2426 //
2427 // Type: string
2428 // RequirementLevel: Recommended
2429 // Stability: Development
2430 //
2431 // Examples: "cf/gorouter"
2432 // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
2433 // It is used for logs and metrics emitted by CloudFoundry. It is
2434 // supposed to contain the component name, e.g. "gorouter", for
2435 // CloudFoundry components.
2436 //
2437 // When system components are instrumented, values from the
2438 // [Bosh spec]
2439 // should be used. The `system.id` should be set to
2440 // `spec.deployment/spec.name`.
2441 //
2442 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2443 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2444 CloudfoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
2445
2446 // CloudfoundrySystemInstanceIDKey is the attribute Key conforming to the
2447 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
2448 // describing the concrete instance of the event source.
2449 //
2450 // Type: string
2451 // RequirementLevel: Recommended
2452 // Stability: Development
2453 //
2454 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2455 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2456 // .
2457 // It is used for logs and metrics emitted by CloudFoundry. It is
2458 // supposed to contain the vm id for CloudFoundry components.
2459 //
2460 // When system components are instrumented, values from the
2461 // [Bosh spec]
2462 // should be used. The `system.instance.id` should be set to `spec.id`.
2463 //
2464 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2465 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2466 CloudfoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
2467 )
2468
2469 // CloudfoundryAppID returns an attribute KeyValue conforming to the
2470 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2471 // application.
2472 func CloudfoundryAppID(val string) attribute.KeyValue {
2473 return CloudfoundryAppIDKey.String(val)
2474 }
2475
2476 // CloudfoundryAppInstanceID returns an attribute KeyValue conforming to the
2477 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2478 // of the application instance. 0 when just one instance is active.
2479 func CloudfoundryAppInstanceID(val string) attribute.KeyValue {
2480 return CloudfoundryAppInstanceIDKey.String(val)
2481 }
2482
2483 // CloudfoundryAppName returns an attribute KeyValue conforming to the
2484 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2485 // application.
2486 func CloudfoundryAppName(val string) attribute.KeyValue {
2487 return CloudfoundryAppNameKey.String(val)
2488 }
2489
2490 // CloudfoundryOrgID returns an attribute KeyValue conforming to the
2491 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
2492 // CloudFoundry org the application is running in.
2493 func CloudfoundryOrgID(val string) attribute.KeyValue {
2494 return CloudfoundryOrgIDKey.String(val)
2495 }
2496
2497 // CloudfoundryOrgName returns an attribute KeyValue conforming to the
2498 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
2499 // CloudFoundry organization the app is running in.
2500 func CloudfoundryOrgName(val string) attribute.KeyValue {
2501 return CloudfoundryOrgNameKey.String(val)
2502 }
2503
2504 // CloudfoundryProcessID returns an attribute KeyValue conforming to the
2505 // "cloudfoundry.process.id" semantic conventions. It represents the UID
2506 // identifying the process.
2507 func CloudfoundryProcessID(val string) attribute.KeyValue {
2508 return CloudfoundryProcessIDKey.String(val)
2509 }
2510
2511 // CloudfoundryProcessType returns an attribute KeyValue conforming to the
2512 // "cloudfoundry.process.type" semantic conventions. It represents the type of
2513 // process.
2514 func CloudfoundryProcessType(val string) attribute.KeyValue {
2515 return CloudfoundryProcessTypeKey.String(val)
2516 }
2517
2518 // CloudfoundrySpaceID returns an attribute KeyValue conforming to the
2519 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
2520 // CloudFoundry space the application is running in.
2521 func CloudfoundrySpaceID(val string) attribute.KeyValue {
2522 return CloudfoundrySpaceIDKey.String(val)
2523 }
2524
2525 // CloudfoundrySpaceName returns an attribute KeyValue conforming to the
2526 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
2527 // CloudFoundry space the application is running in.
2528 func CloudfoundrySpaceName(val string) attribute.KeyValue {
2529 return CloudfoundrySpaceNameKey.String(val)
2530 }
2531
2532 // CloudfoundrySystemID returns an attribute KeyValue conforming to the
2533 // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
2534 // name describing the event source.
2535 func CloudfoundrySystemID(val string) attribute.KeyValue {
2536 return CloudfoundrySystemIDKey.String(val)
2537 }
2538
2539 // CloudfoundrySystemInstanceID returns an attribute KeyValue conforming to the
2540 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
2541 // describing the concrete instance of the event source.
2542 func CloudfoundrySystemInstanceID(val string) attribute.KeyValue {
2543 return CloudfoundrySystemInstanceIDKey.String(val)
2544 }
2545
2546 // Namespace: code
2547 const (
2548 // CodeColumnNumberKey is the attribute Key conforming to the
2549 // "code.column.number" semantic conventions. It represents the column number in
2550 // `code.file.path` best representing the operation. It SHOULD point within the
2551 // code unit named in `code.function.name`.
2552 //
2553 // Type: int
2554 // RequirementLevel: Recommended
2555 // Stability: Development
2556 CodeColumnNumberKey = attribute.Key("code.column.number")
2557
2558 // CodeFilePathKey is the attribute Key conforming to the "code.file.path"
2559 // semantic conventions. It represents the source code file name that identifies
2560 // the code unit as uniquely as possible (preferably an absolute file path).
2561 //
2562 // Type: string
2563 // RequirementLevel: Recommended
2564 // Stability: Development
2565 //
2566 // Examples: /usr/local/MyApplication/content_root/app/index.php
2567 CodeFilePathKey = attribute.Key("code.file.path")
2568
2569 // CodeFilepathKey is the attribute Key conforming to the "code.filepath"
2570 // semantic conventions. It represents the deprecated, use `code.file.path`
2571 // instead.
2572 //
2573 // Type: string
2574 // RequirementLevel: Recommended
2575 // Stability: Development
2576 //
2577 // Examples: /usr/local/MyApplication/content_root/app/index.php
2578 CodeFilepathKey = attribute.Key("code.filepath")
2579
2580 // CodeFunctionNameKey is the attribute Key conforming to the
2581 // "code.function.name" semantic conventions. It represents the method or
2582 // function name, or equivalent (usually rightmost part of the code unit's
2583 // name).
2584 //
2585 // Type: string
2586 // RequirementLevel: Recommended
2587 // Stability: Development
2588 //
2589 // Examples: serveRequest
2590 CodeFunctionNameKey = attribute.Key("code.function.name")
2591
2592 // CodeLineNumberKey is the attribute Key conforming to the "code.line.number"
2593 // semantic conventions. It represents the line number in `code.file.path` best
2594 // representing the operation. It SHOULD point within the code unit named in
2595 // `code.function.name`.
2596 //
2597 // Type: int
2598 // RequirementLevel: Recommended
2599 // Stability: Development
2600 CodeLineNumberKey = attribute.Key("code.line.number")
2601
2602 // CodeNamespaceKey is the attribute Key conforming to the "code.namespace"
2603 // semantic conventions. It represents the "namespace" within which
2604 // `code.function.name` is defined. Usually the qualified class or module name,
2605 // such that `code.namespace` + some separator + `code.function.name` form a
2606 // unique identifier for the code unit.
2607 //
2608 // Type: string
2609 // RequirementLevel: Recommended
2610 // Stability: Development
2611 //
2612 // Examples: com.example.MyHttpService
2613 CodeNamespaceKey = attribute.Key("code.namespace")
2614
2615 // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
2616 // semantic conventions. It represents a stacktrace as a string in the natural
2617 // representation for the language runtime. The representation is to be
2618 // determined and documented by each language SIG.
2619 //
2620 // Type: string
2621 // RequirementLevel: Recommended
2622 // Stability: Development
2623 //
2624 // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
2625 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
2626 // com.example.GenerateTrace.main(GenerateTrace.java:5)
2627 CodeStacktraceKey = attribute.Key("code.stacktrace")
2628 )
2629
2630 // CodeColumnNumber returns an attribute KeyValue conforming to the
2631 // "code.column.number" semantic conventions. It represents the column number in
2632 // `code.file.path` best representing the operation. It SHOULD point within the
2633 // code unit named in `code.function.name`.
2634 func CodeColumnNumber(val int) attribute.KeyValue {
2635 return CodeColumnNumberKey.Int(val)
2636 }
2637
2638 // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path"
2639 // semantic conventions. It represents the source code file name that identifies
2640 // the code unit as uniquely as possible (preferably an absolute file path).
2641 func CodeFilePath(val string) attribute.KeyValue {
2642 return CodeFilePathKey.String(val)
2643 }
2644
2645 // CodeFilepath returns an attribute KeyValue conforming to the "code.filepath"
2646 // semantic conventions. It represents the deprecated, use `code.file.path`
2647 // instead.
2648 func CodeFilepath(val string) attribute.KeyValue {
2649 return CodeFilepathKey.String(val)
2650 }
2651
2652 // CodeFunctionName returns an attribute KeyValue conforming to the
2653 // "code.function.name" semantic conventions. It represents the method or
2654 // function name, or equivalent (usually rightmost part of the code unit's name).
2655 func CodeFunctionName(val string) attribute.KeyValue {
2656 return CodeFunctionNameKey.String(val)
2657 }
2658
2659 // CodeLineNumber returns an attribute KeyValue conforming to the
2660 // "code.line.number" semantic conventions. It represents the line number in
2661 // `code.file.path` best representing the operation. It SHOULD point within the
2662 // code unit named in `code.function.name`.
2663 func CodeLineNumber(val int) attribute.KeyValue {
2664 return CodeLineNumberKey.Int(val)
2665 }
2666
2667 // CodeNamespace returns an attribute KeyValue conforming to the "code.namespace"
2668 // semantic conventions. It represents the "namespace" within which
2669 // `code.function.name` is defined. Usually the qualified class or module name,
2670 // such that `code.namespace` + some separator + `code.function.name` form a
2671 // unique identifier for the code unit.
2672 func CodeNamespace(val string) attribute.KeyValue {
2673 return CodeNamespaceKey.String(val)
2674 }
2675
2676 // CodeStacktrace returns an attribute KeyValue conforming to the
2677 // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
2678 // in the natural representation for the language runtime. The representation is
2679 // to be determined and documented by each language SIG.
2680 func CodeStacktrace(val string) attribute.KeyValue {
2681 return CodeStacktraceKey.String(val)
2682 }
2683
2684 // Namespace: container
2685 const (
2686 // ContainerCommandKey is the attribute Key conforming to the
2687 // "container.command" semantic conventions. It represents the command used to
2688 // run the container (i.e. the command name).
2689 //
2690 // Type: string
2691 // RequirementLevel: Recommended
2692 // Stability: Development
2693 //
2694 // Examples: "otelcontribcol"
2695 // Note: If using embedded credentials or sensitive data, it is recommended to
2696 // remove them to prevent potential leakage.
2697 ContainerCommandKey = attribute.Key("container.command")
2698
2699 // ContainerCommandArgsKey is the attribute Key conforming to the
2700 // "container.command_args" semantic conventions. It represents the all the
2701 // command arguments (including the command/executable itself) run by the
2702 // container.
2703 //
2704 // Type: string[]
2705 // RequirementLevel: Recommended
2706 // Stability: Development
2707 //
2708 // Examples: "otelcontribcol", "--config", "config.yaml"
2709 ContainerCommandArgsKey = attribute.Key("container.command_args")
2710
2711 // ContainerCommandLineKey is the attribute Key conforming to the
2712 // "container.command_line" semantic conventions. It represents the full command
2713 // run by the container as a single string representing the full command.
2714 //
2715 // Type: string
2716 // RequirementLevel: Recommended
2717 // Stability: Development
2718 //
2719 // Examples: "otelcontribcol --config config.yaml"
2720 ContainerCommandLineKey = attribute.Key("container.command_line")
2721
2722 // ContainerCsiPluginNameKey is the attribute Key conforming to the
2723 // "container.csi.plugin.name" semantic conventions. It represents the name of
2724 // the CSI ([Container Storage Interface]) plugin used by the volume.
2725 //
2726 // Type: string
2727 // RequirementLevel: Recommended
2728 // Stability: Development
2729 //
2730 // Examples: "pd.csi.storage.gke.io"
2731 // Note: This can sometimes be referred to as a "driver" in CSI implementations.
2732 // This should represent the `name` field of the GetPluginInfo RPC.
2733 //
2734 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2735 ContainerCsiPluginNameKey = attribute.Key("container.csi.plugin.name")
2736
2737 // ContainerCsiVolumeIDKey is the attribute Key conforming to the
2738 // "container.csi.volume.id" semantic conventions. It represents the unique
2739 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
2740 //
2741 // Type: string
2742 // RequirementLevel: Recommended
2743 // Stability: Development
2744 //
2745 // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
2746 // Note: This can sometimes be referred to as a "volume handle" in CSI
2747 // implementations. This should represent the `Volume.volume_id` field in CSI
2748 // spec.
2749 //
2750 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2751 ContainerCsiVolumeIDKey = attribute.Key("container.csi.volume.id")
2752
2753 // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
2754 // conventions. It represents the container ID. Usually a UUID, as for example
2755 // used to [identify Docker containers]. The UUID might be abbreviated.
2756 //
2757 // Type: string
2758 // RequirementLevel: Recommended
2759 // Stability: Development
2760 //
2761 // Examples: "a3bf90e006b2"
2762 //
2763 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
2764 ContainerIDKey = attribute.Key("container.id")
2765
2766 // ContainerImageIDKey is the attribute Key conforming to the
2767 // "container.image.id" semantic conventions. It represents the runtime specific
2768 // image identifier. Usually a hash algorithm followed by a UUID.
2769 //
2770 // Type: string
2771 // RequirementLevel: Recommended
2772 // Stability: Development
2773 //
2774 // Examples:
2775 // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
2776 // Note: Docker defines a sha256 of the image id; `container.image.id`
2777 // corresponds to the `Image` field from the Docker container inspect [API]
2778 // endpoint.
2779 // K8s defines a link to the container registry repository with digest
2780 // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
2781 // .
2782 // The ID is assigned by the container runtime and can vary in different
2783 // environments. Consider using `oci.manifest.digest` if it is important to
2784 // identify the same image in different environments/runtimes.
2785 //
2786 // [API]: https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect
2787 ContainerImageIDKey = attribute.Key("container.image.id")
2788
2789 // ContainerImageNameKey is the attribute Key conforming to the
2790 // "container.image.name" semantic conventions. It represents the name of the
2791 // image the container was built on.
2792 //
2793 // Type: string
2794 // RequirementLevel: Recommended
2795 // Stability: Development
2796 //
2797 // Examples: "gcr.io/opentelemetry/operator"
2798 ContainerImageNameKey = attribute.Key("container.image.name")
2799
2800 // ContainerImageRepoDigestsKey is the attribute Key conforming to the
2801 // "container.image.repo_digests" semantic conventions. It represents the repo
2802 // digests of the container image as provided by the container runtime.
2803 //
2804 // Type: string[]
2805 // RequirementLevel: Recommended
2806 // Stability: Development
2807 //
2808 // Examples:
2809 // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
2810 // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
2811 // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
2812 //
2813 // [Docker]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
2814 // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
2815 ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
2816
2817 // ContainerImageTagsKey is the attribute Key conforming to the
2818 // "container.image.tags" semantic conventions. It represents the container
2819 // image tags. An example can be found in [Docker Image Inspect]. Should be only
2820 // the `<tag>` section of the full name for example from
2821 // `registry.example.com/my-org/my-image:<tag>`.
2822 //
2823 // Type: string[]
2824 // RequirementLevel: Recommended
2825 // Stability: Development
2826 //
2827 // Examples: "v1.27.1", "3.5.7-0"
2828 //
2829 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
2830 ContainerImageTagsKey = attribute.Key("container.image.tags")
2831
2832 // ContainerNameKey is the attribute Key conforming to the "container.name"
2833 // semantic conventions. It represents the container name used by container
2834 // runtime.
2835 //
2836 // Type: string
2837 // RequirementLevel: Recommended
2838 // Stability: Development
2839 //
2840 // Examples: "opentelemetry-autoconf"
2841 ContainerNameKey = attribute.Key("container.name")
2842
2843 // ContainerRuntimeKey is the attribute Key conforming to the
2844 // "container.runtime" semantic conventions. It represents the container runtime
2845 // managing this container.
2846 //
2847 // Type: string
2848 // RequirementLevel: Recommended
2849 // Stability: Development
2850 //
2851 // Examples: "docker", "containerd", "rkt"
2852 ContainerRuntimeKey = attribute.Key("container.runtime")
2853 )
2854
2855 // ContainerCommand returns an attribute KeyValue conforming to the
2856 // "container.command" semantic conventions. It represents the command used to
2857 // run the container (i.e. the command name).
2858 func ContainerCommand(val string) attribute.KeyValue {
2859 return ContainerCommandKey.String(val)
2860 }
2861
2862 // ContainerCommandArgs returns an attribute KeyValue conforming to the
2863 // "container.command_args" semantic conventions. It represents the all the
2864 // command arguments (including the command/executable itself) run by the
2865 // container.
2866 func ContainerCommandArgs(val ...string) attribute.KeyValue {
2867 return ContainerCommandArgsKey.StringSlice(val)
2868 }
2869
2870 // ContainerCommandLine returns an attribute KeyValue conforming to the
2871 // "container.command_line" semantic conventions. It represents the full command
2872 // run by the container as a single string representing the full command.
2873 func ContainerCommandLine(val string) attribute.KeyValue {
2874 return ContainerCommandLineKey.String(val)
2875 }
2876
2877 // ContainerCsiPluginName returns an attribute KeyValue conforming to the
2878 // "container.csi.plugin.name" semantic conventions. It represents the name of
2879 // the CSI ([Container Storage Interface]) plugin used by the volume.
2880 //
2881 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2882 func ContainerCsiPluginName(val string) attribute.KeyValue {
2883 return ContainerCsiPluginNameKey.String(val)
2884 }
2885
2886 // ContainerCsiVolumeID returns an attribute KeyValue conforming to the
2887 // "container.csi.volume.id" semantic conventions. It represents the unique
2888 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
2889 //
2890 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2891 func ContainerCsiVolumeID(val string) attribute.KeyValue {
2892 return ContainerCsiVolumeIDKey.String(val)
2893 }
2894
2895 // ContainerID returns an attribute KeyValue conforming to the "container.id"
2896 // semantic conventions. It represents the container ID. Usually a UUID, as for
2897 // example used to [identify Docker containers]. The UUID might be abbreviated.
2898 //
2899 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
2900 func ContainerID(val string) attribute.KeyValue {
2901 return ContainerIDKey.String(val)
2902 }
2903
2904 // ContainerImageID returns an attribute KeyValue conforming to the
2905 // "container.image.id" semantic conventions. It represents the runtime specific
2906 // image identifier. Usually a hash algorithm followed by a UUID.
2907 func ContainerImageID(val string) attribute.KeyValue {
2908 return ContainerImageIDKey.String(val)
2909 }
2910
2911 // ContainerImageName returns an attribute KeyValue conforming to the
2912 // "container.image.name" semantic conventions. It represents the name of the
2913 // image the container was built on.
2914 func ContainerImageName(val string) attribute.KeyValue {
2915 return ContainerImageNameKey.String(val)
2916 }
2917
2918 // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
2919 // "container.image.repo_digests" semantic conventions. It represents the repo
2920 // digests of the container image as provided by the container runtime.
2921 func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
2922 return ContainerImageRepoDigestsKey.StringSlice(val)
2923 }
2924
2925 // ContainerImageTags returns an attribute KeyValue conforming to the
2926 // "container.image.tags" semantic conventions. It represents the container image
2927 // tags. An example can be found in [Docker Image Inspect]. Should be only the
2928 // `<tag>` section of the full name for example from
2929 // `registry.example.com/my-org/my-image:<tag>`.
2930 //
2931 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
2932 func ContainerImageTags(val ...string) attribute.KeyValue {
2933 return ContainerImageTagsKey.StringSlice(val)
2934 }
2935
2936 // ContainerName returns an attribute KeyValue conforming to the "container.name"
2937 // semantic conventions. It represents the container name used by container
2938 // runtime.
2939 func ContainerName(val string) attribute.KeyValue {
2940 return ContainerNameKey.String(val)
2941 }
2942
2943 // ContainerRuntime returns an attribute KeyValue conforming to the
2944 // "container.runtime" semantic conventions. It represents the container runtime
2945 // managing this container.
2946 func ContainerRuntime(val string) attribute.KeyValue {
2947 return ContainerRuntimeKey.String(val)
2948 }
2949
2950 // Namespace: cpu
2951 const (
2952 // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
2953 // conventions. It represents the mode of the CPU.
2954 //
2955 // Type: Enum
2956 // RequirementLevel: Recommended
2957 // Stability: Development
2958 //
2959 // Examples: "user", "system"
2960 CPUModeKey = attribute.Key("cpu.mode")
2961 )
2962
2963 // Enum values for cpu.mode
2964 var (
2965 // user
2966 // Stability: development
2967 CPUModeUser = CPUModeKey.String("user")
2968 // system
2969 // Stability: development
2970 CPUModeSystem = CPUModeKey.String("system")
2971 // nice
2972 // Stability: development
2973 CPUModeNice = CPUModeKey.String("nice")
2974 // idle
2975 // Stability: development
2976 CPUModeIdle = CPUModeKey.String("idle")
2977 // iowait
2978 // Stability: development
2979 CPUModeIowait = CPUModeKey.String("iowait")
2980 // interrupt
2981 // Stability: development
2982 CPUModeInterrupt = CPUModeKey.String("interrupt")
2983 // steal
2984 // Stability: development
2985 CPUModeSteal = CPUModeKey.String("steal")
2986 // kernel
2987 // Stability: development
2988 CPUModeKernel = CPUModeKey.String("kernel")
2989 )
2990
2991 // Namespace: db
2992 const (
2993 // DBClientConnectionPoolNameKey is the attribute Key conforming to the
2994 // "db.client.connection.pool.name" semantic conventions. It represents the name
2995 // of the connection pool; unique within the instrumented application. In case
2996 // the connection pool implementation doesn't provide a name, instrumentation
2997 // SHOULD use a combination of parameters that would make the name unique, for
2998 // example, combining attributes `server.address`, `server.port`, and
2999 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3000 // Instrumentations that generate connection pool name following different
3001 // patterns SHOULD document it.
3002 //
3003 // Type: string
3004 // RequirementLevel: Recommended
3005 // Stability: Development
3006 //
3007 // Examples: "myDataSource"
3008 DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
3009
3010 // DBClientConnectionStateKey is the attribute Key conforming to the
3011 // "db.client.connection.state" semantic conventions. It represents the state of
3012 // a connection in the pool.
3013 //
3014 // Type: Enum
3015 // RequirementLevel: Recommended
3016 // Stability: Development
3017 //
3018 // Examples: "idle"
3019 DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
3020
3021 // DBCollectionNameKey is the attribute Key conforming to the
3022 // "db.collection.name" semantic conventions. It represents the name of a
3023 // collection (table, container) within the database.
3024 //
3025 // Type: string
3026 // RequirementLevel: Recommended
3027 // Stability: Release_Candidate
3028 //
3029 // Examples: "public.users", "customers"
3030 // Note: It is RECOMMENDED to capture the value as provided by the application
3031 // without attempting to do any case normalization.
3032 //
3033 // The collection name SHOULD NOT be extracted from `db.query.text`,
3034 // unless the query format is known to only ever have a single collection name
3035 // present.
3036 //
3037 // For batch operations, if the individual operations are known to have the same
3038 // collection name
3039 // then that collection name SHOULD be used.
3040 DBCollectionNameKey = attribute.Key("db.collection.name")
3041
3042 // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
3043 // conventions. It represents the name of the database, fully qualified within
3044 // the server address and port.
3045 //
3046 // Type: string
3047 // RequirementLevel: Recommended
3048 // Stability: Release_Candidate
3049 //
3050 // Examples: "customers", "test.users"
3051 // Note: If a database system has multiple namespace components, they SHOULD be
3052 // concatenated (potentially using database system specific conventions) from
3053 // most general to most specific namespace component, and more specific
3054 // namespaces SHOULD NOT be captured without the more general namespaces, to
3055 // ensure that "startswith" queries for the more general namespaces will be
3056 // valid.
3057 // Semantic conventions for individual database systems SHOULD document what
3058 // `db.namespace` means in the context of that system.
3059 // It is RECOMMENDED to capture the value as provided by the application without
3060 // attempting to do any case normalization.
3061 DBNamespaceKey = attribute.Key("db.namespace")
3062
3063 // DBOperationBatchSizeKey is the attribute Key conforming to the
3064 // "db.operation.batch.size" semantic conventions. It represents the number of
3065 // queries included in a batch operation.
3066 //
3067 // Type: int
3068 // RequirementLevel: Recommended
3069 // Stability: Release_Candidate
3070 //
3071 // Examples: 2, 3, 4
3072 // Note: Operations are only considered batches when they contain two or more
3073 // operations, and so `db.operation.batch.size` SHOULD never be `1`.
3074 DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
3075
3076 // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
3077 // semantic conventions. It represents the name of the operation or command
3078 // being executed.
3079 //
3080 // Type: string
3081 // RequirementLevel: Recommended
3082 // Stability: Release_Candidate
3083 //
3084 // Examples: "findAndModify", "HMSET", "SELECT"
3085 // Note: It is RECOMMENDED to capture the value as provided by the application
3086 // without attempting to do any case normalization.
3087 //
3088 // The operation name SHOULD NOT be extracted from `db.query.text`,
3089 // unless the query format is known to only ever have a single operation name
3090 // present.
3091 //
3092 // For batch operations, if the individual operations are known to have the same
3093 // operation name
3094 // then that operation name SHOULD be used prepended by `BATCH `,
3095 // otherwise `db.operation.name` SHOULD be `BATCH` or some other database
3096 // system specific term if more applicable.
3097 DBOperationNameKey = attribute.Key("db.operation.name")
3098
3099 // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary"
3100 // semantic conventions. It represents the low cardinality representation of a
3101 // database query text.
3102 //
3103 // Type: string
3104 // RequirementLevel: Recommended
3105 // Stability: Release_Candidate
3106 //
3107 // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get
3108 // user by id"
3109 // Note: `db.query.summary` provides static summary of the query text. It
3110 // describes a class of database queries and is useful as a grouping key,
3111 // especially when analyzing telemetry for database calls involving complex
3112 // queries.
3113 // Summary may be available to the instrumentation through instrumentation hooks
3114 // or other means. If it is not available, instrumentations that support query
3115 // parsing SHOULD generate a summary following [Generating query summary]
3116 // section.
3117 //
3118 // [Generating query summary]: ../../docs/database/database-spans.md#generating-a-summary-of-the-query-text
3119 DBQuerySummaryKey = attribute.Key("db.query.summary")
3120
3121 // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
3122 // semantic conventions. It represents the database query being executed.
3123 //
3124 // Type: string
3125 // RequirementLevel: Recommended
3126 // Stability: Release_Candidate
3127 //
3128 // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?"
3129 // Note: For sanitization see [Sanitization of `db.query.text`].
3130 // For batch operations, if the individual operations are known to have the same
3131 // query text then that query text SHOULD be used, otherwise all of the
3132 // individual query texts SHOULD be concatenated with separator `; ` or some
3133 // other database system specific separator if more applicable.
3134 // Even though parameterized query text can potentially have sensitive data, by
3135 // using a parameterized query the user is giving a strong signal that any
3136 // sensitive data will be passed as parameter values, and the benefit to
3137 // observability of capturing the static part of the query text by default
3138 // outweighs the risk.
3139 //
3140 // [Sanitization of `db.query.text`]: ../../docs/database/database-spans.md#sanitization-of-dbquerytext
3141 DBQueryTextKey = attribute.Key("db.query.text")
3142
3143 // DBResponseReturnedRowsKey is the attribute Key conforming to the
3144 // "db.response.returned_rows" semantic conventions. It represents the number of
3145 // rows returned by the operation.
3146 //
3147 // Type: int
3148 // RequirementLevel: Recommended
3149 // Stability: Development
3150 //
3151 // Examples: 10, 30, 1000
3152 DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows")
3153
3154 // DBResponseStatusCodeKey is the attribute Key conforming to the
3155 // "db.response.status_code" semantic conventions. It represents the database
3156 // response status code.
3157 //
3158 // Type: string
3159 // RequirementLevel: Recommended
3160 // Stability: Release_Candidate
3161 //
3162 // Examples: "102", "ORA-17002", "08P01", "404"
3163 // Note: The status code returned by the database. Usually it represents an
3164 // error code, but may also represent partial success, warning, or differentiate
3165 // between various types of successful outcomes.
3166 // Semantic conventions for individual database systems SHOULD document what
3167 // `db.response.status_code` means in the context of that system.
3168 DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
3169
3170 // DBSystemNameKey is the attribute Key conforming to the "db.system.name"
3171 // semantic conventions. It represents the database management system (DBMS)
3172 // product as identified by the client instrumentation.
3173 //
3174 // Type: Enum
3175 // RequirementLevel: Recommended
3176 // Stability: Release_Candidate
3177 //
3178 // Examples:
3179 // Note: The actual DBMS may differ from the one identified by the client. For
3180 // example, when using PostgreSQL client libraries to connect to a CockroachDB,
3181 // the `db.system.name` is set to `postgresql` based on the instrumentation's
3182 // best knowledge.
3183 DBSystemNameKey = attribute.Key("db.system.name")
3184 )
3185
3186 // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
3187 // "db.client.connection.pool.name" semantic conventions. It represents the name
3188 // of the connection pool; unique within the instrumented application. In case
3189 // the connection pool implementation doesn't provide a name, instrumentation
3190 // SHOULD use a combination of parameters that would make the name unique, for
3191 // example, combining attributes `server.address`, `server.port`, and
3192 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3193 // Instrumentations that generate connection pool name following different
3194 // patterns SHOULD document it.
3195 func DBClientConnectionPoolName(val string) attribute.KeyValue {
3196 return DBClientConnectionPoolNameKey.String(val)
3197 }
3198
3199 // DBCollectionName returns an attribute KeyValue conforming to the
3200 // "db.collection.name" semantic conventions. It represents the name of a
3201 // collection (table, container) within the database.
3202 func DBCollectionName(val string) attribute.KeyValue {
3203 return DBCollectionNameKey.String(val)
3204 }
3205
3206 // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
3207 // semantic conventions. It represents the name of the database, fully qualified
3208 // within the server address and port.
3209 func DBNamespace(val string) attribute.KeyValue {
3210 return DBNamespaceKey.String(val)
3211 }
3212
3213 // DBOperationBatchSize returns an attribute KeyValue conforming to the
3214 // "db.operation.batch.size" semantic conventions. It represents the number of
3215 // queries included in a batch operation.
3216 func DBOperationBatchSize(val int) attribute.KeyValue {
3217 return DBOperationBatchSizeKey.Int(val)
3218 }
3219
3220 // DBOperationName returns an attribute KeyValue conforming to the
3221 // "db.operation.name" semantic conventions. It represents the name of the
3222 // operation or command being executed.
3223 func DBOperationName(val string) attribute.KeyValue {
3224 return DBOperationNameKey.String(val)
3225 }
3226
3227 // DBQuerySummary returns an attribute KeyValue conforming to the
3228 // "db.query.summary" semantic conventions. It represents the low cardinality
3229 // representation of a database query text.
3230 func DBQuerySummary(val string) attribute.KeyValue {
3231 return DBQuerySummaryKey.String(val)
3232 }
3233
3234 // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
3235 // semantic conventions. It represents the database query being executed.
3236 func DBQueryText(val string) attribute.KeyValue {
3237 return DBQueryTextKey.String(val)
3238 }
3239
3240 // DBResponseReturnedRows returns an attribute KeyValue conforming to the
3241 // "db.response.returned_rows" semantic conventions. It represents the number of
3242 // rows returned by the operation.
3243 func DBResponseReturnedRows(val int) attribute.KeyValue {
3244 return DBResponseReturnedRowsKey.Int(val)
3245 }
3246
3247 // DBResponseStatusCode returns an attribute KeyValue conforming to the
3248 // "db.response.status_code" semantic conventions. It represents the database
3249 // response status code.
3250 func DBResponseStatusCode(val string) attribute.KeyValue {
3251 return DBResponseStatusCodeKey.String(val)
3252 }
3253
3254 // Enum values for db.client.connection.state
3255 var (
3256 // idle
3257 // Stability: development
3258 DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
3259 // used
3260 // Stability: development
3261 DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
3262 )
3263
3264 // Enum values for db.system.name
3265 var (
3266 // Some other SQL database. Fallback only.
3267 // Stability: development
3268 DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql")
3269 // [Adabas (Adaptable Database System)]
3270 // Stability: development
3271 //
3272 // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas
3273 DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas")
3274 // [Actian Ingres]
3275 // Stability: development
3276 //
3277 // [Actian Ingres]: https://www.actian.com/databases/ingres/
3278 DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres")
3279 // [Amazon DynamoDB]
3280 // Stability: development
3281 //
3282 // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/
3283 DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb")
3284 // [Amazon Redshift]
3285 // Stability: development
3286 //
3287 // [Amazon Redshift]: https://aws.amazon.com/redshift/
3288 DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift")
3289 // [Azure Cosmos DB]
3290 // Stability: development
3291 //
3292 // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db
3293 DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb")
3294 // [InterSystems Caché]
3295 // Stability: development
3296 //
3297 // [InterSystems Caché]: https://www.intersystems.com/products/cache/
3298 DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache")
3299 // [Apache Cassandra]
3300 // Stability: development
3301 //
3302 // [Apache Cassandra]: https://cassandra.apache.org/
3303 DBSystemNameCassandra = DBSystemNameKey.String("cassandra")
3304 // [ClickHouse]
3305 // Stability: development
3306 //
3307 // [ClickHouse]: https://clickhouse.com/
3308 DBSystemNameClickhouse = DBSystemNameKey.String("clickhouse")
3309 // [CockroachDB]
3310 // Stability: development
3311 //
3312 // [CockroachDB]: https://www.cockroachlabs.com/
3313 DBSystemNameCockroachdb = DBSystemNameKey.String("cockroachdb")
3314 // [Couchbase]
3315 // Stability: development
3316 //
3317 // [Couchbase]: https://www.couchbase.com/
3318 DBSystemNameCouchbase = DBSystemNameKey.String("couchbase")
3319 // [Apache CouchDB]
3320 // Stability: development
3321 //
3322 // [Apache CouchDB]: https://couchdb.apache.org/
3323 DBSystemNameCouchDB = DBSystemNameKey.String("couchdb")
3324 // [Apache Derby]
3325 // Stability: development
3326 //
3327 // [Apache Derby]: https://db.apache.org/derby/
3328 DBSystemNameDerby = DBSystemNameKey.String("derby")
3329 // [Elasticsearch]
3330 // Stability: development
3331 //
3332 // [Elasticsearch]: https://www.elastic.co/elasticsearch
3333 DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch")
3334 // [Firebird]
3335 // Stability: development
3336 //
3337 // [Firebird]: https://www.firebirdsql.org/
3338 DBSystemNameFirebirdsql = DBSystemNameKey.String("firebirdsql")
3339 // [Google Cloud Spanner]
3340 // Stability: development
3341 //
3342 // [Google Cloud Spanner]: https://cloud.google.com/spanner
3343 DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner")
3344 // [Apache Geode]
3345 // Stability: development
3346 //
3347 // [Apache Geode]: https://geode.apache.org/
3348 DBSystemNameGeode = DBSystemNameKey.String("geode")
3349 // [H2 Database]
3350 // Stability: development
3351 //
3352 // [H2 Database]: https://h2database.com/
3353 DBSystemNameH2database = DBSystemNameKey.String("h2database")
3354 // [Apache HBase]
3355 // Stability: development
3356 //
3357 // [Apache HBase]: https://hbase.apache.org/
3358 DBSystemNameHBase = DBSystemNameKey.String("hbase")
3359 // [Apache Hive]
3360 // Stability: development
3361 //
3362 // [Apache Hive]: https://hive.apache.org/
3363 DBSystemNameHive = DBSystemNameKey.String("hive")
3364 // [HyperSQL Database]
3365 // Stability: development
3366 //
3367 // [HyperSQL Database]: https://hsqldb.org/
3368 DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb")
3369 // [IBM Db2]
3370 // Stability: development
3371 //
3372 // [IBM Db2]: https://www.ibm.com/db2
3373 DBSystemNameIbmDb2 = DBSystemNameKey.String("ibm.db2")
3374 // [IBM Informix]
3375 // Stability: development
3376 //
3377 // [IBM Informix]: https://www.ibm.com/products/informix
3378 DBSystemNameIbmInformix = DBSystemNameKey.String("ibm.informix")
3379 // [IBM Netezza]
3380 // Stability: development
3381 //
3382 // [IBM Netezza]: https://www.ibm.com/products/netezza
3383 DBSystemNameIbmNetezza = DBSystemNameKey.String("ibm.netezza")
3384 // [InfluxDB]
3385 // Stability: development
3386 //
3387 // [InfluxDB]: https://www.influxdata.com/
3388 DBSystemNameInfluxdb = DBSystemNameKey.String("influxdb")
3389 // [Instant]
3390 // Stability: development
3391 //
3392 // [Instant]: https://www.instantdb.com/
3393 DBSystemNameInstantDB = DBSystemNameKey.String("instantdb")
3394 // [MariaDB]
3395 // Stability: release_candidate
3396 //
3397 // [MariaDB]: https://mariadb.org/
3398 DBSystemNameMariaDB = DBSystemNameKey.String("mariadb")
3399 // [Memcached]
3400 // Stability: development
3401 //
3402 // [Memcached]: https://memcached.org/
3403 DBSystemNameMemcached = DBSystemNameKey.String("memcached")
3404 // [MongoDB]
3405 // Stability: development
3406 //
3407 // [MongoDB]: https://www.mongodb.com/
3408 DBSystemNameMongoDB = DBSystemNameKey.String("mongodb")
3409 // [Microsoft SQL Server]
3410 // Stability: release_candidate
3411 //
3412 // [Microsoft SQL Server]: https://www.microsoft.com/sql-server
3413 DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server")
3414 // [MySQL]
3415 // Stability: release_candidate
3416 //
3417 // [MySQL]: https://www.mysql.com/
3418 DBSystemNameMySQL = DBSystemNameKey.String("mysql")
3419 // [Neo4j]
3420 // Stability: development
3421 //
3422 // [Neo4j]: https://neo4j.com/
3423 DBSystemNameNeo4j = DBSystemNameKey.String("neo4j")
3424 // [OpenSearch]
3425 // Stability: development
3426 //
3427 // [OpenSearch]: https://opensearch.org/
3428 DBSystemNameOpensearch = DBSystemNameKey.String("opensearch")
3429 // [Oracle Database]
3430 // Stability: development
3431 //
3432 // [Oracle Database]: https://www.oracle.com/database/
3433 DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db")
3434 // [PostgreSQL]
3435 // Stability: release_candidate
3436 //
3437 // [PostgreSQL]: https://www.postgresql.org/
3438 DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql")
3439 // [Redis]
3440 // Stability: development
3441 //
3442 // [Redis]: https://redis.io/
3443 DBSystemNameRedis = DBSystemNameKey.String("redis")
3444 // [SAP HANA]
3445 // Stability: development
3446 //
3447 // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html
3448 DBSystemNameSapHana = DBSystemNameKey.String("sap.hana")
3449 // [SAP MaxDB]
3450 // Stability: development
3451 //
3452 // [SAP MaxDB]: https://maxdb.sap.com/
3453 DBSystemNameSapMaxDB = DBSystemNameKey.String("sap.maxdb")
3454 // [SQLite]
3455 // Stability: development
3456 //
3457 // [SQLite]: https://www.sqlite.org/
3458 DBSystemNameSqlite = DBSystemNameKey.String("sqlite")
3459 // [Teradata]
3460 // Stability: development
3461 //
3462 // [Teradata]: https://www.teradata.com/
3463 DBSystemNameTeradata = DBSystemNameKey.String("teradata")
3464 // [Trino]
3465 // Stability: development
3466 //
3467 // [Trino]: https://trino.io/
3468 DBSystemNameTrino = DBSystemNameKey.String("trino")
3469 )
3470
3471 // Namespace: deployment
3472 const (
3473 // DeploymentEnvironmentNameKey is the attribute Key conforming to the
3474 // "deployment.environment.name" semantic conventions. It represents the name of
3475 // the [deployment environment] (aka deployment tier).
3476 //
3477 // Type: string
3478 // RequirementLevel: Recommended
3479 // Stability: Development
3480 //
3481 // Examples: "staging", "production"
3482 // Note: `deployment.environment.name` does not affect the uniqueness
3483 // constraints defined through
3484 // the `service.namespace`, `service.name` and `service.instance.id` resource
3485 // attributes.
3486 // This implies that resources carrying the following attribute combinations
3487 // MUST be
3488 // considered to be identifying the same service:
3489 //
3490 // - `service.name=frontend`, `deployment.environment.name=production`
3491 // - `service.name=frontend`, `deployment.environment.name=staging`.
3492 //
3493 //
3494 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
3495 DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
3496
3497 // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
3498 // semantic conventions. It represents the id of the deployment.
3499 //
3500 // Type: string
3501 // RequirementLevel: Recommended
3502 // Stability: Development
3503 //
3504 // Examples: "1208"
3505 DeploymentIDKey = attribute.Key("deployment.id")
3506
3507 // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
3508 // semantic conventions. It represents the name of the deployment.
3509 //
3510 // Type: string
3511 // RequirementLevel: Recommended
3512 // Stability: Development
3513 //
3514 // Examples: "deploy my app", "deploy-frontend"
3515 DeploymentNameKey = attribute.Key("deployment.name")
3516
3517 // DeploymentStatusKey is the attribute Key conforming to the
3518 // "deployment.status" semantic conventions. It represents the status of the
3519 // deployment.
3520 //
3521 // Type: Enum
3522 // RequirementLevel: Recommended
3523 // Stability: Development
3524 //
3525 // Examples:
3526 DeploymentStatusKey = attribute.Key("deployment.status")
3527 )
3528
3529 // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
3530 // "deployment.environment.name" semantic conventions. It represents the name of
3531 // the [deployment environment] (aka deployment tier).
3532 //
3533 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
3534 func DeploymentEnvironmentName(val string) attribute.KeyValue {
3535 return DeploymentEnvironmentNameKey.String(val)
3536 }
3537
3538 // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
3539 // semantic conventions. It represents the id of the deployment.
3540 func DeploymentID(val string) attribute.KeyValue {
3541 return DeploymentIDKey.String(val)
3542 }
3543
3544 // DeploymentName returns an attribute KeyValue conforming to the
3545 // "deployment.name" semantic conventions. It represents the name of the
3546 // deployment.
3547 func DeploymentName(val string) attribute.KeyValue {
3548 return DeploymentNameKey.String(val)
3549 }
3550
3551 // Enum values for deployment.status
3552 var (
3553 // failed
3554 // Stability: development
3555 DeploymentStatusFailed = DeploymentStatusKey.String("failed")
3556 // succeeded
3557 // Stability: development
3558 DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
3559 )
3560
3561 // Namespace: destination
3562 const (
3563 // DestinationAddressKey is the attribute Key conforming to the
3564 // "destination.address" semantic conventions. It represents the destination
3565 // address - domain name if available without reverse DNS lookup; otherwise, IP
3566 // address or Unix domain socket name.
3567 //
3568 // Type: string
3569 // RequirementLevel: Recommended
3570 // Stability: Development
3571 //
3572 // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
3573 // Note: When observed from the source side, and when communicating through an
3574 // intermediary, `destination.address` SHOULD represent the destination address
3575 // behind any intermediaries, for example proxies, if it's available.
3576 DestinationAddressKey = attribute.Key("destination.address")
3577
3578 // DestinationPortKey is the attribute Key conforming to the "destination.port"
3579 // semantic conventions. It represents the destination port number.
3580 //
3581 // Type: int
3582 // RequirementLevel: Recommended
3583 // Stability: Development
3584 //
3585 // Examples: 3389, 2888
3586 DestinationPortKey = attribute.Key("destination.port")
3587 )
3588
3589 // DestinationAddress returns an attribute KeyValue conforming to the
3590 // "destination.address" semantic conventions. It represents the destination
3591 // address - domain name if available without reverse DNS lookup; otherwise, IP
3592 // address or Unix domain socket name.
3593 func DestinationAddress(val string) attribute.KeyValue {
3594 return DestinationAddressKey.String(val)
3595 }
3596
3597 // DestinationPort returns an attribute KeyValue conforming to the
3598 // "destination.port" semantic conventions. It represents the destination port
3599 // number.
3600 func DestinationPort(val int) attribute.KeyValue {
3601 return DestinationPortKey.Int(val)
3602 }
3603
3604 // Namespace: device
3605 const (
3606 // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
3607 // conventions. It represents a unique identifier representing the device.
3608 //
3609 // Type: string
3610 // RequirementLevel: Recommended
3611 // Stability: Development
3612 //
3613 // Examples: "2ab2916d-a51f-4ac8-80ee-45ac31a28092"
3614 // Note: The device identifier MUST only be defined using the values outlined
3615 // below. This value is not an advertising identifier and MUST NOT be used as
3616 // such. On iOS (Swift or Objective-C), this value MUST be equal to the
3617 // [vendor identifier]. On Android (Java or Kotlin), this value MUST be equal to
3618 // the Firebase Installation ID or a globally unique UUID which is persisted
3619 // across sessions in your application. More information can be found [here] on
3620 // best practices and exact implementation details. Caution should be taken when
3621 // storing personal data or anything which can identify a user. GDPR and data
3622 // protection laws may apply, ensure you do your own due diligence.
3623 //
3624 // [vendor identifier]: https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor
3625 // [here]: https://developer.android.com/training/articles/user-data-ids
3626 DeviceIDKey = attribute.Key("device.id")
3627
3628 // DeviceManufacturerKey is the attribute Key conforming to the
3629 // "device.manufacturer" semantic conventions. It represents the name of the
3630 // device manufacturer.
3631 //
3632 // Type: string
3633 // RequirementLevel: Recommended
3634 // Stability: Development
3635 //
3636 // Examples: "Apple", "Samsung"
3637 // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
3638 // hardcode the value `Apple`.
3639 //
3640 // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
3641 DeviceManufacturerKey = attribute.Key("device.manufacturer")
3642
3643 // DeviceModelIdentifierKey is the attribute Key conforming to the
3644 // "device.model.identifier" semantic conventions. It represents the model
3645 // identifier for the device.
3646 //
3647 // Type: string
3648 // RequirementLevel: Recommended
3649 // Stability: Development
3650 //
3651 // Examples: "iPhone3,4", "SM-G920F"
3652 // Note: It's recommended this value represents a machine-readable version of
3653 // the model identifier rather than the market or consumer-friendly name of the
3654 // device.
3655 DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
3656
3657 // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
3658 // semantic conventions. It represents the marketing name for the device model.
3659 //
3660 // Type: string
3661 // RequirementLevel: Recommended
3662 // Stability: Development
3663 //
3664 // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
3665 // Note: It's recommended this value represents a human-readable version of the
3666 // device model rather than a machine-readable alternative.
3667 DeviceModelNameKey = attribute.Key("device.model.name")
3668 )
3669
3670 // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
3671 // conventions. It represents a unique identifier representing the device.
3672 func DeviceID(val string) attribute.KeyValue {
3673 return DeviceIDKey.String(val)
3674 }
3675
3676 // DeviceManufacturer returns an attribute KeyValue conforming to the
3677 // "device.manufacturer" semantic conventions. It represents the name of the
3678 // device manufacturer.
3679 func DeviceManufacturer(val string) attribute.KeyValue {
3680 return DeviceManufacturerKey.String(val)
3681 }
3682
3683 // DeviceModelIdentifier returns an attribute KeyValue conforming to the
3684 // "device.model.identifier" semantic conventions. It represents the model
3685 // identifier for the device.
3686 func DeviceModelIdentifier(val string) attribute.KeyValue {
3687 return DeviceModelIdentifierKey.String(val)
3688 }
3689
3690 // DeviceModelName returns an attribute KeyValue conforming to the
3691 // "device.model.name" semantic conventions. It represents the marketing name for
3692 // the device model.
3693 func DeviceModelName(val string) attribute.KeyValue {
3694 return DeviceModelNameKey.String(val)
3695 }
3696
3697 // Namespace: disk
3698 const (
3699 // DiskIoDirectionKey is the attribute Key conforming to the "disk.io.direction"
3700 // semantic conventions. It represents the disk IO operation direction.
3701 //
3702 // Type: Enum
3703 // RequirementLevel: Recommended
3704 // Stability: Development
3705 //
3706 // Examples: "read"
3707 DiskIoDirectionKey = attribute.Key("disk.io.direction")
3708 )
3709
3710 // Enum values for disk.io.direction
3711 var (
3712 // read
3713 // Stability: development
3714 DiskIoDirectionRead = DiskIoDirectionKey.String("read")
3715 // write
3716 // Stability: development
3717 DiskIoDirectionWrite = DiskIoDirectionKey.String("write")
3718 )
3719
3720 // Namespace: dns
3721 const (
3722 // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
3723 // semantic conventions. It represents the name being queried.
3724 //
3725 // Type: string
3726 // RequirementLevel: Recommended
3727 // Stability: Development
3728 //
3729 // Examples: "www.example.com", "opentelemetry.io"
3730 // Note: If the name field contains non-printable characters (below 32 or above
3731 // 126), those characters should be represented as escaped base 10 integers
3732 // (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns,
3733 // and line feeds should be converted to \t, \r, and \n respectively.
3734 DNSQuestionNameKey = attribute.Key("dns.question.name")
3735 )
3736
3737 // DNSQuestionName returns an attribute KeyValue conforming to the
3738 // "dns.question.name" semantic conventions. It represents the name being
3739 // queried.
3740 func DNSQuestionName(val string) attribute.KeyValue {
3741 return DNSQuestionNameKey.String(val)
3742 }
3743
3744 // Namespace: elasticsearch
3745 const (
3746 // ElasticsearchNodeNameKey is the attribute Key conforming to the
3747 // "elasticsearch.node.name" semantic conventions. It represents the represents
3748 // the human-readable identifier of the node/instance to which a request was
3749 // routed.
3750 //
3751 // Type: string
3752 // RequirementLevel: Recommended
3753 // Stability: Development
3754 //
3755 // Examples: "instance-0000000001"
3756 ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name")
3757 )
3758
3759 // ElasticsearchNodeName returns an attribute KeyValue conforming to the
3760 // "elasticsearch.node.name" semantic conventions. It represents the represents
3761 // the human-readable identifier of the node/instance to which a request was
3762 // routed.
3763 func ElasticsearchNodeName(val string) attribute.KeyValue {
3764 return ElasticsearchNodeNameKey.String(val)
3765 }
3766
3767 // Namespace: error
3768 const (
3769 // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
3770 // conventions. It represents the describes a class of error the operation ended
3771 // with.
3772 //
3773 // Type: Enum
3774 // RequirementLevel: Recommended
3775 // Stability: Stable
3776 //
3777 // Examples: "timeout", "java.net.UnknownHostException",
3778 // "server_certificate_invalid", "500"
3779 // Note: The `error.type` SHOULD be predictable, and SHOULD have low
3780 // cardinality.
3781 //
3782 // When `error.type` is set to a type (e.g., an exception type), its
3783 // canonical class name identifying the type within the artifact SHOULD be used.
3784 //
3785 // Instrumentations SHOULD document the list of errors they report.
3786 //
3787 // The cardinality of `error.type` within one instrumentation library SHOULD be
3788 // low.
3789 // Telemetry consumers that aggregate data from multiple instrumentation
3790 // libraries and applications
3791 // should be prepared for `error.type` to have high cardinality at query time
3792 // when no
3793 // additional filters are applied.
3794 //
3795 // If the operation has completed successfully, instrumentations SHOULD NOT set
3796 // `error.type`.
3797 //
3798 // If a specific domain defines its own set of error identifiers (such as HTTP
3799 // or gRPC status codes),
3800 // it's RECOMMENDED to:
3801 //
3802 // - Use a domain-specific attribute
3803 // - Set `error.type` to capture all errors, regardless of whether they are
3804 // defined within the domain-specific set or not.
3805 ErrorTypeKey = attribute.Key("error.type")
3806 )
3807
3808 // Enum values for error.type
3809 var (
3810 // A fallback error value to be used when the instrumentation doesn't define a
3811 // custom value.
3812 //
3813 // Stability: stable
3814 ErrorTypeOther = ErrorTypeKey.String("_OTHER")
3815 )
3816
3817 // Namespace: exception
3818 const (
3819 // ExceptionMessageKey is the attribute Key conforming to the
3820 // "exception.message" semantic conventions. It represents the exception
3821 // message.
3822 //
3823 // Type: string
3824 // RequirementLevel: Recommended
3825 // Stability: Stable
3826 //
3827 // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
3828 ExceptionMessageKey = attribute.Key("exception.message")
3829
3830 // ExceptionStacktraceKey is the attribute Key conforming to the
3831 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
3832 // string in the natural representation for the language runtime. The
3833 // representation is to be determined and documented by each language SIG.
3834 //
3835 // Type: string
3836 // RequirementLevel: Recommended
3837 // Stability: Stable
3838 //
3839 // Examples: Exception in thread "main" java.lang.RuntimeException: Test
3840 // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
3841 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
3842 // com.example.GenerateTrace.main(GenerateTrace.java:5)
3843 ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
3844
3845 // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
3846 // semantic conventions. It represents the type of the exception (its
3847 // fully-qualified class name, if applicable). The dynamic type of the exception
3848 // should be preferred over the static type in languages that support it.
3849 //
3850 // Type: string
3851 // RequirementLevel: Recommended
3852 // Stability: Stable
3853 //
3854 // Examples: "java.net.ConnectException", "OSError"
3855 ExceptionTypeKey = attribute.Key("exception.type")
3856 )
3857
3858 // ExceptionMessage returns an attribute KeyValue conforming to the
3859 // "exception.message" semantic conventions. It represents the exception message.
3860 func ExceptionMessage(val string) attribute.KeyValue {
3861 return ExceptionMessageKey.String(val)
3862 }
3863
3864 // ExceptionStacktrace returns an attribute KeyValue conforming to the
3865 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
3866 // string in the natural representation for the language runtime. The
3867 // representation is to be determined and documented by each language SIG.
3868 func ExceptionStacktrace(val string) attribute.KeyValue {
3869 return ExceptionStacktraceKey.String(val)
3870 }
3871
3872 // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
3873 // semantic conventions. It represents the type of the exception (its
3874 // fully-qualified class name, if applicable). The dynamic type of the exception
3875 // should be preferred over the static type in languages that support it.
3876 func ExceptionType(val string) attribute.KeyValue {
3877 return ExceptionTypeKey.String(val)
3878 }
3879
3880 // Namespace: faas
3881 const (
3882 // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
3883 // semantic conventions. It represents a boolean that is true if the serverless
3884 // function is executed for the first time (aka cold-start).
3885 //
3886 // Type: boolean
3887 // RequirementLevel: Recommended
3888 // Stability: Development
3889 //
3890 // Examples:
3891 FaaSColdstartKey = attribute.Key("faas.coldstart")
3892
3893 // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
3894 // conventions. It represents a string containing the schedule period as
3895 // [Cron Expression].
3896 //
3897 // Type: string
3898 // RequirementLevel: Recommended
3899 // Stability: Development
3900 //
3901 // Examples: 0/5 * * * ? *
3902 //
3903 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
3904 FaaSCronKey = attribute.Key("faas.cron")
3905
3906 // FaaSDocumentCollectionKey is the attribute Key conforming to the
3907 // "faas.document.collection" semantic conventions. It represents the name of
3908 // the source on which the triggering operation was performed. For example, in
3909 // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
3910 // database name.
3911 //
3912 // Type: string
3913 // RequirementLevel: Recommended
3914 // Stability: Development
3915 //
3916 // Examples: "myBucketName", "myDbName"
3917 FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
3918
3919 // FaaSDocumentNameKey is the attribute Key conforming to the
3920 // "faas.document.name" semantic conventions. It represents the document
3921 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
3922 // the name of the file, and in Cosmos DB the table name.
3923 //
3924 // Type: string
3925 // RequirementLevel: Recommended
3926 // Stability: Development
3927 //
3928 // Examples: "myFile.txt", "myTableName"
3929 FaaSDocumentNameKey = attribute.Key("faas.document.name")
3930
3931 // FaaSDocumentOperationKey is the attribute Key conforming to the
3932 // "faas.document.operation" semantic conventions. It represents the describes
3933 // the type of the operation that was performed on the data.
3934 //
3935 // Type: Enum
3936 // RequirementLevel: Recommended
3937 // Stability: Development
3938 //
3939 // Examples:
3940 FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
3941
3942 // FaaSDocumentTimeKey is the attribute Key conforming to the
3943 // "faas.document.time" semantic conventions. It represents a string containing
3944 // the time when the data was accessed in the [ISO 8601] format expressed in
3945 // [UTC].
3946 //
3947 // Type: string
3948 // RequirementLevel: Recommended
3949 // Stability: Development
3950 //
3951 // Examples: 2020-01-23T13:47:06Z
3952 //
3953 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
3954 // [UTC]: https://www.w3.org/TR/NOTE-datetime
3955 FaaSDocumentTimeKey = attribute.Key("faas.document.time")
3956
3957 // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
3958 // semantic conventions. It represents the execution environment ID as a string,
3959 // that will be potentially reused for other invocations to the same
3960 // function/function version.
3961 //
3962 // Type: string
3963 // RequirementLevel: Recommended
3964 // Stability: Development
3965 //
3966 // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
3967 // Note: - **AWS Lambda:** Use the (full) log stream name.
3968 FaaSInstanceKey = attribute.Key("faas.instance")
3969
3970 // FaaSInvocationIDKey is the attribute Key conforming to the
3971 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
3972 // the current function invocation.
3973 //
3974 // Type: string
3975 // RequirementLevel: Recommended
3976 // Stability: Development
3977 //
3978 // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
3979 FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
3980
3981 // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
3982 // semantic conventions. It represents the name of the invoked function.
3983 //
3984 // Type: string
3985 // RequirementLevel: Recommended
3986 // Stability: Development
3987 //
3988 // Examples: my-function
3989 // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
3990 // function.
3991 FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
3992
3993 // FaaSInvokedProviderKey is the attribute Key conforming to the
3994 // "faas.invoked_provider" semantic conventions. It represents the cloud
3995 // provider of the invoked function.
3996 //
3997 // Type: Enum
3998 // RequirementLevel: Recommended
3999 // Stability: Development
4000 //
4001 // Examples:
4002 // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
4003 // invoked function.
4004 FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
4005
4006 // FaaSInvokedRegionKey is the attribute Key conforming to the
4007 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4008 // the invoked function.
4009 //
4010 // Type: string
4011 // RequirementLevel: Recommended
4012 // Stability: Development
4013 //
4014 // Examples: eu-central-1
4015 // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
4016 // function.
4017 FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
4018
4019 // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
4020 // semantic conventions. It represents the amount of memory available to the
4021 // serverless function converted to Bytes.
4022 //
4023 // Type: int
4024 // RequirementLevel: Recommended
4025 // Stability: Development
4026 //
4027 // Note: It's recommended to set this attribute since e.g. too little memory can
4028 // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
4029 // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
4030 // information (which must be multiplied by 1,048,576).
4031 FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
4032
4033 // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
4034 // conventions. It represents the name of the single function that this runtime
4035 // instance executes.
4036 //
4037 // Type: string
4038 // RequirementLevel: Recommended
4039 // Stability: Development
4040 //
4041 // Examples: "my-function", "myazurefunctionapp/some-function-name"
4042 // Note: This is the name of the function as configured/deployed on the FaaS
4043 // platform and is usually different from the name of the callback
4044 // function (which may be stored in the
4045 // [`code.namespace`/`code.function.name`]
4046 // span attributes).
4047 //
4048 // For some cloud providers, the above definition is ambiguous. The following
4049 // definition of function name MUST be used for this attribute
4050 // (and consequently the span name) for the listed cloud providers/products:
4051 //
4052 // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
4053 // followed by a forward slash followed by the function name (this form
4054 // can also be seen in the resource JSON for the function).
4055 // This means that a span attribute MUST be used, as an Azure function
4056 // app can host multiple functions that would usually share
4057 // a TracerProvider (see also the `cloud.resource_id` attribute).
4058 //
4059 //
4060 // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes
4061 FaaSNameKey = attribute.Key("faas.name")
4062
4063 // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
4064 // conventions. It represents a string containing the function invocation time
4065 // in the [ISO 8601] format expressed in [UTC].
4066 //
4067 // Type: string
4068 // RequirementLevel: Recommended
4069 // Stability: Development
4070 //
4071 // Examples: 2020-01-23T13:47:06Z
4072 //
4073 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4074 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4075 FaaSTimeKey = attribute.Key("faas.time")
4076
4077 // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
4078 // conventions. It represents the type of the trigger which caused this function
4079 // invocation.
4080 //
4081 // Type: Enum
4082 // RequirementLevel: Recommended
4083 // Stability: Development
4084 //
4085 // Examples:
4086 FaaSTriggerKey = attribute.Key("faas.trigger")
4087
4088 // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
4089 // conventions. It represents the immutable version of the function being
4090 // executed.
4091 //
4092 // Type: string
4093 // RequirementLevel: Recommended
4094 // Stability: Development
4095 //
4096 // Examples: "26", "pinkfroid-00002"
4097 // Note: Depending on the cloud provider and platform, use:
4098 //
4099 // - **AWS Lambda:** The [function version]
4100 // (an integer represented as a decimal string).
4101 // - **Google Cloud Run (Services):** The [revision]
4102 // (i.e., the function name plus the revision suffix).
4103 // - **Google Cloud Functions:** The value of the
4104 // [`K_REVISION` environment variable].
4105 // - **Azure Functions:** Not applicable. Do not set this attribute.
4106 //
4107 //
4108 // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
4109 // [revision]: https://cloud.google.com/run/docs/managing/revisions
4110 // [`K_REVISION` environment variable]: https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically
4111 FaaSVersionKey = attribute.Key("faas.version")
4112 )
4113
4114 // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
4115 // semantic conventions. It represents a boolean that is true if the serverless
4116 // function is executed for the first time (aka cold-start).
4117 func FaaSColdstart(val bool) attribute.KeyValue {
4118 return FaaSColdstartKey.Bool(val)
4119 }
4120
4121 // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
4122 // conventions. It represents a string containing the schedule period as
4123 // [Cron Expression].
4124 //
4125 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4126 func FaaSCron(val string) attribute.KeyValue {
4127 return FaaSCronKey.String(val)
4128 }
4129
4130 // FaaSDocumentCollection returns an attribute KeyValue conforming to the
4131 // "faas.document.collection" semantic conventions. It represents the name of the
4132 // source on which the triggering operation was performed. For example, in Cloud
4133 // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
4134 // name.
4135 func FaaSDocumentCollection(val string) attribute.KeyValue {
4136 return FaaSDocumentCollectionKey.String(val)
4137 }
4138
4139 // FaaSDocumentName returns an attribute KeyValue conforming to the
4140 // "faas.document.name" semantic conventions. It represents the document
4141 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4142 // the name of the file, and in Cosmos DB the table name.
4143 func FaaSDocumentName(val string) attribute.KeyValue {
4144 return FaaSDocumentNameKey.String(val)
4145 }
4146
4147 // FaaSDocumentTime returns an attribute KeyValue conforming to the
4148 // "faas.document.time" semantic conventions. It represents a string containing
4149 // the time when the data was accessed in the [ISO 8601] format expressed in
4150 // [UTC].
4151 //
4152 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4153 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4154 func FaaSDocumentTime(val string) attribute.KeyValue {
4155 return FaaSDocumentTimeKey.String(val)
4156 }
4157
4158 // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
4159 // semantic conventions. It represents the execution environment ID as a string,
4160 // that will be potentially reused for other invocations to the same
4161 // function/function version.
4162 func FaaSInstance(val string) attribute.KeyValue {
4163 return FaaSInstanceKey.String(val)
4164 }
4165
4166 // FaaSInvocationID returns an attribute KeyValue conforming to the
4167 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4168 // the current function invocation.
4169 func FaaSInvocationID(val string) attribute.KeyValue {
4170 return FaaSInvocationIDKey.String(val)
4171 }
4172
4173 // FaaSInvokedName returns an attribute KeyValue conforming to the
4174 // "faas.invoked_name" semantic conventions. It represents the name of the
4175 // invoked function.
4176 func FaaSInvokedName(val string) attribute.KeyValue {
4177 return FaaSInvokedNameKey.String(val)
4178 }
4179
4180 // FaaSInvokedRegion returns an attribute KeyValue conforming to the
4181 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4182 // the invoked function.
4183 func FaaSInvokedRegion(val string) attribute.KeyValue {
4184 return FaaSInvokedRegionKey.String(val)
4185 }
4186
4187 // FaaSMaxMemory returns an attribute KeyValue conforming to the
4188 // "faas.max_memory" semantic conventions. It represents the amount of memory
4189 // available to the serverless function converted to Bytes.
4190 func FaaSMaxMemory(val int) attribute.KeyValue {
4191 return FaaSMaxMemoryKey.Int(val)
4192 }
4193
4194 // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
4195 // conventions. It represents the name of the single function that this runtime
4196 // instance executes.
4197 func FaaSName(val string) attribute.KeyValue {
4198 return FaaSNameKey.String(val)
4199 }
4200
4201 // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
4202 // conventions. It represents a string containing the function invocation time in
4203 // the [ISO 8601] format expressed in [UTC].
4204 //
4205 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4206 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4207 func FaaSTime(val string) attribute.KeyValue {
4208 return FaaSTimeKey.String(val)
4209 }
4210
4211 // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
4212 // semantic conventions. It represents the immutable version of the function
4213 // being executed.
4214 func FaaSVersion(val string) attribute.KeyValue {
4215 return FaaSVersionKey.String(val)
4216 }
4217
4218 // Enum values for faas.document.operation
4219 var (
4220 // When a new object is created.
4221 // Stability: development
4222 FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
4223 // When an object is modified.
4224 // Stability: development
4225 FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
4226 // When an object is deleted.
4227 // Stability: development
4228 FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
4229 )
4230
4231 // Enum values for faas.invoked_provider
4232 var (
4233 // Alibaba Cloud
4234 // Stability: development
4235 FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
4236 // Amazon Web Services
4237 // Stability: development
4238 FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
4239 // Microsoft Azure
4240 // Stability: development
4241 FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
4242 // Google Cloud Platform
4243 // Stability: development
4244 FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
4245 // Tencent Cloud
4246 // Stability: development
4247 FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
4248 )
4249
4250 // Enum values for faas.trigger
4251 var (
4252 // A response to some data source operation such as a database or filesystem
4253 // read/write
4254 // Stability: development
4255 FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
4256 // To provide an answer to an inbound HTTP request
4257 // Stability: development
4258 FaaSTriggerHTTP = FaaSTriggerKey.String("http")
4259 // A function is set to be executed when messages are sent to a messaging system
4260 // Stability: development
4261 FaaSTriggerPubsub = FaaSTriggerKey.String("pubsub")
4262 // A function is scheduled to be executed regularly
4263 // Stability: development
4264 FaaSTriggerTimer = FaaSTriggerKey.String("timer")
4265 // If none of the others apply
4266 // Stability: development
4267 FaaSTriggerOther = FaaSTriggerKey.String("other")
4268 )
4269
4270 // Namespace: feature_flag
4271 const (
4272 // FeatureFlagContextIDKey is the attribute Key conforming to the
4273 // "feature_flag.context.id" semantic conventions. It represents the unique
4274 // identifier for the flag evaluation context. For example, the targeting key.
4275 //
4276 // Type: string
4277 // RequirementLevel: Recommended
4278 // Stability: Development
4279 //
4280 // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db"
4281 FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id")
4282
4283 // FeatureFlagEvaluationErrorMessageKey is the attribute Key conforming to the
4284 // "feature_flag.evaluation.error.message" semantic conventions. It represents a
4285 // message explaining the nature of an error occurring during flag evaluation.
4286 //
4287 // Type: string
4288 // RequirementLevel: Recommended
4289 // Stability: Development
4290 //
4291 // Examples: "Flag `header-color` expected type `string` but found type `number`
4292 // "
4293 FeatureFlagEvaluationErrorMessageKey = attribute.Key("feature_flag.evaluation.error.message")
4294
4295 // FeatureFlagEvaluationReasonKey is the attribute Key conforming to the
4296 // "feature_flag.evaluation.reason" semantic conventions. It represents the
4297 // reason code which shows how a feature flag value was determined.
4298 //
4299 // Type: Enum
4300 // RequirementLevel: Recommended
4301 // Stability: Development
4302 //
4303 // Examples: "static", "targeting_match", "error", "default"
4304 FeatureFlagEvaluationReasonKey = attribute.Key("feature_flag.evaluation.reason")
4305
4306 // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
4307 // semantic conventions. It represents the lookup key of the feature flag.
4308 //
4309 // Type: string
4310 // RequirementLevel: Recommended
4311 // Stability: Development
4312 //
4313 // Examples: "logo-color"
4314 FeatureFlagKeyKey = attribute.Key("feature_flag.key")
4315
4316 // FeatureFlagProviderNameKey is the attribute Key conforming to the
4317 // "feature_flag.provider_name" semantic conventions. It represents the
4318 // identifies the feature flag provider.
4319 //
4320 // Type: string
4321 // RequirementLevel: Recommended
4322 // Stability: Development
4323 //
4324 // Examples: "Flag Manager"
4325 FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider_name")
4326
4327 // FeatureFlagSetIDKey is the attribute Key conforming to the
4328 // "feature_flag.set.id" semantic conventions. It represents the identifier of
4329 // the [flag set] to which the feature flag belongs.
4330 //
4331 // Type: string
4332 // RequirementLevel: Recommended
4333 // Stability: Development
4334 //
4335 // Examples: "proj-1", "ab98sgs", "service1/dev"
4336 //
4337 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
4338 FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id")
4339
4340 // FeatureFlagVariantKey is the attribute Key conforming to the
4341 // "feature_flag.variant" semantic conventions. It represents a semantic
4342 // identifier for an evaluated flag value.
4343 //
4344 // Type: string
4345 // RequirementLevel: Recommended
4346 // Stability: Development
4347 //
4348 // Examples: "red", "true", "on"
4349 // Note: A semantic identifier, commonly referred to as a variant, provides a
4350 // means
4351 // for referring to a value without including the value itself. This can
4352 // provide additional context for understanding the meaning behind a value.
4353 // For example, the variant `red` maybe be used for the value `#c05543`.
4354 FeatureFlagVariantKey = attribute.Key("feature_flag.variant")
4355
4356 // FeatureFlagVersionKey is the attribute Key conforming to the
4357 // "feature_flag.version" semantic conventions. It represents the version of the
4358 // ruleset used during the evaluation. This may be any stable value which
4359 // uniquely identifies the ruleset.
4360 //
4361 // Type: string
4362 // RequirementLevel: Recommended
4363 // Stability: Development
4364 //
4365 // Examples: "1", "01ABCDEF"
4366 FeatureFlagVersionKey = attribute.Key("feature_flag.version")
4367 )
4368
4369 // FeatureFlagContextID returns an attribute KeyValue conforming to the
4370 // "feature_flag.context.id" semantic conventions. It represents the unique
4371 // identifier for the flag evaluation context. For example, the targeting key.
4372 func FeatureFlagContextID(val string) attribute.KeyValue {
4373 return FeatureFlagContextIDKey.String(val)
4374 }
4375
4376 // FeatureFlagEvaluationErrorMessage returns an attribute KeyValue conforming to
4377 // the "feature_flag.evaluation.error.message" semantic conventions. It
4378 // represents a message explaining the nature of an error occurring during flag
4379 // evaluation.
4380 func FeatureFlagEvaluationErrorMessage(val string) attribute.KeyValue {
4381 return FeatureFlagEvaluationErrorMessageKey.String(val)
4382 }
4383
4384 // FeatureFlagKey returns an attribute KeyValue conforming to the
4385 // "feature_flag.key" semantic conventions. It represents the lookup key of the
4386 // feature flag.
4387 func FeatureFlagKey(val string) attribute.KeyValue {
4388 return FeatureFlagKeyKey.String(val)
4389 }
4390
4391 // FeatureFlagProviderName returns an attribute KeyValue conforming to the
4392 // "feature_flag.provider_name" semantic conventions. It represents the
4393 // identifies the feature flag provider.
4394 func FeatureFlagProviderName(val string) attribute.KeyValue {
4395 return FeatureFlagProviderNameKey.String(val)
4396 }
4397
4398 // FeatureFlagSetID returns an attribute KeyValue conforming to the
4399 // "feature_flag.set.id" semantic conventions. It represents the identifier of
4400 // the [flag set] to which the feature flag belongs.
4401 //
4402 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
4403 func FeatureFlagSetID(val string) attribute.KeyValue {
4404 return FeatureFlagSetIDKey.String(val)
4405 }
4406
4407 // FeatureFlagVariant returns an attribute KeyValue conforming to the
4408 // "feature_flag.variant" semantic conventions. It represents a semantic
4409 // identifier for an evaluated flag value.
4410 func FeatureFlagVariant(val string) attribute.KeyValue {
4411 return FeatureFlagVariantKey.String(val)
4412 }
4413
4414 // FeatureFlagVersion returns an attribute KeyValue conforming to the
4415 // "feature_flag.version" semantic conventions. It represents the version of the
4416 // ruleset used during the evaluation. This may be any stable value which
4417 // uniquely identifies the ruleset.
4418 func FeatureFlagVersion(val string) attribute.KeyValue {
4419 return FeatureFlagVersionKey.String(val)
4420 }
4421
4422 // Enum values for feature_flag.evaluation.reason
4423 var (
4424 // The resolved value is static (no dynamic evaluation).
4425 // Stability: development
4426 FeatureFlagEvaluationReasonStatic = FeatureFlagEvaluationReasonKey.String("static")
4427 // The resolved value fell back to a pre-configured value (no dynamic evaluation
4428 // occurred or dynamic evaluation yielded no result).
4429 // Stability: development
4430 FeatureFlagEvaluationReasonDefault = FeatureFlagEvaluationReasonKey.String("default")
4431 // The resolved value was the result of a dynamic evaluation, such as a rule or
4432 // specific user-targeting.
4433 // Stability: development
4434 FeatureFlagEvaluationReasonTargetingMatch = FeatureFlagEvaluationReasonKey.String("targeting_match")
4435 // The resolved value was the result of pseudorandom assignment.
4436 // Stability: development
4437 FeatureFlagEvaluationReasonSplit = FeatureFlagEvaluationReasonKey.String("split")
4438 // The resolved value was retrieved from cache.
4439 // Stability: development
4440 FeatureFlagEvaluationReasonCached = FeatureFlagEvaluationReasonKey.String("cached")
4441 // The resolved value was the result of the flag being disabled in the
4442 // management system.
4443 // Stability: development
4444 FeatureFlagEvaluationReasonDisabled = FeatureFlagEvaluationReasonKey.String("disabled")
4445 // The reason for the resolved value could not be determined.
4446 // Stability: development
4447 FeatureFlagEvaluationReasonUnknown = FeatureFlagEvaluationReasonKey.String("unknown")
4448 // The resolved value is non-authoritative or possibly out of date
4449 // Stability: development
4450 FeatureFlagEvaluationReasonStale = FeatureFlagEvaluationReasonKey.String("stale")
4451 // The resolved value was the result of an error.
4452 // Stability: development
4453 FeatureFlagEvaluationReasonError = FeatureFlagEvaluationReasonKey.String("error")
4454 )
4455
4456 // Namespace: file
4457 const (
4458 // FileAccessedKey is the attribute Key conforming to the "file.accessed"
4459 // semantic conventions. It represents the time when the file was last accessed,
4460 // in ISO 8601 format.
4461 //
4462 // Type: string
4463 // RequirementLevel: Recommended
4464 // Stability: Development
4465 //
4466 // Examples: "2021-01-01T12:00:00Z"
4467 // Note: This attribute might not be supported by some file systems — NFS,
4468 // FAT32, in embedded OS, etc.
4469 FileAccessedKey = attribute.Key("file.accessed")
4470
4471 // FileAttributesKey is the attribute Key conforming to the "file.attributes"
4472 // semantic conventions. It represents the array of file attributes.
4473 //
4474 // Type: string[]
4475 // RequirementLevel: Recommended
4476 // Stability: Development
4477 //
4478 // Examples: "readonly", "hidden"
4479 // Note: Attributes names depend on the OS or file system. Here’s a
4480 // non-exhaustive list of values expected for this attribute: `archive`,
4481 // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
4482 // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
4483 // `write`.
4484 FileAttributesKey = attribute.Key("file.attributes")
4485
4486 // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
4487 // conventions. It represents the time when the file attributes or metadata was
4488 // last changed, in ISO 8601 format.
4489 //
4490 // Type: string
4491 // RequirementLevel: Recommended
4492 // Stability: Development
4493 //
4494 // Examples: "2021-01-01T12:00:00Z"
4495 // Note: `file.changed` captures the time when any of the file's properties or
4496 // attributes (including the content) are changed, while `file.modified`
4497 // captures the timestamp when the file content is modified.
4498 FileChangedKey = attribute.Key("file.changed")
4499
4500 // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
4501 // conventions. It represents the time when the file was created, in ISO 8601
4502 // format.
4503 //
4504 // Type: string
4505 // RequirementLevel: Recommended
4506 // Stability: Development
4507 //
4508 // Examples: "2021-01-01T12:00:00Z"
4509 // Note: This attribute might not be supported by some file systems — NFS,
4510 // FAT32, in embedded OS, etc.
4511 FileCreatedKey = attribute.Key("file.created")
4512
4513 // FileDirectoryKey is the attribute Key conforming to the "file.directory"
4514 // semantic conventions. It represents the directory where the file is located.
4515 // It should include the drive letter, when appropriate.
4516 //
4517 // Type: string
4518 // RequirementLevel: Recommended
4519 // Stability: Development
4520 //
4521 // Examples: "/home/user", "C:\Program Files\MyApp"
4522 FileDirectoryKey = attribute.Key("file.directory")
4523
4524 // FileExtensionKey is the attribute Key conforming to the "file.extension"
4525 // semantic conventions. It represents the file extension, excluding the leading
4526 // dot.
4527 //
4528 // Type: string
4529 // RequirementLevel: Recommended
4530 // Stability: Development
4531 //
4532 // Examples: "png", "gz"
4533 // Note: When the file name has multiple extensions (example.tar.gz), only the
4534 // last one should be captured ("gz", not "tar.gz").
4535 FileExtensionKey = attribute.Key("file.extension")
4536
4537 // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
4538 // semantic conventions. It represents the name of the fork. A fork is
4539 // additional data associated with a filesystem object.
4540 //
4541 // Type: string
4542 // RequirementLevel: Recommended
4543 // Stability: Development
4544 //
4545 // Examples: "Zone.Identifer"
4546 // Note: On Linux, a resource fork is used to store additional data with a
4547 // filesystem object. A file always has at least one fork for the data portion,
4548 // and additional forks may exist.
4549 // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
4550 // data stream for a file is just called $DATA. Zone.Identifier is commonly used
4551 // by Windows to track contents downloaded from the Internet. An ADS is
4552 // typically of the form: C:\path\to\filename.extension:some_fork_name, and
4553 // some_fork_name is the value that should populate `fork_name`.
4554 // `filename.extension` should populate `file.name`, and `extension` should
4555 // populate `file.extension`. The full path, `file.path`, will include the fork
4556 // name.
4557 FileForkNameKey = attribute.Key("file.fork_name")
4558
4559 // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
4560 // semantic conventions. It represents the primary Group ID (GID) of the file.
4561 //
4562 // Type: string
4563 // RequirementLevel: Recommended
4564 // Stability: Development
4565 //
4566 // Examples: "1000"
4567 FileGroupIDKey = attribute.Key("file.group.id")
4568
4569 // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
4570 // semantic conventions. It represents the primary group name of the file.
4571 //
4572 // Type: string
4573 // RequirementLevel: Recommended
4574 // Stability: Development
4575 //
4576 // Examples: "users"
4577 FileGroupNameKey = attribute.Key("file.group.name")
4578
4579 // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
4580 // conventions. It represents the inode representing the file in the filesystem.
4581 //
4582 // Type: string
4583 // RequirementLevel: Recommended
4584 // Stability: Development
4585 //
4586 // Examples: "256383"
4587 FileInodeKey = attribute.Key("file.inode")
4588
4589 // FileModeKey is the attribute Key conforming to the "file.mode" semantic
4590 // conventions. It represents the mode of the file in octal representation.
4591 //
4592 // Type: string
4593 // RequirementLevel: Recommended
4594 // Stability: Development
4595 //
4596 // Examples: "0640"
4597 FileModeKey = attribute.Key("file.mode")
4598
4599 // FileModifiedKey is the attribute Key conforming to the "file.modified"
4600 // semantic conventions. It represents the time when the file content was last
4601 // modified, in ISO 8601 format.
4602 //
4603 // Type: string
4604 // RequirementLevel: Recommended
4605 // Stability: Development
4606 //
4607 // Examples: "2021-01-01T12:00:00Z"
4608 FileModifiedKey = attribute.Key("file.modified")
4609
4610 // FileNameKey is the attribute Key conforming to the "file.name" semantic
4611 // conventions. It represents the name of the file including the extension,
4612 // without the directory.
4613 //
4614 // Type: string
4615 // RequirementLevel: Recommended
4616 // Stability: Development
4617 //
4618 // Examples: "example.png"
4619 FileNameKey = attribute.Key("file.name")
4620
4621 // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
4622 // semantic conventions. It represents the user ID (UID) or security identifier
4623 // (SID) of the file owner.
4624 //
4625 // Type: string
4626 // RequirementLevel: Recommended
4627 // Stability: Development
4628 //
4629 // Examples: "1000"
4630 FileOwnerIDKey = attribute.Key("file.owner.id")
4631
4632 // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
4633 // semantic conventions. It represents the username of the file owner.
4634 //
4635 // Type: string
4636 // RequirementLevel: Recommended
4637 // Stability: Development
4638 //
4639 // Examples: "root"
4640 FileOwnerNameKey = attribute.Key("file.owner.name")
4641
4642 // FilePathKey is the attribute Key conforming to the "file.path" semantic
4643 // conventions. It represents the full path to the file, including the file
4644 // name. It should include the drive letter, when appropriate.
4645 //
4646 // Type: string
4647 // RequirementLevel: Recommended
4648 // Stability: Development
4649 //
4650 // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
4651 FilePathKey = attribute.Key("file.path")
4652
4653 // FileSizeKey is the attribute Key conforming to the "file.size" semantic
4654 // conventions. It represents the file size in bytes.
4655 //
4656 // Type: int
4657 // RequirementLevel: Recommended
4658 // Stability: Development
4659 //
4660 // Examples:
4661 FileSizeKey = attribute.Key("file.size")
4662
4663 // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
4664 // "file.symbolic_link.target_path" semantic conventions. It represents the path
4665 // to the target of a symbolic link.
4666 //
4667 // Type: string
4668 // RequirementLevel: Recommended
4669 // Stability: Development
4670 //
4671 // Examples: "/usr/bin/python3"
4672 // Note: This attribute is only applicable to symbolic links.
4673 FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
4674 )
4675
4676 // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
4677 // semantic conventions. It represents the time when the file was last accessed,
4678 // in ISO 8601 format.
4679 func FileAccessed(val string) attribute.KeyValue {
4680 return FileAccessedKey.String(val)
4681 }
4682
4683 // FileAttributes returns an attribute KeyValue conforming to the
4684 // "file.attributes" semantic conventions. It represents the array of file
4685 // attributes.
4686 func FileAttributes(val ...string) attribute.KeyValue {
4687 return FileAttributesKey.StringSlice(val)
4688 }
4689
4690 // FileChanged returns an attribute KeyValue conforming to the "file.changed"
4691 // semantic conventions. It represents the time when the file attributes or
4692 // metadata was last changed, in ISO 8601 format.
4693 func FileChanged(val string) attribute.KeyValue {
4694 return FileChangedKey.String(val)
4695 }
4696
4697 // FileCreated returns an attribute KeyValue conforming to the "file.created"
4698 // semantic conventions. It represents the time when the file was created, in ISO
4699 // 8601 format.
4700 func FileCreated(val string) attribute.KeyValue {
4701 return FileCreatedKey.String(val)
4702 }
4703
4704 // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
4705 // semantic conventions. It represents the directory where the file is located.
4706 // It should include the drive letter, when appropriate.
4707 func FileDirectory(val string) attribute.KeyValue {
4708 return FileDirectoryKey.String(val)
4709 }
4710
4711 // FileExtension returns an attribute KeyValue conforming to the "file.extension"
4712 // semantic conventions. It represents the file extension, excluding the leading
4713 // dot.
4714 func FileExtension(val string) attribute.KeyValue {
4715 return FileExtensionKey.String(val)
4716 }
4717
4718 // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
4719 // semantic conventions. It represents the name of the fork. A fork is additional
4720 // data associated with a filesystem object.
4721 func FileForkName(val string) attribute.KeyValue {
4722 return FileForkNameKey.String(val)
4723 }
4724
4725 // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
4726 // semantic conventions. It represents the primary Group ID (GID) of the file.
4727 func FileGroupID(val string) attribute.KeyValue {
4728 return FileGroupIDKey.String(val)
4729 }
4730
4731 // FileGroupName returns an attribute KeyValue conforming to the
4732 // "file.group.name" semantic conventions. It represents the primary group name
4733 // of the file.
4734 func FileGroupName(val string) attribute.KeyValue {
4735 return FileGroupNameKey.String(val)
4736 }
4737
4738 // FileInode returns an attribute KeyValue conforming to the "file.inode"
4739 // semantic conventions. It represents the inode representing the file in the
4740 // filesystem.
4741 func FileInode(val string) attribute.KeyValue {
4742 return FileInodeKey.String(val)
4743 }
4744
4745 // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
4746 // conventions. It represents the mode of the file in octal representation.
4747 func FileMode(val string) attribute.KeyValue {
4748 return FileModeKey.String(val)
4749 }
4750
4751 // FileModified returns an attribute KeyValue conforming to the "file.modified"
4752 // semantic conventions. It represents the time when the file content was last
4753 // modified, in ISO 8601 format.
4754 func FileModified(val string) attribute.KeyValue {
4755 return FileModifiedKey.String(val)
4756 }
4757
4758 // FileName returns an attribute KeyValue conforming to the "file.name" semantic
4759 // conventions. It represents the name of the file including the extension,
4760 // without the directory.
4761 func FileName(val string) attribute.KeyValue {
4762 return FileNameKey.String(val)
4763 }
4764
4765 // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
4766 // semantic conventions. It represents the user ID (UID) or security identifier
4767 // (SID) of the file owner.
4768 func FileOwnerID(val string) attribute.KeyValue {
4769 return FileOwnerIDKey.String(val)
4770 }
4771
4772 // FileOwnerName returns an attribute KeyValue conforming to the
4773 // "file.owner.name" semantic conventions. It represents the username of the file
4774 // owner.
4775 func FileOwnerName(val string) attribute.KeyValue {
4776 return FileOwnerNameKey.String(val)
4777 }
4778
4779 // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
4780 // conventions. It represents the full path to the file, including the file name.
4781 // It should include the drive letter, when appropriate.
4782 func FilePath(val string) attribute.KeyValue {
4783 return FilePathKey.String(val)
4784 }
4785
4786 // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
4787 // conventions. It represents the file size in bytes.
4788 func FileSize(val int) attribute.KeyValue {
4789 return FileSizeKey.Int(val)
4790 }
4791
4792 // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
4793 // "file.symbolic_link.target_path" semantic conventions. It represents the path
4794 // to the target of a symbolic link.
4795 func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
4796 return FileSymbolicLinkTargetPathKey.String(val)
4797 }
4798
4799 // Namespace: gcp
4800 const (
4801 // GCPClientServiceKey is the attribute Key conforming to the
4802 // "gcp.client.service" semantic conventions. It represents the identifies the
4803 // Google Cloud service for which the official client library is intended.
4804 //
4805 // Type: string
4806 // RequirementLevel: Recommended
4807 // Stability: Development
4808 //
4809 // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
4810 // Note: Intended to be a stable identifier for Google Cloud client libraries
4811 // that is uniform across implementation languages. The value should be derived
4812 // from the canonical service domain for the service; for example,
4813 // 'foo.googleapis.com' should result in a value of 'foo'.
4814 GCPClientServiceKey = attribute.Key("gcp.client.service")
4815
4816 // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
4817 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
4818 // the Cloud Run [execution] being run for the Job, as set by the
4819 // [`CLOUD_RUN_EXECUTION`] environment variable.
4820 //
4821 // Type: string
4822 // RequirementLevel: Recommended
4823 // Stability: Development
4824 //
4825 // Examples: "job-name-xxxx", "sample-job-mdw84"
4826 //
4827 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
4828 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
4829 GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
4830
4831 // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
4832 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
4833 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
4834 // environment variable.
4835 //
4836 // Type: int
4837 // RequirementLevel: Recommended
4838 // Stability: Development
4839 //
4840 // Examples: 0, 1
4841 //
4842 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
4843 GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
4844
4845 // GCPGceInstanceHostnameKey is the attribute Key conforming to the
4846 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
4847 // of a GCE instance. This is the full value of the default or [custom hostname]
4848 // .
4849 //
4850 // Type: string
4851 // RequirementLevel: Recommended
4852 // Stability: Development
4853 //
4854 // Examples: "my-host1234.example.com",
4855 // "sample-vm.us-west1-b.c.my-project.internal"
4856 //
4857 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
4858 GCPGceInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
4859
4860 // GCPGceInstanceNameKey is the attribute Key conforming to the
4861 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
4862 // of a GCE instance. This is the value provided by `host.name`, the visible
4863 // name of the instance in the Cloud Console UI, and the prefix for the default
4864 // hostname of the instance as defined by the [default internal DNS name].
4865 //
4866 // Type: string
4867 // RequirementLevel: Recommended
4868 // Stability: Development
4869 //
4870 // Examples: "instance-1", "my-vm-name"
4871 //
4872 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
4873 GCPGceInstanceNameKey = attribute.Key("gcp.gce.instance.name")
4874 )
4875
4876 // GCPClientService returns an attribute KeyValue conforming to the
4877 // "gcp.client.service" semantic conventions. It represents the identifies the
4878 // Google Cloud service for which the official client library is intended.
4879 func GCPClientService(val string) attribute.KeyValue {
4880 return GCPClientServiceKey.String(val)
4881 }
4882
4883 // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
4884 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
4885 // the Cloud Run [execution] being run for the Job, as set by the
4886 // [`CLOUD_RUN_EXECUTION`] environment variable.
4887 //
4888 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
4889 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
4890 func GCPCloudRunJobExecution(val string) attribute.KeyValue {
4891 return GCPCloudRunJobExecutionKey.String(val)
4892 }
4893
4894 // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
4895 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
4896 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
4897 // environment variable.
4898 //
4899 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
4900 func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
4901 return GCPCloudRunJobTaskIndexKey.Int(val)
4902 }
4903
4904 // GCPGceInstanceHostname returns an attribute KeyValue conforming to the
4905 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
4906 // of a GCE instance. This is the full value of the default or [custom hostname]
4907 // .
4908 //
4909 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
4910 func GCPGceInstanceHostname(val string) attribute.KeyValue {
4911 return GCPGceInstanceHostnameKey.String(val)
4912 }
4913
4914 // GCPGceInstanceName returns an attribute KeyValue conforming to the
4915 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
4916 // of a GCE instance. This is the value provided by `host.name`, the visible name
4917 // of the instance in the Cloud Console UI, and the prefix for the default
4918 // hostname of the instance as defined by the [default internal DNS name].
4919 //
4920 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
4921 func GCPGceInstanceName(val string) attribute.KeyValue {
4922 return GCPGceInstanceNameKey.String(val)
4923 }
4924
4925 // Namespace: gen_ai
4926 const (
4927 // GenAIOpenaiRequestResponseFormatKey is the attribute Key conforming to the
4928 // "gen_ai.openai.request.response_format" semantic conventions. It represents
4929 // the response format that is requested.
4930 //
4931 // Type: Enum
4932 // RequirementLevel: Recommended
4933 // Stability: Development
4934 //
4935 // Examples: "json"
4936 GenAIOpenaiRequestResponseFormatKey = attribute.Key("gen_ai.openai.request.response_format")
4937
4938 // GenAIOpenaiRequestServiceTierKey is the attribute Key conforming to the
4939 // "gen_ai.openai.request.service_tier" semantic conventions. It represents the
4940 // service tier requested. May be a specific tier, default, or auto.
4941 //
4942 // Type: Enum
4943 // RequirementLevel: Recommended
4944 // Stability: Development
4945 //
4946 // Examples: "auto", "default"
4947 GenAIOpenaiRequestServiceTierKey = attribute.Key("gen_ai.openai.request.service_tier")
4948
4949 // GenAIOpenaiResponseServiceTierKey is the attribute Key conforming to the
4950 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
4951 // service tier used for the response.
4952 //
4953 // Type: string
4954 // RequirementLevel: Recommended
4955 // Stability: Development
4956 //
4957 // Examples: "scale", "default"
4958 GenAIOpenaiResponseServiceTierKey = attribute.Key("gen_ai.openai.response.service_tier")
4959
4960 // GenAIOpenaiResponseSystemFingerprintKey is the attribute Key conforming to
4961 // the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
4962 // represents a fingerprint to track any eventual change in the Generative AI
4963 // environment.
4964 //
4965 // Type: string
4966 // RequirementLevel: Recommended
4967 // Stability: Development
4968 //
4969 // Examples: "fp_44709d6fcb"
4970 GenAIOpenaiResponseSystemFingerprintKey = attribute.Key("gen_ai.openai.response.system_fingerprint")
4971
4972 // GenAIOperationNameKey is the attribute Key conforming to the
4973 // "gen_ai.operation.name" semantic conventions. It represents the name of the
4974 // operation being performed.
4975 //
4976 // Type: Enum
4977 // RequirementLevel: Recommended
4978 // Stability: Development
4979 //
4980 // Examples:
4981 // Note: If one of the predefined values applies, but specific system uses a
4982 // different name it's RECOMMENDED to document it in the semantic conventions
4983 // for specific GenAI system and use system-specific name in the
4984 // instrumentation. If a different name is not documented, instrumentation
4985 // libraries SHOULD use applicable predefined value.
4986 GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
4987
4988 // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the
4989 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
4990 // encoding formats requested in an embeddings operation, if specified.
4991 //
4992 // Type: string[]
4993 // RequirementLevel: Recommended
4994 // Stability: Development
4995 //
4996 // Examples: "base64"], ["float", "binary"
4997 // Note: In some GenAI systems the encoding formats are called embedding types.
4998 // Also, some GenAI systems only accept a single format per request.
4999 GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats")
5000
5001 // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
5002 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
5003 // frequency penalty setting for the GenAI request.
5004 //
5005 // Type: double
5006 // RequirementLevel: Recommended
5007 // Stability: Development
5008 //
5009 // Examples: 0.1
5010 GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
5011
5012 // GenAIRequestMaxTokensKey is the attribute Key conforming to the
5013 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
5014 // number of tokens the model generates for a request.
5015 //
5016 // Type: int
5017 // RequirementLevel: Recommended
5018 // Stability: Development
5019 //
5020 // Examples: 100
5021 GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
5022
5023 // GenAIRequestModelKey is the attribute Key conforming to the
5024 // "gen_ai.request.model" semantic conventions. It represents the name of the
5025 // GenAI model a request is being made to.
5026 //
5027 // Type: string
5028 // RequirementLevel: Recommended
5029 // Stability: Development
5030 //
5031 // Examples: gpt-4
5032 GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
5033
5034 // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
5035 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
5036 // presence penalty setting for the GenAI request.
5037 //
5038 // Type: double
5039 // RequirementLevel: Recommended
5040 // Stability: Development
5041 //
5042 // Examples: 0.1
5043 GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
5044
5045 // GenAIRequestSeedKey is the attribute Key conforming to the
5046 // "gen_ai.request.seed" semantic conventions. It represents the requests with
5047 // same seed value more likely to return same result.
5048 //
5049 // Type: int
5050 // RequirementLevel: Recommended
5051 // Stability: Development
5052 //
5053 // Examples: 100
5054 GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed")
5055
5056 // GenAIRequestStopSequencesKey is the attribute Key conforming to the
5057 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
5058 // of sequences that the model will use to stop generating further tokens.
5059 //
5060 // Type: string[]
5061 // RequirementLevel: Recommended
5062 // Stability: Development
5063 //
5064 // Examples: "forest", "lived"
5065 GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
5066
5067 // GenAIRequestTemperatureKey is the attribute Key conforming to the
5068 // "gen_ai.request.temperature" semantic conventions. It represents the
5069 // temperature setting for the GenAI request.
5070 //
5071 // Type: double
5072 // RequirementLevel: Recommended
5073 // Stability: Development
5074 //
5075 // Examples: 0.0
5076 GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
5077
5078 // GenAIRequestTopKKey is the attribute Key conforming to the
5079 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
5080 // setting for the GenAI request.
5081 //
5082 // Type: double
5083 // RequirementLevel: Recommended
5084 // Stability: Development
5085 //
5086 // Examples: 1.0
5087 GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
5088
5089 // GenAIRequestTopPKey is the attribute Key conforming to the
5090 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
5091 // setting for the GenAI request.
5092 //
5093 // Type: double
5094 // RequirementLevel: Recommended
5095 // Stability: Development
5096 //
5097 // Examples: 1.0
5098 GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
5099
5100 // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
5101 // "gen_ai.response.finish_reasons" semantic conventions. It represents the
5102 // array of reasons the model stopped generating tokens, corresponding to each
5103 // generation received.
5104 //
5105 // Type: string[]
5106 // RequirementLevel: Recommended
5107 // Stability: Development
5108 //
5109 // Examples: "stop"], ["stop", "length"
5110 GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
5111
5112 // GenAIResponseIDKey is the attribute Key conforming to the
5113 // "gen_ai.response.id" semantic conventions. It represents the unique
5114 // identifier for the completion.
5115 //
5116 // Type: string
5117 // RequirementLevel: Recommended
5118 // Stability: Development
5119 //
5120 // Examples: "chatcmpl-123"
5121 GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
5122
5123 // GenAIResponseModelKey is the attribute Key conforming to the
5124 // "gen_ai.response.model" semantic conventions. It represents the name of the
5125 // model that generated the response.
5126 //
5127 // Type: string
5128 // RequirementLevel: Recommended
5129 // Stability: Development
5130 //
5131 // Examples: "gpt-4-0613"
5132 GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
5133
5134 // GenAISystemKey is the attribute Key conforming to the "gen_ai.system"
5135 // semantic conventions. It represents the Generative AI product as identified
5136 // by the client or server instrumentation.
5137 //
5138 // Type: Enum
5139 // RequirementLevel: Recommended
5140 // Stability: Development
5141 //
5142 // Examples: openai
5143 // Note: The `gen_ai.system` describes a family of GenAI models with specific
5144 // model identified
5145 // by `gen_ai.request.model` and `gen_ai.response.model` attributes.
5146 //
5147 // The actual GenAI product may differ from the one identified by the client.
5148 // Multiple systems, including Azure OpenAI and Gemini, are accessible by OpenAI
5149 // client
5150 // libraries. In such cases, the `gen_ai.system` is set to `openai` based on the
5151 // instrumentation's best knowledge, instead of the actual system. The
5152 // `server.address`
5153 // attribute may help identify the actual system in use for `openai`.
5154 //
5155 // For custom model, a custom friendly name SHOULD be used.
5156 // If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER`
5157 // .
5158 GenAISystemKey = attribute.Key("gen_ai.system")
5159
5160 // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
5161 // semantic conventions. It represents the type of token being counted.
5162 //
5163 // Type: Enum
5164 // RequirementLevel: Recommended
5165 // Stability: Development
5166 //
5167 // Examples: "input", "output"
5168 GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
5169
5170 // GenAIUsageInputTokensKey is the attribute Key conforming to the
5171 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
5172 // tokens used in the GenAI input (prompt).
5173 //
5174 // Type: int
5175 // RequirementLevel: Recommended
5176 // Stability: Development
5177 //
5178 // Examples: 100
5179 GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
5180
5181 // GenAIUsageOutputTokensKey is the attribute Key conforming to the
5182 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
5183 // of tokens used in the GenAI response (completion).
5184 //
5185 // Type: int
5186 // RequirementLevel: Recommended
5187 // Stability: Development
5188 //
5189 // Examples: 180
5190 GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
5191 )
5192
5193 // GenAIOpenaiResponseServiceTier returns an attribute KeyValue conforming to the
5194 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
5195 // service tier used for the response.
5196 func GenAIOpenaiResponseServiceTier(val string) attribute.KeyValue {
5197 return GenAIOpenaiResponseServiceTierKey.String(val)
5198 }
5199
5200 // GenAIOpenaiResponseSystemFingerprint returns an attribute KeyValue conforming
5201 // to the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
5202 // represents a fingerprint to track any eventual change in the Generative AI
5203 // environment.
5204 func GenAIOpenaiResponseSystemFingerprint(val string) attribute.KeyValue {
5205 return GenAIOpenaiResponseSystemFingerprintKey.String(val)
5206 }
5207
5208 // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the
5209 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
5210 // encoding formats requested in an embeddings operation, if specified.
5211 func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue {
5212 return GenAIRequestEncodingFormatsKey.StringSlice(val)
5213 }
5214
5215 // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
5216 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
5217 // frequency penalty setting for the GenAI request.
5218 func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
5219 return GenAIRequestFrequencyPenaltyKey.Float64(val)
5220 }
5221
5222 // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
5223 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
5224 // number of tokens the model generates for a request.
5225 func GenAIRequestMaxTokens(val int) attribute.KeyValue {
5226 return GenAIRequestMaxTokensKey.Int(val)
5227 }
5228
5229 // GenAIRequestModel returns an attribute KeyValue conforming to the
5230 // "gen_ai.request.model" semantic conventions. It represents the name of the
5231 // GenAI model a request is being made to.
5232 func GenAIRequestModel(val string) attribute.KeyValue {
5233 return GenAIRequestModelKey.String(val)
5234 }
5235
5236 // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
5237 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
5238 // presence penalty setting for the GenAI request.
5239 func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
5240 return GenAIRequestPresencePenaltyKey.Float64(val)
5241 }
5242
5243 // GenAIRequestSeed returns an attribute KeyValue conforming to the
5244 // "gen_ai.request.seed" semantic conventions. It represents the requests with
5245 // same seed value more likely to return same result.
5246 func GenAIRequestSeed(val int) attribute.KeyValue {
5247 return GenAIRequestSeedKey.Int(val)
5248 }
5249
5250 // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
5251 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
5252 // of sequences that the model will use to stop generating further tokens.
5253 func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
5254 return GenAIRequestStopSequencesKey.StringSlice(val)
5255 }
5256
5257 // GenAIRequestTemperature returns an attribute KeyValue conforming to the
5258 // "gen_ai.request.temperature" semantic conventions. It represents the
5259 // temperature setting for the GenAI request.
5260 func GenAIRequestTemperature(val float64) attribute.KeyValue {
5261 return GenAIRequestTemperatureKey.Float64(val)
5262 }
5263
5264 // GenAIRequestTopK returns an attribute KeyValue conforming to the
5265 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
5266 // setting for the GenAI request.
5267 func GenAIRequestTopK(val float64) attribute.KeyValue {
5268 return GenAIRequestTopKKey.Float64(val)
5269 }
5270
5271 // GenAIRequestTopP returns an attribute KeyValue conforming to the
5272 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
5273 // setting for the GenAI request.
5274 func GenAIRequestTopP(val float64) attribute.KeyValue {
5275 return GenAIRequestTopPKey.Float64(val)
5276 }
5277
5278 // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
5279 // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
5280 // of reasons the model stopped generating tokens, corresponding to each
5281 // generation received.
5282 func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
5283 return GenAIResponseFinishReasonsKey.StringSlice(val)
5284 }
5285
5286 // GenAIResponseID returns an attribute KeyValue conforming to the
5287 // "gen_ai.response.id" semantic conventions. It represents the unique identifier
5288 // for the completion.
5289 func GenAIResponseID(val string) attribute.KeyValue {
5290 return GenAIResponseIDKey.String(val)
5291 }
5292
5293 // GenAIResponseModel returns an attribute KeyValue conforming to the
5294 // "gen_ai.response.model" semantic conventions. It represents the name of the
5295 // model that generated the response.
5296 func GenAIResponseModel(val string) attribute.KeyValue {
5297 return GenAIResponseModelKey.String(val)
5298 }
5299
5300 // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
5301 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
5302 // tokens used in the GenAI input (prompt).
5303 func GenAIUsageInputTokens(val int) attribute.KeyValue {
5304 return GenAIUsageInputTokensKey.Int(val)
5305 }
5306
5307 // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
5308 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
5309 // tokens used in the GenAI response (completion).
5310 func GenAIUsageOutputTokens(val int) attribute.KeyValue {
5311 return GenAIUsageOutputTokensKey.Int(val)
5312 }
5313
5314 // Enum values for gen_ai.openai.request.response_format
5315 var (
5316 // Text response format
5317 // Stability: development
5318 GenAIOpenaiRequestResponseFormatText = GenAIOpenaiRequestResponseFormatKey.String("text")
5319 // JSON object response format
5320 // Stability: development
5321 GenAIOpenaiRequestResponseFormatJSONObject = GenAIOpenaiRequestResponseFormatKey.String("json_object")
5322 // JSON schema response format
5323 // Stability: development
5324 GenAIOpenaiRequestResponseFormatJSONSchema = GenAIOpenaiRequestResponseFormatKey.String("json_schema")
5325 )
5326
5327 // Enum values for gen_ai.openai.request.service_tier
5328 var (
5329 // The system will utilize scale tier credits until they are exhausted.
5330 // Stability: development
5331 GenAIOpenaiRequestServiceTierAuto = GenAIOpenaiRequestServiceTierKey.String("auto")
5332 // The system will utilize the default scale tier.
5333 // Stability: development
5334 GenAIOpenaiRequestServiceTierDefault = GenAIOpenaiRequestServiceTierKey.String("default")
5335 )
5336
5337 // Enum values for gen_ai.operation.name
5338 var (
5339 // Chat completion operation such as [OpenAI Chat API]
5340 // Stability: development
5341 //
5342 // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
5343 GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
5344 // Text completions operation such as [OpenAI Completions API (Legacy)]
5345 // Stability: development
5346 //
5347 // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
5348 GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
5349 // Embeddings operation such as [OpenAI Create embeddings API]
5350 // Stability: development
5351 //
5352 // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create
5353 GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings")
5354 )
5355
5356 // Enum values for gen_ai.system
5357 var (
5358 // OpenAI
5359 // Stability: development
5360 GenAISystemOpenai = GenAISystemKey.String("openai")
5361 // Vertex AI
5362 // Stability: development
5363 GenAISystemVertexAI = GenAISystemKey.String("vertex_ai")
5364 // Gemini
5365 // Stability: development
5366 GenAISystemGemini = GenAISystemKey.String("gemini")
5367 // Anthropic
5368 // Stability: development
5369 GenAISystemAnthropic = GenAISystemKey.String("anthropic")
5370 // Cohere
5371 // Stability: development
5372 GenAISystemCohere = GenAISystemKey.String("cohere")
5373 // Azure AI Inference
5374 // Stability: development
5375 GenAISystemAzAIInference = GenAISystemKey.String("az.ai.inference")
5376 // Azure OpenAI
5377 // Stability: development
5378 GenAISystemAzAIOpenai = GenAISystemKey.String("az.ai.openai")
5379 // IBM Watsonx AI
5380 // Stability: development
5381 GenAISystemIbmWatsonxAI = GenAISystemKey.String("ibm.watsonx.ai")
5382 // AWS Bedrock
5383 // Stability: development
5384 GenAISystemAWSBedrock = GenAISystemKey.String("aws.bedrock")
5385 // Perplexity
5386 // Stability: development
5387 GenAISystemPerplexity = GenAISystemKey.String("perplexity")
5388 // xAI
5389 // Stability: development
5390 GenAISystemXai = GenAISystemKey.String("xai")
5391 // DeepSeek
5392 // Stability: development
5393 GenAISystemDeepseek = GenAISystemKey.String("deepseek")
5394 // Groq
5395 // Stability: development
5396 GenAISystemGroq = GenAISystemKey.String("groq")
5397 // Mistral AI
5398 // Stability: development
5399 GenAISystemMistralAI = GenAISystemKey.String("mistral_ai")
5400 )
5401
5402 // Enum values for gen_ai.token.type
5403 var (
5404 // Input tokens (prompt, input, etc.)
5405 // Stability: development
5406 GenAITokenTypeInput = GenAITokenTypeKey.String("input")
5407 // Output tokens (completion, response, etc.)
5408 // Stability: development
5409 GenAITokenTypeCompletion = GenAITokenTypeKey.String("output")
5410 )
5411
5412 // Namespace: geo
5413 const (
5414 // GeoContinentCodeKey is the attribute Key conforming to the
5415 // "geo.continent.code" semantic conventions. It represents the two-letter code
5416 // representing continent’s name.
5417 //
5418 // Type: Enum
5419 // RequirementLevel: Recommended
5420 // Stability: Development
5421 //
5422 // Examples:
5423 GeoContinentCodeKey = attribute.Key("geo.continent.code")
5424
5425 // GeoCountryIsoCodeKey is the attribute Key conforming to the
5426 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
5427 // Country Code ([ISO 3166-1 alpha2]).
5428 //
5429 // Type: string
5430 // RequirementLevel: Recommended
5431 // Stability: Development
5432 //
5433 // Examples: "CA"
5434 //
5435 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
5436 GeoCountryIsoCodeKey = attribute.Key("geo.country.iso_code")
5437
5438 // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name"
5439 // semantic conventions. It represents the locality name. Represents the name of
5440 // a city, town, village, or similar populated place.
5441 //
5442 // Type: string
5443 // RequirementLevel: Recommended
5444 // Stability: Development
5445 //
5446 // Examples: "Montreal", "Berlin"
5447 GeoLocalityNameKey = attribute.Key("geo.locality.name")
5448
5449 // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat"
5450 // semantic conventions. It represents the latitude of the geo location in
5451 // [WGS84].
5452 //
5453 // Type: double
5454 // RequirementLevel: Recommended
5455 // Stability: Development
5456 //
5457 // Examples: 45.505918
5458 //
5459 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
5460 GeoLocationLatKey = attribute.Key("geo.location.lat")
5461
5462 // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon"
5463 // semantic conventions. It represents the longitude of the geo location in
5464 // [WGS84].
5465 //
5466 // Type: double
5467 // RequirementLevel: Recommended
5468 // Stability: Development
5469 //
5470 // Examples: -73.61483
5471 //
5472 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
5473 GeoLocationLonKey = attribute.Key("geo.location.lon")
5474
5475 // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code"
5476 // semantic conventions. It represents the postal code associated with the
5477 // location. Values appropriate for this field may also be known as a postcode
5478 // or ZIP code and will vary widely from country to country.
5479 //
5480 // Type: string
5481 // RequirementLevel: Recommended
5482 // Stability: Development
5483 //
5484 // Examples: "94040"
5485 GeoPostalCodeKey = attribute.Key("geo.postal_code")
5486
5487 // GeoRegionIsoCodeKey is the attribute Key conforming to the
5488 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
5489 // ([ISO 3166-2]).
5490 //
5491 // Type: string
5492 // RequirementLevel: Recommended
5493 // Stability: Development
5494 //
5495 // Examples: "CA-QC"
5496 //
5497 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
5498 GeoRegionIsoCodeKey = attribute.Key("geo.region.iso_code")
5499 )
5500
5501 // GeoCountryIsoCode returns an attribute KeyValue conforming to the
5502 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
5503 // Country Code ([ISO 3166-1 alpha2]).
5504 //
5505 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
5506 func GeoCountryIsoCode(val string) attribute.KeyValue {
5507 return GeoCountryIsoCodeKey.String(val)
5508 }
5509
5510 // GeoLocalityName returns an attribute KeyValue conforming to the
5511 // "geo.locality.name" semantic conventions. It represents the locality name.
5512 // Represents the name of a city, town, village, or similar populated place.
5513 func GeoLocalityName(val string) attribute.KeyValue {
5514 return GeoLocalityNameKey.String(val)
5515 }
5516
5517 // GeoLocationLat returns an attribute KeyValue conforming to the
5518 // "geo.location.lat" semantic conventions. It represents the latitude of the geo
5519 // location in [WGS84].
5520 //
5521 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
5522 func GeoLocationLat(val float64) attribute.KeyValue {
5523 return GeoLocationLatKey.Float64(val)
5524 }
5525
5526 // GeoLocationLon returns an attribute KeyValue conforming to the
5527 // "geo.location.lon" semantic conventions. It represents the longitude of the
5528 // geo location in [WGS84].
5529 //
5530 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
5531 func GeoLocationLon(val float64) attribute.KeyValue {
5532 return GeoLocationLonKey.Float64(val)
5533 }
5534
5535 // GeoPostalCode returns an attribute KeyValue conforming to the
5536 // "geo.postal_code" semantic conventions. It represents the postal code
5537 // associated with the location. Values appropriate for this field may also be
5538 // known as a postcode or ZIP code and will vary widely from country to country.
5539 func GeoPostalCode(val string) attribute.KeyValue {
5540 return GeoPostalCodeKey.String(val)
5541 }
5542
5543 // GeoRegionIsoCode returns an attribute KeyValue conforming to the
5544 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
5545 // ([ISO 3166-2]).
5546 //
5547 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
5548 func GeoRegionIsoCode(val string) attribute.KeyValue {
5549 return GeoRegionIsoCodeKey.String(val)
5550 }
5551
5552 // Enum values for geo.continent.code
5553 var (
5554 // Africa
5555 // Stability: development
5556 GeoContinentCodeAf = GeoContinentCodeKey.String("AF")
5557 // Antarctica
5558 // Stability: development
5559 GeoContinentCodeAn = GeoContinentCodeKey.String("AN")
5560 // Asia
5561 // Stability: development
5562 GeoContinentCodeAs = GeoContinentCodeKey.String("AS")
5563 // Europe
5564 // Stability: development
5565 GeoContinentCodeEu = GeoContinentCodeKey.String("EU")
5566 // North America
5567 // Stability: development
5568 GeoContinentCodeNa = GeoContinentCodeKey.String("NA")
5569 // Oceania
5570 // Stability: development
5571 GeoContinentCodeOc = GeoContinentCodeKey.String("OC")
5572 // South America
5573 // Stability: development
5574 GeoContinentCodeSa = GeoContinentCodeKey.String("SA")
5575 )
5576
5577 // Namespace: go
5578 const (
5579 // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
5580 // semantic conventions. It represents the type of memory.
5581 //
5582 // Type: Enum
5583 // RequirementLevel: Recommended
5584 // Stability: Development
5585 //
5586 // Examples: "other", "stack"
5587 GoMemoryTypeKey = attribute.Key("go.memory.type")
5588 )
5589
5590 // Enum values for go.memory.type
5591 var (
5592 // Memory allocated from the heap that is reserved for stack space, whether or
5593 // not it is currently in-use.
5594 // Stability: development
5595 GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
5596 // Memory used by the Go runtime, excluding other categories of memory usage
5597 // described in this enumeration.
5598 // Stability: development
5599 GoMemoryTypeOther = GoMemoryTypeKey.String("other")
5600 )
5601
5602 // Namespace: graphql
5603 const (
5604 // GraphqlDocumentKey is the attribute Key conforming to the "graphql.document"
5605 // semantic conventions. It represents the GraphQL document being executed.
5606 //
5607 // Type: string
5608 // RequirementLevel: Recommended
5609 // Stability: Development
5610 //
5611 // Examples: query findBookById { bookById(id: ?) { name } }
5612 // Note: The value may be sanitized to exclude sensitive information.
5613 GraphqlDocumentKey = attribute.Key("graphql.document")
5614
5615 // GraphqlOperationNameKey is the attribute Key conforming to the
5616 // "graphql.operation.name" semantic conventions. It represents the name of the
5617 // operation being executed.
5618 //
5619 // Type: string
5620 // RequirementLevel: Recommended
5621 // Stability: Development
5622 //
5623 // Examples: findBookById
5624 GraphqlOperationNameKey = attribute.Key("graphql.operation.name")
5625
5626 // GraphqlOperationTypeKey is the attribute Key conforming to the
5627 // "graphql.operation.type" semantic conventions. It represents the type of the
5628 // operation being executed.
5629 //
5630 // Type: Enum
5631 // RequirementLevel: Recommended
5632 // Stability: Development
5633 //
5634 // Examples: "query", "mutation", "subscription"
5635 GraphqlOperationTypeKey = attribute.Key("graphql.operation.type")
5636 )
5637
5638 // GraphqlDocument returns an attribute KeyValue conforming to the
5639 // "graphql.document" semantic conventions. It represents the GraphQL document
5640 // being executed.
5641 func GraphqlDocument(val string) attribute.KeyValue {
5642 return GraphqlDocumentKey.String(val)
5643 }
5644
5645 // GraphqlOperationName returns an attribute KeyValue conforming to the
5646 // "graphql.operation.name" semantic conventions. It represents the name of the
5647 // operation being executed.
5648 func GraphqlOperationName(val string) attribute.KeyValue {
5649 return GraphqlOperationNameKey.String(val)
5650 }
5651
5652 // Enum values for graphql.operation.type
5653 var (
5654 // GraphQL query
5655 // Stability: development
5656 GraphqlOperationTypeQuery = GraphqlOperationTypeKey.String("query")
5657 // GraphQL mutation
5658 // Stability: development
5659 GraphqlOperationTypeMutation = GraphqlOperationTypeKey.String("mutation")
5660 // GraphQL subscription
5661 // Stability: development
5662 GraphqlOperationTypeSubscription = GraphqlOperationTypeKey.String("subscription")
5663 )
5664
5665 // Namespace: heroku
5666 const (
5667 // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
5668 // semantic conventions. It represents the unique identifier for the
5669 // application.
5670 //
5671 // Type: string
5672 // RequirementLevel: Recommended
5673 // Stability: Development
5674 //
5675 // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
5676 HerokuAppIDKey = attribute.Key("heroku.app.id")
5677
5678 // HerokuReleaseCommitKey is the attribute Key conforming to the
5679 // "heroku.release.commit" semantic conventions. It represents the commit hash
5680 // for the current release.
5681 //
5682 // Type: string
5683 // RequirementLevel: Recommended
5684 // Stability: Development
5685 //
5686 // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
5687 HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
5688
5689 // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
5690 // "heroku.release.creation_timestamp" semantic conventions. It represents the
5691 // time and date the release was created.
5692 //
5693 // Type: string
5694 // RequirementLevel: Recommended
5695 // Stability: Development
5696 //
5697 // Examples: "2022-10-23T18:00:42Z"
5698 HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
5699 )
5700
5701 // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
5702 // semantic conventions. It represents the unique identifier for the application.
5703 func HerokuAppID(val string) attribute.KeyValue {
5704 return HerokuAppIDKey.String(val)
5705 }
5706
5707 // HerokuReleaseCommit returns an attribute KeyValue conforming to the
5708 // "heroku.release.commit" semantic conventions. It represents the commit hash
5709 // for the current release.
5710 func HerokuReleaseCommit(val string) attribute.KeyValue {
5711 return HerokuReleaseCommitKey.String(val)
5712 }
5713
5714 // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
5715 // "heroku.release.creation_timestamp" semantic conventions. It represents the
5716 // time and date the release was created.
5717 func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
5718 return HerokuReleaseCreationTimestampKey.String(val)
5719 }
5720
5721 // Namespace: host
5722 const (
5723 // HostArchKey is the attribute Key conforming to the "host.arch" semantic
5724 // conventions. It represents the CPU architecture the host system is running
5725 // on.
5726 //
5727 // Type: Enum
5728 // RequirementLevel: Recommended
5729 // Stability: Development
5730 //
5731 // Examples:
5732 HostArchKey = attribute.Key("host.arch")
5733
5734 // HostCPUCacheL2SizeKey is the attribute Key conforming to the
5735 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
5736 // level 2 memory cache available to the processor (in Bytes).
5737 //
5738 // Type: int
5739 // RequirementLevel: Recommended
5740 // Stability: Development
5741 //
5742 // Examples: 12288000
5743 HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
5744
5745 // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
5746 // semantic conventions. It represents the family or generation of the CPU.
5747 //
5748 // Type: string
5749 // RequirementLevel: Recommended
5750 // Stability: Development
5751 //
5752 // Examples: "6", "PA-RISC 1.1e"
5753 HostCPUFamilyKey = attribute.Key("host.cpu.family")
5754
5755 // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
5756 // semantic conventions. It represents the model identifier. It provides more
5757 // granular information about the CPU, distinguishing it from other CPUs within
5758 // the same family.
5759 //
5760 // Type: string
5761 // RequirementLevel: Recommended
5762 // Stability: Development
5763 //
5764 // Examples: "6", "9000/778/B180L"
5765 HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
5766
5767 // HostCPUModelNameKey is the attribute Key conforming to the
5768 // "host.cpu.model.name" semantic conventions. It represents the model
5769 // designation of the processor.
5770 //
5771 // Type: string
5772 // RequirementLevel: Recommended
5773 // Stability: Development
5774 //
5775 // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
5776 HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
5777
5778 // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
5779 // semantic conventions. It represents the stepping or core revisions.
5780 //
5781 // Type: string
5782 // RequirementLevel: Recommended
5783 // Stability: Development
5784 //
5785 // Examples: "1", "r1p1"
5786 HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
5787
5788 // HostCPUVendorIDKey is the attribute Key conforming to the
5789 // "host.cpu.vendor.id" semantic conventions. It represents the processor
5790 // manufacturer identifier. A maximum 12-character string.
5791 //
5792 // Type: string
5793 // RequirementLevel: Recommended
5794 // Stability: Development
5795 //
5796 // Examples: "GenuineIntel"
5797 // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
5798 // registers. Writing these to memory in this order results in a 12-character
5799 // string.
5800 //
5801 // [CPUID]: https://wiki.osdev.org/CPUID
5802 HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
5803
5804 // HostIDKey is the attribute Key conforming to the "host.id" semantic
5805 // conventions. It represents the unique host ID. For Cloud, this must be the
5806 // instance_id assigned by the cloud provider. For non-containerized systems,
5807 // this should be the `machine-id`. See the table below for the sources to use
5808 // to determine the `machine-id` based on operating system.
5809 //
5810 // Type: string
5811 // RequirementLevel: Recommended
5812 // Stability: Development
5813 //
5814 // Examples: "fdbf79e8af94cb7f9e8df36789187052"
5815 HostIDKey = attribute.Key("host.id")
5816
5817 // HostImageIDKey is the attribute Key conforming to the "host.image.id"
5818 // semantic conventions. It represents the vM image ID or host OS image ID. For
5819 // Cloud, this value is from the provider.
5820 //
5821 // Type: string
5822 // RequirementLevel: Recommended
5823 // Stability: Development
5824 //
5825 // Examples: "ami-07b06b442921831e5"
5826 HostImageIDKey = attribute.Key("host.image.id")
5827
5828 // HostImageNameKey is the attribute Key conforming to the "host.image.name"
5829 // semantic conventions. It represents the name of the VM image or OS install
5830 // the host was instantiated from.
5831 //
5832 // Type: string
5833 // RequirementLevel: Recommended
5834 // Stability: Development
5835 //
5836 // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
5837 HostImageNameKey = attribute.Key("host.image.name")
5838
5839 // HostImageVersionKey is the attribute Key conforming to the
5840 // "host.image.version" semantic conventions. It represents the version string
5841 // of the VM image or host OS as defined in [Version Attributes].
5842 //
5843 // Type: string
5844 // RequirementLevel: Recommended
5845 // Stability: Development
5846 //
5847 // Examples: "0.1"
5848 //
5849 // [Version Attributes]: /docs/resource/README.md#version-attributes
5850 HostImageVersionKey = attribute.Key("host.image.version")
5851
5852 // HostIPKey is the attribute Key conforming to the "host.ip" semantic
5853 // conventions. It represents the available IP addresses of the host, excluding
5854 // loopback interfaces.
5855 //
5856 // Type: string[]
5857 // RequirementLevel: Recommended
5858 // Stability: Development
5859 //
5860 // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
5861 // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
5862 // addresses MUST be specified in the [RFC 5952] format.
5863 //
5864 // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
5865 HostIPKey = attribute.Key("host.ip")
5866
5867 // HostMacKey is the attribute Key conforming to the "host.mac" semantic
5868 // conventions. It represents the available MAC addresses of the host, excluding
5869 // loopback interfaces.
5870 //
5871 // Type: string[]
5872 // RequirementLevel: Recommended
5873 // Stability: Development
5874 //
5875 // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
5876 // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
5877 // hyphen-separated octets in uppercase hexadecimal form from most to least
5878 // significant.
5879 //
5880 // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
5881 HostMacKey = attribute.Key("host.mac")
5882
5883 // HostNameKey is the attribute Key conforming to the "host.name" semantic
5884 // conventions. It represents the name of the host. On Unix systems, it may
5885 // contain what the hostname command returns, or the fully qualified hostname,
5886 // or another name specified by the user.
5887 //
5888 // Type: string
5889 // RequirementLevel: Recommended
5890 // Stability: Development
5891 //
5892 // Examples: "opentelemetry-test"
5893 HostNameKey = attribute.Key("host.name")
5894
5895 // HostTypeKey is the attribute Key conforming to the "host.type" semantic
5896 // conventions. It represents the type of host. For Cloud, this must be the
5897 // machine type.
5898 //
5899 // Type: string
5900 // RequirementLevel: Recommended
5901 // Stability: Development
5902 //
5903 // Examples: "n1-standard-1"
5904 HostTypeKey = attribute.Key("host.type")
5905 )
5906
5907 // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
5908 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
5909 // level 2 memory cache available to the processor (in Bytes).
5910 func HostCPUCacheL2Size(val int) attribute.KeyValue {
5911 return HostCPUCacheL2SizeKey.Int(val)
5912 }
5913
5914 // HostCPUFamily returns an attribute KeyValue conforming to the
5915 // "host.cpu.family" semantic conventions. It represents the family or generation
5916 // of the CPU.
5917 func HostCPUFamily(val string) attribute.KeyValue {
5918 return HostCPUFamilyKey.String(val)
5919 }
5920
5921 // HostCPUModelID returns an attribute KeyValue conforming to the
5922 // "host.cpu.model.id" semantic conventions. It represents the model identifier.
5923 // It provides more granular information about the CPU, distinguishing it from
5924 // other CPUs within the same family.
5925 func HostCPUModelID(val string) attribute.KeyValue {
5926 return HostCPUModelIDKey.String(val)
5927 }
5928
5929 // HostCPUModelName returns an attribute KeyValue conforming to the
5930 // "host.cpu.model.name" semantic conventions. It represents the model
5931 // designation of the processor.
5932 func HostCPUModelName(val string) attribute.KeyValue {
5933 return HostCPUModelNameKey.String(val)
5934 }
5935
5936 // HostCPUStepping returns an attribute KeyValue conforming to the
5937 // "host.cpu.stepping" semantic conventions. It represents the stepping or core
5938 // revisions.
5939 func HostCPUStepping(val string) attribute.KeyValue {
5940 return HostCPUSteppingKey.String(val)
5941 }
5942
5943 // HostCPUVendorID returns an attribute KeyValue conforming to the
5944 // "host.cpu.vendor.id" semantic conventions. It represents the processor
5945 // manufacturer identifier. A maximum 12-character string.
5946 func HostCPUVendorID(val string) attribute.KeyValue {
5947 return HostCPUVendorIDKey.String(val)
5948 }
5949
5950 // HostID returns an attribute KeyValue conforming to the "host.id" semantic
5951 // conventions. It represents the unique host ID. For Cloud, this must be the
5952 // instance_id assigned by the cloud provider. For non-containerized systems,
5953 // this should be the `machine-id`. See the table below for the sources to use to
5954 // determine the `machine-id` based on operating system.
5955 func HostID(val string) attribute.KeyValue {
5956 return HostIDKey.String(val)
5957 }
5958
5959 // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
5960 // semantic conventions. It represents the vM image ID or host OS image ID. For
5961 // Cloud, this value is from the provider.
5962 func HostImageID(val string) attribute.KeyValue {
5963 return HostImageIDKey.String(val)
5964 }
5965
5966 // HostImageName returns an attribute KeyValue conforming to the
5967 // "host.image.name" semantic conventions. It represents the name of the VM image
5968 // or OS install the host was instantiated from.
5969 func HostImageName(val string) attribute.KeyValue {
5970 return HostImageNameKey.String(val)
5971 }
5972
5973 // HostImageVersion returns an attribute KeyValue conforming to the
5974 // "host.image.version" semantic conventions. It represents the version string of
5975 // the VM image or host OS as defined in [Version Attributes].
5976 //
5977 // [Version Attributes]: /docs/resource/README.md#version-attributes
5978 func HostImageVersion(val string) attribute.KeyValue {
5979 return HostImageVersionKey.String(val)
5980 }
5981
5982 // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
5983 // conventions. It represents the available IP addresses of the host, excluding
5984 // loopback interfaces.
5985 func HostIP(val ...string) attribute.KeyValue {
5986 return HostIPKey.StringSlice(val)
5987 }
5988
5989 // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
5990 // conventions. It represents the available MAC addresses of the host, excluding
5991 // loopback interfaces.
5992 func HostMac(val ...string) attribute.KeyValue {
5993 return HostMacKey.StringSlice(val)
5994 }
5995
5996 // HostName returns an attribute KeyValue conforming to the "host.name" semantic
5997 // conventions. It represents the name of the host. On Unix systems, it may
5998 // contain what the hostname command returns, or the fully qualified hostname, or
5999 // another name specified by the user.
6000 func HostName(val string) attribute.KeyValue {
6001 return HostNameKey.String(val)
6002 }
6003
6004 // HostType returns an attribute KeyValue conforming to the "host.type" semantic
6005 // conventions. It represents the type of host. For Cloud, this must be the
6006 // machine type.
6007 func HostType(val string) attribute.KeyValue {
6008 return HostTypeKey.String(val)
6009 }
6010
6011 // Enum values for host.arch
6012 var (
6013 // AMD64
6014 // Stability: development
6015 HostArchAMD64 = HostArchKey.String("amd64")
6016 // ARM32
6017 // Stability: development
6018 HostArchARM32 = HostArchKey.String("arm32")
6019 // ARM64
6020 // Stability: development
6021 HostArchARM64 = HostArchKey.String("arm64")
6022 // Itanium
6023 // Stability: development
6024 HostArchIA64 = HostArchKey.String("ia64")
6025 // 32-bit PowerPC
6026 // Stability: development
6027 HostArchPPC32 = HostArchKey.String("ppc32")
6028 // 64-bit PowerPC
6029 // Stability: development
6030 HostArchPPC64 = HostArchKey.String("ppc64")
6031 // IBM z/Architecture
6032 // Stability: development
6033 HostArchS390x = HostArchKey.String("s390x")
6034 // 32-bit x86
6035 // Stability: development
6036 HostArchX86 = HostArchKey.String("x86")
6037 )
6038
6039 // Namespace: http
6040 const (
6041 // HTTPConnectionStateKey is the attribute Key conforming to the
6042 // "http.connection.state" semantic conventions. It represents the state of the
6043 // HTTP connection in the HTTP connection pool.
6044 //
6045 // Type: Enum
6046 // RequirementLevel: Recommended
6047 // Stability: Development
6048 //
6049 // Examples: "active", "idle"
6050 HTTPConnectionStateKey = attribute.Key("http.connection.state")
6051
6052 // HTTPRequestBodySizeKey is the attribute Key conforming to the
6053 // "http.request.body.size" semantic conventions. It represents the size of the
6054 // request payload body in bytes. This is the number of bytes transferred
6055 // excluding headers and is often, but not always, present as the
6056 // [Content-Length] header. For requests using transport encoding, this should
6057 // be the compressed size.
6058 //
6059 // Type: int
6060 // RequirementLevel: Recommended
6061 // Stability: Development
6062 //
6063 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6064 HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
6065
6066 // HTTPRequestMethodKey is the attribute Key conforming to the
6067 // "http.request.method" semantic conventions. It represents the hTTP request
6068 // method.
6069 //
6070 // Type: Enum
6071 // RequirementLevel: Recommended
6072 // Stability: Stable
6073 //
6074 // Examples: "GET", "POST", "HEAD"
6075 // Note: HTTP request method value SHOULD be "known" to the instrumentation.
6076 // By default, this convention defines "known" methods as the ones listed in
6077 // [RFC9110]
6078 // and the PATCH method defined in [RFC5789].
6079 //
6080 // If the HTTP request method is not known to instrumentation, it MUST set the
6081 // `http.request.method` attribute to `_OTHER`.
6082 //
6083 // If the HTTP instrumentation could end up converting valid HTTP request
6084 // methods to `_OTHER`, then it MUST provide a way to override
6085 // the list of known HTTP methods. If this override is done via environment
6086 // variable, then the environment variable MUST be named
6087 // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
6088 // case-sensitive known HTTP methods
6089 // (this list MUST be a full override of the default known method, it is not a
6090 // list of known methods in addition to the defaults).
6091 //
6092 // HTTP method names are case-sensitive and `http.request.method` attribute
6093 // value MUST match a known HTTP method name exactly.
6094 // Instrumentations for specific web frameworks that consider HTTP methods to be
6095 // case insensitive, SHOULD populate a canonical equivalent.
6096 // Tracing instrumentations that do so, MUST also set
6097 // `http.request.method_original` to the original value.
6098 //
6099 // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
6100 // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
6101 HTTPRequestMethodKey = attribute.Key("http.request.method")
6102
6103 // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
6104 // "http.request.method_original" semantic conventions. It represents the
6105 // original HTTP method sent by the client in the request line.
6106 //
6107 // Type: string
6108 // RequirementLevel: Recommended
6109 // Stability: Stable
6110 //
6111 // Examples: "GeT", "ACL", "foo"
6112 HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
6113
6114 // HTTPRequestResendCountKey is the attribute Key conforming to the
6115 // "http.request.resend_count" semantic conventions. It represents the ordinal
6116 // number of request resending attempt (for any reason, including redirects).
6117 //
6118 // Type: int
6119 // RequirementLevel: Recommended
6120 // Stability: Stable
6121 //
6122 // Note: The resend count SHOULD be updated each time an HTTP request gets
6123 // resent by the client, regardless of what was the cause of the resending (e.g.
6124 // redirection, authorization failure, 503 Server Unavailable, network issues,
6125 // or any other).
6126 HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
6127
6128 // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
6129 // semantic conventions. It represents the total size of the request in bytes.
6130 // This should be the total number of bytes sent over the wire, including the
6131 // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
6132 // body if any.
6133 //
6134 // Type: int
6135 // RequirementLevel: Recommended
6136 // Stability: Development
6137 HTTPRequestSizeKey = attribute.Key("http.request.size")
6138
6139 // HTTPResponseBodySizeKey is the attribute Key conforming to the
6140 // "http.response.body.size" semantic conventions. It represents the size of the
6141 // response payload body in bytes. This is the number of bytes transferred
6142 // excluding headers and is often, but not always, present as the
6143 // [Content-Length] header. For requests using transport encoding, this should
6144 // be the compressed size.
6145 //
6146 // Type: int
6147 // RequirementLevel: Recommended
6148 // Stability: Development
6149 //
6150 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6151 HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
6152
6153 // HTTPResponseSizeKey is the attribute Key conforming to the
6154 // "http.response.size" semantic conventions. It represents the total size of
6155 // the response in bytes. This should be the total number of bytes sent over the
6156 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
6157 // headers, and response body and trailers if any.
6158 //
6159 // Type: int
6160 // RequirementLevel: Recommended
6161 // Stability: Development
6162 HTTPResponseSizeKey = attribute.Key("http.response.size")
6163
6164 // HTTPResponseStatusCodeKey is the attribute Key conforming to the
6165 // "http.response.status_code" semantic conventions. It represents the
6166 // [HTTP response status code].
6167 //
6168 // Type: int
6169 // RequirementLevel: Recommended
6170 // Stability: Stable
6171 //
6172 // Examples: 200
6173 //
6174 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
6175 HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
6176
6177 // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
6178 // conventions. It represents the matched route, that is, the path template in
6179 // the format used by the respective server framework.
6180 //
6181 // Type: string
6182 // RequirementLevel: Recommended
6183 // Stability: Stable
6184 //
6185 // Examples: "/users/:userID?", "{controller}/{action}/{id?}"
6186 // Note: MUST NOT be populated when this is not supported by the HTTP server
6187 // framework as the route attribute should have low-cardinality and the URI path
6188 // can NOT substitute it.
6189 // SHOULD include the [application root] if there is one.
6190 //
6191 // [application root]: /docs/http/http-spans.md#http-server-definitions
6192 HTTPRouteKey = attribute.Key("http.route")
6193 )
6194
6195 // HTTPRequestBodySize returns an attribute KeyValue conforming to the
6196 // "http.request.body.size" semantic conventions. It represents the size of the
6197 // request payload body in bytes. This is the number of bytes transferred
6198 // excluding headers and is often, but not always, present as the
6199 // [Content-Length] header. For requests using transport encoding, this should be
6200 // the compressed size.
6201 //
6202 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6203 func HTTPRequestBodySize(val int) attribute.KeyValue {
6204 return HTTPRequestBodySizeKey.Int(val)
6205 }
6206
6207 // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
6208 // "http.request.method_original" semantic conventions. It represents the
6209 // original HTTP method sent by the client in the request line.
6210 func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
6211 return HTTPRequestMethodOriginalKey.String(val)
6212 }
6213
6214 // HTTPRequestResendCount returns an attribute KeyValue conforming to the
6215 // "http.request.resend_count" semantic conventions. It represents the ordinal
6216 // number of request resending attempt (for any reason, including redirects).
6217 func HTTPRequestResendCount(val int) attribute.KeyValue {
6218 return HTTPRequestResendCountKey.Int(val)
6219 }
6220
6221 // HTTPRequestSize returns an attribute KeyValue conforming to the
6222 // "http.request.size" semantic conventions. It represents the total size of the
6223 // request in bytes. This should be the total number of bytes sent over the wire,
6224 // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
6225 // and request body if any.
6226 func HTTPRequestSize(val int) attribute.KeyValue {
6227 return HTTPRequestSizeKey.Int(val)
6228 }
6229
6230 // HTTPResponseBodySize returns an attribute KeyValue conforming to the
6231 // "http.response.body.size" semantic conventions. It represents the size of the
6232 // response payload body in bytes. This is the number of bytes transferred
6233 // excluding headers and is often, but not always, present as the
6234 // [Content-Length] header. For requests using transport encoding, this should be
6235 // the compressed size.
6236 //
6237 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6238 func HTTPResponseBodySize(val int) attribute.KeyValue {
6239 return HTTPResponseBodySizeKey.Int(val)
6240 }
6241
6242 // HTTPResponseSize returns an attribute KeyValue conforming to the
6243 // "http.response.size" semantic conventions. It represents the total size of the
6244 // response in bytes. This should be the total number of bytes sent over the
6245 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
6246 // headers, and response body and trailers if any.
6247 func HTTPResponseSize(val int) attribute.KeyValue {
6248 return HTTPResponseSizeKey.Int(val)
6249 }
6250
6251 // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
6252 // "http.response.status_code" semantic conventions. It represents the
6253 // [HTTP response status code].
6254 //
6255 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
6256 func HTTPResponseStatusCode(val int) attribute.KeyValue {
6257 return HTTPResponseStatusCodeKey.Int(val)
6258 }
6259
6260 // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
6261 // semantic conventions. It represents the matched route, that is, the path
6262 // template in the format used by the respective server framework.
6263 func HTTPRoute(val string) attribute.KeyValue {
6264 return HTTPRouteKey.String(val)
6265 }
6266
6267 // Enum values for http.connection.state
6268 var (
6269 // active state.
6270 // Stability: development
6271 HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
6272 // idle state.
6273 // Stability: development
6274 HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
6275 )
6276
6277 // Enum values for http.request.method
6278 var (
6279 // CONNECT method.
6280 // Stability: stable
6281 HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
6282 // DELETE method.
6283 // Stability: stable
6284 HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
6285 // GET method.
6286 // Stability: stable
6287 HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
6288 // HEAD method.
6289 // Stability: stable
6290 HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
6291 // OPTIONS method.
6292 // Stability: stable
6293 HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
6294 // PATCH method.
6295 // Stability: stable
6296 HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
6297 // POST method.
6298 // Stability: stable
6299 HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
6300 // PUT method.
6301 // Stability: stable
6302 HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
6303 // TRACE method.
6304 // Stability: stable
6305 HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
6306 // Any HTTP method that the instrumentation has no prior knowledge of.
6307 // Stability: stable
6308 HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
6309 )
6310
6311 // Namespace: hw
6312 const (
6313 // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
6314 // It represents an identifier for the hardware component, unique within the
6315 // monitored host.
6316 //
6317 // Type: string
6318 // RequirementLevel: Recommended
6319 // Stability: Development
6320 //
6321 // Examples: "win32battery_battery_testsysa33_1"
6322 HwIDKey = attribute.Key("hw.id")
6323
6324 // HwNameKey is the attribute Key conforming to the "hw.name" semantic
6325 // conventions. It represents an easily-recognizable name for the hardware
6326 // component.
6327 //
6328 // Type: string
6329 // RequirementLevel: Recommended
6330 // Stability: Development
6331 //
6332 // Examples: "eth0"
6333 HwNameKey = attribute.Key("hw.name")
6334
6335 // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
6336 // conventions. It represents the unique identifier of the parent component
6337 // (typically the `hw.id` attribute of the enclosure, or disk controller).
6338 //
6339 // Type: string
6340 // RequirementLevel: Recommended
6341 // Stability: Development
6342 //
6343 // Examples: "dellStorage_perc_0"
6344 HwParentKey = attribute.Key("hw.parent")
6345
6346 // HwStateKey is the attribute Key conforming to the "hw.state" semantic
6347 // conventions. It represents the current state of the component.
6348 //
6349 // Type: Enum
6350 // RequirementLevel: Recommended
6351 // Stability: Development
6352 //
6353 // Examples:
6354 HwStateKey = attribute.Key("hw.state")
6355
6356 // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
6357 // conventions. It represents the type of the component.
6358 //
6359 // Type: Enum
6360 // RequirementLevel: Recommended
6361 // Stability: Development
6362 //
6363 // Examples:
6364 // Note: Describes the category of the hardware component for which `hw.state`
6365 // is being reported. For example, `hw.type=temperature` along with
6366 // `hw.state=degraded` would indicate that the temperature of the hardware
6367 // component has been reported as `degraded`.
6368 HwTypeKey = attribute.Key("hw.type")
6369 )
6370
6371 // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
6372 // conventions. It represents an identifier for the hardware component, unique
6373 // within the monitored host.
6374 func HwID(val string) attribute.KeyValue {
6375 return HwIDKey.String(val)
6376 }
6377
6378 // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
6379 // conventions. It represents an easily-recognizable name for the hardware
6380 // component.
6381 func HwName(val string) attribute.KeyValue {
6382 return HwNameKey.String(val)
6383 }
6384
6385 // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
6386 // conventions. It represents the unique identifier of the parent component
6387 // (typically the `hw.id` attribute of the enclosure, or disk controller).
6388 func HwParent(val string) attribute.KeyValue {
6389 return HwParentKey.String(val)
6390 }
6391
6392 // Enum values for hw.state
6393 var (
6394 // Ok
6395 // Stability: development
6396 HwStateOk = HwStateKey.String("ok")
6397 // Degraded
6398 // Stability: development
6399 HwStateDegraded = HwStateKey.String("degraded")
6400 // Failed
6401 // Stability: development
6402 HwStateFailed = HwStateKey.String("failed")
6403 )
6404
6405 // Enum values for hw.type
6406 var (
6407 // Battery
6408 // Stability: development
6409 HwTypeBattery = HwTypeKey.String("battery")
6410 // CPU
6411 // Stability: development
6412 HwTypeCPU = HwTypeKey.String("cpu")
6413 // Disk controller
6414 // Stability: development
6415 HwTypeDiskController = HwTypeKey.String("disk_controller")
6416 // Enclosure
6417 // Stability: development
6418 HwTypeEnclosure = HwTypeKey.String("enclosure")
6419 // Fan
6420 // Stability: development
6421 HwTypeFan = HwTypeKey.String("fan")
6422 // GPU
6423 // Stability: development
6424 HwTypeGpu = HwTypeKey.String("gpu")
6425 // Logical disk
6426 // Stability: development
6427 HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
6428 // Memory
6429 // Stability: development
6430 HwTypeMemory = HwTypeKey.String("memory")
6431 // Network
6432 // Stability: development
6433 HwTypeNetwork = HwTypeKey.String("network")
6434 // Physical disk
6435 // Stability: development
6436 HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
6437 // Power supply
6438 // Stability: development
6439 HwTypePowerSupply = HwTypeKey.String("power_supply")
6440 // Tape drive
6441 // Stability: development
6442 HwTypeTapeDrive = HwTypeKey.String("tape_drive")
6443 // Temperature
6444 // Stability: development
6445 HwTypeTemperature = HwTypeKey.String("temperature")
6446 // Voltage
6447 // Stability: development
6448 HwTypeVoltage = HwTypeKey.String("voltage")
6449 )
6450
6451 // Namespace: k8s
6452 const (
6453 // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
6454 // semantic conventions. It represents the name of the cluster.
6455 //
6456 // Type: string
6457 // RequirementLevel: Recommended
6458 // Stability: Development
6459 //
6460 // Examples: "opentelemetry-cluster"
6461 K8SClusterNameKey = attribute.Key("k8s.cluster.name")
6462
6463 // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
6464 // semantic conventions. It represents a pseudo-ID for the cluster, set to the
6465 // UID of the `kube-system` namespace.
6466 //
6467 // Type: string
6468 // RequirementLevel: Recommended
6469 // Stability: Development
6470 //
6471 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
6472 // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
6473 // added, we will recommend collecting the `k8s.cluster.uid` through the
6474 // official APIs. In the meantime, we are able to use the `uid` of the
6475 // `kube-system` namespace as a proxy for cluster ID. Read on for the
6476 // rationale.
6477 //
6478 // Every object created in a K8s cluster is assigned a distinct UID. The
6479 // `kube-system` namespace is used by Kubernetes itself and will exist
6480 // for the lifetime of the cluster. Using the `uid` of the `kube-system`
6481 // namespace is a reasonable proxy for the K8s ClusterID as it will only
6482 // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
6483 // UUIDs as standardized by
6484 // [ISO/IEC 9834-8 and ITU-T X.667].
6485 // Which states:
6486 //
6487 // > If generated according to one of the mechanisms defined in Rec.
6488 // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
6489 // > different from all other UUIDs generated before 3603 A.D., or is
6490 // > extremely likely to be different (depending on the mechanism chosen).
6491 //
6492 // Therefore, UIDs between clusters should be extremely unlikely to
6493 // conflict.
6494 //
6495 // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
6496 K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
6497
6498 // K8SContainerNameKey is the attribute Key conforming to the
6499 // "k8s.container.name" semantic conventions. It represents the name of the
6500 // Container from Pod specification, must be unique within a Pod. Container
6501 // runtime usually uses different globally unique name (`container.name`).
6502 //
6503 // Type: string
6504 // RequirementLevel: Recommended
6505 // Stability: Development
6506 //
6507 // Examples: "redis"
6508 K8SContainerNameKey = attribute.Key("k8s.container.name")
6509
6510 // K8SContainerRestartCountKey is the attribute Key conforming to the
6511 // "k8s.container.restart_count" semantic conventions. It represents the number
6512 // of times the container was restarted. This attribute can be used to identify
6513 // a particular container (running or stopped) within a container spec.
6514 //
6515 // Type: int
6516 // RequirementLevel: Recommended
6517 // Stability: Development
6518 //
6519 // Examples:
6520 K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
6521
6522 // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
6523 // the "k8s.container.status.last_terminated_reason" semantic conventions. It
6524 // represents the last terminated reason of the Container.
6525 //
6526 // Type: string
6527 // RequirementLevel: Recommended
6528 // Stability: Development
6529 //
6530 // Examples: "Evicted", "Error"
6531 K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
6532
6533 // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
6534 // semantic conventions. It represents the name of the CronJob.
6535 //
6536 // Type: string
6537 // RequirementLevel: Recommended
6538 // Stability: Development
6539 //
6540 // Examples: "opentelemetry"
6541 K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
6542
6543 // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
6544 // semantic conventions. It represents the UID of the CronJob.
6545 //
6546 // Type: string
6547 // RequirementLevel: Recommended
6548 // Stability: Development
6549 //
6550 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6551 K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
6552
6553 // K8SDaemonSetNameKey is the attribute Key conforming to the
6554 // "k8s.daemonset.name" semantic conventions. It represents the name of the
6555 // DaemonSet.
6556 //
6557 // Type: string
6558 // RequirementLevel: Recommended
6559 // Stability: Development
6560 //
6561 // Examples: "opentelemetry"
6562 K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
6563
6564 // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
6565 // semantic conventions. It represents the UID of the DaemonSet.
6566 //
6567 // Type: string
6568 // RequirementLevel: Recommended
6569 // Stability: Development
6570 //
6571 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6572 K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
6573
6574 // K8SDeploymentNameKey is the attribute Key conforming to the
6575 // "k8s.deployment.name" semantic conventions. It represents the name of the
6576 // Deployment.
6577 //
6578 // Type: string
6579 // RequirementLevel: Recommended
6580 // Stability: Development
6581 //
6582 // Examples: "opentelemetry"
6583 K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
6584
6585 // K8SDeploymentUIDKey is the attribute Key conforming to the
6586 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
6587 // Deployment.
6588 //
6589 // Type: string
6590 // RequirementLevel: Recommended
6591 // Stability: Development
6592 //
6593 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6594 K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
6595
6596 // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
6597 // conventions. It represents the name of the Job.
6598 //
6599 // Type: string
6600 // RequirementLevel: Recommended
6601 // Stability: Development
6602 //
6603 // Examples: "opentelemetry"
6604 K8SJobNameKey = attribute.Key("k8s.job.name")
6605
6606 // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
6607 // conventions. It represents the UID of the Job.
6608 //
6609 // Type: string
6610 // RequirementLevel: Recommended
6611 // Stability: Development
6612 //
6613 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6614 K8SJobUIDKey = attribute.Key("k8s.job.uid")
6615
6616 // K8SNamespaceNameKey is the attribute Key conforming to the
6617 // "k8s.namespace.name" semantic conventions. It represents the name of the
6618 // namespace that the pod is running in.
6619 //
6620 // Type: string
6621 // RequirementLevel: Recommended
6622 // Stability: Development
6623 //
6624 // Examples: "default"
6625 K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
6626
6627 // K8SNamespacePhaseKey is the attribute Key conforming to the
6628 // "k8s.namespace.phase" semantic conventions. It represents the phase of the
6629 // K8s namespace.
6630 //
6631 // Type: Enum
6632 // RequirementLevel: Recommended
6633 // Stability: Development
6634 //
6635 // Examples: "active", "terminating"
6636 // Note: This attribute aligns with the `phase` field of the
6637 // [K8s NamespaceStatus]
6638 //
6639 // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core
6640 K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase")
6641
6642 // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
6643 // semantic conventions. It represents the name of the Node.
6644 //
6645 // Type: string
6646 // RequirementLevel: Recommended
6647 // Stability: Development
6648 //
6649 // Examples: "node-1"
6650 K8SNodeNameKey = attribute.Key("k8s.node.name")
6651
6652 // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
6653 // conventions. It represents the UID of the Node.
6654 //
6655 // Type: string
6656 // RequirementLevel: Recommended
6657 // Stability: Development
6658 //
6659 // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
6660 K8SNodeUIDKey = attribute.Key("k8s.node.uid")
6661
6662 // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
6663 // conventions. It represents the name of the Pod.
6664 //
6665 // Type: string
6666 // RequirementLevel: Recommended
6667 // Stability: Development
6668 //
6669 // Examples: "opentelemetry-pod-autoconf"
6670 K8SPodNameKey = attribute.Key("k8s.pod.name")
6671
6672 // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
6673 // conventions. It represents the UID of the Pod.
6674 //
6675 // Type: string
6676 // RequirementLevel: Recommended
6677 // Stability: Development
6678 //
6679 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6680 K8SPodUIDKey = attribute.Key("k8s.pod.uid")
6681
6682 // K8SReplicaSetNameKey is the attribute Key conforming to the
6683 // "k8s.replicaset.name" semantic conventions. It represents the name of the
6684 // ReplicaSet.
6685 //
6686 // Type: string
6687 // RequirementLevel: Recommended
6688 // Stability: Development
6689 //
6690 // Examples: "opentelemetry"
6691 K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
6692
6693 // K8SReplicaSetUIDKey is the attribute Key conforming to the
6694 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
6695 // ReplicaSet.
6696 //
6697 // Type: string
6698 // RequirementLevel: Recommended
6699 // Stability: Development
6700 //
6701 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6702 K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
6703
6704 // K8SStatefulSetNameKey is the attribute Key conforming to the
6705 // "k8s.statefulset.name" semantic conventions. It represents the name of the
6706 // StatefulSet.
6707 //
6708 // Type: string
6709 // RequirementLevel: Recommended
6710 // Stability: Development
6711 //
6712 // Examples: "opentelemetry"
6713 K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
6714
6715 // K8SStatefulSetUIDKey is the attribute Key conforming to the
6716 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
6717 // StatefulSet.
6718 //
6719 // Type: string
6720 // RequirementLevel: Recommended
6721 // Stability: Development
6722 //
6723 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6724 K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
6725
6726 // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
6727 // semantic conventions. It represents the name of the K8s volume.
6728 //
6729 // Type: string
6730 // RequirementLevel: Recommended
6731 // Stability: Development
6732 //
6733 // Examples: "volume0"
6734 K8SVolumeNameKey = attribute.Key("k8s.volume.name")
6735
6736 // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
6737 // semantic conventions. It represents the type of the K8s volume.
6738 //
6739 // Type: Enum
6740 // RequirementLevel: Recommended
6741 // Stability: Development
6742 //
6743 // Examples: "emptyDir", "persistentVolumeClaim"
6744 K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
6745 )
6746
6747 // K8SClusterName returns an attribute KeyValue conforming to the
6748 // "k8s.cluster.name" semantic conventions. It represents the name of the
6749 // cluster.
6750 func K8SClusterName(val string) attribute.KeyValue {
6751 return K8SClusterNameKey.String(val)
6752 }
6753
6754 // K8SClusterUID returns an attribute KeyValue conforming to the
6755 // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
6756 // cluster, set to the UID of the `kube-system` namespace.
6757 func K8SClusterUID(val string) attribute.KeyValue {
6758 return K8SClusterUIDKey.String(val)
6759 }
6760
6761 // K8SContainerName returns an attribute KeyValue conforming to the
6762 // "k8s.container.name" semantic conventions. It represents the name of the
6763 // Container from Pod specification, must be unique within a Pod. Container
6764 // runtime usually uses different globally unique name (`container.name`).
6765 func K8SContainerName(val string) attribute.KeyValue {
6766 return K8SContainerNameKey.String(val)
6767 }
6768
6769 // K8SContainerRestartCount returns an attribute KeyValue conforming to the
6770 // "k8s.container.restart_count" semantic conventions. It represents the number
6771 // of times the container was restarted. This attribute can be used to identify a
6772 // particular container (running or stopped) within a container spec.
6773 func K8SContainerRestartCount(val int) attribute.KeyValue {
6774 return K8SContainerRestartCountKey.Int(val)
6775 }
6776
6777 // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
6778 // conforming to the "k8s.container.status.last_terminated_reason" semantic
6779 // conventions. It represents the last terminated reason of the Container.
6780 func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
6781 return K8SContainerStatusLastTerminatedReasonKey.String(val)
6782 }
6783
6784 // K8SCronJobName returns an attribute KeyValue conforming to the
6785 // "k8s.cronjob.name" semantic conventions. It represents the name of the
6786 // CronJob.
6787 func K8SCronJobName(val string) attribute.KeyValue {
6788 return K8SCronJobNameKey.String(val)
6789 }
6790
6791 // K8SCronJobUID returns an attribute KeyValue conforming to the
6792 // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
6793 func K8SCronJobUID(val string) attribute.KeyValue {
6794 return K8SCronJobUIDKey.String(val)
6795 }
6796
6797 // K8SDaemonSetName returns an attribute KeyValue conforming to the
6798 // "k8s.daemonset.name" semantic conventions. It represents the name of the
6799 // DaemonSet.
6800 func K8SDaemonSetName(val string) attribute.KeyValue {
6801 return K8SDaemonSetNameKey.String(val)
6802 }
6803
6804 // K8SDaemonSetUID returns an attribute KeyValue conforming to the
6805 // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
6806 // DaemonSet.
6807 func K8SDaemonSetUID(val string) attribute.KeyValue {
6808 return K8SDaemonSetUIDKey.String(val)
6809 }
6810
6811 // K8SDeploymentName returns an attribute KeyValue conforming to the
6812 // "k8s.deployment.name" semantic conventions. It represents the name of the
6813 // Deployment.
6814 func K8SDeploymentName(val string) attribute.KeyValue {
6815 return K8SDeploymentNameKey.String(val)
6816 }
6817
6818 // K8SDeploymentUID returns an attribute KeyValue conforming to the
6819 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
6820 // Deployment.
6821 func K8SDeploymentUID(val string) attribute.KeyValue {
6822 return K8SDeploymentUIDKey.String(val)
6823 }
6824
6825 // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
6826 // semantic conventions. It represents the name of the Job.
6827 func K8SJobName(val string) attribute.KeyValue {
6828 return K8SJobNameKey.String(val)
6829 }
6830
6831 // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
6832 // semantic conventions. It represents the UID of the Job.
6833 func K8SJobUID(val string) attribute.KeyValue {
6834 return K8SJobUIDKey.String(val)
6835 }
6836
6837 // K8SNamespaceName returns an attribute KeyValue conforming to the
6838 // "k8s.namespace.name" semantic conventions. It represents the name of the
6839 // namespace that the pod is running in.
6840 func K8SNamespaceName(val string) attribute.KeyValue {
6841 return K8SNamespaceNameKey.String(val)
6842 }
6843
6844 // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
6845 // semantic conventions. It represents the name of the Node.
6846 func K8SNodeName(val string) attribute.KeyValue {
6847 return K8SNodeNameKey.String(val)
6848 }
6849
6850 // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
6851 // semantic conventions. It represents the UID of the Node.
6852 func K8SNodeUID(val string) attribute.KeyValue {
6853 return K8SNodeUIDKey.String(val)
6854 }
6855
6856 // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
6857 // semantic conventions. It represents the name of the Pod.
6858 func K8SPodName(val string) attribute.KeyValue {
6859 return K8SPodNameKey.String(val)
6860 }
6861
6862 // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
6863 // semantic conventions. It represents the UID of the Pod.
6864 func K8SPodUID(val string) attribute.KeyValue {
6865 return K8SPodUIDKey.String(val)
6866 }
6867
6868 // K8SReplicaSetName returns an attribute KeyValue conforming to the
6869 // "k8s.replicaset.name" semantic conventions. It represents the name of the
6870 // ReplicaSet.
6871 func K8SReplicaSetName(val string) attribute.KeyValue {
6872 return K8SReplicaSetNameKey.String(val)
6873 }
6874
6875 // K8SReplicaSetUID returns an attribute KeyValue conforming to the
6876 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
6877 // ReplicaSet.
6878 func K8SReplicaSetUID(val string) attribute.KeyValue {
6879 return K8SReplicaSetUIDKey.String(val)
6880 }
6881
6882 // K8SStatefulSetName returns an attribute KeyValue conforming to the
6883 // "k8s.statefulset.name" semantic conventions. It represents the name of the
6884 // StatefulSet.
6885 func K8SStatefulSetName(val string) attribute.KeyValue {
6886 return K8SStatefulSetNameKey.String(val)
6887 }
6888
6889 // K8SStatefulSetUID returns an attribute KeyValue conforming to the
6890 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
6891 // StatefulSet.
6892 func K8SStatefulSetUID(val string) attribute.KeyValue {
6893 return K8SStatefulSetUIDKey.String(val)
6894 }
6895
6896 // K8SVolumeName returns an attribute KeyValue conforming to the
6897 // "k8s.volume.name" semantic conventions. It represents the name of the K8s
6898 // volume.
6899 func K8SVolumeName(val string) attribute.KeyValue {
6900 return K8SVolumeNameKey.String(val)
6901 }
6902
6903 // Enum values for k8s.namespace.phase
6904 var (
6905 // Active namespace phase as described by [K8s API]
6906 // Stability: development
6907 //
6908 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
6909 K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active")
6910 // Terminating namespace phase as described by [K8s API]
6911 // Stability: development
6912 //
6913 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
6914 K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating")
6915 )
6916
6917 // Enum values for k8s.volume.type
6918 var (
6919 // A [persistentVolumeClaim] volume
6920 // Stability: development
6921 //
6922 // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
6923 K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
6924 // A [configMap] volume
6925 // Stability: development
6926 //
6927 // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
6928 K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
6929 // A [downwardAPI] volume
6930 // Stability: development
6931 //
6932 // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
6933 K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
6934 // An [emptyDir] volume
6935 // Stability: development
6936 //
6937 // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
6938 K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
6939 // A [secret] volume
6940 // Stability: development
6941 //
6942 // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
6943 K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
6944 // A [local] volume
6945 // Stability: development
6946 //
6947 // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local
6948 K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
6949 )
6950
6951 // Namespace: linux
6952 const (
6953 // LinuxMemorySlabStateKey is the attribute Key conforming to the
6954 // "linux.memory.slab.state" semantic conventions. It represents the Linux Slab
6955 // memory state.
6956 //
6957 // Type: Enum
6958 // RequirementLevel: Recommended
6959 // Stability: Development
6960 //
6961 // Examples: "reclaimable", "unreclaimable"
6962 LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state")
6963 )
6964
6965 // Enum values for linux.memory.slab.state
6966 var (
6967 // reclaimable
6968 // Stability: development
6969 LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable")
6970 // unreclaimable
6971 // Stability: development
6972 LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable")
6973 )
6974
6975 // Namespace: log
6976 const (
6977 // LogFileNameKey is the attribute Key conforming to the "log.file.name"
6978 // semantic conventions. It represents the basename of the file.
6979 //
6980 // Type: string
6981 // RequirementLevel: Recommended
6982 // Stability: Development
6983 //
6984 // Examples: "audit.log"
6985 LogFileNameKey = attribute.Key("log.file.name")
6986
6987 // LogFileNameResolvedKey is the attribute Key conforming to the
6988 // "log.file.name_resolved" semantic conventions. It represents the basename of
6989 // the file, with symlinks resolved.
6990 //
6991 // Type: string
6992 // RequirementLevel: Recommended
6993 // Stability: Development
6994 //
6995 // Examples: "uuid.log"
6996 LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
6997
6998 // LogFilePathKey is the attribute Key conforming to the "log.file.path"
6999 // semantic conventions. It represents the full path to the file.
7000 //
7001 // Type: string
7002 // RequirementLevel: Recommended
7003 // Stability: Development
7004 //
7005 // Examples: "/var/log/mysql/audit.log"
7006 LogFilePathKey = attribute.Key("log.file.path")
7007
7008 // LogFilePathResolvedKey is the attribute Key conforming to the
7009 // "log.file.path_resolved" semantic conventions. It represents the full path to
7010 // the file, with symlinks resolved.
7011 //
7012 // Type: string
7013 // RequirementLevel: Recommended
7014 // Stability: Development
7015 //
7016 // Examples: "/var/lib/docker/uuid.log"
7017 LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
7018
7019 // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
7020 // conventions. It represents the stream associated with the log. See below for
7021 // a list of well-known values.
7022 //
7023 // Type: Enum
7024 // RequirementLevel: Recommended
7025 // Stability: Development
7026 //
7027 // Examples:
7028 LogIostreamKey = attribute.Key("log.iostream")
7029
7030 // LogRecordOriginalKey is the attribute Key conforming to the
7031 // "log.record.original" semantic conventions. It represents the complete
7032 // original Log Record.
7033 //
7034 // Type: string
7035 // RequirementLevel: Recommended
7036 // Stability: Development
7037 //
7038 // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
7039 // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
7040 // Note: This value MAY be added when processing a Log Record which was
7041 // originally transmitted as a string or equivalent data type AND the Body field
7042 // of the Log Record does not contain the same value. (e.g. a syslog or a log
7043 // record read from a file.)
7044 LogRecordOriginalKey = attribute.Key("log.record.original")
7045
7046 // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
7047 // semantic conventions. It represents a unique identifier for the Log Record.
7048 //
7049 // Type: string
7050 // RequirementLevel: Recommended
7051 // Stability: Development
7052 //
7053 // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
7054 // Note: If an id is provided, other log records with the same id will be
7055 // considered duplicates and can be removed safely. This means, that two
7056 // distinguishable log records MUST have different values.
7057 // The id MAY be an
7058 // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
7059 // identifiers (e.g. UUID) may be used as needed.
7060 //
7061 // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
7062 LogRecordUIDKey = attribute.Key("log.record.uid")
7063 )
7064
7065 // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
7066 // semantic conventions. It represents the basename of the file.
7067 func LogFileName(val string) attribute.KeyValue {
7068 return LogFileNameKey.String(val)
7069 }
7070
7071 // LogFileNameResolved returns an attribute KeyValue conforming to the
7072 // "log.file.name_resolved" semantic conventions. It represents the basename of
7073 // the file, with symlinks resolved.
7074 func LogFileNameResolved(val string) attribute.KeyValue {
7075 return LogFileNameResolvedKey.String(val)
7076 }
7077
7078 // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
7079 // semantic conventions. It represents the full path to the file.
7080 func LogFilePath(val string) attribute.KeyValue {
7081 return LogFilePathKey.String(val)
7082 }
7083
7084 // LogFilePathResolved returns an attribute KeyValue conforming to the
7085 // "log.file.path_resolved" semantic conventions. It represents the full path to
7086 // the file, with symlinks resolved.
7087 func LogFilePathResolved(val string) attribute.KeyValue {
7088 return LogFilePathResolvedKey.String(val)
7089 }
7090
7091 // LogRecordOriginal returns an attribute KeyValue conforming to the
7092 // "log.record.original" semantic conventions. It represents the complete
7093 // original Log Record.
7094 func LogRecordOriginal(val string) attribute.KeyValue {
7095 return LogRecordOriginalKey.String(val)
7096 }
7097
7098 // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
7099 // semantic conventions. It represents a unique identifier for the Log Record.
7100 func LogRecordUID(val string) attribute.KeyValue {
7101 return LogRecordUIDKey.String(val)
7102 }
7103
7104 // Enum values for log.iostream
7105 var (
7106 // Logs from stdout stream
7107 // Stability: development
7108 LogIostreamStdout = LogIostreamKey.String("stdout")
7109 // Events from stderr stream
7110 // Stability: development
7111 LogIostreamStderr = LogIostreamKey.String("stderr")
7112 )
7113
7114 // Namespace: messaging
7115 const (
7116 // MessagingBatchMessageCountKey is the attribute Key conforming to the
7117 // "messaging.batch.message_count" semantic conventions. It represents the
7118 // number of messages sent, received, or processed in the scope of the batching
7119 // operation.
7120 //
7121 // Type: int
7122 // RequirementLevel: Recommended
7123 // Stability: Development
7124 //
7125 // Examples: 0, 1, 2
7126 // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
7127 // spans that operate with a single message. When a messaging client library
7128 // supports both batch and single-message API for the same operation,
7129 // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
7130 // and SHOULD NOT use it for single-message APIs.
7131 MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
7132
7133 // MessagingClientIDKey is the attribute Key conforming to the
7134 // "messaging.client.id" semantic conventions. It represents a unique identifier
7135 // for the client that consumes or produces a message.
7136 //
7137 // Type: string
7138 // RequirementLevel: Recommended
7139 // Stability: Development
7140 //
7141 // Examples: "client-5", "myhost@8742@s8083jm"
7142 MessagingClientIDKey = attribute.Key("messaging.client.id")
7143
7144 // MessagingConsumerGroupNameKey is the attribute Key conforming to the
7145 // "messaging.consumer.group.name" semantic conventions. It represents the name
7146 // of the consumer group with which a consumer is associated.
7147 //
7148 // Type: string
7149 // RequirementLevel: Recommended
7150 // Stability: Development
7151 //
7152 // Examples: "my-group", "indexer"
7153 // Note: Semantic conventions for individual messaging systems SHOULD document
7154 // whether `messaging.consumer.group.name` is applicable and what it means in
7155 // the context of that system.
7156 MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
7157
7158 // MessagingDestinationAnonymousKey is the attribute Key conforming to the
7159 // "messaging.destination.anonymous" semantic conventions. It represents a
7160 // boolean that is true if the message destination is anonymous (could be
7161 // unnamed or have auto-generated name).
7162 //
7163 // Type: boolean
7164 // RequirementLevel: Recommended
7165 // Stability: Development
7166 //
7167 // Examples:
7168 MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
7169
7170 // MessagingDestinationNameKey is the attribute Key conforming to the
7171 // "messaging.destination.name" semantic conventions. It represents the message
7172 // destination name.
7173 //
7174 // Type: string
7175 // RequirementLevel: Recommended
7176 // Stability: Development
7177 //
7178 // Examples: "MyQueue", "MyTopic"
7179 // Note: Destination name SHOULD uniquely identify a specific queue, topic or
7180 // other entity within the broker. If
7181 // the broker doesn't have such notion, the destination name SHOULD uniquely
7182 // identify the broker.
7183 MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
7184
7185 // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
7186 // "messaging.destination.partition.id" semantic conventions. It represents the
7187 // identifier of the partition messages are sent to or received from, unique
7188 // within the `messaging.destination.name`.
7189 //
7190 // Type: string
7191 // RequirementLevel: Recommended
7192 // Stability: Development
7193 //
7194 // Examples: 1
7195 MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
7196
7197 // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
7198 // the "messaging.destination.subscription.name" semantic conventions. It
7199 // represents the name of the destination subscription from which a message is
7200 // consumed.
7201 //
7202 // Type: string
7203 // RequirementLevel: Recommended
7204 // Stability: Development
7205 //
7206 // Examples: "subscription-a"
7207 // Note: Semantic conventions for individual messaging systems SHOULD document
7208 // whether `messaging.destination.subscription.name` is applicable and what it
7209 // means in the context of that system.
7210 MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
7211
7212 // MessagingDestinationTemplateKey is the attribute Key conforming to the
7213 // "messaging.destination.template" semantic conventions. It represents the low
7214 // cardinality representation of the messaging destination name.
7215 //
7216 // Type: string
7217 // RequirementLevel: Recommended
7218 // Stability: Development
7219 //
7220 // Examples: "/customers/{customerId}"
7221 // Note: Destination names could be constructed from templates. An example would
7222 // be a destination name involving a user name or product id. Although the
7223 // destination name in this case is of high cardinality, the underlying template
7224 // is of low cardinality and can be effectively used for grouping and
7225 // aggregation.
7226 MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
7227
7228 // MessagingDestinationTemporaryKey is the attribute Key conforming to the
7229 // "messaging.destination.temporary" semantic conventions. It represents a
7230 // boolean that is true if the message destination is temporary and might not
7231 // exist anymore after messages are processed.
7232 //
7233 // Type: boolean
7234 // RequirementLevel: Recommended
7235 // Stability: Development
7236 //
7237 // Examples:
7238 MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
7239
7240 // MessagingEventhubsMessageEnqueuedTimeKey is the attribute Key conforming to
7241 // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
7242 // represents the UTC epoch seconds at which the message has been accepted and
7243 // stored in the entity.
7244 //
7245 // Type: int
7246 // RequirementLevel: Recommended
7247 // Stability: Development
7248 MessagingEventhubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
7249
7250 // MessagingGCPPubsubMessageAckDeadlineKey is the attribute Key conforming to
7251 // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
7252 // represents the ack deadline in seconds set for the modify ack deadline
7253 // request.
7254 //
7255 // Type: int
7256 // RequirementLevel: Recommended
7257 // Stability: Development
7258 MessagingGCPPubsubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
7259
7260 // MessagingGCPPubsubMessageAckIDKey is the attribute Key conforming to the
7261 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
7262 // ack id for a given message.
7263 //
7264 // Type: string
7265 // RequirementLevel: Recommended
7266 // Stability: Development
7267 //
7268 // Examples: ack_id
7269 MessagingGCPPubsubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
7270
7271 // MessagingGCPPubsubMessageDeliveryAttemptKey is the attribute Key conforming
7272 // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
7273 // It represents the delivery attempt for a given message.
7274 //
7275 // Type: int
7276 // RequirementLevel: Recommended
7277 // Stability: Development
7278 MessagingGCPPubsubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
7279
7280 // MessagingGCPPubsubMessageOrderingKeyKey is the attribute Key conforming to
7281 // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
7282 // represents the ordering key for a given message. If the attribute is not
7283 // present, the message does not have an ordering key.
7284 //
7285 // Type: string
7286 // RequirementLevel: Recommended
7287 // Stability: Development
7288 //
7289 // Examples: ordering_key
7290 MessagingGCPPubsubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
7291
7292 // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
7293 // "messaging.kafka.message.key" semantic conventions. It represents the message
7294 // keys in Kafka are used for grouping alike messages to ensure they're
7295 // processed on the same partition. They differ from `messaging.message.id` in
7296 // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
7297 //
7298 // Type: string
7299 // RequirementLevel: Recommended
7300 // Stability: Development
7301 //
7302 // Examples: myKey
7303 // Note: If the key type is not string, it's string representation has to be
7304 // supplied for the attribute. If the key has no unambiguous, canonical string
7305 // form, don't include its value.
7306 MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
7307
7308 // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
7309 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
7310 // boolean that is true if the message is a tombstone.
7311 //
7312 // Type: boolean
7313 // RequirementLevel: Recommended
7314 // Stability: Development
7315 //
7316 // Examples:
7317 MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
7318
7319 // MessagingKafkaOffsetKey is the attribute Key conforming to the
7320 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
7321 // record in the corresponding Kafka partition.
7322 //
7323 // Type: int
7324 // RequirementLevel: Recommended
7325 // Stability: Development
7326 MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
7327
7328 // MessagingMessageBodySizeKey is the attribute Key conforming to the
7329 // "messaging.message.body.size" semantic conventions. It represents the size of
7330 // the message body in bytes.
7331 //
7332 // Type: int
7333 // RequirementLevel: Recommended
7334 // Stability: Development
7335 //
7336 // Note: This can refer to both the compressed or uncompressed body size. If
7337 // both sizes are known, the uncompressed
7338 // body size should be used.
7339 MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
7340
7341 // MessagingMessageConversationIDKey is the attribute Key conforming to the
7342 // "messaging.message.conversation_id" semantic conventions. It represents the
7343 // conversation ID identifying the conversation to which the message belongs,
7344 // represented as a string. Sometimes called "Correlation ID".
7345 //
7346 // Type: string
7347 // RequirementLevel: Recommended
7348 // Stability: Development
7349 //
7350 // Examples: MyConversationId
7351 MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
7352
7353 // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
7354 // "messaging.message.envelope.size" semantic conventions. It represents the
7355 // size of the message body and metadata in bytes.
7356 //
7357 // Type: int
7358 // RequirementLevel: Recommended
7359 // Stability: Development
7360 //
7361 // Note: This can refer to both the compressed or uncompressed size. If both
7362 // sizes are known, the uncompressed
7363 // size should be used.
7364 MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
7365
7366 // MessagingMessageIDKey is the attribute Key conforming to the
7367 // "messaging.message.id" semantic conventions. It represents a value used by
7368 // the messaging system as an identifier for the message, represented as a
7369 // string.
7370 //
7371 // Type: string
7372 // RequirementLevel: Recommended
7373 // Stability: Development
7374 //
7375 // Examples: 452a7c7c7c7048c2f887f61572b18fc2
7376 MessagingMessageIDKey = attribute.Key("messaging.message.id")
7377
7378 // MessagingOperationNameKey is the attribute Key conforming to the
7379 // "messaging.operation.name" semantic conventions. It represents the
7380 // system-specific name of the messaging operation.
7381 //
7382 // Type: string
7383 // RequirementLevel: Recommended
7384 // Stability: Development
7385 //
7386 // Examples: "ack", "nack", "send"
7387 MessagingOperationNameKey = attribute.Key("messaging.operation.name")
7388
7389 // MessagingOperationTypeKey is the attribute Key conforming to the
7390 // "messaging.operation.type" semantic conventions. It represents a string
7391 // identifying the type of the messaging operation.
7392 //
7393 // Type: Enum
7394 // RequirementLevel: Recommended
7395 // Stability: Development
7396 //
7397 // Examples:
7398 // Note: If a custom value is used, it MUST be of low cardinality.
7399 MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
7400
7401 // MessagingRabbitmqDestinationRoutingKeyKey is the attribute Key conforming to
7402 // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
7403 // represents the rabbitMQ message routing key.
7404 //
7405 // Type: string
7406 // RequirementLevel: Recommended
7407 // Stability: Development
7408 //
7409 // Examples: myKey
7410 MessagingRabbitmqDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
7411
7412 // MessagingRabbitmqMessageDeliveryTagKey is the attribute Key conforming to the
7413 // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
7414 // the rabbitMQ message delivery tag.
7415 //
7416 // Type: int
7417 // RequirementLevel: Recommended
7418 // Stability: Development
7419 MessagingRabbitmqMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
7420
7421 // MessagingRocketmqConsumptionModelKey is the attribute Key conforming to the
7422 // "messaging.rocketmq.consumption_model" semantic conventions. It represents
7423 // the model of message consumption. This only applies to consumer spans.
7424 //
7425 // Type: Enum
7426 // RequirementLevel: Recommended
7427 // Stability: Development
7428 //
7429 // Examples:
7430 MessagingRocketmqConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
7431
7432 // MessagingRocketmqMessageDelayTimeLevelKey is the attribute Key conforming to
7433 // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
7434 // represents the delay time level for delay message, which determines the
7435 // message delay time.
7436 //
7437 // Type: int
7438 // RequirementLevel: Recommended
7439 // Stability: Development
7440 MessagingRocketmqMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
7441
7442 // MessagingRocketmqMessageDeliveryTimestampKey is the attribute Key conforming
7443 // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
7444 // It represents the timestamp in milliseconds that the delay message is
7445 // expected to be delivered to consumer.
7446 //
7447 // Type: int
7448 // RequirementLevel: Recommended
7449 // Stability: Development
7450 MessagingRocketmqMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
7451
7452 // MessagingRocketmqMessageGroupKey is the attribute Key conforming to the
7453 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
7454 // is essential for FIFO message. Messages that belong to the same message group
7455 // are always processed one by one within the same consumer group.
7456 //
7457 // Type: string
7458 // RequirementLevel: Recommended
7459 // Stability: Development
7460 //
7461 // Examples: myMessageGroup
7462 MessagingRocketmqMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
7463
7464 // MessagingRocketmqMessageKeysKey is the attribute Key conforming to the
7465 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
7466 // key(s) of message, another way to mark message besides message id.
7467 //
7468 // Type: string[]
7469 // RequirementLevel: Recommended
7470 // Stability: Development
7471 //
7472 // Examples: "keyA", "keyB"
7473 MessagingRocketmqMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
7474
7475 // MessagingRocketmqMessageTagKey is the attribute Key conforming to the
7476 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
7477 // secondary classifier of message besides topic.
7478 //
7479 // Type: string
7480 // RequirementLevel: Recommended
7481 // Stability: Development
7482 //
7483 // Examples: tagA
7484 MessagingRocketmqMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
7485
7486 // MessagingRocketmqMessageTypeKey is the attribute Key conforming to the
7487 // "messaging.rocketmq.message.type" semantic conventions. It represents the
7488 // type of message.
7489 //
7490 // Type: Enum
7491 // RequirementLevel: Recommended
7492 // Stability: Development
7493 //
7494 // Examples:
7495 MessagingRocketmqMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
7496
7497 // MessagingRocketmqNamespaceKey is the attribute Key conforming to the
7498 // "messaging.rocketmq.namespace" semantic conventions. It represents the
7499 // namespace of RocketMQ resources, resources in different namespaces are
7500 // individual.
7501 //
7502 // Type: string
7503 // RequirementLevel: Recommended
7504 // Stability: Development
7505 //
7506 // Examples: myNamespace
7507 MessagingRocketmqNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
7508
7509 // MessagingServicebusDispositionStatusKey is the attribute Key conforming to
7510 // the "messaging.servicebus.disposition_status" semantic conventions. It
7511 // represents the describes the [settlement type].
7512 //
7513 // Type: Enum
7514 // RequirementLevel: Recommended
7515 // Stability: Development
7516 //
7517 // Examples:
7518 //
7519 // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
7520 MessagingServicebusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
7521
7522 // MessagingServicebusMessageDeliveryCountKey is the attribute Key conforming to
7523 // the "messaging.servicebus.message.delivery_count" semantic conventions. It
7524 // represents the number of deliveries that have been attempted for this
7525 // message.
7526 //
7527 // Type: int
7528 // RequirementLevel: Recommended
7529 // Stability: Development
7530 MessagingServicebusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
7531
7532 // MessagingServicebusMessageEnqueuedTimeKey is the attribute Key conforming to
7533 // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
7534 // represents the UTC epoch seconds at which the message has been accepted and
7535 // stored in the entity.
7536 //
7537 // Type: int
7538 // RequirementLevel: Recommended
7539 // Stability: Development
7540 MessagingServicebusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
7541
7542 // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
7543 // semantic conventions. It represents the messaging system as identified by the
7544 // client instrumentation.
7545 //
7546 // Type: Enum
7547 // RequirementLevel: Recommended
7548 // Stability: Development
7549 //
7550 // Examples:
7551 // Note: The actual messaging system may differ from the one known by the
7552 // client. For example, when using Kafka client libraries to communicate with
7553 // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
7554 // instrumentation's best knowledge.
7555 MessagingSystemKey = attribute.Key("messaging.system")
7556 )
7557
7558 // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
7559 // "messaging.batch.message_count" semantic conventions. It represents the number
7560 // of messages sent, received, or processed in the scope of the batching
7561 // operation.
7562 func MessagingBatchMessageCount(val int) attribute.KeyValue {
7563 return MessagingBatchMessageCountKey.Int(val)
7564 }
7565
7566 // MessagingClientID returns an attribute KeyValue conforming to the
7567 // "messaging.client.id" semantic conventions. It represents a unique identifier
7568 // for the client that consumes or produces a message.
7569 func MessagingClientID(val string) attribute.KeyValue {
7570 return MessagingClientIDKey.String(val)
7571 }
7572
7573 // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
7574 // "messaging.consumer.group.name" semantic conventions. It represents the name
7575 // of the consumer group with which a consumer is associated.
7576 func MessagingConsumerGroupName(val string) attribute.KeyValue {
7577 return MessagingConsumerGroupNameKey.String(val)
7578 }
7579
7580 // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
7581 // "messaging.destination.anonymous" semantic conventions. It represents a
7582 // boolean that is true if the message destination is anonymous (could be unnamed
7583 // or have auto-generated name).
7584 func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
7585 return MessagingDestinationAnonymousKey.Bool(val)
7586 }
7587
7588 // MessagingDestinationName returns an attribute KeyValue conforming to the
7589 // "messaging.destination.name" semantic conventions. It represents the message
7590 // destination name.
7591 func MessagingDestinationName(val string) attribute.KeyValue {
7592 return MessagingDestinationNameKey.String(val)
7593 }
7594
7595 // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
7596 // the "messaging.destination.partition.id" semantic conventions. It represents
7597 // the identifier of the partition messages are sent to or received from, unique
7598 // within the `messaging.destination.name`.
7599 func MessagingDestinationPartitionID(val string) attribute.KeyValue {
7600 return MessagingDestinationPartitionIDKey.String(val)
7601 }
7602
7603 // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
7604 // to the "messaging.destination.subscription.name" semantic conventions. It
7605 // represents the name of the destination subscription from which a message is
7606 // consumed.
7607 func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
7608 return MessagingDestinationSubscriptionNameKey.String(val)
7609 }
7610
7611 // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
7612 // "messaging.destination.template" semantic conventions. It represents the low
7613 // cardinality representation of the messaging destination name.
7614 func MessagingDestinationTemplate(val string) attribute.KeyValue {
7615 return MessagingDestinationTemplateKey.String(val)
7616 }
7617
7618 // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
7619 // "messaging.destination.temporary" semantic conventions. It represents a
7620 // boolean that is true if the message destination is temporary and might not
7621 // exist anymore after messages are processed.
7622 func MessagingDestinationTemporary(val bool) attribute.KeyValue {
7623 return MessagingDestinationTemporaryKey.Bool(val)
7624 }
7625
7626 // MessagingEventhubsMessageEnqueuedTime returns an attribute KeyValue conforming
7627 // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
7628 // represents the UTC epoch seconds at which the message has been accepted and
7629 // stored in the entity.
7630 func MessagingEventhubsMessageEnqueuedTime(val int) attribute.KeyValue {
7631 return MessagingEventhubsMessageEnqueuedTimeKey.Int(val)
7632 }
7633
7634 // MessagingGCPPubsubMessageAckDeadline returns an attribute KeyValue conforming
7635 // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
7636 // represents the ack deadline in seconds set for the modify ack deadline
7637 // request.
7638 func MessagingGCPPubsubMessageAckDeadline(val int) attribute.KeyValue {
7639 return MessagingGCPPubsubMessageAckDeadlineKey.Int(val)
7640 }
7641
7642 // MessagingGCPPubsubMessageAckID returns an attribute KeyValue conforming to the
7643 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
7644 // ack id for a given message.
7645 func MessagingGCPPubsubMessageAckID(val string) attribute.KeyValue {
7646 return MessagingGCPPubsubMessageAckIDKey.String(val)
7647 }
7648
7649 // MessagingGCPPubsubMessageDeliveryAttempt returns an attribute KeyValue
7650 // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
7651 // conventions. It represents the delivery attempt for a given message.
7652 func MessagingGCPPubsubMessageDeliveryAttempt(val int) attribute.KeyValue {
7653 return MessagingGCPPubsubMessageDeliveryAttemptKey.Int(val)
7654 }
7655
7656 // MessagingGCPPubsubMessageOrderingKey returns an attribute KeyValue conforming
7657 // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
7658 // represents the ordering key for a given message. If the attribute is not
7659 // present, the message does not have an ordering key.
7660 func MessagingGCPPubsubMessageOrderingKey(val string) attribute.KeyValue {
7661 return MessagingGCPPubsubMessageOrderingKeyKey.String(val)
7662 }
7663
7664 // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
7665 // "messaging.kafka.message.key" semantic conventions. It represents the message
7666 // keys in Kafka are used for grouping alike messages to ensure they're processed
7667 // on the same partition. They differ from `messaging.message.id` in that they're
7668 // not unique. If the key is `null`, the attribute MUST NOT be set.
7669 func MessagingKafkaMessageKey(val string) attribute.KeyValue {
7670 return MessagingKafkaMessageKeyKey.String(val)
7671 }
7672
7673 // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
7674 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
7675 // boolean that is true if the message is a tombstone.
7676 func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
7677 return MessagingKafkaMessageTombstoneKey.Bool(val)
7678 }
7679
7680 // MessagingKafkaOffset returns an attribute KeyValue conforming to the
7681 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
7682 // record in the corresponding Kafka partition.
7683 func MessagingKafkaOffset(val int) attribute.KeyValue {
7684 return MessagingKafkaOffsetKey.Int(val)
7685 }
7686
7687 // MessagingMessageBodySize returns an attribute KeyValue conforming to the
7688 // "messaging.message.body.size" semantic conventions. It represents the size of
7689 // the message body in bytes.
7690 func MessagingMessageBodySize(val int) attribute.KeyValue {
7691 return MessagingMessageBodySizeKey.Int(val)
7692 }
7693
7694 // MessagingMessageConversationID returns an attribute KeyValue conforming to the
7695 // "messaging.message.conversation_id" semantic conventions. It represents the
7696 // conversation ID identifying the conversation to which the message belongs,
7697 // represented as a string. Sometimes called "Correlation ID".
7698 func MessagingMessageConversationID(val string) attribute.KeyValue {
7699 return MessagingMessageConversationIDKey.String(val)
7700 }
7701
7702 // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
7703 // "messaging.message.envelope.size" semantic conventions. It represents the size
7704 // of the message body and metadata in bytes.
7705 func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
7706 return MessagingMessageEnvelopeSizeKey.Int(val)
7707 }
7708
7709 // MessagingMessageID returns an attribute KeyValue conforming to the
7710 // "messaging.message.id" semantic conventions. It represents a value used by the
7711 // messaging system as an identifier for the message, represented as a string.
7712 func MessagingMessageID(val string) attribute.KeyValue {
7713 return MessagingMessageIDKey.String(val)
7714 }
7715
7716 // MessagingOperationName returns an attribute KeyValue conforming to the
7717 // "messaging.operation.name" semantic conventions. It represents the
7718 // system-specific name of the messaging operation.
7719 func MessagingOperationName(val string) attribute.KeyValue {
7720 return MessagingOperationNameKey.String(val)
7721 }
7722
7723 // MessagingRabbitmqDestinationRoutingKey returns an attribute KeyValue
7724 // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
7725 // conventions. It represents the rabbitMQ message routing key.
7726 func MessagingRabbitmqDestinationRoutingKey(val string) attribute.KeyValue {
7727 return MessagingRabbitmqDestinationRoutingKeyKey.String(val)
7728 }
7729
7730 // MessagingRabbitmqMessageDeliveryTag returns an attribute KeyValue conforming
7731 // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
7732 // represents the rabbitMQ message delivery tag.
7733 func MessagingRabbitmqMessageDeliveryTag(val int) attribute.KeyValue {
7734 return MessagingRabbitmqMessageDeliveryTagKey.Int(val)
7735 }
7736
7737 // MessagingRocketmqMessageDelayTimeLevel returns an attribute KeyValue
7738 // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
7739 // conventions. It represents the delay time level for delay message, which
7740 // determines the message delay time.
7741 func MessagingRocketmqMessageDelayTimeLevel(val int) attribute.KeyValue {
7742 return MessagingRocketmqMessageDelayTimeLevelKey.Int(val)
7743 }
7744
7745 // MessagingRocketmqMessageDeliveryTimestamp returns an attribute KeyValue
7746 // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
7747 // conventions. It represents the timestamp in milliseconds that the delay
7748 // message is expected to be delivered to consumer.
7749 func MessagingRocketmqMessageDeliveryTimestamp(val int) attribute.KeyValue {
7750 return MessagingRocketmqMessageDeliveryTimestampKey.Int(val)
7751 }
7752
7753 // MessagingRocketmqMessageGroup returns an attribute KeyValue conforming to the
7754 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
7755 // is essential for FIFO message. Messages that belong to the same message group
7756 // are always processed one by one within the same consumer group.
7757 func MessagingRocketmqMessageGroup(val string) attribute.KeyValue {
7758 return MessagingRocketmqMessageGroupKey.String(val)
7759 }
7760
7761 // MessagingRocketmqMessageKeys returns an attribute KeyValue conforming to the
7762 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
7763 // key(s) of message, another way to mark message besides message id.
7764 func MessagingRocketmqMessageKeys(val ...string) attribute.KeyValue {
7765 return MessagingRocketmqMessageKeysKey.StringSlice(val)
7766 }
7767
7768 // MessagingRocketmqMessageTag returns an attribute KeyValue conforming to the
7769 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
7770 // secondary classifier of message besides topic.
7771 func MessagingRocketmqMessageTag(val string) attribute.KeyValue {
7772 return MessagingRocketmqMessageTagKey.String(val)
7773 }
7774
7775 // MessagingRocketmqNamespace returns an attribute KeyValue conforming to the
7776 // "messaging.rocketmq.namespace" semantic conventions. It represents the
7777 // namespace of RocketMQ resources, resources in different namespaces are
7778 // individual.
7779 func MessagingRocketmqNamespace(val string) attribute.KeyValue {
7780 return MessagingRocketmqNamespaceKey.String(val)
7781 }
7782
7783 // MessagingServicebusMessageDeliveryCount returns an attribute KeyValue
7784 // conforming to the "messaging.servicebus.message.delivery_count" semantic
7785 // conventions. It represents the number of deliveries that have been attempted
7786 // for this message.
7787 func MessagingServicebusMessageDeliveryCount(val int) attribute.KeyValue {
7788 return MessagingServicebusMessageDeliveryCountKey.Int(val)
7789 }
7790
7791 // MessagingServicebusMessageEnqueuedTime returns an attribute KeyValue
7792 // conforming to the "messaging.servicebus.message.enqueued_time" semantic
7793 // conventions. It represents the UTC epoch seconds at which the message has been
7794 // accepted and stored in the entity.
7795 func MessagingServicebusMessageEnqueuedTime(val int) attribute.KeyValue {
7796 return MessagingServicebusMessageEnqueuedTimeKey.Int(val)
7797 }
7798
7799 // Enum values for messaging.operation.type
7800 var (
7801 // A message is created. "Create" spans always refer to a single message and are
7802 // used to provide a unique creation context for messages in batch sending
7803 // scenarios.
7804 //
7805 // Stability: development
7806 MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
7807 // One or more messages are provided for sending to an intermediary. If a single
7808 // message is sent, the context of the "Send" span can be used as the creation
7809 // context and no "Create" span needs to be created.
7810 //
7811 // Stability: development
7812 MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
7813 // One or more messages are requested by a consumer. This operation refers to
7814 // pull-based scenarios, where consumers explicitly call methods of messaging
7815 // SDKs to receive messages.
7816 //
7817 // Stability: development
7818 MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
7819 // One or more messages are processed by a consumer.
7820 //
7821 // Stability: development
7822 MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
7823 // One or more messages are settled.
7824 //
7825 // Stability: development
7826 MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
7827 // Deprecated: Replaced by `process`.
7828 MessagingOperationTypeDeliver = MessagingOperationTypeKey.String("deliver")
7829 // Deprecated: Replaced by `send`.
7830 MessagingOperationTypePublish = MessagingOperationTypeKey.String("publish")
7831 )
7832
7833 // Enum values for messaging.rocketmq.consumption_model
7834 var (
7835 // Clustering consumption model
7836 // Stability: development
7837 MessagingRocketmqConsumptionModelClustering = MessagingRocketmqConsumptionModelKey.String("clustering")
7838 // Broadcasting consumption model
7839 // Stability: development
7840 MessagingRocketmqConsumptionModelBroadcasting = MessagingRocketmqConsumptionModelKey.String("broadcasting")
7841 )
7842
7843 // Enum values for messaging.rocketmq.message.type
7844 var (
7845 // Normal message
7846 // Stability: development
7847 MessagingRocketmqMessageTypeNormal = MessagingRocketmqMessageTypeKey.String("normal")
7848 // FIFO message
7849 // Stability: development
7850 MessagingRocketmqMessageTypeFifo = MessagingRocketmqMessageTypeKey.String("fifo")
7851 // Delay message
7852 // Stability: development
7853 MessagingRocketmqMessageTypeDelay = MessagingRocketmqMessageTypeKey.String("delay")
7854 // Transaction message
7855 // Stability: development
7856 MessagingRocketmqMessageTypeTransaction = MessagingRocketmqMessageTypeKey.String("transaction")
7857 )
7858
7859 // Enum values for messaging.servicebus.disposition_status
7860 var (
7861 // Message is completed
7862 // Stability: development
7863 MessagingServicebusDispositionStatusComplete = MessagingServicebusDispositionStatusKey.String("complete")
7864 // Message is abandoned
7865 // Stability: development
7866 MessagingServicebusDispositionStatusAbandon = MessagingServicebusDispositionStatusKey.String("abandon")
7867 // Message is sent to dead letter queue
7868 // Stability: development
7869 MessagingServicebusDispositionStatusDeadLetter = MessagingServicebusDispositionStatusKey.String("dead_letter")
7870 // Message is deferred
7871 // Stability: development
7872 MessagingServicebusDispositionStatusDefer = MessagingServicebusDispositionStatusKey.String("defer")
7873 )
7874
7875 // Enum values for messaging.system
7876 var (
7877 // Apache ActiveMQ
7878 // Stability: development
7879 MessagingSystemActivemq = MessagingSystemKey.String("activemq")
7880 // Amazon Simple Queue Service (SQS)
7881 // Stability: development
7882 MessagingSystemAWSSqs = MessagingSystemKey.String("aws_sqs")
7883 // Azure Event Grid
7884 // Stability: development
7885 MessagingSystemEventgrid = MessagingSystemKey.String("eventgrid")
7886 // Azure Event Hubs
7887 // Stability: development
7888 MessagingSystemEventhubs = MessagingSystemKey.String("eventhubs")
7889 // Azure Service Bus
7890 // Stability: development
7891 MessagingSystemServicebus = MessagingSystemKey.String("servicebus")
7892 // Google Cloud Pub/Sub
7893 // Stability: development
7894 MessagingSystemGCPPubsub = MessagingSystemKey.String("gcp_pubsub")
7895 // Java Message Service
7896 // Stability: development
7897 MessagingSystemJms = MessagingSystemKey.String("jms")
7898 // Apache Kafka
7899 // Stability: development
7900 MessagingSystemKafka = MessagingSystemKey.String("kafka")
7901 // RabbitMQ
7902 // Stability: development
7903 MessagingSystemRabbitmq = MessagingSystemKey.String("rabbitmq")
7904 // Apache RocketMQ
7905 // Stability: development
7906 MessagingSystemRocketmq = MessagingSystemKey.String("rocketmq")
7907 // Apache Pulsar
7908 // Stability: development
7909 MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
7910 )
7911
7912 // Namespace: network
7913 const (
7914 // NetworkCarrierIccKey is the attribute Key conforming to the
7915 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
7916 // alpha-2 2-character country code associated with the mobile carrier network.
7917 //
7918 // Type: string
7919 // RequirementLevel: Recommended
7920 // Stability: Development
7921 //
7922 // Examples: DE
7923 NetworkCarrierIccKey = attribute.Key("network.carrier.icc")
7924
7925 // NetworkCarrierMccKey is the attribute Key conforming to the
7926 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
7927 // country code.
7928 //
7929 // Type: string
7930 // RequirementLevel: Recommended
7931 // Stability: Development
7932 //
7933 // Examples: 310
7934 NetworkCarrierMccKey = attribute.Key("network.carrier.mcc")
7935
7936 // NetworkCarrierMncKey is the attribute Key conforming to the
7937 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
7938 // network code.
7939 //
7940 // Type: string
7941 // RequirementLevel: Recommended
7942 // Stability: Development
7943 //
7944 // Examples: 001
7945 NetworkCarrierMncKey = attribute.Key("network.carrier.mnc")
7946
7947 // NetworkCarrierNameKey is the attribute Key conforming to the
7948 // "network.carrier.name" semantic conventions. It represents the name of the
7949 // mobile carrier.
7950 //
7951 // Type: string
7952 // RequirementLevel: Recommended
7953 // Stability: Development
7954 //
7955 // Examples: sprint
7956 NetworkCarrierNameKey = attribute.Key("network.carrier.name")
7957
7958 // NetworkConnectionStateKey is the attribute Key conforming to the
7959 // "network.connection.state" semantic conventions. It represents the state of
7960 // network connection.
7961 //
7962 // Type: Enum
7963 // RequirementLevel: Recommended
7964 // Stability: Development
7965 //
7966 // Examples: "close_wait"
7967 // Note: Connection states are defined as part of the [rfc9293]
7968 //
7969 // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2
7970 NetworkConnectionStateKey = attribute.Key("network.connection.state")
7971
7972 // NetworkConnectionSubtypeKey is the attribute Key conforming to the
7973 // "network.connection.subtype" semantic conventions. It represents the this
7974 // describes more details regarding the connection.type. It may be the type of
7975 // cell technology connection, but it could be used for describing details about
7976 // a wifi connection.
7977 //
7978 // Type: Enum
7979 // RequirementLevel: Recommended
7980 // Stability: Development
7981 //
7982 // Examples: LTE
7983 NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
7984
7985 // NetworkConnectionTypeKey is the attribute Key conforming to the
7986 // "network.connection.type" semantic conventions. It represents the internet
7987 // connection type.
7988 //
7989 // Type: Enum
7990 // RequirementLevel: Recommended
7991 // Stability: Development
7992 //
7993 // Examples: wifi
7994 NetworkConnectionTypeKey = attribute.Key("network.connection.type")
7995
7996 // NetworkInterfaceNameKey is the attribute Key conforming to the
7997 // "network.interface.name" semantic conventions. It represents the network
7998 // interface name.
7999 //
8000 // Type: string
8001 // RequirementLevel: Recommended
8002 // Stability: Development
8003 //
8004 // Examples: "lo", "eth0"
8005 NetworkInterfaceNameKey = attribute.Key("network.interface.name")
8006
8007 // NetworkIoDirectionKey is the attribute Key conforming to the
8008 // "network.io.direction" semantic conventions. It represents the network IO
8009 // operation direction.
8010 //
8011 // Type: Enum
8012 // RequirementLevel: Recommended
8013 // Stability: Development
8014 //
8015 // Examples: "transmit"
8016 NetworkIoDirectionKey = attribute.Key("network.io.direction")
8017
8018 // NetworkLocalAddressKey is the attribute Key conforming to the
8019 // "network.local.address" semantic conventions. It represents the local address
8020 // of the network connection - IP address or Unix domain socket name.
8021 //
8022 // Type: string
8023 // RequirementLevel: Recommended
8024 // Stability: Stable
8025 //
8026 // Examples: "10.1.2.80", "/tmp/my.sock"
8027 NetworkLocalAddressKey = attribute.Key("network.local.address")
8028
8029 // NetworkLocalPortKey is the attribute Key conforming to the
8030 // "network.local.port" semantic conventions. It represents the local port
8031 // number of the network connection.
8032 //
8033 // Type: int
8034 // RequirementLevel: Recommended
8035 // Stability: Stable
8036 //
8037 // Examples: 65123
8038 NetworkLocalPortKey = attribute.Key("network.local.port")
8039
8040 // NetworkPeerAddressKey is the attribute Key conforming to the
8041 // "network.peer.address" semantic conventions. It represents the peer address
8042 // of the network connection - IP address or Unix domain socket name.
8043 //
8044 // Type: string
8045 // RequirementLevel: Recommended
8046 // Stability: Stable
8047 //
8048 // Examples: "10.1.2.80", "/tmp/my.sock"
8049 NetworkPeerAddressKey = attribute.Key("network.peer.address")
8050
8051 // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
8052 // semantic conventions. It represents the peer port number of the network
8053 // connection.
8054 //
8055 // Type: int
8056 // RequirementLevel: Recommended
8057 // Stability: Stable
8058 //
8059 // Examples: 65123
8060 NetworkPeerPortKey = attribute.Key("network.peer.port")
8061
8062 // NetworkProtocolNameKey is the attribute Key conforming to the
8063 // "network.protocol.name" semantic conventions. It represents the
8064 // [OSI application layer] or non-OSI equivalent.
8065 //
8066 // Type: string
8067 // RequirementLevel: Recommended
8068 // Stability: Stable
8069 //
8070 // Examples: "amqp", "http", "mqtt"
8071 // Note: The value SHOULD be normalized to lowercase.
8072 //
8073 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
8074 NetworkProtocolNameKey = attribute.Key("network.protocol.name")
8075
8076 // NetworkProtocolVersionKey is the attribute Key conforming to the
8077 // "network.protocol.version" semantic conventions. It represents the actual
8078 // version of the protocol used for network communication.
8079 //
8080 // Type: string
8081 // RequirementLevel: Recommended
8082 // Stability: Stable
8083 //
8084 // Examples: "1.1", "2"
8085 // Note: If protocol version is subject to negotiation (for example using [ALPN]
8086 // ), this attribute SHOULD be set to the negotiated version. If the actual
8087 // protocol version is not known, this attribute SHOULD NOT be set.
8088 //
8089 // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
8090 NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
8091
8092 // NetworkTransportKey is the attribute Key conforming to the
8093 // "network.transport" semantic conventions. It represents the
8094 // [OSI transport layer] or [inter-process communication method].
8095 //
8096 // Type: Enum
8097 // RequirementLevel: Recommended
8098 // Stability: Stable
8099 //
8100 // Examples: "tcp", "udp"
8101 // Note: The value SHOULD be normalized to lowercase.
8102 //
8103 // Consider always setting the transport when setting a port number, since
8104 // a port number is ambiguous without knowing the transport. For example
8105 // different processes could be listening on TCP port 12345 and UDP port 12345.
8106 //
8107 // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer
8108 // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
8109 NetworkTransportKey = attribute.Key("network.transport")
8110
8111 // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
8112 // conventions. It represents the [OSI network layer] or non-OSI equivalent.
8113 //
8114 // Type: Enum
8115 // RequirementLevel: Recommended
8116 // Stability: Stable
8117 //
8118 // Examples: "ipv4", "ipv6"
8119 // Note: The value SHOULD be normalized to lowercase.
8120 //
8121 // [OSI network layer]: https://wikipedia.org/wiki/Network_layer
8122 NetworkTypeKey = attribute.Key("network.type")
8123 )
8124
8125 // NetworkCarrierIcc returns an attribute KeyValue conforming to the
8126 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
8127 // alpha-2 2-character country code associated with the mobile carrier network.
8128 func NetworkCarrierIcc(val string) attribute.KeyValue {
8129 return NetworkCarrierIccKey.String(val)
8130 }
8131
8132 // NetworkCarrierMcc returns an attribute KeyValue conforming to the
8133 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
8134 // country code.
8135 func NetworkCarrierMcc(val string) attribute.KeyValue {
8136 return NetworkCarrierMccKey.String(val)
8137 }
8138
8139 // NetworkCarrierMnc returns an attribute KeyValue conforming to the
8140 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
8141 // network code.
8142 func NetworkCarrierMnc(val string) attribute.KeyValue {
8143 return NetworkCarrierMncKey.String(val)
8144 }
8145
8146 // NetworkCarrierName returns an attribute KeyValue conforming to the
8147 // "network.carrier.name" semantic conventions. It represents the name of the
8148 // mobile carrier.
8149 func NetworkCarrierName(val string) attribute.KeyValue {
8150 return NetworkCarrierNameKey.String(val)
8151 }
8152
8153 // NetworkInterfaceName returns an attribute KeyValue conforming to the
8154 // "network.interface.name" semantic conventions. It represents the network
8155 // interface name.
8156 func NetworkInterfaceName(val string) attribute.KeyValue {
8157 return NetworkInterfaceNameKey.String(val)
8158 }
8159
8160 // NetworkLocalAddress returns an attribute KeyValue conforming to the
8161 // "network.local.address" semantic conventions. It represents the local address
8162 // of the network connection - IP address or Unix domain socket name.
8163 func NetworkLocalAddress(val string) attribute.KeyValue {
8164 return NetworkLocalAddressKey.String(val)
8165 }
8166
8167 // NetworkLocalPort returns an attribute KeyValue conforming to the
8168 // "network.local.port" semantic conventions. It represents the local port number
8169 // of the network connection.
8170 func NetworkLocalPort(val int) attribute.KeyValue {
8171 return NetworkLocalPortKey.Int(val)
8172 }
8173
8174 // NetworkPeerAddress returns an attribute KeyValue conforming to the
8175 // "network.peer.address" semantic conventions. It represents the peer address of
8176 // the network connection - IP address or Unix domain socket name.
8177 func NetworkPeerAddress(val string) attribute.KeyValue {
8178 return NetworkPeerAddressKey.String(val)
8179 }
8180
8181 // NetworkPeerPort returns an attribute KeyValue conforming to the
8182 // "network.peer.port" semantic conventions. It represents the peer port number
8183 // of the network connection.
8184 func NetworkPeerPort(val int) attribute.KeyValue {
8185 return NetworkPeerPortKey.Int(val)
8186 }
8187
8188 // NetworkProtocolName returns an attribute KeyValue conforming to the
8189 // "network.protocol.name" semantic conventions. It represents the
8190 // [OSI application layer] or non-OSI equivalent.
8191 //
8192 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
8193 func NetworkProtocolName(val string) attribute.KeyValue {
8194 return NetworkProtocolNameKey.String(val)
8195 }
8196
8197 // NetworkProtocolVersion returns an attribute KeyValue conforming to the
8198 // "network.protocol.version" semantic conventions. It represents the actual
8199 // version of the protocol used for network communication.
8200 func NetworkProtocolVersion(val string) attribute.KeyValue {
8201 return NetworkProtocolVersionKey.String(val)
8202 }
8203
8204 // Enum values for network.connection.state
8205 var (
8206 // closed
8207 // Stability: development
8208 NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed")
8209 // close_wait
8210 // Stability: development
8211 NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait")
8212 // closing
8213 // Stability: development
8214 NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing")
8215 // established
8216 // Stability: development
8217 NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established")
8218 // fin_wait_1
8219 // Stability: development
8220 NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1")
8221 // fin_wait_2
8222 // Stability: development
8223 NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2")
8224 // last_ack
8225 // Stability: development
8226 NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack")
8227 // listen
8228 // Stability: development
8229 NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen")
8230 // syn_received
8231 // Stability: development
8232 NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received")
8233 // syn_sent
8234 // Stability: development
8235 NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent")
8236 // time_wait
8237 // Stability: development
8238 NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait")
8239 )
8240
8241 // Enum values for network.connection.subtype
8242 var (
8243 // GPRS
8244 // Stability: development
8245 NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
8246 // EDGE
8247 // Stability: development
8248 NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
8249 // UMTS
8250 // Stability: development
8251 NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
8252 // CDMA
8253 // Stability: development
8254 NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
8255 // EVDO Rel. 0
8256 // Stability: development
8257 NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
8258 // EVDO Rev. A
8259 // Stability: development
8260 NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
8261 // CDMA2000 1XRTT
8262 // Stability: development
8263 NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
8264 // HSDPA
8265 // Stability: development
8266 NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
8267 // HSUPA
8268 // Stability: development
8269 NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
8270 // HSPA
8271 // Stability: development
8272 NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
8273 // IDEN
8274 // Stability: development
8275 NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
8276 // EVDO Rev. B
8277 // Stability: development
8278 NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
8279 // LTE
8280 // Stability: development
8281 NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
8282 // EHRPD
8283 // Stability: development
8284 NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
8285 // HSPAP
8286 // Stability: development
8287 NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
8288 // GSM
8289 // Stability: development
8290 NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
8291 // TD-SCDMA
8292 // Stability: development
8293 NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
8294 // IWLAN
8295 // Stability: development
8296 NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
8297 // 5G NR (New Radio)
8298 // Stability: development
8299 NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
8300 // 5G NRNSA (New Radio Non-Standalone)
8301 // Stability: development
8302 NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
8303 // LTE CA
8304 // Stability: development
8305 NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
8306 )
8307
8308 // Enum values for network.connection.type
8309 var (
8310 // wifi
8311 // Stability: development
8312 NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
8313 // wired
8314 // Stability: development
8315 NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
8316 // cell
8317 // Stability: development
8318 NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
8319 // unavailable
8320 // Stability: development
8321 NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
8322 // unknown
8323 // Stability: development
8324 NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
8325 )
8326
8327 // Enum values for network.io.direction
8328 var (
8329 // transmit
8330 // Stability: development
8331 NetworkIoDirectionTransmit = NetworkIoDirectionKey.String("transmit")
8332 // receive
8333 // Stability: development
8334 NetworkIoDirectionReceive = NetworkIoDirectionKey.String("receive")
8335 )
8336
8337 // Enum values for network.transport
8338 var (
8339 // TCP
8340 // Stability: stable
8341 NetworkTransportTCP = NetworkTransportKey.String("tcp")
8342 // UDP
8343 // Stability: stable
8344 NetworkTransportUDP = NetworkTransportKey.String("udp")
8345 // Named or anonymous pipe.
8346 // Stability: stable
8347 NetworkTransportPipe = NetworkTransportKey.String("pipe")
8348 // Unix domain socket
8349 // Stability: stable
8350 NetworkTransportUnix = NetworkTransportKey.String("unix")
8351 // QUIC
8352 // Stability: development
8353 NetworkTransportQUIC = NetworkTransportKey.String("quic")
8354 )
8355
8356 // Enum values for network.type
8357 var (
8358 // IPv4
8359 // Stability: stable
8360 NetworkTypeIpv4 = NetworkTypeKey.String("ipv4")
8361 // IPv6
8362 // Stability: stable
8363 NetworkTypeIpv6 = NetworkTypeKey.String("ipv6")
8364 )
8365
8366 // Namespace: oci
8367 const (
8368 // OciManifestDigestKey is the attribute Key conforming to the
8369 // "oci.manifest.digest" semantic conventions. It represents the digest of the
8370 // OCI image manifest. For container images specifically is the digest by which
8371 // the container image is known.
8372 //
8373 // Type: string
8374 // RequirementLevel: Recommended
8375 // Stability: Development
8376 //
8377 // Examples:
8378 // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
8379 // Note: Follows [OCI Image Manifest Specification], and specifically the
8380 // [Digest property].
8381 // An example can be found in [Example Image Manifest].
8382 //
8383 // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
8384 // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
8385 // [Example Image Manifest]: https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest
8386 OciManifestDigestKey = attribute.Key("oci.manifest.digest")
8387 )
8388
8389 // OciManifestDigest returns an attribute KeyValue conforming to the
8390 // "oci.manifest.digest" semantic conventions. It represents the digest of the
8391 // OCI image manifest. For container images specifically is the digest by which
8392 // the container image is known.
8393 func OciManifestDigest(val string) attribute.KeyValue {
8394 return OciManifestDigestKey.String(val)
8395 }
8396
8397 // Namespace: opentracing
8398 const (
8399 // OpentracingRefTypeKey is the attribute Key conforming to the
8400 // "opentracing.ref_type" semantic conventions. It represents the parent-child
8401 // Reference type.
8402 //
8403 // Type: Enum
8404 // RequirementLevel: Recommended
8405 // Stability: Development
8406 //
8407 // Examples:
8408 // Note: The causal relationship between a child Span and a parent Span.
8409 OpentracingRefTypeKey = attribute.Key("opentracing.ref_type")
8410 )
8411
8412 // Enum values for opentracing.ref_type
8413 var (
8414 // The parent Span depends on the child Span in some capacity
8415 // Stability: development
8416 OpentracingRefTypeChildOf = OpentracingRefTypeKey.String("child_of")
8417 // The parent Span doesn't depend in any way on the result of the child Span
8418 // Stability: development
8419 OpentracingRefTypeFollowsFrom = OpentracingRefTypeKey.String("follows_from")
8420 )
8421
8422 // Namespace: os
8423 const (
8424 // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
8425 // conventions. It represents the unique identifier for a particular build or
8426 // compilation of the operating system.
8427 //
8428 // Type: string
8429 // RequirementLevel: Recommended
8430 // Stability: Development
8431 //
8432 // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
8433 OSBuildIDKey = attribute.Key("os.build_id")
8434
8435 // OSDescriptionKey is the attribute Key conforming to the "os.description"
8436 // semantic conventions. It represents the human readable (not intended to be
8437 // parsed) OS version information, like e.g. reported by `ver` or
8438 // `lsb_release -a` commands.
8439 //
8440 // Type: string
8441 // RequirementLevel: Recommended
8442 // Stability: Development
8443 //
8444 // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
8445 OSDescriptionKey = attribute.Key("os.description")
8446
8447 // OSNameKey is the attribute Key conforming to the "os.name" semantic
8448 // conventions. It represents the human readable operating system name.
8449 //
8450 // Type: string
8451 // RequirementLevel: Recommended
8452 // Stability: Development
8453 //
8454 // Examples: "iOS", "Android", "Ubuntu"
8455 OSNameKey = attribute.Key("os.name")
8456
8457 // OSTypeKey is the attribute Key conforming to the "os.type" semantic
8458 // conventions. It represents the operating system type.
8459 //
8460 // Type: Enum
8461 // RequirementLevel: Recommended
8462 // Stability: Development
8463 //
8464 // Examples:
8465 OSTypeKey = attribute.Key("os.type")
8466
8467 // OSVersionKey is the attribute Key conforming to the "os.version" semantic
8468 // conventions. It represents the version string of the operating system as
8469 // defined in [Version Attributes].
8470 //
8471 // Type: string
8472 // RequirementLevel: Recommended
8473 // Stability: Development
8474 //
8475 // Examples: "14.2.1", "18.04.1"
8476 //
8477 // [Version Attributes]: /docs/resource/README.md#version-attributes
8478 OSVersionKey = attribute.Key("os.version")
8479 )
8480
8481 // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
8482 // semantic conventions. It represents the unique identifier for a particular
8483 // build or compilation of the operating system.
8484 func OSBuildID(val string) attribute.KeyValue {
8485 return OSBuildIDKey.String(val)
8486 }
8487
8488 // OSDescription returns an attribute KeyValue conforming to the "os.description"
8489 // semantic conventions. It represents the human readable (not intended to be
8490 // parsed) OS version information, like e.g. reported by `ver` or
8491 // `lsb_release -a` commands.
8492 func OSDescription(val string) attribute.KeyValue {
8493 return OSDescriptionKey.String(val)
8494 }
8495
8496 // OSName returns an attribute KeyValue conforming to the "os.name" semantic
8497 // conventions. It represents the human readable operating system name.
8498 func OSName(val string) attribute.KeyValue {
8499 return OSNameKey.String(val)
8500 }
8501
8502 // OSVersion returns an attribute KeyValue conforming to the "os.version"
8503 // semantic conventions. It represents the version string of the operating system
8504 // as defined in [Version Attributes].
8505 //
8506 // [Version Attributes]: /docs/resource/README.md#version-attributes
8507 func OSVersion(val string) attribute.KeyValue {
8508 return OSVersionKey.String(val)
8509 }
8510
8511 // Enum values for os.type
8512 var (
8513 // Microsoft Windows
8514 // Stability: development
8515 OSTypeWindows = OSTypeKey.String("windows")
8516 // Linux
8517 // Stability: development
8518 OSTypeLinux = OSTypeKey.String("linux")
8519 // Apple Darwin
8520 // Stability: development
8521 OSTypeDarwin = OSTypeKey.String("darwin")
8522 // FreeBSD
8523 // Stability: development
8524 OSTypeFreeBSD = OSTypeKey.String("freebsd")
8525 // NetBSD
8526 // Stability: development
8527 OSTypeNetBSD = OSTypeKey.String("netbsd")
8528 // OpenBSD
8529 // Stability: development
8530 OSTypeOpenBSD = OSTypeKey.String("openbsd")
8531 // DragonFly BSD
8532 // Stability: development
8533 OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
8534 // HP-UX (Hewlett Packard Unix)
8535 // Stability: development
8536 OSTypeHPUX = OSTypeKey.String("hpux")
8537 // AIX (Advanced Interactive eXecutive)
8538 // Stability: development
8539 OSTypeAIX = OSTypeKey.String("aix")
8540 // SunOS, Oracle Solaris
8541 // Stability: development
8542 OSTypeSolaris = OSTypeKey.String("solaris")
8543 // IBM z/OS
8544 // Stability: development
8545 OSTypeZOS = OSTypeKey.String("z_os")
8546 )
8547
8548 // Namespace: otel
8549 const (
8550 // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
8551 // semantic conventions. It represents the name of the instrumentation scope - (
8552 // `InstrumentationScope.Name` in OTLP).
8553 //
8554 // Type: string
8555 // RequirementLevel: Recommended
8556 // Stability: Stable
8557 //
8558 // Examples: "io.opentelemetry.contrib.mongodb"
8559 OTelScopeNameKey = attribute.Key("otel.scope.name")
8560
8561 // OTelScopeVersionKey is the attribute Key conforming to the
8562 // "otel.scope.version" semantic conventions. It represents the version of the
8563 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
8564 //
8565 // Type: string
8566 // RequirementLevel: Recommended
8567 // Stability: Stable
8568 //
8569 // Examples: "1.0.0"
8570 OTelScopeVersionKey = attribute.Key("otel.scope.version")
8571
8572 // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
8573 // semantic conventions. It represents the name of the code, either "OK" or
8574 // "ERROR". MUST NOT be set if the status code is UNSET.
8575 //
8576 // Type: Enum
8577 // RequirementLevel: Recommended
8578 // Stability: Stable
8579 //
8580 // Examples:
8581 OTelStatusCodeKey = attribute.Key("otel.status_code")
8582
8583 // OTelStatusDescriptionKey is the attribute Key conforming to the
8584 // "otel.status_description" semantic conventions. It represents the description
8585 // of the Status if it has a value, otherwise not set.
8586 //
8587 // Type: string
8588 // RequirementLevel: Recommended
8589 // Stability: Stable
8590 //
8591 // Examples: "resource not found"
8592 OTelStatusDescriptionKey = attribute.Key("otel.status_description")
8593 )
8594
8595 // OTelScopeName returns an attribute KeyValue conforming to the
8596 // "otel.scope.name" semantic conventions. It represents the name of the
8597 // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
8598 func OTelScopeName(val string) attribute.KeyValue {
8599 return OTelScopeNameKey.String(val)
8600 }
8601
8602 // OTelScopeVersion returns an attribute KeyValue conforming to the
8603 // "otel.scope.version" semantic conventions. It represents the version of the
8604 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
8605 func OTelScopeVersion(val string) attribute.KeyValue {
8606 return OTelScopeVersionKey.String(val)
8607 }
8608
8609 // OTelStatusDescription returns an attribute KeyValue conforming to the
8610 // "otel.status_description" semantic conventions. It represents the description
8611 // of the Status if it has a value, otherwise not set.
8612 func OTelStatusDescription(val string) attribute.KeyValue {
8613 return OTelStatusDescriptionKey.String(val)
8614 }
8615
8616 // Enum values for otel.status_code
8617 var (
8618 // The operation has been validated by an Application developer or Operator to
8619 // have completed successfully.
8620 // Stability: stable
8621 OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
8622 // The operation contains an error.
8623 // Stability: stable
8624 OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
8625 )
8626
8627 // Namespace: peer
8628 const (
8629 // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic
8630 // conventions. It represents the [`service.name`] of the remote service. SHOULD
8631 // be equal to the actual `service.name` resource attribute of the remote
8632 // service if any.
8633 //
8634 // Type: string
8635 // RequirementLevel: Recommended
8636 // Stability: Development
8637 //
8638 // Examples: AuthTokenCache
8639 //
8640 // [`service.name`]: /docs/resource/README.md#service
8641 PeerServiceKey = attribute.Key("peer.service")
8642 )
8643
8644 // PeerService returns an attribute KeyValue conforming to the "peer.service"
8645 // semantic conventions. It represents the [`service.name`] of the remote
8646 // service. SHOULD be equal to the actual `service.name` resource attribute of
8647 // the remote service if any.
8648 //
8649 // [`service.name`]: /docs/resource/README.md#service
8650 func PeerService(val string) attribute.KeyValue {
8651 return PeerServiceKey.String(val)
8652 }
8653
8654 // Namespace: process
8655 const (
8656 // ProcessArgsCountKey is the attribute Key conforming to the
8657 // "process.args_count" semantic conventions. It represents the length of the
8658 // process.command_args array.
8659 //
8660 // Type: int
8661 // RequirementLevel: Recommended
8662 // Stability: Development
8663 //
8664 // Examples: 4
8665 // Note: This field can be useful for querying or performing bucket analysis on
8666 // how many arguments were provided to start a process. More arguments may be an
8667 // indication of suspicious activity.
8668 ProcessArgsCountKey = attribute.Key("process.args_count")
8669
8670 // ProcessCommandKey is the attribute Key conforming to the "process.command"
8671 // semantic conventions. It represents the command used to launch the process
8672 // (i.e. the command name). On Linux based systems, can be set to the zeroth
8673 // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
8674 // extracted from `GetCommandLineW`.
8675 //
8676 // Type: string
8677 // RequirementLevel: Recommended
8678 // Stability: Development
8679 //
8680 // Examples: "cmd/otelcol"
8681 ProcessCommandKey = attribute.Key("process.command")
8682
8683 // ProcessCommandArgsKey is the attribute Key conforming to the
8684 // "process.command_args" semantic conventions. It represents the all the
8685 // command arguments (including the command/executable itself) as received by
8686 // the process. On Linux-based systems (and some other Unixoid systems
8687 // supporting procfs), can be set according to the list of null-delimited
8688 // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
8689 // would be the full argv vector passed to `main`.
8690 //
8691 // Type: string[]
8692 // RequirementLevel: Recommended
8693 // Stability: Development
8694 //
8695 // Examples: "cmd/otecol", "--config=config.yaml"
8696 ProcessCommandArgsKey = attribute.Key("process.command_args")
8697
8698 // ProcessCommandLineKey is the attribute Key conforming to the
8699 // "process.command_line" semantic conventions. It represents the full command
8700 // used to launch the process as a single string representing the full command.
8701 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
8702 // you have to assemble it just for monitoring; use `process.command_args`
8703 // instead.
8704 //
8705 // Type: string
8706 // RequirementLevel: Recommended
8707 // Stability: Development
8708 //
8709 // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
8710 ProcessCommandLineKey = attribute.Key("process.command_line")
8711
8712 // ProcessContextSwitchTypeKey is the attribute Key conforming to the
8713 // "process.context_switch_type" semantic conventions. It represents the
8714 // specifies whether the context switches for this data point were voluntary or
8715 // involuntary.
8716 //
8717 // Type: Enum
8718 // RequirementLevel: Recommended
8719 // Stability: Development
8720 //
8721 // Examples:
8722 ProcessContextSwitchTypeKey = attribute.Key("process.context_switch_type")
8723
8724 // ProcessCreationTimeKey is the attribute Key conforming to the
8725 // "process.creation.time" semantic conventions. It represents the date and time
8726 // the process was created, in ISO 8601 format.
8727 //
8728 // Type: string
8729 // RequirementLevel: Recommended
8730 // Stability: Development
8731 //
8732 // Examples: "2023-11-21T09:25:34.853Z"
8733 ProcessCreationTimeKey = attribute.Key("process.creation.time")
8734
8735 // ProcessExecutableBuildIDGnuKey is the attribute Key conforming to the
8736 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
8737 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
8738 //
8739 // Type: string
8740 // RequirementLevel: Recommended
8741 // Stability: Development
8742 //
8743 // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
8744 ProcessExecutableBuildIDGnuKey = attribute.Key("process.executable.build_id.gnu")
8745
8746 // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the
8747 // "process.executable.build_id.go" semantic conventions. It represents the Go
8748 // build ID as retrieved by `go tool buildid <go executable>`.
8749 //
8750 // Type: string
8751 // RequirementLevel: Recommended
8752 // Stability: Development
8753 //
8754 // Examples:
8755 // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
8756 ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
8757
8758 // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the
8759 // "process.executable.build_id.htlhash" semantic conventions. It represents the
8760 // profiling specific build ID for executables. See the OTel specification for
8761 // Profiles for more information.
8762 //
8763 // Type: string
8764 // RequirementLevel: Recommended
8765 // Stability: Development
8766 //
8767 // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
8768 ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash")
8769
8770 // ProcessExecutableNameKey is the attribute Key conforming to the
8771 // "process.executable.name" semantic conventions. It represents the name of the
8772 // process executable. On Linux based systems, can be set to the `Name` in
8773 // `proc/[pid]/status`. On Windows, can be set to the base name of
8774 // `GetProcessImageFileNameW`.
8775 //
8776 // Type: string
8777 // RequirementLevel: Recommended
8778 // Stability: Development
8779 //
8780 // Examples: "otelcol"
8781 ProcessExecutableNameKey = attribute.Key("process.executable.name")
8782
8783 // ProcessExecutablePathKey is the attribute Key conforming to the
8784 // "process.executable.path" semantic conventions. It represents the full path
8785 // to the process executable. On Linux based systems, can be set to the target
8786 // of `proc/[pid]/exe`. On Windows, can be set to the result of
8787 // `GetProcessImageFileNameW`.
8788 //
8789 // Type: string
8790 // RequirementLevel: Recommended
8791 // Stability: Development
8792 //
8793 // Examples: "/usr/bin/cmd/otelcol"
8794 ProcessExecutablePathKey = attribute.Key("process.executable.path")
8795
8796 // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
8797 // semantic conventions. It represents the exit code of the process.
8798 //
8799 // Type: int
8800 // RequirementLevel: Recommended
8801 // Stability: Development
8802 //
8803 // Examples: 127
8804 ProcessExitCodeKey = attribute.Key("process.exit.code")
8805
8806 // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
8807 // semantic conventions. It represents the date and time the process exited, in
8808 // ISO 8601 format.
8809 //
8810 // Type: string
8811 // RequirementLevel: Recommended
8812 // Stability: Development
8813 //
8814 // Examples: "2023-11-21T09:26:12.315Z"
8815 ProcessExitTimeKey = attribute.Key("process.exit.time")
8816
8817 // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
8818 // "process.group_leader.pid" semantic conventions. It represents the PID of the
8819 // process's group leader. This is also the process group ID (PGID) of the
8820 // process.
8821 //
8822 // Type: int
8823 // RequirementLevel: Recommended
8824 // Stability: Development
8825 //
8826 // Examples: 23
8827 ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
8828
8829 // ProcessInteractiveKey is the attribute Key conforming to the
8830 // "process.interactive" semantic conventions. It represents the whether the
8831 // process is connected to an interactive shell.
8832 //
8833 // Type: boolean
8834 // RequirementLevel: Recommended
8835 // Stability: Development
8836 //
8837 // Examples:
8838 ProcessInteractiveKey = attribute.Key("process.interactive")
8839
8840 // ProcessLinuxCgroupKey is the attribute Key conforming to the
8841 // "process.linux.cgroup" semantic conventions. It represents the control group
8842 // associated with the process.
8843 //
8844 // Type: string
8845 // RequirementLevel: Recommended
8846 // Stability: Development
8847 //
8848 // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope",
8849 // "0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"
8850 // Note: Control groups (cgroups) are a kernel feature used to organize and
8851 // manage process resources. This attribute provides the path(s) to the
8852 // cgroup(s) associated with the process, which should match the contents of the
8853 // [/proc/[PID]/cgroup] file.
8854 //
8855 // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html
8856 ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup")
8857
8858 // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
8859 // semantic conventions. It represents the username of the user that owns the
8860 // process.
8861 //
8862 // Type: string
8863 // RequirementLevel: Recommended
8864 // Stability: Development
8865 //
8866 // Examples: "root"
8867 ProcessOwnerKey = attribute.Key("process.owner")
8868
8869 // ProcessPagingFaultTypeKey is the attribute Key conforming to the
8870 // "process.paging.fault_type" semantic conventions. It represents the type of
8871 // page fault for this data point. Type `major` is for major/hard page faults,
8872 // and `minor` is for minor/soft page faults.
8873 //
8874 // Type: Enum
8875 // RequirementLevel: Recommended
8876 // Stability: Development
8877 //
8878 // Examples:
8879 ProcessPagingFaultTypeKey = attribute.Key("process.paging.fault_type")
8880
8881 // ProcessParentPIDKey is the attribute Key conforming to the
8882 // "process.parent_pid" semantic conventions. It represents the parent Process
8883 // identifier (PPID).
8884 //
8885 // Type: int
8886 // RequirementLevel: Recommended
8887 // Stability: Development
8888 //
8889 // Examples: 111
8890 ProcessParentPIDKey = attribute.Key("process.parent_pid")
8891
8892 // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
8893 // conventions. It represents the process identifier (PID).
8894 //
8895 // Type: int
8896 // RequirementLevel: Recommended
8897 // Stability: Development
8898 //
8899 // Examples: 1234
8900 ProcessPIDKey = attribute.Key("process.pid")
8901
8902 // ProcessRealUserIDKey is the attribute Key conforming to the
8903 // "process.real_user.id" semantic conventions. It represents the real user ID
8904 // (RUID) of the process.
8905 //
8906 // Type: int
8907 // RequirementLevel: Recommended
8908 // Stability: Development
8909 //
8910 // Examples: 1000
8911 ProcessRealUserIDKey = attribute.Key("process.real_user.id")
8912
8913 // ProcessRealUserNameKey is the attribute Key conforming to the
8914 // "process.real_user.name" semantic conventions. It represents the username of
8915 // the real user of the process.
8916 //
8917 // Type: string
8918 // RequirementLevel: Recommended
8919 // Stability: Development
8920 //
8921 // Examples: "operator"
8922 ProcessRealUserNameKey = attribute.Key("process.real_user.name")
8923
8924 // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
8925 // "process.runtime.description" semantic conventions. It represents an
8926 // additional description about the runtime of the process, for example a
8927 // specific vendor customization of the runtime environment.
8928 //
8929 // Type: string
8930 // RequirementLevel: Recommended
8931 // Stability: Development
8932 //
8933 // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
8934 ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
8935
8936 // ProcessRuntimeNameKey is the attribute Key conforming to the
8937 // "process.runtime.name" semantic conventions. It represents the name of the
8938 // runtime of this process.
8939 //
8940 // Type: string
8941 // RequirementLevel: Recommended
8942 // Stability: Development
8943 //
8944 // Examples: "OpenJDK Runtime Environment"
8945 ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
8946
8947 // ProcessRuntimeVersionKey is the attribute Key conforming to the
8948 // "process.runtime.version" semantic conventions. It represents the version of
8949 // the runtime of this process, as returned by the runtime without modification.
8950 //
8951 // Type: string
8952 // RequirementLevel: Recommended
8953 // Stability: Development
8954 //
8955 // Examples: 14.0.2
8956 ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
8957
8958 // ProcessSavedUserIDKey is the attribute Key conforming to the
8959 // "process.saved_user.id" semantic conventions. It represents the saved user ID
8960 // (SUID) of the process.
8961 //
8962 // Type: int
8963 // RequirementLevel: Recommended
8964 // Stability: Development
8965 //
8966 // Examples: 1002
8967 ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
8968
8969 // ProcessSavedUserNameKey is the attribute Key conforming to the
8970 // "process.saved_user.name" semantic conventions. It represents the username of
8971 // the saved user.
8972 //
8973 // Type: string
8974 // RequirementLevel: Recommended
8975 // Stability: Development
8976 //
8977 // Examples: "operator"
8978 ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
8979
8980 // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
8981 // "process.session_leader.pid" semantic conventions. It represents the PID of
8982 // the process's session leader. This is also the session ID (SID) of the
8983 // process.
8984 //
8985 // Type: int
8986 // RequirementLevel: Recommended
8987 // Stability: Development
8988 //
8989 // Examples: 14
8990 ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
8991
8992 // ProcessTitleKey is the attribute Key conforming to the "process.title"
8993 // semantic conventions. It represents the process title (proctitle).
8994 //
8995 // Type: string
8996 // RequirementLevel: Recommended
8997 // Stability: Development
8998 //
8999 // Examples: "cat /etc/hostname", "xfce4-session", "bash"
9000 // Note: In many Unix-like systems, process title (proctitle), is the string
9001 // that represents the name or command line of a running process, displayed by
9002 // system monitoring tools like ps, top, and htop.
9003 ProcessTitleKey = attribute.Key("process.title")
9004
9005 // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
9006 // semantic conventions. It represents the effective user ID (EUID) of the
9007 // process.
9008 //
9009 // Type: int
9010 // RequirementLevel: Recommended
9011 // Stability: Development
9012 //
9013 // Examples: 1001
9014 ProcessUserIDKey = attribute.Key("process.user.id")
9015
9016 // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
9017 // semantic conventions. It represents the username of the effective user of the
9018 // process.
9019 //
9020 // Type: string
9021 // RequirementLevel: Recommended
9022 // Stability: Development
9023 //
9024 // Examples: "root"
9025 ProcessUserNameKey = attribute.Key("process.user.name")
9026
9027 // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
9028 // conventions. It represents the virtual process identifier.
9029 //
9030 // Type: int
9031 // RequirementLevel: Recommended
9032 // Stability: Development
9033 //
9034 // Examples: 12
9035 // Note: The process ID within a PID namespace. This is not necessarily unique
9036 // across all processes on the host but it is unique within the process
9037 // namespace that the process exists within.
9038 ProcessVpidKey = attribute.Key("process.vpid")
9039
9040 // ProcessWorkingDirectoryKey is the attribute Key conforming to the
9041 // "process.working_directory" semantic conventions. It represents the working
9042 // directory of the process.
9043 //
9044 // Type: string
9045 // RequirementLevel: Recommended
9046 // Stability: Development
9047 //
9048 // Examples: "/root"
9049 ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
9050 )
9051
9052 // ProcessArgsCount returns an attribute KeyValue conforming to the
9053 // "process.args_count" semantic conventions. It represents the length of the
9054 // process.command_args array.
9055 func ProcessArgsCount(val int) attribute.KeyValue {
9056 return ProcessArgsCountKey.Int(val)
9057 }
9058
9059 // ProcessCommand returns an attribute KeyValue conforming to the
9060 // "process.command" semantic conventions. It represents the command used to
9061 // launch the process (i.e. the command name). On Linux based systems, can be set
9062 // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
9063 // first parameter extracted from `GetCommandLineW`.
9064 func ProcessCommand(val string) attribute.KeyValue {
9065 return ProcessCommandKey.String(val)
9066 }
9067
9068 // ProcessCommandArgs returns an attribute KeyValue conforming to the
9069 // "process.command_args" semantic conventions. It represents the all the command
9070 // arguments (including the command/executable itself) as received by the
9071 // process. On Linux-based systems (and some other Unixoid systems supporting
9072 // procfs), can be set according to the list of null-delimited strings extracted
9073 // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
9074 // argv vector passed to `main`.
9075 func ProcessCommandArgs(val ...string) attribute.KeyValue {
9076 return ProcessCommandArgsKey.StringSlice(val)
9077 }
9078
9079 // ProcessCommandLine returns an attribute KeyValue conforming to the
9080 // "process.command_line" semantic conventions. It represents the full command
9081 // used to launch the process as a single string representing the full command.
9082 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
9083 // you have to assemble it just for monitoring; use `process.command_args`
9084 // instead.
9085 func ProcessCommandLine(val string) attribute.KeyValue {
9086 return ProcessCommandLineKey.String(val)
9087 }
9088
9089 // ProcessCreationTime returns an attribute KeyValue conforming to the
9090 // "process.creation.time" semantic conventions. It represents the date and time
9091 // the process was created, in ISO 8601 format.
9092 func ProcessCreationTime(val string) attribute.KeyValue {
9093 return ProcessCreationTimeKey.String(val)
9094 }
9095
9096 // ProcessExecutableBuildIDGnu returns an attribute KeyValue conforming to the
9097 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
9098 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
9099 func ProcessExecutableBuildIDGnu(val string) attribute.KeyValue {
9100 return ProcessExecutableBuildIDGnuKey.String(val)
9101 }
9102
9103 // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the
9104 // "process.executable.build_id.go" semantic conventions. It represents the Go
9105 // build ID as retrieved by `go tool buildid <go executable>`.
9106 func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
9107 return ProcessExecutableBuildIDGoKey.String(val)
9108 }
9109
9110 // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to
9111 // the "process.executable.build_id.htlhash" semantic conventions. It represents
9112 // the profiling specific build ID for executables. See the OTel specification
9113 // for Profiles for more information.
9114 func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue {
9115 return ProcessExecutableBuildIDHtlhashKey.String(val)
9116 }
9117
9118 // ProcessExecutableName returns an attribute KeyValue conforming to the
9119 // "process.executable.name" semantic conventions. It represents the name of the
9120 // process executable. On Linux based systems, can be set to the `Name` in
9121 // `proc/[pid]/status`. On Windows, can be set to the base name of
9122 // `GetProcessImageFileNameW`.
9123 func ProcessExecutableName(val string) attribute.KeyValue {
9124 return ProcessExecutableNameKey.String(val)
9125 }
9126
9127 // ProcessExecutablePath returns an attribute KeyValue conforming to the
9128 // "process.executable.path" semantic conventions. It represents the full path to
9129 // the process executable. On Linux based systems, can be set to the target of
9130 // `proc/[pid]/exe`. On Windows, can be set to the result of
9131 // `GetProcessImageFileNameW`.
9132 func ProcessExecutablePath(val string) attribute.KeyValue {
9133 return ProcessExecutablePathKey.String(val)
9134 }
9135
9136 // ProcessExitCode returns an attribute KeyValue conforming to the
9137 // "process.exit.code" semantic conventions. It represents the exit code of the
9138 // process.
9139 func ProcessExitCode(val int) attribute.KeyValue {
9140 return ProcessExitCodeKey.Int(val)
9141 }
9142
9143 // ProcessExitTime returns an attribute KeyValue conforming to the
9144 // "process.exit.time" semantic conventions. It represents the date and time the
9145 // process exited, in ISO 8601 format.
9146 func ProcessExitTime(val string) attribute.KeyValue {
9147 return ProcessExitTimeKey.String(val)
9148 }
9149
9150 // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
9151 // "process.group_leader.pid" semantic conventions. It represents the PID of the
9152 // process's group leader. This is also the process group ID (PGID) of the
9153 // process.
9154 func ProcessGroupLeaderPID(val int) attribute.KeyValue {
9155 return ProcessGroupLeaderPIDKey.Int(val)
9156 }
9157
9158 // ProcessInteractive returns an attribute KeyValue conforming to the
9159 // "process.interactive" semantic conventions. It represents the whether the
9160 // process is connected to an interactive shell.
9161 func ProcessInteractive(val bool) attribute.KeyValue {
9162 return ProcessInteractiveKey.Bool(val)
9163 }
9164
9165 // ProcessLinuxCgroup returns an attribute KeyValue conforming to the
9166 // "process.linux.cgroup" semantic conventions. It represents the control group
9167 // associated with the process.
9168 func ProcessLinuxCgroup(val string) attribute.KeyValue {
9169 return ProcessLinuxCgroupKey.String(val)
9170 }
9171
9172 // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
9173 // semantic conventions. It represents the username of the user that owns the
9174 // process.
9175 func ProcessOwner(val string) attribute.KeyValue {
9176 return ProcessOwnerKey.String(val)
9177 }
9178
9179 // ProcessParentPID returns an attribute KeyValue conforming to the
9180 // "process.parent_pid" semantic conventions. It represents the parent Process
9181 // identifier (PPID).
9182 func ProcessParentPID(val int) attribute.KeyValue {
9183 return ProcessParentPIDKey.Int(val)
9184 }
9185
9186 // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
9187 // semantic conventions. It represents the process identifier (PID).
9188 func ProcessPID(val int) attribute.KeyValue {
9189 return ProcessPIDKey.Int(val)
9190 }
9191
9192 // ProcessRealUserID returns an attribute KeyValue conforming to the
9193 // "process.real_user.id" semantic conventions. It represents the real user ID
9194 // (RUID) of the process.
9195 func ProcessRealUserID(val int) attribute.KeyValue {
9196 return ProcessRealUserIDKey.Int(val)
9197 }
9198
9199 // ProcessRealUserName returns an attribute KeyValue conforming to the
9200 // "process.real_user.name" semantic conventions. It represents the username of
9201 // the real user of the process.
9202 func ProcessRealUserName(val string) attribute.KeyValue {
9203 return ProcessRealUserNameKey.String(val)
9204 }
9205
9206 // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
9207 // "process.runtime.description" semantic conventions. It represents an
9208 // additional description about the runtime of the process, for example a
9209 // specific vendor customization of the runtime environment.
9210 func ProcessRuntimeDescription(val string) attribute.KeyValue {
9211 return ProcessRuntimeDescriptionKey.String(val)
9212 }
9213
9214 // ProcessRuntimeName returns an attribute KeyValue conforming to the
9215 // "process.runtime.name" semantic conventions. It represents the name of the
9216 // runtime of this process.
9217 func ProcessRuntimeName(val string) attribute.KeyValue {
9218 return ProcessRuntimeNameKey.String(val)
9219 }
9220
9221 // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
9222 // "process.runtime.version" semantic conventions. It represents the version of
9223 // the runtime of this process, as returned by the runtime without modification.
9224 func ProcessRuntimeVersion(val string) attribute.KeyValue {
9225 return ProcessRuntimeVersionKey.String(val)
9226 }
9227
9228 // ProcessSavedUserID returns an attribute KeyValue conforming to the
9229 // "process.saved_user.id" semantic conventions. It represents the saved user ID
9230 // (SUID) of the process.
9231 func ProcessSavedUserID(val int) attribute.KeyValue {
9232 return ProcessSavedUserIDKey.Int(val)
9233 }
9234
9235 // ProcessSavedUserName returns an attribute KeyValue conforming to the
9236 // "process.saved_user.name" semantic conventions. It represents the username of
9237 // the saved user.
9238 func ProcessSavedUserName(val string) attribute.KeyValue {
9239 return ProcessSavedUserNameKey.String(val)
9240 }
9241
9242 // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
9243 // "process.session_leader.pid" semantic conventions. It represents the PID of
9244 // the process's session leader. This is also the session ID (SID) of the
9245 // process.
9246 func ProcessSessionLeaderPID(val int) attribute.KeyValue {
9247 return ProcessSessionLeaderPIDKey.Int(val)
9248 }
9249
9250 // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
9251 // semantic conventions. It represents the process title (proctitle).
9252 func ProcessTitle(val string) attribute.KeyValue {
9253 return ProcessTitleKey.String(val)
9254 }
9255
9256 // ProcessUserID returns an attribute KeyValue conforming to the
9257 // "process.user.id" semantic conventions. It represents the effective user ID
9258 // (EUID) of the process.
9259 func ProcessUserID(val int) attribute.KeyValue {
9260 return ProcessUserIDKey.Int(val)
9261 }
9262
9263 // ProcessUserName returns an attribute KeyValue conforming to the
9264 // "process.user.name" semantic conventions. It represents the username of the
9265 // effective user of the process.
9266 func ProcessUserName(val string) attribute.KeyValue {
9267 return ProcessUserNameKey.String(val)
9268 }
9269
9270 // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
9271 // semantic conventions. It represents the virtual process identifier.
9272 func ProcessVpid(val int) attribute.KeyValue {
9273 return ProcessVpidKey.Int(val)
9274 }
9275
9276 // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
9277 // "process.working_directory" semantic conventions. It represents the working
9278 // directory of the process.
9279 func ProcessWorkingDirectory(val string) attribute.KeyValue {
9280 return ProcessWorkingDirectoryKey.String(val)
9281 }
9282
9283 // Enum values for process.context_switch_type
9284 var (
9285 // voluntary
9286 // Stability: development
9287 ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
9288 // involuntary
9289 // Stability: development
9290 ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
9291 )
9292
9293 // Enum values for process.paging.fault_type
9294 var (
9295 // major
9296 // Stability: development
9297 ProcessPagingFaultTypeMajor = ProcessPagingFaultTypeKey.String("major")
9298 // minor
9299 // Stability: development
9300 ProcessPagingFaultTypeMinor = ProcessPagingFaultTypeKey.String("minor")
9301 )
9302
9303 // Namespace: profile
9304 const (
9305 // ProfileFrameTypeKey is the attribute Key conforming to the
9306 // "profile.frame.type" semantic conventions. It represents the describes the
9307 // interpreter or compiler of a single frame.
9308 //
9309 // Type: Enum
9310 // RequirementLevel: Recommended
9311 // Stability: Development
9312 //
9313 // Examples: "cpython"
9314 ProfileFrameTypeKey = attribute.Key("profile.frame.type")
9315 )
9316
9317 // Enum values for profile.frame.type
9318 var (
9319 // [.NET]
9320 //
9321 // Stability: development
9322 //
9323 // [.NET]: https://wikipedia.org/wiki/.NET
9324 ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
9325 // [JVM]
9326 //
9327 // Stability: development
9328 //
9329 // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
9330 ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
9331 // [Kernel]
9332 //
9333 // Stability: development
9334 //
9335 // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
9336 ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
9337 // [C], [C++], [Go], [Rust]
9338 //
9339 // Stability: development
9340 //
9341 // [C]: https://wikipedia.org/wiki/C_(programming_language)
9342 // [C++]: https://wikipedia.org/wiki/C%2B%2B
9343 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
9344 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
9345 ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
9346 // [Perl]
9347 //
9348 // Stability: development
9349 //
9350 // [Perl]: https://wikipedia.org/wiki/Perl
9351 ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
9352 // [PHP]
9353 //
9354 // Stability: development
9355 //
9356 // [PHP]: https://wikipedia.org/wiki/PHP
9357 ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
9358 // [Python]
9359 //
9360 // Stability: development
9361 //
9362 // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
9363 ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
9364 // [Ruby]
9365 //
9366 // Stability: development
9367 //
9368 // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
9369 ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
9370 // [V8JS]
9371 //
9372 // Stability: development
9373 //
9374 // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
9375 ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
9376 // [Erlang]
9377 //
9378 // Stability: development
9379 //
9380 // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)
9381 ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam")
9382 )
9383
9384 // Namespace: rpc
9385 const (
9386 // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the
9387 // "rpc.connect_rpc.error_code" semantic conventions. It represents the
9388 // [error codes] of the Connect request. Error codes are always string values.
9389 //
9390 // Type: Enum
9391 // RequirementLevel: Recommended
9392 // Stability: Development
9393 //
9394 // Examples:
9395 //
9396 // [error codes]: https://connect.build/docs/protocol/#error-codes
9397 RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code")
9398
9399 // RPCGRPCStatusCodeKey is the attribute Key conforming to the
9400 // "rpc.grpc.status_code" semantic conventions. It represents the
9401 // [numeric status code] of the gRPC request.
9402 //
9403 // Type: Enum
9404 // RequirementLevel: Recommended
9405 // Stability: Development
9406 //
9407 // Examples:
9408 //
9409 // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md
9410 RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")
9411
9412 // RPCJsonrpcErrorCodeKey is the attribute Key conforming to the
9413 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
9414 // property of response if it is an error response.
9415 //
9416 // Type: int
9417 // RequirementLevel: Recommended
9418 // Stability: Development
9419 //
9420 // Examples: -32700, 100
9421 RPCJsonrpcErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code")
9422
9423 // RPCJsonrpcErrorMessageKey is the attribute Key conforming to the
9424 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
9425 // `error.message` property of response if it is an error response.
9426 //
9427 // Type: string
9428 // RequirementLevel: Recommended
9429 // Stability: Development
9430 //
9431 // Examples: "Parse error", "User already exists"
9432 RPCJsonrpcErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message")
9433
9434 // RPCJsonrpcRequestIDKey is the attribute Key conforming to the
9435 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id`
9436 // property of request or response. Since protocol allows id to be int, string,
9437 // `null` or missing (for notifications), value is expected to be cast to string
9438 // for simplicity. Use empty string in case of `null` value. Omit entirely if
9439 // this is a notification.
9440 //
9441 // Type: string
9442 // RequirementLevel: Recommended
9443 // Stability: Development
9444 //
9445 // Examples: "10", "request-7", ""
9446 RPCJsonrpcRequestIDKey = attribute.Key("rpc.jsonrpc.request_id")
9447
9448 // RPCJsonrpcVersionKey is the attribute Key conforming to the
9449 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol
9450 // version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0
9451 // doesn't specify this, the value can be omitted.
9452 //
9453 // Type: string
9454 // RequirementLevel: Recommended
9455 // Stability: Development
9456 //
9457 // Examples: "2.0", "1.0"
9458 RPCJsonrpcVersionKey = attribute.Key("rpc.jsonrpc.version")
9459
9460 // RPCMessageCompressedSizeKey is the attribute Key conforming to the
9461 // "rpc.message.compressed_size" semantic conventions. It represents the
9462 // compressed size of the message in bytes.
9463 //
9464 // Type: int
9465 // RequirementLevel: Recommended
9466 // Stability: Development
9467 //
9468 // Examples:
9469 RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size")
9470
9471 // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id"
9472 // semantic conventions. It represents the mUST be calculated as two different
9473 // counters starting from `1` one for sent messages and one for received
9474 // message.
9475 //
9476 // Type: int
9477 // RequirementLevel: Recommended
9478 // Stability: Development
9479 //
9480 // Examples:
9481 // Note: This way we guarantee that the values will be consistent between
9482 // different implementations.
9483 RPCMessageIDKey = attribute.Key("rpc.message.id")
9484
9485 // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type"
9486 // semantic conventions. It represents the whether this is a received or sent
9487 // message.
9488 //
9489 // Type: Enum
9490 // RequirementLevel: Recommended
9491 // Stability: Development
9492 //
9493 // Examples:
9494 RPCMessageTypeKey = attribute.Key("rpc.message.type")
9495
9496 // RPCMessageUncompressedSizeKey is the attribute Key conforming to the
9497 // "rpc.message.uncompressed_size" semantic conventions. It represents the
9498 // uncompressed size of the message in bytes.
9499 //
9500 // Type: int
9501 // RequirementLevel: Recommended
9502 // Stability: Development
9503 //
9504 // Examples:
9505 RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size")
9506
9507 // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
9508 // conventions. It represents the name of the (logical) method being called,
9509 // must be equal to the $method part in the span name.
9510 //
9511 // Type: string
9512 // RequirementLevel: Recommended
9513 // Stability: Development
9514 //
9515 // Examples: exampleMethod
9516 // Note: This is the logical name of the method from the RPC interface
9517 // perspective, which can be different from the name of any implementing
9518 // method/function. The `code.function.name` attribute may be used to store the
9519 // latter (e.g., method actually executing the call on the server side, RPC
9520 // client stub method on the client side).
9521 RPCMethodKey = attribute.Key("rpc.method")
9522
9523 // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic
9524 // conventions. It represents the full (logical) name of the service being
9525 // called, including its package name, if applicable.
9526 //
9527 // Type: string
9528 // RequirementLevel: Recommended
9529 // Stability: Development
9530 //
9531 // Examples: myservice.EchoService
9532 // Note: This is the logical name of the service from the RPC interface
9533 // perspective, which can be different from the name of any implementing class.
9534 // The `code.namespace` attribute may be used to store the latter (despite the
9535 // attribute name, it may include a class name; e.g., class with method actually
9536 // executing the call on the server side, RPC client stub class on the client
9537 // side).
9538 RPCServiceKey = attribute.Key("rpc.service")
9539
9540 // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic
9541 // conventions. It represents a string identifying the remoting system. See
9542 // below for a list of well-known identifiers.
9543 //
9544 // Type: Enum
9545 // RequirementLevel: Recommended
9546 // Stability: Development
9547 //
9548 // Examples:
9549 RPCSystemKey = attribute.Key("rpc.system")
9550 )
9551
9552 // RPCJsonrpcErrorCode returns an attribute KeyValue conforming to the
9553 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
9554 // property of response if it is an error response.
9555 func RPCJsonrpcErrorCode(val int) attribute.KeyValue {
9556 return RPCJsonrpcErrorCodeKey.Int(val)
9557 }
9558
9559 // RPCJsonrpcErrorMessage returns an attribute KeyValue conforming to the
9560 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
9561 // `error.message` property of response if it is an error response.
9562 func RPCJsonrpcErrorMessage(val string) attribute.KeyValue {
9563 return RPCJsonrpcErrorMessageKey.String(val)
9564 }
9565
9566 // RPCJsonrpcRequestID returns an attribute KeyValue conforming to the
9567 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property
9568 // of request or response. Since protocol allows id to be int, string, `null` or
9569 // missing (for notifications), value is expected to be cast to string for
9570 // simplicity. Use empty string in case of `null` value. Omit entirely if this is
9571 // a notification.
9572 func RPCJsonrpcRequestID(val string) attribute.KeyValue {
9573 return RPCJsonrpcRequestIDKey.String(val)
9574 }
9575
9576 // RPCJsonrpcVersion returns an attribute KeyValue conforming to the
9577 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol version
9578 // as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't
9579 // specify this, the value can be omitted.
9580 func RPCJsonrpcVersion(val string) attribute.KeyValue {
9581 return RPCJsonrpcVersionKey.String(val)
9582 }
9583
9584 // RPCMessageCompressedSize returns an attribute KeyValue conforming to the
9585 // "rpc.message.compressed_size" semantic conventions. It represents the
9586 // compressed size of the message in bytes.
9587 func RPCMessageCompressedSize(val int) attribute.KeyValue {
9588 return RPCMessageCompressedSizeKey.Int(val)
9589 }
9590
9591 // RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id"
9592 // semantic conventions. It represents the mUST be calculated as two different
9593 // counters starting from `1` one for sent messages and one for received message.
9594 func RPCMessageID(val int) attribute.KeyValue {
9595 return RPCMessageIDKey.Int(val)
9596 }
9597
9598 // RPCMessageUncompressedSize returns an attribute KeyValue conforming to the
9599 // "rpc.message.uncompressed_size" semantic conventions. It represents the
9600 // uncompressed size of the message in bytes.
9601 func RPCMessageUncompressedSize(val int) attribute.KeyValue {
9602 return RPCMessageUncompressedSizeKey.Int(val)
9603 }
9604
9605 // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
9606 // semantic conventions. It represents the name of the (logical) method being
9607 // called, must be equal to the $method part in the span name.
9608 func RPCMethod(val string) attribute.KeyValue {
9609 return RPCMethodKey.String(val)
9610 }
9611
9612 // RPCService returns an attribute KeyValue conforming to the "rpc.service"
9613 // semantic conventions. It represents the full (logical) name of the service
9614 // being called, including its package name, if applicable.
9615 func RPCService(val string) attribute.KeyValue {
9616 return RPCServiceKey.String(val)
9617 }
9618
9619 // Enum values for rpc.connect_rpc.error_code
9620 var (
9621 // cancelled
9622 // Stability: development
9623 RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled")
9624 // unknown
9625 // Stability: development
9626 RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown")
9627 // invalid_argument
9628 // Stability: development
9629 RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument")
9630 // deadline_exceeded
9631 // Stability: development
9632 RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded")
9633 // not_found
9634 // Stability: development
9635 RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found")
9636 // already_exists
9637 // Stability: development
9638 RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists")
9639 // permission_denied
9640 // Stability: development
9641 RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied")
9642 // resource_exhausted
9643 // Stability: development
9644 RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted")
9645 // failed_precondition
9646 // Stability: development
9647 RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition")
9648 // aborted
9649 // Stability: development
9650 RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted")
9651 // out_of_range
9652 // Stability: development
9653 RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range")
9654 // unimplemented
9655 // Stability: development
9656 RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented")
9657 // internal
9658 // Stability: development
9659 RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal")
9660 // unavailable
9661 // Stability: development
9662 RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable")
9663 // data_loss
9664 // Stability: development
9665 RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss")
9666 // unauthenticated
9667 // Stability: development
9668 RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated")
9669 )
9670
9671 // Enum values for rpc.grpc.status_code
9672 var (
9673 // OK
9674 // Stability: development
9675 RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0)
9676 // CANCELLED
9677 // Stability: development
9678 RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1)
9679 // UNKNOWN
9680 // Stability: development
9681 RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2)
9682 // INVALID_ARGUMENT
9683 // Stability: development
9684 RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3)
9685 // DEADLINE_EXCEEDED
9686 // Stability: development
9687 RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4)
9688 // NOT_FOUND
9689 // Stability: development
9690 RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5)
9691 // ALREADY_EXISTS
9692 // Stability: development
9693 RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6)
9694 // PERMISSION_DENIED
9695 // Stability: development
9696 RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7)
9697 // RESOURCE_EXHAUSTED
9698 // Stability: development
9699 RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8)
9700 // FAILED_PRECONDITION
9701 // Stability: development
9702 RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9)
9703 // ABORTED
9704 // Stability: development
9705 RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10)
9706 // OUT_OF_RANGE
9707 // Stability: development
9708 RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11)
9709 // UNIMPLEMENTED
9710 // Stability: development
9711 RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12)
9712 // INTERNAL
9713 // Stability: development
9714 RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13)
9715 // UNAVAILABLE
9716 // Stability: development
9717 RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14)
9718 // DATA_LOSS
9719 // Stability: development
9720 RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15)
9721 // UNAUTHENTICATED
9722 // Stability: development
9723 RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16)
9724 )
9725
9726 // Enum values for rpc.message.type
9727 var (
9728 // sent
9729 // Stability: development
9730 RPCMessageTypeSent = RPCMessageTypeKey.String("SENT")
9731 // received
9732 // Stability: development
9733 RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")
9734 )
9735
9736 // Enum values for rpc.system
9737 var (
9738 // gRPC
9739 // Stability: development
9740 RPCSystemGRPC = RPCSystemKey.String("grpc")
9741 // Java RMI
9742 // Stability: development
9743 RPCSystemJavaRmi = RPCSystemKey.String("java_rmi")
9744 // .NET WCF
9745 // Stability: development
9746 RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf")
9747 // Apache Dubbo
9748 // Stability: development
9749 RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo")
9750 // Connect RPC
9751 // Stability: development
9752 RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc")
9753 )
9754
9755 // Namespace: security_rule
9756 const (
9757 // SecurityRuleCategoryKey is the attribute Key conforming to the
9758 // "security_rule.category" semantic conventions. It represents a categorization
9759 // value keyword used by the entity using the rule for detection of this event.
9760 //
9761 // Type: string
9762 // RequirementLevel: Recommended
9763 // Stability: Development
9764 //
9765 // Examples: "Attempted Information Leak"
9766 SecurityRuleCategoryKey = attribute.Key("security_rule.category")
9767
9768 // SecurityRuleDescriptionKey is the attribute Key conforming to the
9769 // "security_rule.description" semantic conventions. It represents the
9770 // description of the rule generating the event.
9771 //
9772 // Type: string
9773 // RequirementLevel: Recommended
9774 // Stability: Development
9775 //
9776 // Examples: "Block requests to public DNS over HTTPS / TLS protocols"
9777 SecurityRuleDescriptionKey = attribute.Key("security_rule.description")
9778
9779 // SecurityRuleLicenseKey is the attribute Key conforming to the
9780 // "security_rule.license" semantic conventions. It represents the name of the
9781 // license under which the rule used to generate this event is made available.
9782 //
9783 // Type: string
9784 // RequirementLevel: Recommended
9785 // Stability: Development
9786 //
9787 // Examples: "Apache 2.0"
9788 SecurityRuleLicenseKey = attribute.Key("security_rule.license")
9789
9790 // SecurityRuleNameKey is the attribute Key conforming to the
9791 // "security_rule.name" semantic conventions. It represents the name of the rule
9792 // or signature generating the event.
9793 //
9794 // Type: string
9795 // RequirementLevel: Recommended
9796 // Stability: Development
9797 //
9798 // Examples: "BLOCK_DNS_over_TLS"
9799 SecurityRuleNameKey = attribute.Key("security_rule.name")
9800
9801 // SecurityRuleReferenceKey is the attribute Key conforming to the
9802 // "security_rule.reference" semantic conventions. It represents the reference
9803 // URL to additional information about the rule used to generate this event.
9804 //
9805 // Type: string
9806 // RequirementLevel: Recommended
9807 // Stability: Development
9808 //
9809 // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS"
9810 // Note: The URL can point to the vendor’s documentation about the rule. If
9811 // that’s not available, it can also be a link to a more general page
9812 // describing this type of alert.
9813 SecurityRuleReferenceKey = attribute.Key("security_rule.reference")
9814
9815 // SecurityRuleRulesetNameKey is the attribute Key conforming to the
9816 // "security_rule.ruleset.name" semantic conventions. It represents the name of
9817 // the ruleset, policy, group, or parent category in which the rule used to
9818 // generate this event is a member.
9819 //
9820 // Type: string
9821 // RequirementLevel: Recommended
9822 // Stability: Development
9823 //
9824 // Examples: "Standard_Protocol_Filters"
9825 SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name")
9826
9827 // SecurityRuleUUIDKey is the attribute Key conforming to the
9828 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
9829 // unique within the scope of a set or group of agents, observers, or other
9830 // entities using the rule for detection of this event.
9831 //
9832 // Type: string
9833 // RequirementLevel: Recommended
9834 // Stability: Development
9835 //
9836 // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011"
9837 SecurityRuleUUIDKey = attribute.Key("security_rule.uuid")
9838
9839 // SecurityRuleVersionKey is the attribute Key conforming to the
9840 // "security_rule.version" semantic conventions. It represents the version /
9841 // revision of the rule being used for analysis.
9842 //
9843 // Type: string
9844 // RequirementLevel: Recommended
9845 // Stability: Development
9846 //
9847 // Examples: "1.0.0"
9848 SecurityRuleVersionKey = attribute.Key("security_rule.version")
9849 )
9850
9851 // SecurityRuleCategory returns an attribute KeyValue conforming to the
9852 // "security_rule.category" semantic conventions. It represents a categorization
9853 // value keyword used by the entity using the rule for detection of this event.
9854 func SecurityRuleCategory(val string) attribute.KeyValue {
9855 return SecurityRuleCategoryKey.String(val)
9856 }
9857
9858 // SecurityRuleDescription returns an attribute KeyValue conforming to the
9859 // "security_rule.description" semantic conventions. It represents the
9860 // description of the rule generating the event.
9861 func SecurityRuleDescription(val string) attribute.KeyValue {
9862 return SecurityRuleDescriptionKey.String(val)
9863 }
9864
9865 // SecurityRuleLicense returns an attribute KeyValue conforming to the
9866 // "security_rule.license" semantic conventions. It represents the name of the
9867 // license under which the rule used to generate this event is made available.
9868 func SecurityRuleLicense(val string) attribute.KeyValue {
9869 return SecurityRuleLicenseKey.String(val)
9870 }
9871
9872 // SecurityRuleName returns an attribute KeyValue conforming to the
9873 // "security_rule.name" semantic conventions. It represents the name of the rule
9874 // or signature generating the event.
9875 func SecurityRuleName(val string) attribute.KeyValue {
9876 return SecurityRuleNameKey.String(val)
9877 }
9878
9879 // SecurityRuleReference returns an attribute KeyValue conforming to the
9880 // "security_rule.reference" semantic conventions. It represents the reference
9881 // URL to additional information about the rule used to generate this event.
9882 func SecurityRuleReference(val string) attribute.KeyValue {
9883 return SecurityRuleReferenceKey.String(val)
9884 }
9885
9886 // SecurityRuleRulesetName returns an attribute KeyValue conforming to the
9887 // "security_rule.ruleset.name" semantic conventions. It represents the name of
9888 // the ruleset, policy, group, or parent category in which the rule used to
9889 // generate this event is a member.
9890 func SecurityRuleRulesetName(val string) attribute.KeyValue {
9891 return SecurityRuleRulesetNameKey.String(val)
9892 }
9893
9894 // SecurityRuleUUID returns an attribute KeyValue conforming to the
9895 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
9896 // unique within the scope of a set or group of agents, observers, or other
9897 // entities using the rule for detection of this event.
9898 func SecurityRuleUUID(val string) attribute.KeyValue {
9899 return SecurityRuleUUIDKey.String(val)
9900 }
9901
9902 // SecurityRuleVersion returns an attribute KeyValue conforming to the
9903 // "security_rule.version" semantic conventions. It represents the version /
9904 // revision of the rule being used for analysis.
9905 func SecurityRuleVersion(val string) attribute.KeyValue {
9906 return SecurityRuleVersionKey.String(val)
9907 }
9908
9909 // Namespace: server
9910 const (
9911 // ServerAddressKey is the attribute Key conforming to the "server.address"
9912 // semantic conventions. It represents the server domain name if available
9913 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
9914 //
9915 // Type: string
9916 // RequirementLevel: Recommended
9917 // Stability: Stable
9918 //
9919 // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
9920 // Note: When observed from the client side, and when communicating through an
9921 // intermediary, `server.address` SHOULD represent the server address behind any
9922 // intermediaries, for example proxies, if it's available.
9923 ServerAddressKey = attribute.Key("server.address")
9924
9925 // ServerPortKey is the attribute Key conforming to the "server.port" semantic
9926 // conventions. It represents the server port number.
9927 //
9928 // Type: int
9929 // RequirementLevel: Recommended
9930 // Stability: Stable
9931 //
9932 // Examples: 80, 8080, 443
9933 // Note: When observed from the client side, and when communicating through an
9934 // intermediary, `server.port` SHOULD represent the server port behind any
9935 // intermediaries, for example proxies, if it's available.
9936 ServerPortKey = attribute.Key("server.port")
9937 )
9938
9939 // ServerAddress returns an attribute KeyValue conforming to the "server.address"
9940 // semantic conventions. It represents the server domain name if available
9941 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
9942 func ServerAddress(val string) attribute.KeyValue {
9943 return ServerAddressKey.String(val)
9944 }
9945
9946 // ServerPort returns an attribute KeyValue conforming to the "server.port"
9947 // semantic conventions. It represents the server port number.
9948 func ServerPort(val int) attribute.KeyValue {
9949 return ServerPortKey.Int(val)
9950 }
9951
9952 // Namespace: service
9953 const (
9954 // ServiceInstanceIDKey is the attribute Key conforming to the
9955 // "service.instance.id" semantic conventions. It represents the string ID of
9956 // the service instance.
9957 //
9958 // Type: string
9959 // RequirementLevel: Recommended
9960 // Stability: Development
9961 //
9962 // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
9963 // Note: MUST be unique for each instance of the same
9964 // `service.namespace,service.name` pair (in other words
9965 // `service.namespace,service.name,service.instance.id` triplet MUST be globally
9966 // unique). The ID helps to
9967 // distinguish instances of the same service that exist at the same time (e.g.
9968 // instances of a horizontally scaled
9969 // service).
9970 //
9971 // Implementations, such as SDKs, are recommended to generate a random Version 1
9972 // or Version 4 [RFC
9973 // 4122] UUID, but are free to use an inherent unique ID as
9974 // the source of
9975 // this value if stability is desirable. In that case, the ID SHOULD be used as
9976 // source of a UUID Version 5 and
9977 // SHOULD use the following UUID as the namespace:
9978 // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
9979 //
9980 // UUIDs are typically recommended, as only an opaque value for the purposes of
9981 // identifying a service instance is
9982 // needed. Similar to what can be seen in the man page for the
9983 // [`/etc/machine-id`] file, the underlying
9984 // data, such as pod name and namespace should be treated as confidential, being
9985 // the user's choice to expose it
9986 // or not via another resource attribute.
9987 //
9988 // For applications running behind an application server (like unicorn), we do
9989 // not recommend using one identifier
9990 // for all processes participating in the application. Instead, it's recommended
9991 // each division (e.g. a worker
9992 // thread in unicorn) to have its own instance.id.
9993 //
9994 // It's not recommended for a Collector to set `service.instance.id` if it can't
9995 // unambiguously determine the
9996 // service instance that is generating that telemetry. For instance, creating an
9997 // UUID based on `pod.name` will
9998 // likely be wrong, as the Collector might not know from which container within
9999 // that pod the telemetry originated.
10000 // However, Collectors can set the `service.instance.id` if they can
10001 // unambiguously determine the service instance
10002 // for that telemetry. This is typically the case for scraping receivers, as
10003 // they know the target address and
10004 // port.
10005 //
10006 // [RFC
10007 // 4122]: https://www.ietf.org/rfc/rfc4122.txt
10008 // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html
10009 ServiceInstanceIDKey = attribute.Key("service.instance.id")
10010
10011 // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
10012 // conventions. It represents the logical name of the service.
10013 //
10014 // Type: string
10015 // RequirementLevel: Recommended
10016 // Stability: Stable
10017 //
10018 // Examples: "shoppingcart"
10019 // Note: MUST be the same for all instances of horizontally scaled services. If
10020 // the value was not specified, SDKs MUST fallback to `unknown_service:`
10021 // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
10022 // If `process.executable.name` is not available, the value MUST be set to
10023 // `unknown_service`.
10024 //
10025 // [`process.executable.name`]: process.md
10026 ServiceNameKey = attribute.Key("service.name")
10027
10028 // ServiceNamespaceKey is the attribute Key conforming to the
10029 // "service.namespace" semantic conventions. It represents a namespace for
10030 // `service.name`.
10031 //
10032 // Type: string
10033 // RequirementLevel: Recommended
10034 // Stability: Development
10035 //
10036 // Examples: "Shop"
10037 // Note: A string value having a meaning that helps to distinguish a group of
10038 // services, for example the team name that owns a group of services.
10039 // `service.name` is expected to be unique within the same namespace. If
10040 // `service.namespace` is not specified in the Resource then `service.name` is
10041 // expected to be unique for all services that have no explicit namespace
10042 // defined (so the empty/unspecified namespace is simply one more valid
10043 // namespace). Zero-length namespace string is assumed equal to unspecified
10044 // namespace.
10045 ServiceNamespaceKey = attribute.Key("service.namespace")
10046
10047 // ServiceVersionKey is the attribute Key conforming to the "service.version"
10048 // semantic conventions. It represents the version string of the service API or
10049 // implementation. The format is not defined by these conventions.
10050 //
10051 // Type: string
10052 // RequirementLevel: Recommended
10053 // Stability: Stable
10054 //
10055 // Examples: "2.0.0", "a01dbef8a"
10056 ServiceVersionKey = attribute.Key("service.version")
10057 )
10058
10059 // ServiceInstanceID returns an attribute KeyValue conforming to the
10060 // "service.instance.id" semantic conventions. It represents the string ID of the
10061 // service instance.
10062 func ServiceInstanceID(val string) attribute.KeyValue {
10063 return ServiceInstanceIDKey.String(val)
10064 }
10065
10066 // ServiceName returns an attribute KeyValue conforming to the "service.name"
10067 // semantic conventions. It represents the logical name of the service.
10068 func ServiceName(val string) attribute.KeyValue {
10069 return ServiceNameKey.String(val)
10070 }
10071
10072 // ServiceNamespace returns an attribute KeyValue conforming to the
10073 // "service.namespace" semantic conventions. It represents a namespace for
10074 // `service.name`.
10075 func ServiceNamespace(val string) attribute.KeyValue {
10076 return ServiceNamespaceKey.String(val)
10077 }
10078
10079 // ServiceVersion returns an attribute KeyValue conforming to the
10080 // "service.version" semantic conventions. It represents the version string of
10081 // the service API or implementation. The format is not defined by these
10082 // conventions.
10083 func ServiceVersion(val string) attribute.KeyValue {
10084 return ServiceVersionKey.String(val)
10085 }
10086
10087 // Namespace: session
10088 const (
10089 // SessionIDKey is the attribute Key conforming to the "session.id" semantic
10090 // conventions. It represents a unique id to identify a session.
10091 //
10092 // Type: string
10093 // RequirementLevel: Recommended
10094 // Stability: Development
10095 //
10096 // Examples: 00112233-4455-6677-8899-aabbccddeeff
10097 SessionIDKey = attribute.Key("session.id")
10098
10099 // SessionPreviousIDKey is the attribute Key conforming to the
10100 // "session.previous_id" semantic conventions. It represents the previous
10101 // `session.id` for this user, when known.
10102 //
10103 // Type: string
10104 // RequirementLevel: Recommended
10105 // Stability: Development
10106 //
10107 // Examples: 00112233-4455-6677-8899-aabbccddeeff
10108 SessionPreviousIDKey = attribute.Key("session.previous_id")
10109 )
10110
10111 // SessionID returns an attribute KeyValue conforming to the "session.id"
10112 // semantic conventions. It represents a unique id to identify a session.
10113 func SessionID(val string) attribute.KeyValue {
10114 return SessionIDKey.String(val)
10115 }
10116
10117 // SessionPreviousID returns an attribute KeyValue conforming to the
10118 // "session.previous_id" semantic conventions. It represents the previous
10119 // `session.id` for this user, when known.
10120 func SessionPreviousID(val string) attribute.KeyValue {
10121 return SessionPreviousIDKey.String(val)
10122 }
10123
10124 // Namespace: signalr
10125 const (
10126 // SignalrConnectionStatusKey is the attribute Key conforming to the
10127 // "signalr.connection.status" semantic conventions. It represents the signalR
10128 // HTTP connection closure status.
10129 //
10130 // Type: Enum
10131 // RequirementLevel: Recommended
10132 // Stability: Stable
10133 //
10134 // Examples: "app_shutdown", "timeout"
10135 SignalrConnectionStatusKey = attribute.Key("signalr.connection.status")
10136
10137 // SignalrTransportKey is the attribute Key conforming to the
10138 // "signalr.transport" semantic conventions. It represents the
10139 // [SignalR transport type].
10140 //
10141 // Type: Enum
10142 // RequirementLevel: Recommended
10143 // Stability: Stable
10144 //
10145 // Examples: "web_sockets", "long_polling"
10146 //
10147 // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
10148 SignalrTransportKey = attribute.Key("signalr.transport")
10149 )
10150
10151 // Enum values for signalr.connection.status
10152 var (
10153 // The connection was closed normally.
10154 // Stability: stable
10155 SignalrConnectionStatusNormalClosure = SignalrConnectionStatusKey.String("normal_closure")
10156 // The connection was closed due to a timeout.
10157 // Stability: stable
10158 SignalrConnectionStatusTimeout = SignalrConnectionStatusKey.String("timeout")
10159 // The connection was closed because the app is shutting down.
10160 // Stability: stable
10161 SignalrConnectionStatusAppShutdown = SignalrConnectionStatusKey.String("app_shutdown")
10162 )
10163
10164 // Enum values for signalr.transport
10165 var (
10166 // ServerSentEvents protocol
10167 // Stability: stable
10168 SignalrTransportServerSentEvents = SignalrTransportKey.String("server_sent_events")
10169 // LongPolling protocol
10170 // Stability: stable
10171 SignalrTransportLongPolling = SignalrTransportKey.String("long_polling")
10172 // WebSockets protocol
10173 // Stability: stable
10174 SignalrTransportWebSockets = SignalrTransportKey.String("web_sockets")
10175 )
10176
10177 // Namespace: source
10178 const (
10179 // SourceAddressKey is the attribute Key conforming to the "source.address"
10180 // semantic conventions. It represents the source address - domain name if
10181 // available without reverse DNS lookup; otherwise, IP address or Unix domain
10182 // socket name.
10183 //
10184 // Type: string
10185 // RequirementLevel: Recommended
10186 // Stability: Development
10187 //
10188 // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
10189 // Note: When observed from the destination side, and when communicating through
10190 // an intermediary, `source.address` SHOULD represent the source address behind
10191 // any intermediaries, for example proxies, if it's available.
10192 SourceAddressKey = attribute.Key("source.address")
10193
10194 // SourcePortKey is the attribute Key conforming to the "source.port" semantic
10195 // conventions. It represents the source port number.
10196 //
10197 // Type: int
10198 // RequirementLevel: Recommended
10199 // Stability: Development
10200 //
10201 // Examples: 3389, 2888
10202 SourcePortKey = attribute.Key("source.port")
10203 )
10204
10205 // SourceAddress returns an attribute KeyValue conforming to the "source.address"
10206 // semantic conventions. It represents the source address - domain name if
10207 // available without reverse DNS lookup; otherwise, IP address or Unix domain
10208 // socket name.
10209 func SourceAddress(val string) attribute.KeyValue {
10210 return SourceAddressKey.String(val)
10211 }
10212
10213 // SourcePort returns an attribute KeyValue conforming to the "source.port"
10214 // semantic conventions. It represents the source port number.
10215 func SourcePort(val int) attribute.KeyValue {
10216 return SourcePortKey.Int(val)
10217 }
10218
10219 // Namespace: system
10220 const (
10221 // SystemCPULogicalNumberKey is the attribute Key conforming to the
10222 // "system.cpu.logical_number" semantic conventions. It represents the logical
10223 // CPU number [0..n-1].
10224 //
10225 // Type: int
10226 // RequirementLevel: Recommended
10227 // Stability: Development
10228 //
10229 // Examples: 1
10230 SystemCPULogicalNumberKey = attribute.Key("system.cpu.logical_number")
10231
10232 // SystemDeviceKey is the attribute Key conforming to the "system.device"
10233 // semantic conventions. It represents the device identifier.
10234 //
10235 // Type: string
10236 // RequirementLevel: Recommended
10237 // Stability: Development
10238 //
10239 // Examples: "(identifier)"
10240 SystemDeviceKey = attribute.Key("system.device")
10241
10242 // SystemFilesystemModeKey is the attribute Key conforming to the
10243 // "system.filesystem.mode" semantic conventions. It represents the filesystem
10244 // mode.
10245 //
10246 // Type: string
10247 // RequirementLevel: Recommended
10248 // Stability: Development
10249 //
10250 // Examples: "rw, ro"
10251 SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
10252
10253 // SystemFilesystemMountpointKey is the attribute Key conforming to the
10254 // "system.filesystem.mountpoint" semantic conventions. It represents the
10255 // filesystem mount path.
10256 //
10257 // Type: string
10258 // RequirementLevel: Recommended
10259 // Stability: Development
10260 //
10261 // Examples: "/mnt/data"
10262 SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
10263
10264 // SystemFilesystemStateKey is the attribute Key conforming to the
10265 // "system.filesystem.state" semantic conventions. It represents the filesystem
10266 // state.
10267 //
10268 // Type: Enum
10269 // RequirementLevel: Recommended
10270 // Stability: Development
10271 //
10272 // Examples: "used"
10273 SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
10274
10275 // SystemFilesystemTypeKey is the attribute Key conforming to the
10276 // "system.filesystem.type" semantic conventions. It represents the filesystem
10277 // type.
10278 //
10279 // Type: Enum
10280 // RequirementLevel: Recommended
10281 // Stability: Development
10282 //
10283 // Examples: "ext4"
10284 SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
10285
10286 // SystemMemoryStateKey is the attribute Key conforming to the
10287 // "system.memory.state" semantic conventions. It represents the memory state.
10288 //
10289 // Type: Enum
10290 // RequirementLevel: Recommended
10291 // Stability: Development
10292 //
10293 // Examples: "free", "cached"
10294 SystemMemoryStateKey = attribute.Key("system.memory.state")
10295
10296 // SystemPagingDirectionKey is the attribute Key conforming to the
10297 // "system.paging.direction" semantic conventions. It represents the paging
10298 // access direction.
10299 //
10300 // Type: Enum
10301 // RequirementLevel: Recommended
10302 // Stability: Development
10303 //
10304 // Examples: "in"
10305 SystemPagingDirectionKey = attribute.Key("system.paging.direction")
10306
10307 // SystemPagingStateKey is the attribute Key conforming to the
10308 // "system.paging.state" semantic conventions. It represents the memory paging
10309 // state.
10310 //
10311 // Type: Enum
10312 // RequirementLevel: Recommended
10313 // Stability: Development
10314 //
10315 // Examples: "free"
10316 SystemPagingStateKey = attribute.Key("system.paging.state")
10317
10318 // SystemPagingTypeKey is the attribute Key conforming to the
10319 // "system.paging.type" semantic conventions. It represents the memory paging
10320 // type.
10321 //
10322 // Type: Enum
10323 // RequirementLevel: Recommended
10324 // Stability: Development
10325 //
10326 // Examples: "minor"
10327 SystemPagingTypeKey = attribute.Key("system.paging.type")
10328
10329 // SystemProcessStatusKey is the attribute Key conforming to the
10330 // "system.process.status" semantic conventions. It represents the process
10331 // state, e.g., [Linux Process State Codes].
10332 //
10333 // Type: Enum
10334 // RequirementLevel: Recommended
10335 // Stability: Development
10336 //
10337 // Examples: "running"
10338 //
10339 // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
10340 SystemProcessStatusKey = attribute.Key("system.process.status")
10341 )
10342
10343 // SystemCPULogicalNumber returns an attribute KeyValue conforming to the
10344 // "system.cpu.logical_number" semantic conventions. It represents the logical
10345 // CPU number [0..n-1].
10346 func SystemCPULogicalNumber(val int) attribute.KeyValue {
10347 return SystemCPULogicalNumberKey.Int(val)
10348 }
10349
10350 // SystemDevice returns an attribute KeyValue conforming to the "system.device"
10351 // semantic conventions. It represents the device identifier.
10352 func SystemDevice(val string) attribute.KeyValue {
10353 return SystemDeviceKey.String(val)
10354 }
10355
10356 // SystemFilesystemMode returns an attribute KeyValue conforming to the
10357 // "system.filesystem.mode" semantic conventions. It represents the filesystem
10358 // mode.
10359 func SystemFilesystemMode(val string) attribute.KeyValue {
10360 return SystemFilesystemModeKey.String(val)
10361 }
10362
10363 // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
10364 // "system.filesystem.mountpoint" semantic conventions. It represents the
10365 // filesystem mount path.
10366 func SystemFilesystemMountpoint(val string) attribute.KeyValue {
10367 return SystemFilesystemMountpointKey.String(val)
10368 }
10369
10370 // Enum values for system.filesystem.state
10371 var (
10372 // used
10373 // Stability: development
10374 SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
10375 // free
10376 // Stability: development
10377 SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
10378 // reserved
10379 // Stability: development
10380 SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
10381 )
10382
10383 // Enum values for system.filesystem.type
10384 var (
10385 // fat32
10386 // Stability: development
10387 SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
10388 // exfat
10389 // Stability: development
10390 SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
10391 // ntfs
10392 // Stability: development
10393 SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
10394 // refs
10395 // Stability: development
10396 SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
10397 // hfsplus
10398 // Stability: development
10399 SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
10400 // ext4
10401 // Stability: development
10402 SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
10403 )
10404
10405 // Enum values for system.memory.state
10406 var (
10407 // used
10408 // Stability: development
10409 SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
10410 // free
10411 // Stability: development
10412 SystemMemoryStateFree = SystemMemoryStateKey.String("free")
10413 // Deprecated: Removed, report shared memory usage with
10414 // `metric.system.memory.shared` metric.
10415 SystemMemoryStateShared = SystemMemoryStateKey.String("shared")
10416 // buffers
10417 // Stability: development
10418 SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
10419 // cached
10420 // Stability: development
10421 SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
10422 )
10423
10424 // Enum values for system.paging.direction
10425 var (
10426 // in
10427 // Stability: development
10428 SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
10429 // out
10430 // Stability: development
10431 SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
10432 )
10433
10434 // Enum values for system.paging.state
10435 var (
10436 // used
10437 // Stability: development
10438 SystemPagingStateUsed = SystemPagingStateKey.String("used")
10439 // free
10440 // Stability: development
10441 SystemPagingStateFree = SystemPagingStateKey.String("free")
10442 )
10443
10444 // Enum values for system.paging.type
10445 var (
10446 // major
10447 // Stability: development
10448 SystemPagingTypeMajor = SystemPagingTypeKey.String("major")
10449 // minor
10450 // Stability: development
10451 SystemPagingTypeMinor = SystemPagingTypeKey.String("minor")
10452 )
10453
10454 // Enum values for system.process.status
10455 var (
10456 // running
10457 // Stability: development
10458 SystemProcessStatusRunning = SystemProcessStatusKey.String("running")
10459 // sleeping
10460 // Stability: development
10461 SystemProcessStatusSleeping = SystemProcessStatusKey.String("sleeping")
10462 // stopped
10463 // Stability: development
10464 SystemProcessStatusStopped = SystemProcessStatusKey.String("stopped")
10465 // defunct
10466 // Stability: development
10467 SystemProcessStatusDefunct = SystemProcessStatusKey.String("defunct")
10468 )
10469
10470 // Namespace: telemetry
10471 const (
10472 // TelemetryDistroNameKey is the attribute Key conforming to the
10473 // "telemetry.distro.name" semantic conventions. It represents the name of the
10474 // auto instrumentation agent or distribution, if used.
10475 //
10476 // Type: string
10477 // RequirementLevel: Recommended
10478 // Stability: Development
10479 //
10480 // Examples: "parts-unlimited-java"
10481 // Note: Official auto instrumentation agents and distributions SHOULD set the
10482 // `telemetry.distro.name` attribute to
10483 // a string starting with `opentelemetry-`, e.g.
10484 // `opentelemetry-java-instrumentation`.
10485 TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
10486
10487 // TelemetryDistroVersionKey is the attribute Key conforming to the
10488 // "telemetry.distro.version" semantic conventions. It represents the version
10489 // string of the auto instrumentation agent or distribution, if used.
10490 //
10491 // Type: string
10492 // RequirementLevel: Recommended
10493 // Stability: Development
10494 //
10495 // Examples: "1.2.3"
10496 TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
10497
10498 // TelemetrySDKLanguageKey is the attribute Key conforming to the
10499 // "telemetry.sdk.language" semantic conventions. It represents the language of
10500 // the telemetry SDK.
10501 //
10502 // Type: Enum
10503 // RequirementLevel: Recommended
10504 // Stability: Stable
10505 //
10506 // Examples:
10507 TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
10508
10509 // TelemetrySDKNameKey is the attribute Key conforming to the
10510 // "telemetry.sdk.name" semantic conventions. It represents the name of the
10511 // telemetry SDK as defined above.
10512 //
10513 // Type: string
10514 // RequirementLevel: Recommended
10515 // Stability: Stable
10516 //
10517 // Examples: "opentelemetry"
10518 // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
10519 // `opentelemetry`.
10520 // If another SDK, like a fork or a vendor-provided implementation, is used,
10521 // this SDK MUST set the
10522 // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
10523 // this SDK's main entry point
10524 // or another suitable identifier depending on the language.
10525 // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
10526 // All custom identifiers SHOULD be stable across different versions of an
10527 // implementation.
10528 TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
10529
10530 // TelemetrySDKVersionKey is the attribute Key conforming to the
10531 // "telemetry.sdk.version" semantic conventions. It represents the version
10532 // string of the telemetry SDK.
10533 //
10534 // Type: string
10535 // RequirementLevel: Recommended
10536 // Stability: Stable
10537 //
10538 // Examples: "1.2.3"
10539 TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
10540 )
10541
10542 // TelemetryDistroName returns an attribute KeyValue conforming to the
10543 // "telemetry.distro.name" semantic conventions. It represents the name of the
10544 // auto instrumentation agent or distribution, if used.
10545 func TelemetryDistroName(val string) attribute.KeyValue {
10546 return TelemetryDistroNameKey.String(val)
10547 }
10548
10549 // TelemetryDistroVersion returns an attribute KeyValue conforming to the
10550 // "telemetry.distro.version" semantic conventions. It represents the version
10551 // string of the auto instrumentation agent or distribution, if used.
10552 func TelemetryDistroVersion(val string) attribute.KeyValue {
10553 return TelemetryDistroVersionKey.String(val)
10554 }
10555
10556 // TelemetrySDKName returns an attribute KeyValue conforming to the
10557 // "telemetry.sdk.name" semantic conventions. It represents the name of the
10558 // telemetry SDK as defined above.
10559 func TelemetrySDKName(val string) attribute.KeyValue {
10560 return TelemetrySDKNameKey.String(val)
10561 }
10562
10563 // TelemetrySDKVersion returns an attribute KeyValue conforming to the
10564 // "telemetry.sdk.version" semantic conventions. It represents the version string
10565 // of the telemetry SDK.
10566 func TelemetrySDKVersion(val string) attribute.KeyValue {
10567 return TelemetrySDKVersionKey.String(val)
10568 }
10569
10570 // Enum values for telemetry.sdk.language
10571 var (
10572 // cpp
10573 // Stability: stable
10574 TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
10575 // dotnet
10576 // Stability: stable
10577 TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
10578 // erlang
10579 // Stability: stable
10580 TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
10581 // go
10582 // Stability: stable
10583 TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
10584 // java
10585 // Stability: stable
10586 TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
10587 // nodejs
10588 // Stability: stable
10589 TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
10590 // php
10591 // Stability: stable
10592 TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
10593 // python
10594 // Stability: stable
10595 TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
10596 // ruby
10597 // Stability: stable
10598 TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
10599 // rust
10600 // Stability: stable
10601 TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
10602 // swift
10603 // Stability: stable
10604 TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
10605 // webjs
10606 // Stability: stable
10607 TelemetrySDKLanguageWebjs = TelemetrySDKLanguageKey.String("webjs")
10608 )
10609
10610 // Namespace: test
10611 const (
10612 // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
10613 // semantic conventions. It represents the fully qualified human readable name
10614 // of the [test case].
10615 //
10616 // Type: string
10617 // RequirementLevel: Recommended
10618 // Stability: Development
10619 //
10620 // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
10621 // "ExampleTestCase1_test1"
10622 //
10623 // [test case]: https://wikipedia.org/wiki/Test_case
10624 TestCaseNameKey = attribute.Key("test.case.name")
10625
10626 // TestCaseResultStatusKey is the attribute Key conforming to the
10627 // "test.case.result.status" semantic conventions. It represents the status of
10628 // the actual test case result from test execution.
10629 //
10630 // Type: Enum
10631 // RequirementLevel: Recommended
10632 // Stability: Development
10633 //
10634 // Examples: "pass", "fail"
10635 TestCaseResultStatusKey = attribute.Key("test.case.result.status")
10636
10637 // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
10638 // semantic conventions. It represents the human readable name of a [test suite]
10639 // .
10640 //
10641 // Type: string
10642 // RequirementLevel: Recommended
10643 // Stability: Development
10644 //
10645 // Examples: "TestSuite1"
10646 //
10647 // [test suite]: https://wikipedia.org/wiki/Test_suite
10648 TestSuiteNameKey = attribute.Key("test.suite.name")
10649
10650 // TestSuiteRunStatusKey is the attribute Key conforming to the
10651 // "test.suite.run.status" semantic conventions. It represents the status of the
10652 // test suite run.
10653 //
10654 // Type: Enum
10655 // RequirementLevel: Recommended
10656 // Stability: Development
10657 //
10658 // Examples: "success", "failure", "skipped", "aborted", "timed_out",
10659 // "in_progress"
10660 TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
10661 )
10662
10663 // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
10664 // semantic conventions. It represents the fully qualified human readable name of
10665 // the [test case].
10666 //
10667 // [test case]: https://wikipedia.org/wiki/Test_case
10668 func TestCaseName(val string) attribute.KeyValue {
10669 return TestCaseNameKey.String(val)
10670 }
10671
10672 // TestSuiteName returns an attribute KeyValue conforming to the
10673 // "test.suite.name" semantic conventions. It represents the human readable name
10674 // of a [test suite].
10675 //
10676 // [test suite]: https://wikipedia.org/wiki/Test_suite
10677 func TestSuiteName(val string) attribute.KeyValue {
10678 return TestSuiteNameKey.String(val)
10679 }
10680
10681 // Enum values for test.case.result.status
10682 var (
10683 // pass
10684 // Stability: development
10685 TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
10686 // fail
10687 // Stability: development
10688 TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
10689 )
10690
10691 // Enum values for test.suite.run.status
10692 var (
10693 // success
10694 // Stability: development
10695 TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
10696 // failure
10697 // Stability: development
10698 TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
10699 // skipped
10700 // Stability: development
10701 TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
10702 // aborted
10703 // Stability: development
10704 TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
10705 // timed_out
10706 // Stability: development
10707 TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
10708 // in_progress
10709 // Stability: development
10710 TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
10711 )
10712
10713 // Namespace: thread
10714 const (
10715 // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
10716 // conventions. It represents the current "managed" thread ID (as opposed to OS
10717 // thread ID).
10718 //
10719 // Type: int
10720 // RequirementLevel: Recommended
10721 // Stability: Development
10722 ThreadIDKey = attribute.Key("thread.id")
10723
10724 // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
10725 // conventions. It represents the current thread name.
10726 //
10727 // Type: string
10728 // RequirementLevel: Recommended
10729 // Stability: Development
10730 //
10731 // Examples: main
10732 ThreadNameKey = attribute.Key("thread.name")
10733 )
10734
10735 // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
10736 // conventions. It represents the current "managed" thread ID (as opposed to OS
10737 // thread ID).
10738 func ThreadID(val int) attribute.KeyValue {
10739 return ThreadIDKey.Int(val)
10740 }
10741
10742 // ThreadName returns an attribute KeyValue conforming to the "thread.name"
10743 // semantic conventions. It represents the current thread name.
10744 func ThreadName(val string) attribute.KeyValue {
10745 return ThreadNameKey.String(val)
10746 }
10747
10748 // Namespace: tls
10749 const (
10750 // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
10751 // conventions. It represents the string indicating the [cipher] used during the
10752 // current connection.
10753 //
10754 // Type: string
10755 // RequirementLevel: Recommended
10756 // Stability: Development
10757 //
10758 // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
10759 // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
10760 // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
10761 // of the [registered TLS Cipher Suits].
10762 //
10763 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
10764 // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
10765 TLSCipherKey = attribute.Key("tls.cipher")
10766
10767 // TLSClientCertificateKey is the attribute Key conforming to the
10768 // "tls.client.certificate" semantic conventions. It represents the pEM-encoded
10769 // stand-alone certificate offered by the client. This is usually
10770 // mutually-exclusive of `client.certificate_chain` since this value also exists
10771 // in that list.
10772 //
10773 // Type: string
10774 // RequirementLevel: Recommended
10775 // Stability: Development
10776 //
10777 // Examples: "MII..."
10778 TLSClientCertificateKey = attribute.Key("tls.client.certificate")
10779
10780 // TLSClientCertificateChainKey is the attribute Key conforming to the
10781 // "tls.client.certificate_chain" semantic conventions. It represents the array
10782 // of PEM-encoded certificates that make up the certificate chain offered by the
10783 // client. This is usually mutually-exclusive of `client.certificate` since that
10784 // value should be the first certificate in the chain.
10785 //
10786 // Type: string[]
10787 // RequirementLevel: Recommended
10788 // Stability: Development
10789 //
10790 // Examples: "MII...", "MI..."
10791 TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
10792
10793 // TLSClientHashMd5Key is the attribute Key conforming to the
10794 // "tls.client.hash.md5" semantic conventions. It represents the certificate
10795 // fingerprint using the MD5 digest of DER-encoded version of certificate
10796 // offered by the client. For consistency with other hash values, this value
10797 // should be formatted as an uppercase hash.
10798 //
10799 // Type: string
10800 // RequirementLevel: Recommended
10801 // Stability: Development
10802 //
10803 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
10804 TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
10805
10806 // TLSClientHashSha1Key is the attribute Key conforming to the
10807 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
10808 // fingerprint using the SHA1 digest of DER-encoded version of certificate
10809 // offered by the client. For consistency with other hash values, this value
10810 // should be formatted as an uppercase hash.
10811 //
10812 // Type: string
10813 // RequirementLevel: Recommended
10814 // Stability: Development
10815 //
10816 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
10817 TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
10818
10819 // TLSClientHashSha256Key is the attribute Key conforming to the
10820 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
10821 // fingerprint using the SHA256 digest of DER-encoded version of certificate
10822 // offered by the client. For consistency with other hash values, this value
10823 // should be formatted as an uppercase hash.
10824 //
10825 // Type: string
10826 // RequirementLevel: Recommended
10827 // Stability: Development
10828 //
10829 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
10830 TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
10831
10832 // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
10833 // semantic conventions. It represents the distinguished name of [subject] of
10834 // the issuer of the x.509 certificate presented by the client.
10835 //
10836 // Type: string
10837 // RequirementLevel: Recommended
10838 // Stability: Development
10839 //
10840 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
10841 //
10842 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
10843 TLSClientIssuerKey = attribute.Key("tls.client.issuer")
10844
10845 // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
10846 // semantic conventions. It represents a hash that identifies clients based on
10847 // how they perform an SSL/TLS handshake.
10848 //
10849 // Type: string
10850 // RequirementLevel: Recommended
10851 // Stability: Development
10852 //
10853 // Examples: "d4e5b18d6b55c71272893221c96ba240"
10854 TLSClientJa3Key = attribute.Key("tls.client.ja3")
10855
10856 // TLSClientNotAfterKey is the attribute Key conforming to the
10857 // "tls.client.not_after" semantic conventions. It represents the date/Time
10858 // indicating when client certificate is no longer considered valid.
10859 //
10860 // Type: string
10861 // RequirementLevel: Recommended
10862 // Stability: Development
10863 //
10864 // Examples: "2021-01-01T00:00:00.000Z"
10865 TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
10866
10867 // TLSClientNotBeforeKey is the attribute Key conforming to the
10868 // "tls.client.not_before" semantic conventions. It represents the date/Time
10869 // indicating when client certificate is first considered valid.
10870 //
10871 // Type: string
10872 // RequirementLevel: Recommended
10873 // Stability: Development
10874 //
10875 // Examples: "1970-01-01T00:00:00.000Z"
10876 TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
10877
10878 // TLSClientSubjectKey is the attribute Key conforming to the
10879 // "tls.client.subject" semantic conventions. It represents the distinguished
10880 // name of subject of the x.509 certificate presented by the client.
10881 //
10882 // Type: string
10883 // RequirementLevel: Recommended
10884 // Stability: Development
10885 //
10886 // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
10887 TLSClientSubjectKey = attribute.Key("tls.client.subject")
10888
10889 // TLSClientSupportedCiphersKey is the attribute Key conforming to the
10890 // "tls.client.supported_ciphers" semantic conventions. It represents the array
10891 // of ciphers offered by the client during the client hello.
10892 //
10893 // Type: string[]
10894 // RequirementLevel: Recommended
10895 // Stability: Development
10896 //
10897 // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
10898 // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
10899 TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
10900
10901 // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
10902 // conventions. It represents the string indicating the curve used for the given
10903 // cipher, when applicable.
10904 //
10905 // Type: string
10906 // RequirementLevel: Recommended
10907 // Stability: Development
10908 //
10909 // Examples: "secp256r1"
10910 TLSCurveKey = attribute.Key("tls.curve")
10911
10912 // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
10913 // semantic conventions. It represents the boolean flag indicating if the TLS
10914 // negotiation was successful and transitioned to an encrypted tunnel.
10915 //
10916 // Type: boolean
10917 // RequirementLevel: Recommended
10918 // Stability: Development
10919 //
10920 // Examples: true
10921 TLSEstablishedKey = attribute.Key("tls.established")
10922
10923 // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
10924 // semantic conventions. It represents the string indicating the protocol being
10925 // tunneled. Per the values in the [IANA registry], this string should be lower
10926 // case.
10927 //
10928 // Type: string
10929 // RequirementLevel: Recommended
10930 // Stability: Development
10931 //
10932 // Examples: "http/1.1"
10933 //
10934 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
10935 TLSNextProtocolKey = attribute.Key("tls.next_protocol")
10936
10937 // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
10938 // semantic conventions. It represents the normalized lowercase protocol name
10939 // parsed from original string of the negotiated [SSL/TLS protocol version].
10940 //
10941 // Type: Enum
10942 // RequirementLevel: Recommended
10943 // Stability: Development
10944 //
10945 // Examples:
10946 //
10947 // [SSL/TLS protocol version]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES
10948 TLSProtocolNameKey = attribute.Key("tls.protocol.name")
10949
10950 // TLSProtocolVersionKey is the attribute Key conforming to the
10951 // "tls.protocol.version" semantic conventions. It represents the numeric part
10952 // of the version parsed from the original string of the negotiated
10953 // [SSL/TLS protocol version].
10954 //
10955 // Type: string
10956 // RequirementLevel: Recommended
10957 // Stability: Development
10958 //
10959 // Examples: "1.2", "3"
10960 //
10961 // [SSL/TLS protocol version]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES
10962 TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
10963
10964 // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
10965 // conventions. It represents the boolean flag indicating if this TLS connection
10966 // was resumed from an existing TLS negotiation.
10967 //
10968 // Type: boolean
10969 // RequirementLevel: Recommended
10970 // Stability: Development
10971 //
10972 // Examples: true
10973 TLSResumedKey = attribute.Key("tls.resumed")
10974
10975 // TLSServerCertificateKey is the attribute Key conforming to the
10976 // "tls.server.certificate" semantic conventions. It represents the pEM-encoded
10977 // stand-alone certificate offered by the server. This is usually
10978 // mutually-exclusive of `server.certificate_chain` since this value also exists
10979 // in that list.
10980 //
10981 // Type: string
10982 // RequirementLevel: Recommended
10983 // Stability: Development
10984 //
10985 // Examples: "MII..."
10986 TLSServerCertificateKey = attribute.Key("tls.server.certificate")
10987
10988 // TLSServerCertificateChainKey is the attribute Key conforming to the
10989 // "tls.server.certificate_chain" semantic conventions. It represents the array
10990 // of PEM-encoded certificates that make up the certificate chain offered by the
10991 // server. This is usually mutually-exclusive of `server.certificate` since that
10992 // value should be the first certificate in the chain.
10993 //
10994 // Type: string[]
10995 // RequirementLevel: Recommended
10996 // Stability: Development
10997 //
10998 // Examples: "MII...", "MI..."
10999 TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
11000
11001 // TLSServerHashMd5Key is the attribute Key conforming to the
11002 // "tls.server.hash.md5" semantic conventions. It represents the certificate
11003 // fingerprint using the MD5 digest of DER-encoded version of certificate
11004 // offered by the server. For consistency with other hash values, this value
11005 // should be formatted as an uppercase hash.
11006 //
11007 // Type: string
11008 // RequirementLevel: Recommended
11009 // Stability: Development
11010 //
11011 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
11012 TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
11013
11014 // TLSServerHashSha1Key is the attribute Key conforming to the
11015 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
11016 // fingerprint using the SHA1 digest of DER-encoded version of certificate
11017 // offered by the server. For consistency with other hash values, this value
11018 // should be formatted as an uppercase hash.
11019 //
11020 // Type: string
11021 // RequirementLevel: Recommended
11022 // Stability: Development
11023 //
11024 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
11025 TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
11026
11027 // TLSServerHashSha256Key is the attribute Key conforming to the
11028 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
11029 // fingerprint using the SHA256 digest of DER-encoded version of certificate
11030 // offered by the server. For consistency with other hash values, this value
11031 // should be formatted as an uppercase hash.
11032 //
11033 // Type: string
11034 // RequirementLevel: Recommended
11035 // Stability: Development
11036 //
11037 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
11038 TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
11039
11040 // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
11041 // semantic conventions. It represents the distinguished name of [subject] of
11042 // the issuer of the x.509 certificate presented by the client.
11043 //
11044 // Type: string
11045 // RequirementLevel: Recommended
11046 // Stability: Development
11047 //
11048 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
11049 //
11050 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
11051 TLSServerIssuerKey = attribute.Key("tls.server.issuer")
11052
11053 // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
11054 // semantic conventions. It represents a hash that identifies servers based on
11055 // how they perform an SSL/TLS handshake.
11056 //
11057 // Type: string
11058 // RequirementLevel: Recommended
11059 // Stability: Development
11060 //
11061 // Examples: "d4e5b18d6b55c71272893221c96ba240"
11062 TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
11063
11064 // TLSServerNotAfterKey is the attribute Key conforming to the
11065 // "tls.server.not_after" semantic conventions. It represents the date/Time
11066 // indicating when server certificate is no longer considered valid.
11067 //
11068 // Type: string
11069 // RequirementLevel: Recommended
11070 // Stability: Development
11071 //
11072 // Examples: "2021-01-01T00:00:00.000Z"
11073 TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
11074
11075 // TLSServerNotBeforeKey is the attribute Key conforming to the
11076 // "tls.server.not_before" semantic conventions. It represents the date/Time
11077 // indicating when server certificate is first considered valid.
11078 //
11079 // Type: string
11080 // RequirementLevel: Recommended
11081 // Stability: Development
11082 //
11083 // Examples: "1970-01-01T00:00:00.000Z"
11084 TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
11085
11086 // TLSServerSubjectKey is the attribute Key conforming to the
11087 // "tls.server.subject" semantic conventions. It represents the distinguished
11088 // name of subject of the x.509 certificate presented by the server.
11089 //
11090 // Type: string
11091 // RequirementLevel: Recommended
11092 // Stability: Development
11093 //
11094 // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
11095 TLSServerSubjectKey = attribute.Key("tls.server.subject")
11096 )
11097
11098 // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
11099 // semantic conventions. It represents the string indicating the [cipher] used
11100 // during the current connection.
11101 //
11102 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
11103 func TLSCipher(val string) attribute.KeyValue {
11104 return TLSCipherKey.String(val)
11105 }
11106
11107 // TLSClientCertificate returns an attribute KeyValue conforming to the
11108 // "tls.client.certificate" semantic conventions. It represents the pEM-encoded
11109 // stand-alone certificate offered by the client. This is usually
11110 // mutually-exclusive of `client.certificate_chain` since this value also exists
11111 // in that list.
11112 func TLSClientCertificate(val string) attribute.KeyValue {
11113 return TLSClientCertificateKey.String(val)
11114 }
11115
11116 // TLSClientCertificateChain returns an attribute KeyValue conforming to the
11117 // "tls.client.certificate_chain" semantic conventions. It represents the array
11118 // of PEM-encoded certificates that make up the certificate chain offered by the
11119 // client. This is usually mutually-exclusive of `client.certificate` since that
11120 // value should be the first certificate in the chain.
11121 func TLSClientCertificateChain(val ...string) attribute.KeyValue {
11122 return TLSClientCertificateChainKey.StringSlice(val)
11123 }
11124
11125 // TLSClientHashMd5 returns an attribute KeyValue conforming to the
11126 // "tls.client.hash.md5" semantic conventions. It represents the certificate
11127 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
11128 // by the client. For consistency with other hash values, this value should be
11129 // formatted as an uppercase hash.
11130 func TLSClientHashMd5(val string) attribute.KeyValue {
11131 return TLSClientHashMd5Key.String(val)
11132 }
11133
11134 // TLSClientHashSha1 returns an attribute KeyValue conforming to the
11135 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
11136 // fingerprint using the SHA1 digest of DER-encoded version of certificate
11137 // offered by the client. For consistency with other hash values, this value
11138 // should be formatted as an uppercase hash.
11139 func TLSClientHashSha1(val string) attribute.KeyValue {
11140 return TLSClientHashSha1Key.String(val)
11141 }
11142
11143 // TLSClientHashSha256 returns an attribute KeyValue conforming to the
11144 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
11145 // fingerprint using the SHA256 digest of DER-encoded version of certificate
11146 // offered by the client. For consistency with other hash values, this value
11147 // should be formatted as an uppercase hash.
11148 func TLSClientHashSha256(val string) attribute.KeyValue {
11149 return TLSClientHashSha256Key.String(val)
11150 }
11151
11152 // TLSClientIssuer returns an attribute KeyValue conforming to the
11153 // "tls.client.issuer" semantic conventions. It represents the distinguished name
11154 // of [subject] of the issuer of the x.509 certificate presented by the client.
11155 //
11156 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
11157 func TLSClientIssuer(val string) attribute.KeyValue {
11158 return TLSClientIssuerKey.String(val)
11159 }
11160
11161 // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
11162 // semantic conventions. It represents a hash that identifies clients based on
11163 // how they perform an SSL/TLS handshake.
11164 func TLSClientJa3(val string) attribute.KeyValue {
11165 return TLSClientJa3Key.String(val)
11166 }
11167
11168 // TLSClientNotAfter returns an attribute KeyValue conforming to the
11169 // "tls.client.not_after" semantic conventions. It represents the date/Time
11170 // indicating when client certificate is no longer considered valid.
11171 func TLSClientNotAfter(val string) attribute.KeyValue {
11172 return TLSClientNotAfterKey.String(val)
11173 }
11174
11175 // TLSClientNotBefore returns an attribute KeyValue conforming to the
11176 // "tls.client.not_before" semantic conventions. It represents the date/Time
11177 // indicating when client certificate is first considered valid.
11178 func TLSClientNotBefore(val string) attribute.KeyValue {
11179 return TLSClientNotBeforeKey.String(val)
11180 }
11181
11182 // TLSClientSubject returns an attribute KeyValue conforming to the
11183 // "tls.client.subject" semantic conventions. It represents the distinguished
11184 // name of subject of the x.509 certificate presented by the client.
11185 func TLSClientSubject(val string) attribute.KeyValue {
11186 return TLSClientSubjectKey.String(val)
11187 }
11188
11189 // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
11190 // "tls.client.supported_ciphers" semantic conventions. It represents the array
11191 // of ciphers offered by the client during the client hello.
11192 func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
11193 return TLSClientSupportedCiphersKey.StringSlice(val)
11194 }
11195
11196 // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
11197 // conventions. It represents the string indicating the curve used for the given
11198 // cipher, when applicable.
11199 func TLSCurve(val string) attribute.KeyValue {
11200 return TLSCurveKey.String(val)
11201 }
11202
11203 // TLSEstablished returns an attribute KeyValue conforming to the
11204 // "tls.established" semantic conventions. It represents the boolean flag
11205 // indicating if the TLS negotiation was successful and transitioned to an
11206 // encrypted tunnel.
11207 func TLSEstablished(val bool) attribute.KeyValue {
11208 return TLSEstablishedKey.Bool(val)
11209 }
11210
11211 // TLSNextProtocol returns an attribute KeyValue conforming to the
11212 // "tls.next_protocol" semantic conventions. It represents the string indicating
11213 // the protocol being tunneled. Per the values in the [IANA registry], this
11214 // string should be lower case.
11215 //
11216 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
11217 func TLSNextProtocol(val string) attribute.KeyValue {
11218 return TLSNextProtocolKey.String(val)
11219 }
11220
11221 // TLSProtocolVersion returns an attribute KeyValue conforming to the
11222 // "tls.protocol.version" semantic conventions. It represents the numeric part of
11223 // the version parsed from the original string of the negotiated
11224 // [SSL/TLS protocol version].
11225 //
11226 // [SSL/TLS protocol version]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES
11227 func TLSProtocolVersion(val string) attribute.KeyValue {
11228 return TLSProtocolVersionKey.String(val)
11229 }
11230
11231 // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
11232 // semantic conventions. It represents the boolean flag indicating if this TLS
11233 // connection was resumed from an existing TLS negotiation.
11234 func TLSResumed(val bool) attribute.KeyValue {
11235 return TLSResumedKey.Bool(val)
11236 }
11237
11238 // TLSServerCertificate returns an attribute KeyValue conforming to the
11239 // "tls.server.certificate" semantic conventions. It represents the pEM-encoded
11240 // stand-alone certificate offered by the server. This is usually
11241 // mutually-exclusive of `server.certificate_chain` since this value also exists
11242 // in that list.
11243 func TLSServerCertificate(val string) attribute.KeyValue {
11244 return TLSServerCertificateKey.String(val)
11245 }
11246
11247 // TLSServerCertificateChain returns an attribute KeyValue conforming to the
11248 // "tls.server.certificate_chain" semantic conventions. It represents the array
11249 // of PEM-encoded certificates that make up the certificate chain offered by the
11250 // server. This is usually mutually-exclusive of `server.certificate` since that
11251 // value should be the first certificate in the chain.
11252 func TLSServerCertificateChain(val ...string) attribute.KeyValue {
11253 return TLSServerCertificateChainKey.StringSlice(val)
11254 }
11255
11256 // TLSServerHashMd5 returns an attribute KeyValue conforming to the
11257 // "tls.server.hash.md5" semantic conventions. It represents the certificate
11258 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
11259 // by the server. For consistency with other hash values, this value should be
11260 // formatted as an uppercase hash.
11261 func TLSServerHashMd5(val string) attribute.KeyValue {
11262 return TLSServerHashMd5Key.String(val)
11263 }
11264
11265 // TLSServerHashSha1 returns an attribute KeyValue conforming to the
11266 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
11267 // fingerprint using the SHA1 digest of DER-encoded version of certificate
11268 // offered by the server. For consistency with other hash values, this value
11269 // should be formatted as an uppercase hash.
11270 func TLSServerHashSha1(val string) attribute.KeyValue {
11271 return TLSServerHashSha1Key.String(val)
11272 }
11273
11274 // TLSServerHashSha256 returns an attribute KeyValue conforming to the
11275 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
11276 // fingerprint using the SHA256 digest of DER-encoded version of certificate
11277 // offered by the server. For consistency with other hash values, this value
11278 // should be formatted as an uppercase hash.
11279 func TLSServerHashSha256(val string) attribute.KeyValue {
11280 return TLSServerHashSha256Key.String(val)
11281 }
11282
11283 // TLSServerIssuer returns an attribute KeyValue conforming to the
11284 // "tls.server.issuer" semantic conventions. It represents the distinguished name
11285 // of [subject] of the issuer of the x.509 certificate presented by the client.
11286 //
11287 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
11288 func TLSServerIssuer(val string) attribute.KeyValue {
11289 return TLSServerIssuerKey.String(val)
11290 }
11291
11292 // TLSServerJa3s returns an attribute KeyValue conforming to the
11293 // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
11294 // servers based on how they perform an SSL/TLS handshake.
11295 func TLSServerJa3s(val string) attribute.KeyValue {
11296 return TLSServerJa3sKey.String(val)
11297 }
11298
11299 // TLSServerNotAfter returns an attribute KeyValue conforming to the
11300 // "tls.server.not_after" semantic conventions. It represents the date/Time
11301 // indicating when server certificate is no longer considered valid.
11302 func TLSServerNotAfter(val string) attribute.KeyValue {
11303 return TLSServerNotAfterKey.String(val)
11304 }
11305
11306 // TLSServerNotBefore returns an attribute KeyValue conforming to the
11307 // "tls.server.not_before" semantic conventions. It represents the date/Time
11308 // indicating when server certificate is first considered valid.
11309 func TLSServerNotBefore(val string) attribute.KeyValue {
11310 return TLSServerNotBeforeKey.String(val)
11311 }
11312
11313 // TLSServerSubject returns an attribute KeyValue conforming to the
11314 // "tls.server.subject" semantic conventions. It represents the distinguished
11315 // name of subject of the x.509 certificate presented by the server.
11316 func TLSServerSubject(val string) attribute.KeyValue {
11317 return TLSServerSubjectKey.String(val)
11318 }
11319
11320 // Enum values for tls.protocol.name
11321 var (
11322 // ssl
11323 // Stability: development
11324 TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
11325 // tls
11326 // Stability: development
11327 TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
11328 )
11329
11330 // Namespace: url
11331 const (
11332 // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
11333 // conventions. It represents the domain extracted from the `url.full`, such as
11334 // "opentelemetry.io".
11335 //
11336 // Type: string
11337 // RequirementLevel: Recommended
11338 // Stability: Development
11339 //
11340 // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
11341 // "[1080:0:0:0:8:800:200C:417A]"
11342 // Note: In some cases a URL may refer to an IP and/or port directly, without a
11343 // domain name. In this case, the IP address would go to the domain field. If
11344 // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
11345 // and `]` characters should also be captured in the domain field.
11346 //
11347 // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
11348 URLDomainKey = attribute.Key("url.domain")
11349
11350 // URLExtensionKey is the attribute Key conforming to the "url.extension"
11351 // semantic conventions. It represents the file extension extracted from the
11352 // `url.full`, excluding the leading dot.
11353 //
11354 // Type: string
11355 // RequirementLevel: Recommended
11356 // Stability: Development
11357 //
11358 // Examples: "png", "gz"
11359 // Note: The file extension is only set if it exists, as not every url has a
11360 // file extension. When the file name has multiple extensions `example.tar.gz`,
11361 // only the last one should be captured `gz`, not `tar.gz`.
11362 URLExtensionKey = attribute.Key("url.extension")
11363
11364 // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
11365 // conventions. It represents the [URI fragment] component.
11366 //
11367 // Type: string
11368 // RequirementLevel: Recommended
11369 // Stability: Stable
11370 //
11371 // Examples: "SemConv"
11372 //
11373 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
11374 URLFragmentKey = attribute.Key("url.fragment")
11375
11376 // URLFullKey is the attribute Key conforming to the "url.full" semantic
11377 // conventions. It represents the absolute URL describing a network resource
11378 // according to [RFC3986].
11379 //
11380 // Type: string
11381 // RequirementLevel: Recommended
11382 // Stability: Stable
11383 //
11384 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
11385 // Note: For network calls, URL usually has
11386 // `scheme://host[:port][path][?query][#fragment]` format, where the fragment
11387 // is not transmitted over HTTP, but if it is known, it SHOULD be included
11388 // nevertheless.
11389 //
11390 // `url.full` MUST NOT contain credentials passed via URL in form of
11391 // `https://username:[email protected]/`.
11392 // In such case username and password SHOULD be redacted and attribute's value
11393 // SHOULD be `https://REDACTED:[email protected]/`.
11394 //
11395 // `url.full` SHOULD capture the absolute URL when it is available (or can be
11396 // reconstructed).
11397 //
11398 // Sensitive content provided in `url.full` SHOULD be scrubbed when
11399 // instrumentations can identify it.
11400 //
11401 //
11402 // Query string values for the following keys SHOULD be redacted by default and
11403 // replaced by the
11404 // value `REDACTED`:
11405 //
11406 // - [`AWSAccessKeyId`]
11407 // - [`Signature`]
11408 // - [`sig`]
11409 // - [`X-Goog-Signature`]
11410 //
11411 // This list is subject to change over time.
11412 //
11413 // When a query string value is redacted, the query string key SHOULD still be
11414 // preserved, e.g.
11415 // `https://www.example.com/path?color=blue&sig=REDACTED`.
11416 //
11417 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
11418 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
11419 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
11420 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
11421 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
11422 URLFullKey = attribute.Key("url.full")
11423
11424 // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
11425 // conventions. It represents the unmodified original URL as seen in the event
11426 // source.
11427 //
11428 // Type: string
11429 // RequirementLevel: Recommended
11430 // Stability: Development
11431 //
11432 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
11433 // "search?q=OpenTelemetry"
11434 // Note: In network monitoring, the observed URL may be a full URL, whereas in
11435 // access logs, the URL is often just represented as a path. This field is meant
11436 // to represent the URL as it was observed, complete or not.
11437 // `url.original` might contain credentials passed via URL in form of
11438 // `https://username:[email protected]/`. In such case password and
11439 // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
11440 URLOriginalKey = attribute.Key("url.original")
11441
11442 // URLPathKey is the attribute Key conforming to the "url.path" semantic
11443 // conventions. It represents the [URI path] component.
11444 //
11445 // Type: string
11446 // RequirementLevel: Recommended
11447 // Stability: Stable
11448 //
11449 // Examples: "/search"
11450 // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
11451 // instrumentations can identify it.
11452 //
11453 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
11454 URLPathKey = attribute.Key("url.path")
11455
11456 // URLPortKey is the attribute Key conforming to the "url.port" semantic
11457 // conventions. It represents the port extracted from the `url.full`.
11458 //
11459 // Type: int
11460 // RequirementLevel: Recommended
11461 // Stability: Development
11462 //
11463 // Examples: 443
11464 URLPortKey = attribute.Key("url.port")
11465
11466 // URLQueryKey is the attribute Key conforming to the "url.query" semantic
11467 // conventions. It represents the [URI query] component.
11468 //
11469 // Type: string
11470 // RequirementLevel: Recommended
11471 // Stability: Stable
11472 //
11473 // Examples: "q=OpenTelemetry"
11474 // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
11475 // instrumentations can identify it.
11476 //
11477 //
11478 // Query string values for the following keys SHOULD be redacted by default and
11479 // replaced by the value `REDACTED`:
11480 //
11481 // - [`AWSAccessKeyId`]
11482 // - [`Signature`]
11483 // - [`sig`]
11484 // - [`X-Goog-Signature`]
11485 //
11486 // This list is subject to change over time.
11487 //
11488 // When a query string value is redacted, the query string key SHOULD still be
11489 // preserved, e.g.
11490 // `q=OpenTelemetry&sig=REDACTED`.
11491 //
11492 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
11493 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
11494 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
11495 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
11496 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
11497 URLQueryKey = attribute.Key("url.query")
11498
11499 // URLRegisteredDomainKey is the attribute Key conforming to the
11500 // "url.registered_domain" semantic conventions. It represents the highest
11501 // registered url domain, stripped of the subdomain.
11502 //
11503 // Type: string
11504 // RequirementLevel: Recommended
11505 // Stability: Development
11506 //
11507 // Examples: "example.com", "foo.co.uk"
11508 // Note: This value can be determined precisely with the [public suffix list].
11509 // For example, the registered domain for `foo.example.com` is `example.com`.
11510 // Trying to approximate this by simply taking the last two labels will not work
11511 // well for TLDs such as `co.uk`.
11512 //
11513 // [public suffix list]: http://publicsuffix.org
11514 URLRegisteredDomainKey = attribute.Key("url.registered_domain")
11515
11516 // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
11517 // conventions. It represents the [URI scheme] component identifying the used
11518 // protocol.
11519 //
11520 // Type: string
11521 // RequirementLevel: Recommended
11522 // Stability: Stable
11523 //
11524 // Examples: "https", "ftp", "telnet"
11525 //
11526 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
11527 URLSchemeKey = attribute.Key("url.scheme")
11528
11529 // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
11530 // semantic conventions. It represents the subdomain portion of a fully
11531 // qualified domain name includes all of the names except the host name under
11532 // the registered_domain. In a partially qualified domain, or if the
11533 // qualification level of the full name cannot be determined, subdomain contains
11534 // all of the names below the registered domain.
11535 //
11536 // Type: string
11537 // RequirementLevel: Recommended
11538 // Stability: Development
11539 //
11540 // Examples: "east", "sub2.sub1"
11541 // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
11542 // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
11543 // subdomain field should contain `sub2.sub1`, with no trailing period.
11544 URLSubdomainKey = attribute.Key("url.subdomain")
11545
11546 // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
11547 // conventions. It represents the low-cardinality template of an
11548 // [absolute path reference].
11549 //
11550 // Type: string
11551 // RequirementLevel: Recommended
11552 // Stability: Development
11553 //
11554 // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
11555 //
11556 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
11557 URLTemplateKey = attribute.Key("url.template")
11558
11559 // URLTopLevelDomainKey is the attribute Key conforming to the
11560 // "url.top_level_domain" semantic conventions. It represents the effective top
11561 // level domain (eTLD), also known as the domain suffix, is the last part of the
11562 // domain name. For example, the top level domain for example.com is `com`.
11563 //
11564 // Type: string
11565 // RequirementLevel: Recommended
11566 // Stability: Development
11567 //
11568 // Examples: "com", "co.uk"
11569 // Note: This value can be determined precisely with the [public suffix list].
11570 //
11571 // [public suffix list]: http://publicsuffix.org
11572 URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
11573 )
11574
11575 // URLDomain returns an attribute KeyValue conforming to the "url.domain"
11576 // semantic conventions. It represents the domain extracted from the `url.full`,
11577 // such as "opentelemetry.io".
11578 func URLDomain(val string) attribute.KeyValue {
11579 return URLDomainKey.String(val)
11580 }
11581
11582 // URLExtension returns an attribute KeyValue conforming to the "url.extension"
11583 // semantic conventions. It represents the file extension extracted from the
11584 // `url.full`, excluding the leading dot.
11585 func URLExtension(val string) attribute.KeyValue {
11586 return URLExtensionKey.String(val)
11587 }
11588
11589 // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
11590 // semantic conventions. It represents the [URI fragment] component.
11591 //
11592 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
11593 func URLFragment(val string) attribute.KeyValue {
11594 return URLFragmentKey.String(val)
11595 }
11596
11597 // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
11598 // conventions. It represents the absolute URL describing a network resource
11599 // according to [RFC3986].
11600 //
11601 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
11602 func URLFull(val string) attribute.KeyValue {
11603 return URLFullKey.String(val)
11604 }
11605
11606 // URLOriginal returns an attribute KeyValue conforming to the "url.original"
11607 // semantic conventions. It represents the unmodified original URL as seen in the
11608 // event source.
11609 func URLOriginal(val string) attribute.KeyValue {
11610 return URLOriginalKey.String(val)
11611 }
11612
11613 // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
11614 // conventions. It represents the [URI path] component.
11615 //
11616 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
11617 func URLPath(val string) attribute.KeyValue {
11618 return URLPathKey.String(val)
11619 }
11620
11621 // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
11622 // conventions. It represents the port extracted from the `url.full`.
11623 func URLPort(val int) attribute.KeyValue {
11624 return URLPortKey.Int(val)
11625 }
11626
11627 // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
11628 // conventions. It represents the [URI query] component.
11629 //
11630 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
11631 func URLQuery(val string) attribute.KeyValue {
11632 return URLQueryKey.String(val)
11633 }
11634
11635 // URLRegisteredDomain returns an attribute KeyValue conforming to the
11636 // "url.registered_domain" semantic conventions. It represents the highest
11637 // registered url domain, stripped of the subdomain.
11638 func URLRegisteredDomain(val string) attribute.KeyValue {
11639 return URLRegisteredDomainKey.String(val)
11640 }
11641
11642 // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
11643 // semantic conventions. It represents the [URI scheme] component identifying the
11644 // used protocol.
11645 //
11646 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
11647 func URLScheme(val string) attribute.KeyValue {
11648 return URLSchemeKey.String(val)
11649 }
11650
11651 // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
11652 // semantic conventions. It represents the subdomain portion of a fully qualified
11653 // domain name includes all of the names except the host name under the
11654 // registered_domain. In a partially qualified domain, or if the qualification
11655 // level of the full name cannot be determined, subdomain contains all of the
11656 // names below the registered domain.
11657 func URLSubdomain(val string) attribute.KeyValue {
11658 return URLSubdomainKey.String(val)
11659 }
11660
11661 // URLTemplate returns an attribute KeyValue conforming to the "url.template"
11662 // semantic conventions. It represents the low-cardinality template of an
11663 // [absolute path reference].
11664 //
11665 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
11666 func URLTemplate(val string) attribute.KeyValue {
11667 return URLTemplateKey.String(val)
11668 }
11669
11670 // URLTopLevelDomain returns an attribute KeyValue conforming to the
11671 // "url.top_level_domain" semantic conventions. It represents the effective top
11672 // level domain (eTLD), also known as the domain suffix, is the last part of the
11673 // domain name. For example, the top level domain for example.com is `com`.
11674 func URLTopLevelDomain(val string) attribute.KeyValue {
11675 return URLTopLevelDomainKey.String(val)
11676 }
11677
11678 // Namespace: user
11679 const (
11680 // UserEmailKey is the attribute Key conforming to the "user.email" semantic
11681 // conventions. It represents the user email address.
11682 //
11683 // Type: string
11684 // RequirementLevel: Recommended
11685 // Stability: Development
11686 //
11687 // Examples: "[email protected]"
11688 UserEmailKey = attribute.Key("user.email")
11689
11690 // UserFullNameKey is the attribute Key conforming to the "user.full_name"
11691 // semantic conventions. It represents the user's full name.
11692 //
11693 // Type: string
11694 // RequirementLevel: Recommended
11695 // Stability: Development
11696 //
11697 // Examples: "Albert Einstein"
11698 UserFullNameKey = attribute.Key("user.full_name")
11699
11700 // UserHashKey is the attribute Key conforming to the "user.hash" semantic
11701 // conventions. It represents the unique user hash to correlate information for
11702 // a user in anonymized form.
11703 //
11704 // Type: string
11705 // RequirementLevel: Recommended
11706 // Stability: Development
11707 //
11708 // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
11709 // Note: Useful if `user.id` or `user.name` contain confidential information and
11710 // cannot be used.
11711 UserHashKey = attribute.Key("user.hash")
11712
11713 // UserIDKey is the attribute Key conforming to the "user.id" semantic
11714 // conventions. It represents the unique identifier of the user.
11715 //
11716 // Type: string
11717 // RequirementLevel: Recommended
11718 // Stability: Development
11719 //
11720 // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
11721 UserIDKey = attribute.Key("user.id")
11722
11723 // UserNameKey is the attribute Key conforming to the "user.name" semantic
11724 // conventions. It represents the short name or login/username of the user.
11725 //
11726 // Type: string
11727 // RequirementLevel: Recommended
11728 // Stability: Development
11729 //
11730 // Examples: "a.einstein"
11731 UserNameKey = attribute.Key("user.name")
11732
11733 // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
11734 // conventions. It represents the array of user roles at the time of the event.
11735 //
11736 // Type: string[]
11737 // RequirementLevel: Recommended
11738 // Stability: Development
11739 //
11740 // Examples: "admin", "reporting_user"
11741 UserRolesKey = attribute.Key("user.roles")
11742 )
11743
11744 // UserEmail returns an attribute KeyValue conforming to the "user.email"
11745 // semantic conventions. It represents the user email address.
11746 func UserEmail(val string) attribute.KeyValue {
11747 return UserEmailKey.String(val)
11748 }
11749
11750 // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
11751 // semantic conventions. It represents the user's full name.
11752 func UserFullName(val string) attribute.KeyValue {
11753 return UserFullNameKey.String(val)
11754 }
11755
11756 // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
11757 // conventions. It represents the unique user hash to correlate information for a
11758 // user in anonymized form.
11759 func UserHash(val string) attribute.KeyValue {
11760 return UserHashKey.String(val)
11761 }
11762
11763 // UserID returns an attribute KeyValue conforming to the "user.id" semantic
11764 // conventions. It represents the unique identifier of the user.
11765 func UserID(val string) attribute.KeyValue {
11766 return UserIDKey.String(val)
11767 }
11768
11769 // UserName returns an attribute KeyValue conforming to the "user.name" semantic
11770 // conventions. It represents the short name or login/username of the user.
11771 func UserName(val string) attribute.KeyValue {
11772 return UserNameKey.String(val)
11773 }
11774
11775 // UserRoles returns an attribute KeyValue conforming to the "user.roles"
11776 // semantic conventions. It represents the array of user roles at the time of the
11777 // event.
11778 func UserRoles(val ...string) attribute.KeyValue {
11779 return UserRolesKey.StringSlice(val)
11780 }
11781
11782 // Namespace: user_agent
11783 const (
11784 // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
11785 // semantic conventions. It represents the name of the user-agent extracted from
11786 // original. Usually refers to the browser's name.
11787 //
11788 // Type: string
11789 // RequirementLevel: Recommended
11790 // Stability: Development
11791 //
11792 // Examples: "Safari", "YourApp"
11793 // Note: [Example] of extracting browser's name from original string. In the
11794 // case of using a user-agent for non-browser products, such as microservices
11795 // with multiple names/versions inside the `user_agent.original`, the most
11796 // significant name SHOULD be selected. In such a scenario it should align with
11797 // `user_agent.version`
11798 //
11799 // [Example]: https://www.whatsmyua.info
11800 UserAgentNameKey = attribute.Key("user_agent.name")
11801
11802 // UserAgentOriginalKey is the attribute Key conforming to the
11803 // "user_agent.original" semantic conventions. It represents the value of the
11804 // [HTTP User-Agent] header sent by the client.
11805 //
11806 // Type: string
11807 // RequirementLevel: Recommended
11808 // Stability: Stable
11809 //
11810 // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
11811 // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
11812 // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
11813 // grpc-java-okhttp/1.27.2"
11814 //
11815 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
11816 UserAgentOriginalKey = attribute.Key("user_agent.original")
11817
11818 // UserAgentSyntheticTypeKey is the attribute Key conforming to the
11819 // "user_agent.synthetic.type" semantic conventions. It represents the specifies
11820 // the category of synthetic traffic, such as tests or bots.
11821 //
11822 // Type: Enum
11823 // RequirementLevel: Recommended
11824 // Stability: Development
11825 //
11826 // Examples:
11827 // Note: This attribute MAY be derived from the contents of the
11828 // `user_agent.original` attribute. Components that populate the attribute are
11829 // responsible for determining what they consider to be synthetic bot or test
11830 // traffic. This attribute can either be set for self-identification purposes,
11831 // or on telemetry detected to be generated as a result of a synthetic request.
11832 // This attribute is useful for distinguishing between genuine client traffic
11833 // and synthetic traffic generated by bots or tests.
11834 UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type")
11835
11836 // UserAgentVersionKey is the attribute Key conforming to the
11837 // "user_agent.version" semantic conventions. It represents the version of the
11838 // user-agent extracted from original. Usually refers to the browser's version.
11839 //
11840 // Type: string
11841 // RequirementLevel: Recommended
11842 // Stability: Development
11843 //
11844 // Examples: "14.1.2", "1.0.0"
11845 // Note: [Example] of extracting browser's version from original string. In the
11846 // case of using a user-agent for non-browser products, such as microservices
11847 // with multiple names/versions inside the `user_agent.original`, the most
11848 // significant version SHOULD be selected. In such a scenario it should align
11849 // with `user_agent.name`
11850 //
11851 // [Example]: https://www.whatsmyua.info
11852 UserAgentVersionKey = attribute.Key("user_agent.version")
11853 )
11854
11855 // UserAgentName returns an attribute KeyValue conforming to the
11856 // "user_agent.name" semantic conventions. It represents the name of the
11857 // user-agent extracted from original. Usually refers to the browser's name.
11858 func UserAgentName(val string) attribute.KeyValue {
11859 return UserAgentNameKey.String(val)
11860 }
11861
11862 // UserAgentOriginal returns an attribute KeyValue conforming to the
11863 // "user_agent.original" semantic conventions. It represents the value of the
11864 // [HTTP User-Agent] header sent by the client.
11865 //
11866 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
11867 func UserAgentOriginal(val string) attribute.KeyValue {
11868 return UserAgentOriginalKey.String(val)
11869 }
11870
11871 // UserAgentVersion returns an attribute KeyValue conforming to the
11872 // "user_agent.version" semantic conventions. It represents the version of the
11873 // user-agent extracted from original. Usually refers to the browser's version.
11874 func UserAgentVersion(val string) attribute.KeyValue {
11875 return UserAgentVersionKey.String(val)
11876 }
11877
11878 // Enum values for user_agent.synthetic.type
11879 var (
11880 // Bot source.
11881 // Stability: development
11882 UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot")
11883 // Synthetic test source.
11884 // Stability: development
11885 UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test")
11886 )
11887
11888 // Namespace: vcs
11889 const (
11890 // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id"
11891 // semantic conventions. It represents the ID of the change (pull request/merge
11892 // request/changelist) if applicable. This is usually a unique (within
11893 // repository) identifier generated by the VCS system.
11894 //
11895 // Type: string
11896 // RequirementLevel: Recommended
11897 // Stability: Development
11898 //
11899 // Examples: "123"
11900 VCSChangeIDKey = attribute.Key("vcs.change.id")
11901
11902 // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state"
11903 // semantic conventions. It represents the state of the change (pull
11904 // request/merge request/changelist).
11905 //
11906 // Type: Enum
11907 // RequirementLevel: Recommended
11908 // Stability: Development
11909 //
11910 // Examples: "open", "closed", "merged"
11911 VCSChangeStateKey = attribute.Key("vcs.change.state")
11912
11913 // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title"
11914 // semantic conventions. It represents the human readable title of the change
11915 // (pull request/merge request/changelist). This title is often a brief summary
11916 // of the change and may get merged in to a ref as the commit summary.
11917 //
11918 // Type: string
11919 // RequirementLevel: Recommended
11920 // Stability: Development
11921 //
11922 // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
11923 // dependency"
11924 VCSChangeTitleKey = attribute.Key("vcs.change.title")
11925
11926 // VCSLineChangeTypeKey is the attribute Key conforming to the
11927 // "vcs.line_change.type" semantic conventions. It represents the type of line
11928 // change being measured on a branch or change.
11929 //
11930 // Type: Enum
11931 // RequirementLevel: Recommended
11932 // Stability: Development
11933 //
11934 // Examples: "added", "removed"
11935 VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type")
11936
11937 // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name"
11938 // semantic conventions. It represents the name of the [reference] such as
11939 // **branch** or **tag** in the repository.
11940 //
11941 // Type: string
11942 // RequirementLevel: Recommended
11943 // Stability: Development
11944 //
11945 // Examples: "my-feature-branch", "tag-1-test"
11946 // Note: `base` refers to the starting point of a change. For example, `main`
11947 // would be the base reference of type branch if you've created a new
11948 // reference of type branch from it and created new commits.
11949 //
11950 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
11951 VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name")
11952
11953 // VCSRefBaseRevisionKey is the attribute Key conforming to the
11954 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
11955 // literally [revised version], The revision most often refers to a commit
11956 // object in Git, or a revision number in SVN.
11957 //
11958 // Type: string
11959 // RequirementLevel: Recommended
11960 // Stability: Development
11961 //
11962 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
11963 // "main", "123", "HEAD"
11964 // Note: `base` refers to the starting point of a change. For example, `main`
11965 // would be the base reference of type branch if you've created a new
11966 // reference of type branch from it and created new commits. The
11967 // revision can be a full [hash value (see
11968 // glossary)],
11969 // of the recorded change to a ref within a repository pointing to a
11970 // commit [commit] object. It does
11971 // not necessarily have to be a hash; it can simply define a [revision
11972 // number]
11973 // which is an integer that is monotonically increasing. In cases where
11974 // it is identical to the `ref.base.name`, it SHOULD still be included.
11975 // It is up to the implementer to decide which value to set as the
11976 // revision based on the VCS system and situational context.
11977 //
11978 // [revised version]: https://www.merriam-webster.com/dictionary/revision
11979 // [hash value (see
11980 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
11981 // [commit]: https://git-scm.com/docs/git-commit
11982 // [revision
11983 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
11984 VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision")
11985
11986 // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type"
11987 // semantic conventions. It represents the type of the [reference] in the
11988 // repository.
11989 //
11990 // Type: Enum
11991 // RequirementLevel: Recommended
11992 // Stability: Development
11993 //
11994 // Examples: "branch", "tag"
11995 // Note: `base` refers to the starting point of a change. For example, `main`
11996 // would be the base reference of type branch if you've created a new
11997 // reference of type branch from it and created new commits.
11998 //
11999 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12000 VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type")
12001
12002 // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name"
12003 // semantic conventions. It represents the name of the [reference] such as
12004 // **branch** or **tag** in the repository.
12005 //
12006 // Type: string
12007 // RequirementLevel: Recommended
12008 // Stability: Development
12009 //
12010 // Examples: "my-feature-branch", "tag-1-test"
12011 // Note: `head` refers to where you are right now; the current reference at a
12012 // given time.
12013 //
12014 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12015 VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name")
12016
12017 // VCSRefHeadRevisionKey is the attribute Key conforming to the
12018 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
12019 // literally [revised version], The revision most often refers to a commit
12020 // object in Git, or a revision number in SVN.
12021 //
12022 // Type: string
12023 // RequirementLevel: Recommended
12024 // Stability: Development
12025 //
12026 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
12027 // "main", "123", "HEAD"
12028 // Note: `head` refers to where you are right now; the current reference at a
12029 // given time.The revision can be a full [hash value (see
12030 // glossary)],
12031 // of the recorded change to a ref within a repository pointing to a
12032 // commit [commit] object. It does
12033 // not necessarily have to be a hash; it can simply define a [revision
12034 // number]
12035 // which is an integer that is monotonically increasing. In cases where
12036 // it is identical to the `ref.head.name`, it SHOULD still be included.
12037 // It is up to the implementer to decide which value to set as the
12038 // revision based on the VCS system and situational context.
12039 //
12040 // [revised version]: https://www.merriam-webster.com/dictionary/revision
12041 // [hash value (see
12042 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
12043 // [commit]: https://git-scm.com/docs/git-commit
12044 // [revision
12045 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
12046 VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision")
12047
12048 // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type"
12049 // semantic conventions. It represents the type of the [reference] in the
12050 // repository.
12051 //
12052 // Type: Enum
12053 // RequirementLevel: Recommended
12054 // Stability: Development
12055 //
12056 // Examples: "branch", "tag"
12057 // Note: `head` refers to where you are right now; the current reference at a
12058 // given time.
12059 //
12060 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12061 VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type")
12062
12063 // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic
12064 // conventions. It represents the type of the [reference] in the repository.
12065 //
12066 // Type: Enum
12067 // RequirementLevel: Recommended
12068 // Stability: Development
12069 //
12070 // Examples: "branch", "tag"
12071 //
12072 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12073 VCSRefTypeKey = attribute.Key("vcs.ref.type")
12074
12075 // VCSRepositoryNameKey is the attribute Key conforming to the
12076 // "vcs.repository.name" semantic conventions. It represents the human readable
12077 // name of the repository. It SHOULD NOT include any additional identifier like
12078 // Group/SubGroup in GitLab or organization in GitHub.
12079 //
12080 // Type: string
12081 // RequirementLevel: Recommended
12082 // Stability: Development
12083 //
12084 // Examples: "semantic-conventions", "my-cool-repo"
12085 // Note: Due to it only being the name, it can clash with forks of the same
12086 // repository if collecting telemetry across multiple orgs or groups in
12087 // the same backends.
12088 VCSRepositoryNameKey = attribute.Key("vcs.repository.name")
12089
12090 // VCSRepositoryURLFullKey is the attribute Key conforming to the
12091 // "vcs.repository.url.full" semantic conventions. It represents the
12092 // [canonical URL] of the repository providing the complete HTTP(S) address in
12093 // order to locate and identify the repository through a browser.
12094 //
12095 // Type: string
12096 // RequirementLevel: Recommended
12097 // Stability: Development
12098 //
12099 // Examples:
12100 // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
12101 // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
12102 // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include
12103 // the `.git` extension.
12104 //
12105 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
12106 VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
12107
12108 // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the
12109 // "vcs.revision_delta.direction" semantic conventions. It represents the type
12110 // of revision comparison.
12111 //
12112 // Type: Enum
12113 // RequirementLevel: Recommended
12114 // Stability: Development
12115 //
12116 // Examples: "ahead", "behind"
12117 VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction")
12118 )
12119
12120 // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id"
12121 // semantic conventions. It represents the ID of the change (pull request/merge
12122 // request/changelist) if applicable. This is usually a unique (within
12123 // repository) identifier generated by the VCS system.
12124 func VCSChangeID(val string) attribute.KeyValue {
12125 return VCSChangeIDKey.String(val)
12126 }
12127
12128 // VCSChangeTitle returns an attribute KeyValue conforming to the
12129 // "vcs.change.title" semantic conventions. It represents the human readable
12130 // title of the change (pull request/merge request/changelist). This title is
12131 // often a brief summary of the change and may get merged in to a ref as the
12132 // commit summary.
12133 func VCSChangeTitle(val string) attribute.KeyValue {
12134 return VCSChangeTitleKey.String(val)
12135 }
12136
12137 // VCSRefBaseName returns an attribute KeyValue conforming to the
12138 // "vcs.ref.base.name" semantic conventions. It represents the name of the
12139 // [reference] such as **branch** or **tag** in the repository.
12140 //
12141 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12142 func VCSRefBaseName(val string) attribute.KeyValue {
12143 return VCSRefBaseNameKey.String(val)
12144 }
12145
12146 // VCSRefBaseRevision returns an attribute KeyValue conforming to the
12147 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
12148 // literally [revised version], The revision most often refers to a commit object
12149 // in Git, or a revision number in SVN.
12150 //
12151 // [revised version]: https://www.merriam-webster.com/dictionary/revision
12152 func VCSRefBaseRevision(val string) attribute.KeyValue {
12153 return VCSRefBaseRevisionKey.String(val)
12154 }
12155
12156 // VCSRefHeadName returns an attribute KeyValue conforming to the
12157 // "vcs.ref.head.name" semantic conventions. It represents the name of the
12158 // [reference] such as **branch** or **tag** in the repository.
12159 //
12160 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12161 func VCSRefHeadName(val string) attribute.KeyValue {
12162 return VCSRefHeadNameKey.String(val)
12163 }
12164
12165 // VCSRefHeadRevision returns an attribute KeyValue conforming to the
12166 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
12167 // literally [revised version], The revision most often refers to a commit object
12168 // in Git, or a revision number in SVN.
12169 //
12170 // [revised version]: https://www.merriam-webster.com/dictionary/revision
12171 func VCSRefHeadRevision(val string) attribute.KeyValue {
12172 return VCSRefHeadRevisionKey.String(val)
12173 }
12174
12175 // VCSRepositoryName returns an attribute KeyValue conforming to the
12176 // "vcs.repository.name" semantic conventions. It represents the human readable
12177 // name of the repository. It SHOULD NOT include any additional identifier like
12178 // Group/SubGroup in GitLab or organization in GitHub.
12179 func VCSRepositoryName(val string) attribute.KeyValue {
12180 return VCSRepositoryNameKey.String(val)
12181 }
12182
12183 // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
12184 // "vcs.repository.url.full" semantic conventions. It represents the
12185 // [canonical URL] of the repository providing the complete HTTP(S) address in
12186 // order to locate and identify the repository through a browser.
12187 //
12188 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
12189 func VCSRepositoryURLFull(val string) attribute.KeyValue {
12190 return VCSRepositoryURLFullKey.String(val)
12191 }
12192
12193 // Enum values for vcs.change.state
12194 var (
12195 // Open means the change is currently active and under review. It hasn't been
12196 // merged into the target branch yet, and it's still possible to make changes or
12197 // add comments.
12198 // Stability: development
12199 VCSChangeStateOpen = VCSChangeStateKey.String("open")
12200 // WIP (work-in-progress, draft) means the change is still in progress and not
12201 // yet ready for a full review. It might still undergo significant changes.
12202 // Stability: development
12203 VCSChangeStateWip = VCSChangeStateKey.String("wip")
12204 // Closed means the merge request has been closed without merging. This can
12205 // happen for various reasons, such as the changes being deemed unnecessary, the
12206 // issue being resolved in another way, or the author deciding to withdraw the
12207 // request.
12208 // Stability: development
12209 VCSChangeStateClosed = VCSChangeStateKey.String("closed")
12210 // Merged indicates that the change has been successfully integrated into the
12211 // target codebase.
12212 // Stability: development
12213 VCSChangeStateMerged = VCSChangeStateKey.String("merged")
12214 )
12215
12216 // Enum values for vcs.line_change.type
12217 var (
12218 // How many lines were added.
12219 // Stability: development
12220 VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added")
12221 // How many lines were removed.
12222 // Stability: development
12223 VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed")
12224 )
12225
12226 // Enum values for vcs.ref.base.type
12227 var (
12228 // [branch]
12229 // Stability: development
12230 //
12231 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
12232 VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch")
12233 // [tag]
12234 // Stability: development
12235 //
12236 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
12237 VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag")
12238 )
12239
12240 // Enum values for vcs.ref.head.type
12241 var (
12242 // [branch]
12243 // Stability: development
12244 //
12245 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
12246 VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch")
12247 // [tag]
12248 // Stability: development
12249 //
12250 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
12251 VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag")
12252 )
12253
12254 // Enum values for vcs.ref.type
12255 var (
12256 // [branch]
12257 // Stability: development
12258 //
12259 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
12260 VCSRefTypeBranch = VCSRefTypeKey.String("branch")
12261 // [tag]
12262 // Stability: development
12263 //
12264 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
12265 VCSRefTypeTag = VCSRefTypeKey.String("tag")
12266 )
12267
12268 // Enum values for vcs.revision_delta.direction
12269 var (
12270 // How many revisions the change is behind the target ref.
12271 // Stability: development
12272 VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind")
12273 // How many revisions the change is ahead of the target ref.
12274 // Stability: development
12275 VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead")
12276 )
12277
12278 // Namespace: webengine
12279 const (
12280 // WebEngineDescriptionKey is the attribute Key conforming to the
12281 // "webengine.description" semantic conventions. It represents the additional
12282 // description of the web engine (e.g. detailed version and edition
12283 // information).
12284 //
12285 // Type: string
12286 // RequirementLevel: Recommended
12287 // Stability: Development
12288 //
12289 // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
12290 // 2.2.2.Final"
12291 WebEngineDescriptionKey = attribute.Key("webengine.description")
12292
12293 // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
12294 // semantic conventions. It represents the name of the web engine.
12295 //
12296 // Type: string
12297 // RequirementLevel: Recommended
12298 // Stability: Development
12299 //
12300 // Examples: "WildFly"
12301 WebEngineNameKey = attribute.Key("webengine.name")
12302
12303 // WebEngineVersionKey is the attribute Key conforming to the
12304 // "webengine.version" semantic conventions. It represents the version of the
12305 // web engine.
12306 //
12307 // Type: string
12308 // RequirementLevel: Recommended
12309 // Stability: Development
12310 //
12311 // Examples: "21.0.0"
12312 WebEngineVersionKey = attribute.Key("webengine.version")
12313 )
12314
12315 // WebEngineDescription returns an attribute KeyValue conforming to the
12316 // "webengine.description" semantic conventions. It represents the additional
12317 // description of the web engine (e.g. detailed version and edition information).
12318 func WebEngineDescription(val string) attribute.KeyValue {
12319 return WebEngineDescriptionKey.String(val)
12320 }
12321
12322 // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
12323 // semantic conventions. It represents the name of the web engine.
12324 func WebEngineName(val string) attribute.KeyValue {
12325 return WebEngineNameKey.String(val)
12326 }
12327
12328 // WebEngineVersion returns an attribute KeyValue conforming to the
12329 // "webengine.version" semantic conventions. It represents the version of the web
12330 // engine.
12331 func WebEngineVersion(val string) attribute.KeyValue {
12332 return WebEngineVersionKey.String(val)
12333 }