Debian Codegraph @

semconv/v1.31.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.31.0"
7
8 import "go.opentelemetry.io/otel/attribute"
9
10 // Namespace: android
11 const (
12 // AndroidAppStateKey is the attribute Key conforming to the "android.app.state"
13 // semantic conventions. It represents the this attribute represents the state
14 // of the application.
15 //
16 // Type: Enum
17 // RequirementLevel: Recommended
18 // Stability: Development
19 //
20 // Examples: "created"
21 // Note: The Android lifecycle states are defined in
22 // [Activity lifecycle callbacks], and from which the `OS identifiers` are
23 // derived.
24 //
25 // [Activity lifecycle callbacks]: https://developer.android.com/guide/components/activities/activity-lifecycle#lc
26 AndroidAppStateKey = attribute.Key("android.app.state")
27
28 // AndroidOSAPILevelKey is the attribute Key conforming to the
29 // "android.os.api_level" semantic conventions. It represents the uniquely
30 // identifies the framework API revision offered by a version (`os.version`) of
31 // the android operating system. More information can be found [here].
32 //
33 // Type: string
34 // RequirementLevel: Recommended
35 // Stability: Development
36 //
37 // Examples: "33", "32"
38 //
39 // [here]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
40 AndroidOSAPILevelKey = attribute.Key("android.os.api_level")
41 )
42
43 // AndroidOSAPILevel returns an attribute KeyValue conforming to the
44 // "android.os.api_level" semantic conventions. It represents the uniquely
45 // identifies the framework API revision offered by a version (`os.version`) of
46 // the android operating system. More information can be found [here].
47 //
48 // [here]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
49 func AndroidOSAPILevel(val string) attribute.KeyValue {
50 return AndroidOSAPILevelKey.String(val)
51 }
52
53 // Enum values for android.app.state
54 var (
55 // Any time before Activity.onResume() or, if the app has no Activity,
56 // Context.startService() has been called in the app for the first time.
57 //
58 // Stability: development
59 AndroidAppStateCreated = AndroidAppStateKey.String("created")
60 // Any time after Activity.onPause() or, if the app has no Activity,
61 // Context.stopService() has been called when the app was in the foreground
62 // state.
63 //
64 // Stability: development
65 AndroidAppStateBackground = AndroidAppStateKey.String("background")
66 // Any time after Activity.onResume() or, if the app has no Activity,
67 // Context.startService() has been called when the app was in either the created
68 // or background states.
69 //
70 // Stability: development
71 AndroidAppStateForeground = AndroidAppStateKey.String("foreground")
72 )
73
74 // Namespace: artifact
75 const (
76 // ArtifactAttestationFilenameKey is the attribute Key conforming to the
77 // "artifact.attestation.filename" semantic conventions. It represents the
78 // provenance filename of the built attestation which directly relates to the
79 // build artifact filename. This filename SHOULD accompany the artifact at
80 // publish time. See the [SLSA Relationship] specification for more information.
81 //
82 // Type: string
83 // RequirementLevel: Recommended
84 // Stability: Development
85 //
86 // Examples: "golang-binary-amd64-v0.1.0.attestation",
87 // "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation",
88 // "file-name-package.tar.gz.intoto.json1"
89 //
90 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
91 ArtifactAttestationFilenameKey = attribute.Key("artifact.attestation.filename")
92
93 // ArtifactAttestationHashKey is the attribute Key conforming to the
94 // "artifact.attestation.hash" semantic conventions. It represents the full
95 // [hash value (see glossary)], of the built attestation. Some envelopes in the
96 // [software attestation space] also refer to this as the **digest**.
97 //
98 // Type: string
99 // RequirementLevel: Recommended
100 // Stability: Development
101 //
102 // Examples: "1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408"
103 //
104 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
105 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
106 ArtifactAttestationHashKey = attribute.Key("artifact.attestation.hash")
107
108 // ArtifactAttestationIDKey is the attribute Key conforming to the
109 // "artifact.attestation.id" semantic conventions. It represents the id of the
110 // build [software attestation].
111 //
112 // Type: string
113 // RequirementLevel: Recommended
114 // Stability: Development
115 //
116 // Examples: "123"
117 //
118 // [software attestation]: https://slsa.dev/attestation-model
119 ArtifactAttestationIDKey = attribute.Key("artifact.attestation.id")
120
121 // ArtifactFilenameKey is the attribute Key conforming to the
122 // "artifact.filename" semantic conventions. It represents the human readable
123 // file name of the artifact, typically generated during build and release
124 // processes. Often includes the package name and version in the file name.
125 //
126 // Type: string
127 // RequirementLevel: Recommended
128 // Stability: Development
129 //
130 // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0",
131 // "release-1.tar.gz", "file-name-package.tar.gz"
132 // Note: This file name can also act as the [Package Name]
133 // in cases where the package ecosystem maps accordingly.
134 // Additionally, the artifact [can be published]
135 // for others, but that is not a guarantee.
136 //
137 // [Package Name]: https://slsa.dev/spec/v1.0/terminology#package-model
138 // [can be published]: https://slsa.dev/spec/v1.0/terminology#software-supply-chain
139 ArtifactFilenameKey = attribute.Key("artifact.filename")
140
141 // ArtifactHashKey is the attribute Key conforming to the "artifact.hash"
142 // semantic conventions. It represents the full [hash value (see glossary)],
143 // often found in checksum.txt on a release of the artifact and used to verify
144 // package integrity.
145 //
146 // Type: string
147 // RequirementLevel: Recommended
148 // Stability: Development
149 //
150 // Examples: "9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9"
151 // Note: The specific algorithm used to create the cryptographic hash value is
152 // not defined. In situations where an artifact has multiple
153 // cryptographic hashes, it is up to the implementer to choose which
154 // hash value to set here; this should be the most secure hash algorithm
155 // that is suitable for the situation and consistent with the
156 // corresponding attestation. The implementer can then provide the other
157 // hash values through an additional set of attribute extensions as they
158 // deem necessary.
159 //
160 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
161 ArtifactHashKey = attribute.Key("artifact.hash")
162
163 // ArtifactPurlKey is the attribute Key conforming to the "artifact.purl"
164 // semantic conventions. It represents the [Package URL] of the
165 // [package artifact] provides a standard way to identify and locate the
166 // packaged artifact.
167 //
168 // Type: string
169 // RequirementLevel: Recommended
170 // Stability: Development
171 //
172 // Examples: "pkg:github/package-url/purl-spec@1209109710924",
173 // "pkg:npm/[email protected]"
174 //
175 // [Package URL]: https://github.com/package-url/purl-spec
176 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
177 ArtifactPurlKey = attribute.Key("artifact.purl")
178
179 // ArtifactVersionKey is the attribute Key conforming to the "artifact.version"
180 // semantic conventions. It represents the version of the artifact.
181 //
182 // Type: string
183 // RequirementLevel: Recommended
184 // Stability: Development
185 //
186 // Examples: "v0.1.0", "1.2.1", "122691-build"
187 ArtifactVersionKey = attribute.Key("artifact.version")
188 )
189
190 // ArtifactAttestationFilename returns an attribute KeyValue conforming to the
191 // "artifact.attestation.filename" semantic conventions. It represents the
192 // provenance filename of the built attestation which directly relates to the
193 // build artifact filename. This filename SHOULD accompany the artifact at
194 // publish time. See the [SLSA Relationship] specification for more information.
195 //
196 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
197 func ArtifactAttestationFilename(val string) attribute.KeyValue {
198 return ArtifactAttestationFilenameKey.String(val)
199 }
200
201 // ArtifactAttestationHash returns an attribute KeyValue conforming to the
202 // "artifact.attestation.hash" semantic conventions. It represents the full
203 // [hash value (see glossary)], of the built attestation. Some envelopes in the
204 // [software attestation space] also refer to this as the **digest**.
205 //
206 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
207 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
208 func ArtifactAttestationHash(val string) attribute.KeyValue {
209 return ArtifactAttestationHashKey.String(val)
210 }
211
212 // ArtifactAttestationID returns an attribute KeyValue conforming to the
213 // "artifact.attestation.id" semantic conventions. It represents the id of the
214 // build [software attestation].
215 //
216 // [software attestation]: https://slsa.dev/attestation-model
217 func ArtifactAttestationID(val string) attribute.KeyValue {
218 return ArtifactAttestationIDKey.String(val)
219 }
220
221 // ArtifactFilename returns an attribute KeyValue conforming to the
222 // "artifact.filename" semantic conventions. It represents the human readable
223 // file name of the artifact, typically generated during build and release
224 // processes. Often includes the package name and version in the file name.
225 func ArtifactFilename(val string) attribute.KeyValue {
226 return ArtifactFilenameKey.String(val)
227 }
228
229 // ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash"
230 // semantic conventions. It represents the full [hash value (see glossary)],
231 // often found in checksum.txt on a release of the artifact and used to verify
232 // package integrity.
233 //
234 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
235 func ArtifactHash(val string) attribute.KeyValue {
236 return ArtifactHashKey.String(val)
237 }
238
239 // ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl"
240 // semantic conventions. It represents the [Package URL] of the
241 // [package artifact] provides a standard way to identify and locate the packaged
242 // artifact.
243 //
244 // [Package URL]: https://github.com/package-url/purl-spec
245 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
246 func ArtifactPurl(val string) attribute.KeyValue {
247 return ArtifactPurlKey.String(val)
248 }
249
250 // ArtifactVersion returns an attribute KeyValue conforming to the
251 // "artifact.version" semantic conventions. It represents the version of the
252 // artifact.
253 func ArtifactVersion(val string) attribute.KeyValue {
254 return ArtifactVersionKey.String(val)
255 }
256
257 // Namespace: aws
258 const (
259 // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the
260 // "aws.dynamodb.attribute_definitions" semantic conventions. It represents the
261 // JSON-serialized value of each item in the `AttributeDefinitions` request
262 // field.
263 //
264 // Type: string[]
265 // RequirementLevel: Recommended
266 // Stability: Development
267 //
268 // Examples: "{ "AttributeName": "string", "AttributeType": "string" }"
269 AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions")
270
271 // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the
272 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the
273 // value of the `AttributesToGet` request parameter.
274 //
275 // Type: string[]
276 // RequirementLevel: Recommended
277 // Stability: Development
278 //
279 // Examples: "lives", "id"
280 AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get")
281
282 // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the
283 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
284 // of the `ConsistentRead` request parameter.
285 //
286 // Type: boolean
287 // RequirementLevel: Recommended
288 // Stability: Development
289 //
290 // Examples:
291 AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read")
292
293 // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the
294 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
295 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
296 //
297 // Type: string[]
298 // RequirementLevel: Recommended
299 // Stability: Development
300 //
301 // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" :
302 // { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits":
303 // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number,
304 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } },
305 // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number,
306 // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName":
307 // "string", "WriteCapacityUnits": number }"
308 AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity")
309
310 // AWSDynamoDBCountKey is the attribute Key conforming to the
311 // "aws.dynamodb.count" semantic conventions. It represents the value of the
312 // `Count` response parameter.
313 //
314 // Type: int
315 // RequirementLevel: Recommended
316 // Stability: Development
317 //
318 // Examples: 10
319 AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count")
320
321 // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the
322 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
323 // value of the `ExclusiveStartTableName` request parameter.
324 //
325 // Type: string
326 // RequirementLevel: Recommended
327 // Stability: Development
328 //
329 // Examples: "Users", "CatsTable"
330 AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table")
331
332 // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to
333 // the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It
334 // represents the JSON-serialized value of each item in the
335 // `GlobalSecondaryIndexUpdates` request field.
336 //
337 // Type: string[]
338 // RequirementLevel: Recommended
339 // Stability: Development
340 //
341 // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ {
342 // "AttributeName": "string", "KeyType": "string" } ], "Projection": {
343 // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" },
344 // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits":
345 // number } }"
346 AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates")
347
348 // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the
349 // "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents
350 // the JSON-serialized value of each item of the `GlobalSecondaryIndexes`
351 // request field.
352 //
353 // Type: string[]
354 // RequirementLevel: Recommended
355 // Stability: Development
356 //
357 // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName":
358 // "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [
359 // "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": {
360 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"
361 AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes")
362
363 // AWSDynamoDBIndexNameKey is the attribute Key conforming to the
364 // "aws.dynamodb.index_name" semantic conventions. It represents the value of
365 // the `IndexName` request parameter.
366 //
367 // Type: string
368 // RequirementLevel: Recommended
369 // Stability: Development
370 //
371 // Examples: "name_to_group"
372 AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name")
373
374 // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the
375 // "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
376 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
377 //
378 // Type: string
379 // RequirementLevel: Recommended
380 // Stability: Development
381 //
382 // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob,
383 // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" :
384 // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S":
385 // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }"
386 AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics")
387
388 // AWSDynamoDBLimitKey is the attribute Key conforming to the
389 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
390 // `Limit` request parameter.
391 //
392 // Type: int
393 // RequirementLevel: Recommended
394 // Stability: Development
395 //
396 // Examples: 10
397 AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit")
398
399 // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the
400 // "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
401 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
402 // field.
403 //
404 // Type: string[]
405 // RequirementLevel: Recommended
406 // Stability: Development
407 //
408 // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes":
409 // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string",
410 // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ],
411 // "ProjectionType": "string" } }"
412 AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes")
413
414 // AWSDynamoDBProjectionKey is the attribute Key conforming to the
415 // "aws.dynamodb.projection" semantic conventions. It represents the value of
416 // the `ProjectionExpression` request parameter.
417 //
418 // Type: string
419 // RequirementLevel: Recommended
420 // Stability: Development
421 //
422 // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems,
423 // ProductReviews"
424 AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection")
425
426 // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the
427 // "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents
428 // the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
429 //
430 // Type: double
431 // RequirementLevel: Recommended
432 // Stability: Development
433 //
434 // Examples: 1.0, 2.0
435 AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity")
436
437 // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the
438 // "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents
439 // the value of the `ProvisionedThroughput.WriteCapacityUnits` request
440 // parameter.
441 //
442 // Type: double
443 // RequirementLevel: Recommended
444 // Stability: Development
445 //
446 // Examples: 1.0, 2.0
447 AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity")
448
449 // AWSDynamoDBScanForwardKey is the attribute Key conforming to the
450 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
451 // the `ScanIndexForward` request parameter.
452 //
453 // Type: boolean
454 // RequirementLevel: Recommended
455 // Stability: Development
456 //
457 // Examples:
458 AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward")
459
460 // AWSDynamoDBScannedCountKey is the attribute Key conforming to the
461 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
462 // the `ScannedCount` response parameter.
463 //
464 // Type: int
465 // RequirementLevel: Recommended
466 // Stability: Development
467 //
468 // Examples: 50
469 AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count")
470
471 // AWSDynamoDBSegmentKey is the attribute Key conforming to the
472 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
473 // `Segment` request parameter.
474 //
475 // Type: int
476 // RequirementLevel: Recommended
477 // Stability: Development
478 //
479 // Examples: 10
480 AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment")
481
482 // AWSDynamoDBSelectKey is the attribute Key conforming to the
483 // "aws.dynamodb.select" semantic conventions. It represents the value of the
484 // `Select` request parameter.
485 //
486 // Type: string
487 // RequirementLevel: Recommended
488 // Stability: Development
489 //
490 // Examples: "ALL_ATTRIBUTES", "COUNT"
491 AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select")
492
493 // AWSDynamoDBTableCountKey is the attribute Key conforming to the
494 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
495 // items in the `TableNames` response parameter.
496 //
497 // Type: int
498 // RequirementLevel: Recommended
499 // Stability: Development
500 //
501 // Examples: 20
502 AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count")
503
504 // AWSDynamoDBTableNamesKey is the attribute Key conforming to the
505 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in
506 // the `RequestItems` object field.
507 //
508 // Type: string[]
509 // RequirementLevel: Recommended
510 // Stability: Development
511 //
512 // Examples: "Users", "Cats"
513 AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names")
514
515 // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the
516 // "aws.dynamodb.total_segments" semantic conventions. It represents the value
517 // of the `TotalSegments` request parameter.
518 //
519 // Type: int
520 // RequirementLevel: Recommended
521 // Stability: Development
522 //
523 // Examples: 100
524 AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments")
525
526 // AWSECSClusterARNKey is the attribute Key conforming to the
527 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
528 // [ECS cluster].
529 //
530 // Type: string
531 // RequirementLevel: Recommended
532 // Stability: Development
533 //
534 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
535 //
536 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
537 AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn")
538
539 // AWSECSContainerARNKey is the attribute Key conforming to the
540 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
541 // Resource Name (ARN) of an [ECS container instance].
542 //
543 // Type: string
544 // RequirementLevel: Recommended
545 // Stability: Development
546 //
547 // Examples:
548 // "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9"
549 //
550 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
551 AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn")
552
553 // AWSECSLaunchtypeKey is the attribute Key conforming to the
554 // "aws.ecs.launchtype" semantic conventions. It represents the [launch type]
555 // for an ECS task.
556 //
557 // Type: Enum
558 // RequirementLevel: Recommended
559 // Stability: Development
560 //
561 // Examples:
562 //
563 // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
564 AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype")
565
566 // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn"
567 // semantic conventions. It represents the ARN of a running [ECS task].
568 //
569 // Type: string
570 // RequirementLevel: Recommended
571 // Stability: Development
572 //
573 // Examples:
574 // "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b",
575 // "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
576 //
577 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
578 AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn")
579
580 // AWSECSTaskFamilyKey is the attribute Key conforming to the
581 // "aws.ecs.task.family" semantic conventions. It represents the family name of
582 // the [ECS task definition] used to create the ECS task.
583 //
584 // Type: string
585 // RequirementLevel: Recommended
586 // Stability: Development
587 //
588 // Examples: "opentelemetry-family"
589 //
590 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
591 AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family")
592
593 // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id"
594 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
595 // be extracted from `task.arn`.
596 //
597 // Type: string
598 // RequirementLevel: Recommended
599 // Stability: Development
600 //
601 // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b",
602 // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
603 AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id")
604
605 // AWSECSTaskRevisionKey is the attribute Key conforming to the
606 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
607 // the task definition used to create the ECS task.
608 //
609 // Type: string
610 // RequirementLevel: Recommended
611 // Stability: Development
612 //
613 // Examples: "8", "26"
614 AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision")
615
616 // AWSEKSClusterARNKey is the attribute Key conforming to the
617 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
618 // cluster.
619 //
620 // Type: string
621 // RequirementLevel: Recommended
622 // Stability: Development
623 //
624 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
625 AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn")
626
627 // AWSExtendedRequestIDKey is the attribute Key conforming to the
628 // "aws.extended_request_id" semantic conventions. It represents the AWS
629 // extended request ID as returned in the response header `x-amz-id-2`.
630 //
631 // Type: string
632 // RequirementLevel: Recommended
633 // Stability: Development
634 //
635 // Examples:
636 // "wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ="
637 AWSExtendedRequestIDKey = attribute.Key("aws.extended_request_id")
638
639 // AWSLambdaInvokedARNKey is the attribute Key conforming to the
640 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
641 // ARN as provided on the `Context` passed to the function (
642 // `Lambda-Runtime-Invoked-Function-Arn` header on the
643 // `/runtime/invocation/next` applicable).
644 //
645 // Type: string
646 // RequirementLevel: Recommended
647 // Stability: Development
648 //
649 // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias"
650 // Note: This may be different from `cloud.resource_id` if an alias is involved.
651 AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn")
652
653 // AWSLogGroupARNsKey is the attribute Key conforming to the
654 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
655 // Name(s) (ARN) of the AWS log group(s).
656 //
657 // Type: string[]
658 // RequirementLevel: Recommended
659 // Stability: Development
660 //
661 // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"
662 // Note: See the [log group ARN format documentation].
663 //
664 // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
665 AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns")
666
667 // AWSLogGroupNamesKey is the attribute Key conforming to the
668 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
669 // AWS log group(s) an application is writing to.
670 //
671 // Type: string[]
672 // RequirementLevel: Recommended
673 // Stability: Development
674 //
675 // Examples: "/aws/lambda/my-function", "opentelemetry-service"
676 // Note: Multiple log groups must be supported for cases like multi-container
677 // applications, where a single application has sidecar containers, and each
678 // write to their own log group.
679 AWSLogGroupNamesKey = attribute.Key("aws.log.group.names")
680
681 // AWSLogStreamARNsKey is the attribute Key conforming to the
682 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
683 // AWS log stream(s).
684 //
685 // Type: string[]
686 // RequirementLevel: Recommended
687 // Stability: Development
688 //
689 // Examples:
690 // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
691 // Note: See the [log stream ARN format documentation]. One log group can
692 // contain several log streams, so these ARNs necessarily identify both a log
693 // group and a log stream.
694 //
695 // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
696 AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns")
697
698 // AWSLogStreamNamesKey is the attribute Key conforming to the
699 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
700 // AWS log stream(s) an application is writing to.
701 //
702 // Type: string[]
703 // RequirementLevel: Recommended
704 // Stability: Development
705 //
706 // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
707 AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names")
708
709 // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id"
710 // semantic conventions. It represents the AWS request ID as returned in the
711 // response headers `x-amzn-requestid`, `x-amzn-request-id` or
712 // `x-amz-request-id`.
713 //
714 // Type: string
715 // RequirementLevel: Recommended
716 // Stability: Development
717 //
718 // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ"
719 AWSRequestIDKey = attribute.Key("aws.request_id")
720
721 // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket"
722 // semantic conventions. It represents the S3 bucket name the request refers to.
723 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
724 //
725 // Type: string
726 // RequirementLevel: Recommended
727 // Stability: Development
728 //
729 // Examples: "some-bucket-name"
730 // Note: The `bucket` attribute is applicable to all S3 operations that
731 // reference a bucket, i.e. that require the bucket name as a mandatory
732 // parameter.
733 // This applies to almost all S3 operations except `list-buckets`.
734 //
735 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
736 AWSS3BucketKey = attribute.Key("aws.s3.bucket")
737
738 // AWSS3CopySourceKey is the attribute Key conforming to the
739 // "aws.s3.copy_source" semantic conventions. It represents the source object
740 // (in the form `bucket`/`key`) for the copy operation.
741 //
742 // Type: string
743 // RequirementLevel: Recommended
744 // Stability: Development
745 //
746 // Examples: "someFile.yml"
747 // Note: The `copy_source` attribute applies to S3 copy operations and
748 // corresponds to the `--copy-source` parameter
749 // of the [copy-object operation within the S3 API].
750 // This applies in particular to the following operations:
751 //
752 // - [copy-object]
753 // - [upload-part-copy]
754 //
755 //
756 // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
757 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
758 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
759 AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source")
760
761 // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete"
762 // semantic conventions. It represents the delete request container that
763 // specifies the objects to be deleted.
764 //
765 // Type: string
766 // RequirementLevel: Recommended
767 // Stability: Development
768 //
769 // Examples:
770 // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"
771 // Note: The `delete` attribute is only applicable to the [delete-object]
772 // operation.
773 // The `delete` attribute corresponds to the `--delete` parameter of the
774 // [delete-objects operation within the S3 API].
775 //
776 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
777 // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html
778 AWSS3DeleteKey = attribute.Key("aws.s3.delete")
779
780 // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic
781 // conventions. It represents the S3 object key the request refers to.
782 // Corresponds to the `--key` parameter of the [S3 API] operations.
783 //
784 // Type: string
785 // RequirementLevel: Recommended
786 // Stability: Development
787 //
788 // Examples: "someFile.yml"
789 // Note: The `key` attribute is applicable to all object-related S3 operations,
790 // i.e. that require the object key as a mandatory parameter.
791 // This applies in particular to the following operations:
792 //
793 // - [copy-object]
794 // - [delete-object]
795 // - [get-object]
796 // - [head-object]
797 // - [put-object]
798 // - [restore-object]
799 // - [select-object-content]
800 // - [abort-multipart-upload]
801 // - [complete-multipart-upload]
802 // - [create-multipart-upload]
803 // - [list-parts]
804 // - [upload-part]
805 // - [upload-part-copy]
806 //
807 //
808 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
809 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
810 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
811 // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html
812 // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html
813 // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html
814 // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html
815 // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html
816 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
817 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
818 // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html
819 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
820 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
821 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
822 AWSS3KeyKey = attribute.Key("aws.s3.key")
823
824 // AWSS3PartNumberKey is the attribute Key conforming to the
825 // "aws.s3.part_number" semantic conventions. It represents the part number of
826 // the part being uploaded in a multipart-upload operation. This is a positive
827 // integer between 1 and 10,000.
828 //
829 // Type: int
830 // RequirementLevel: Recommended
831 // Stability: Development
832 //
833 // Examples: 3456
834 // Note: The `part_number` attribute is only applicable to the [upload-part]
835 // and [upload-part-copy] operations.
836 // The `part_number` attribute corresponds to the `--part-number` parameter of
837 // the
838 // [upload-part operation within the S3 API].
839 //
840 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
841 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
842 // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
843 AWSS3PartNumberKey = attribute.Key("aws.s3.part_number")
844
845 // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id"
846 // semantic conventions. It represents the upload ID that identifies the
847 // multipart upload.
848 //
849 // Type: string
850 // RequirementLevel: Recommended
851 // Stability: Development
852 //
853 // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ"
854 // Note: The `upload_id` attribute applies to S3 multipart-upload operations and
855 // corresponds to the `--upload-id` parameter
856 // of the [S3 API] multipart operations.
857 // This applies in particular to the following operations:
858 //
859 // - [abort-multipart-upload]
860 // - [complete-multipart-upload]
861 // - [list-parts]
862 // - [upload-part]
863 // - [upload-part-copy]
864 //
865 //
866 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
867 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
868 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
869 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
870 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
871 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
872 AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id")
873 )
874
875 // AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to
876 // the "aws.dynamodb.attribute_definitions" semantic conventions. It represents
877 // the JSON-serialized value of each item in the `AttributeDefinitions` request
878 // field.
879 func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue {
880 return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val)
881 }
882
883 // AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the
884 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value
885 // of the `AttributesToGet` request parameter.
886 func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue {
887 return AWSDynamoDBAttributesToGetKey.StringSlice(val)
888 }
889
890 // AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the
891 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
892 // of the `ConsistentRead` request parameter.
893 func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue {
894 return AWSDynamoDBConsistentReadKey.Bool(val)
895 }
896
897 // AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the
898 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
899 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
900 func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue {
901 return AWSDynamoDBConsumedCapacityKey.StringSlice(val)
902 }
903
904 // AWSDynamoDBCount returns an attribute KeyValue conforming to the
905 // "aws.dynamodb.count" semantic conventions. It represents the value of the
906 // `Count` response parameter.
907 func AWSDynamoDBCount(val int) attribute.KeyValue {
908 return AWSDynamoDBCountKey.Int(val)
909 }
910
911 // AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the
912 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
913 // value of the `ExclusiveStartTableName` request parameter.
914 func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue {
915 return AWSDynamoDBExclusiveStartTableKey.String(val)
916 }
917
918 // AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue
919 // conforming to the "aws.dynamodb.global_secondary_index_updates" semantic
920 // conventions. It represents the JSON-serialized value of each item in the
921 // `GlobalSecondaryIndexUpdates` request field.
922 func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue {
923 return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val)
924 }
925
926 // AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to
927 // the "aws.dynamodb.global_secondary_indexes" semantic conventions. It
928 // represents the JSON-serialized value of each item of the
929 // `GlobalSecondaryIndexes` request field.
930 func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue {
931 return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val)
932 }
933
934 // AWSDynamoDBIndexName returns an attribute KeyValue conforming to the
935 // "aws.dynamodb.index_name" semantic conventions. It represents the value of the
936 // `IndexName` request parameter.
937 func AWSDynamoDBIndexName(val string) attribute.KeyValue {
938 return AWSDynamoDBIndexNameKey.String(val)
939 }
940
941 // AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to
942 // the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
943 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
944 func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue {
945 return AWSDynamoDBItemCollectionMetricsKey.String(val)
946 }
947
948 // AWSDynamoDBLimit returns an attribute KeyValue conforming to the
949 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
950 // `Limit` request parameter.
951 func AWSDynamoDBLimit(val int) attribute.KeyValue {
952 return AWSDynamoDBLimitKey.Int(val)
953 }
954
955 // AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to
956 // the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
957 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
958 // field.
959 func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue {
960 return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val)
961 }
962
963 // AWSDynamoDBProjection returns an attribute KeyValue conforming to the
964 // "aws.dynamodb.projection" semantic conventions. It represents the value of the
965 // `ProjectionExpression` request parameter.
966 func AWSDynamoDBProjection(val string) attribute.KeyValue {
967 return AWSDynamoDBProjectionKey.String(val)
968 }
969
970 // AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to
971 // the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It
972 // represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request
973 // parameter.
974 func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue {
975 return AWSDynamoDBProvisionedReadCapacityKey.Float64(val)
976 }
977
978 // AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming
979 // to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It
980 // represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request
981 // parameter.
982 func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue {
983 return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val)
984 }
985
986 // AWSDynamoDBScanForward returns an attribute KeyValue conforming to the
987 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
988 // the `ScanIndexForward` request parameter.
989 func AWSDynamoDBScanForward(val bool) attribute.KeyValue {
990 return AWSDynamoDBScanForwardKey.Bool(val)
991 }
992
993 // AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the
994 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
995 // the `ScannedCount` response parameter.
996 func AWSDynamoDBScannedCount(val int) attribute.KeyValue {
997 return AWSDynamoDBScannedCountKey.Int(val)
998 }
999
1000 // AWSDynamoDBSegment returns an attribute KeyValue conforming to the
1001 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
1002 // `Segment` request parameter.
1003 func AWSDynamoDBSegment(val int) attribute.KeyValue {
1004 return AWSDynamoDBSegmentKey.Int(val)
1005 }
1006
1007 // AWSDynamoDBSelect returns an attribute KeyValue conforming to the
1008 // "aws.dynamodb.select" semantic conventions. It represents the value of the
1009 // `Select` request parameter.
1010 func AWSDynamoDBSelect(val string) attribute.KeyValue {
1011 return AWSDynamoDBSelectKey.String(val)
1012 }
1013
1014 // AWSDynamoDBTableCount returns an attribute KeyValue conforming to the
1015 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
1016 // items in the `TableNames` response parameter.
1017 func AWSDynamoDBTableCount(val int) attribute.KeyValue {
1018 return AWSDynamoDBTableCountKey.Int(val)
1019 }
1020
1021 // AWSDynamoDBTableNames returns an attribute KeyValue conforming to the
1022 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in the
1023 // `RequestItems` object field.
1024 func AWSDynamoDBTableNames(val ...string) attribute.KeyValue {
1025 return AWSDynamoDBTableNamesKey.StringSlice(val)
1026 }
1027
1028 // AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the
1029 // "aws.dynamodb.total_segments" semantic conventions. It represents the value of
1030 // the `TotalSegments` request parameter.
1031 func AWSDynamoDBTotalSegments(val int) attribute.KeyValue {
1032 return AWSDynamoDBTotalSegmentsKey.Int(val)
1033 }
1034
1035 // AWSECSClusterARN returns an attribute KeyValue conforming to the
1036 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
1037 // [ECS cluster].
1038 //
1039 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
1040 func AWSECSClusterARN(val string) attribute.KeyValue {
1041 return AWSECSClusterARNKey.String(val)
1042 }
1043
1044 // AWSECSContainerARN returns an attribute KeyValue conforming to the
1045 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
1046 // Resource Name (ARN) of an [ECS container instance].
1047 //
1048 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
1049 func AWSECSContainerARN(val string) attribute.KeyValue {
1050 return AWSECSContainerARNKey.String(val)
1051 }
1052
1053 // AWSECSTaskARN returns an attribute KeyValue conforming to the
1054 // "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running
1055 // [ECS task].
1056 //
1057 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
1058 func AWSECSTaskARN(val string) attribute.KeyValue {
1059 return AWSECSTaskARNKey.String(val)
1060 }
1061
1062 // AWSECSTaskFamily returns an attribute KeyValue conforming to the
1063 // "aws.ecs.task.family" semantic conventions. It represents the family name of
1064 // the [ECS task definition] used to create the ECS task.
1065 //
1066 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
1067 func AWSECSTaskFamily(val string) attribute.KeyValue {
1068 return AWSECSTaskFamilyKey.String(val)
1069 }
1070
1071 // AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id"
1072 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
1073 // be extracted from `task.arn`.
1074 func AWSECSTaskID(val string) attribute.KeyValue {
1075 return AWSECSTaskIDKey.String(val)
1076 }
1077
1078 // AWSECSTaskRevision returns an attribute KeyValue conforming to the
1079 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
1080 // the task definition used to create the ECS task.
1081 func AWSECSTaskRevision(val string) attribute.KeyValue {
1082 return AWSECSTaskRevisionKey.String(val)
1083 }
1084
1085 // AWSEKSClusterARN returns an attribute KeyValue conforming to the
1086 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
1087 // cluster.
1088 func AWSEKSClusterARN(val string) attribute.KeyValue {
1089 return AWSEKSClusterARNKey.String(val)
1090 }
1091
1092 // AWSExtendedRequestID returns an attribute KeyValue conforming to the
1093 // "aws.extended_request_id" semantic conventions. It represents the AWS extended
1094 // request ID as returned in the response header `x-amz-id-2`.
1095 func AWSExtendedRequestID(val string) attribute.KeyValue {
1096 return AWSExtendedRequestIDKey.String(val)
1097 }
1098
1099 // AWSLambdaInvokedARN returns an attribute KeyValue conforming to the
1100 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
1101 // ARN as provided on the `Context` passed to the function (
1102 // `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next`
1103 // applicable).
1104 func AWSLambdaInvokedARN(val string) attribute.KeyValue {
1105 return AWSLambdaInvokedARNKey.String(val)
1106 }
1107
1108 // AWSLogGroupARNs returns an attribute KeyValue conforming to the
1109 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
1110 // Name(s) (ARN) of the AWS log group(s).
1111 func AWSLogGroupARNs(val ...string) attribute.KeyValue {
1112 return AWSLogGroupARNsKey.StringSlice(val)
1113 }
1114
1115 // AWSLogGroupNames returns an attribute KeyValue conforming to the
1116 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
1117 // AWS log group(s) an application is writing to.
1118 func AWSLogGroupNames(val ...string) attribute.KeyValue {
1119 return AWSLogGroupNamesKey.StringSlice(val)
1120 }
1121
1122 // AWSLogStreamARNs returns an attribute KeyValue conforming to the
1123 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
1124 // AWS log stream(s).
1125 func AWSLogStreamARNs(val ...string) attribute.KeyValue {
1126 return AWSLogStreamARNsKey.StringSlice(val)
1127 }
1128
1129 // AWSLogStreamNames returns an attribute KeyValue conforming to the
1130 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
1131 // AWS log stream(s) an application is writing to.
1132 func AWSLogStreamNames(val ...string) attribute.KeyValue {
1133 return AWSLogStreamNamesKey.StringSlice(val)
1134 }
1135
1136 // AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id"
1137 // semantic conventions. It represents the AWS request ID as returned in the
1138 // response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`
1139 // .
1140 func AWSRequestID(val string) attribute.KeyValue {
1141 return AWSRequestIDKey.String(val)
1142 }
1143
1144 // AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket"
1145 // semantic conventions. It represents the S3 bucket name the request refers to.
1146 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
1147 //
1148 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1149 func AWSS3Bucket(val string) attribute.KeyValue {
1150 return AWSS3BucketKey.String(val)
1151 }
1152
1153 // AWSS3CopySource returns an attribute KeyValue conforming to the
1154 // "aws.s3.copy_source" semantic conventions. It represents the source object (in
1155 // the form `bucket`/`key`) for the copy operation.
1156 func AWSS3CopySource(val string) attribute.KeyValue {
1157 return AWSS3CopySourceKey.String(val)
1158 }
1159
1160 // AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete"
1161 // semantic conventions. It represents the delete request container that
1162 // specifies the objects to be deleted.
1163 func AWSS3Delete(val string) attribute.KeyValue {
1164 return AWSS3DeleteKey.String(val)
1165 }
1166
1167 // AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic
1168 // conventions. It represents the S3 object key the request refers to.
1169 // Corresponds to the `--key` parameter of the [S3 API] operations.
1170 //
1171 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1172 func AWSS3Key(val string) attribute.KeyValue {
1173 return AWSS3KeyKey.String(val)
1174 }
1175
1176 // AWSS3PartNumber returns an attribute KeyValue conforming to the
1177 // "aws.s3.part_number" semantic conventions. It represents the part number of
1178 // the part being uploaded in a multipart-upload operation. This is a positive
1179 // integer between 1 and 10,000.
1180 func AWSS3PartNumber(val int) attribute.KeyValue {
1181 return AWSS3PartNumberKey.Int(val)
1182 }
1183
1184 // AWSS3UploadID returns an attribute KeyValue conforming to the
1185 // "aws.s3.upload_id" semantic conventions. It represents the upload ID that
1186 // identifies the multipart upload.
1187 func AWSS3UploadID(val string) attribute.KeyValue {
1188 return AWSS3UploadIDKey.String(val)
1189 }
1190
1191 // Enum values for aws.ecs.launchtype
1192 var (
1193 // ec2
1194 // Stability: development
1195 AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2")
1196 // fargate
1197 // Stability: development
1198 AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate")
1199 )
1200
1201 // Namespace: az
1202 const (
1203 // AzNamespaceKey is the attribute Key conforming to the "az.namespace" semantic
1204 // conventions. It represents the [Azure Resource Provider Namespace] as
1205 // recognized by the client.
1206 //
1207 // Type: string
1208 // RequirementLevel: Recommended
1209 // Stability: Development
1210 //
1211 // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus"
1212 //
1213 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1214 AzNamespaceKey = attribute.Key("az.namespace")
1215
1216 // AzServiceRequestIDKey is the attribute Key conforming to the
1217 // "az.service_request_id" semantic conventions. It represents the unique
1218 // identifier of the service request. It's generated by the Azure service and
1219 // returned with the response.
1220 //
1221 // Type: string
1222 // RequirementLevel: Recommended
1223 // Stability: Development
1224 //
1225 // Examples: "00000000-0000-0000-0000-000000000000"
1226 AzServiceRequestIDKey = attribute.Key("az.service_request_id")
1227 )
1228
1229 // AzNamespace returns an attribute KeyValue conforming to the "az.namespace"
1230 // semantic conventions. It represents the [Azure Resource Provider Namespace] as
1231 // recognized by the client.
1232 //
1233 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1234 func AzNamespace(val string) attribute.KeyValue {
1235 return AzNamespaceKey.String(val)
1236 }
1237
1238 // AzServiceRequestID returns an attribute KeyValue conforming to the
1239 // "az.service_request_id" semantic conventions. It represents the unique
1240 // identifier of the service request. It's generated by the Azure service and
1241 // returned with the response.
1242 func AzServiceRequestID(val string) attribute.KeyValue {
1243 return AzServiceRequestIDKey.String(val)
1244 }
1245
1246 // Namespace: azure
1247 const (
1248 // AzureClientIDKey is the attribute Key conforming to the "azure.client.id"
1249 // semantic conventions. It represents the unique identifier of the client
1250 // instance.
1251 //
1252 // Type: string
1253 // RequirementLevel: Recommended
1254 // Stability: Development
1255 //
1256 // Examples: "3ba4827d-4422-483f-b59f-85b74211c11d", "storage-client-1"
1257 AzureClientIDKey = attribute.Key("azure.client.id")
1258
1259 // AzureCosmosDBConnectionModeKey is the attribute Key conforming to the
1260 // "azure.cosmosdb.connection.mode" semantic conventions. It represents the
1261 // cosmos client connection mode.
1262 //
1263 // Type: Enum
1264 // RequirementLevel: Recommended
1265 // Stability: Development
1266 //
1267 // Examples:
1268 AzureCosmosDBConnectionModeKey = attribute.Key("azure.cosmosdb.connection.mode")
1269
1270 // AzureCosmosDBConsistencyLevelKey is the attribute Key conforming to the
1271 // "azure.cosmosdb.consistency.level" semantic conventions. It represents the
1272 // account or request [consistency level].
1273 //
1274 // Type: Enum
1275 // RequirementLevel: Recommended
1276 // Stability: Development
1277 //
1278 // Examples: "Eventual", "ConsistentPrefix", "BoundedStaleness", "Strong",
1279 // "Session"
1280 //
1281 // [consistency level]: https://learn.microsoft.com/azure/cosmos-db/consistency-levels
1282 AzureCosmosDBConsistencyLevelKey = attribute.Key("azure.cosmosdb.consistency.level")
1283
1284 // AzureCosmosDBOperationContactedRegionsKey is the attribute Key conforming to
1285 // the "azure.cosmosdb.operation.contacted_regions" semantic conventions. It
1286 // represents the list of regions contacted during operation in the order that
1287 // they were contacted. If there is more than one region listed, it indicates
1288 // that the operation was performed on multiple regions i.e. cross-regional
1289 // call.
1290 //
1291 // Type: string[]
1292 // RequirementLevel: Recommended
1293 // Stability: Development
1294 //
1295 // Examples: "North Central US", "Australia East", "Australia Southeast"
1296 // Note: Region name matches the format of `displayName` in [Azure Location API]
1297 //
1298 // [Azure Location API]: https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location
1299 AzureCosmosDBOperationContactedRegionsKey = attribute.Key("azure.cosmosdb.operation.contacted_regions")
1300
1301 // AzureCosmosDBOperationRequestChargeKey is the attribute Key conforming to the
1302 // "azure.cosmosdb.operation.request_charge" semantic conventions. It represents
1303 // the number of request units consumed by the operation.
1304 //
1305 // Type: double
1306 // RequirementLevel: Recommended
1307 // Stability: Development
1308 //
1309 // Examples: 46.18, 1.0
1310 AzureCosmosDBOperationRequestChargeKey = attribute.Key("azure.cosmosdb.operation.request_charge")
1311
1312 // AzureCosmosDBRequestBodySizeKey is the attribute Key conforming to the
1313 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1314 // request payload size in bytes.
1315 //
1316 // Type: int
1317 // RequirementLevel: Recommended
1318 // Stability: Development
1319 //
1320 // Examples:
1321 AzureCosmosDBRequestBodySizeKey = attribute.Key("azure.cosmosdb.request.body.size")
1322
1323 // AzureCosmosDBResponseSubStatusCodeKey is the attribute Key conforming to the
1324 // "azure.cosmosdb.response.sub_status_code" semantic conventions. It represents
1325 // the cosmos DB sub status code.
1326 //
1327 // Type: int
1328 // RequirementLevel: Recommended
1329 // Stability: Development
1330 //
1331 // Examples: 1000, 1002
1332 AzureCosmosDBResponseSubStatusCodeKey = attribute.Key("azure.cosmosdb.response.sub_status_code")
1333 )
1334
1335 // AzureClientID returns an attribute KeyValue conforming to the
1336 // "azure.client.id" semantic conventions. It represents the unique identifier of
1337 // the client instance.
1338 func AzureClientID(val string) attribute.KeyValue {
1339 return AzureClientIDKey.String(val)
1340 }
1341
1342 // AzureCosmosDBOperationContactedRegions returns an attribute KeyValue
1343 // conforming to the "azure.cosmosdb.operation.contacted_regions" semantic
1344 // conventions. It represents the list of regions contacted during operation in
1345 // the order that they were contacted. If there is more than one region listed,
1346 // it indicates that the operation was performed on multiple regions i.e.
1347 // cross-regional call.
1348 func AzureCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue {
1349 return AzureCosmosDBOperationContactedRegionsKey.StringSlice(val)
1350 }
1351
1352 // AzureCosmosDBOperationRequestCharge returns an attribute KeyValue conforming
1353 // to the "azure.cosmosdb.operation.request_charge" semantic conventions. It
1354 // represents the number of request units consumed by the operation.
1355 func AzureCosmosDBOperationRequestCharge(val float64) attribute.KeyValue {
1356 return AzureCosmosDBOperationRequestChargeKey.Float64(val)
1357 }
1358
1359 // AzureCosmosDBRequestBodySize returns an attribute KeyValue conforming to the
1360 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1361 // request payload size in bytes.
1362 func AzureCosmosDBRequestBodySize(val int) attribute.KeyValue {
1363 return AzureCosmosDBRequestBodySizeKey.Int(val)
1364 }
1365
1366 // AzureCosmosDBResponseSubStatusCode returns an attribute KeyValue conforming to
1367 // the "azure.cosmosdb.response.sub_status_code" semantic conventions. It
1368 // represents the cosmos DB sub status code.
1369 func AzureCosmosDBResponseSubStatusCode(val int) attribute.KeyValue {
1370 return AzureCosmosDBResponseSubStatusCodeKey.Int(val)
1371 }
1372
1373 // Enum values for azure.cosmosdb.connection.mode
1374 var (
1375 // Gateway (HTTP) connection.
1376 // Stability: development
1377 AzureCosmosDBConnectionModeGateway = AzureCosmosDBConnectionModeKey.String("gateway")
1378 // Direct connection.
1379 // Stability: development
1380 AzureCosmosDBConnectionModeDirect = AzureCosmosDBConnectionModeKey.String("direct")
1381 )
1382
1383 // Enum values for azure.cosmosdb.consistency.level
1384 var (
1385 // strong
1386 // Stability: development
1387 AzureCosmosDBConsistencyLevelStrong = AzureCosmosDBConsistencyLevelKey.String("Strong")
1388 // bounded_staleness
1389 // Stability: development
1390 AzureCosmosDBConsistencyLevelBoundedStaleness = AzureCosmosDBConsistencyLevelKey.String("BoundedStaleness")
1391 // session
1392 // Stability: development
1393 AzureCosmosDBConsistencyLevelSession = AzureCosmosDBConsistencyLevelKey.String("Session")
1394 // eventual
1395 // Stability: development
1396 AzureCosmosDBConsistencyLevelEventual = AzureCosmosDBConsistencyLevelKey.String("Eventual")
1397 // consistent_prefix
1398 // Stability: development
1399 AzureCosmosDBConsistencyLevelConsistentPrefix = AzureCosmosDBConsistencyLevelKey.String("ConsistentPrefix")
1400 )
1401
1402 // Namespace: browser
1403 const (
1404 // BrowserBrandsKey is the attribute Key conforming to the "browser.brands"
1405 // semantic conventions. It represents the array of brand name and version
1406 // separated by a space.
1407 //
1408 // Type: string[]
1409 // RequirementLevel: Recommended
1410 // Stability: Development
1411 //
1412 // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99"
1413 // Note: This value is intended to be taken from the [UA client hints API] (
1414 // `navigator.userAgentData.brands`).
1415 //
1416 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1417 BrowserBrandsKey = attribute.Key("browser.brands")
1418
1419 // BrowserLanguageKey is the attribute Key conforming to the "browser.language"
1420 // semantic conventions. It represents the preferred language of the user using
1421 // the browser.
1422 //
1423 // Type: string
1424 // RequirementLevel: Recommended
1425 // Stability: Development
1426 //
1427 // Examples: "en", "en-US", "fr", "fr-FR"
1428 // Note: This value is intended to be taken from the Navigator API
1429 // `navigator.language`.
1430 BrowserLanguageKey = attribute.Key("browser.language")
1431
1432 // BrowserMobileKey is the attribute Key conforming to the "browser.mobile"
1433 // semantic conventions. It represents a boolean that is true if the browser is
1434 // running on a mobile device.
1435 //
1436 // Type: boolean
1437 // RequirementLevel: Recommended
1438 // Stability: Development
1439 //
1440 // Examples:
1441 // Note: This value is intended to be taken from the [UA client hints API] (
1442 // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be
1443 // left unset.
1444 //
1445 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1446 BrowserMobileKey = attribute.Key("browser.mobile")
1447
1448 // BrowserPlatformKey is the attribute Key conforming to the "browser.platform"
1449 // semantic conventions. It represents the platform on which the browser is
1450 // running.
1451 //
1452 // Type: string
1453 // RequirementLevel: Recommended
1454 // Stability: Development
1455 //
1456 // Examples: "Windows", "macOS", "Android"
1457 // Note: This value is intended to be taken from the [UA client hints API] (
1458 // `navigator.userAgentData.platform`). If unavailable, the legacy
1459 // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD
1460 // be left unset in order for the values to be consistent.
1461 // The list of possible values is defined in the
1462 // [W3C User-Agent Client Hints specification]. Note that some (but not all) of
1463 // these values can overlap with values in the
1464 // [`os.type` and `os.name` attributes]. However, for consistency, the values in
1465 // the `browser.platform` attribute should capture the exact value that the user
1466 // agent provides.
1467 //
1468 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1469 // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform
1470 // [`os.type` and `os.name` attributes]: ./os.md
1471 BrowserPlatformKey = attribute.Key("browser.platform")
1472 )
1473
1474 // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands"
1475 // semantic conventions. It represents the array of brand name and version
1476 // separated by a space.
1477 func BrowserBrands(val ...string) attribute.KeyValue {
1478 return BrowserBrandsKey.StringSlice(val)
1479 }
1480
1481 // BrowserLanguage returns an attribute KeyValue conforming to the
1482 // "browser.language" semantic conventions. It represents the preferred language
1483 // of the user using the browser.
1484 func BrowserLanguage(val string) attribute.KeyValue {
1485 return BrowserLanguageKey.String(val)
1486 }
1487
1488 // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile"
1489 // semantic conventions. It represents a boolean that is true if the browser is
1490 // running on a mobile device.
1491 func BrowserMobile(val bool) attribute.KeyValue {
1492 return BrowserMobileKey.Bool(val)
1493 }
1494
1495 // BrowserPlatform returns an attribute KeyValue conforming to the
1496 // "browser.platform" semantic conventions. It represents the platform on which
1497 // the browser is running.
1498 func BrowserPlatform(val string) attribute.KeyValue {
1499 return BrowserPlatformKey.String(val)
1500 }
1501
1502 // Namespace: cassandra
1503 const (
1504 // CassandraConsistencyLevelKey is the attribute Key conforming to the
1505 // "cassandra.consistency.level" semantic conventions. It represents the
1506 // consistency level of the query. Based on consistency values from [CQL].
1507 //
1508 // Type: Enum
1509 // RequirementLevel: Recommended
1510 // Stability: Development
1511 //
1512 // Examples:
1513 //
1514 // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
1515 CassandraConsistencyLevelKey = attribute.Key("cassandra.consistency.level")
1516
1517 // CassandraCoordinatorDCKey is the attribute Key conforming to the
1518 // "cassandra.coordinator.dc" semantic conventions. It represents the data
1519 // center of the coordinating node for a query.
1520 //
1521 // Type: string
1522 // RequirementLevel: Recommended
1523 // Stability: Development
1524 //
1525 // Examples: us-west-2
1526 CassandraCoordinatorDCKey = attribute.Key("cassandra.coordinator.dc")
1527
1528 // CassandraCoordinatorIDKey is the attribute Key conforming to the
1529 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1530 // coordinating node for a query.
1531 //
1532 // Type: string
1533 // RequirementLevel: Recommended
1534 // Stability: Development
1535 //
1536 // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af
1537 CassandraCoordinatorIDKey = attribute.Key("cassandra.coordinator.id")
1538
1539 // CassandraPageSizeKey is the attribute Key conforming to the
1540 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1541 // for paging, i.e. how many rows will be returned at once.
1542 //
1543 // Type: int
1544 // RequirementLevel: Recommended
1545 // Stability: Development
1546 //
1547 // Examples: 5000
1548 CassandraPageSizeKey = attribute.Key("cassandra.page.size")
1549
1550 // CassandraQueryIdempotentKey is the attribute Key conforming to the
1551 // "cassandra.query.idempotent" semantic conventions. It represents the whether
1552 // or not the query is idempotent.
1553 //
1554 // Type: boolean
1555 // RequirementLevel: Recommended
1556 // Stability: Development
1557 //
1558 // Examples:
1559 CassandraQueryIdempotentKey = attribute.Key("cassandra.query.idempotent")
1560
1561 // CassandraSpeculativeExecutionCountKey is the attribute Key conforming to the
1562 // "cassandra.speculative_execution.count" semantic conventions. It represents
1563 // the number of times a query was speculatively executed. Not set or `0` if the
1564 // query was not executed speculatively.
1565 //
1566 // Type: int
1567 // RequirementLevel: Recommended
1568 // Stability: Development
1569 //
1570 // Examples: 0, 2
1571 CassandraSpeculativeExecutionCountKey = attribute.Key("cassandra.speculative_execution.count")
1572 )
1573
1574 // CassandraCoordinatorDC returns an attribute KeyValue conforming to the
1575 // "cassandra.coordinator.dc" semantic conventions. It represents the data center
1576 // of the coordinating node for a query.
1577 func CassandraCoordinatorDC(val string) attribute.KeyValue {
1578 return CassandraCoordinatorDCKey.String(val)
1579 }
1580
1581 // CassandraCoordinatorID returns an attribute KeyValue conforming to the
1582 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1583 // coordinating node for a query.
1584 func CassandraCoordinatorID(val string) attribute.KeyValue {
1585 return CassandraCoordinatorIDKey.String(val)
1586 }
1587
1588 // CassandraPageSize returns an attribute KeyValue conforming to the
1589 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1590 // for paging, i.e. how many rows will be returned at once.
1591 func CassandraPageSize(val int) attribute.KeyValue {
1592 return CassandraPageSizeKey.Int(val)
1593 }
1594
1595 // CassandraQueryIdempotent returns an attribute KeyValue conforming to the
1596 // "cassandra.query.idempotent" semantic conventions. It represents the whether
1597 // or not the query is idempotent.
1598 func CassandraQueryIdempotent(val bool) attribute.KeyValue {
1599 return CassandraQueryIdempotentKey.Bool(val)
1600 }
1601
1602 // CassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to
1603 // the "cassandra.speculative_execution.count" semantic conventions. It
1604 // represents the number of times a query was speculatively executed. Not set or
1605 // `0` if the query was not executed speculatively.
1606 func CassandraSpeculativeExecutionCount(val int) attribute.KeyValue {
1607 return CassandraSpeculativeExecutionCountKey.Int(val)
1608 }
1609
1610 // Enum values for cassandra.consistency.level
1611 var (
1612 // all
1613 // Stability: development
1614 CassandraConsistencyLevelAll = CassandraConsistencyLevelKey.String("all")
1615 // each_quorum
1616 // Stability: development
1617 CassandraConsistencyLevelEachQuorum = CassandraConsistencyLevelKey.String("each_quorum")
1618 // quorum
1619 // Stability: development
1620 CassandraConsistencyLevelQuorum = CassandraConsistencyLevelKey.String("quorum")
1621 // local_quorum
1622 // Stability: development
1623 CassandraConsistencyLevelLocalQuorum = CassandraConsistencyLevelKey.String("local_quorum")
1624 // one
1625 // Stability: development
1626 CassandraConsistencyLevelOne = CassandraConsistencyLevelKey.String("one")
1627 // two
1628 // Stability: development
1629 CassandraConsistencyLevelTwo = CassandraConsistencyLevelKey.String("two")
1630 // three
1631 // Stability: development
1632 CassandraConsistencyLevelThree = CassandraConsistencyLevelKey.String("three")
1633 // local_one
1634 // Stability: development
1635 CassandraConsistencyLevelLocalOne = CassandraConsistencyLevelKey.String("local_one")
1636 // any
1637 // Stability: development
1638 CassandraConsistencyLevelAny = CassandraConsistencyLevelKey.String("any")
1639 // serial
1640 // Stability: development
1641 CassandraConsistencyLevelSerial = CassandraConsistencyLevelKey.String("serial")
1642 // local_serial
1643 // Stability: development
1644 CassandraConsistencyLevelLocalSerial = CassandraConsistencyLevelKey.String("local_serial")
1645 )
1646
1647 // Namespace: cicd
1648 const (
1649 // CICDPipelineNameKey is the attribute Key conforming to the
1650 // "cicd.pipeline.name" semantic conventions. It represents the human readable
1651 // name of the pipeline within a CI/CD system.
1652 //
1653 // Type: string
1654 // RequirementLevel: Recommended
1655 // Stability: Development
1656 //
1657 // Examples: "Build and Test", "Lint", "Deploy Go Project",
1658 // "deploy_to_environment"
1659 CICDPipelineNameKey = attribute.Key("cicd.pipeline.name")
1660
1661 // CICDPipelineResultKey is the attribute Key conforming to the
1662 // "cicd.pipeline.result" semantic conventions. It represents the result of a
1663 // pipeline run.
1664 //
1665 // Type: Enum
1666 // RequirementLevel: Recommended
1667 // Stability: Development
1668 //
1669 // Examples: "success", "failure", "timeout", "skipped"
1670 CICDPipelineResultKey = attribute.Key("cicd.pipeline.result")
1671
1672 // CICDPipelineRunIDKey is the attribute Key conforming to the
1673 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
1674 // identifier of a pipeline run within a CI/CD system.
1675 //
1676 // Type: string
1677 // RequirementLevel: Recommended
1678 // Stability: Development
1679 //
1680 // Examples: "120912"
1681 CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id")
1682
1683 // CICDPipelineRunStateKey is the attribute Key conforming to the
1684 // "cicd.pipeline.run.state" semantic conventions. It represents the pipeline
1685 // run goes through these states during its lifecycle.
1686 //
1687 // Type: Enum
1688 // RequirementLevel: Recommended
1689 // Stability: Development
1690 //
1691 // Examples: "pending", "executing", "finalizing"
1692 CICDPipelineRunStateKey = attribute.Key("cicd.pipeline.run.state")
1693
1694 // CICDPipelineRunURLFullKey is the attribute Key conforming to the
1695 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
1696 // the pipeline run, providing the complete address in order to locate and
1697 // identify the pipeline run.
1698 //
1699 // Type: string
1700 // RequirementLevel: Recommended
1701 // Stability: Development
1702 //
1703 // Examples:
1704 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075"
1705 //
1706 // [URL]: https://wikipedia.org/wiki/URL
1707 CICDPipelineRunURLFullKey = attribute.Key("cicd.pipeline.run.url.full")
1708
1709 // CICDPipelineTaskNameKey is the attribute Key conforming to the
1710 // "cicd.pipeline.task.name" semantic conventions. It represents the human
1711 // readable name of a task within a pipeline. Task here most closely aligns with
1712 // a [computing process] in a pipeline. Other terms for tasks include commands,
1713 // steps, and procedures.
1714 //
1715 // Type: string
1716 // RequirementLevel: Recommended
1717 // Stability: Development
1718 //
1719 // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary"
1720 //
1721 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
1722 CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name")
1723
1724 // CICDPipelineTaskRunIDKey is the attribute Key conforming to the
1725 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
1726 // identifier of a task run within a pipeline.
1727 //
1728 // Type: string
1729 // RequirementLevel: Recommended
1730 // Stability: Development
1731 //
1732 // Examples: "12097"
1733 CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id")
1734
1735 // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the
1736 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
1737 // [URL] of the pipeline task run, providing the complete address in order to
1738 // locate and identify the pipeline task run.
1739 //
1740 // Type: string
1741 // RequirementLevel: Recommended
1742 // Stability: Development
1743 //
1744 // Examples:
1745 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"
1746 //
1747 // [URL]: https://wikipedia.org/wiki/URL
1748 CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full")
1749
1750 // CICDPipelineTaskTypeKey is the attribute Key conforming to the
1751 // "cicd.pipeline.task.type" semantic conventions. It represents the type of the
1752 // task within a pipeline.
1753 //
1754 // Type: Enum
1755 // RequirementLevel: Recommended
1756 // Stability: Development
1757 //
1758 // Examples: "build", "test", "deploy"
1759 CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type")
1760
1761 // CICDSystemComponentKey is the attribute Key conforming to the
1762 // "cicd.system.component" semantic conventions. It represents the name of a
1763 // component of the CICD system.
1764 //
1765 // Type: string
1766 // RequirementLevel: Recommended
1767 // Stability: Development
1768 //
1769 // Examples: "controller", "scheduler", "agent"
1770 CICDSystemComponentKey = attribute.Key("cicd.system.component")
1771
1772 // CICDWorkerStateKey is the attribute Key conforming to the "cicd.worker.state"
1773 // semantic conventions. It represents the state of a CICD worker / agent.
1774 //
1775 // Type: Enum
1776 // RequirementLevel: Recommended
1777 // Stability: Development
1778 //
1779 // Examples: "idle", "busy", "down"
1780 CICDWorkerStateKey = attribute.Key("cicd.worker.state")
1781 )
1782
1783 // CICDPipelineName returns an attribute KeyValue conforming to the
1784 // "cicd.pipeline.name" semantic conventions. It represents the human readable
1785 // name of the pipeline within a CI/CD system.
1786 func CICDPipelineName(val string) attribute.KeyValue {
1787 return CICDPipelineNameKey.String(val)
1788 }
1789
1790 // CICDPipelineRunID returns an attribute KeyValue conforming to the
1791 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
1792 // identifier of a pipeline run within a CI/CD system.
1793 func CICDPipelineRunID(val string) attribute.KeyValue {
1794 return CICDPipelineRunIDKey.String(val)
1795 }
1796
1797 // CICDPipelineRunURLFull returns an attribute KeyValue conforming to the
1798 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
1799 // the pipeline run, providing the complete address in order to locate and
1800 // identify the pipeline run.
1801 //
1802 // [URL]: https://wikipedia.org/wiki/URL
1803 func CICDPipelineRunURLFull(val string) attribute.KeyValue {
1804 return CICDPipelineRunURLFullKey.String(val)
1805 }
1806
1807 // CICDPipelineTaskName returns an attribute KeyValue conforming to the
1808 // "cicd.pipeline.task.name" semantic conventions. It represents the human
1809 // readable name of a task within a pipeline. Task here most closely aligns with
1810 // a [computing process] in a pipeline. Other terms for tasks include commands,
1811 // steps, and procedures.
1812 //
1813 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
1814 func CICDPipelineTaskName(val string) attribute.KeyValue {
1815 return CICDPipelineTaskNameKey.String(val)
1816 }
1817
1818 // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the
1819 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
1820 // identifier of a task run within a pipeline.
1821 func CICDPipelineTaskRunID(val string) attribute.KeyValue {
1822 return CICDPipelineTaskRunIDKey.String(val)
1823 }
1824
1825 // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the
1826 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
1827 // [URL] of the pipeline task run, providing the complete address in order to
1828 // locate and identify the pipeline task run.
1829 //
1830 // [URL]: https://wikipedia.org/wiki/URL
1831 func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue {
1832 return CICDPipelineTaskRunURLFullKey.String(val)
1833 }
1834
1835 // CICDSystemComponent returns an attribute KeyValue conforming to the
1836 // "cicd.system.component" semantic conventions. It represents the name of a
1837 // component of the CICD system.
1838 func CICDSystemComponent(val string) attribute.KeyValue {
1839 return CICDSystemComponentKey.String(val)
1840 }
1841
1842 // Enum values for cicd.pipeline.result
1843 var (
1844 // The pipeline run finished successfully.
1845 // Stability: development
1846 CICDPipelineResultSuccess = CICDPipelineResultKey.String("success")
1847 // The pipeline run did not finish successfully, eg. due to a compile error or a
1848 // failing test. Such failures are usually detected by non-zero exit codes of
1849 // the tools executed in the pipeline run.
1850 // Stability: development
1851 CICDPipelineResultFailure = CICDPipelineResultKey.String("failure")
1852 // The pipeline run failed due to an error in the CICD system, eg. due to the
1853 // worker being killed.
1854 // Stability: development
1855 CICDPipelineResultError = CICDPipelineResultKey.String("error")
1856 // A timeout caused the pipeline run to be interrupted.
1857 // Stability: development
1858 CICDPipelineResultTimeout = CICDPipelineResultKey.String("timeout")
1859 // The pipeline run was cancelled, eg. by a user manually cancelling the
1860 // pipeline run.
1861 // Stability: development
1862 CICDPipelineResultCancellation = CICDPipelineResultKey.String("cancellation")
1863 // The pipeline run was skipped, eg. due to a precondition not being met.
1864 // Stability: development
1865 CICDPipelineResultSkip = CICDPipelineResultKey.String("skip")
1866 )
1867
1868 // Enum values for cicd.pipeline.run.state
1869 var (
1870 // The run pending state spans from the event triggering the pipeline run until
1871 // the execution of the run starts (eg. time spent in a queue, provisioning
1872 // agents, creating run resources).
1873 //
1874 // Stability: development
1875 CICDPipelineRunStatePending = CICDPipelineRunStateKey.String("pending")
1876 // The executing state spans the execution of any run tasks (eg. build, test).
1877 // Stability: development
1878 CICDPipelineRunStateExecuting = CICDPipelineRunStateKey.String("executing")
1879 // The finalizing state spans from when the run has finished executing (eg.
1880 // cleanup of run resources).
1881 // Stability: development
1882 CICDPipelineRunStateFinalizing = CICDPipelineRunStateKey.String("finalizing")
1883 )
1884
1885 // Enum values for cicd.pipeline.task.type
1886 var (
1887 // build
1888 // Stability: development
1889 CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build")
1890 // test
1891 // Stability: development
1892 CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test")
1893 // deploy
1894 // Stability: development
1895 CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy")
1896 )
1897
1898 // Enum values for cicd.worker.state
1899 var (
1900 // The worker is not performing work for the CICD system. It is available to the
1901 // CICD system to perform work on (online / idle).
1902 // Stability: development
1903 CICDWorkerStateAvailable = CICDWorkerStateKey.String("available")
1904 // The worker is performing work for the CICD system.
1905 // Stability: development
1906 CICDWorkerStateBusy = CICDWorkerStateKey.String("busy")
1907 // The worker is not available to the CICD system (disconnected / down).
1908 // Stability: development
1909 CICDWorkerStateOffline = CICDWorkerStateKey.String("offline")
1910 )
1911
1912 // Namespace: client
1913 const (
1914 // ClientAddressKey is the attribute Key conforming to the "client.address"
1915 // semantic conventions. It represents the client address - domain name if
1916 // available without reverse DNS lookup; otherwise, IP address or Unix domain
1917 // socket name.
1918 //
1919 // Type: string
1920 // RequirementLevel: Recommended
1921 // Stability: Stable
1922 //
1923 // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock"
1924 // Note: When observed from the server side, and when communicating through an
1925 // intermediary, `client.address` SHOULD represent the client address behind any
1926 // intermediaries, for example proxies, if it's available.
1927 ClientAddressKey = attribute.Key("client.address")
1928
1929 // ClientPortKey is the attribute Key conforming to the "client.port" semantic
1930 // conventions. It represents the client port number.
1931 //
1932 // Type: int
1933 // RequirementLevel: Recommended
1934 // Stability: Stable
1935 //
1936 // Examples: 65123
1937 // Note: When observed from the server side, and when communicating through an
1938 // intermediary, `client.port` SHOULD represent the client port behind any
1939 // intermediaries, for example proxies, if it's available.
1940 ClientPortKey = attribute.Key("client.port")
1941 )
1942
1943 // ClientAddress returns an attribute KeyValue conforming to the "client.address"
1944 // semantic conventions. It represents the client address - domain name if
1945 // available without reverse DNS lookup; otherwise, IP address or Unix domain
1946 // socket name.
1947 func ClientAddress(val string) attribute.KeyValue {
1948 return ClientAddressKey.String(val)
1949 }
1950
1951 // ClientPort returns an attribute KeyValue conforming to the "client.port"
1952 // semantic conventions. It represents the client port number.
1953 func ClientPort(val int) attribute.KeyValue {
1954 return ClientPortKey.Int(val)
1955 }
1956
1957 // Namespace: cloud
1958 const (
1959 // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id"
1960 // semantic conventions. It represents the cloud account ID the resource is
1961 // assigned to.
1962 //
1963 // Type: string
1964 // RequirementLevel: Recommended
1965 // Stability: Development
1966 //
1967 // Examples: "111111111111", "opentelemetry"
1968 CloudAccountIDKey = attribute.Key("cloud.account.id")
1969
1970 // CloudAvailabilityZoneKey is the attribute Key conforming to the
1971 // "cloud.availability_zone" semantic conventions. It represents the cloud
1972 // regions often have multiple, isolated locations known as zones to increase
1973 // availability. Availability zone represents the zone where the resource is
1974 // running.
1975 //
1976 // Type: string
1977 // RequirementLevel: Recommended
1978 // Stability: Development
1979 //
1980 // Examples: "us-east-1c"
1981 // Note: Availability zones are called "zones" on Alibaba Cloud and Google
1982 // Cloud.
1983 CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
1984
1985 // CloudPlatformKey is the attribute Key conforming to the "cloud.platform"
1986 // semantic conventions. It represents the cloud platform in use.
1987 //
1988 // Type: Enum
1989 // RequirementLevel: Recommended
1990 // Stability: Development
1991 //
1992 // Examples:
1993 // Note: The prefix of the service SHOULD match the one specified in
1994 // `cloud.provider`.
1995 CloudPlatformKey = attribute.Key("cloud.platform")
1996
1997 // CloudProviderKey is the attribute Key conforming to the "cloud.provider"
1998 // semantic conventions. It represents the name of the cloud provider.
1999 //
2000 // Type: Enum
2001 // RequirementLevel: Recommended
2002 // Stability: Development
2003 //
2004 // Examples:
2005 CloudProviderKey = attribute.Key("cloud.provider")
2006
2007 // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic
2008 // conventions. It represents the geographical region the resource is running.
2009 //
2010 // Type: string
2011 // RequirementLevel: Recommended
2012 // Stability: Development
2013 //
2014 // Examples: "us-central1", "us-east-1"
2015 // Note: Refer to your provider's docs to see the available regions, for example
2016 // [Alibaba Cloud regions], [AWS regions], [Azure regions],
2017 // [Google Cloud regions], or [Tencent Cloud regions].
2018 //
2019 // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm
2020 // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/
2021 // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/
2022 // [Google Cloud regions]: https://cloud.google.com/about/locations
2023 // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091
2024 CloudRegionKey = attribute.Key("cloud.region")
2025
2026 // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id"
2027 // semantic conventions. It represents the cloud provider-specific native
2028 // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a
2029 // [fully qualified resource ID] on Azure, a [full resource name] on GCP).
2030 //
2031 // Type: string
2032 // RequirementLevel: Recommended
2033 // Stability: Development
2034 //
2035 // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",
2036 // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID",
2037 // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>
2038 // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>"
2039 // Note: On some cloud providers, it may not be possible to determine the full
2040 // ID at startup,
2041 // so it may be necessary to set `cloud.resource_id` as a span attribute
2042 // instead.
2043 //
2044 // The exact value to use for `cloud.resource_id` depends on the cloud provider.
2045 // The following well-known definitions MUST be used if you set this attribute
2046 // and they apply:
2047 //
2048 // - **AWS Lambda:** The function [ARN].
2049 // Take care not to use the "invoked ARN" directly but replace any
2050 // [alias suffix]
2051 // with the resolved function version, as the same runtime instance may be
2052 // invocable with
2053 // multiple different aliases.
2054 // - **GCP:** The [URI of the resource]
2055 // - **Azure:** The [Fully Qualified Resource ID] of the invoked function,
2056 // *not* the function app, having the form
2057 //
2058 // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`
2059 // .
2060 // This means that a span attribute MUST be used, as an Azure function app
2061 // can host multiple functions that would usually share
2062 // a TracerProvider.
2063 //
2064 //
2065 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2066 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2067 // [full resource name]: https://google.aip.dev/122#full-resource-names
2068 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2069 // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
2070 // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names
2071 // [Fully Qualified Resource ID]: https://docs.microsoft.com/rest/api/resources/resources/get-by-id
2072 CloudResourceIDKey = attribute.Key("cloud.resource_id")
2073 )
2074
2075 // CloudAccountID returns an attribute KeyValue conforming to the
2076 // "cloud.account.id" semantic conventions. It represents the cloud account ID
2077 // the resource is assigned to.
2078 func CloudAccountID(val string) attribute.KeyValue {
2079 return CloudAccountIDKey.String(val)
2080 }
2081
2082 // CloudAvailabilityZone returns an attribute KeyValue conforming to the
2083 // "cloud.availability_zone" semantic conventions. It represents the cloud
2084 // regions often have multiple, isolated locations known as zones to increase
2085 // availability. Availability zone represents the zone where the resource is
2086 // running.
2087 func CloudAvailabilityZone(val string) attribute.KeyValue {
2088 return CloudAvailabilityZoneKey.String(val)
2089 }
2090
2091 // CloudRegion returns an attribute KeyValue conforming to the "cloud.region"
2092 // semantic conventions. It represents the geographical region the resource is
2093 // running.
2094 func CloudRegion(val string) attribute.KeyValue {
2095 return CloudRegionKey.String(val)
2096 }
2097
2098 // CloudResourceID returns an attribute KeyValue conforming to the
2099 // "cloud.resource_id" semantic conventions. It represents the cloud
2100 // provider-specific native identifier of the monitored cloud resource (e.g. an
2101 // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name]
2102 // on GCP).
2103 //
2104 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2105 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2106 // [full resource name]: https://google.aip.dev/122#full-resource-names
2107 func CloudResourceID(val string) attribute.KeyValue {
2108 return CloudResourceIDKey.String(val)
2109 }
2110
2111 // Enum values for cloud.platform
2112 var (
2113 // Alibaba Cloud Elastic Compute Service
2114 // Stability: development
2115 CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
2116 // Alibaba Cloud Function Compute
2117 // Stability: development
2118 CloudPlatformAlibabaCloudFc = CloudPlatformKey.String("alibaba_cloud_fc")
2119 // Red Hat OpenShift on Alibaba Cloud
2120 // Stability: development
2121 CloudPlatformAlibabaCloudOpenshift = CloudPlatformKey.String("alibaba_cloud_openshift")
2122 // AWS Elastic Compute Cloud
2123 // Stability: development
2124 CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
2125 // AWS Elastic Container Service
2126 // Stability: development
2127 CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
2128 // AWS Elastic Kubernetes Service
2129 // Stability: development
2130 CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
2131 // AWS Lambda
2132 // Stability: development
2133 CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
2134 // AWS Elastic Beanstalk
2135 // Stability: development
2136 CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
2137 // AWS App Runner
2138 // Stability: development
2139 CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
2140 // Red Hat OpenShift on AWS (ROSA)
2141 // Stability: development
2142 CloudPlatformAWSOpenshift = CloudPlatformKey.String("aws_openshift")
2143 // Azure Virtual Machines
2144 // Stability: development
2145 CloudPlatformAzureVM = CloudPlatformKey.String("azure_vm")
2146 // Azure Container Apps
2147 // Stability: development
2148 CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure_container_apps")
2149 // Azure Container Instances
2150 // Stability: development
2151 CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure_container_instances")
2152 // Azure Kubernetes Service
2153 // Stability: development
2154 CloudPlatformAzureAKS = CloudPlatformKey.String("azure_aks")
2155 // Azure Functions
2156 // Stability: development
2157 CloudPlatformAzureFunctions = CloudPlatformKey.String("azure_functions")
2158 // Azure App Service
2159 // Stability: development
2160 CloudPlatformAzureAppService = CloudPlatformKey.String("azure_app_service")
2161 // Azure Red Hat OpenShift
2162 // Stability: development
2163 CloudPlatformAzureOpenshift = CloudPlatformKey.String("azure_openshift")
2164 // Google Bare Metal Solution (BMS)
2165 // Stability: development
2166 CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
2167 // Google Cloud Compute Engine (GCE)
2168 // Stability: development
2169 CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
2170 // Google Cloud Run
2171 // Stability: development
2172 CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
2173 // Google Cloud Kubernetes Engine (GKE)
2174 // Stability: development
2175 CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
2176 // Google Cloud Functions (GCF)
2177 // Stability: development
2178 CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
2179 // Google Cloud App Engine (GAE)
2180 // Stability: development
2181 CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
2182 // Red Hat OpenShift on Google Cloud
2183 // Stability: development
2184 CloudPlatformGCPOpenshift = CloudPlatformKey.String("gcp_openshift")
2185 // Red Hat OpenShift on IBM Cloud
2186 // Stability: development
2187 CloudPlatformIbmCloudOpenshift = CloudPlatformKey.String("ibm_cloud_openshift")
2188 // Compute on Oracle Cloud Infrastructure (OCI)
2189 // Stability: development
2190 CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute")
2191 // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI)
2192 // Stability: development
2193 CloudPlatformOracleCloudOke = CloudPlatformKey.String("oracle_cloud_oke")
2194 // Tencent Cloud Cloud Virtual Machine (CVM)
2195 // Stability: development
2196 CloudPlatformTencentCloudCvm = CloudPlatformKey.String("tencent_cloud_cvm")
2197 // Tencent Cloud Elastic Kubernetes Service (EKS)
2198 // Stability: development
2199 CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
2200 // Tencent Cloud Serverless Cloud Function (SCF)
2201 // Stability: development
2202 CloudPlatformTencentCloudScf = CloudPlatformKey.String("tencent_cloud_scf")
2203 )
2204
2205 // Enum values for cloud.provider
2206 var (
2207 // Alibaba Cloud
2208 // Stability: development
2209 CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
2210 // Amazon Web Services
2211 // Stability: development
2212 CloudProviderAWS = CloudProviderKey.String("aws")
2213 // Microsoft Azure
2214 // Stability: development
2215 CloudProviderAzure = CloudProviderKey.String("azure")
2216 // Google Cloud Platform
2217 // Stability: development
2218 CloudProviderGCP = CloudProviderKey.String("gcp")
2219 // Heroku Platform as a Service
2220 // Stability: development
2221 CloudProviderHeroku = CloudProviderKey.String("heroku")
2222 // IBM Cloud
2223 // Stability: development
2224 CloudProviderIbmCloud = CloudProviderKey.String("ibm_cloud")
2225 // Oracle Cloud Infrastructure (OCI)
2226 // Stability: development
2227 CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud")
2228 // Tencent Cloud
2229 // Stability: development
2230 CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
2231 )
2232
2233 // Namespace: cloudevents
2234 const (
2235 // CloudeventsEventIDKey is the attribute Key conforming to the
2236 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2237 // uniquely identifies the event.
2238 //
2239 // Type: string
2240 // RequirementLevel: Recommended
2241 // Stability: Development
2242 //
2243 // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
2244 //
2245 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2246 CloudeventsEventIDKey = attribute.Key("cloudevents.event_id")
2247
2248 // CloudeventsEventSourceKey is the attribute Key conforming to the
2249 // "cloudevents.event_source" semantic conventions. It represents the [source]
2250 // identifies the context in which an event happened.
2251 //
2252 // Type: string
2253 // RequirementLevel: Recommended
2254 // Stability: Development
2255 //
2256 // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
2257 // "my-service"
2258 //
2259 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2260 CloudeventsEventSourceKey = attribute.Key("cloudevents.event_source")
2261
2262 // CloudeventsEventSpecVersionKey is the attribute Key conforming to the
2263 // "cloudevents.event_spec_version" semantic conventions. It represents the
2264 // [version of the CloudEvents specification] which the event uses.
2265 //
2266 // Type: string
2267 // RequirementLevel: Recommended
2268 // Stability: Development
2269 //
2270 // Examples: 1.0
2271 //
2272 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2273 CloudeventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
2274
2275 // CloudeventsEventSubjectKey is the attribute Key conforming to the
2276 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2277 // of the event in the context of the event producer (identified by source).
2278 //
2279 // Type: string
2280 // RequirementLevel: Recommended
2281 // Stability: Development
2282 //
2283 // Examples: mynewfile.jpg
2284 //
2285 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2286 CloudeventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
2287
2288 // CloudeventsEventTypeKey is the attribute Key conforming to the
2289 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2290 // contains a value describing the type of event related to the originating
2291 // occurrence.
2292 //
2293 // Type: string
2294 // RequirementLevel: Recommended
2295 // Stability: Development
2296 //
2297 // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
2298 //
2299 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2300 CloudeventsEventTypeKey = attribute.Key("cloudevents.event_type")
2301 )
2302
2303 // CloudeventsEventID returns an attribute KeyValue conforming to the
2304 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2305 // uniquely identifies the event.
2306 //
2307 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2308 func CloudeventsEventID(val string) attribute.KeyValue {
2309 return CloudeventsEventIDKey.String(val)
2310 }
2311
2312 // CloudeventsEventSource returns an attribute KeyValue conforming to the
2313 // "cloudevents.event_source" semantic conventions. It represents the [source]
2314 // identifies the context in which an event happened.
2315 //
2316 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2317 func CloudeventsEventSource(val string) attribute.KeyValue {
2318 return CloudeventsEventSourceKey.String(val)
2319 }
2320
2321 // CloudeventsEventSpecVersion returns an attribute KeyValue conforming to the
2322 // "cloudevents.event_spec_version" semantic conventions. It represents the
2323 // [version of the CloudEvents specification] which the event uses.
2324 //
2325 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2326 func CloudeventsEventSpecVersion(val string) attribute.KeyValue {
2327 return CloudeventsEventSpecVersionKey.String(val)
2328 }
2329
2330 // CloudeventsEventSubject returns an attribute KeyValue conforming to the
2331 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2332 // of the event in the context of the event producer (identified by source).
2333 //
2334 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2335 func CloudeventsEventSubject(val string) attribute.KeyValue {
2336 return CloudeventsEventSubjectKey.String(val)
2337 }
2338
2339 // CloudeventsEventType returns an attribute KeyValue conforming to the
2340 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2341 // contains a value describing the type of event related to the originating
2342 // occurrence.
2343 //
2344 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2345 func CloudeventsEventType(val string) attribute.KeyValue {
2346 return CloudeventsEventTypeKey.String(val)
2347 }
2348
2349 // Namespace: cloudfoundry
2350 const (
2351 // CloudfoundryAppIDKey is the attribute Key conforming to the
2352 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2353 // application.
2354 //
2355 // Type: string
2356 // RequirementLevel: Recommended
2357 // Stability: Development
2358 //
2359 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2360 // Note: Application instrumentation should use the value from environment
2361 // variable `VCAP_APPLICATION.application_id`. This is the same value as
2362 // reported by `cf app <app-name> --guid`.
2363 CloudfoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
2364
2365 // CloudfoundryAppInstanceIDKey is the attribute Key conforming to the
2366 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2367 // of the application instance. 0 when just one instance is active.
2368 //
2369 // Type: string
2370 // RequirementLevel: Recommended
2371 // Stability: Development
2372 //
2373 // Examples: "0", "1"
2374 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2375 // .
2376 // It is used for logs and metrics emitted by CloudFoundry. It is
2377 // supposed to contain the application instance index for applications
2378 // deployed on the runtime.
2379 //
2380 // Application instrumentation should use the value from environment
2381 // variable `CF_INSTANCE_INDEX`.
2382 //
2383 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2384 CloudfoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
2385
2386 // CloudfoundryAppNameKey is the attribute Key conforming to the
2387 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2388 // application.
2389 //
2390 // Type: string
2391 // RequirementLevel: Recommended
2392 // Stability: Development
2393 //
2394 // Examples: "my-app-name"
2395 // Note: Application instrumentation should use the value from environment
2396 // variable `VCAP_APPLICATION.application_name`. This is the same value
2397 // as reported by `cf apps`.
2398 CloudfoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
2399
2400 // CloudfoundryOrgIDKey is the attribute Key conforming to the
2401 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
2402 // CloudFoundry org the application is running in.
2403 //
2404 // Type: string
2405 // RequirementLevel: Recommended
2406 // Stability: Development
2407 //
2408 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2409 // Note: Application instrumentation should use the value from environment
2410 // variable `VCAP_APPLICATION.org_id`. This is the same value as
2411 // reported by `cf org <org-name> --guid`.
2412 CloudfoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
2413
2414 // CloudfoundryOrgNameKey is the attribute Key conforming to the
2415 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
2416 // CloudFoundry organization the app is running in.
2417 //
2418 // Type: string
2419 // RequirementLevel: Recommended
2420 // Stability: Development
2421 //
2422 // Examples: "my-org-name"
2423 // Note: Application instrumentation should use the value from environment
2424 // variable `VCAP_APPLICATION.org_name`. This is the same value as
2425 // reported by `cf orgs`.
2426 CloudfoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
2427
2428 // CloudfoundryProcessIDKey is the attribute Key conforming to the
2429 // "cloudfoundry.process.id" semantic conventions. It represents the UID
2430 // identifying the process.
2431 //
2432 // Type: string
2433 // RequirementLevel: Recommended
2434 // Stability: Development
2435 //
2436 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2437 // Note: Application instrumentation should use the value from environment
2438 // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
2439 // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
2440 // For system components, this could be the actual PID.
2441 CloudfoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
2442
2443 // CloudfoundryProcessTypeKey is the attribute Key conforming to the
2444 // "cloudfoundry.process.type" semantic conventions. It represents the type of
2445 // process.
2446 //
2447 // Type: string
2448 // RequirementLevel: Recommended
2449 // Stability: Development
2450 //
2451 // Examples: "web"
2452 // Note: CloudFoundry applications can consist of multiple jobs. Usually the
2453 // main process will be of type `web`. There can be additional background
2454 // tasks or side-cars with different process types.
2455 CloudfoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
2456
2457 // CloudfoundrySpaceIDKey is the attribute Key conforming to the
2458 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
2459 // CloudFoundry space the application is running in.
2460 //
2461 // Type: string
2462 // RequirementLevel: Recommended
2463 // Stability: Development
2464 //
2465 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2466 // Note: Application instrumentation should use the value from environment
2467 // variable `VCAP_APPLICATION.space_id`. This is the same value as
2468 // reported by `cf space <space-name> --guid`.
2469 CloudfoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
2470
2471 // CloudfoundrySpaceNameKey is the attribute Key conforming to the
2472 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
2473 // CloudFoundry space the application is running in.
2474 //
2475 // Type: string
2476 // RequirementLevel: Recommended
2477 // Stability: Development
2478 //
2479 // Examples: "my-space-name"
2480 // Note: Application instrumentation should use the value from environment
2481 // variable `VCAP_APPLICATION.space_name`. This is the same value as
2482 // reported by `cf spaces`.
2483 CloudfoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
2484
2485 // CloudfoundrySystemIDKey is the attribute Key conforming to the
2486 // "cloudfoundry.system.id" semantic conventions. It represents a guid or
2487 // another name describing the event source.
2488 //
2489 // Type: string
2490 // RequirementLevel: Recommended
2491 // Stability: Development
2492 //
2493 // Examples: "cf/gorouter"
2494 // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
2495 // It is used for logs and metrics emitted by CloudFoundry. It is
2496 // supposed to contain the component name, e.g. "gorouter", for
2497 // CloudFoundry components.
2498 //
2499 // When system components are instrumented, values from the
2500 // [Bosh spec]
2501 // should be used. The `system.id` should be set to
2502 // `spec.deployment/spec.name`.
2503 //
2504 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2505 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2506 CloudfoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
2507
2508 // CloudfoundrySystemInstanceIDKey is the attribute Key conforming to the
2509 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
2510 // describing the concrete instance of the event source.
2511 //
2512 // Type: string
2513 // RequirementLevel: Recommended
2514 // Stability: Development
2515 //
2516 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2517 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2518 // .
2519 // It is used for logs and metrics emitted by CloudFoundry. It is
2520 // supposed to contain the vm id for CloudFoundry components.
2521 //
2522 // When system components are instrumented, values from the
2523 // [Bosh spec]
2524 // should be used. The `system.instance.id` should be set to `spec.id`.
2525 //
2526 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2527 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2528 CloudfoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
2529 )
2530
2531 // CloudfoundryAppID returns an attribute KeyValue conforming to the
2532 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2533 // application.
2534 func CloudfoundryAppID(val string) attribute.KeyValue {
2535 return CloudfoundryAppIDKey.String(val)
2536 }
2537
2538 // CloudfoundryAppInstanceID returns an attribute KeyValue conforming to the
2539 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2540 // of the application instance. 0 when just one instance is active.
2541 func CloudfoundryAppInstanceID(val string) attribute.KeyValue {
2542 return CloudfoundryAppInstanceIDKey.String(val)
2543 }
2544
2545 // CloudfoundryAppName returns an attribute KeyValue conforming to the
2546 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2547 // application.
2548 func CloudfoundryAppName(val string) attribute.KeyValue {
2549 return CloudfoundryAppNameKey.String(val)
2550 }
2551
2552 // CloudfoundryOrgID returns an attribute KeyValue conforming to the
2553 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
2554 // CloudFoundry org the application is running in.
2555 func CloudfoundryOrgID(val string) attribute.KeyValue {
2556 return CloudfoundryOrgIDKey.String(val)
2557 }
2558
2559 // CloudfoundryOrgName returns an attribute KeyValue conforming to the
2560 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
2561 // CloudFoundry organization the app is running in.
2562 func CloudfoundryOrgName(val string) attribute.KeyValue {
2563 return CloudfoundryOrgNameKey.String(val)
2564 }
2565
2566 // CloudfoundryProcessID returns an attribute KeyValue conforming to the
2567 // "cloudfoundry.process.id" semantic conventions. It represents the UID
2568 // identifying the process.
2569 func CloudfoundryProcessID(val string) attribute.KeyValue {
2570 return CloudfoundryProcessIDKey.String(val)
2571 }
2572
2573 // CloudfoundryProcessType returns an attribute KeyValue conforming to the
2574 // "cloudfoundry.process.type" semantic conventions. It represents the type of
2575 // process.
2576 func CloudfoundryProcessType(val string) attribute.KeyValue {
2577 return CloudfoundryProcessTypeKey.String(val)
2578 }
2579
2580 // CloudfoundrySpaceID returns an attribute KeyValue conforming to the
2581 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
2582 // CloudFoundry space the application is running in.
2583 func CloudfoundrySpaceID(val string) attribute.KeyValue {
2584 return CloudfoundrySpaceIDKey.String(val)
2585 }
2586
2587 // CloudfoundrySpaceName returns an attribute KeyValue conforming to the
2588 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
2589 // CloudFoundry space the application is running in.
2590 func CloudfoundrySpaceName(val string) attribute.KeyValue {
2591 return CloudfoundrySpaceNameKey.String(val)
2592 }
2593
2594 // CloudfoundrySystemID returns an attribute KeyValue conforming to the
2595 // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
2596 // name describing the event source.
2597 func CloudfoundrySystemID(val string) attribute.KeyValue {
2598 return CloudfoundrySystemIDKey.String(val)
2599 }
2600
2601 // CloudfoundrySystemInstanceID returns an attribute KeyValue conforming to the
2602 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
2603 // describing the concrete instance of the event source.
2604 func CloudfoundrySystemInstanceID(val string) attribute.KeyValue {
2605 return CloudfoundrySystemInstanceIDKey.String(val)
2606 }
2607
2608 // Namespace: code
2609 const (
2610 // CodeColumnNumberKey is the attribute Key conforming to the
2611 // "code.column.number" semantic conventions. It represents the column number in
2612 // `code.file.path` best representing the operation. It SHOULD point within the
2613 // code unit named in `code.function.name`.
2614 //
2615 // Type: int
2616 // RequirementLevel: Recommended
2617 // Stability: Release_Candidate
2618 CodeColumnNumberKey = attribute.Key("code.column.number")
2619
2620 // CodeFilePathKey is the attribute Key conforming to the "code.file.path"
2621 // semantic conventions. It represents the source code file name that identifies
2622 // the code unit as uniquely as possible (preferably an absolute file path).
2623 //
2624 // Type: string
2625 // RequirementLevel: Recommended
2626 // Stability: Release_Candidate
2627 //
2628 // Examples: /usr/local/MyApplication/content_root/app/index.php
2629 CodeFilePathKey = attribute.Key("code.file.path")
2630
2631 // CodeFunctionNameKey is the attribute Key conforming to the
2632 // "code.function.name" semantic conventions. It represents the method or
2633 // function fully-qualified name without arguments. The value should fit the
2634 // natural representation of the language runtime, which is also likely the same
2635 // used within `code.stacktrace` attribute value.
2636 //
2637 // Type: string
2638 // RequirementLevel: Recommended
2639 // Stability: Release_Candidate
2640 //
2641 // Examples: "com.example.MyHttpService.serveRequest",
2642 // "GuzzleHttp\Client::transfer", "fopen"
2643 // Note: Values and format depends on each language runtime, thus it is
2644 // impossible to provide an exhaustive list of examples.
2645 // The values are usually the same (or prefixes of) the ones found in native
2646 // stack trace representation stored in
2647 // `code.stacktrace` without information on arguments.
2648 //
2649 // Examples:
2650 //
2651 // - Java method: `com.example.MyHttpService.serveRequest`
2652 // - Java anonymous class method: `com.mycompany.Main$1.myMethod`
2653 // - Java lambda method:
2654 // `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod`
2655 // - PHP function: `GuzzleHttp\Client::transfer
2656 // - Go function: `github.com/my/repo/pkg.foo.func5`
2657 // - Elixir: `OpenTelemetry.Ctx.new`
2658 // - Erlang: `opentelemetry_ctx:new`
2659 // - Rust: `playground::my_module::my_cool_func`
2660 // - C function: `fopen`
2661 CodeFunctionNameKey = attribute.Key("code.function.name")
2662
2663 // CodeLineNumberKey is the attribute Key conforming to the "code.line.number"
2664 // semantic conventions. It represents the line number in `code.file.path` best
2665 // representing the operation. It SHOULD point within the code unit named in
2666 // `code.function.name`.
2667 //
2668 // Type: int
2669 // RequirementLevel: Recommended
2670 // Stability: Release_Candidate
2671 CodeLineNumberKey = attribute.Key("code.line.number")
2672
2673 // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
2674 // semantic conventions. It represents a stacktrace as a string in the natural
2675 // representation for the language runtime. The representation is identical to
2676 // [`exception.stacktrace`].
2677 //
2678 // Type: string
2679 // RequirementLevel: Recommended
2680 // Stability: Release_Candidate
2681 //
2682 // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
2683 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
2684 // com.example.GenerateTrace.main(GenerateTrace.java:5)
2685 //
2686 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
2687 CodeStacktraceKey = attribute.Key("code.stacktrace")
2688 )
2689
2690 // CodeColumnNumber returns an attribute KeyValue conforming to the
2691 // "code.column.number" semantic conventions. It represents the column number in
2692 // `code.file.path` best representing the operation. It SHOULD point within the
2693 // code unit named in `code.function.name`.
2694 func CodeColumnNumber(val int) attribute.KeyValue {
2695 return CodeColumnNumberKey.Int(val)
2696 }
2697
2698 // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path"
2699 // semantic conventions. It represents the source code file name that identifies
2700 // the code unit as uniquely as possible (preferably an absolute file path).
2701 func CodeFilePath(val string) attribute.KeyValue {
2702 return CodeFilePathKey.String(val)
2703 }
2704
2705 // CodeFunctionName returns an attribute KeyValue conforming to the
2706 // "code.function.name" semantic conventions. It represents the method or
2707 // function fully-qualified name without arguments. The value should fit the
2708 // natural representation of the language runtime, which is also likely the same
2709 // used within `code.stacktrace` attribute value.
2710 func CodeFunctionName(val string) attribute.KeyValue {
2711 return CodeFunctionNameKey.String(val)
2712 }
2713
2714 // CodeLineNumber returns an attribute KeyValue conforming to the
2715 // "code.line.number" semantic conventions. It represents the line number in
2716 // `code.file.path` best representing the operation. It SHOULD point within the
2717 // code unit named in `code.function.name`.
2718 func CodeLineNumber(val int) attribute.KeyValue {
2719 return CodeLineNumberKey.Int(val)
2720 }
2721
2722 // CodeStacktrace returns an attribute KeyValue conforming to the
2723 // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
2724 // in the natural representation for the language runtime. The representation is
2725 // identical to [`exception.stacktrace`].
2726 //
2727 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
2728 func CodeStacktrace(val string) attribute.KeyValue {
2729 return CodeStacktraceKey.String(val)
2730 }
2731
2732 // Namespace: container
2733 const (
2734 // ContainerCommandKey is the attribute Key conforming to the
2735 // "container.command" semantic conventions. It represents the command used to
2736 // run the container (i.e. the command name).
2737 //
2738 // Type: string
2739 // RequirementLevel: Recommended
2740 // Stability: Development
2741 //
2742 // Examples: "otelcontribcol"
2743 // Note: If using embedded credentials or sensitive data, it is recommended to
2744 // remove them to prevent potential leakage.
2745 ContainerCommandKey = attribute.Key("container.command")
2746
2747 // ContainerCommandArgsKey is the attribute Key conforming to the
2748 // "container.command_args" semantic conventions. It represents the all the
2749 // command arguments (including the command/executable itself) run by the
2750 // container.
2751 //
2752 // Type: string[]
2753 // RequirementLevel: Recommended
2754 // Stability: Development
2755 //
2756 // Examples: "otelcontribcol", "--config", "config.yaml"
2757 ContainerCommandArgsKey = attribute.Key("container.command_args")
2758
2759 // ContainerCommandLineKey is the attribute Key conforming to the
2760 // "container.command_line" semantic conventions. It represents the full command
2761 // run by the container as a single string representing the full command.
2762 //
2763 // Type: string
2764 // RequirementLevel: Recommended
2765 // Stability: Development
2766 //
2767 // Examples: "otelcontribcol --config config.yaml"
2768 ContainerCommandLineKey = attribute.Key("container.command_line")
2769
2770 // ContainerCsiPluginNameKey is the attribute Key conforming to the
2771 // "container.csi.plugin.name" semantic conventions. It represents the name of
2772 // the CSI ([Container Storage Interface]) plugin used by the volume.
2773 //
2774 // Type: string
2775 // RequirementLevel: Recommended
2776 // Stability: Development
2777 //
2778 // Examples: "pd.csi.storage.gke.io"
2779 // Note: This can sometimes be referred to as a "driver" in CSI implementations.
2780 // This should represent the `name` field of the GetPluginInfo RPC.
2781 //
2782 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2783 ContainerCsiPluginNameKey = attribute.Key("container.csi.plugin.name")
2784
2785 // ContainerCsiVolumeIDKey is the attribute Key conforming to the
2786 // "container.csi.volume.id" semantic conventions. It represents the unique
2787 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
2788 //
2789 // Type: string
2790 // RequirementLevel: Recommended
2791 // Stability: Development
2792 //
2793 // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
2794 // Note: This can sometimes be referred to as a "volume handle" in CSI
2795 // implementations. This should represent the `Volume.volume_id` field in CSI
2796 // spec.
2797 //
2798 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2799 ContainerCsiVolumeIDKey = attribute.Key("container.csi.volume.id")
2800
2801 // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
2802 // conventions. It represents the container ID. Usually a UUID, as for example
2803 // used to [identify Docker containers]. The UUID might be abbreviated.
2804 //
2805 // Type: string
2806 // RequirementLevel: Recommended
2807 // Stability: Development
2808 //
2809 // Examples: "a3bf90e006b2"
2810 //
2811 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
2812 ContainerIDKey = attribute.Key("container.id")
2813
2814 // ContainerImageIDKey is the attribute Key conforming to the
2815 // "container.image.id" semantic conventions. It represents the runtime specific
2816 // image identifier. Usually a hash algorithm followed by a UUID.
2817 //
2818 // Type: string
2819 // RequirementLevel: Recommended
2820 // Stability: Development
2821 //
2822 // Examples:
2823 // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
2824 // Note: Docker defines a sha256 of the image id; `container.image.id`
2825 // corresponds to the `Image` field from the Docker container inspect [API]
2826 // endpoint.
2827 // K8s defines a link to the container registry repository with digest
2828 // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
2829 // .
2830 // The ID is assigned by the container runtime and can vary in different
2831 // environments. Consider using `oci.manifest.digest` if it is important to
2832 // identify the same image in different environments/runtimes.
2833 //
2834 // [API]: https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect
2835 ContainerImageIDKey = attribute.Key("container.image.id")
2836
2837 // ContainerImageNameKey is the attribute Key conforming to the
2838 // "container.image.name" semantic conventions. It represents the name of the
2839 // image the container was built on.
2840 //
2841 // Type: string
2842 // RequirementLevel: Recommended
2843 // Stability: Development
2844 //
2845 // Examples: "gcr.io/opentelemetry/operator"
2846 ContainerImageNameKey = attribute.Key("container.image.name")
2847
2848 // ContainerImageRepoDigestsKey is the attribute Key conforming to the
2849 // "container.image.repo_digests" semantic conventions. It represents the repo
2850 // digests of the container image as provided by the container runtime.
2851 //
2852 // Type: string[]
2853 // RequirementLevel: Recommended
2854 // Stability: Development
2855 //
2856 // Examples:
2857 // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
2858 // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
2859 // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
2860 //
2861 // [Docker]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
2862 // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
2863 ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
2864
2865 // ContainerImageTagsKey is the attribute Key conforming to the
2866 // "container.image.tags" semantic conventions. It represents the container
2867 // image tags. An example can be found in [Docker Image Inspect]. Should be only
2868 // the `<tag>` section of the full name for example from
2869 // `registry.example.com/my-org/my-image:<tag>`.
2870 //
2871 // Type: string[]
2872 // RequirementLevel: Recommended
2873 // Stability: Development
2874 //
2875 // Examples: "v1.27.1", "3.5.7-0"
2876 //
2877 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
2878 ContainerImageTagsKey = attribute.Key("container.image.tags")
2879
2880 // ContainerNameKey is the attribute Key conforming to the "container.name"
2881 // semantic conventions. It represents the container name used by container
2882 // runtime.
2883 //
2884 // Type: string
2885 // RequirementLevel: Recommended
2886 // Stability: Development
2887 //
2888 // Examples: "opentelemetry-autoconf"
2889 ContainerNameKey = attribute.Key("container.name")
2890
2891 // ContainerRuntimeKey is the attribute Key conforming to the
2892 // "container.runtime" semantic conventions. It represents the container runtime
2893 // managing this container.
2894 //
2895 // Type: string
2896 // RequirementLevel: Recommended
2897 // Stability: Development
2898 //
2899 // Examples: "docker", "containerd", "rkt"
2900 ContainerRuntimeKey = attribute.Key("container.runtime")
2901 )
2902
2903 // ContainerCommand returns an attribute KeyValue conforming to the
2904 // "container.command" semantic conventions. It represents the command used to
2905 // run the container (i.e. the command name).
2906 func ContainerCommand(val string) attribute.KeyValue {
2907 return ContainerCommandKey.String(val)
2908 }
2909
2910 // ContainerCommandArgs returns an attribute KeyValue conforming to the
2911 // "container.command_args" semantic conventions. It represents the all the
2912 // command arguments (including the command/executable itself) run by the
2913 // container.
2914 func ContainerCommandArgs(val ...string) attribute.KeyValue {
2915 return ContainerCommandArgsKey.StringSlice(val)
2916 }
2917
2918 // ContainerCommandLine returns an attribute KeyValue conforming to the
2919 // "container.command_line" semantic conventions. It represents the full command
2920 // run by the container as a single string representing the full command.
2921 func ContainerCommandLine(val string) attribute.KeyValue {
2922 return ContainerCommandLineKey.String(val)
2923 }
2924
2925 // ContainerCsiPluginName returns an attribute KeyValue conforming to the
2926 // "container.csi.plugin.name" semantic conventions. It represents the name of
2927 // the CSI ([Container Storage Interface]) plugin used by the volume.
2928 //
2929 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2930 func ContainerCsiPluginName(val string) attribute.KeyValue {
2931 return ContainerCsiPluginNameKey.String(val)
2932 }
2933
2934 // ContainerCsiVolumeID returns an attribute KeyValue conforming to the
2935 // "container.csi.volume.id" semantic conventions. It represents the unique
2936 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
2937 //
2938 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2939 func ContainerCsiVolumeID(val string) attribute.KeyValue {
2940 return ContainerCsiVolumeIDKey.String(val)
2941 }
2942
2943 // ContainerID returns an attribute KeyValue conforming to the "container.id"
2944 // semantic conventions. It represents the container ID. Usually a UUID, as for
2945 // example used to [identify Docker containers]. The UUID might be abbreviated.
2946 //
2947 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
2948 func ContainerID(val string) attribute.KeyValue {
2949 return ContainerIDKey.String(val)
2950 }
2951
2952 // ContainerImageID returns an attribute KeyValue conforming to the
2953 // "container.image.id" semantic conventions. It represents the runtime specific
2954 // image identifier. Usually a hash algorithm followed by a UUID.
2955 func ContainerImageID(val string) attribute.KeyValue {
2956 return ContainerImageIDKey.String(val)
2957 }
2958
2959 // ContainerImageName returns an attribute KeyValue conforming to the
2960 // "container.image.name" semantic conventions. It represents the name of the
2961 // image the container was built on.
2962 func ContainerImageName(val string) attribute.KeyValue {
2963 return ContainerImageNameKey.String(val)
2964 }
2965
2966 // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
2967 // "container.image.repo_digests" semantic conventions. It represents the repo
2968 // digests of the container image as provided by the container runtime.
2969 func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
2970 return ContainerImageRepoDigestsKey.StringSlice(val)
2971 }
2972
2973 // ContainerImageTags returns an attribute KeyValue conforming to the
2974 // "container.image.tags" semantic conventions. It represents the container image
2975 // tags. An example can be found in [Docker Image Inspect]. Should be only the
2976 // `<tag>` section of the full name for example from
2977 // `registry.example.com/my-org/my-image:<tag>`.
2978 //
2979 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
2980 func ContainerImageTags(val ...string) attribute.KeyValue {
2981 return ContainerImageTagsKey.StringSlice(val)
2982 }
2983
2984 // ContainerName returns an attribute KeyValue conforming to the "container.name"
2985 // semantic conventions. It represents the container name used by container
2986 // runtime.
2987 func ContainerName(val string) attribute.KeyValue {
2988 return ContainerNameKey.String(val)
2989 }
2990
2991 // ContainerRuntime returns an attribute KeyValue conforming to the
2992 // "container.runtime" semantic conventions. It represents the container runtime
2993 // managing this container.
2994 func ContainerRuntime(val string) attribute.KeyValue {
2995 return ContainerRuntimeKey.String(val)
2996 }
2997
2998 // Namespace: cpu
2999 const (
3000 // CPULogicalNumberKey is the attribute Key conforming to the
3001 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3002 // number [0..n-1].
3003 //
3004 // Type: int
3005 // RequirementLevel: Recommended
3006 // Stability: Development
3007 //
3008 // Examples: 1
3009 CPULogicalNumberKey = attribute.Key("cpu.logical_number")
3010
3011 // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
3012 // conventions. It represents the mode of the CPU.
3013 //
3014 // Type: Enum
3015 // RequirementLevel: Recommended
3016 // Stability: Development
3017 //
3018 // Examples: "user", "system"
3019 CPUModeKey = attribute.Key("cpu.mode")
3020 )
3021
3022 // CPULogicalNumber returns an attribute KeyValue conforming to the
3023 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3024 // number [0..n-1].
3025 func CPULogicalNumber(val int) attribute.KeyValue {
3026 return CPULogicalNumberKey.Int(val)
3027 }
3028
3029 // Enum values for cpu.mode
3030 var (
3031 // user
3032 // Stability: development
3033 CPUModeUser = CPUModeKey.String("user")
3034 // system
3035 // Stability: development
3036 CPUModeSystem = CPUModeKey.String("system")
3037 // nice
3038 // Stability: development
3039 CPUModeNice = CPUModeKey.String("nice")
3040 // idle
3041 // Stability: development
3042 CPUModeIdle = CPUModeKey.String("idle")
3043 // iowait
3044 // Stability: development
3045 CPUModeIowait = CPUModeKey.String("iowait")
3046 // interrupt
3047 // Stability: development
3048 CPUModeInterrupt = CPUModeKey.String("interrupt")
3049 // steal
3050 // Stability: development
3051 CPUModeSteal = CPUModeKey.String("steal")
3052 // kernel
3053 // Stability: development
3054 CPUModeKernel = CPUModeKey.String("kernel")
3055 )
3056
3057 // Namespace: db
3058 const (
3059 // DBClientConnectionPoolNameKey is the attribute Key conforming to the
3060 // "db.client.connection.pool.name" semantic conventions. It represents the name
3061 // of the connection pool; unique within the instrumented application. In case
3062 // the connection pool implementation doesn't provide a name, instrumentation
3063 // SHOULD use a combination of parameters that would make the name unique, for
3064 // example, combining attributes `server.address`, `server.port`, and
3065 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3066 // Instrumentations that generate connection pool name following different
3067 // patterns SHOULD document it.
3068 //
3069 // Type: string
3070 // RequirementLevel: Recommended
3071 // Stability: Development
3072 //
3073 // Examples: "myDataSource"
3074 DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
3075
3076 // DBClientConnectionStateKey is the attribute Key conforming to the
3077 // "db.client.connection.state" semantic conventions. It represents the state of
3078 // a connection in the pool.
3079 //
3080 // Type: Enum
3081 // RequirementLevel: Recommended
3082 // Stability: Development
3083 //
3084 // Examples: "idle"
3085 DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
3086
3087 // DBCollectionNameKey is the attribute Key conforming to the
3088 // "db.collection.name" semantic conventions. It represents the name of a
3089 // collection (table, container) within the database.
3090 //
3091 // Type: string
3092 // RequirementLevel: Recommended
3093 // Stability: Release_Candidate
3094 //
3095 // Examples: "public.users", "customers"
3096 // Note: It is RECOMMENDED to capture the value as provided by the application
3097 // without attempting to do any case normalization.
3098 //
3099 // The collection name SHOULD NOT be extracted from `db.query.text`,
3100 // when the database system supports cross-table queries in non-batch
3101 // operations.
3102 //
3103 // For batch operations, if the individual operations are known to have the same
3104 // collection name then that collection name SHOULD be used.
3105 DBCollectionNameKey = attribute.Key("db.collection.name")
3106
3107 // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
3108 // conventions. It represents the name of the database, fully qualified within
3109 // the server address and port.
3110 //
3111 // Type: string
3112 // RequirementLevel: Recommended
3113 // Stability: Release_Candidate
3114 //
3115 // Examples: "customers", "test.users"
3116 // Note: If a database system has multiple namespace components, they SHOULD be
3117 // concatenated (potentially using database system specific conventions) from
3118 // most general to most specific namespace component, and more specific
3119 // namespaces SHOULD NOT be captured without the more general namespaces, to
3120 // ensure that "startswith" queries for the more general namespaces will be
3121 // valid.
3122 // Semantic conventions for individual database systems SHOULD document what
3123 // `db.namespace` means in the context of that system.
3124 // It is RECOMMENDED to capture the value as provided by the application without
3125 // attempting to do any case normalization.
3126 DBNamespaceKey = attribute.Key("db.namespace")
3127
3128 // DBOperationBatchSizeKey is the attribute Key conforming to the
3129 // "db.operation.batch.size" semantic conventions. It represents the number of
3130 // queries included in a batch operation.
3131 //
3132 // Type: int
3133 // RequirementLevel: Recommended
3134 // Stability: Release_Candidate
3135 //
3136 // Examples: 2, 3, 4
3137 // Note: Operations are only considered batches when they contain two or more
3138 // operations, and so `db.operation.batch.size` SHOULD never be `1`.
3139 DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
3140
3141 // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
3142 // semantic conventions. It represents the name of the operation or command
3143 // being executed.
3144 //
3145 // Type: string
3146 // RequirementLevel: Recommended
3147 // Stability: Release_Candidate
3148 //
3149 // Examples: "findAndModify", "HMSET", "SELECT"
3150 // Note: It is RECOMMENDED to capture the value as provided by the application
3151 // without attempting to do any case normalization.
3152 //
3153 // The operation name SHOULD NOT be extracted from `db.query.text`,
3154 // when the database system supports cross-table queries in non-batch
3155 // operations.
3156 //
3157 // For batch operations, if the individual operations are known to have the same
3158 // operation name
3159 // then that operation name SHOULD be used prepended by `BATCH `,
3160 // otherwise `db.operation.name` SHOULD be `BATCH` or some other database
3161 // system specific term if more applicable.
3162 DBOperationNameKey = attribute.Key("db.operation.name")
3163
3164 // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary"
3165 // semantic conventions. It represents the low cardinality representation of a
3166 // database query text.
3167 //
3168 // Type: string
3169 // RequirementLevel: Recommended
3170 // Stability: Release_Candidate
3171 //
3172 // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get
3173 // user by id"
3174 // Note: `db.query.summary` provides static summary of the query text. It
3175 // describes a class of database queries and is useful as a grouping key,
3176 // especially when analyzing telemetry for database calls involving complex
3177 // queries.
3178 // Summary may be available to the instrumentation through instrumentation hooks
3179 // or other means. If it is not available, instrumentations that support query
3180 // parsing SHOULD generate a summary following [Generating query summary]
3181 // section.
3182 //
3183 // [Generating query summary]: ../database/database-spans.md#generating-a-summary-of-the-query-text
3184 DBQuerySummaryKey = attribute.Key("db.query.summary")
3185
3186 // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
3187 // semantic conventions. It represents the database query being executed.
3188 //
3189 // Type: string
3190 // RequirementLevel: Recommended
3191 // Stability: Release_Candidate
3192 //
3193 // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?"
3194 // Note: For sanitization see [Sanitization of `db.query.text`].
3195 // For batch operations, if the individual operations are known to have the same
3196 // query text then that query text SHOULD be used, otherwise all of the
3197 // individual query texts SHOULD be concatenated with separator `; ` or some
3198 // other database system specific separator if more applicable.
3199 // Even though parameterized query text can potentially have sensitive data, by
3200 // using a parameterized query the user is giving a strong signal that any
3201 // sensitive data will be passed as parameter values, and the benefit to
3202 // observability of capturing the static part of the query text by default
3203 // outweighs the risk.
3204 //
3205 // [Sanitization of `db.query.text`]: ../database/database-spans.md#sanitization-of-dbquerytext
3206 DBQueryTextKey = attribute.Key("db.query.text")
3207
3208 // DBResponseReturnedRowsKey is the attribute Key conforming to the
3209 // "db.response.returned_rows" semantic conventions. It represents the number of
3210 // rows returned by the operation.
3211 //
3212 // Type: int
3213 // RequirementLevel: Recommended
3214 // Stability: Development
3215 //
3216 // Examples: 10, 30, 1000
3217 DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows")
3218
3219 // DBResponseStatusCodeKey is the attribute Key conforming to the
3220 // "db.response.status_code" semantic conventions. It represents the database
3221 // response status code.
3222 //
3223 // Type: string
3224 // RequirementLevel: Recommended
3225 // Stability: Release_Candidate
3226 //
3227 // Examples: "102", "ORA-17002", "08P01", "404"
3228 // Note: The status code returned by the database. Usually it represents an
3229 // error code, but may also represent partial success, warning, or differentiate
3230 // between various types of successful outcomes.
3231 // Semantic conventions for individual database systems SHOULD document what
3232 // `db.response.status_code` means in the context of that system.
3233 DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
3234
3235 // DBSystemNameKey is the attribute Key conforming to the "db.system.name"
3236 // semantic conventions. It represents the database management system (DBMS)
3237 // product as identified by the client instrumentation.
3238 //
3239 // Type: Enum
3240 // RequirementLevel: Recommended
3241 // Stability: Release_Candidate
3242 //
3243 // Examples:
3244 // Note: The actual DBMS may differ from the one identified by the client. For
3245 // example, when using PostgreSQL client libraries to connect to a CockroachDB,
3246 // the `db.system.name` is set to `postgresql` based on the instrumentation's
3247 // best knowledge.
3248 DBSystemNameKey = attribute.Key("db.system.name")
3249 )
3250
3251 // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
3252 // "db.client.connection.pool.name" semantic conventions. It represents the name
3253 // of the connection pool; unique within the instrumented application. In case
3254 // the connection pool implementation doesn't provide a name, instrumentation
3255 // SHOULD use a combination of parameters that would make the name unique, for
3256 // example, combining attributes `server.address`, `server.port`, and
3257 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3258 // Instrumentations that generate connection pool name following different
3259 // patterns SHOULD document it.
3260 func DBClientConnectionPoolName(val string) attribute.KeyValue {
3261 return DBClientConnectionPoolNameKey.String(val)
3262 }
3263
3264 // DBCollectionName returns an attribute KeyValue conforming to the
3265 // "db.collection.name" semantic conventions. It represents the name of a
3266 // collection (table, container) within the database.
3267 func DBCollectionName(val string) attribute.KeyValue {
3268 return DBCollectionNameKey.String(val)
3269 }
3270
3271 // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
3272 // semantic conventions. It represents the name of the database, fully qualified
3273 // within the server address and port.
3274 func DBNamespace(val string) attribute.KeyValue {
3275 return DBNamespaceKey.String(val)
3276 }
3277
3278 // DBOperationBatchSize returns an attribute KeyValue conforming to the
3279 // "db.operation.batch.size" semantic conventions. It represents the number of
3280 // queries included in a batch operation.
3281 func DBOperationBatchSize(val int) attribute.KeyValue {
3282 return DBOperationBatchSizeKey.Int(val)
3283 }
3284
3285 // DBOperationName returns an attribute KeyValue conforming to the
3286 // "db.operation.name" semantic conventions. It represents the name of the
3287 // operation or command being executed.
3288 func DBOperationName(val string) attribute.KeyValue {
3289 return DBOperationNameKey.String(val)
3290 }
3291
3292 // DBQuerySummary returns an attribute KeyValue conforming to the
3293 // "db.query.summary" semantic conventions. It represents the low cardinality
3294 // representation of a database query text.
3295 func DBQuerySummary(val string) attribute.KeyValue {
3296 return DBQuerySummaryKey.String(val)
3297 }
3298
3299 // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
3300 // semantic conventions. It represents the database query being executed.
3301 func DBQueryText(val string) attribute.KeyValue {
3302 return DBQueryTextKey.String(val)
3303 }
3304
3305 // DBResponseReturnedRows returns an attribute KeyValue conforming to the
3306 // "db.response.returned_rows" semantic conventions. It represents the number of
3307 // rows returned by the operation.
3308 func DBResponseReturnedRows(val int) attribute.KeyValue {
3309 return DBResponseReturnedRowsKey.Int(val)
3310 }
3311
3312 // DBResponseStatusCode returns an attribute KeyValue conforming to the
3313 // "db.response.status_code" semantic conventions. It represents the database
3314 // response status code.
3315 func DBResponseStatusCode(val string) attribute.KeyValue {
3316 return DBResponseStatusCodeKey.String(val)
3317 }
3318
3319 // Enum values for db.client.connection.state
3320 var (
3321 // idle
3322 // Stability: development
3323 DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
3324 // used
3325 // Stability: development
3326 DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
3327 )
3328
3329 // Enum values for db.system.name
3330 var (
3331 // Some other SQL database. Fallback only.
3332 // Stability: development
3333 DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql")
3334 // [Adabas (Adaptable Database System)]
3335 // Stability: development
3336 //
3337 // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas
3338 DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas")
3339 // [Actian Ingres]
3340 // Stability: development
3341 //
3342 // [Actian Ingres]: https://www.actian.com/databases/ingres/
3343 DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres")
3344 // [Amazon DynamoDB]
3345 // Stability: development
3346 //
3347 // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/
3348 DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb")
3349 // [Amazon Redshift]
3350 // Stability: development
3351 //
3352 // [Amazon Redshift]: https://aws.amazon.com/redshift/
3353 DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift")
3354 // [Azure Cosmos DB]
3355 // Stability: development
3356 //
3357 // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db
3358 DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb")
3359 // [InterSystems Caché]
3360 // Stability: development
3361 //
3362 // [InterSystems Caché]: https://www.intersystems.com/products/cache/
3363 DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache")
3364 // [Apache Cassandra]
3365 // Stability: development
3366 //
3367 // [Apache Cassandra]: https://cassandra.apache.org/
3368 DBSystemNameCassandra = DBSystemNameKey.String("cassandra")
3369 // [ClickHouse]
3370 // Stability: development
3371 //
3372 // [ClickHouse]: https://clickhouse.com/
3373 DBSystemNameClickhouse = DBSystemNameKey.String("clickhouse")
3374 // [CockroachDB]
3375 // Stability: development
3376 //
3377 // [CockroachDB]: https://www.cockroachlabs.com/
3378 DBSystemNameCockroachdb = DBSystemNameKey.String("cockroachdb")
3379 // [Couchbase]
3380 // Stability: development
3381 //
3382 // [Couchbase]: https://www.couchbase.com/
3383 DBSystemNameCouchbase = DBSystemNameKey.String("couchbase")
3384 // [Apache CouchDB]
3385 // Stability: development
3386 //
3387 // [Apache CouchDB]: https://couchdb.apache.org/
3388 DBSystemNameCouchDB = DBSystemNameKey.String("couchdb")
3389 // [Apache Derby]
3390 // Stability: development
3391 //
3392 // [Apache Derby]: https://db.apache.org/derby/
3393 DBSystemNameDerby = DBSystemNameKey.String("derby")
3394 // [Elasticsearch]
3395 // Stability: development
3396 //
3397 // [Elasticsearch]: https://www.elastic.co/elasticsearch
3398 DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch")
3399 // [Firebird]
3400 // Stability: development
3401 //
3402 // [Firebird]: https://www.firebirdsql.org/
3403 DBSystemNameFirebirdsql = DBSystemNameKey.String("firebirdsql")
3404 // [Google Cloud Spanner]
3405 // Stability: development
3406 //
3407 // [Google Cloud Spanner]: https://cloud.google.com/spanner
3408 DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner")
3409 // [Apache Geode]
3410 // Stability: development
3411 //
3412 // [Apache Geode]: https://geode.apache.org/
3413 DBSystemNameGeode = DBSystemNameKey.String("geode")
3414 // [H2 Database]
3415 // Stability: development
3416 //
3417 // [H2 Database]: https://h2database.com/
3418 DBSystemNameH2database = DBSystemNameKey.String("h2database")
3419 // [Apache HBase]
3420 // Stability: development
3421 //
3422 // [Apache HBase]: https://hbase.apache.org/
3423 DBSystemNameHBase = DBSystemNameKey.String("hbase")
3424 // [Apache Hive]
3425 // Stability: development
3426 //
3427 // [Apache Hive]: https://hive.apache.org/
3428 DBSystemNameHive = DBSystemNameKey.String("hive")
3429 // [HyperSQL Database]
3430 // Stability: development
3431 //
3432 // [HyperSQL Database]: https://hsqldb.org/
3433 DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb")
3434 // [IBM Db2]
3435 // Stability: development
3436 //
3437 // [IBM Db2]: https://www.ibm.com/db2
3438 DBSystemNameIbmDb2 = DBSystemNameKey.String("ibm.db2")
3439 // [IBM Informix]
3440 // Stability: development
3441 //
3442 // [IBM Informix]: https://www.ibm.com/products/informix
3443 DBSystemNameIbmInformix = DBSystemNameKey.String("ibm.informix")
3444 // [IBM Netezza]
3445 // Stability: development
3446 //
3447 // [IBM Netezza]: https://www.ibm.com/products/netezza
3448 DBSystemNameIbmNetezza = DBSystemNameKey.String("ibm.netezza")
3449 // [InfluxDB]
3450 // Stability: development
3451 //
3452 // [InfluxDB]: https://www.influxdata.com/
3453 DBSystemNameInfluxdb = DBSystemNameKey.String("influxdb")
3454 // [Instant]
3455 // Stability: development
3456 //
3457 // [Instant]: https://www.instantdb.com/
3458 DBSystemNameInstantDB = DBSystemNameKey.String("instantdb")
3459 // [MariaDB]
3460 // Stability: release_candidate
3461 //
3462 // [MariaDB]: https://mariadb.org/
3463 DBSystemNameMariaDB = DBSystemNameKey.String("mariadb")
3464 // [Memcached]
3465 // Stability: development
3466 //
3467 // [Memcached]: https://memcached.org/
3468 DBSystemNameMemcached = DBSystemNameKey.String("memcached")
3469 // [MongoDB]
3470 // Stability: development
3471 //
3472 // [MongoDB]: https://www.mongodb.com/
3473 DBSystemNameMongoDB = DBSystemNameKey.String("mongodb")
3474 // [Microsoft SQL Server]
3475 // Stability: release_candidate
3476 //
3477 // [Microsoft SQL Server]: https://www.microsoft.com/sql-server
3478 DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server")
3479 // [MySQL]
3480 // Stability: release_candidate
3481 //
3482 // [MySQL]: https://www.mysql.com/
3483 DBSystemNameMySQL = DBSystemNameKey.String("mysql")
3484 // [Neo4j]
3485 // Stability: development
3486 //
3487 // [Neo4j]: https://neo4j.com/
3488 DBSystemNameNeo4j = DBSystemNameKey.String("neo4j")
3489 // [OpenSearch]
3490 // Stability: development
3491 //
3492 // [OpenSearch]: https://opensearch.org/
3493 DBSystemNameOpensearch = DBSystemNameKey.String("opensearch")
3494 // [Oracle Database]
3495 // Stability: development
3496 //
3497 // [Oracle Database]: https://www.oracle.com/database/
3498 DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db")
3499 // [PostgreSQL]
3500 // Stability: release_candidate
3501 //
3502 // [PostgreSQL]: https://www.postgresql.org/
3503 DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql")
3504 // [Redis]
3505 // Stability: development
3506 //
3507 // [Redis]: https://redis.io/
3508 DBSystemNameRedis = DBSystemNameKey.String("redis")
3509 // [SAP HANA]
3510 // Stability: development
3511 //
3512 // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html
3513 DBSystemNameSapHana = DBSystemNameKey.String("sap.hana")
3514 // [SAP MaxDB]
3515 // Stability: development
3516 //
3517 // [SAP MaxDB]: https://maxdb.sap.com/
3518 DBSystemNameSapMaxDB = DBSystemNameKey.String("sap.maxdb")
3519 // [SQLite]
3520 // Stability: development
3521 //
3522 // [SQLite]: https://www.sqlite.org/
3523 DBSystemNameSqlite = DBSystemNameKey.String("sqlite")
3524 // [Teradata]
3525 // Stability: development
3526 //
3527 // [Teradata]: https://www.teradata.com/
3528 DBSystemNameTeradata = DBSystemNameKey.String("teradata")
3529 // [Trino]
3530 // Stability: development
3531 //
3532 // [Trino]: https://trino.io/
3533 DBSystemNameTrino = DBSystemNameKey.String("trino")
3534 )
3535
3536 // Namespace: deployment
3537 const (
3538 // DeploymentEnvironmentNameKey is the attribute Key conforming to the
3539 // "deployment.environment.name" semantic conventions. It represents the name of
3540 // the [deployment environment] (aka deployment tier).
3541 //
3542 // Type: string
3543 // RequirementLevel: Recommended
3544 // Stability: Development
3545 //
3546 // Examples: "staging", "production"
3547 // Note: `deployment.environment.name` does not affect the uniqueness
3548 // constraints defined through
3549 // the `service.namespace`, `service.name` and `service.instance.id` resource
3550 // attributes.
3551 // This implies that resources carrying the following attribute combinations
3552 // MUST be
3553 // considered to be identifying the same service:
3554 //
3555 // - `service.name=frontend`, `deployment.environment.name=production`
3556 // - `service.name=frontend`, `deployment.environment.name=staging`.
3557 //
3558 //
3559 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
3560 DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
3561
3562 // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
3563 // semantic conventions. It represents the id of the deployment.
3564 //
3565 // Type: string
3566 // RequirementLevel: Recommended
3567 // Stability: Development
3568 //
3569 // Examples: "1208"
3570 DeploymentIDKey = attribute.Key("deployment.id")
3571
3572 // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
3573 // semantic conventions. It represents the name of the deployment.
3574 //
3575 // Type: string
3576 // RequirementLevel: Recommended
3577 // Stability: Development
3578 //
3579 // Examples: "deploy my app", "deploy-frontend"
3580 DeploymentNameKey = attribute.Key("deployment.name")
3581
3582 // DeploymentStatusKey is the attribute Key conforming to the
3583 // "deployment.status" semantic conventions. It represents the status of the
3584 // deployment.
3585 //
3586 // Type: Enum
3587 // RequirementLevel: Recommended
3588 // Stability: Development
3589 //
3590 // Examples:
3591 DeploymentStatusKey = attribute.Key("deployment.status")
3592 )
3593
3594 // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
3595 // "deployment.environment.name" semantic conventions. It represents the name of
3596 // the [deployment environment] (aka deployment tier).
3597 //
3598 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
3599 func DeploymentEnvironmentName(val string) attribute.KeyValue {
3600 return DeploymentEnvironmentNameKey.String(val)
3601 }
3602
3603 // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
3604 // semantic conventions. It represents the id of the deployment.
3605 func DeploymentID(val string) attribute.KeyValue {
3606 return DeploymentIDKey.String(val)
3607 }
3608
3609 // DeploymentName returns an attribute KeyValue conforming to the
3610 // "deployment.name" semantic conventions. It represents the name of the
3611 // deployment.
3612 func DeploymentName(val string) attribute.KeyValue {
3613 return DeploymentNameKey.String(val)
3614 }
3615
3616 // Enum values for deployment.status
3617 var (
3618 // failed
3619 // Stability: development
3620 DeploymentStatusFailed = DeploymentStatusKey.String("failed")
3621 // succeeded
3622 // Stability: development
3623 DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
3624 )
3625
3626 // Namespace: destination
3627 const (
3628 // DestinationAddressKey is the attribute Key conforming to the
3629 // "destination.address" semantic conventions. It represents the destination
3630 // address - domain name if available without reverse DNS lookup; otherwise, IP
3631 // address or Unix domain socket name.
3632 //
3633 // Type: string
3634 // RequirementLevel: Recommended
3635 // Stability: Development
3636 //
3637 // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
3638 // Note: When observed from the source side, and when communicating through an
3639 // intermediary, `destination.address` SHOULD represent the destination address
3640 // behind any intermediaries, for example proxies, if it's available.
3641 DestinationAddressKey = attribute.Key("destination.address")
3642
3643 // DestinationPortKey is the attribute Key conforming to the "destination.port"
3644 // semantic conventions. It represents the destination port number.
3645 //
3646 // Type: int
3647 // RequirementLevel: Recommended
3648 // Stability: Development
3649 //
3650 // Examples: 3389, 2888
3651 DestinationPortKey = attribute.Key("destination.port")
3652 )
3653
3654 // DestinationAddress returns an attribute KeyValue conforming to the
3655 // "destination.address" semantic conventions. It represents the destination
3656 // address - domain name if available without reverse DNS lookup; otherwise, IP
3657 // address or Unix domain socket name.
3658 func DestinationAddress(val string) attribute.KeyValue {
3659 return DestinationAddressKey.String(val)
3660 }
3661
3662 // DestinationPort returns an attribute KeyValue conforming to the
3663 // "destination.port" semantic conventions. It represents the destination port
3664 // number.
3665 func DestinationPort(val int) attribute.KeyValue {
3666 return DestinationPortKey.Int(val)
3667 }
3668
3669 // Namespace: device
3670 const (
3671 // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
3672 // conventions. It represents a unique identifier representing the device.
3673 //
3674 // Type: string
3675 // RequirementLevel: Recommended
3676 // Stability: Development
3677 //
3678 // Examples: "2ab2916d-a51f-4ac8-80ee-45ac31a28092"
3679 // Note: The device identifier MUST only be defined using the values outlined
3680 // below. This value is not an advertising identifier and MUST NOT be used as
3681 // such. On iOS (Swift or Objective-C), this value MUST be equal to the
3682 // [vendor identifier]. On Android (Java or Kotlin), this value MUST be equal to
3683 // the Firebase Installation ID or a globally unique UUID which is persisted
3684 // across sessions in your application. More information can be found [here] on
3685 // best practices and exact implementation details. Caution should be taken when
3686 // storing personal data or anything which can identify a user. GDPR and data
3687 // protection laws may apply, ensure you do your own due diligence.
3688 //
3689 // [vendor identifier]: https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor
3690 // [here]: https://developer.android.com/training/articles/user-data-ids
3691 DeviceIDKey = attribute.Key("device.id")
3692
3693 // DeviceManufacturerKey is the attribute Key conforming to the
3694 // "device.manufacturer" semantic conventions. It represents the name of the
3695 // device manufacturer.
3696 //
3697 // Type: string
3698 // RequirementLevel: Recommended
3699 // Stability: Development
3700 //
3701 // Examples: "Apple", "Samsung"
3702 // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
3703 // hardcode the value `Apple`.
3704 //
3705 // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
3706 DeviceManufacturerKey = attribute.Key("device.manufacturer")
3707
3708 // DeviceModelIdentifierKey is the attribute Key conforming to the
3709 // "device.model.identifier" semantic conventions. It represents the model
3710 // identifier for the device.
3711 //
3712 // Type: string
3713 // RequirementLevel: Recommended
3714 // Stability: Development
3715 //
3716 // Examples: "iPhone3,4", "SM-G920F"
3717 // Note: It's recommended this value represents a machine-readable version of
3718 // the model identifier rather than the market or consumer-friendly name of the
3719 // device.
3720 DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
3721
3722 // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
3723 // semantic conventions. It represents the marketing name for the device model.
3724 //
3725 // Type: string
3726 // RequirementLevel: Recommended
3727 // Stability: Development
3728 //
3729 // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
3730 // Note: It's recommended this value represents a human-readable version of the
3731 // device model rather than a machine-readable alternative.
3732 DeviceModelNameKey = attribute.Key("device.model.name")
3733 )
3734
3735 // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
3736 // conventions. It represents a unique identifier representing the device.
3737 func DeviceID(val string) attribute.KeyValue {
3738 return DeviceIDKey.String(val)
3739 }
3740
3741 // DeviceManufacturer returns an attribute KeyValue conforming to the
3742 // "device.manufacturer" semantic conventions. It represents the name of the
3743 // device manufacturer.
3744 func DeviceManufacturer(val string) attribute.KeyValue {
3745 return DeviceManufacturerKey.String(val)
3746 }
3747
3748 // DeviceModelIdentifier returns an attribute KeyValue conforming to the
3749 // "device.model.identifier" semantic conventions. It represents the model
3750 // identifier for the device.
3751 func DeviceModelIdentifier(val string) attribute.KeyValue {
3752 return DeviceModelIdentifierKey.String(val)
3753 }
3754
3755 // DeviceModelName returns an attribute KeyValue conforming to the
3756 // "device.model.name" semantic conventions. It represents the marketing name for
3757 // the device model.
3758 func DeviceModelName(val string) attribute.KeyValue {
3759 return DeviceModelNameKey.String(val)
3760 }
3761
3762 // Namespace: disk
3763 const (
3764 // DiskIoDirectionKey is the attribute Key conforming to the "disk.io.direction"
3765 // semantic conventions. It represents the disk IO operation direction.
3766 //
3767 // Type: Enum
3768 // RequirementLevel: Recommended
3769 // Stability: Development
3770 //
3771 // Examples: "read"
3772 DiskIoDirectionKey = attribute.Key("disk.io.direction")
3773 )
3774
3775 // Enum values for disk.io.direction
3776 var (
3777 // read
3778 // Stability: development
3779 DiskIoDirectionRead = DiskIoDirectionKey.String("read")
3780 // write
3781 // Stability: development
3782 DiskIoDirectionWrite = DiskIoDirectionKey.String("write")
3783 )
3784
3785 // Namespace: dns
3786 const (
3787 // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
3788 // semantic conventions. It represents the name being queried.
3789 //
3790 // Type: string
3791 // RequirementLevel: Recommended
3792 // Stability: Development
3793 //
3794 // Examples: "www.example.com", "opentelemetry.io"
3795 // Note: If the name field contains non-printable characters (below 32 or above
3796 // 126), those characters should be represented as escaped base 10 integers
3797 // (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns,
3798 // and line feeds should be converted to \t, \r, and \n respectively.
3799 DNSQuestionNameKey = attribute.Key("dns.question.name")
3800 )
3801
3802 // DNSQuestionName returns an attribute KeyValue conforming to the
3803 // "dns.question.name" semantic conventions. It represents the name being
3804 // queried.
3805 func DNSQuestionName(val string) attribute.KeyValue {
3806 return DNSQuestionNameKey.String(val)
3807 }
3808
3809 // Namespace: elasticsearch
3810 const (
3811 // ElasticsearchNodeNameKey is the attribute Key conforming to the
3812 // "elasticsearch.node.name" semantic conventions. It represents the represents
3813 // the human-readable identifier of the node/instance to which a request was
3814 // routed.
3815 //
3816 // Type: string
3817 // RequirementLevel: Recommended
3818 // Stability: Development
3819 //
3820 // Examples: "instance-0000000001"
3821 ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name")
3822 )
3823
3824 // ElasticsearchNodeName returns an attribute KeyValue conforming to the
3825 // "elasticsearch.node.name" semantic conventions. It represents the represents
3826 // the human-readable identifier of the node/instance to which a request was
3827 // routed.
3828 func ElasticsearchNodeName(val string) attribute.KeyValue {
3829 return ElasticsearchNodeNameKey.String(val)
3830 }
3831
3832 // Namespace: enduser
3833 const (
3834 // EnduserIDKey is the attribute Key conforming to the "enduser.id" semantic
3835 // conventions. It represents the unique identifier of an end user in the
3836 // system. It maybe a username, email address, or other identifier.
3837 //
3838 // Type: string
3839 // RequirementLevel: Recommended
3840 // Stability: Development
3841 //
3842 // Examples: "username"
3843 // Note: Unique identifier of an end user in the system.
3844 //
3845 // > [!Warning]
3846 // > This field contains sensitive (PII) information.
3847 EnduserIDKey = attribute.Key("enduser.id")
3848
3849 // EnduserPseudoIDKey is the attribute Key conforming to the "enduser.pseudo.id"
3850 // semantic conventions. It represents the pseudonymous identifier of an end
3851 // user. This identifier should be a random value that is not directly linked or
3852 // associated with the end user's actual identity.
3853 //
3854 // Type: string
3855 // RequirementLevel: Recommended
3856 // Stability: Development
3857 //
3858 // Examples: "QdH5CAWJgqVT4rOr0qtumf"
3859 // Note: Pseudonymous identifier of an end user.
3860 //
3861 // > [!Warning]
3862 // > This field contains sensitive (linkable PII) information.
3863 EnduserPseudoIDKey = attribute.Key("enduser.pseudo.id")
3864 )
3865
3866 // EnduserID returns an attribute KeyValue conforming to the "enduser.id"
3867 // semantic conventions. It represents the unique identifier of an end user in
3868 // the system. It maybe a username, email address, or other identifier.
3869 func EnduserID(val string) attribute.KeyValue {
3870 return EnduserIDKey.String(val)
3871 }
3872
3873 // EnduserPseudoID returns an attribute KeyValue conforming to the
3874 // "enduser.pseudo.id" semantic conventions. It represents the pseudonymous
3875 // identifier of an end user. This identifier should be a random value that is
3876 // not directly linked or associated with the end user's actual identity.
3877 func EnduserPseudoID(val string) attribute.KeyValue {
3878 return EnduserPseudoIDKey.String(val)
3879 }
3880
3881 // Namespace: error
3882 const (
3883 // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
3884 // conventions. It represents the describes a class of error the operation ended
3885 // with.
3886 //
3887 // Type: Enum
3888 // RequirementLevel: Recommended
3889 // Stability: Stable
3890 //
3891 // Examples: "timeout", "java.net.UnknownHostException",
3892 // "server_certificate_invalid", "500"
3893 // Note: The `error.type` SHOULD be predictable, and SHOULD have low
3894 // cardinality.
3895 //
3896 // When `error.type` is set to a type (e.g., an exception type), its
3897 // canonical class name identifying the type within the artifact SHOULD be used.
3898 //
3899 // Instrumentations SHOULD document the list of errors they report.
3900 //
3901 // The cardinality of `error.type` within one instrumentation library SHOULD be
3902 // low.
3903 // Telemetry consumers that aggregate data from multiple instrumentation
3904 // libraries and applications
3905 // should be prepared for `error.type` to have high cardinality at query time
3906 // when no
3907 // additional filters are applied.
3908 //
3909 // If the operation has completed successfully, instrumentations SHOULD NOT set
3910 // `error.type`.
3911 //
3912 // If a specific domain defines its own set of error identifiers (such as HTTP
3913 // or gRPC status codes),
3914 // it's RECOMMENDED to:
3915 //
3916 // - Use a domain-specific attribute
3917 // - Set `error.type` to capture all errors, regardless of whether they are
3918 // defined within the domain-specific set or not.
3919 ErrorTypeKey = attribute.Key("error.type")
3920 )
3921
3922 // Enum values for error.type
3923 var (
3924 // A fallback error value to be used when the instrumentation doesn't define a
3925 // custom value.
3926 //
3927 // Stability: stable
3928 ErrorTypeOther = ErrorTypeKey.String("_OTHER")
3929 )
3930
3931 // Namespace: exception
3932 const (
3933 // ExceptionMessageKey is the attribute Key conforming to the
3934 // "exception.message" semantic conventions. It represents the exception
3935 // message.
3936 //
3937 // Type: string
3938 // RequirementLevel: Recommended
3939 // Stability: Stable
3940 //
3941 // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
3942 ExceptionMessageKey = attribute.Key("exception.message")
3943
3944 // ExceptionStacktraceKey is the attribute Key conforming to the
3945 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
3946 // string in the natural representation for the language runtime. The
3947 // representation is to be determined and documented by each language SIG.
3948 //
3949 // Type: string
3950 // RequirementLevel: Recommended
3951 // Stability: Stable
3952 //
3953 // Examples: Exception in thread "main" java.lang.RuntimeException: Test
3954 // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
3955 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
3956 // com.example.GenerateTrace.main(GenerateTrace.java:5)
3957 ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
3958
3959 // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
3960 // semantic conventions. It represents the type of the exception (its
3961 // fully-qualified class name, if applicable). The dynamic type of the exception
3962 // should be preferred over the static type in languages that support it.
3963 //
3964 // Type: string
3965 // RequirementLevel: Recommended
3966 // Stability: Stable
3967 //
3968 // Examples: "java.net.ConnectException", "OSError"
3969 ExceptionTypeKey = attribute.Key("exception.type")
3970 )
3971
3972 // ExceptionMessage returns an attribute KeyValue conforming to the
3973 // "exception.message" semantic conventions. It represents the exception message.
3974 func ExceptionMessage(val string) attribute.KeyValue {
3975 return ExceptionMessageKey.String(val)
3976 }
3977
3978 // ExceptionStacktrace returns an attribute KeyValue conforming to the
3979 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
3980 // string in the natural representation for the language runtime. The
3981 // representation is to be determined and documented by each language SIG.
3982 func ExceptionStacktrace(val string) attribute.KeyValue {
3983 return ExceptionStacktraceKey.String(val)
3984 }
3985
3986 // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
3987 // semantic conventions. It represents the type of the exception (its
3988 // fully-qualified class name, if applicable). The dynamic type of the exception
3989 // should be preferred over the static type in languages that support it.
3990 func ExceptionType(val string) attribute.KeyValue {
3991 return ExceptionTypeKey.String(val)
3992 }
3993
3994 // Namespace: faas
3995 const (
3996 // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
3997 // semantic conventions. It represents a boolean that is true if the serverless
3998 // function is executed for the first time (aka cold-start).
3999 //
4000 // Type: boolean
4001 // RequirementLevel: Recommended
4002 // Stability: Development
4003 //
4004 // Examples:
4005 FaaSColdstartKey = attribute.Key("faas.coldstart")
4006
4007 // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
4008 // conventions. It represents a string containing the schedule period as
4009 // [Cron Expression].
4010 //
4011 // Type: string
4012 // RequirementLevel: Recommended
4013 // Stability: Development
4014 //
4015 // Examples: 0/5 * * * ? *
4016 //
4017 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4018 FaaSCronKey = attribute.Key("faas.cron")
4019
4020 // FaaSDocumentCollectionKey is the attribute Key conforming to the
4021 // "faas.document.collection" semantic conventions. It represents the name of
4022 // the source on which the triggering operation was performed. For example, in
4023 // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
4024 // database name.
4025 //
4026 // Type: string
4027 // RequirementLevel: Recommended
4028 // Stability: Development
4029 //
4030 // Examples: "myBucketName", "myDbName"
4031 FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
4032
4033 // FaaSDocumentNameKey is the attribute Key conforming to the
4034 // "faas.document.name" semantic conventions. It represents the document
4035 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4036 // the name of the file, and in Cosmos DB the table name.
4037 //
4038 // Type: string
4039 // RequirementLevel: Recommended
4040 // Stability: Development
4041 //
4042 // Examples: "myFile.txt", "myTableName"
4043 FaaSDocumentNameKey = attribute.Key("faas.document.name")
4044
4045 // FaaSDocumentOperationKey is the attribute Key conforming to the
4046 // "faas.document.operation" semantic conventions. It represents the describes
4047 // the type of the operation that was performed on the data.
4048 //
4049 // Type: Enum
4050 // RequirementLevel: Recommended
4051 // Stability: Development
4052 //
4053 // Examples:
4054 FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
4055
4056 // FaaSDocumentTimeKey is the attribute Key conforming to the
4057 // "faas.document.time" semantic conventions. It represents a string containing
4058 // the time when the data was accessed in the [ISO 8601] format expressed in
4059 // [UTC].
4060 //
4061 // Type: string
4062 // RequirementLevel: Recommended
4063 // Stability: Development
4064 //
4065 // Examples: 2020-01-23T13:47:06Z
4066 //
4067 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4068 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4069 FaaSDocumentTimeKey = attribute.Key("faas.document.time")
4070
4071 // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
4072 // semantic conventions. It represents the execution environment ID as a string,
4073 // that will be potentially reused for other invocations to the same
4074 // function/function version.
4075 //
4076 // Type: string
4077 // RequirementLevel: Recommended
4078 // Stability: Development
4079 //
4080 // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
4081 // Note: - **AWS Lambda:** Use the (full) log stream name.
4082 FaaSInstanceKey = attribute.Key("faas.instance")
4083
4084 // FaaSInvocationIDKey is the attribute Key conforming to the
4085 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4086 // the current function invocation.
4087 //
4088 // Type: string
4089 // RequirementLevel: Recommended
4090 // Stability: Development
4091 //
4092 // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
4093 FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
4094
4095 // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
4096 // semantic conventions. It represents the name of the invoked function.
4097 //
4098 // Type: string
4099 // RequirementLevel: Recommended
4100 // Stability: Development
4101 //
4102 // Examples: my-function
4103 // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
4104 // function.
4105 FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
4106
4107 // FaaSInvokedProviderKey is the attribute Key conforming to the
4108 // "faas.invoked_provider" semantic conventions. It represents the cloud
4109 // provider of the invoked function.
4110 //
4111 // Type: Enum
4112 // RequirementLevel: Recommended
4113 // Stability: Development
4114 //
4115 // Examples:
4116 // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
4117 // invoked function.
4118 FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
4119
4120 // FaaSInvokedRegionKey is the attribute Key conforming to the
4121 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4122 // the invoked function.
4123 //
4124 // Type: string
4125 // RequirementLevel: Recommended
4126 // Stability: Development
4127 //
4128 // Examples: eu-central-1
4129 // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
4130 // function.
4131 FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
4132
4133 // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
4134 // semantic conventions. It represents the amount of memory available to the
4135 // serverless function converted to Bytes.
4136 //
4137 // Type: int
4138 // RequirementLevel: Recommended
4139 // Stability: Development
4140 //
4141 // Note: It's recommended to set this attribute since e.g. too little memory can
4142 // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
4143 // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
4144 // information (which must be multiplied by 1,048,576).
4145 FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
4146
4147 // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
4148 // conventions. It represents the name of the single function that this runtime
4149 // instance executes.
4150 //
4151 // Type: string
4152 // RequirementLevel: Recommended
4153 // Stability: Development
4154 //
4155 // Examples: "my-function", "myazurefunctionapp/some-function-name"
4156 // Note: This is the name of the function as configured/deployed on the FaaS
4157 // platform and is usually different from the name of the callback
4158 // function (which may be stored in the
4159 // [`code.namespace`/`code.function.name`]
4160 // span attributes).
4161 //
4162 // For some cloud providers, the above definition is ambiguous. The following
4163 // definition of function name MUST be used for this attribute
4164 // (and consequently the span name) for the listed cloud providers/products:
4165 //
4166 // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
4167 // followed by a forward slash followed by the function name (this form
4168 // can also be seen in the resource JSON for the function).
4169 // This means that a span attribute MUST be used, as an Azure function
4170 // app can host multiple functions that would usually share
4171 // a TracerProvider (see also the `cloud.resource_id` attribute).
4172 //
4173 //
4174 // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes
4175 FaaSNameKey = attribute.Key("faas.name")
4176
4177 // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
4178 // conventions. It represents a string containing the function invocation time
4179 // in the [ISO 8601] format expressed in [UTC].
4180 //
4181 // Type: string
4182 // RequirementLevel: Recommended
4183 // Stability: Development
4184 //
4185 // Examples: 2020-01-23T13:47:06Z
4186 //
4187 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4188 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4189 FaaSTimeKey = attribute.Key("faas.time")
4190
4191 // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
4192 // conventions. It represents the type of the trigger which caused this function
4193 // invocation.
4194 //
4195 // Type: Enum
4196 // RequirementLevel: Recommended
4197 // Stability: Development
4198 //
4199 // Examples:
4200 FaaSTriggerKey = attribute.Key("faas.trigger")
4201
4202 // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
4203 // conventions. It represents the immutable version of the function being
4204 // executed.
4205 //
4206 // Type: string
4207 // RequirementLevel: Recommended
4208 // Stability: Development
4209 //
4210 // Examples: "26", "pinkfroid-00002"
4211 // Note: Depending on the cloud provider and platform, use:
4212 //
4213 // - **AWS Lambda:** The [function version]
4214 // (an integer represented as a decimal string).
4215 // - **Google Cloud Run (Services):** The [revision]
4216 // (i.e., the function name plus the revision suffix).
4217 // - **Google Cloud Functions:** The value of the
4218 // [`K_REVISION` environment variable].
4219 // - **Azure Functions:** Not applicable. Do not set this attribute.
4220 //
4221 //
4222 // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
4223 // [revision]: https://cloud.google.com/run/docs/managing/revisions
4224 // [`K_REVISION` environment variable]: https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically
4225 FaaSVersionKey = attribute.Key("faas.version")
4226 )
4227
4228 // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
4229 // semantic conventions. It represents a boolean that is true if the serverless
4230 // function is executed for the first time (aka cold-start).
4231 func FaaSColdstart(val bool) attribute.KeyValue {
4232 return FaaSColdstartKey.Bool(val)
4233 }
4234
4235 // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
4236 // conventions. It represents a string containing the schedule period as
4237 // [Cron Expression].
4238 //
4239 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4240 func FaaSCron(val string) attribute.KeyValue {
4241 return FaaSCronKey.String(val)
4242 }
4243
4244 // FaaSDocumentCollection returns an attribute KeyValue conforming to the
4245 // "faas.document.collection" semantic conventions. It represents the name of the
4246 // source on which the triggering operation was performed. For example, in Cloud
4247 // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
4248 // name.
4249 func FaaSDocumentCollection(val string) attribute.KeyValue {
4250 return FaaSDocumentCollectionKey.String(val)
4251 }
4252
4253 // FaaSDocumentName returns an attribute KeyValue conforming to the
4254 // "faas.document.name" semantic conventions. It represents the document
4255 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4256 // the name of the file, and in Cosmos DB the table name.
4257 func FaaSDocumentName(val string) attribute.KeyValue {
4258 return FaaSDocumentNameKey.String(val)
4259 }
4260
4261 // FaaSDocumentTime returns an attribute KeyValue conforming to the
4262 // "faas.document.time" semantic conventions. It represents a string containing
4263 // the time when the data was accessed in the [ISO 8601] format expressed in
4264 // [UTC].
4265 //
4266 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4267 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4268 func FaaSDocumentTime(val string) attribute.KeyValue {
4269 return FaaSDocumentTimeKey.String(val)
4270 }
4271
4272 // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
4273 // semantic conventions. It represents the execution environment ID as a string,
4274 // that will be potentially reused for other invocations to the same
4275 // function/function version.
4276 func FaaSInstance(val string) attribute.KeyValue {
4277 return FaaSInstanceKey.String(val)
4278 }
4279
4280 // FaaSInvocationID returns an attribute KeyValue conforming to the
4281 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4282 // the current function invocation.
4283 func FaaSInvocationID(val string) attribute.KeyValue {
4284 return FaaSInvocationIDKey.String(val)
4285 }
4286
4287 // FaaSInvokedName returns an attribute KeyValue conforming to the
4288 // "faas.invoked_name" semantic conventions. It represents the name of the
4289 // invoked function.
4290 func FaaSInvokedName(val string) attribute.KeyValue {
4291 return FaaSInvokedNameKey.String(val)
4292 }
4293
4294 // FaaSInvokedRegion returns an attribute KeyValue conforming to the
4295 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4296 // the invoked function.
4297 func FaaSInvokedRegion(val string) attribute.KeyValue {
4298 return FaaSInvokedRegionKey.String(val)
4299 }
4300
4301 // FaaSMaxMemory returns an attribute KeyValue conforming to the
4302 // "faas.max_memory" semantic conventions. It represents the amount of memory
4303 // available to the serverless function converted to Bytes.
4304 func FaaSMaxMemory(val int) attribute.KeyValue {
4305 return FaaSMaxMemoryKey.Int(val)
4306 }
4307
4308 // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
4309 // conventions. It represents the name of the single function that this runtime
4310 // instance executes.
4311 func FaaSName(val string) attribute.KeyValue {
4312 return FaaSNameKey.String(val)
4313 }
4314
4315 // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
4316 // conventions. It represents a string containing the function invocation time in
4317 // the [ISO 8601] format expressed in [UTC].
4318 //
4319 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4320 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4321 func FaaSTime(val string) attribute.KeyValue {
4322 return FaaSTimeKey.String(val)
4323 }
4324
4325 // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
4326 // semantic conventions. It represents the immutable version of the function
4327 // being executed.
4328 func FaaSVersion(val string) attribute.KeyValue {
4329 return FaaSVersionKey.String(val)
4330 }
4331
4332 // Enum values for faas.document.operation
4333 var (
4334 // When a new object is created.
4335 // Stability: development
4336 FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
4337 // When an object is modified.
4338 // Stability: development
4339 FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
4340 // When an object is deleted.
4341 // Stability: development
4342 FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
4343 )
4344
4345 // Enum values for faas.invoked_provider
4346 var (
4347 // Alibaba Cloud
4348 // Stability: development
4349 FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
4350 // Amazon Web Services
4351 // Stability: development
4352 FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
4353 // Microsoft Azure
4354 // Stability: development
4355 FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
4356 // Google Cloud Platform
4357 // Stability: development
4358 FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
4359 // Tencent Cloud
4360 // Stability: development
4361 FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
4362 )
4363
4364 // Enum values for faas.trigger
4365 var (
4366 // A response to some data source operation such as a database or filesystem
4367 // read/write
4368 // Stability: development
4369 FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
4370 // To provide an answer to an inbound HTTP request
4371 // Stability: development
4372 FaaSTriggerHTTP = FaaSTriggerKey.String("http")
4373 // A function is set to be executed when messages are sent to a messaging system
4374 // Stability: development
4375 FaaSTriggerPubsub = FaaSTriggerKey.String("pubsub")
4376 // A function is scheduled to be executed regularly
4377 // Stability: development
4378 FaaSTriggerTimer = FaaSTriggerKey.String("timer")
4379 // If none of the others apply
4380 // Stability: development
4381 FaaSTriggerOther = FaaSTriggerKey.String("other")
4382 )
4383
4384 // Namespace: feature_flag
4385 const (
4386 // FeatureFlagContextIDKey is the attribute Key conforming to the
4387 // "feature_flag.context.id" semantic conventions. It represents the unique
4388 // identifier for the flag evaluation context. For example, the targeting key.
4389 //
4390 // Type: string
4391 // RequirementLevel: Recommended
4392 // Stability: Development
4393 //
4394 // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db"
4395 FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id")
4396
4397 // FeatureFlagEvaluationErrorMessageKey is the attribute Key conforming to the
4398 // "feature_flag.evaluation.error.message" semantic conventions. It represents a
4399 // message explaining the nature of an error occurring during flag evaluation.
4400 //
4401 // Type: string
4402 // RequirementLevel: Recommended
4403 // Stability: Development
4404 //
4405 // Examples: "Flag `header-color` expected type `string` but found type `number`
4406 // "
4407 FeatureFlagEvaluationErrorMessageKey = attribute.Key("feature_flag.evaluation.error.message")
4408
4409 // FeatureFlagEvaluationReasonKey is the attribute Key conforming to the
4410 // "feature_flag.evaluation.reason" semantic conventions. It represents the
4411 // reason code which shows how a feature flag value was determined.
4412 //
4413 // Type: Enum
4414 // RequirementLevel: Recommended
4415 // Stability: Development
4416 //
4417 // Examples: "static", "targeting_match", "error", "default"
4418 FeatureFlagEvaluationReasonKey = attribute.Key("feature_flag.evaluation.reason")
4419
4420 // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
4421 // semantic conventions. It represents the lookup key of the feature flag.
4422 //
4423 // Type: string
4424 // RequirementLevel: Recommended
4425 // Stability: Development
4426 //
4427 // Examples: "logo-color"
4428 FeatureFlagKeyKey = attribute.Key("feature_flag.key")
4429
4430 // FeatureFlagProviderNameKey is the attribute Key conforming to the
4431 // "feature_flag.provider_name" semantic conventions. It represents the
4432 // identifies the feature flag provider.
4433 //
4434 // Type: string
4435 // RequirementLevel: Recommended
4436 // Stability: Development
4437 //
4438 // Examples: "Flag Manager"
4439 FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider_name")
4440
4441 // FeatureFlagSetIDKey is the attribute Key conforming to the
4442 // "feature_flag.set.id" semantic conventions. It represents the identifier of
4443 // the [flag set] to which the feature flag belongs.
4444 //
4445 // Type: string
4446 // RequirementLevel: Recommended
4447 // Stability: Development
4448 //
4449 // Examples: "proj-1", "ab98sgs", "service1/dev"
4450 //
4451 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
4452 FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id")
4453
4454 // FeatureFlagVariantKey is the attribute Key conforming to the
4455 // "feature_flag.variant" semantic conventions. It represents a semantic
4456 // identifier for an evaluated flag value.
4457 //
4458 // Type: string
4459 // RequirementLevel: Recommended
4460 // Stability: Development
4461 //
4462 // Examples: "red", "true", "on"
4463 // Note: A semantic identifier, commonly referred to as a variant, provides a
4464 // means
4465 // for referring to a value without including the value itself. This can
4466 // provide additional context for understanding the meaning behind a value.
4467 // For example, the variant `red` maybe be used for the value `#c05543`.
4468 FeatureFlagVariantKey = attribute.Key("feature_flag.variant")
4469
4470 // FeatureFlagVersionKey is the attribute Key conforming to the
4471 // "feature_flag.version" semantic conventions. It represents the version of the
4472 // ruleset used during the evaluation. This may be any stable value which
4473 // uniquely identifies the ruleset.
4474 //
4475 // Type: string
4476 // RequirementLevel: Recommended
4477 // Stability: Development
4478 //
4479 // Examples: "1", "01ABCDEF"
4480 FeatureFlagVersionKey = attribute.Key("feature_flag.version")
4481 )
4482
4483 // FeatureFlagContextID returns an attribute KeyValue conforming to the
4484 // "feature_flag.context.id" semantic conventions. It represents the unique
4485 // identifier for the flag evaluation context. For example, the targeting key.
4486 func FeatureFlagContextID(val string) attribute.KeyValue {
4487 return FeatureFlagContextIDKey.String(val)
4488 }
4489
4490 // FeatureFlagEvaluationErrorMessage returns an attribute KeyValue conforming to
4491 // the "feature_flag.evaluation.error.message" semantic conventions. It
4492 // represents a message explaining the nature of an error occurring during flag
4493 // evaluation.
4494 func FeatureFlagEvaluationErrorMessage(val string) attribute.KeyValue {
4495 return FeatureFlagEvaluationErrorMessageKey.String(val)
4496 }
4497
4498 // FeatureFlagKey returns an attribute KeyValue conforming to the
4499 // "feature_flag.key" semantic conventions. It represents the lookup key of the
4500 // feature flag.
4501 func FeatureFlagKey(val string) attribute.KeyValue {
4502 return FeatureFlagKeyKey.String(val)
4503 }
4504
4505 // FeatureFlagProviderName returns an attribute KeyValue conforming to the
4506 // "feature_flag.provider_name" semantic conventions. It represents the
4507 // identifies the feature flag provider.
4508 func FeatureFlagProviderName(val string) attribute.KeyValue {
4509 return FeatureFlagProviderNameKey.String(val)
4510 }
4511
4512 // FeatureFlagSetID returns an attribute KeyValue conforming to the
4513 // "feature_flag.set.id" semantic conventions. It represents the identifier of
4514 // the [flag set] to which the feature flag belongs.
4515 //
4516 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
4517 func FeatureFlagSetID(val string) attribute.KeyValue {
4518 return FeatureFlagSetIDKey.String(val)
4519 }
4520
4521 // FeatureFlagVariant returns an attribute KeyValue conforming to the
4522 // "feature_flag.variant" semantic conventions. It represents a semantic
4523 // identifier for an evaluated flag value.
4524 func FeatureFlagVariant(val string) attribute.KeyValue {
4525 return FeatureFlagVariantKey.String(val)
4526 }
4527
4528 // FeatureFlagVersion returns an attribute KeyValue conforming to the
4529 // "feature_flag.version" semantic conventions. It represents the version of the
4530 // ruleset used during the evaluation. This may be any stable value which
4531 // uniquely identifies the ruleset.
4532 func FeatureFlagVersion(val string) attribute.KeyValue {
4533 return FeatureFlagVersionKey.String(val)
4534 }
4535
4536 // Enum values for feature_flag.evaluation.reason
4537 var (
4538 // The resolved value is static (no dynamic evaluation).
4539 // Stability: development
4540 FeatureFlagEvaluationReasonStatic = FeatureFlagEvaluationReasonKey.String("static")
4541 // The resolved value fell back to a pre-configured value (no dynamic evaluation
4542 // occurred or dynamic evaluation yielded no result).
4543 // Stability: development
4544 FeatureFlagEvaluationReasonDefault = FeatureFlagEvaluationReasonKey.String("default")
4545 // The resolved value was the result of a dynamic evaluation, such as a rule or
4546 // specific user-targeting.
4547 // Stability: development
4548 FeatureFlagEvaluationReasonTargetingMatch = FeatureFlagEvaluationReasonKey.String("targeting_match")
4549 // The resolved value was the result of pseudorandom assignment.
4550 // Stability: development
4551 FeatureFlagEvaluationReasonSplit = FeatureFlagEvaluationReasonKey.String("split")
4552 // The resolved value was retrieved from cache.
4553 // Stability: development
4554 FeatureFlagEvaluationReasonCached = FeatureFlagEvaluationReasonKey.String("cached")
4555 // The resolved value was the result of the flag being disabled in the
4556 // management system.
4557 // Stability: development
4558 FeatureFlagEvaluationReasonDisabled = FeatureFlagEvaluationReasonKey.String("disabled")
4559 // The reason for the resolved value could not be determined.
4560 // Stability: development
4561 FeatureFlagEvaluationReasonUnknown = FeatureFlagEvaluationReasonKey.String("unknown")
4562 // The resolved value is non-authoritative or possibly out of date
4563 // Stability: development
4564 FeatureFlagEvaluationReasonStale = FeatureFlagEvaluationReasonKey.String("stale")
4565 // The resolved value was the result of an error.
4566 // Stability: development
4567 FeatureFlagEvaluationReasonError = FeatureFlagEvaluationReasonKey.String("error")
4568 )
4569
4570 // Namespace: file
4571 const (
4572 // FileAccessedKey is the attribute Key conforming to the "file.accessed"
4573 // semantic conventions. It represents the time when the file was last accessed,
4574 // in ISO 8601 format.
4575 //
4576 // Type: string
4577 // RequirementLevel: Recommended
4578 // Stability: Development
4579 //
4580 // Examples: "2021-01-01T12:00:00Z"
4581 // Note: This attribute might not be supported by some file systems — NFS,
4582 // FAT32, in embedded OS, etc.
4583 FileAccessedKey = attribute.Key("file.accessed")
4584
4585 // FileAttributesKey is the attribute Key conforming to the "file.attributes"
4586 // semantic conventions. It represents the array of file attributes.
4587 //
4588 // Type: string[]
4589 // RequirementLevel: Recommended
4590 // Stability: Development
4591 //
4592 // Examples: "readonly", "hidden"
4593 // Note: Attributes names depend on the OS or file system. Here’s a
4594 // non-exhaustive list of values expected for this attribute: `archive`,
4595 // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
4596 // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
4597 // `write`.
4598 FileAttributesKey = attribute.Key("file.attributes")
4599
4600 // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
4601 // conventions. It represents the time when the file attributes or metadata was
4602 // last changed, in ISO 8601 format.
4603 //
4604 // Type: string
4605 // RequirementLevel: Recommended
4606 // Stability: Development
4607 //
4608 // Examples: "2021-01-01T12:00:00Z"
4609 // Note: `file.changed` captures the time when any of the file's properties or
4610 // attributes (including the content) are changed, while `file.modified`
4611 // captures the timestamp when the file content is modified.
4612 FileChangedKey = attribute.Key("file.changed")
4613
4614 // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
4615 // conventions. It represents the time when the file was created, in ISO 8601
4616 // format.
4617 //
4618 // Type: string
4619 // RequirementLevel: Recommended
4620 // Stability: Development
4621 //
4622 // Examples: "2021-01-01T12:00:00Z"
4623 // Note: This attribute might not be supported by some file systems — NFS,
4624 // FAT32, in embedded OS, etc.
4625 FileCreatedKey = attribute.Key("file.created")
4626
4627 // FileDirectoryKey is the attribute Key conforming to the "file.directory"
4628 // semantic conventions. It represents the directory where the file is located.
4629 // It should include the drive letter, when appropriate.
4630 //
4631 // Type: string
4632 // RequirementLevel: Recommended
4633 // Stability: Development
4634 //
4635 // Examples: "/home/user", "C:\Program Files\MyApp"
4636 FileDirectoryKey = attribute.Key("file.directory")
4637
4638 // FileExtensionKey is the attribute Key conforming to the "file.extension"
4639 // semantic conventions. It represents the file extension, excluding the leading
4640 // dot.
4641 //
4642 // Type: string
4643 // RequirementLevel: Recommended
4644 // Stability: Development
4645 //
4646 // Examples: "png", "gz"
4647 // Note: When the file name has multiple extensions (example.tar.gz), only the
4648 // last one should be captured ("gz", not "tar.gz").
4649 FileExtensionKey = attribute.Key("file.extension")
4650
4651 // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
4652 // semantic conventions. It represents the name of the fork. A fork is
4653 // additional data associated with a filesystem object.
4654 //
4655 // Type: string
4656 // RequirementLevel: Recommended
4657 // Stability: Development
4658 //
4659 // Examples: "Zone.Identifer"
4660 // Note: On Linux, a resource fork is used to store additional data with a
4661 // filesystem object. A file always has at least one fork for the data portion,
4662 // and additional forks may exist.
4663 // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
4664 // data stream for a file is just called $DATA. Zone.Identifier is commonly used
4665 // by Windows to track contents downloaded from the Internet. An ADS is
4666 // typically of the form: C:\path\to\filename.extension:some_fork_name, and
4667 // some_fork_name is the value that should populate `fork_name`.
4668 // `filename.extension` should populate `file.name`, and `extension` should
4669 // populate `file.extension`. The full path, `file.path`, will include the fork
4670 // name.
4671 FileForkNameKey = attribute.Key("file.fork_name")
4672
4673 // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
4674 // semantic conventions. It represents the primary Group ID (GID) of the file.
4675 //
4676 // Type: string
4677 // RequirementLevel: Recommended
4678 // Stability: Development
4679 //
4680 // Examples: "1000"
4681 FileGroupIDKey = attribute.Key("file.group.id")
4682
4683 // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
4684 // semantic conventions. It represents the primary group name of the file.
4685 //
4686 // Type: string
4687 // RequirementLevel: Recommended
4688 // Stability: Development
4689 //
4690 // Examples: "users"
4691 FileGroupNameKey = attribute.Key("file.group.name")
4692
4693 // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
4694 // conventions. It represents the inode representing the file in the filesystem.
4695 //
4696 // Type: string
4697 // RequirementLevel: Recommended
4698 // Stability: Development
4699 //
4700 // Examples: "256383"
4701 FileInodeKey = attribute.Key("file.inode")
4702
4703 // FileModeKey is the attribute Key conforming to the "file.mode" semantic
4704 // conventions. It represents the mode of the file in octal representation.
4705 //
4706 // Type: string
4707 // RequirementLevel: Recommended
4708 // Stability: Development
4709 //
4710 // Examples: "0640"
4711 FileModeKey = attribute.Key("file.mode")
4712
4713 // FileModifiedKey is the attribute Key conforming to the "file.modified"
4714 // semantic conventions. It represents the time when the file content was last
4715 // modified, in ISO 8601 format.
4716 //
4717 // Type: string
4718 // RequirementLevel: Recommended
4719 // Stability: Development
4720 //
4721 // Examples: "2021-01-01T12:00:00Z"
4722 FileModifiedKey = attribute.Key("file.modified")
4723
4724 // FileNameKey is the attribute Key conforming to the "file.name" semantic
4725 // conventions. It represents the name of the file including the extension,
4726 // without the directory.
4727 //
4728 // Type: string
4729 // RequirementLevel: Recommended
4730 // Stability: Development
4731 //
4732 // Examples: "example.png"
4733 FileNameKey = attribute.Key("file.name")
4734
4735 // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
4736 // semantic conventions. It represents the user ID (UID) or security identifier
4737 // (SID) of the file owner.
4738 //
4739 // Type: string
4740 // RequirementLevel: Recommended
4741 // Stability: Development
4742 //
4743 // Examples: "1000"
4744 FileOwnerIDKey = attribute.Key("file.owner.id")
4745
4746 // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
4747 // semantic conventions. It represents the username of the file owner.
4748 //
4749 // Type: string
4750 // RequirementLevel: Recommended
4751 // Stability: Development
4752 //
4753 // Examples: "root"
4754 FileOwnerNameKey = attribute.Key("file.owner.name")
4755
4756 // FilePathKey is the attribute Key conforming to the "file.path" semantic
4757 // conventions. It represents the full path to the file, including the file
4758 // name. It should include the drive letter, when appropriate.
4759 //
4760 // Type: string
4761 // RequirementLevel: Recommended
4762 // Stability: Development
4763 //
4764 // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
4765 FilePathKey = attribute.Key("file.path")
4766
4767 // FileSizeKey is the attribute Key conforming to the "file.size" semantic
4768 // conventions. It represents the file size in bytes.
4769 //
4770 // Type: int
4771 // RequirementLevel: Recommended
4772 // Stability: Development
4773 //
4774 // Examples:
4775 FileSizeKey = attribute.Key("file.size")
4776
4777 // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
4778 // "file.symbolic_link.target_path" semantic conventions. It represents the path
4779 // to the target of a symbolic link.
4780 //
4781 // Type: string
4782 // RequirementLevel: Recommended
4783 // Stability: Development
4784 //
4785 // Examples: "/usr/bin/python3"
4786 // Note: This attribute is only applicable to symbolic links.
4787 FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
4788 )
4789
4790 // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
4791 // semantic conventions. It represents the time when the file was last accessed,
4792 // in ISO 8601 format.
4793 func FileAccessed(val string) attribute.KeyValue {
4794 return FileAccessedKey.String(val)
4795 }
4796
4797 // FileAttributes returns an attribute KeyValue conforming to the
4798 // "file.attributes" semantic conventions. It represents the array of file
4799 // attributes.
4800 func FileAttributes(val ...string) attribute.KeyValue {
4801 return FileAttributesKey.StringSlice(val)
4802 }
4803
4804 // FileChanged returns an attribute KeyValue conforming to the "file.changed"
4805 // semantic conventions. It represents the time when the file attributes or
4806 // metadata was last changed, in ISO 8601 format.
4807 func FileChanged(val string) attribute.KeyValue {
4808 return FileChangedKey.String(val)
4809 }
4810
4811 // FileCreated returns an attribute KeyValue conforming to the "file.created"
4812 // semantic conventions. It represents the time when the file was created, in ISO
4813 // 8601 format.
4814 func FileCreated(val string) attribute.KeyValue {
4815 return FileCreatedKey.String(val)
4816 }
4817
4818 // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
4819 // semantic conventions. It represents the directory where the file is located.
4820 // It should include the drive letter, when appropriate.
4821 func FileDirectory(val string) attribute.KeyValue {
4822 return FileDirectoryKey.String(val)
4823 }
4824
4825 // FileExtension returns an attribute KeyValue conforming to the "file.extension"
4826 // semantic conventions. It represents the file extension, excluding the leading
4827 // dot.
4828 func FileExtension(val string) attribute.KeyValue {
4829 return FileExtensionKey.String(val)
4830 }
4831
4832 // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
4833 // semantic conventions. It represents the name of the fork. A fork is additional
4834 // data associated with a filesystem object.
4835 func FileForkName(val string) attribute.KeyValue {
4836 return FileForkNameKey.String(val)
4837 }
4838
4839 // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
4840 // semantic conventions. It represents the primary Group ID (GID) of the file.
4841 func FileGroupID(val string) attribute.KeyValue {
4842 return FileGroupIDKey.String(val)
4843 }
4844
4845 // FileGroupName returns an attribute KeyValue conforming to the
4846 // "file.group.name" semantic conventions. It represents the primary group name
4847 // of the file.
4848 func FileGroupName(val string) attribute.KeyValue {
4849 return FileGroupNameKey.String(val)
4850 }
4851
4852 // FileInode returns an attribute KeyValue conforming to the "file.inode"
4853 // semantic conventions. It represents the inode representing the file in the
4854 // filesystem.
4855 func FileInode(val string) attribute.KeyValue {
4856 return FileInodeKey.String(val)
4857 }
4858
4859 // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
4860 // conventions. It represents the mode of the file in octal representation.
4861 func FileMode(val string) attribute.KeyValue {
4862 return FileModeKey.String(val)
4863 }
4864
4865 // FileModified returns an attribute KeyValue conforming to the "file.modified"
4866 // semantic conventions. It represents the time when the file content was last
4867 // modified, in ISO 8601 format.
4868 func FileModified(val string) attribute.KeyValue {
4869 return FileModifiedKey.String(val)
4870 }
4871
4872 // FileName returns an attribute KeyValue conforming to the "file.name" semantic
4873 // conventions. It represents the name of the file including the extension,
4874 // without the directory.
4875 func FileName(val string) attribute.KeyValue {
4876 return FileNameKey.String(val)
4877 }
4878
4879 // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
4880 // semantic conventions. It represents the user ID (UID) or security identifier
4881 // (SID) of the file owner.
4882 func FileOwnerID(val string) attribute.KeyValue {
4883 return FileOwnerIDKey.String(val)
4884 }
4885
4886 // FileOwnerName returns an attribute KeyValue conforming to the
4887 // "file.owner.name" semantic conventions. It represents the username of the file
4888 // owner.
4889 func FileOwnerName(val string) attribute.KeyValue {
4890 return FileOwnerNameKey.String(val)
4891 }
4892
4893 // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
4894 // conventions. It represents the full path to the file, including the file name.
4895 // It should include the drive letter, when appropriate.
4896 func FilePath(val string) attribute.KeyValue {
4897 return FilePathKey.String(val)
4898 }
4899
4900 // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
4901 // conventions. It represents the file size in bytes.
4902 func FileSize(val int) attribute.KeyValue {
4903 return FileSizeKey.Int(val)
4904 }
4905
4906 // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
4907 // "file.symbolic_link.target_path" semantic conventions. It represents the path
4908 // to the target of a symbolic link.
4909 func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
4910 return FileSymbolicLinkTargetPathKey.String(val)
4911 }
4912
4913 // Namespace: gcp
4914 const (
4915 // GCPClientServiceKey is the attribute Key conforming to the
4916 // "gcp.client.service" semantic conventions. It represents the identifies the
4917 // Google Cloud service for which the official client library is intended.
4918 //
4919 // Type: string
4920 // RequirementLevel: Recommended
4921 // Stability: Development
4922 //
4923 // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
4924 // Note: Intended to be a stable identifier for Google Cloud client libraries
4925 // that is uniform across implementation languages. The value should be derived
4926 // from the canonical service domain for the service; for example,
4927 // 'foo.googleapis.com' should result in a value of 'foo'.
4928 GCPClientServiceKey = attribute.Key("gcp.client.service")
4929
4930 // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
4931 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
4932 // the Cloud Run [execution] being run for the Job, as set by the
4933 // [`CLOUD_RUN_EXECUTION`] environment variable.
4934 //
4935 // Type: string
4936 // RequirementLevel: Recommended
4937 // Stability: Development
4938 //
4939 // Examples: "job-name-xxxx", "sample-job-mdw84"
4940 //
4941 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
4942 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
4943 GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
4944
4945 // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
4946 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
4947 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
4948 // environment variable.
4949 //
4950 // Type: int
4951 // RequirementLevel: Recommended
4952 // Stability: Development
4953 //
4954 // Examples: 0, 1
4955 //
4956 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
4957 GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
4958
4959 // GCPGceInstanceHostnameKey is the attribute Key conforming to the
4960 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
4961 // of a GCE instance. This is the full value of the default or [custom hostname]
4962 // .
4963 //
4964 // Type: string
4965 // RequirementLevel: Recommended
4966 // Stability: Development
4967 //
4968 // Examples: "my-host1234.example.com",
4969 // "sample-vm.us-west1-b.c.my-project.internal"
4970 //
4971 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
4972 GCPGceInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
4973
4974 // GCPGceInstanceNameKey is the attribute Key conforming to the
4975 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
4976 // of a GCE instance. This is the value provided by `host.name`, the visible
4977 // name of the instance in the Cloud Console UI, and the prefix for the default
4978 // hostname of the instance as defined by the [default internal DNS name].
4979 //
4980 // Type: string
4981 // RequirementLevel: Recommended
4982 // Stability: Development
4983 //
4984 // Examples: "instance-1", "my-vm-name"
4985 //
4986 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
4987 GCPGceInstanceNameKey = attribute.Key("gcp.gce.instance.name")
4988 )
4989
4990 // GCPClientService returns an attribute KeyValue conforming to the
4991 // "gcp.client.service" semantic conventions. It represents the identifies the
4992 // Google Cloud service for which the official client library is intended.
4993 func GCPClientService(val string) attribute.KeyValue {
4994 return GCPClientServiceKey.String(val)
4995 }
4996
4997 // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
4998 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
4999 // the Cloud Run [execution] being run for the Job, as set by the
5000 // [`CLOUD_RUN_EXECUTION`] environment variable.
5001 //
5002 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5003 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5004 func GCPCloudRunJobExecution(val string) attribute.KeyValue {
5005 return GCPCloudRunJobExecutionKey.String(val)
5006 }
5007
5008 // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
5009 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5010 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5011 // environment variable.
5012 //
5013 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5014 func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
5015 return GCPCloudRunJobTaskIndexKey.Int(val)
5016 }
5017
5018 // GCPGceInstanceHostname returns an attribute KeyValue conforming to the
5019 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5020 // of a GCE instance. This is the full value of the default or [custom hostname]
5021 // .
5022 //
5023 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5024 func GCPGceInstanceHostname(val string) attribute.KeyValue {
5025 return GCPGceInstanceHostnameKey.String(val)
5026 }
5027
5028 // GCPGceInstanceName returns an attribute KeyValue conforming to the
5029 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5030 // of a GCE instance. This is the value provided by `host.name`, the visible name
5031 // of the instance in the Cloud Console UI, and the prefix for the default
5032 // hostname of the instance as defined by the [default internal DNS name].
5033 //
5034 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5035 func GCPGceInstanceName(val string) attribute.KeyValue {
5036 return GCPGceInstanceNameKey.String(val)
5037 }
5038
5039 // Namespace: gen_ai
5040 const (
5041 // GenAIAgentDescriptionKey is the attribute Key conforming to the
5042 // "gen_ai.agent.description" semantic conventions. It represents the free-form
5043 // description of the GenAI agent provided by the application.
5044 //
5045 // Type: string
5046 // RequirementLevel: Recommended
5047 // Stability: Development
5048 //
5049 // Examples: "Helps with math problems", "Generates fiction stories"
5050 GenAIAgentDescriptionKey = attribute.Key("gen_ai.agent.description")
5051
5052 // GenAIAgentIDKey is the attribute Key conforming to the "gen_ai.agent.id"
5053 // semantic conventions. It represents the unique identifier of the GenAI agent.
5054 //
5055 // Type: string
5056 // RequirementLevel: Recommended
5057 // Stability: Development
5058 //
5059 // Examples: "asst_5j66UpCpwteGg4YSxUnt7lPY"
5060 GenAIAgentIDKey = attribute.Key("gen_ai.agent.id")
5061
5062 // GenAIAgentNameKey is the attribute Key conforming to the "gen_ai.agent.name"
5063 // semantic conventions. It represents the human-readable name of the GenAI
5064 // agent provided by the application.
5065 //
5066 // Type: string
5067 // RequirementLevel: Recommended
5068 // Stability: Development
5069 //
5070 // Examples: "Math Tutor", "Fiction Writer"
5071 GenAIAgentNameKey = attribute.Key("gen_ai.agent.name")
5072
5073 // GenAIOpenaiRequestServiceTierKey is the attribute Key conforming to the
5074 // "gen_ai.openai.request.service_tier" semantic conventions. It represents the
5075 // service tier requested. May be a specific tier, default, or auto.
5076 //
5077 // Type: Enum
5078 // RequirementLevel: Recommended
5079 // Stability: Development
5080 //
5081 // Examples: "auto", "default"
5082 GenAIOpenaiRequestServiceTierKey = attribute.Key("gen_ai.openai.request.service_tier")
5083
5084 // GenAIOpenaiResponseServiceTierKey is the attribute Key conforming to the
5085 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
5086 // service tier used for the response.
5087 //
5088 // Type: string
5089 // RequirementLevel: Recommended
5090 // Stability: Development
5091 //
5092 // Examples: "scale", "default"
5093 GenAIOpenaiResponseServiceTierKey = attribute.Key("gen_ai.openai.response.service_tier")
5094
5095 // GenAIOpenaiResponseSystemFingerprintKey is the attribute Key conforming to
5096 // the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
5097 // represents a fingerprint to track any eventual change in the Generative AI
5098 // environment.
5099 //
5100 // Type: string
5101 // RequirementLevel: Recommended
5102 // Stability: Development
5103 //
5104 // Examples: "fp_44709d6fcb"
5105 GenAIOpenaiResponseSystemFingerprintKey = attribute.Key("gen_ai.openai.response.system_fingerprint")
5106
5107 // GenAIOperationNameKey is the attribute Key conforming to the
5108 // "gen_ai.operation.name" semantic conventions. It represents the name of the
5109 // operation being performed.
5110 //
5111 // Type: Enum
5112 // RequirementLevel: Recommended
5113 // Stability: Development
5114 //
5115 // Examples:
5116 // Note: If one of the predefined values applies, but specific system uses a
5117 // different name it's RECOMMENDED to document it in the semantic conventions
5118 // for specific GenAI system and use system-specific name in the
5119 // instrumentation. If a different name is not documented, instrumentation
5120 // libraries SHOULD use applicable predefined value.
5121 GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
5122
5123 // GenAIOutputTypeKey is the attribute Key conforming to the
5124 // "gen_ai.output.type" semantic conventions. It represents the represents the
5125 // content type requested by the client.
5126 //
5127 // Type: Enum
5128 // RequirementLevel: Recommended
5129 // Stability: Development
5130 //
5131 // Examples:
5132 // Note: This attribute SHOULD be used when the client requests output of a
5133 // specific type. The model may return zero or more outputs of this type.
5134 // This attribute specifies the output modality and not the actual output
5135 // format. For example, if an image is requested, the actual output could be a
5136 // URL pointing to an image file.
5137 // Additional output format details may be recorded in the future in the
5138 // `gen_ai.output.{type}.*` attributes.
5139 GenAIOutputTypeKey = attribute.Key("gen_ai.output.type")
5140
5141 // GenAIRequestChoiceCountKey is the attribute Key conforming to the
5142 // "gen_ai.request.choice.count" semantic conventions. It represents the target
5143 // number of candidate completions to return.
5144 //
5145 // Type: int
5146 // RequirementLevel: Recommended
5147 // Stability: Development
5148 //
5149 // Examples: 3
5150 GenAIRequestChoiceCountKey = attribute.Key("gen_ai.request.choice.count")
5151
5152 // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the
5153 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
5154 // encoding formats requested in an embeddings operation, if specified.
5155 //
5156 // Type: string[]
5157 // RequirementLevel: Recommended
5158 // Stability: Development
5159 //
5160 // Examples: "base64"], ["float", "binary"
5161 // Note: In some GenAI systems the encoding formats are called embedding types.
5162 // Also, some GenAI systems only accept a single format per request.
5163 GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats")
5164
5165 // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
5166 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
5167 // frequency penalty setting for the GenAI request.
5168 //
5169 // Type: double
5170 // RequirementLevel: Recommended
5171 // Stability: Development
5172 //
5173 // Examples: 0.1
5174 GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
5175
5176 // GenAIRequestMaxTokensKey is the attribute Key conforming to the
5177 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
5178 // number of tokens the model generates for a request.
5179 //
5180 // Type: int
5181 // RequirementLevel: Recommended
5182 // Stability: Development
5183 //
5184 // Examples: 100
5185 GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
5186
5187 // GenAIRequestModelKey is the attribute Key conforming to the
5188 // "gen_ai.request.model" semantic conventions. It represents the name of the
5189 // GenAI model a request is being made to.
5190 //
5191 // Type: string
5192 // RequirementLevel: Recommended
5193 // Stability: Development
5194 //
5195 // Examples: gpt-4
5196 GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
5197
5198 // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
5199 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
5200 // presence penalty setting for the GenAI request.
5201 //
5202 // Type: double
5203 // RequirementLevel: Recommended
5204 // Stability: Development
5205 //
5206 // Examples: 0.1
5207 GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
5208
5209 // GenAIRequestSeedKey is the attribute Key conforming to the
5210 // "gen_ai.request.seed" semantic conventions. It represents the requests with
5211 // same seed value more likely to return same result.
5212 //
5213 // Type: int
5214 // RequirementLevel: Recommended
5215 // Stability: Development
5216 //
5217 // Examples: 100
5218 GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed")
5219
5220 // GenAIRequestStopSequencesKey is the attribute Key conforming to the
5221 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
5222 // of sequences that the model will use to stop generating further tokens.
5223 //
5224 // Type: string[]
5225 // RequirementLevel: Recommended
5226 // Stability: Development
5227 //
5228 // Examples: "forest", "lived"
5229 GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
5230
5231 // GenAIRequestTemperatureKey is the attribute Key conforming to the
5232 // "gen_ai.request.temperature" semantic conventions. It represents the
5233 // temperature setting for the GenAI request.
5234 //
5235 // Type: double
5236 // RequirementLevel: Recommended
5237 // Stability: Development
5238 //
5239 // Examples: 0.0
5240 GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
5241
5242 // GenAIRequestTopKKey is the attribute Key conforming to the
5243 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
5244 // setting for the GenAI request.
5245 //
5246 // Type: double
5247 // RequirementLevel: Recommended
5248 // Stability: Development
5249 //
5250 // Examples: 1.0
5251 GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
5252
5253 // GenAIRequestTopPKey is the attribute Key conforming to the
5254 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
5255 // setting for the GenAI request.
5256 //
5257 // Type: double
5258 // RequirementLevel: Recommended
5259 // Stability: Development
5260 //
5261 // Examples: 1.0
5262 GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
5263
5264 // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
5265 // "gen_ai.response.finish_reasons" semantic conventions. It represents the
5266 // array of reasons the model stopped generating tokens, corresponding to each
5267 // generation received.
5268 //
5269 // Type: string[]
5270 // RequirementLevel: Recommended
5271 // Stability: Development
5272 //
5273 // Examples: "stop"], ["stop", "length"
5274 GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
5275
5276 // GenAIResponseIDKey is the attribute Key conforming to the
5277 // "gen_ai.response.id" semantic conventions. It represents the unique
5278 // identifier for the completion.
5279 //
5280 // Type: string
5281 // RequirementLevel: Recommended
5282 // Stability: Development
5283 //
5284 // Examples: "chatcmpl-123"
5285 GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
5286
5287 // GenAIResponseModelKey is the attribute Key conforming to the
5288 // "gen_ai.response.model" semantic conventions. It represents the name of the
5289 // model that generated the response.
5290 //
5291 // Type: string
5292 // RequirementLevel: Recommended
5293 // Stability: Development
5294 //
5295 // Examples: "gpt-4-0613"
5296 GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
5297
5298 // GenAISystemKey is the attribute Key conforming to the "gen_ai.system"
5299 // semantic conventions. It represents the Generative AI product as identified
5300 // by the client or server instrumentation.
5301 //
5302 // Type: Enum
5303 // RequirementLevel: Recommended
5304 // Stability: Development
5305 //
5306 // Examples: openai
5307 // Note: The `gen_ai.system` describes a family of GenAI models with specific
5308 // model identified
5309 // by `gen_ai.request.model` and `gen_ai.response.model` attributes.
5310 //
5311 // The actual GenAI product may differ from the one identified by the client.
5312 // Multiple systems, including Azure OpenAI and Gemini, are accessible by OpenAI
5313 // client
5314 // libraries. In such cases, the `gen_ai.system` is set to `openai` based on the
5315 // instrumentation's best knowledge, instead of the actual system. The
5316 // `server.address`
5317 // attribute may help identify the actual system in use for `openai`.
5318 //
5319 // For custom model, a custom friendly name SHOULD be used.
5320 // If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER`
5321 // .
5322 GenAISystemKey = attribute.Key("gen_ai.system")
5323
5324 // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
5325 // semantic conventions. It represents the type of token being counted.
5326 //
5327 // Type: Enum
5328 // RequirementLevel: Recommended
5329 // Stability: Development
5330 //
5331 // Examples: "input", "output"
5332 GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
5333
5334 // GenAIToolCallIDKey is the attribute Key conforming to the
5335 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
5336 // identifier.
5337 //
5338 // Type: string
5339 // RequirementLevel: Recommended
5340 // Stability: Development
5341 //
5342 // Examples: "call_mszuSIzqtI65i1wAUOE8w5H4"
5343 GenAIToolCallIDKey = attribute.Key("gen_ai.tool.call.id")
5344
5345 // GenAIToolNameKey is the attribute Key conforming to the "gen_ai.tool.name"
5346 // semantic conventions. It represents the name of the tool utilized by the
5347 // agent.
5348 //
5349 // Type: string
5350 // RequirementLevel: Recommended
5351 // Stability: Development
5352 //
5353 // Examples: "Flights"
5354 GenAIToolNameKey = attribute.Key("gen_ai.tool.name")
5355
5356 // GenAIToolTypeKey is the attribute Key conforming to the "gen_ai.tool.type"
5357 // semantic conventions. It represents the type of the tool utilized by the
5358 // agent.
5359 //
5360 // Type: string
5361 // RequirementLevel: Recommended
5362 // Stability: Development
5363 //
5364 // Examples: "function", "extension", "datastore"
5365 // Note: Extension: A tool executed on the agent-side to directly call external
5366 // APIs, bridging the gap between the agent and real-world systems.
5367 // Agent-side operations involve actions that are performed by the agent on the
5368 // server or within the agent's controlled environment.
5369 // Function: A tool executed on the client-side, where the agent generates
5370 // parameters for a predefined function, and the client executes the logic.
5371 // Client-side operations are actions taken on the user's end or within the
5372 // client application.
5373 // Datastore: A tool used by the agent to access and query structured or
5374 // unstructured external data for retrieval-augmented tasks or knowledge
5375 // updates.
5376 GenAIToolTypeKey = attribute.Key("gen_ai.tool.type")
5377
5378 // GenAIUsageInputTokensKey is the attribute Key conforming to the
5379 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
5380 // tokens used in the GenAI input (prompt).
5381 //
5382 // Type: int
5383 // RequirementLevel: Recommended
5384 // Stability: Development
5385 //
5386 // Examples: 100
5387 GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
5388
5389 // GenAIUsageOutputTokensKey is the attribute Key conforming to the
5390 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
5391 // of tokens used in the GenAI response (completion).
5392 //
5393 // Type: int
5394 // RequirementLevel: Recommended
5395 // Stability: Development
5396 //
5397 // Examples: 180
5398 GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
5399 )
5400
5401 // GenAIAgentDescription returns an attribute KeyValue conforming to the
5402 // "gen_ai.agent.description" semantic conventions. It represents the free-form
5403 // description of the GenAI agent provided by the application.
5404 func GenAIAgentDescription(val string) attribute.KeyValue {
5405 return GenAIAgentDescriptionKey.String(val)
5406 }
5407
5408 // GenAIAgentID returns an attribute KeyValue conforming to the "gen_ai.agent.id"
5409 // semantic conventions. It represents the unique identifier of the GenAI agent.
5410 func GenAIAgentID(val string) attribute.KeyValue {
5411 return GenAIAgentIDKey.String(val)
5412 }
5413
5414 // GenAIAgentName returns an attribute KeyValue conforming to the
5415 // "gen_ai.agent.name" semantic conventions. It represents the human-readable
5416 // name of the GenAI agent provided by the application.
5417 func GenAIAgentName(val string) attribute.KeyValue {
5418 return GenAIAgentNameKey.String(val)
5419 }
5420
5421 // GenAIOpenaiResponseServiceTier returns an attribute KeyValue conforming to the
5422 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
5423 // service tier used for the response.
5424 func GenAIOpenaiResponseServiceTier(val string) attribute.KeyValue {
5425 return GenAIOpenaiResponseServiceTierKey.String(val)
5426 }
5427
5428 // GenAIOpenaiResponseSystemFingerprint returns an attribute KeyValue conforming
5429 // to the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
5430 // represents a fingerprint to track any eventual change in the Generative AI
5431 // environment.
5432 func GenAIOpenaiResponseSystemFingerprint(val string) attribute.KeyValue {
5433 return GenAIOpenaiResponseSystemFingerprintKey.String(val)
5434 }
5435
5436 // GenAIRequestChoiceCount returns an attribute KeyValue conforming to the
5437 // "gen_ai.request.choice.count" semantic conventions. It represents the target
5438 // number of candidate completions to return.
5439 func GenAIRequestChoiceCount(val int) attribute.KeyValue {
5440 return GenAIRequestChoiceCountKey.Int(val)
5441 }
5442
5443 // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the
5444 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
5445 // encoding formats requested in an embeddings operation, if specified.
5446 func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue {
5447 return GenAIRequestEncodingFormatsKey.StringSlice(val)
5448 }
5449
5450 // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
5451 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
5452 // frequency penalty setting for the GenAI request.
5453 func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
5454 return GenAIRequestFrequencyPenaltyKey.Float64(val)
5455 }
5456
5457 // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
5458 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
5459 // number of tokens the model generates for a request.
5460 func GenAIRequestMaxTokens(val int) attribute.KeyValue {
5461 return GenAIRequestMaxTokensKey.Int(val)
5462 }
5463
5464 // GenAIRequestModel returns an attribute KeyValue conforming to the
5465 // "gen_ai.request.model" semantic conventions. It represents the name of the
5466 // GenAI model a request is being made to.
5467 func GenAIRequestModel(val string) attribute.KeyValue {
5468 return GenAIRequestModelKey.String(val)
5469 }
5470
5471 // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
5472 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
5473 // presence penalty setting for the GenAI request.
5474 func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
5475 return GenAIRequestPresencePenaltyKey.Float64(val)
5476 }
5477
5478 // GenAIRequestSeed returns an attribute KeyValue conforming to the
5479 // "gen_ai.request.seed" semantic conventions. It represents the requests with
5480 // same seed value more likely to return same result.
5481 func GenAIRequestSeed(val int) attribute.KeyValue {
5482 return GenAIRequestSeedKey.Int(val)
5483 }
5484
5485 // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
5486 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
5487 // of sequences that the model will use to stop generating further tokens.
5488 func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
5489 return GenAIRequestStopSequencesKey.StringSlice(val)
5490 }
5491
5492 // GenAIRequestTemperature returns an attribute KeyValue conforming to the
5493 // "gen_ai.request.temperature" semantic conventions. It represents the
5494 // temperature setting for the GenAI request.
5495 func GenAIRequestTemperature(val float64) attribute.KeyValue {
5496 return GenAIRequestTemperatureKey.Float64(val)
5497 }
5498
5499 // GenAIRequestTopK returns an attribute KeyValue conforming to the
5500 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
5501 // setting for the GenAI request.
5502 func GenAIRequestTopK(val float64) attribute.KeyValue {
5503 return GenAIRequestTopKKey.Float64(val)
5504 }
5505
5506 // GenAIRequestTopP returns an attribute KeyValue conforming to the
5507 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
5508 // setting for the GenAI request.
5509 func GenAIRequestTopP(val float64) attribute.KeyValue {
5510 return GenAIRequestTopPKey.Float64(val)
5511 }
5512
5513 // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
5514 // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
5515 // of reasons the model stopped generating tokens, corresponding to each
5516 // generation received.
5517 func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
5518 return GenAIResponseFinishReasonsKey.StringSlice(val)
5519 }
5520
5521 // GenAIResponseID returns an attribute KeyValue conforming to the
5522 // "gen_ai.response.id" semantic conventions. It represents the unique identifier
5523 // for the completion.
5524 func GenAIResponseID(val string) attribute.KeyValue {
5525 return GenAIResponseIDKey.String(val)
5526 }
5527
5528 // GenAIResponseModel returns an attribute KeyValue conforming to the
5529 // "gen_ai.response.model" semantic conventions. It represents the name of the
5530 // model that generated the response.
5531 func GenAIResponseModel(val string) attribute.KeyValue {
5532 return GenAIResponseModelKey.String(val)
5533 }
5534
5535 // GenAIToolCallID returns an attribute KeyValue conforming to the
5536 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
5537 // identifier.
5538 func GenAIToolCallID(val string) attribute.KeyValue {
5539 return GenAIToolCallIDKey.String(val)
5540 }
5541
5542 // GenAIToolName returns an attribute KeyValue conforming to the
5543 // "gen_ai.tool.name" semantic conventions. It represents the name of the tool
5544 // utilized by the agent.
5545 func GenAIToolName(val string) attribute.KeyValue {
5546 return GenAIToolNameKey.String(val)
5547 }
5548
5549 // GenAIToolType returns an attribute KeyValue conforming to the
5550 // "gen_ai.tool.type" semantic conventions. It represents the type of the tool
5551 // utilized by the agent.
5552 func GenAIToolType(val string) attribute.KeyValue {
5553 return GenAIToolTypeKey.String(val)
5554 }
5555
5556 // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
5557 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
5558 // tokens used in the GenAI input (prompt).
5559 func GenAIUsageInputTokens(val int) attribute.KeyValue {
5560 return GenAIUsageInputTokensKey.Int(val)
5561 }
5562
5563 // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
5564 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
5565 // tokens used in the GenAI response (completion).
5566 func GenAIUsageOutputTokens(val int) attribute.KeyValue {
5567 return GenAIUsageOutputTokensKey.Int(val)
5568 }
5569
5570 // Enum values for gen_ai.openai.request.service_tier
5571 var (
5572 // The system will utilize scale tier credits until they are exhausted.
5573 // Stability: development
5574 GenAIOpenaiRequestServiceTierAuto = GenAIOpenaiRequestServiceTierKey.String("auto")
5575 // The system will utilize the default scale tier.
5576 // Stability: development
5577 GenAIOpenaiRequestServiceTierDefault = GenAIOpenaiRequestServiceTierKey.String("default")
5578 )
5579
5580 // Enum values for gen_ai.operation.name
5581 var (
5582 // Chat completion operation such as [OpenAI Chat API]
5583 // Stability: development
5584 //
5585 // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
5586 GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
5587 // Text completions operation such as [OpenAI Completions API (Legacy)]
5588 // Stability: development
5589 //
5590 // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
5591 GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
5592 // Embeddings operation such as [OpenAI Create embeddings API]
5593 // Stability: development
5594 //
5595 // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create
5596 GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings")
5597 // Create GenAI agent
5598 // Stability: development
5599 GenAIOperationNameCreateAgent = GenAIOperationNameKey.String("create_agent")
5600 // Execute a tool
5601 // Stability: development
5602 GenAIOperationNameExecuteTool = GenAIOperationNameKey.String("execute_tool")
5603 )
5604
5605 // Enum values for gen_ai.output.type
5606 var (
5607 // Plain text
5608 // Stability: development
5609 GenAIOutputTypeText = GenAIOutputTypeKey.String("text")
5610 // JSON object with known or unknown schema
5611 // Stability: development
5612 GenAIOutputTypeJSON = GenAIOutputTypeKey.String("json")
5613 // Image
5614 // Stability: development
5615 GenAIOutputTypeImage = GenAIOutputTypeKey.String("image")
5616 // Speech
5617 // Stability: development
5618 GenAIOutputTypeSpeech = GenAIOutputTypeKey.String("speech")
5619 )
5620
5621 // Enum values for gen_ai.system
5622 var (
5623 // OpenAI
5624 // Stability: development
5625 GenAISystemOpenai = GenAISystemKey.String("openai")
5626 // Vertex AI
5627 // Stability: development
5628 GenAISystemVertexAI = GenAISystemKey.String("vertex_ai")
5629 // Gemini
5630 // Stability: development
5631 GenAISystemGemini = GenAISystemKey.String("gemini")
5632 // Anthropic
5633 // Stability: development
5634 GenAISystemAnthropic = GenAISystemKey.String("anthropic")
5635 // Cohere
5636 // Stability: development
5637 GenAISystemCohere = GenAISystemKey.String("cohere")
5638 // Azure AI Inference
5639 // Stability: development
5640 GenAISystemAzAIInference = GenAISystemKey.String("az.ai.inference")
5641 // Azure OpenAI
5642 // Stability: development
5643 GenAISystemAzAIOpenai = GenAISystemKey.String("az.ai.openai")
5644 // IBM Watsonx AI
5645 // Stability: development
5646 GenAISystemIbmWatsonxAI = GenAISystemKey.String("ibm.watsonx.ai")
5647 // AWS Bedrock
5648 // Stability: development
5649 GenAISystemAWSBedrock = GenAISystemKey.String("aws.bedrock")
5650 // Perplexity
5651 // Stability: development
5652 GenAISystemPerplexity = GenAISystemKey.String("perplexity")
5653 // xAI
5654 // Stability: development
5655 GenAISystemXai = GenAISystemKey.String("xai")
5656 // DeepSeek
5657 // Stability: development
5658 GenAISystemDeepseek = GenAISystemKey.String("deepseek")
5659 // Groq
5660 // Stability: development
5661 GenAISystemGroq = GenAISystemKey.String("groq")
5662 // Mistral AI
5663 // Stability: development
5664 GenAISystemMistralAI = GenAISystemKey.String("mistral_ai")
5665 )
5666
5667 // Enum values for gen_ai.token.type
5668 var (
5669 // Input tokens (prompt, input, etc.)
5670 // Stability: development
5671 GenAITokenTypeInput = GenAITokenTypeKey.String("input")
5672 // Deprecated: Replaced by `output`.
5673 GenAITokenTypeCompletion = GenAITokenTypeKey.String("output")
5674 // Output tokens (completion, response, etc.)
5675 // Stability: development
5676 GenAITokenTypeOutput = GenAITokenTypeKey.String("output")
5677 )
5678
5679 // Namespace: geo
5680 const (
5681 // GeoContinentCodeKey is the attribute Key conforming to the
5682 // "geo.continent.code" semantic conventions. It represents the two-letter code
5683 // representing continent’s name.
5684 //
5685 // Type: Enum
5686 // RequirementLevel: Recommended
5687 // Stability: Development
5688 //
5689 // Examples:
5690 GeoContinentCodeKey = attribute.Key("geo.continent.code")
5691
5692 // GeoCountryIsoCodeKey is the attribute Key conforming to the
5693 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
5694 // Country Code ([ISO 3166-1 alpha2]).
5695 //
5696 // Type: string
5697 // RequirementLevel: Recommended
5698 // Stability: Development
5699 //
5700 // Examples: "CA"
5701 //
5702 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
5703 GeoCountryIsoCodeKey = attribute.Key("geo.country.iso_code")
5704
5705 // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name"
5706 // semantic conventions. It represents the locality name. Represents the name of
5707 // a city, town, village, or similar populated place.
5708 //
5709 // Type: string
5710 // RequirementLevel: Recommended
5711 // Stability: Development
5712 //
5713 // Examples: "Montreal", "Berlin"
5714 GeoLocalityNameKey = attribute.Key("geo.locality.name")
5715
5716 // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat"
5717 // semantic conventions. It represents the latitude of the geo location in
5718 // [WGS84].
5719 //
5720 // Type: double
5721 // RequirementLevel: Recommended
5722 // Stability: Development
5723 //
5724 // Examples: 45.505918
5725 //
5726 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
5727 GeoLocationLatKey = attribute.Key("geo.location.lat")
5728
5729 // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon"
5730 // semantic conventions. It represents the longitude of the geo location in
5731 // [WGS84].
5732 //
5733 // Type: double
5734 // RequirementLevel: Recommended
5735 // Stability: Development
5736 //
5737 // Examples: -73.61483
5738 //
5739 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
5740 GeoLocationLonKey = attribute.Key("geo.location.lon")
5741
5742 // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code"
5743 // semantic conventions. It represents the postal code associated with the
5744 // location. Values appropriate for this field may also be known as a postcode
5745 // or ZIP code and will vary widely from country to country.
5746 //
5747 // Type: string
5748 // RequirementLevel: Recommended
5749 // Stability: Development
5750 //
5751 // Examples: "94040"
5752 GeoPostalCodeKey = attribute.Key("geo.postal_code")
5753
5754 // GeoRegionIsoCodeKey is the attribute Key conforming to the
5755 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
5756 // ([ISO 3166-2]).
5757 //
5758 // Type: string
5759 // RequirementLevel: Recommended
5760 // Stability: Development
5761 //
5762 // Examples: "CA-QC"
5763 //
5764 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
5765 GeoRegionIsoCodeKey = attribute.Key("geo.region.iso_code")
5766 )
5767
5768 // GeoCountryIsoCode returns an attribute KeyValue conforming to the
5769 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
5770 // Country Code ([ISO 3166-1 alpha2]).
5771 //
5772 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
5773 func GeoCountryIsoCode(val string) attribute.KeyValue {
5774 return GeoCountryIsoCodeKey.String(val)
5775 }
5776
5777 // GeoLocalityName returns an attribute KeyValue conforming to the
5778 // "geo.locality.name" semantic conventions. It represents the locality name.
5779 // Represents the name of a city, town, village, or similar populated place.
5780 func GeoLocalityName(val string) attribute.KeyValue {
5781 return GeoLocalityNameKey.String(val)
5782 }
5783
5784 // GeoLocationLat returns an attribute KeyValue conforming to the
5785 // "geo.location.lat" semantic conventions. It represents the latitude of the geo
5786 // location in [WGS84].
5787 //
5788 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
5789 func GeoLocationLat(val float64) attribute.KeyValue {
5790 return GeoLocationLatKey.Float64(val)
5791 }
5792
5793 // GeoLocationLon returns an attribute KeyValue conforming to the
5794 // "geo.location.lon" semantic conventions. It represents the longitude of the
5795 // geo location in [WGS84].
5796 //
5797 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
5798 func GeoLocationLon(val float64) attribute.KeyValue {
5799 return GeoLocationLonKey.Float64(val)
5800 }
5801
5802 // GeoPostalCode returns an attribute KeyValue conforming to the
5803 // "geo.postal_code" semantic conventions. It represents the postal code
5804 // associated with the location. Values appropriate for this field may also be
5805 // known as a postcode or ZIP code and will vary widely from country to country.
5806 func GeoPostalCode(val string) attribute.KeyValue {
5807 return GeoPostalCodeKey.String(val)
5808 }
5809
5810 // GeoRegionIsoCode returns an attribute KeyValue conforming to the
5811 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
5812 // ([ISO 3166-2]).
5813 //
5814 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
5815 func GeoRegionIsoCode(val string) attribute.KeyValue {
5816 return GeoRegionIsoCodeKey.String(val)
5817 }
5818
5819 // Enum values for geo.continent.code
5820 var (
5821 // Africa
5822 // Stability: development
5823 GeoContinentCodeAf = GeoContinentCodeKey.String("AF")
5824 // Antarctica
5825 // Stability: development
5826 GeoContinentCodeAn = GeoContinentCodeKey.String("AN")
5827 // Asia
5828 // Stability: development
5829 GeoContinentCodeAs = GeoContinentCodeKey.String("AS")
5830 // Europe
5831 // Stability: development
5832 GeoContinentCodeEu = GeoContinentCodeKey.String("EU")
5833 // North America
5834 // Stability: development
5835 GeoContinentCodeNa = GeoContinentCodeKey.String("NA")
5836 // Oceania
5837 // Stability: development
5838 GeoContinentCodeOc = GeoContinentCodeKey.String("OC")
5839 // South America
5840 // Stability: development
5841 GeoContinentCodeSa = GeoContinentCodeKey.String("SA")
5842 )
5843
5844 // Namespace: go
5845 const (
5846 // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
5847 // semantic conventions. It represents the type of memory.
5848 //
5849 // Type: Enum
5850 // RequirementLevel: Recommended
5851 // Stability: Development
5852 //
5853 // Examples: "other", "stack"
5854 GoMemoryTypeKey = attribute.Key("go.memory.type")
5855 )
5856
5857 // Enum values for go.memory.type
5858 var (
5859 // Memory allocated from the heap that is reserved for stack space, whether or
5860 // not it is currently in-use.
5861 // Stability: development
5862 GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
5863 // Memory used by the Go runtime, excluding other categories of memory usage
5864 // described in this enumeration.
5865 // Stability: development
5866 GoMemoryTypeOther = GoMemoryTypeKey.String("other")
5867 )
5868
5869 // Namespace: graphql
5870 const (
5871 // GraphqlDocumentKey is the attribute Key conforming to the "graphql.document"
5872 // semantic conventions. It represents the GraphQL document being executed.
5873 //
5874 // Type: string
5875 // RequirementLevel: Recommended
5876 // Stability: Development
5877 //
5878 // Examples: query findBookById { bookById(id: ?) { name } }
5879 // Note: The value may be sanitized to exclude sensitive information.
5880 GraphqlDocumentKey = attribute.Key("graphql.document")
5881
5882 // GraphqlOperationNameKey is the attribute Key conforming to the
5883 // "graphql.operation.name" semantic conventions. It represents the name of the
5884 // operation being executed.
5885 //
5886 // Type: string
5887 // RequirementLevel: Recommended
5888 // Stability: Development
5889 //
5890 // Examples: findBookById
5891 GraphqlOperationNameKey = attribute.Key("graphql.operation.name")
5892
5893 // GraphqlOperationTypeKey is the attribute Key conforming to the
5894 // "graphql.operation.type" semantic conventions. It represents the type of the
5895 // operation being executed.
5896 //
5897 // Type: Enum
5898 // RequirementLevel: Recommended
5899 // Stability: Development
5900 //
5901 // Examples: "query", "mutation", "subscription"
5902 GraphqlOperationTypeKey = attribute.Key("graphql.operation.type")
5903 )
5904
5905 // GraphqlDocument returns an attribute KeyValue conforming to the
5906 // "graphql.document" semantic conventions. It represents the GraphQL document
5907 // being executed.
5908 func GraphqlDocument(val string) attribute.KeyValue {
5909 return GraphqlDocumentKey.String(val)
5910 }
5911
5912 // GraphqlOperationName returns an attribute KeyValue conforming to the
5913 // "graphql.operation.name" semantic conventions. It represents the name of the
5914 // operation being executed.
5915 func GraphqlOperationName(val string) attribute.KeyValue {
5916 return GraphqlOperationNameKey.String(val)
5917 }
5918
5919 // Enum values for graphql.operation.type
5920 var (
5921 // GraphQL query
5922 // Stability: development
5923 GraphqlOperationTypeQuery = GraphqlOperationTypeKey.String("query")
5924 // GraphQL mutation
5925 // Stability: development
5926 GraphqlOperationTypeMutation = GraphqlOperationTypeKey.String("mutation")
5927 // GraphQL subscription
5928 // Stability: development
5929 GraphqlOperationTypeSubscription = GraphqlOperationTypeKey.String("subscription")
5930 )
5931
5932 // Namespace: heroku
5933 const (
5934 // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
5935 // semantic conventions. It represents the unique identifier for the
5936 // application.
5937 //
5938 // Type: string
5939 // RequirementLevel: Recommended
5940 // Stability: Development
5941 //
5942 // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
5943 HerokuAppIDKey = attribute.Key("heroku.app.id")
5944
5945 // HerokuReleaseCommitKey is the attribute Key conforming to the
5946 // "heroku.release.commit" semantic conventions. It represents the commit hash
5947 // for the current release.
5948 //
5949 // Type: string
5950 // RequirementLevel: Recommended
5951 // Stability: Development
5952 //
5953 // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
5954 HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
5955
5956 // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
5957 // "heroku.release.creation_timestamp" semantic conventions. It represents the
5958 // time and date the release was created.
5959 //
5960 // Type: string
5961 // RequirementLevel: Recommended
5962 // Stability: Development
5963 //
5964 // Examples: "2022-10-23T18:00:42Z"
5965 HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
5966 )
5967
5968 // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
5969 // semantic conventions. It represents the unique identifier for the application.
5970 func HerokuAppID(val string) attribute.KeyValue {
5971 return HerokuAppIDKey.String(val)
5972 }
5973
5974 // HerokuReleaseCommit returns an attribute KeyValue conforming to the
5975 // "heroku.release.commit" semantic conventions. It represents the commit hash
5976 // for the current release.
5977 func HerokuReleaseCommit(val string) attribute.KeyValue {
5978 return HerokuReleaseCommitKey.String(val)
5979 }
5980
5981 // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
5982 // "heroku.release.creation_timestamp" semantic conventions. It represents the
5983 // time and date the release was created.
5984 func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
5985 return HerokuReleaseCreationTimestampKey.String(val)
5986 }
5987
5988 // Namespace: host
5989 const (
5990 // HostArchKey is the attribute Key conforming to the "host.arch" semantic
5991 // conventions. It represents the CPU architecture the host system is running
5992 // on.
5993 //
5994 // Type: Enum
5995 // RequirementLevel: Recommended
5996 // Stability: Development
5997 //
5998 // Examples:
5999 HostArchKey = attribute.Key("host.arch")
6000
6001 // HostCPUCacheL2SizeKey is the attribute Key conforming to the
6002 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
6003 // level 2 memory cache available to the processor (in Bytes).
6004 //
6005 // Type: int
6006 // RequirementLevel: Recommended
6007 // Stability: Development
6008 //
6009 // Examples: 12288000
6010 HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
6011
6012 // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
6013 // semantic conventions. It represents the family or generation of the CPU.
6014 //
6015 // Type: string
6016 // RequirementLevel: Recommended
6017 // Stability: Development
6018 //
6019 // Examples: "6", "PA-RISC 1.1e"
6020 HostCPUFamilyKey = attribute.Key("host.cpu.family")
6021
6022 // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
6023 // semantic conventions. It represents the model identifier. It provides more
6024 // granular information about the CPU, distinguishing it from other CPUs within
6025 // the same family.
6026 //
6027 // Type: string
6028 // RequirementLevel: Recommended
6029 // Stability: Development
6030 //
6031 // Examples: "6", "9000/778/B180L"
6032 HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
6033
6034 // HostCPUModelNameKey is the attribute Key conforming to the
6035 // "host.cpu.model.name" semantic conventions. It represents the model
6036 // designation of the processor.
6037 //
6038 // Type: string
6039 // RequirementLevel: Recommended
6040 // Stability: Development
6041 //
6042 // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
6043 HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
6044
6045 // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
6046 // semantic conventions. It represents the stepping or core revisions.
6047 //
6048 // Type: string
6049 // RequirementLevel: Recommended
6050 // Stability: Development
6051 //
6052 // Examples: "1", "r1p1"
6053 HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
6054
6055 // HostCPUVendorIDKey is the attribute Key conforming to the
6056 // "host.cpu.vendor.id" semantic conventions. It represents the processor
6057 // manufacturer identifier. A maximum 12-character string.
6058 //
6059 // Type: string
6060 // RequirementLevel: Recommended
6061 // Stability: Development
6062 //
6063 // Examples: "GenuineIntel"
6064 // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
6065 // registers. Writing these to memory in this order results in a 12-character
6066 // string.
6067 //
6068 // [CPUID]: https://wiki.osdev.org/CPUID
6069 HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
6070
6071 // HostIDKey is the attribute Key conforming to the "host.id" semantic
6072 // conventions. It represents the unique host ID. For Cloud, this must be the
6073 // instance_id assigned by the cloud provider. For non-containerized systems,
6074 // this should be the `machine-id`. See the table below for the sources to use
6075 // to determine the `machine-id` based on operating system.
6076 //
6077 // Type: string
6078 // RequirementLevel: Recommended
6079 // Stability: Development
6080 //
6081 // Examples: "fdbf79e8af94cb7f9e8df36789187052"
6082 HostIDKey = attribute.Key("host.id")
6083
6084 // HostImageIDKey is the attribute Key conforming to the "host.image.id"
6085 // semantic conventions. It represents the VM image ID or host OS image ID. For
6086 // Cloud, this value is from the provider.
6087 //
6088 // Type: string
6089 // RequirementLevel: Recommended
6090 // Stability: Development
6091 //
6092 // Examples: "ami-07b06b442921831e5"
6093 HostImageIDKey = attribute.Key("host.image.id")
6094
6095 // HostImageNameKey is the attribute Key conforming to the "host.image.name"
6096 // semantic conventions. It represents the name of the VM image or OS install
6097 // the host was instantiated from.
6098 //
6099 // Type: string
6100 // RequirementLevel: Recommended
6101 // Stability: Development
6102 //
6103 // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
6104 HostImageNameKey = attribute.Key("host.image.name")
6105
6106 // HostImageVersionKey is the attribute Key conforming to the
6107 // "host.image.version" semantic conventions. It represents the version string
6108 // of the VM image or host OS as defined in [Version Attributes].
6109 //
6110 // Type: string
6111 // RequirementLevel: Recommended
6112 // Stability: Development
6113 //
6114 // Examples: "0.1"
6115 //
6116 // [Version Attributes]: /docs/resource/README.md#version-attributes
6117 HostImageVersionKey = attribute.Key("host.image.version")
6118
6119 // HostIPKey is the attribute Key conforming to the "host.ip" semantic
6120 // conventions. It represents the available IP addresses of the host, excluding
6121 // loopback interfaces.
6122 //
6123 // Type: string[]
6124 // RequirementLevel: Recommended
6125 // Stability: Development
6126 //
6127 // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
6128 // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
6129 // addresses MUST be specified in the [RFC 5952] format.
6130 //
6131 // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
6132 HostIPKey = attribute.Key("host.ip")
6133
6134 // HostMacKey is the attribute Key conforming to the "host.mac" semantic
6135 // conventions. It represents the available MAC addresses of the host, excluding
6136 // loopback interfaces.
6137 //
6138 // Type: string[]
6139 // RequirementLevel: Recommended
6140 // Stability: Development
6141 //
6142 // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
6143 // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
6144 // hyphen-separated octets in uppercase hexadecimal form from most to least
6145 // significant.
6146 //
6147 // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
6148 HostMacKey = attribute.Key("host.mac")
6149
6150 // HostNameKey is the attribute Key conforming to the "host.name" semantic
6151 // conventions. It represents the name of the host. On Unix systems, it may
6152 // contain what the hostname command returns, or the fully qualified hostname,
6153 // or another name specified by the user.
6154 //
6155 // Type: string
6156 // RequirementLevel: Recommended
6157 // Stability: Development
6158 //
6159 // Examples: "opentelemetry-test"
6160 HostNameKey = attribute.Key("host.name")
6161
6162 // HostTypeKey is the attribute Key conforming to the "host.type" semantic
6163 // conventions. It represents the type of host. For Cloud, this must be the
6164 // machine type.
6165 //
6166 // Type: string
6167 // RequirementLevel: Recommended
6168 // Stability: Development
6169 //
6170 // Examples: "n1-standard-1"
6171 HostTypeKey = attribute.Key("host.type")
6172 )
6173
6174 // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
6175 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
6176 // level 2 memory cache available to the processor (in Bytes).
6177 func HostCPUCacheL2Size(val int) attribute.KeyValue {
6178 return HostCPUCacheL2SizeKey.Int(val)
6179 }
6180
6181 // HostCPUFamily returns an attribute KeyValue conforming to the
6182 // "host.cpu.family" semantic conventions. It represents the family or generation
6183 // of the CPU.
6184 func HostCPUFamily(val string) attribute.KeyValue {
6185 return HostCPUFamilyKey.String(val)
6186 }
6187
6188 // HostCPUModelID returns an attribute KeyValue conforming to the
6189 // "host.cpu.model.id" semantic conventions. It represents the model identifier.
6190 // It provides more granular information about the CPU, distinguishing it from
6191 // other CPUs within the same family.
6192 func HostCPUModelID(val string) attribute.KeyValue {
6193 return HostCPUModelIDKey.String(val)
6194 }
6195
6196 // HostCPUModelName returns an attribute KeyValue conforming to the
6197 // "host.cpu.model.name" semantic conventions. It represents the model
6198 // designation of the processor.
6199 func HostCPUModelName(val string) attribute.KeyValue {
6200 return HostCPUModelNameKey.String(val)
6201 }
6202
6203 // HostCPUStepping returns an attribute KeyValue conforming to the
6204 // "host.cpu.stepping" semantic conventions. It represents the stepping or core
6205 // revisions.
6206 func HostCPUStepping(val string) attribute.KeyValue {
6207 return HostCPUSteppingKey.String(val)
6208 }
6209
6210 // HostCPUVendorID returns an attribute KeyValue conforming to the
6211 // "host.cpu.vendor.id" semantic conventions. It represents the processor
6212 // manufacturer identifier. A maximum 12-character string.
6213 func HostCPUVendorID(val string) attribute.KeyValue {
6214 return HostCPUVendorIDKey.String(val)
6215 }
6216
6217 // HostID returns an attribute KeyValue conforming to the "host.id" semantic
6218 // conventions. It represents the unique host ID. For Cloud, this must be the
6219 // instance_id assigned by the cloud provider. For non-containerized systems,
6220 // this should be the `machine-id`. See the table below for the sources to use to
6221 // determine the `machine-id` based on operating system.
6222 func HostID(val string) attribute.KeyValue {
6223 return HostIDKey.String(val)
6224 }
6225
6226 // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
6227 // semantic conventions. It represents the VM image ID or host OS image ID. For
6228 // Cloud, this value is from the provider.
6229 func HostImageID(val string) attribute.KeyValue {
6230 return HostImageIDKey.String(val)
6231 }
6232
6233 // HostImageName returns an attribute KeyValue conforming to the
6234 // "host.image.name" semantic conventions. It represents the name of the VM image
6235 // or OS install the host was instantiated from.
6236 func HostImageName(val string) attribute.KeyValue {
6237 return HostImageNameKey.String(val)
6238 }
6239
6240 // HostImageVersion returns an attribute KeyValue conforming to the
6241 // "host.image.version" semantic conventions. It represents the version string of
6242 // the VM image or host OS as defined in [Version Attributes].
6243 //
6244 // [Version Attributes]: /docs/resource/README.md#version-attributes
6245 func HostImageVersion(val string) attribute.KeyValue {
6246 return HostImageVersionKey.String(val)
6247 }
6248
6249 // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
6250 // conventions. It represents the available IP addresses of the host, excluding
6251 // loopback interfaces.
6252 func HostIP(val ...string) attribute.KeyValue {
6253 return HostIPKey.StringSlice(val)
6254 }
6255
6256 // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
6257 // conventions. It represents the available MAC addresses of the host, excluding
6258 // loopback interfaces.
6259 func HostMac(val ...string) attribute.KeyValue {
6260 return HostMacKey.StringSlice(val)
6261 }
6262
6263 // HostName returns an attribute KeyValue conforming to the "host.name" semantic
6264 // conventions. It represents the name of the host. On Unix systems, it may
6265 // contain what the hostname command returns, or the fully qualified hostname, or
6266 // another name specified by the user.
6267 func HostName(val string) attribute.KeyValue {
6268 return HostNameKey.String(val)
6269 }
6270
6271 // HostType returns an attribute KeyValue conforming to the "host.type" semantic
6272 // conventions. It represents the type of host. For Cloud, this must be the
6273 // machine type.
6274 func HostType(val string) attribute.KeyValue {
6275 return HostTypeKey.String(val)
6276 }
6277
6278 // Enum values for host.arch
6279 var (
6280 // AMD64
6281 // Stability: development
6282 HostArchAMD64 = HostArchKey.String("amd64")
6283 // ARM32
6284 // Stability: development
6285 HostArchARM32 = HostArchKey.String("arm32")
6286 // ARM64
6287 // Stability: development
6288 HostArchARM64 = HostArchKey.String("arm64")
6289 // Itanium
6290 // Stability: development
6291 HostArchIA64 = HostArchKey.String("ia64")
6292 // 32-bit PowerPC
6293 // Stability: development
6294 HostArchPPC32 = HostArchKey.String("ppc32")
6295 // 64-bit PowerPC
6296 // Stability: development
6297 HostArchPPC64 = HostArchKey.String("ppc64")
6298 // IBM z/Architecture
6299 // Stability: development
6300 HostArchS390x = HostArchKey.String("s390x")
6301 // 32-bit x86
6302 // Stability: development
6303 HostArchX86 = HostArchKey.String("x86")
6304 )
6305
6306 // Namespace: http
6307 const (
6308 // HTTPConnectionStateKey is the attribute Key conforming to the
6309 // "http.connection.state" semantic conventions. It represents the state of the
6310 // HTTP connection in the HTTP connection pool.
6311 //
6312 // Type: Enum
6313 // RequirementLevel: Recommended
6314 // Stability: Development
6315 //
6316 // Examples: "active", "idle"
6317 HTTPConnectionStateKey = attribute.Key("http.connection.state")
6318
6319 // HTTPRequestBodySizeKey is the attribute Key conforming to the
6320 // "http.request.body.size" semantic conventions. It represents the size of the
6321 // request payload body in bytes. This is the number of bytes transferred
6322 // excluding headers and is often, but not always, present as the
6323 // [Content-Length] header. For requests using transport encoding, this should
6324 // be the compressed size.
6325 //
6326 // Type: int
6327 // RequirementLevel: Recommended
6328 // Stability: Development
6329 //
6330 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6331 HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
6332
6333 // HTTPRequestMethodKey is the attribute Key conforming to the
6334 // "http.request.method" semantic conventions. It represents the HTTP request
6335 // method.
6336 //
6337 // Type: Enum
6338 // RequirementLevel: Recommended
6339 // Stability: Stable
6340 //
6341 // Examples: "GET", "POST", "HEAD"
6342 // Note: HTTP request method value SHOULD be "known" to the instrumentation.
6343 // By default, this convention defines "known" methods as the ones listed in
6344 // [RFC9110]
6345 // and the PATCH method defined in [RFC5789].
6346 //
6347 // If the HTTP request method is not known to instrumentation, it MUST set the
6348 // `http.request.method` attribute to `_OTHER`.
6349 //
6350 // If the HTTP instrumentation could end up converting valid HTTP request
6351 // methods to `_OTHER`, then it MUST provide a way to override
6352 // the list of known HTTP methods. If this override is done via environment
6353 // variable, then the environment variable MUST be named
6354 // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
6355 // case-sensitive known HTTP methods
6356 // (this list MUST be a full override of the default known method, it is not a
6357 // list of known methods in addition to the defaults).
6358 //
6359 // HTTP method names are case-sensitive and `http.request.method` attribute
6360 // value MUST match a known HTTP method name exactly.
6361 // Instrumentations for specific web frameworks that consider HTTP methods to be
6362 // case insensitive, SHOULD populate a canonical equivalent.
6363 // Tracing instrumentations that do so, MUST also set
6364 // `http.request.method_original` to the original value.
6365 //
6366 // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
6367 // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
6368 HTTPRequestMethodKey = attribute.Key("http.request.method")
6369
6370 // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
6371 // "http.request.method_original" semantic conventions. It represents the
6372 // original HTTP method sent by the client in the request line.
6373 //
6374 // Type: string
6375 // RequirementLevel: Recommended
6376 // Stability: Stable
6377 //
6378 // Examples: "GeT", "ACL", "foo"
6379 HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
6380
6381 // HTTPRequestResendCountKey is the attribute Key conforming to the
6382 // "http.request.resend_count" semantic conventions. It represents the ordinal
6383 // number of request resending attempt (for any reason, including redirects).
6384 //
6385 // Type: int
6386 // RequirementLevel: Recommended
6387 // Stability: Stable
6388 //
6389 // Note: The resend count SHOULD be updated each time an HTTP request gets
6390 // resent by the client, regardless of what was the cause of the resending (e.g.
6391 // redirection, authorization failure, 503 Server Unavailable, network issues,
6392 // or any other).
6393 HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
6394
6395 // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
6396 // semantic conventions. It represents the total size of the request in bytes.
6397 // This should be the total number of bytes sent over the wire, including the
6398 // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
6399 // body if any.
6400 //
6401 // Type: int
6402 // RequirementLevel: Recommended
6403 // Stability: Development
6404 HTTPRequestSizeKey = attribute.Key("http.request.size")
6405
6406 // HTTPResponseBodySizeKey is the attribute Key conforming to the
6407 // "http.response.body.size" semantic conventions. It represents the size of the
6408 // response payload body in bytes. This is the number of bytes transferred
6409 // excluding headers and is often, but not always, present as the
6410 // [Content-Length] header. For requests using transport encoding, this should
6411 // be the compressed size.
6412 //
6413 // Type: int
6414 // RequirementLevel: Recommended
6415 // Stability: Development
6416 //
6417 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6418 HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
6419
6420 // HTTPResponseSizeKey is the attribute Key conforming to the
6421 // "http.response.size" semantic conventions. It represents the total size of
6422 // the response in bytes. This should be the total number of bytes sent over the
6423 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
6424 // headers, and response body and trailers if any.
6425 //
6426 // Type: int
6427 // RequirementLevel: Recommended
6428 // Stability: Development
6429 HTTPResponseSizeKey = attribute.Key("http.response.size")
6430
6431 // HTTPResponseStatusCodeKey is the attribute Key conforming to the
6432 // "http.response.status_code" semantic conventions. It represents the
6433 // [HTTP response status code].
6434 //
6435 // Type: int
6436 // RequirementLevel: Recommended
6437 // Stability: Stable
6438 //
6439 // Examples: 200
6440 //
6441 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
6442 HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
6443
6444 // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
6445 // conventions. It represents the matched route, that is, the path template in
6446 // the format used by the respective server framework.
6447 //
6448 // Type: string
6449 // RequirementLevel: Recommended
6450 // Stability: Stable
6451 //
6452 // Examples: "/users/:userID?", "{controller}/{action}/{id?}"
6453 // Note: MUST NOT be populated when this is not supported by the HTTP server
6454 // framework as the route attribute should have low-cardinality and the URI path
6455 // can NOT substitute it.
6456 // SHOULD include the [application root] if there is one.
6457 //
6458 // [application root]: /docs/http/http-spans.md#http-server-definitions
6459 HTTPRouteKey = attribute.Key("http.route")
6460 )
6461
6462 // HTTPRequestBodySize returns an attribute KeyValue conforming to the
6463 // "http.request.body.size" semantic conventions. It represents the size of the
6464 // request payload body in bytes. This is the number of bytes transferred
6465 // excluding headers and is often, but not always, present as the
6466 // [Content-Length] header. For requests using transport encoding, this should be
6467 // the compressed size.
6468 //
6469 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6470 func HTTPRequestBodySize(val int) attribute.KeyValue {
6471 return HTTPRequestBodySizeKey.Int(val)
6472 }
6473
6474 // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
6475 // "http.request.method_original" semantic conventions. It represents the
6476 // original HTTP method sent by the client in the request line.
6477 func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
6478 return HTTPRequestMethodOriginalKey.String(val)
6479 }
6480
6481 // HTTPRequestResendCount returns an attribute KeyValue conforming to the
6482 // "http.request.resend_count" semantic conventions. It represents the ordinal
6483 // number of request resending attempt (for any reason, including redirects).
6484 func HTTPRequestResendCount(val int) attribute.KeyValue {
6485 return HTTPRequestResendCountKey.Int(val)
6486 }
6487
6488 // HTTPRequestSize returns an attribute KeyValue conforming to the
6489 // "http.request.size" semantic conventions. It represents the total size of the
6490 // request in bytes. This should be the total number of bytes sent over the wire,
6491 // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
6492 // and request body if any.
6493 func HTTPRequestSize(val int) attribute.KeyValue {
6494 return HTTPRequestSizeKey.Int(val)
6495 }
6496
6497 // HTTPResponseBodySize returns an attribute KeyValue conforming to the
6498 // "http.response.body.size" semantic conventions. It represents the size of the
6499 // response payload body in bytes. This is the number of bytes transferred
6500 // excluding headers and is often, but not always, present as the
6501 // [Content-Length] header. For requests using transport encoding, this should be
6502 // the compressed size.
6503 //
6504 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6505 func HTTPResponseBodySize(val int) attribute.KeyValue {
6506 return HTTPResponseBodySizeKey.Int(val)
6507 }
6508
6509 // HTTPResponseSize returns an attribute KeyValue conforming to the
6510 // "http.response.size" semantic conventions. It represents the total size of the
6511 // response in bytes. This should be the total number of bytes sent over the
6512 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
6513 // headers, and response body and trailers if any.
6514 func HTTPResponseSize(val int) attribute.KeyValue {
6515 return HTTPResponseSizeKey.Int(val)
6516 }
6517
6518 // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
6519 // "http.response.status_code" semantic conventions. It represents the
6520 // [HTTP response status code].
6521 //
6522 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
6523 func HTTPResponseStatusCode(val int) attribute.KeyValue {
6524 return HTTPResponseStatusCodeKey.Int(val)
6525 }
6526
6527 // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
6528 // semantic conventions. It represents the matched route, that is, the path
6529 // template in the format used by the respective server framework.
6530 func HTTPRoute(val string) attribute.KeyValue {
6531 return HTTPRouteKey.String(val)
6532 }
6533
6534 // Enum values for http.connection.state
6535 var (
6536 // active state.
6537 // Stability: development
6538 HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
6539 // idle state.
6540 // Stability: development
6541 HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
6542 )
6543
6544 // Enum values for http.request.method
6545 var (
6546 // CONNECT method.
6547 // Stability: stable
6548 HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
6549 // DELETE method.
6550 // Stability: stable
6551 HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
6552 // GET method.
6553 // Stability: stable
6554 HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
6555 // HEAD method.
6556 // Stability: stable
6557 HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
6558 // OPTIONS method.
6559 // Stability: stable
6560 HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
6561 // PATCH method.
6562 // Stability: stable
6563 HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
6564 // POST method.
6565 // Stability: stable
6566 HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
6567 // PUT method.
6568 // Stability: stable
6569 HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
6570 // TRACE method.
6571 // Stability: stable
6572 HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
6573 // Any HTTP method that the instrumentation has no prior knowledge of.
6574 // Stability: stable
6575 HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
6576 )
6577
6578 // Namespace: hw
6579 const (
6580 // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
6581 // It represents an identifier for the hardware component, unique within the
6582 // monitored host.
6583 //
6584 // Type: string
6585 // RequirementLevel: Recommended
6586 // Stability: Development
6587 //
6588 // Examples: "win32battery_battery_testsysa33_1"
6589 HwIDKey = attribute.Key("hw.id")
6590
6591 // HwNameKey is the attribute Key conforming to the "hw.name" semantic
6592 // conventions. It represents an easily-recognizable name for the hardware
6593 // component.
6594 //
6595 // Type: string
6596 // RequirementLevel: Recommended
6597 // Stability: Development
6598 //
6599 // Examples: "eth0"
6600 HwNameKey = attribute.Key("hw.name")
6601
6602 // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
6603 // conventions. It represents the unique identifier of the parent component
6604 // (typically the `hw.id` attribute of the enclosure, or disk controller).
6605 //
6606 // Type: string
6607 // RequirementLevel: Recommended
6608 // Stability: Development
6609 //
6610 // Examples: "dellStorage_perc_0"
6611 HwParentKey = attribute.Key("hw.parent")
6612
6613 // HwStateKey is the attribute Key conforming to the "hw.state" semantic
6614 // conventions. It represents the current state of the component.
6615 //
6616 // Type: Enum
6617 // RequirementLevel: Recommended
6618 // Stability: Development
6619 //
6620 // Examples:
6621 HwStateKey = attribute.Key("hw.state")
6622
6623 // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
6624 // conventions. It represents the type of the component.
6625 //
6626 // Type: Enum
6627 // RequirementLevel: Recommended
6628 // Stability: Development
6629 //
6630 // Examples:
6631 // Note: Describes the category of the hardware component for which `hw.state`
6632 // is being reported. For example, `hw.type=temperature` along with
6633 // `hw.state=degraded` would indicate that the temperature of the hardware
6634 // component has been reported as `degraded`.
6635 HwTypeKey = attribute.Key("hw.type")
6636 )
6637
6638 // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
6639 // conventions. It represents an identifier for the hardware component, unique
6640 // within the monitored host.
6641 func HwID(val string) attribute.KeyValue {
6642 return HwIDKey.String(val)
6643 }
6644
6645 // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
6646 // conventions. It represents an easily-recognizable name for the hardware
6647 // component.
6648 func HwName(val string) attribute.KeyValue {
6649 return HwNameKey.String(val)
6650 }
6651
6652 // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
6653 // conventions. It represents the unique identifier of the parent component
6654 // (typically the `hw.id` attribute of the enclosure, or disk controller).
6655 func HwParent(val string) attribute.KeyValue {
6656 return HwParentKey.String(val)
6657 }
6658
6659 // Enum values for hw.state
6660 var (
6661 // Ok
6662 // Stability: development
6663 HwStateOk = HwStateKey.String("ok")
6664 // Degraded
6665 // Stability: development
6666 HwStateDegraded = HwStateKey.String("degraded")
6667 // Failed
6668 // Stability: development
6669 HwStateFailed = HwStateKey.String("failed")
6670 )
6671
6672 // Enum values for hw.type
6673 var (
6674 // Battery
6675 // Stability: development
6676 HwTypeBattery = HwTypeKey.String("battery")
6677 // CPU
6678 // Stability: development
6679 HwTypeCPU = HwTypeKey.String("cpu")
6680 // Disk controller
6681 // Stability: development
6682 HwTypeDiskController = HwTypeKey.String("disk_controller")
6683 // Enclosure
6684 // Stability: development
6685 HwTypeEnclosure = HwTypeKey.String("enclosure")
6686 // Fan
6687 // Stability: development
6688 HwTypeFan = HwTypeKey.String("fan")
6689 // GPU
6690 // Stability: development
6691 HwTypeGpu = HwTypeKey.String("gpu")
6692 // Logical disk
6693 // Stability: development
6694 HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
6695 // Memory
6696 // Stability: development
6697 HwTypeMemory = HwTypeKey.String("memory")
6698 // Network
6699 // Stability: development
6700 HwTypeNetwork = HwTypeKey.String("network")
6701 // Physical disk
6702 // Stability: development
6703 HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
6704 // Power supply
6705 // Stability: development
6706 HwTypePowerSupply = HwTypeKey.String("power_supply")
6707 // Tape drive
6708 // Stability: development
6709 HwTypeTapeDrive = HwTypeKey.String("tape_drive")
6710 // Temperature
6711 // Stability: development
6712 HwTypeTemperature = HwTypeKey.String("temperature")
6713 // Voltage
6714 // Stability: development
6715 HwTypeVoltage = HwTypeKey.String("voltage")
6716 )
6717
6718 // Namespace: ios
6719 const (
6720 // IosAppStateKey is the attribute Key conforming to the "ios.app.state"
6721 // semantic conventions. It represents the this attribute represents the state
6722 // of the application.
6723 //
6724 // Type: Enum
6725 // RequirementLevel: Recommended
6726 // Stability: Development
6727 //
6728 // Examples:
6729 // Note: The iOS lifecycle states are defined in the
6730 // [UIApplicationDelegate documentation], and from which the `OS terminology`
6731 // column values are derived.
6732 //
6733 // [UIApplicationDelegate documentation]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate
6734 IosAppStateKey = attribute.Key("ios.app.state")
6735 )
6736
6737 // Enum values for ios.app.state
6738 var (
6739 // The app has become `active`. Associated with UIKit notification
6740 // `applicationDidBecomeActive`.
6741 //
6742 // Stability: development
6743 IosAppStateActive = IosAppStateKey.String("active")
6744 // The app is now `inactive`. Associated with UIKit notification
6745 // `applicationWillResignActive`.
6746 //
6747 // Stability: development
6748 IosAppStateInactive = IosAppStateKey.String("inactive")
6749 // The app is now in the background. This value is associated with UIKit
6750 // notification `applicationDidEnterBackground`.
6751 //
6752 // Stability: development
6753 IosAppStateBackground = IosAppStateKey.String("background")
6754 // The app is now in the foreground. This value is associated with UIKit
6755 // notification `applicationWillEnterForeground`.
6756 //
6757 // Stability: development
6758 IosAppStateForeground = IosAppStateKey.String("foreground")
6759 // The app is about to terminate. Associated with UIKit notification
6760 // `applicationWillTerminate`.
6761 //
6762 // Stability: development
6763 IosAppStateTerminate = IosAppStateKey.String("terminate")
6764 )
6765
6766 // Namespace: k8s
6767 const (
6768 // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
6769 // semantic conventions. It represents the name of the cluster.
6770 //
6771 // Type: string
6772 // RequirementLevel: Recommended
6773 // Stability: Development
6774 //
6775 // Examples: "opentelemetry-cluster"
6776 K8SClusterNameKey = attribute.Key("k8s.cluster.name")
6777
6778 // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
6779 // semantic conventions. It represents a pseudo-ID for the cluster, set to the
6780 // UID of the `kube-system` namespace.
6781 //
6782 // Type: string
6783 // RequirementLevel: Recommended
6784 // Stability: Development
6785 //
6786 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
6787 // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
6788 // added, we will recommend collecting the `k8s.cluster.uid` through the
6789 // official APIs. In the meantime, we are able to use the `uid` of the
6790 // `kube-system` namespace as a proxy for cluster ID. Read on for the
6791 // rationale.
6792 //
6793 // Every object created in a K8s cluster is assigned a distinct UID. The
6794 // `kube-system` namespace is used by Kubernetes itself and will exist
6795 // for the lifetime of the cluster. Using the `uid` of the `kube-system`
6796 // namespace is a reasonable proxy for the K8s ClusterID as it will only
6797 // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
6798 // UUIDs as standardized by
6799 // [ISO/IEC 9834-8 and ITU-T X.667].
6800 // Which states:
6801 //
6802 // > If generated according to one of the mechanisms defined in Rec.
6803 // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
6804 // > different from all other UUIDs generated before 3603 A.D., or is
6805 // > extremely likely to be different (depending on the mechanism chosen).
6806 //
6807 // Therefore, UIDs between clusters should be extremely unlikely to
6808 // conflict.
6809 //
6810 // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
6811 K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
6812
6813 // K8SContainerNameKey is the attribute Key conforming to the
6814 // "k8s.container.name" semantic conventions. It represents the name of the
6815 // Container from Pod specification, must be unique within a Pod. Container
6816 // runtime usually uses different globally unique name (`container.name`).
6817 //
6818 // Type: string
6819 // RequirementLevel: Recommended
6820 // Stability: Development
6821 //
6822 // Examples: "redis"
6823 K8SContainerNameKey = attribute.Key("k8s.container.name")
6824
6825 // K8SContainerRestartCountKey is the attribute Key conforming to the
6826 // "k8s.container.restart_count" semantic conventions. It represents the number
6827 // of times the container was restarted. This attribute can be used to identify
6828 // a particular container (running or stopped) within a container spec.
6829 //
6830 // Type: int
6831 // RequirementLevel: Recommended
6832 // Stability: Development
6833 //
6834 // Examples:
6835 K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
6836
6837 // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
6838 // the "k8s.container.status.last_terminated_reason" semantic conventions. It
6839 // represents the last terminated reason of the Container.
6840 //
6841 // Type: string
6842 // RequirementLevel: Recommended
6843 // Stability: Development
6844 //
6845 // Examples: "Evicted", "Error"
6846 K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
6847
6848 // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
6849 // semantic conventions. It represents the name of the CronJob.
6850 //
6851 // Type: string
6852 // RequirementLevel: Recommended
6853 // Stability: Development
6854 //
6855 // Examples: "opentelemetry"
6856 K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
6857
6858 // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
6859 // semantic conventions. It represents the UID of the CronJob.
6860 //
6861 // Type: string
6862 // RequirementLevel: Recommended
6863 // Stability: Development
6864 //
6865 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6866 K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
6867
6868 // K8SDaemonSetNameKey is the attribute Key conforming to the
6869 // "k8s.daemonset.name" semantic conventions. It represents the name of the
6870 // DaemonSet.
6871 //
6872 // Type: string
6873 // RequirementLevel: Recommended
6874 // Stability: Development
6875 //
6876 // Examples: "opentelemetry"
6877 K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
6878
6879 // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
6880 // semantic conventions. It represents the UID of the DaemonSet.
6881 //
6882 // Type: string
6883 // RequirementLevel: Recommended
6884 // Stability: Development
6885 //
6886 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6887 K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
6888
6889 // K8SDeploymentNameKey is the attribute Key conforming to the
6890 // "k8s.deployment.name" semantic conventions. It represents the name of the
6891 // Deployment.
6892 //
6893 // Type: string
6894 // RequirementLevel: Recommended
6895 // Stability: Development
6896 //
6897 // Examples: "opentelemetry"
6898 K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
6899
6900 // K8SDeploymentUIDKey is the attribute Key conforming to the
6901 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
6902 // Deployment.
6903 //
6904 // Type: string
6905 // RequirementLevel: Recommended
6906 // Stability: Development
6907 //
6908 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6909 K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
6910
6911 // K8SHpaNameKey is the attribute Key conforming to the "k8s.hpa.name" semantic
6912 // conventions. It represents the name of the horizontal pod autoscaler.
6913 //
6914 // Type: string
6915 // RequirementLevel: Recommended
6916 // Stability: Development
6917 //
6918 // Examples: "opentelemetry"
6919 K8SHpaNameKey = attribute.Key("k8s.hpa.name")
6920
6921 // K8SHpaUIDKey is the attribute Key conforming to the "k8s.hpa.uid" semantic
6922 // conventions. It represents the UID of the horizontal pod autoscaler.
6923 //
6924 // Type: string
6925 // RequirementLevel: Recommended
6926 // Stability: Development
6927 //
6928 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6929 K8SHpaUIDKey = attribute.Key("k8s.hpa.uid")
6930
6931 // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
6932 // conventions. It represents the name of the Job.
6933 //
6934 // Type: string
6935 // RequirementLevel: Recommended
6936 // Stability: Development
6937 //
6938 // Examples: "opentelemetry"
6939 K8SJobNameKey = attribute.Key("k8s.job.name")
6940
6941 // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
6942 // conventions. It represents the UID of the Job.
6943 //
6944 // Type: string
6945 // RequirementLevel: Recommended
6946 // Stability: Development
6947 //
6948 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
6949 K8SJobUIDKey = attribute.Key("k8s.job.uid")
6950
6951 // K8SNamespaceNameKey is the attribute Key conforming to the
6952 // "k8s.namespace.name" semantic conventions. It represents the name of the
6953 // namespace that the pod is running in.
6954 //
6955 // Type: string
6956 // RequirementLevel: Recommended
6957 // Stability: Development
6958 //
6959 // Examples: "default"
6960 K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
6961
6962 // K8SNamespacePhaseKey is the attribute Key conforming to the
6963 // "k8s.namespace.phase" semantic conventions. It represents the phase of the
6964 // K8s namespace.
6965 //
6966 // Type: Enum
6967 // RequirementLevel: Recommended
6968 // Stability: Development
6969 //
6970 // Examples: "active", "terminating"
6971 // Note: This attribute aligns with the `phase` field of the
6972 // [K8s NamespaceStatus]
6973 //
6974 // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core
6975 K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase")
6976
6977 // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
6978 // semantic conventions. It represents the name of the Node.
6979 //
6980 // Type: string
6981 // RequirementLevel: Recommended
6982 // Stability: Development
6983 //
6984 // Examples: "node-1"
6985 K8SNodeNameKey = attribute.Key("k8s.node.name")
6986
6987 // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
6988 // conventions. It represents the UID of the Node.
6989 //
6990 // Type: string
6991 // RequirementLevel: Recommended
6992 // Stability: Development
6993 //
6994 // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
6995 K8SNodeUIDKey = attribute.Key("k8s.node.uid")
6996
6997 // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
6998 // conventions. It represents the name of the Pod.
6999 //
7000 // Type: string
7001 // RequirementLevel: Recommended
7002 // Stability: Development
7003 //
7004 // Examples: "opentelemetry-pod-autoconf"
7005 K8SPodNameKey = attribute.Key("k8s.pod.name")
7006
7007 // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
7008 // conventions. It represents the UID of the Pod.
7009 //
7010 // Type: string
7011 // RequirementLevel: Recommended
7012 // Stability: Development
7013 //
7014 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7015 K8SPodUIDKey = attribute.Key("k8s.pod.uid")
7016
7017 // K8SReplicaSetNameKey is the attribute Key conforming to the
7018 // "k8s.replicaset.name" semantic conventions. It represents the name of the
7019 // ReplicaSet.
7020 //
7021 // Type: string
7022 // RequirementLevel: Recommended
7023 // Stability: Development
7024 //
7025 // Examples: "opentelemetry"
7026 K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
7027
7028 // K8SReplicaSetUIDKey is the attribute Key conforming to the
7029 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
7030 // ReplicaSet.
7031 //
7032 // Type: string
7033 // RequirementLevel: Recommended
7034 // Stability: Development
7035 //
7036 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7037 K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
7038
7039 // K8SReplicationControllerNameKey is the attribute Key conforming to the
7040 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
7041 // of the replication controller.
7042 //
7043 // Type: string
7044 // RequirementLevel: Recommended
7045 // Stability: Development
7046 //
7047 // Examples: "opentelemetry"
7048 K8SReplicationControllerNameKey = attribute.Key("k8s.replicationcontroller.name")
7049
7050 // K8SReplicationControllerUIDKey is the attribute Key conforming to the
7051 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID
7052 // of the replication controller.
7053 //
7054 // Type: string
7055 // RequirementLevel: Recommended
7056 // Stability: Development
7057 //
7058 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7059 K8SReplicationControllerUIDKey = attribute.Key("k8s.replicationcontroller.uid")
7060
7061 // K8SResourceQuotaNameKey is the attribute Key conforming to the
7062 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
7063 // resource quota.
7064 //
7065 // Type: string
7066 // RequirementLevel: Recommended
7067 // Stability: Development
7068 //
7069 // Examples: "opentelemetry"
7070 K8SResourceQuotaNameKey = attribute.Key("k8s.resourcequota.name")
7071
7072 // K8SResourceQuotaUIDKey is the attribute Key conforming to the
7073 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
7074 // resource quota.
7075 //
7076 // Type: string
7077 // RequirementLevel: Recommended
7078 // Stability: Development
7079 //
7080 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7081 K8SResourceQuotaUIDKey = attribute.Key("k8s.resourcequota.uid")
7082
7083 // K8SStatefulSetNameKey is the attribute Key conforming to the
7084 // "k8s.statefulset.name" semantic conventions. It represents the name of the
7085 // StatefulSet.
7086 //
7087 // Type: string
7088 // RequirementLevel: Recommended
7089 // Stability: Development
7090 //
7091 // Examples: "opentelemetry"
7092 K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
7093
7094 // K8SStatefulSetUIDKey is the attribute Key conforming to the
7095 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
7096 // StatefulSet.
7097 //
7098 // Type: string
7099 // RequirementLevel: Recommended
7100 // Stability: Development
7101 //
7102 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7103 K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
7104
7105 // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
7106 // semantic conventions. It represents the name of the K8s volume.
7107 //
7108 // Type: string
7109 // RequirementLevel: Recommended
7110 // Stability: Development
7111 //
7112 // Examples: "volume0"
7113 K8SVolumeNameKey = attribute.Key("k8s.volume.name")
7114
7115 // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
7116 // semantic conventions. It represents the type of the K8s volume.
7117 //
7118 // Type: Enum
7119 // RequirementLevel: Recommended
7120 // Stability: Development
7121 //
7122 // Examples: "emptyDir", "persistentVolumeClaim"
7123 K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
7124 )
7125
7126 // K8SClusterName returns an attribute KeyValue conforming to the
7127 // "k8s.cluster.name" semantic conventions. It represents the name of the
7128 // cluster.
7129 func K8SClusterName(val string) attribute.KeyValue {
7130 return K8SClusterNameKey.String(val)
7131 }
7132
7133 // K8SClusterUID returns an attribute KeyValue conforming to the
7134 // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
7135 // cluster, set to the UID of the `kube-system` namespace.
7136 func K8SClusterUID(val string) attribute.KeyValue {
7137 return K8SClusterUIDKey.String(val)
7138 }
7139
7140 // K8SContainerName returns an attribute KeyValue conforming to the
7141 // "k8s.container.name" semantic conventions. It represents the name of the
7142 // Container from Pod specification, must be unique within a Pod. Container
7143 // runtime usually uses different globally unique name (`container.name`).
7144 func K8SContainerName(val string) attribute.KeyValue {
7145 return K8SContainerNameKey.String(val)
7146 }
7147
7148 // K8SContainerRestartCount returns an attribute KeyValue conforming to the
7149 // "k8s.container.restart_count" semantic conventions. It represents the number
7150 // of times the container was restarted. This attribute can be used to identify a
7151 // particular container (running or stopped) within a container spec.
7152 func K8SContainerRestartCount(val int) attribute.KeyValue {
7153 return K8SContainerRestartCountKey.Int(val)
7154 }
7155
7156 // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
7157 // conforming to the "k8s.container.status.last_terminated_reason" semantic
7158 // conventions. It represents the last terminated reason of the Container.
7159 func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
7160 return K8SContainerStatusLastTerminatedReasonKey.String(val)
7161 }
7162
7163 // K8SCronJobName returns an attribute KeyValue conforming to the
7164 // "k8s.cronjob.name" semantic conventions. It represents the name of the
7165 // CronJob.
7166 func K8SCronJobName(val string) attribute.KeyValue {
7167 return K8SCronJobNameKey.String(val)
7168 }
7169
7170 // K8SCronJobUID returns an attribute KeyValue conforming to the
7171 // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
7172 func K8SCronJobUID(val string) attribute.KeyValue {
7173 return K8SCronJobUIDKey.String(val)
7174 }
7175
7176 // K8SDaemonSetName returns an attribute KeyValue conforming to the
7177 // "k8s.daemonset.name" semantic conventions. It represents the name of the
7178 // DaemonSet.
7179 func K8SDaemonSetName(val string) attribute.KeyValue {
7180 return K8SDaemonSetNameKey.String(val)
7181 }
7182
7183 // K8SDaemonSetUID returns an attribute KeyValue conforming to the
7184 // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
7185 // DaemonSet.
7186 func K8SDaemonSetUID(val string) attribute.KeyValue {
7187 return K8SDaemonSetUIDKey.String(val)
7188 }
7189
7190 // K8SDeploymentName returns an attribute KeyValue conforming to the
7191 // "k8s.deployment.name" semantic conventions. It represents the name of the
7192 // Deployment.
7193 func K8SDeploymentName(val string) attribute.KeyValue {
7194 return K8SDeploymentNameKey.String(val)
7195 }
7196
7197 // K8SDeploymentUID returns an attribute KeyValue conforming to the
7198 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
7199 // Deployment.
7200 func K8SDeploymentUID(val string) attribute.KeyValue {
7201 return K8SDeploymentUIDKey.String(val)
7202 }
7203
7204 // K8SHpaName returns an attribute KeyValue conforming to the "k8s.hpa.name"
7205 // semantic conventions. It represents the name of the horizontal pod autoscaler.
7206 func K8SHpaName(val string) attribute.KeyValue {
7207 return K8SHpaNameKey.String(val)
7208 }
7209
7210 // K8SHpaUID returns an attribute KeyValue conforming to the "k8s.hpa.uid"
7211 // semantic conventions. It represents the UID of the horizontal pod autoscaler.
7212 func K8SHpaUID(val string) attribute.KeyValue {
7213 return K8SHpaUIDKey.String(val)
7214 }
7215
7216 // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
7217 // semantic conventions. It represents the name of the Job.
7218 func K8SJobName(val string) attribute.KeyValue {
7219 return K8SJobNameKey.String(val)
7220 }
7221
7222 // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
7223 // semantic conventions. It represents the UID of the Job.
7224 func K8SJobUID(val string) attribute.KeyValue {
7225 return K8SJobUIDKey.String(val)
7226 }
7227
7228 // K8SNamespaceName returns an attribute KeyValue conforming to the
7229 // "k8s.namespace.name" semantic conventions. It represents the name of the
7230 // namespace that the pod is running in.
7231 func K8SNamespaceName(val string) attribute.KeyValue {
7232 return K8SNamespaceNameKey.String(val)
7233 }
7234
7235 // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
7236 // semantic conventions. It represents the name of the Node.
7237 func K8SNodeName(val string) attribute.KeyValue {
7238 return K8SNodeNameKey.String(val)
7239 }
7240
7241 // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
7242 // semantic conventions. It represents the UID of the Node.
7243 func K8SNodeUID(val string) attribute.KeyValue {
7244 return K8SNodeUIDKey.String(val)
7245 }
7246
7247 // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
7248 // semantic conventions. It represents the name of the Pod.
7249 func K8SPodName(val string) attribute.KeyValue {
7250 return K8SPodNameKey.String(val)
7251 }
7252
7253 // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
7254 // semantic conventions. It represents the UID of the Pod.
7255 func K8SPodUID(val string) attribute.KeyValue {
7256 return K8SPodUIDKey.String(val)
7257 }
7258
7259 // K8SReplicaSetName returns an attribute KeyValue conforming to the
7260 // "k8s.replicaset.name" semantic conventions. It represents the name of the
7261 // ReplicaSet.
7262 func K8SReplicaSetName(val string) attribute.KeyValue {
7263 return K8SReplicaSetNameKey.String(val)
7264 }
7265
7266 // K8SReplicaSetUID returns an attribute KeyValue conforming to the
7267 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
7268 // ReplicaSet.
7269 func K8SReplicaSetUID(val string) attribute.KeyValue {
7270 return K8SReplicaSetUIDKey.String(val)
7271 }
7272
7273 // K8SReplicationControllerName returns an attribute KeyValue conforming to the
7274 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
7275 // of the replication controller.
7276 func K8SReplicationControllerName(val string) attribute.KeyValue {
7277 return K8SReplicationControllerNameKey.String(val)
7278 }
7279
7280 // K8SReplicationControllerUID returns an attribute KeyValue conforming to the
7281 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID of
7282 // the replication controller.
7283 func K8SReplicationControllerUID(val string) attribute.KeyValue {
7284 return K8SReplicationControllerUIDKey.String(val)
7285 }
7286
7287 // K8SResourceQuotaName returns an attribute KeyValue conforming to the
7288 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
7289 // resource quota.
7290 func K8SResourceQuotaName(val string) attribute.KeyValue {
7291 return K8SResourceQuotaNameKey.String(val)
7292 }
7293
7294 // K8SResourceQuotaUID returns an attribute KeyValue conforming to the
7295 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
7296 // resource quota.
7297 func K8SResourceQuotaUID(val string) attribute.KeyValue {
7298 return K8SResourceQuotaUIDKey.String(val)
7299 }
7300
7301 // K8SStatefulSetName returns an attribute KeyValue conforming to the
7302 // "k8s.statefulset.name" semantic conventions. It represents the name of the
7303 // StatefulSet.
7304 func K8SStatefulSetName(val string) attribute.KeyValue {
7305 return K8SStatefulSetNameKey.String(val)
7306 }
7307
7308 // K8SStatefulSetUID returns an attribute KeyValue conforming to the
7309 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
7310 // StatefulSet.
7311 func K8SStatefulSetUID(val string) attribute.KeyValue {
7312 return K8SStatefulSetUIDKey.String(val)
7313 }
7314
7315 // K8SVolumeName returns an attribute KeyValue conforming to the
7316 // "k8s.volume.name" semantic conventions. It represents the name of the K8s
7317 // volume.
7318 func K8SVolumeName(val string) attribute.KeyValue {
7319 return K8SVolumeNameKey.String(val)
7320 }
7321
7322 // Enum values for k8s.namespace.phase
7323 var (
7324 // Active namespace phase as described by [K8s API]
7325 // Stability: development
7326 //
7327 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
7328 K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active")
7329 // Terminating namespace phase as described by [K8s API]
7330 // Stability: development
7331 //
7332 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
7333 K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating")
7334 )
7335
7336 // Enum values for k8s.volume.type
7337 var (
7338 // A [persistentVolumeClaim] volume
7339 // Stability: development
7340 //
7341 // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
7342 K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
7343 // A [configMap] volume
7344 // Stability: development
7345 //
7346 // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
7347 K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
7348 // A [downwardAPI] volume
7349 // Stability: development
7350 //
7351 // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
7352 K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
7353 // An [emptyDir] volume
7354 // Stability: development
7355 //
7356 // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
7357 K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
7358 // A [secret] volume
7359 // Stability: development
7360 //
7361 // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
7362 K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
7363 // A [local] volume
7364 // Stability: development
7365 //
7366 // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local
7367 K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
7368 )
7369
7370 // Namespace: linux
7371 const (
7372 // LinuxMemorySlabStateKey is the attribute Key conforming to the
7373 // "linux.memory.slab.state" semantic conventions. It represents the Linux Slab
7374 // memory state.
7375 //
7376 // Type: Enum
7377 // RequirementLevel: Recommended
7378 // Stability: Development
7379 //
7380 // Examples: "reclaimable", "unreclaimable"
7381 LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state")
7382 )
7383
7384 // Enum values for linux.memory.slab.state
7385 var (
7386 // reclaimable
7387 // Stability: development
7388 LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable")
7389 // unreclaimable
7390 // Stability: development
7391 LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable")
7392 )
7393
7394 // Namespace: log
7395 const (
7396 // LogFileNameKey is the attribute Key conforming to the "log.file.name"
7397 // semantic conventions. It represents the basename of the file.
7398 //
7399 // Type: string
7400 // RequirementLevel: Recommended
7401 // Stability: Development
7402 //
7403 // Examples: "audit.log"
7404 LogFileNameKey = attribute.Key("log.file.name")
7405
7406 // LogFileNameResolvedKey is the attribute Key conforming to the
7407 // "log.file.name_resolved" semantic conventions. It represents the basename of
7408 // the file, with symlinks resolved.
7409 //
7410 // Type: string
7411 // RequirementLevel: Recommended
7412 // Stability: Development
7413 //
7414 // Examples: "uuid.log"
7415 LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
7416
7417 // LogFilePathKey is the attribute Key conforming to the "log.file.path"
7418 // semantic conventions. It represents the full path to the file.
7419 //
7420 // Type: string
7421 // RequirementLevel: Recommended
7422 // Stability: Development
7423 //
7424 // Examples: "/var/log/mysql/audit.log"
7425 LogFilePathKey = attribute.Key("log.file.path")
7426
7427 // LogFilePathResolvedKey is the attribute Key conforming to the
7428 // "log.file.path_resolved" semantic conventions. It represents the full path to
7429 // the file, with symlinks resolved.
7430 //
7431 // Type: string
7432 // RequirementLevel: Recommended
7433 // Stability: Development
7434 //
7435 // Examples: "/var/lib/docker/uuid.log"
7436 LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
7437
7438 // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
7439 // conventions. It represents the stream associated with the log. See below for
7440 // a list of well-known values.
7441 //
7442 // Type: Enum
7443 // RequirementLevel: Recommended
7444 // Stability: Development
7445 //
7446 // Examples:
7447 LogIostreamKey = attribute.Key("log.iostream")
7448
7449 // LogRecordOriginalKey is the attribute Key conforming to the
7450 // "log.record.original" semantic conventions. It represents the complete
7451 // original Log Record.
7452 //
7453 // Type: string
7454 // RequirementLevel: Recommended
7455 // Stability: Development
7456 //
7457 // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
7458 // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
7459 // Note: This value MAY be added when processing a Log Record which was
7460 // originally transmitted as a string or equivalent data type AND the Body field
7461 // of the Log Record does not contain the same value. (e.g. a syslog or a log
7462 // record read from a file.)
7463 LogRecordOriginalKey = attribute.Key("log.record.original")
7464
7465 // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
7466 // semantic conventions. It represents a unique identifier for the Log Record.
7467 //
7468 // Type: string
7469 // RequirementLevel: Recommended
7470 // Stability: Development
7471 //
7472 // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
7473 // Note: If an id is provided, other log records with the same id will be
7474 // considered duplicates and can be removed safely. This means, that two
7475 // distinguishable log records MUST have different values.
7476 // The id MAY be an
7477 // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
7478 // identifiers (e.g. UUID) may be used as needed.
7479 //
7480 // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
7481 LogRecordUIDKey = attribute.Key("log.record.uid")
7482 )
7483
7484 // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
7485 // semantic conventions. It represents the basename of the file.
7486 func LogFileName(val string) attribute.KeyValue {
7487 return LogFileNameKey.String(val)
7488 }
7489
7490 // LogFileNameResolved returns an attribute KeyValue conforming to the
7491 // "log.file.name_resolved" semantic conventions. It represents the basename of
7492 // the file, with symlinks resolved.
7493 func LogFileNameResolved(val string) attribute.KeyValue {
7494 return LogFileNameResolvedKey.String(val)
7495 }
7496
7497 // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
7498 // semantic conventions. It represents the full path to the file.
7499 func LogFilePath(val string) attribute.KeyValue {
7500 return LogFilePathKey.String(val)
7501 }
7502
7503 // LogFilePathResolved returns an attribute KeyValue conforming to the
7504 // "log.file.path_resolved" semantic conventions. It represents the full path to
7505 // the file, with symlinks resolved.
7506 func LogFilePathResolved(val string) attribute.KeyValue {
7507 return LogFilePathResolvedKey.String(val)
7508 }
7509
7510 // LogRecordOriginal returns an attribute KeyValue conforming to the
7511 // "log.record.original" semantic conventions. It represents the complete
7512 // original Log Record.
7513 func LogRecordOriginal(val string) attribute.KeyValue {
7514 return LogRecordOriginalKey.String(val)
7515 }
7516
7517 // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
7518 // semantic conventions. It represents a unique identifier for the Log Record.
7519 func LogRecordUID(val string) attribute.KeyValue {
7520 return LogRecordUIDKey.String(val)
7521 }
7522
7523 // Enum values for log.iostream
7524 var (
7525 // Logs from stdout stream
7526 // Stability: development
7527 LogIostreamStdout = LogIostreamKey.String("stdout")
7528 // Events from stderr stream
7529 // Stability: development
7530 LogIostreamStderr = LogIostreamKey.String("stderr")
7531 )
7532
7533 // Namespace: messaging
7534 const (
7535 // MessagingBatchMessageCountKey is the attribute Key conforming to the
7536 // "messaging.batch.message_count" semantic conventions. It represents the
7537 // number of messages sent, received, or processed in the scope of the batching
7538 // operation.
7539 //
7540 // Type: int
7541 // RequirementLevel: Recommended
7542 // Stability: Development
7543 //
7544 // Examples: 0, 1, 2
7545 // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
7546 // spans that operate with a single message. When a messaging client library
7547 // supports both batch and single-message API for the same operation,
7548 // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
7549 // and SHOULD NOT use it for single-message APIs.
7550 MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
7551
7552 // MessagingClientIDKey is the attribute Key conforming to the
7553 // "messaging.client.id" semantic conventions. It represents a unique identifier
7554 // for the client that consumes or produces a message.
7555 //
7556 // Type: string
7557 // RequirementLevel: Recommended
7558 // Stability: Development
7559 //
7560 // Examples: "client-5", "myhost@8742@s8083jm"
7561 MessagingClientIDKey = attribute.Key("messaging.client.id")
7562
7563 // MessagingConsumerGroupNameKey is the attribute Key conforming to the
7564 // "messaging.consumer.group.name" semantic conventions. It represents the name
7565 // of the consumer group with which a consumer is associated.
7566 //
7567 // Type: string
7568 // RequirementLevel: Recommended
7569 // Stability: Development
7570 //
7571 // Examples: "my-group", "indexer"
7572 // Note: Semantic conventions for individual messaging systems SHOULD document
7573 // whether `messaging.consumer.group.name` is applicable and what it means in
7574 // the context of that system.
7575 MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
7576
7577 // MessagingDestinationAnonymousKey is the attribute Key conforming to the
7578 // "messaging.destination.anonymous" semantic conventions. It represents a
7579 // boolean that is true if the message destination is anonymous (could be
7580 // unnamed or have auto-generated name).
7581 //
7582 // Type: boolean
7583 // RequirementLevel: Recommended
7584 // Stability: Development
7585 //
7586 // Examples:
7587 MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
7588
7589 // MessagingDestinationNameKey is the attribute Key conforming to the
7590 // "messaging.destination.name" semantic conventions. It represents the message
7591 // destination name.
7592 //
7593 // Type: string
7594 // RequirementLevel: Recommended
7595 // Stability: Development
7596 //
7597 // Examples: "MyQueue", "MyTopic"
7598 // Note: Destination name SHOULD uniquely identify a specific queue, topic or
7599 // other entity within the broker. If
7600 // the broker doesn't have such notion, the destination name SHOULD uniquely
7601 // identify the broker.
7602 MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
7603
7604 // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
7605 // "messaging.destination.partition.id" semantic conventions. It represents the
7606 // identifier of the partition messages are sent to or received from, unique
7607 // within the `messaging.destination.name`.
7608 //
7609 // Type: string
7610 // RequirementLevel: Recommended
7611 // Stability: Development
7612 //
7613 // Examples: 1
7614 MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
7615
7616 // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
7617 // the "messaging.destination.subscription.name" semantic conventions. It
7618 // represents the name of the destination subscription from which a message is
7619 // consumed.
7620 //
7621 // Type: string
7622 // RequirementLevel: Recommended
7623 // Stability: Development
7624 //
7625 // Examples: "subscription-a"
7626 // Note: Semantic conventions for individual messaging systems SHOULD document
7627 // whether `messaging.destination.subscription.name` is applicable and what it
7628 // means in the context of that system.
7629 MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
7630
7631 // MessagingDestinationTemplateKey is the attribute Key conforming to the
7632 // "messaging.destination.template" semantic conventions. It represents the low
7633 // cardinality representation of the messaging destination name.
7634 //
7635 // Type: string
7636 // RequirementLevel: Recommended
7637 // Stability: Development
7638 //
7639 // Examples: "/customers/{customerId}"
7640 // Note: Destination names could be constructed from templates. An example would
7641 // be a destination name involving a user name or product id. Although the
7642 // destination name in this case is of high cardinality, the underlying template
7643 // is of low cardinality and can be effectively used for grouping and
7644 // aggregation.
7645 MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
7646
7647 // MessagingDestinationTemporaryKey is the attribute Key conforming to the
7648 // "messaging.destination.temporary" semantic conventions. It represents a
7649 // boolean that is true if the message destination is temporary and might not
7650 // exist anymore after messages are processed.
7651 //
7652 // Type: boolean
7653 // RequirementLevel: Recommended
7654 // Stability: Development
7655 //
7656 // Examples:
7657 MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
7658
7659 // MessagingEventhubsMessageEnqueuedTimeKey is the attribute Key conforming to
7660 // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
7661 // represents the UTC epoch seconds at which the message has been accepted and
7662 // stored in the entity.
7663 //
7664 // Type: int
7665 // RequirementLevel: Recommended
7666 // Stability: Development
7667 MessagingEventhubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
7668
7669 // MessagingGCPPubsubMessageAckDeadlineKey is the attribute Key conforming to
7670 // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
7671 // represents the ack deadline in seconds set for the modify ack deadline
7672 // request.
7673 //
7674 // Type: int
7675 // RequirementLevel: Recommended
7676 // Stability: Development
7677 MessagingGCPPubsubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
7678
7679 // MessagingGCPPubsubMessageAckIDKey is the attribute Key conforming to the
7680 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
7681 // ack id for a given message.
7682 //
7683 // Type: string
7684 // RequirementLevel: Recommended
7685 // Stability: Development
7686 //
7687 // Examples: ack_id
7688 MessagingGCPPubsubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
7689
7690 // MessagingGCPPubsubMessageDeliveryAttemptKey is the attribute Key conforming
7691 // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
7692 // It represents the delivery attempt for a given message.
7693 //
7694 // Type: int
7695 // RequirementLevel: Recommended
7696 // Stability: Development
7697 MessagingGCPPubsubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
7698
7699 // MessagingGCPPubsubMessageOrderingKeyKey is the attribute Key conforming to
7700 // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
7701 // represents the ordering key for a given message. If the attribute is not
7702 // present, the message does not have an ordering key.
7703 //
7704 // Type: string
7705 // RequirementLevel: Recommended
7706 // Stability: Development
7707 //
7708 // Examples: ordering_key
7709 MessagingGCPPubsubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
7710
7711 // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
7712 // "messaging.kafka.message.key" semantic conventions. It represents the message
7713 // keys in Kafka are used for grouping alike messages to ensure they're
7714 // processed on the same partition. They differ from `messaging.message.id` in
7715 // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
7716 //
7717 // Type: string
7718 // RequirementLevel: Recommended
7719 // Stability: Development
7720 //
7721 // Examples: myKey
7722 // Note: If the key type is not string, it's string representation has to be
7723 // supplied for the attribute. If the key has no unambiguous, canonical string
7724 // form, don't include its value.
7725 MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
7726
7727 // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
7728 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
7729 // boolean that is true if the message is a tombstone.
7730 //
7731 // Type: boolean
7732 // RequirementLevel: Recommended
7733 // Stability: Development
7734 //
7735 // Examples:
7736 MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
7737
7738 // MessagingKafkaOffsetKey is the attribute Key conforming to the
7739 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
7740 // record in the corresponding Kafka partition.
7741 //
7742 // Type: int
7743 // RequirementLevel: Recommended
7744 // Stability: Development
7745 MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
7746
7747 // MessagingMessageBodySizeKey is the attribute Key conforming to the
7748 // "messaging.message.body.size" semantic conventions. It represents the size of
7749 // the message body in bytes.
7750 //
7751 // Type: int
7752 // RequirementLevel: Recommended
7753 // Stability: Development
7754 //
7755 // Note: This can refer to both the compressed or uncompressed body size. If
7756 // both sizes are known, the uncompressed
7757 // body size should be used.
7758 MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
7759
7760 // MessagingMessageConversationIDKey is the attribute Key conforming to the
7761 // "messaging.message.conversation_id" semantic conventions. It represents the
7762 // conversation ID identifying the conversation to which the message belongs,
7763 // represented as a string. Sometimes called "Correlation ID".
7764 //
7765 // Type: string
7766 // RequirementLevel: Recommended
7767 // Stability: Development
7768 //
7769 // Examples: MyConversationId
7770 MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
7771
7772 // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
7773 // "messaging.message.envelope.size" semantic conventions. It represents the
7774 // size of the message body and metadata in bytes.
7775 //
7776 // Type: int
7777 // RequirementLevel: Recommended
7778 // Stability: Development
7779 //
7780 // Note: This can refer to both the compressed or uncompressed size. If both
7781 // sizes are known, the uncompressed
7782 // size should be used.
7783 MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
7784
7785 // MessagingMessageIDKey is the attribute Key conforming to the
7786 // "messaging.message.id" semantic conventions. It represents a value used by
7787 // the messaging system as an identifier for the message, represented as a
7788 // string.
7789 //
7790 // Type: string
7791 // RequirementLevel: Recommended
7792 // Stability: Development
7793 //
7794 // Examples: 452a7c7c7c7048c2f887f61572b18fc2
7795 MessagingMessageIDKey = attribute.Key("messaging.message.id")
7796
7797 // MessagingOperationNameKey is the attribute Key conforming to the
7798 // "messaging.operation.name" semantic conventions. It represents the
7799 // system-specific name of the messaging operation.
7800 //
7801 // Type: string
7802 // RequirementLevel: Recommended
7803 // Stability: Development
7804 //
7805 // Examples: "ack", "nack", "send"
7806 MessagingOperationNameKey = attribute.Key("messaging.operation.name")
7807
7808 // MessagingOperationTypeKey is the attribute Key conforming to the
7809 // "messaging.operation.type" semantic conventions. It represents a string
7810 // identifying the type of the messaging operation.
7811 //
7812 // Type: Enum
7813 // RequirementLevel: Recommended
7814 // Stability: Development
7815 //
7816 // Examples:
7817 // Note: If a custom value is used, it MUST be of low cardinality.
7818 MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
7819
7820 // MessagingRabbitmqDestinationRoutingKeyKey is the attribute Key conforming to
7821 // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
7822 // represents the rabbitMQ message routing key.
7823 //
7824 // Type: string
7825 // RequirementLevel: Recommended
7826 // Stability: Development
7827 //
7828 // Examples: myKey
7829 MessagingRabbitmqDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
7830
7831 // MessagingRabbitmqMessageDeliveryTagKey is the attribute Key conforming to the
7832 // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
7833 // the rabbitMQ message delivery tag.
7834 //
7835 // Type: int
7836 // RequirementLevel: Recommended
7837 // Stability: Development
7838 MessagingRabbitmqMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
7839
7840 // MessagingRocketmqConsumptionModelKey is the attribute Key conforming to the
7841 // "messaging.rocketmq.consumption_model" semantic conventions. It represents
7842 // the model of message consumption. This only applies to consumer spans.
7843 //
7844 // Type: Enum
7845 // RequirementLevel: Recommended
7846 // Stability: Development
7847 //
7848 // Examples:
7849 MessagingRocketmqConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
7850
7851 // MessagingRocketmqMessageDelayTimeLevelKey is the attribute Key conforming to
7852 // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
7853 // represents the delay time level for delay message, which determines the
7854 // message delay time.
7855 //
7856 // Type: int
7857 // RequirementLevel: Recommended
7858 // Stability: Development
7859 MessagingRocketmqMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
7860
7861 // MessagingRocketmqMessageDeliveryTimestampKey is the attribute Key conforming
7862 // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
7863 // It represents the timestamp in milliseconds that the delay message is
7864 // expected to be delivered to consumer.
7865 //
7866 // Type: int
7867 // RequirementLevel: Recommended
7868 // Stability: Development
7869 MessagingRocketmqMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
7870
7871 // MessagingRocketmqMessageGroupKey is the attribute Key conforming to the
7872 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
7873 // is essential for FIFO message. Messages that belong to the same message group
7874 // are always processed one by one within the same consumer group.
7875 //
7876 // Type: string
7877 // RequirementLevel: Recommended
7878 // Stability: Development
7879 //
7880 // Examples: myMessageGroup
7881 MessagingRocketmqMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
7882
7883 // MessagingRocketmqMessageKeysKey is the attribute Key conforming to the
7884 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
7885 // key(s) of message, another way to mark message besides message id.
7886 //
7887 // Type: string[]
7888 // RequirementLevel: Recommended
7889 // Stability: Development
7890 //
7891 // Examples: "keyA", "keyB"
7892 MessagingRocketmqMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
7893
7894 // MessagingRocketmqMessageTagKey is the attribute Key conforming to the
7895 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
7896 // secondary classifier of message besides topic.
7897 //
7898 // Type: string
7899 // RequirementLevel: Recommended
7900 // Stability: Development
7901 //
7902 // Examples: tagA
7903 MessagingRocketmqMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
7904
7905 // MessagingRocketmqMessageTypeKey is the attribute Key conforming to the
7906 // "messaging.rocketmq.message.type" semantic conventions. It represents the
7907 // type of message.
7908 //
7909 // Type: Enum
7910 // RequirementLevel: Recommended
7911 // Stability: Development
7912 //
7913 // Examples:
7914 MessagingRocketmqMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
7915
7916 // MessagingRocketmqNamespaceKey is the attribute Key conforming to the
7917 // "messaging.rocketmq.namespace" semantic conventions. It represents the
7918 // namespace of RocketMQ resources, resources in different namespaces are
7919 // individual.
7920 //
7921 // Type: string
7922 // RequirementLevel: Recommended
7923 // Stability: Development
7924 //
7925 // Examples: myNamespace
7926 MessagingRocketmqNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
7927
7928 // MessagingServicebusDispositionStatusKey is the attribute Key conforming to
7929 // the "messaging.servicebus.disposition_status" semantic conventions. It
7930 // represents the describes the [settlement type].
7931 //
7932 // Type: Enum
7933 // RequirementLevel: Recommended
7934 // Stability: Development
7935 //
7936 // Examples:
7937 //
7938 // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
7939 MessagingServicebusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
7940
7941 // MessagingServicebusMessageDeliveryCountKey is the attribute Key conforming to
7942 // the "messaging.servicebus.message.delivery_count" semantic conventions. It
7943 // represents the number of deliveries that have been attempted for this
7944 // message.
7945 //
7946 // Type: int
7947 // RequirementLevel: Recommended
7948 // Stability: Development
7949 MessagingServicebusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
7950
7951 // MessagingServicebusMessageEnqueuedTimeKey is the attribute Key conforming to
7952 // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
7953 // represents the UTC epoch seconds at which the message has been accepted and
7954 // stored in the entity.
7955 //
7956 // Type: int
7957 // RequirementLevel: Recommended
7958 // Stability: Development
7959 MessagingServicebusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
7960
7961 // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
7962 // semantic conventions. It represents the messaging system as identified by the
7963 // client instrumentation.
7964 //
7965 // Type: Enum
7966 // RequirementLevel: Recommended
7967 // Stability: Development
7968 //
7969 // Examples:
7970 // Note: The actual messaging system may differ from the one known by the
7971 // client. For example, when using Kafka client libraries to communicate with
7972 // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
7973 // instrumentation's best knowledge.
7974 MessagingSystemKey = attribute.Key("messaging.system")
7975 )
7976
7977 // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
7978 // "messaging.batch.message_count" semantic conventions. It represents the number
7979 // of messages sent, received, or processed in the scope of the batching
7980 // operation.
7981 func MessagingBatchMessageCount(val int) attribute.KeyValue {
7982 return MessagingBatchMessageCountKey.Int(val)
7983 }
7984
7985 // MessagingClientID returns an attribute KeyValue conforming to the
7986 // "messaging.client.id" semantic conventions. It represents a unique identifier
7987 // for the client that consumes or produces a message.
7988 func MessagingClientID(val string) attribute.KeyValue {
7989 return MessagingClientIDKey.String(val)
7990 }
7991
7992 // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
7993 // "messaging.consumer.group.name" semantic conventions. It represents the name
7994 // of the consumer group with which a consumer is associated.
7995 func MessagingConsumerGroupName(val string) attribute.KeyValue {
7996 return MessagingConsumerGroupNameKey.String(val)
7997 }
7998
7999 // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
8000 // "messaging.destination.anonymous" semantic conventions. It represents a
8001 // boolean that is true if the message destination is anonymous (could be unnamed
8002 // or have auto-generated name).
8003 func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
8004 return MessagingDestinationAnonymousKey.Bool(val)
8005 }
8006
8007 // MessagingDestinationName returns an attribute KeyValue conforming to the
8008 // "messaging.destination.name" semantic conventions. It represents the message
8009 // destination name.
8010 func MessagingDestinationName(val string) attribute.KeyValue {
8011 return MessagingDestinationNameKey.String(val)
8012 }
8013
8014 // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
8015 // the "messaging.destination.partition.id" semantic conventions. It represents
8016 // the identifier of the partition messages are sent to or received from, unique
8017 // within the `messaging.destination.name`.
8018 func MessagingDestinationPartitionID(val string) attribute.KeyValue {
8019 return MessagingDestinationPartitionIDKey.String(val)
8020 }
8021
8022 // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
8023 // to the "messaging.destination.subscription.name" semantic conventions. It
8024 // represents the name of the destination subscription from which a message is
8025 // consumed.
8026 func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
8027 return MessagingDestinationSubscriptionNameKey.String(val)
8028 }
8029
8030 // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
8031 // "messaging.destination.template" semantic conventions. It represents the low
8032 // cardinality representation of the messaging destination name.
8033 func MessagingDestinationTemplate(val string) attribute.KeyValue {
8034 return MessagingDestinationTemplateKey.String(val)
8035 }
8036
8037 // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
8038 // "messaging.destination.temporary" semantic conventions. It represents a
8039 // boolean that is true if the message destination is temporary and might not
8040 // exist anymore after messages are processed.
8041 func MessagingDestinationTemporary(val bool) attribute.KeyValue {
8042 return MessagingDestinationTemporaryKey.Bool(val)
8043 }
8044
8045 // MessagingEventhubsMessageEnqueuedTime returns an attribute KeyValue conforming
8046 // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
8047 // represents the UTC epoch seconds at which the message has been accepted and
8048 // stored in the entity.
8049 func MessagingEventhubsMessageEnqueuedTime(val int) attribute.KeyValue {
8050 return MessagingEventhubsMessageEnqueuedTimeKey.Int(val)
8051 }
8052
8053 // MessagingGCPPubsubMessageAckDeadline returns an attribute KeyValue conforming
8054 // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
8055 // represents the ack deadline in seconds set for the modify ack deadline
8056 // request.
8057 func MessagingGCPPubsubMessageAckDeadline(val int) attribute.KeyValue {
8058 return MessagingGCPPubsubMessageAckDeadlineKey.Int(val)
8059 }
8060
8061 // MessagingGCPPubsubMessageAckID returns an attribute KeyValue conforming to the
8062 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
8063 // ack id for a given message.
8064 func MessagingGCPPubsubMessageAckID(val string) attribute.KeyValue {
8065 return MessagingGCPPubsubMessageAckIDKey.String(val)
8066 }
8067
8068 // MessagingGCPPubsubMessageDeliveryAttempt returns an attribute KeyValue
8069 // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
8070 // conventions. It represents the delivery attempt for a given message.
8071 func MessagingGCPPubsubMessageDeliveryAttempt(val int) attribute.KeyValue {
8072 return MessagingGCPPubsubMessageDeliveryAttemptKey.Int(val)
8073 }
8074
8075 // MessagingGCPPubsubMessageOrderingKey returns an attribute KeyValue conforming
8076 // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
8077 // represents the ordering key for a given message. If the attribute is not
8078 // present, the message does not have an ordering key.
8079 func MessagingGCPPubsubMessageOrderingKey(val string) attribute.KeyValue {
8080 return MessagingGCPPubsubMessageOrderingKeyKey.String(val)
8081 }
8082
8083 // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
8084 // "messaging.kafka.message.key" semantic conventions. It represents the message
8085 // keys in Kafka are used for grouping alike messages to ensure they're processed
8086 // on the same partition. They differ from `messaging.message.id` in that they're
8087 // not unique. If the key is `null`, the attribute MUST NOT be set.
8088 func MessagingKafkaMessageKey(val string) attribute.KeyValue {
8089 return MessagingKafkaMessageKeyKey.String(val)
8090 }
8091
8092 // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
8093 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
8094 // boolean that is true if the message is a tombstone.
8095 func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
8096 return MessagingKafkaMessageTombstoneKey.Bool(val)
8097 }
8098
8099 // MessagingKafkaOffset returns an attribute KeyValue conforming to the
8100 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
8101 // record in the corresponding Kafka partition.
8102 func MessagingKafkaOffset(val int) attribute.KeyValue {
8103 return MessagingKafkaOffsetKey.Int(val)
8104 }
8105
8106 // MessagingMessageBodySize returns an attribute KeyValue conforming to the
8107 // "messaging.message.body.size" semantic conventions. It represents the size of
8108 // the message body in bytes.
8109 func MessagingMessageBodySize(val int) attribute.KeyValue {
8110 return MessagingMessageBodySizeKey.Int(val)
8111 }
8112
8113 // MessagingMessageConversationID returns an attribute KeyValue conforming to the
8114 // "messaging.message.conversation_id" semantic conventions. It represents the
8115 // conversation ID identifying the conversation to which the message belongs,
8116 // represented as a string. Sometimes called "Correlation ID".
8117 func MessagingMessageConversationID(val string) attribute.KeyValue {
8118 return MessagingMessageConversationIDKey.String(val)
8119 }
8120
8121 // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
8122 // "messaging.message.envelope.size" semantic conventions. It represents the size
8123 // of the message body and metadata in bytes.
8124 func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
8125 return MessagingMessageEnvelopeSizeKey.Int(val)
8126 }
8127
8128 // MessagingMessageID returns an attribute KeyValue conforming to the
8129 // "messaging.message.id" semantic conventions. It represents a value used by the
8130 // messaging system as an identifier for the message, represented as a string.
8131 func MessagingMessageID(val string) attribute.KeyValue {
8132 return MessagingMessageIDKey.String(val)
8133 }
8134
8135 // MessagingOperationName returns an attribute KeyValue conforming to the
8136 // "messaging.operation.name" semantic conventions. It represents the
8137 // system-specific name of the messaging operation.
8138 func MessagingOperationName(val string) attribute.KeyValue {
8139 return MessagingOperationNameKey.String(val)
8140 }
8141
8142 // MessagingRabbitmqDestinationRoutingKey returns an attribute KeyValue
8143 // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
8144 // conventions. It represents the rabbitMQ message routing key.
8145 func MessagingRabbitmqDestinationRoutingKey(val string) attribute.KeyValue {
8146 return MessagingRabbitmqDestinationRoutingKeyKey.String(val)
8147 }
8148
8149 // MessagingRabbitmqMessageDeliveryTag returns an attribute KeyValue conforming
8150 // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
8151 // represents the rabbitMQ message delivery tag.
8152 func MessagingRabbitmqMessageDeliveryTag(val int) attribute.KeyValue {
8153 return MessagingRabbitmqMessageDeliveryTagKey.Int(val)
8154 }
8155
8156 // MessagingRocketmqMessageDelayTimeLevel returns an attribute KeyValue
8157 // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
8158 // conventions. It represents the delay time level for delay message, which
8159 // determines the message delay time.
8160 func MessagingRocketmqMessageDelayTimeLevel(val int) attribute.KeyValue {
8161 return MessagingRocketmqMessageDelayTimeLevelKey.Int(val)
8162 }
8163
8164 // MessagingRocketmqMessageDeliveryTimestamp returns an attribute KeyValue
8165 // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
8166 // conventions. It represents the timestamp in milliseconds that the delay
8167 // message is expected to be delivered to consumer.
8168 func MessagingRocketmqMessageDeliveryTimestamp(val int) attribute.KeyValue {
8169 return MessagingRocketmqMessageDeliveryTimestampKey.Int(val)
8170 }
8171
8172 // MessagingRocketmqMessageGroup returns an attribute KeyValue conforming to the
8173 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
8174 // is essential for FIFO message. Messages that belong to the same message group
8175 // are always processed one by one within the same consumer group.
8176 func MessagingRocketmqMessageGroup(val string) attribute.KeyValue {
8177 return MessagingRocketmqMessageGroupKey.String(val)
8178 }
8179
8180 // MessagingRocketmqMessageKeys returns an attribute KeyValue conforming to the
8181 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
8182 // key(s) of message, another way to mark message besides message id.
8183 func MessagingRocketmqMessageKeys(val ...string) attribute.KeyValue {
8184 return MessagingRocketmqMessageKeysKey.StringSlice(val)
8185 }
8186
8187 // MessagingRocketmqMessageTag returns an attribute KeyValue conforming to the
8188 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
8189 // secondary classifier of message besides topic.
8190 func MessagingRocketmqMessageTag(val string) attribute.KeyValue {
8191 return MessagingRocketmqMessageTagKey.String(val)
8192 }
8193
8194 // MessagingRocketmqNamespace returns an attribute KeyValue conforming to the
8195 // "messaging.rocketmq.namespace" semantic conventions. It represents the
8196 // namespace of RocketMQ resources, resources in different namespaces are
8197 // individual.
8198 func MessagingRocketmqNamespace(val string) attribute.KeyValue {
8199 return MessagingRocketmqNamespaceKey.String(val)
8200 }
8201
8202 // MessagingServicebusMessageDeliveryCount returns an attribute KeyValue
8203 // conforming to the "messaging.servicebus.message.delivery_count" semantic
8204 // conventions. It represents the number of deliveries that have been attempted
8205 // for this message.
8206 func MessagingServicebusMessageDeliveryCount(val int) attribute.KeyValue {
8207 return MessagingServicebusMessageDeliveryCountKey.Int(val)
8208 }
8209
8210 // MessagingServicebusMessageEnqueuedTime returns an attribute KeyValue
8211 // conforming to the "messaging.servicebus.message.enqueued_time" semantic
8212 // conventions. It represents the UTC epoch seconds at which the message has been
8213 // accepted and stored in the entity.
8214 func MessagingServicebusMessageEnqueuedTime(val int) attribute.KeyValue {
8215 return MessagingServicebusMessageEnqueuedTimeKey.Int(val)
8216 }
8217
8218 // Enum values for messaging.operation.type
8219 var (
8220 // A message is created. "Create" spans always refer to a single message and are
8221 // used to provide a unique creation context for messages in batch sending
8222 // scenarios.
8223 //
8224 // Stability: development
8225 MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
8226 // One or more messages are provided for sending to an intermediary. If a single
8227 // message is sent, the context of the "Send" span can be used as the creation
8228 // context and no "Create" span needs to be created.
8229 //
8230 // Stability: development
8231 MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
8232 // One or more messages are requested by a consumer. This operation refers to
8233 // pull-based scenarios, where consumers explicitly call methods of messaging
8234 // SDKs to receive messages.
8235 //
8236 // Stability: development
8237 MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
8238 // One or more messages are processed by a consumer.
8239 //
8240 // Stability: development
8241 MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
8242 // One or more messages are settled.
8243 //
8244 // Stability: development
8245 MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
8246 // Deprecated: Replaced by `process`.
8247 MessagingOperationTypeDeliver = MessagingOperationTypeKey.String("deliver")
8248 // Deprecated: Replaced by `send`.
8249 MessagingOperationTypePublish = MessagingOperationTypeKey.String("publish")
8250 )
8251
8252 // Enum values for messaging.rocketmq.consumption_model
8253 var (
8254 // Clustering consumption model
8255 // Stability: development
8256 MessagingRocketmqConsumptionModelClustering = MessagingRocketmqConsumptionModelKey.String("clustering")
8257 // Broadcasting consumption model
8258 // Stability: development
8259 MessagingRocketmqConsumptionModelBroadcasting = MessagingRocketmqConsumptionModelKey.String("broadcasting")
8260 )
8261
8262 // Enum values for messaging.rocketmq.message.type
8263 var (
8264 // Normal message
8265 // Stability: development
8266 MessagingRocketmqMessageTypeNormal = MessagingRocketmqMessageTypeKey.String("normal")
8267 // FIFO message
8268 // Stability: development
8269 MessagingRocketmqMessageTypeFifo = MessagingRocketmqMessageTypeKey.String("fifo")
8270 // Delay message
8271 // Stability: development
8272 MessagingRocketmqMessageTypeDelay = MessagingRocketmqMessageTypeKey.String("delay")
8273 // Transaction message
8274 // Stability: development
8275 MessagingRocketmqMessageTypeTransaction = MessagingRocketmqMessageTypeKey.String("transaction")
8276 )
8277
8278 // Enum values for messaging.servicebus.disposition_status
8279 var (
8280 // Message is completed
8281 // Stability: development
8282 MessagingServicebusDispositionStatusComplete = MessagingServicebusDispositionStatusKey.String("complete")
8283 // Message is abandoned
8284 // Stability: development
8285 MessagingServicebusDispositionStatusAbandon = MessagingServicebusDispositionStatusKey.String("abandon")
8286 // Message is sent to dead letter queue
8287 // Stability: development
8288 MessagingServicebusDispositionStatusDeadLetter = MessagingServicebusDispositionStatusKey.String("dead_letter")
8289 // Message is deferred
8290 // Stability: development
8291 MessagingServicebusDispositionStatusDefer = MessagingServicebusDispositionStatusKey.String("defer")
8292 )
8293
8294 // Enum values for messaging.system
8295 var (
8296 // Apache ActiveMQ
8297 // Stability: development
8298 MessagingSystemActivemq = MessagingSystemKey.String("activemq")
8299 // Amazon Simple Queue Service (SQS)
8300 // Stability: development
8301 MessagingSystemAWSSqs = MessagingSystemKey.String("aws_sqs")
8302 // Azure Event Grid
8303 // Stability: development
8304 MessagingSystemEventgrid = MessagingSystemKey.String("eventgrid")
8305 // Azure Event Hubs
8306 // Stability: development
8307 MessagingSystemEventhubs = MessagingSystemKey.String("eventhubs")
8308 // Azure Service Bus
8309 // Stability: development
8310 MessagingSystemServicebus = MessagingSystemKey.String("servicebus")
8311 // Google Cloud Pub/Sub
8312 // Stability: development
8313 MessagingSystemGCPPubsub = MessagingSystemKey.String("gcp_pubsub")
8314 // Java Message Service
8315 // Stability: development
8316 MessagingSystemJms = MessagingSystemKey.String("jms")
8317 // Apache Kafka
8318 // Stability: development
8319 MessagingSystemKafka = MessagingSystemKey.String("kafka")
8320 // RabbitMQ
8321 // Stability: development
8322 MessagingSystemRabbitmq = MessagingSystemKey.String("rabbitmq")
8323 // Apache RocketMQ
8324 // Stability: development
8325 MessagingSystemRocketmq = MessagingSystemKey.String("rocketmq")
8326 // Apache Pulsar
8327 // Stability: development
8328 MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
8329 )
8330
8331 // Namespace: network
8332 const (
8333 // NetworkCarrierIccKey is the attribute Key conforming to the
8334 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
8335 // alpha-2 2-character country code associated with the mobile carrier network.
8336 //
8337 // Type: string
8338 // RequirementLevel: Recommended
8339 // Stability: Development
8340 //
8341 // Examples: DE
8342 NetworkCarrierIccKey = attribute.Key("network.carrier.icc")
8343
8344 // NetworkCarrierMccKey is the attribute Key conforming to the
8345 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
8346 // country code.
8347 //
8348 // Type: string
8349 // RequirementLevel: Recommended
8350 // Stability: Development
8351 //
8352 // Examples: 310
8353 NetworkCarrierMccKey = attribute.Key("network.carrier.mcc")
8354
8355 // NetworkCarrierMncKey is the attribute Key conforming to the
8356 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
8357 // network code.
8358 //
8359 // Type: string
8360 // RequirementLevel: Recommended
8361 // Stability: Development
8362 //
8363 // Examples: 001
8364 NetworkCarrierMncKey = attribute.Key("network.carrier.mnc")
8365
8366 // NetworkCarrierNameKey is the attribute Key conforming to the
8367 // "network.carrier.name" semantic conventions. It represents the name of the
8368 // mobile carrier.
8369 //
8370 // Type: string
8371 // RequirementLevel: Recommended
8372 // Stability: Development
8373 //
8374 // Examples: sprint
8375 NetworkCarrierNameKey = attribute.Key("network.carrier.name")
8376
8377 // NetworkConnectionStateKey is the attribute Key conforming to the
8378 // "network.connection.state" semantic conventions. It represents the state of
8379 // network connection.
8380 //
8381 // Type: Enum
8382 // RequirementLevel: Recommended
8383 // Stability: Development
8384 //
8385 // Examples: "close_wait"
8386 // Note: Connection states are defined as part of the [rfc9293]
8387 //
8388 // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2
8389 NetworkConnectionStateKey = attribute.Key("network.connection.state")
8390
8391 // NetworkConnectionSubtypeKey is the attribute Key conforming to the
8392 // "network.connection.subtype" semantic conventions. It represents the this
8393 // describes more details regarding the connection.type. It may be the type of
8394 // cell technology connection, but it could be used for describing details about
8395 // a wifi connection.
8396 //
8397 // Type: Enum
8398 // RequirementLevel: Recommended
8399 // Stability: Development
8400 //
8401 // Examples: LTE
8402 NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
8403
8404 // NetworkConnectionTypeKey is the attribute Key conforming to the
8405 // "network.connection.type" semantic conventions. It represents the internet
8406 // connection type.
8407 //
8408 // Type: Enum
8409 // RequirementLevel: Recommended
8410 // Stability: Development
8411 //
8412 // Examples: wifi
8413 NetworkConnectionTypeKey = attribute.Key("network.connection.type")
8414
8415 // NetworkInterfaceNameKey is the attribute Key conforming to the
8416 // "network.interface.name" semantic conventions. It represents the network
8417 // interface name.
8418 //
8419 // Type: string
8420 // RequirementLevel: Recommended
8421 // Stability: Development
8422 //
8423 // Examples: "lo", "eth0"
8424 NetworkInterfaceNameKey = attribute.Key("network.interface.name")
8425
8426 // NetworkIoDirectionKey is the attribute Key conforming to the
8427 // "network.io.direction" semantic conventions. It represents the network IO
8428 // operation direction.
8429 //
8430 // Type: Enum
8431 // RequirementLevel: Recommended
8432 // Stability: Development
8433 //
8434 // Examples: "transmit"
8435 NetworkIoDirectionKey = attribute.Key("network.io.direction")
8436
8437 // NetworkLocalAddressKey is the attribute Key conforming to the
8438 // "network.local.address" semantic conventions. It represents the local address
8439 // of the network connection - IP address or Unix domain socket name.
8440 //
8441 // Type: string
8442 // RequirementLevel: Recommended
8443 // Stability: Stable
8444 //
8445 // Examples: "10.1.2.80", "/tmp/my.sock"
8446 NetworkLocalAddressKey = attribute.Key("network.local.address")
8447
8448 // NetworkLocalPortKey is the attribute Key conforming to the
8449 // "network.local.port" semantic conventions. It represents the local port
8450 // number of the network connection.
8451 //
8452 // Type: int
8453 // RequirementLevel: Recommended
8454 // Stability: Stable
8455 //
8456 // Examples: 65123
8457 NetworkLocalPortKey = attribute.Key("network.local.port")
8458
8459 // NetworkPeerAddressKey is the attribute Key conforming to the
8460 // "network.peer.address" semantic conventions. It represents the peer address
8461 // of the network connection - IP address or Unix domain socket name.
8462 //
8463 // Type: string
8464 // RequirementLevel: Recommended
8465 // Stability: Stable
8466 //
8467 // Examples: "10.1.2.80", "/tmp/my.sock"
8468 NetworkPeerAddressKey = attribute.Key("network.peer.address")
8469
8470 // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
8471 // semantic conventions. It represents the peer port number of the network
8472 // connection.
8473 //
8474 // Type: int
8475 // RequirementLevel: Recommended
8476 // Stability: Stable
8477 //
8478 // Examples: 65123
8479 NetworkPeerPortKey = attribute.Key("network.peer.port")
8480
8481 // NetworkProtocolNameKey is the attribute Key conforming to the
8482 // "network.protocol.name" semantic conventions. It represents the
8483 // [OSI application layer] or non-OSI equivalent.
8484 //
8485 // Type: string
8486 // RequirementLevel: Recommended
8487 // Stability: Stable
8488 //
8489 // Examples: "amqp", "http", "mqtt"
8490 // Note: The value SHOULD be normalized to lowercase.
8491 //
8492 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
8493 NetworkProtocolNameKey = attribute.Key("network.protocol.name")
8494
8495 // NetworkProtocolVersionKey is the attribute Key conforming to the
8496 // "network.protocol.version" semantic conventions. It represents the actual
8497 // version of the protocol used for network communication.
8498 //
8499 // Type: string
8500 // RequirementLevel: Recommended
8501 // Stability: Stable
8502 //
8503 // Examples: "1.1", "2"
8504 // Note: If protocol version is subject to negotiation (for example using [ALPN]
8505 // ), this attribute SHOULD be set to the negotiated version. If the actual
8506 // protocol version is not known, this attribute SHOULD NOT be set.
8507 //
8508 // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
8509 NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
8510
8511 // NetworkTransportKey is the attribute Key conforming to the
8512 // "network.transport" semantic conventions. It represents the
8513 // [OSI transport layer] or [inter-process communication method].
8514 //
8515 // Type: Enum
8516 // RequirementLevel: Recommended
8517 // Stability: Stable
8518 //
8519 // Examples: "tcp", "udp"
8520 // Note: The value SHOULD be normalized to lowercase.
8521 //
8522 // Consider always setting the transport when setting a port number, since
8523 // a port number is ambiguous without knowing the transport. For example
8524 // different processes could be listening on TCP port 12345 and UDP port 12345.
8525 //
8526 // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer
8527 // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
8528 NetworkTransportKey = attribute.Key("network.transport")
8529
8530 // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
8531 // conventions. It represents the [OSI network layer] or non-OSI equivalent.
8532 //
8533 // Type: Enum
8534 // RequirementLevel: Recommended
8535 // Stability: Stable
8536 //
8537 // Examples: "ipv4", "ipv6"
8538 // Note: The value SHOULD be normalized to lowercase.
8539 //
8540 // [OSI network layer]: https://wikipedia.org/wiki/Network_layer
8541 NetworkTypeKey = attribute.Key("network.type")
8542 )
8543
8544 // NetworkCarrierIcc returns an attribute KeyValue conforming to the
8545 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
8546 // alpha-2 2-character country code associated with the mobile carrier network.
8547 func NetworkCarrierIcc(val string) attribute.KeyValue {
8548 return NetworkCarrierIccKey.String(val)
8549 }
8550
8551 // NetworkCarrierMcc returns an attribute KeyValue conforming to the
8552 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
8553 // country code.
8554 func NetworkCarrierMcc(val string) attribute.KeyValue {
8555 return NetworkCarrierMccKey.String(val)
8556 }
8557
8558 // NetworkCarrierMnc returns an attribute KeyValue conforming to the
8559 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
8560 // network code.
8561 func NetworkCarrierMnc(val string) attribute.KeyValue {
8562 return NetworkCarrierMncKey.String(val)
8563 }
8564
8565 // NetworkCarrierName returns an attribute KeyValue conforming to the
8566 // "network.carrier.name" semantic conventions. It represents the name of the
8567 // mobile carrier.
8568 func NetworkCarrierName(val string) attribute.KeyValue {
8569 return NetworkCarrierNameKey.String(val)
8570 }
8571
8572 // NetworkInterfaceName returns an attribute KeyValue conforming to the
8573 // "network.interface.name" semantic conventions. It represents the network
8574 // interface name.
8575 func NetworkInterfaceName(val string) attribute.KeyValue {
8576 return NetworkInterfaceNameKey.String(val)
8577 }
8578
8579 // NetworkLocalAddress returns an attribute KeyValue conforming to the
8580 // "network.local.address" semantic conventions. It represents the local address
8581 // of the network connection - IP address or Unix domain socket name.
8582 func NetworkLocalAddress(val string) attribute.KeyValue {
8583 return NetworkLocalAddressKey.String(val)
8584 }
8585
8586 // NetworkLocalPort returns an attribute KeyValue conforming to the
8587 // "network.local.port" semantic conventions. It represents the local port number
8588 // of the network connection.
8589 func NetworkLocalPort(val int) attribute.KeyValue {
8590 return NetworkLocalPortKey.Int(val)
8591 }
8592
8593 // NetworkPeerAddress returns an attribute KeyValue conforming to the
8594 // "network.peer.address" semantic conventions. It represents the peer address of
8595 // the network connection - IP address or Unix domain socket name.
8596 func NetworkPeerAddress(val string) attribute.KeyValue {
8597 return NetworkPeerAddressKey.String(val)
8598 }
8599
8600 // NetworkPeerPort returns an attribute KeyValue conforming to the
8601 // "network.peer.port" semantic conventions. It represents the peer port number
8602 // of the network connection.
8603 func NetworkPeerPort(val int) attribute.KeyValue {
8604 return NetworkPeerPortKey.Int(val)
8605 }
8606
8607 // NetworkProtocolName returns an attribute KeyValue conforming to the
8608 // "network.protocol.name" semantic conventions. It represents the
8609 // [OSI application layer] or non-OSI equivalent.
8610 //
8611 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
8612 func NetworkProtocolName(val string) attribute.KeyValue {
8613 return NetworkProtocolNameKey.String(val)
8614 }
8615
8616 // NetworkProtocolVersion returns an attribute KeyValue conforming to the
8617 // "network.protocol.version" semantic conventions. It represents the actual
8618 // version of the protocol used for network communication.
8619 func NetworkProtocolVersion(val string) attribute.KeyValue {
8620 return NetworkProtocolVersionKey.String(val)
8621 }
8622
8623 // Enum values for network.connection.state
8624 var (
8625 // closed
8626 // Stability: development
8627 NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed")
8628 // close_wait
8629 // Stability: development
8630 NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait")
8631 // closing
8632 // Stability: development
8633 NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing")
8634 // established
8635 // Stability: development
8636 NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established")
8637 // fin_wait_1
8638 // Stability: development
8639 NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1")
8640 // fin_wait_2
8641 // Stability: development
8642 NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2")
8643 // last_ack
8644 // Stability: development
8645 NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack")
8646 // listen
8647 // Stability: development
8648 NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen")
8649 // syn_received
8650 // Stability: development
8651 NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received")
8652 // syn_sent
8653 // Stability: development
8654 NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent")
8655 // time_wait
8656 // Stability: development
8657 NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait")
8658 )
8659
8660 // Enum values for network.connection.subtype
8661 var (
8662 // GPRS
8663 // Stability: development
8664 NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
8665 // EDGE
8666 // Stability: development
8667 NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
8668 // UMTS
8669 // Stability: development
8670 NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
8671 // CDMA
8672 // Stability: development
8673 NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
8674 // EVDO Rel. 0
8675 // Stability: development
8676 NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
8677 // EVDO Rev. A
8678 // Stability: development
8679 NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
8680 // CDMA2000 1XRTT
8681 // Stability: development
8682 NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
8683 // HSDPA
8684 // Stability: development
8685 NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
8686 // HSUPA
8687 // Stability: development
8688 NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
8689 // HSPA
8690 // Stability: development
8691 NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
8692 // IDEN
8693 // Stability: development
8694 NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
8695 // EVDO Rev. B
8696 // Stability: development
8697 NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
8698 // LTE
8699 // Stability: development
8700 NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
8701 // EHRPD
8702 // Stability: development
8703 NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
8704 // HSPAP
8705 // Stability: development
8706 NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
8707 // GSM
8708 // Stability: development
8709 NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
8710 // TD-SCDMA
8711 // Stability: development
8712 NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
8713 // IWLAN
8714 // Stability: development
8715 NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
8716 // 5G NR (New Radio)
8717 // Stability: development
8718 NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
8719 // 5G NRNSA (New Radio Non-Standalone)
8720 // Stability: development
8721 NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
8722 // LTE CA
8723 // Stability: development
8724 NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
8725 )
8726
8727 // Enum values for network.connection.type
8728 var (
8729 // wifi
8730 // Stability: development
8731 NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
8732 // wired
8733 // Stability: development
8734 NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
8735 // cell
8736 // Stability: development
8737 NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
8738 // unavailable
8739 // Stability: development
8740 NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
8741 // unknown
8742 // Stability: development
8743 NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
8744 )
8745
8746 // Enum values for network.io.direction
8747 var (
8748 // transmit
8749 // Stability: development
8750 NetworkIoDirectionTransmit = NetworkIoDirectionKey.String("transmit")
8751 // receive
8752 // Stability: development
8753 NetworkIoDirectionReceive = NetworkIoDirectionKey.String("receive")
8754 )
8755
8756 // Enum values for network.transport
8757 var (
8758 // TCP
8759 // Stability: stable
8760 NetworkTransportTCP = NetworkTransportKey.String("tcp")
8761 // UDP
8762 // Stability: stable
8763 NetworkTransportUDP = NetworkTransportKey.String("udp")
8764 // Named or anonymous pipe.
8765 // Stability: stable
8766 NetworkTransportPipe = NetworkTransportKey.String("pipe")
8767 // Unix domain socket
8768 // Stability: stable
8769 NetworkTransportUnix = NetworkTransportKey.String("unix")
8770 // QUIC
8771 // Stability: development
8772 NetworkTransportQUIC = NetworkTransportKey.String("quic")
8773 )
8774
8775 // Enum values for network.type
8776 var (
8777 // IPv4
8778 // Stability: stable
8779 NetworkTypeIpv4 = NetworkTypeKey.String("ipv4")
8780 // IPv6
8781 // Stability: stable
8782 NetworkTypeIpv6 = NetworkTypeKey.String("ipv6")
8783 )
8784
8785 // Namespace: oci
8786 const (
8787 // OciManifestDigestKey is the attribute Key conforming to the
8788 // "oci.manifest.digest" semantic conventions. It represents the digest of the
8789 // OCI image manifest. For container images specifically is the digest by which
8790 // the container image is known.
8791 //
8792 // Type: string
8793 // RequirementLevel: Recommended
8794 // Stability: Development
8795 //
8796 // Examples:
8797 // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
8798 // Note: Follows [OCI Image Manifest Specification], and specifically the
8799 // [Digest property].
8800 // An example can be found in [Example Image Manifest].
8801 //
8802 // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
8803 // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
8804 // [Example Image Manifest]: https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest
8805 OciManifestDigestKey = attribute.Key("oci.manifest.digest")
8806 )
8807
8808 // OciManifestDigest returns an attribute KeyValue conforming to the
8809 // "oci.manifest.digest" semantic conventions. It represents the digest of the
8810 // OCI image manifest. For container images specifically is the digest by which
8811 // the container image is known.
8812 func OciManifestDigest(val string) attribute.KeyValue {
8813 return OciManifestDigestKey.String(val)
8814 }
8815
8816 // Namespace: opentracing
8817 const (
8818 // OpentracingRefTypeKey is the attribute Key conforming to the
8819 // "opentracing.ref_type" semantic conventions. It represents the parent-child
8820 // Reference type.
8821 //
8822 // Type: Enum
8823 // RequirementLevel: Recommended
8824 // Stability: Development
8825 //
8826 // Examples:
8827 // Note: The causal relationship between a child Span and a parent Span.
8828 OpentracingRefTypeKey = attribute.Key("opentracing.ref_type")
8829 )
8830
8831 // Enum values for opentracing.ref_type
8832 var (
8833 // The parent Span depends on the child Span in some capacity
8834 // Stability: development
8835 OpentracingRefTypeChildOf = OpentracingRefTypeKey.String("child_of")
8836 // The parent Span doesn't depend in any way on the result of the child Span
8837 // Stability: development
8838 OpentracingRefTypeFollowsFrom = OpentracingRefTypeKey.String("follows_from")
8839 )
8840
8841 // Namespace: os
8842 const (
8843 // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
8844 // conventions. It represents the unique identifier for a particular build or
8845 // compilation of the operating system.
8846 //
8847 // Type: string
8848 // RequirementLevel: Recommended
8849 // Stability: Development
8850 //
8851 // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
8852 OSBuildIDKey = attribute.Key("os.build_id")
8853
8854 // OSDescriptionKey is the attribute Key conforming to the "os.description"
8855 // semantic conventions. It represents the human readable (not intended to be
8856 // parsed) OS version information, like e.g. reported by `ver` or
8857 // `lsb_release -a` commands.
8858 //
8859 // Type: string
8860 // RequirementLevel: Recommended
8861 // Stability: Development
8862 //
8863 // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
8864 OSDescriptionKey = attribute.Key("os.description")
8865
8866 // OSNameKey is the attribute Key conforming to the "os.name" semantic
8867 // conventions. It represents the human readable operating system name.
8868 //
8869 // Type: string
8870 // RequirementLevel: Recommended
8871 // Stability: Development
8872 //
8873 // Examples: "iOS", "Android", "Ubuntu"
8874 OSNameKey = attribute.Key("os.name")
8875
8876 // OSTypeKey is the attribute Key conforming to the "os.type" semantic
8877 // conventions. It represents the operating system type.
8878 //
8879 // Type: Enum
8880 // RequirementLevel: Recommended
8881 // Stability: Development
8882 //
8883 // Examples:
8884 OSTypeKey = attribute.Key("os.type")
8885
8886 // OSVersionKey is the attribute Key conforming to the "os.version" semantic
8887 // conventions. It represents the version string of the operating system as
8888 // defined in [Version Attributes].
8889 //
8890 // Type: string
8891 // RequirementLevel: Recommended
8892 // Stability: Development
8893 //
8894 // Examples: "14.2.1", "18.04.1"
8895 //
8896 // [Version Attributes]: /docs/resource/README.md#version-attributes
8897 OSVersionKey = attribute.Key("os.version")
8898 )
8899
8900 // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
8901 // semantic conventions. It represents the unique identifier for a particular
8902 // build or compilation of the operating system.
8903 func OSBuildID(val string) attribute.KeyValue {
8904 return OSBuildIDKey.String(val)
8905 }
8906
8907 // OSDescription returns an attribute KeyValue conforming to the "os.description"
8908 // semantic conventions. It represents the human readable (not intended to be
8909 // parsed) OS version information, like e.g. reported by `ver` or
8910 // `lsb_release -a` commands.
8911 func OSDescription(val string) attribute.KeyValue {
8912 return OSDescriptionKey.String(val)
8913 }
8914
8915 // OSName returns an attribute KeyValue conforming to the "os.name" semantic
8916 // conventions. It represents the human readable operating system name.
8917 func OSName(val string) attribute.KeyValue {
8918 return OSNameKey.String(val)
8919 }
8920
8921 // OSVersion returns an attribute KeyValue conforming to the "os.version"
8922 // semantic conventions. It represents the version string of the operating system
8923 // as defined in [Version Attributes].
8924 //
8925 // [Version Attributes]: /docs/resource/README.md#version-attributes
8926 func OSVersion(val string) attribute.KeyValue {
8927 return OSVersionKey.String(val)
8928 }
8929
8930 // Enum values for os.type
8931 var (
8932 // Microsoft Windows
8933 // Stability: development
8934 OSTypeWindows = OSTypeKey.String("windows")
8935 // Linux
8936 // Stability: development
8937 OSTypeLinux = OSTypeKey.String("linux")
8938 // Apple Darwin
8939 // Stability: development
8940 OSTypeDarwin = OSTypeKey.String("darwin")
8941 // FreeBSD
8942 // Stability: development
8943 OSTypeFreeBSD = OSTypeKey.String("freebsd")
8944 // NetBSD
8945 // Stability: development
8946 OSTypeNetBSD = OSTypeKey.String("netbsd")
8947 // OpenBSD
8948 // Stability: development
8949 OSTypeOpenBSD = OSTypeKey.String("openbsd")
8950 // DragonFly BSD
8951 // Stability: development
8952 OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
8953 // HP-UX (Hewlett Packard Unix)
8954 // Stability: development
8955 OSTypeHPUX = OSTypeKey.String("hpux")
8956 // AIX (Advanced Interactive eXecutive)
8957 // Stability: development
8958 OSTypeAIX = OSTypeKey.String("aix")
8959 // SunOS, Oracle Solaris
8960 // Stability: development
8961 OSTypeSolaris = OSTypeKey.String("solaris")
8962 // IBM z/OS
8963 // Stability: development
8964 OSTypeZOS = OSTypeKey.String("z_os")
8965 )
8966
8967 // Namespace: otel
8968 const (
8969 // OTelComponentNameKey is the attribute Key conforming to the
8970 // "otel.component.name" semantic conventions. It represents a name uniquely
8971 // identifying the instance of the OpenTelemetry component within its containing
8972 // SDK instance.
8973 //
8974 // Type: string
8975 // RequirementLevel: Recommended
8976 // Stability: Development
8977 //
8978 // Examples: "otlp_grpc_span_exporter/0", "custom-name"
8979 // Note: Implementations SHOULD ensure a low cardinality for this attribute,
8980 // even across application or SDK restarts.
8981 // E.g. implementations MUST NOT use UUIDs as values for this attribute.
8982 //
8983 // Implementations MAY achieve these goals by following a
8984 // `<otel.component.type>/<instance-counter>` pattern, e.g.
8985 // `batching_span_processor/0`.
8986 // Hereby `otel.component.type` refers to the corresponding attribute value of
8987 // the component.
8988 //
8989 // The value of `instance-counter` MAY be automatically assigned by the
8990 // component and uniqueness within the enclosing SDK instance MUST be
8991 // guaranteed.
8992 // For example, `<instance-counter>` MAY be implemented by using a monotonically
8993 // increasing counter (starting with `0`), which is incremented every time an
8994 // instance of the given component type is started.
8995 //
8996 // With this implementation, for example the first Batching Span Processor would
8997 // have `batching_span_processor/0`
8998 // as `otel.component.name`, the second one `batching_span_processor/1` and so
8999 // on.
9000 // These values will therefore be reused in the case of an application restart.
9001 OTelComponentNameKey = attribute.Key("otel.component.name")
9002
9003 // OTelComponentTypeKey is the attribute Key conforming to the
9004 // "otel.component.type" semantic conventions. It represents a name identifying
9005 // the type of the OpenTelemetry component.
9006 //
9007 // Type: Enum
9008 // RequirementLevel: Recommended
9009 // Stability: Development
9010 //
9011 // Examples: "batching_span_processor", "com.example.MySpanExporter"
9012 // Note: If none of the standardized values apply, implementations SHOULD use
9013 // the language-defined name of the type.
9014 // E.g. for Java the fully qualified classname SHOULD be used in this case.
9015 OTelComponentTypeKey = attribute.Key("otel.component.type")
9016
9017 // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
9018 // semantic conventions. It represents the name of the instrumentation scope - (
9019 // `InstrumentationScope.Name` in OTLP).
9020 //
9021 // Type: string
9022 // RequirementLevel: Recommended
9023 // Stability: Stable
9024 //
9025 // Examples: "io.opentelemetry.contrib.mongodb"
9026 OTelScopeNameKey = attribute.Key("otel.scope.name")
9027
9028 // OTelScopeVersionKey is the attribute Key conforming to the
9029 // "otel.scope.version" semantic conventions. It represents the version of the
9030 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
9031 //
9032 // Type: string
9033 // RequirementLevel: Recommended
9034 // Stability: Stable
9035 //
9036 // Examples: "1.0.0"
9037 OTelScopeVersionKey = attribute.Key("otel.scope.version")
9038
9039 // OTelSpanSamplingResultKey is the attribute Key conforming to the
9040 // "otel.span.sampling_result" semantic conventions. It represents the result
9041 // value of the sampler for this span.
9042 //
9043 // Type: Enum
9044 // RequirementLevel: Recommended
9045 // Stability: Development
9046 //
9047 // Examples:
9048 OTelSpanSamplingResultKey = attribute.Key("otel.span.sampling_result")
9049
9050 // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
9051 // semantic conventions. It represents the name of the code, either "OK" or
9052 // "ERROR". MUST NOT be set if the status code is UNSET.
9053 //
9054 // Type: Enum
9055 // RequirementLevel: Recommended
9056 // Stability: Stable
9057 //
9058 // Examples:
9059 OTelStatusCodeKey = attribute.Key("otel.status_code")
9060
9061 // OTelStatusDescriptionKey is the attribute Key conforming to the
9062 // "otel.status_description" semantic conventions. It represents the description
9063 // of the Status if it has a value, otherwise not set.
9064 //
9065 // Type: string
9066 // RequirementLevel: Recommended
9067 // Stability: Stable
9068 //
9069 // Examples: "resource not found"
9070 OTelStatusDescriptionKey = attribute.Key("otel.status_description")
9071 )
9072
9073 // OTelComponentName returns an attribute KeyValue conforming to the
9074 // "otel.component.name" semantic conventions. It represents a name uniquely
9075 // identifying the instance of the OpenTelemetry component within its containing
9076 // SDK instance.
9077 func OTelComponentName(val string) attribute.KeyValue {
9078 return OTelComponentNameKey.String(val)
9079 }
9080
9081 // OTelScopeName returns an attribute KeyValue conforming to the
9082 // "otel.scope.name" semantic conventions. It represents the name of the
9083 // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
9084 func OTelScopeName(val string) attribute.KeyValue {
9085 return OTelScopeNameKey.String(val)
9086 }
9087
9088 // OTelScopeVersion returns an attribute KeyValue conforming to the
9089 // "otel.scope.version" semantic conventions. It represents the version of the
9090 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
9091 func OTelScopeVersion(val string) attribute.KeyValue {
9092 return OTelScopeVersionKey.String(val)
9093 }
9094
9095 // OTelStatusDescription returns an attribute KeyValue conforming to the
9096 // "otel.status_description" semantic conventions. It represents the description
9097 // of the Status if it has a value, otherwise not set.
9098 func OTelStatusDescription(val string) attribute.KeyValue {
9099 return OTelStatusDescriptionKey.String(val)
9100 }
9101
9102 // Enum values for otel.component.type
9103 var (
9104 // The builtin SDK Batching Span Processor
9105 //
9106 // Stability: development
9107 OTelComponentTypeBatchingSpanProcessor = OTelComponentTypeKey.String("batching_span_processor")
9108 // The builtin SDK Simple Span Processor
9109 //
9110 // Stability: development
9111 OTelComponentTypeSimpleSpanProcessor = OTelComponentTypeKey.String("simple_span_processor")
9112 // OTLP span exporter over gRPC with protobuf serialization
9113 //
9114 // Stability: development
9115 OTelComponentTypeOtlpGRPCSpanExporter = OTelComponentTypeKey.String("otlp_grpc_span_exporter")
9116 // OTLP span exporter over HTTP with protobuf serialization
9117 //
9118 // Stability: development
9119 OTelComponentTypeOtlpHTTPSpanExporter = OTelComponentTypeKey.String("otlp_http_span_exporter")
9120 // OTLP span exporter over HTTP with JSON serialization
9121 //
9122 // Stability: development
9123 OTelComponentTypeOtlpHTTPJSONSpanExporter = OTelComponentTypeKey.String("otlp_http_json_span_exporter")
9124 )
9125
9126 // Enum values for otel.span.sampling_result
9127 var (
9128 // The span is not sampled and not recording
9129 // Stability: development
9130 OTelSpanSamplingResultDrop = OTelSpanSamplingResultKey.String("DROP")
9131 // The span is not sampled, but recording
9132 // Stability: development
9133 OTelSpanSamplingResultRecordOnly = OTelSpanSamplingResultKey.String("RECORD_ONLY")
9134 // The span is sampled and recording
9135 // Stability: development
9136 OTelSpanSamplingResultRecordAndSample = OTelSpanSamplingResultKey.String("RECORD_AND_SAMPLE")
9137 )
9138
9139 // Enum values for otel.status_code
9140 var (
9141 // The operation has been validated by an Application developer or Operator to
9142 // have completed successfully.
9143 // Stability: stable
9144 OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
9145 // The operation contains an error.
9146 // Stability: stable
9147 OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
9148 )
9149
9150 // Namespace: peer
9151 const (
9152 // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic
9153 // conventions. It represents the [`service.name`] of the remote service. SHOULD
9154 // be equal to the actual `service.name` resource attribute of the remote
9155 // service if any.
9156 //
9157 // Type: string
9158 // RequirementLevel: Recommended
9159 // Stability: Development
9160 //
9161 // Examples: AuthTokenCache
9162 //
9163 // [`service.name`]: /docs/resource/README.md#service
9164 PeerServiceKey = attribute.Key("peer.service")
9165 )
9166
9167 // PeerService returns an attribute KeyValue conforming to the "peer.service"
9168 // semantic conventions. It represents the [`service.name`] of the remote
9169 // service. SHOULD be equal to the actual `service.name` resource attribute of
9170 // the remote service if any.
9171 //
9172 // [`service.name`]: /docs/resource/README.md#service
9173 func PeerService(val string) attribute.KeyValue {
9174 return PeerServiceKey.String(val)
9175 }
9176
9177 // Namespace: process
9178 const (
9179 // ProcessArgsCountKey is the attribute Key conforming to the
9180 // "process.args_count" semantic conventions. It represents the length of the
9181 // process.command_args array.
9182 //
9183 // Type: int
9184 // RequirementLevel: Recommended
9185 // Stability: Development
9186 //
9187 // Examples: 4
9188 // Note: This field can be useful for querying or performing bucket analysis on
9189 // how many arguments were provided to start a process. More arguments may be an
9190 // indication of suspicious activity.
9191 ProcessArgsCountKey = attribute.Key("process.args_count")
9192
9193 // ProcessCommandKey is the attribute Key conforming to the "process.command"
9194 // semantic conventions. It represents the command used to launch the process
9195 // (i.e. the command name). On Linux based systems, can be set to the zeroth
9196 // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
9197 // extracted from `GetCommandLineW`.
9198 //
9199 // Type: string
9200 // RequirementLevel: Recommended
9201 // Stability: Development
9202 //
9203 // Examples: "cmd/otelcol"
9204 ProcessCommandKey = attribute.Key("process.command")
9205
9206 // ProcessCommandArgsKey is the attribute Key conforming to the
9207 // "process.command_args" semantic conventions. It represents the all the
9208 // command arguments (including the command/executable itself) as received by
9209 // the process. On Linux-based systems (and some other Unixoid systems
9210 // supporting procfs), can be set according to the list of null-delimited
9211 // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
9212 // would be the full argv vector passed to `main`.
9213 //
9214 // Type: string[]
9215 // RequirementLevel: Recommended
9216 // Stability: Development
9217 //
9218 // Examples: "cmd/otecol", "--config=config.yaml"
9219 ProcessCommandArgsKey = attribute.Key("process.command_args")
9220
9221 // ProcessCommandLineKey is the attribute Key conforming to the
9222 // "process.command_line" semantic conventions. It represents the full command
9223 // used to launch the process as a single string representing the full command.
9224 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
9225 // you have to assemble it just for monitoring; use `process.command_args`
9226 // instead.
9227 //
9228 // Type: string
9229 // RequirementLevel: Recommended
9230 // Stability: Development
9231 //
9232 // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
9233 ProcessCommandLineKey = attribute.Key("process.command_line")
9234
9235 // ProcessContextSwitchTypeKey is the attribute Key conforming to the
9236 // "process.context_switch_type" semantic conventions. It represents the
9237 // specifies whether the context switches for this data point were voluntary or
9238 // involuntary.
9239 //
9240 // Type: Enum
9241 // RequirementLevel: Recommended
9242 // Stability: Development
9243 //
9244 // Examples:
9245 ProcessContextSwitchTypeKey = attribute.Key("process.context_switch_type")
9246
9247 // ProcessCreationTimeKey is the attribute Key conforming to the
9248 // "process.creation.time" semantic conventions. It represents the date and time
9249 // the process was created, in ISO 8601 format.
9250 //
9251 // Type: string
9252 // RequirementLevel: Recommended
9253 // Stability: Development
9254 //
9255 // Examples: "2023-11-21T09:25:34.853Z"
9256 ProcessCreationTimeKey = attribute.Key("process.creation.time")
9257
9258 // ProcessExecutableBuildIDGnuKey is the attribute Key conforming to the
9259 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
9260 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
9261 //
9262 // Type: string
9263 // RequirementLevel: Recommended
9264 // Stability: Development
9265 //
9266 // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
9267 ProcessExecutableBuildIDGnuKey = attribute.Key("process.executable.build_id.gnu")
9268
9269 // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the
9270 // "process.executable.build_id.go" semantic conventions. It represents the Go
9271 // build ID as retrieved by `go tool buildid <go executable>`.
9272 //
9273 // Type: string
9274 // RequirementLevel: Recommended
9275 // Stability: Development
9276 //
9277 // Examples:
9278 // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
9279 ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
9280
9281 // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the
9282 // "process.executable.build_id.htlhash" semantic conventions. It represents the
9283 // profiling specific build ID for executables. See the OTel specification for
9284 // Profiles for more information.
9285 //
9286 // Type: string
9287 // RequirementLevel: Recommended
9288 // Stability: Development
9289 //
9290 // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
9291 ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash")
9292
9293 // ProcessExecutableNameKey is the attribute Key conforming to the
9294 // "process.executable.name" semantic conventions. It represents the name of the
9295 // process executable. On Linux based systems, this SHOULD be set to the base
9296 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to
9297 // the base name of `GetProcessImageFileNameW`.
9298 //
9299 // Type: string
9300 // RequirementLevel: Recommended
9301 // Stability: Development
9302 //
9303 // Examples: "otelcol"
9304 ProcessExecutableNameKey = attribute.Key("process.executable.name")
9305
9306 // ProcessExecutablePathKey is the attribute Key conforming to the
9307 // "process.executable.path" semantic conventions. It represents the full path
9308 // to the process executable. On Linux based systems, can be set to the target
9309 // of `proc/[pid]/exe`. On Windows, can be set to the result of
9310 // `GetProcessImageFileNameW`.
9311 //
9312 // Type: string
9313 // RequirementLevel: Recommended
9314 // Stability: Development
9315 //
9316 // Examples: "/usr/bin/cmd/otelcol"
9317 ProcessExecutablePathKey = attribute.Key("process.executable.path")
9318
9319 // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
9320 // semantic conventions. It represents the exit code of the process.
9321 //
9322 // Type: int
9323 // RequirementLevel: Recommended
9324 // Stability: Development
9325 //
9326 // Examples: 127
9327 ProcessExitCodeKey = attribute.Key("process.exit.code")
9328
9329 // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
9330 // semantic conventions. It represents the date and time the process exited, in
9331 // ISO 8601 format.
9332 //
9333 // Type: string
9334 // RequirementLevel: Recommended
9335 // Stability: Development
9336 //
9337 // Examples: "2023-11-21T09:26:12.315Z"
9338 ProcessExitTimeKey = attribute.Key("process.exit.time")
9339
9340 // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
9341 // "process.group_leader.pid" semantic conventions. It represents the PID of the
9342 // process's group leader. This is also the process group ID (PGID) of the
9343 // process.
9344 //
9345 // Type: int
9346 // RequirementLevel: Recommended
9347 // Stability: Development
9348 //
9349 // Examples: 23
9350 ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
9351
9352 // ProcessInteractiveKey is the attribute Key conforming to the
9353 // "process.interactive" semantic conventions. It represents the whether the
9354 // process is connected to an interactive shell.
9355 //
9356 // Type: boolean
9357 // RequirementLevel: Recommended
9358 // Stability: Development
9359 //
9360 // Examples:
9361 ProcessInteractiveKey = attribute.Key("process.interactive")
9362
9363 // ProcessLinuxCgroupKey is the attribute Key conforming to the
9364 // "process.linux.cgroup" semantic conventions. It represents the control group
9365 // associated with the process.
9366 //
9367 // Type: string
9368 // RequirementLevel: Recommended
9369 // Stability: Development
9370 //
9371 // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope",
9372 // "0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"
9373 // Note: Control groups (cgroups) are a kernel feature used to organize and
9374 // manage process resources. This attribute provides the path(s) to the
9375 // cgroup(s) associated with the process, which should match the contents of the
9376 // [/proc/[PID]/cgroup] file.
9377 //
9378 // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html
9379 ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup")
9380
9381 // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
9382 // semantic conventions. It represents the username of the user that owns the
9383 // process.
9384 //
9385 // Type: string
9386 // RequirementLevel: Recommended
9387 // Stability: Development
9388 //
9389 // Examples: "root"
9390 ProcessOwnerKey = attribute.Key("process.owner")
9391
9392 // ProcessPagingFaultTypeKey is the attribute Key conforming to the
9393 // "process.paging.fault_type" semantic conventions. It represents the type of
9394 // page fault for this data point. Type `major` is for major/hard page faults,
9395 // and `minor` is for minor/soft page faults.
9396 //
9397 // Type: Enum
9398 // RequirementLevel: Recommended
9399 // Stability: Development
9400 //
9401 // Examples:
9402 ProcessPagingFaultTypeKey = attribute.Key("process.paging.fault_type")
9403
9404 // ProcessParentPIDKey is the attribute Key conforming to the
9405 // "process.parent_pid" semantic conventions. It represents the parent Process
9406 // identifier (PPID).
9407 //
9408 // Type: int
9409 // RequirementLevel: Recommended
9410 // Stability: Development
9411 //
9412 // Examples: 111
9413 ProcessParentPIDKey = attribute.Key("process.parent_pid")
9414
9415 // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
9416 // conventions. It represents the process identifier (PID).
9417 //
9418 // Type: int
9419 // RequirementLevel: Recommended
9420 // Stability: Development
9421 //
9422 // Examples: 1234
9423 ProcessPIDKey = attribute.Key("process.pid")
9424
9425 // ProcessRealUserIDKey is the attribute Key conforming to the
9426 // "process.real_user.id" semantic conventions. It represents the real user ID
9427 // (RUID) of the process.
9428 //
9429 // Type: int
9430 // RequirementLevel: Recommended
9431 // Stability: Development
9432 //
9433 // Examples: 1000
9434 ProcessRealUserIDKey = attribute.Key("process.real_user.id")
9435
9436 // ProcessRealUserNameKey is the attribute Key conforming to the
9437 // "process.real_user.name" semantic conventions. It represents the username of
9438 // the real user of the process.
9439 //
9440 // Type: string
9441 // RequirementLevel: Recommended
9442 // Stability: Development
9443 //
9444 // Examples: "operator"
9445 ProcessRealUserNameKey = attribute.Key("process.real_user.name")
9446
9447 // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
9448 // "process.runtime.description" semantic conventions. It represents an
9449 // additional description about the runtime of the process, for example a
9450 // specific vendor customization of the runtime environment.
9451 //
9452 // Type: string
9453 // RequirementLevel: Recommended
9454 // Stability: Development
9455 //
9456 // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
9457 ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
9458
9459 // ProcessRuntimeNameKey is the attribute Key conforming to the
9460 // "process.runtime.name" semantic conventions. It represents the name of the
9461 // runtime of this process.
9462 //
9463 // Type: string
9464 // RequirementLevel: Recommended
9465 // Stability: Development
9466 //
9467 // Examples: "OpenJDK Runtime Environment"
9468 ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
9469
9470 // ProcessRuntimeVersionKey is the attribute Key conforming to the
9471 // "process.runtime.version" semantic conventions. It represents the version of
9472 // the runtime of this process, as returned by the runtime without modification.
9473 //
9474 // Type: string
9475 // RequirementLevel: Recommended
9476 // Stability: Development
9477 //
9478 // Examples: 14.0.2
9479 ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
9480
9481 // ProcessSavedUserIDKey is the attribute Key conforming to the
9482 // "process.saved_user.id" semantic conventions. It represents the saved user ID
9483 // (SUID) of the process.
9484 //
9485 // Type: int
9486 // RequirementLevel: Recommended
9487 // Stability: Development
9488 //
9489 // Examples: 1002
9490 ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
9491
9492 // ProcessSavedUserNameKey is the attribute Key conforming to the
9493 // "process.saved_user.name" semantic conventions. It represents the username of
9494 // the saved user.
9495 //
9496 // Type: string
9497 // RequirementLevel: Recommended
9498 // Stability: Development
9499 //
9500 // Examples: "operator"
9501 ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
9502
9503 // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
9504 // "process.session_leader.pid" semantic conventions. It represents the PID of
9505 // the process's session leader. This is also the session ID (SID) of the
9506 // process.
9507 //
9508 // Type: int
9509 // RequirementLevel: Recommended
9510 // Stability: Development
9511 //
9512 // Examples: 14
9513 ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
9514
9515 // ProcessTitleKey is the attribute Key conforming to the "process.title"
9516 // semantic conventions. It represents the process title (proctitle).
9517 //
9518 // Type: string
9519 // RequirementLevel: Recommended
9520 // Stability: Development
9521 //
9522 // Examples: "cat /etc/hostname", "xfce4-session", "bash"
9523 // Note: In many Unix-like systems, process title (proctitle), is the string
9524 // that represents the name or command line of a running process, displayed by
9525 // system monitoring tools like ps, top, and htop.
9526 ProcessTitleKey = attribute.Key("process.title")
9527
9528 // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
9529 // semantic conventions. It represents the effective user ID (EUID) of the
9530 // process.
9531 //
9532 // Type: int
9533 // RequirementLevel: Recommended
9534 // Stability: Development
9535 //
9536 // Examples: 1001
9537 ProcessUserIDKey = attribute.Key("process.user.id")
9538
9539 // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
9540 // semantic conventions. It represents the username of the effective user of the
9541 // process.
9542 //
9543 // Type: string
9544 // RequirementLevel: Recommended
9545 // Stability: Development
9546 //
9547 // Examples: "root"
9548 ProcessUserNameKey = attribute.Key("process.user.name")
9549
9550 // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
9551 // conventions. It represents the virtual process identifier.
9552 //
9553 // Type: int
9554 // RequirementLevel: Recommended
9555 // Stability: Development
9556 //
9557 // Examples: 12
9558 // Note: The process ID within a PID namespace. This is not necessarily unique
9559 // across all processes on the host but it is unique within the process
9560 // namespace that the process exists within.
9561 ProcessVpidKey = attribute.Key("process.vpid")
9562
9563 // ProcessWorkingDirectoryKey is the attribute Key conforming to the
9564 // "process.working_directory" semantic conventions. It represents the working
9565 // directory of the process.
9566 //
9567 // Type: string
9568 // RequirementLevel: Recommended
9569 // Stability: Development
9570 //
9571 // Examples: "/root"
9572 ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
9573 )
9574
9575 // ProcessArgsCount returns an attribute KeyValue conforming to the
9576 // "process.args_count" semantic conventions. It represents the length of the
9577 // process.command_args array.
9578 func ProcessArgsCount(val int) attribute.KeyValue {
9579 return ProcessArgsCountKey.Int(val)
9580 }
9581
9582 // ProcessCommand returns an attribute KeyValue conforming to the
9583 // "process.command" semantic conventions. It represents the command used to
9584 // launch the process (i.e. the command name). On Linux based systems, can be set
9585 // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
9586 // first parameter extracted from `GetCommandLineW`.
9587 func ProcessCommand(val string) attribute.KeyValue {
9588 return ProcessCommandKey.String(val)
9589 }
9590
9591 // ProcessCommandArgs returns an attribute KeyValue conforming to the
9592 // "process.command_args" semantic conventions. It represents the all the command
9593 // arguments (including the command/executable itself) as received by the
9594 // process. On Linux-based systems (and some other Unixoid systems supporting
9595 // procfs), can be set according to the list of null-delimited strings extracted
9596 // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
9597 // argv vector passed to `main`.
9598 func ProcessCommandArgs(val ...string) attribute.KeyValue {
9599 return ProcessCommandArgsKey.StringSlice(val)
9600 }
9601
9602 // ProcessCommandLine returns an attribute KeyValue conforming to the
9603 // "process.command_line" semantic conventions. It represents the full command
9604 // used to launch the process as a single string representing the full command.
9605 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
9606 // you have to assemble it just for monitoring; use `process.command_args`
9607 // instead.
9608 func ProcessCommandLine(val string) attribute.KeyValue {
9609 return ProcessCommandLineKey.String(val)
9610 }
9611
9612 // ProcessCreationTime returns an attribute KeyValue conforming to the
9613 // "process.creation.time" semantic conventions. It represents the date and time
9614 // the process was created, in ISO 8601 format.
9615 func ProcessCreationTime(val string) attribute.KeyValue {
9616 return ProcessCreationTimeKey.String(val)
9617 }
9618
9619 // ProcessExecutableBuildIDGnu returns an attribute KeyValue conforming to the
9620 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
9621 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
9622 func ProcessExecutableBuildIDGnu(val string) attribute.KeyValue {
9623 return ProcessExecutableBuildIDGnuKey.String(val)
9624 }
9625
9626 // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the
9627 // "process.executable.build_id.go" semantic conventions. It represents the Go
9628 // build ID as retrieved by `go tool buildid <go executable>`.
9629 func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
9630 return ProcessExecutableBuildIDGoKey.String(val)
9631 }
9632
9633 // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to
9634 // the "process.executable.build_id.htlhash" semantic conventions. It represents
9635 // the profiling specific build ID for executables. See the OTel specification
9636 // for Profiles for more information.
9637 func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue {
9638 return ProcessExecutableBuildIDHtlhashKey.String(val)
9639 }
9640
9641 // ProcessExecutableName returns an attribute KeyValue conforming to the
9642 // "process.executable.name" semantic conventions. It represents the name of the
9643 // process executable. On Linux based systems, this SHOULD be set to the base
9644 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the
9645 // base name of `GetProcessImageFileNameW`.
9646 func ProcessExecutableName(val string) attribute.KeyValue {
9647 return ProcessExecutableNameKey.String(val)
9648 }
9649
9650 // ProcessExecutablePath returns an attribute KeyValue conforming to the
9651 // "process.executable.path" semantic conventions. It represents the full path to
9652 // the process executable. On Linux based systems, can be set to the target of
9653 // `proc/[pid]/exe`. On Windows, can be set to the result of
9654 // `GetProcessImageFileNameW`.
9655 func ProcessExecutablePath(val string) attribute.KeyValue {
9656 return ProcessExecutablePathKey.String(val)
9657 }
9658
9659 // ProcessExitCode returns an attribute KeyValue conforming to the
9660 // "process.exit.code" semantic conventions. It represents the exit code of the
9661 // process.
9662 func ProcessExitCode(val int) attribute.KeyValue {
9663 return ProcessExitCodeKey.Int(val)
9664 }
9665
9666 // ProcessExitTime returns an attribute KeyValue conforming to the
9667 // "process.exit.time" semantic conventions. It represents the date and time the
9668 // process exited, in ISO 8601 format.
9669 func ProcessExitTime(val string) attribute.KeyValue {
9670 return ProcessExitTimeKey.String(val)
9671 }
9672
9673 // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
9674 // "process.group_leader.pid" semantic conventions. It represents the PID of the
9675 // process's group leader. This is also the process group ID (PGID) of the
9676 // process.
9677 func ProcessGroupLeaderPID(val int) attribute.KeyValue {
9678 return ProcessGroupLeaderPIDKey.Int(val)
9679 }
9680
9681 // ProcessInteractive returns an attribute KeyValue conforming to the
9682 // "process.interactive" semantic conventions. It represents the whether the
9683 // process is connected to an interactive shell.
9684 func ProcessInteractive(val bool) attribute.KeyValue {
9685 return ProcessInteractiveKey.Bool(val)
9686 }
9687
9688 // ProcessLinuxCgroup returns an attribute KeyValue conforming to the
9689 // "process.linux.cgroup" semantic conventions. It represents the control group
9690 // associated with the process.
9691 func ProcessLinuxCgroup(val string) attribute.KeyValue {
9692 return ProcessLinuxCgroupKey.String(val)
9693 }
9694
9695 // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
9696 // semantic conventions. It represents the username of the user that owns the
9697 // process.
9698 func ProcessOwner(val string) attribute.KeyValue {
9699 return ProcessOwnerKey.String(val)
9700 }
9701
9702 // ProcessParentPID returns an attribute KeyValue conforming to the
9703 // "process.parent_pid" semantic conventions. It represents the parent Process
9704 // identifier (PPID).
9705 func ProcessParentPID(val int) attribute.KeyValue {
9706 return ProcessParentPIDKey.Int(val)
9707 }
9708
9709 // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
9710 // semantic conventions. It represents the process identifier (PID).
9711 func ProcessPID(val int) attribute.KeyValue {
9712 return ProcessPIDKey.Int(val)
9713 }
9714
9715 // ProcessRealUserID returns an attribute KeyValue conforming to the
9716 // "process.real_user.id" semantic conventions. It represents the real user ID
9717 // (RUID) of the process.
9718 func ProcessRealUserID(val int) attribute.KeyValue {
9719 return ProcessRealUserIDKey.Int(val)
9720 }
9721
9722 // ProcessRealUserName returns an attribute KeyValue conforming to the
9723 // "process.real_user.name" semantic conventions. It represents the username of
9724 // the real user of the process.
9725 func ProcessRealUserName(val string) attribute.KeyValue {
9726 return ProcessRealUserNameKey.String(val)
9727 }
9728
9729 // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
9730 // "process.runtime.description" semantic conventions. It represents an
9731 // additional description about the runtime of the process, for example a
9732 // specific vendor customization of the runtime environment.
9733 func ProcessRuntimeDescription(val string) attribute.KeyValue {
9734 return ProcessRuntimeDescriptionKey.String(val)
9735 }
9736
9737 // ProcessRuntimeName returns an attribute KeyValue conforming to the
9738 // "process.runtime.name" semantic conventions. It represents the name of the
9739 // runtime of this process.
9740 func ProcessRuntimeName(val string) attribute.KeyValue {
9741 return ProcessRuntimeNameKey.String(val)
9742 }
9743
9744 // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
9745 // "process.runtime.version" semantic conventions. It represents the version of
9746 // the runtime of this process, as returned by the runtime without modification.
9747 func ProcessRuntimeVersion(val string) attribute.KeyValue {
9748 return ProcessRuntimeVersionKey.String(val)
9749 }
9750
9751 // ProcessSavedUserID returns an attribute KeyValue conforming to the
9752 // "process.saved_user.id" semantic conventions. It represents the saved user ID
9753 // (SUID) of the process.
9754 func ProcessSavedUserID(val int) attribute.KeyValue {
9755 return ProcessSavedUserIDKey.Int(val)
9756 }
9757
9758 // ProcessSavedUserName returns an attribute KeyValue conforming to the
9759 // "process.saved_user.name" semantic conventions. It represents the username of
9760 // the saved user.
9761 func ProcessSavedUserName(val string) attribute.KeyValue {
9762 return ProcessSavedUserNameKey.String(val)
9763 }
9764
9765 // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
9766 // "process.session_leader.pid" semantic conventions. It represents the PID of
9767 // the process's session leader. This is also the session ID (SID) of the
9768 // process.
9769 func ProcessSessionLeaderPID(val int) attribute.KeyValue {
9770 return ProcessSessionLeaderPIDKey.Int(val)
9771 }
9772
9773 // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
9774 // semantic conventions. It represents the process title (proctitle).
9775 func ProcessTitle(val string) attribute.KeyValue {
9776 return ProcessTitleKey.String(val)
9777 }
9778
9779 // ProcessUserID returns an attribute KeyValue conforming to the
9780 // "process.user.id" semantic conventions. It represents the effective user ID
9781 // (EUID) of the process.
9782 func ProcessUserID(val int) attribute.KeyValue {
9783 return ProcessUserIDKey.Int(val)
9784 }
9785
9786 // ProcessUserName returns an attribute KeyValue conforming to the
9787 // "process.user.name" semantic conventions. It represents the username of the
9788 // effective user of the process.
9789 func ProcessUserName(val string) attribute.KeyValue {
9790 return ProcessUserNameKey.String(val)
9791 }
9792
9793 // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
9794 // semantic conventions. It represents the virtual process identifier.
9795 func ProcessVpid(val int) attribute.KeyValue {
9796 return ProcessVpidKey.Int(val)
9797 }
9798
9799 // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
9800 // "process.working_directory" semantic conventions. It represents the working
9801 // directory of the process.
9802 func ProcessWorkingDirectory(val string) attribute.KeyValue {
9803 return ProcessWorkingDirectoryKey.String(val)
9804 }
9805
9806 // Enum values for process.context_switch_type
9807 var (
9808 // voluntary
9809 // Stability: development
9810 ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
9811 // involuntary
9812 // Stability: development
9813 ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
9814 )
9815
9816 // Enum values for process.paging.fault_type
9817 var (
9818 // major
9819 // Stability: development
9820 ProcessPagingFaultTypeMajor = ProcessPagingFaultTypeKey.String("major")
9821 // minor
9822 // Stability: development
9823 ProcessPagingFaultTypeMinor = ProcessPagingFaultTypeKey.String("minor")
9824 )
9825
9826 // Namespace: profile
9827 const (
9828 // ProfileFrameTypeKey is the attribute Key conforming to the
9829 // "profile.frame.type" semantic conventions. It represents the describes the
9830 // interpreter or compiler of a single frame.
9831 //
9832 // Type: Enum
9833 // RequirementLevel: Recommended
9834 // Stability: Development
9835 //
9836 // Examples: "cpython"
9837 ProfileFrameTypeKey = attribute.Key("profile.frame.type")
9838 )
9839
9840 // Enum values for profile.frame.type
9841 var (
9842 // [.NET]
9843 //
9844 // Stability: development
9845 //
9846 // [.NET]: https://wikipedia.org/wiki/.NET
9847 ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
9848 // [JVM]
9849 //
9850 // Stability: development
9851 //
9852 // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
9853 ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
9854 // [Kernel]
9855 //
9856 // Stability: development
9857 //
9858 // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
9859 ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
9860 // [C], [C++], [Go], [Rust]
9861 //
9862 // Stability: development
9863 //
9864 // [C]: https://wikipedia.org/wiki/C_(programming_language)
9865 // [C++]: https://wikipedia.org/wiki/C%2B%2B
9866 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
9867 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
9868 ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
9869 // [Perl]
9870 //
9871 // Stability: development
9872 //
9873 // [Perl]: https://wikipedia.org/wiki/Perl
9874 ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
9875 // [PHP]
9876 //
9877 // Stability: development
9878 //
9879 // [PHP]: https://wikipedia.org/wiki/PHP
9880 ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
9881 // [Python]
9882 //
9883 // Stability: development
9884 //
9885 // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
9886 ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
9887 // [Ruby]
9888 //
9889 // Stability: development
9890 //
9891 // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
9892 ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
9893 // [V8JS]
9894 //
9895 // Stability: development
9896 //
9897 // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
9898 ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
9899 // [Erlang]
9900 //
9901 // Stability: development
9902 //
9903 // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)
9904 ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam")
9905 )
9906
9907 // Namespace: rpc
9908 const (
9909 // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the
9910 // "rpc.connect_rpc.error_code" semantic conventions. It represents the
9911 // [error codes] of the Connect request. Error codes are always string values.
9912 //
9913 // Type: Enum
9914 // RequirementLevel: Recommended
9915 // Stability: Development
9916 //
9917 // Examples:
9918 //
9919 // [error codes]: https://connectrpc.com//docs/protocol/#error-codes
9920 RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code")
9921
9922 // RPCGRPCStatusCodeKey is the attribute Key conforming to the
9923 // "rpc.grpc.status_code" semantic conventions. It represents the
9924 // [numeric status code] of the gRPC request.
9925 //
9926 // Type: Enum
9927 // RequirementLevel: Recommended
9928 // Stability: Development
9929 //
9930 // Examples:
9931 //
9932 // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md
9933 RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")
9934
9935 // RPCJsonrpcErrorCodeKey is the attribute Key conforming to the
9936 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
9937 // property of response if it is an error response.
9938 //
9939 // Type: int
9940 // RequirementLevel: Recommended
9941 // Stability: Development
9942 //
9943 // Examples: -32700, 100
9944 RPCJsonrpcErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code")
9945
9946 // RPCJsonrpcErrorMessageKey is the attribute Key conforming to the
9947 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
9948 // `error.message` property of response if it is an error response.
9949 //
9950 // Type: string
9951 // RequirementLevel: Recommended
9952 // Stability: Development
9953 //
9954 // Examples: "Parse error", "User already exists"
9955 RPCJsonrpcErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message")
9956
9957 // RPCJsonrpcRequestIDKey is the attribute Key conforming to the
9958 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id`
9959 // property of request or response. Since protocol allows id to be int, string,
9960 // `null` or missing (for notifications), value is expected to be cast to string
9961 // for simplicity. Use empty string in case of `null` value. Omit entirely if
9962 // this is a notification.
9963 //
9964 // Type: string
9965 // RequirementLevel: Recommended
9966 // Stability: Development
9967 //
9968 // Examples: "10", "request-7", ""
9969 RPCJsonrpcRequestIDKey = attribute.Key("rpc.jsonrpc.request_id")
9970
9971 // RPCJsonrpcVersionKey is the attribute Key conforming to the
9972 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol
9973 // version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0
9974 // doesn't specify this, the value can be omitted.
9975 //
9976 // Type: string
9977 // RequirementLevel: Recommended
9978 // Stability: Development
9979 //
9980 // Examples: "2.0", "1.0"
9981 RPCJsonrpcVersionKey = attribute.Key("rpc.jsonrpc.version")
9982
9983 // RPCMessageCompressedSizeKey is the attribute Key conforming to the
9984 // "rpc.message.compressed_size" semantic conventions. It represents the
9985 // compressed size of the message in bytes.
9986 //
9987 // Type: int
9988 // RequirementLevel: Recommended
9989 // Stability: Development
9990 //
9991 // Examples:
9992 RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size")
9993
9994 // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id"
9995 // semantic conventions. It MUST be calculated as two different counters
9996 // starting from `1` one for sent messages and one for received message.
9997 //
9998 // Type: int
9999 // RequirementLevel: Recommended
10000 // Stability: Development
10001 //
10002 // Examples:
10003 // Note: This way we guarantee that the values will be consistent between
10004 // different implementations.
10005 RPCMessageIDKey = attribute.Key("rpc.message.id")
10006
10007 // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type"
10008 // semantic conventions. It represents the whether this is a received or sent
10009 // message.
10010 //
10011 // Type: Enum
10012 // RequirementLevel: Recommended
10013 // Stability: Development
10014 //
10015 // Examples:
10016 RPCMessageTypeKey = attribute.Key("rpc.message.type")
10017
10018 // RPCMessageUncompressedSizeKey is the attribute Key conforming to the
10019 // "rpc.message.uncompressed_size" semantic conventions. It represents the
10020 // uncompressed size of the message in bytes.
10021 //
10022 // Type: int
10023 // RequirementLevel: Recommended
10024 // Stability: Development
10025 //
10026 // Examples:
10027 RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size")
10028
10029 // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
10030 // conventions. It represents the name of the (logical) method being called,
10031 // must be equal to the $method part in the span name.
10032 //
10033 // Type: string
10034 // RequirementLevel: Recommended
10035 // Stability: Development
10036 //
10037 // Examples: exampleMethod
10038 // Note: This is the logical name of the method from the RPC interface
10039 // perspective, which can be different from the name of any implementing
10040 // method/function. The `code.function.name` attribute may be used to store the
10041 // latter (e.g., method actually executing the call on the server side, RPC
10042 // client stub method on the client side).
10043 RPCMethodKey = attribute.Key("rpc.method")
10044
10045 // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic
10046 // conventions. It represents the full (logical) name of the service being
10047 // called, including its package name, if applicable.
10048 //
10049 // Type: string
10050 // RequirementLevel: Recommended
10051 // Stability: Development
10052 //
10053 // Examples: myservice.EchoService
10054 // Note: This is the logical name of the service from the RPC interface
10055 // perspective, which can be different from the name of any implementing class.
10056 // The `code.namespace` attribute may be used to store the latter (despite the
10057 // attribute name, it may include a class name; e.g., class with method actually
10058 // executing the call on the server side, RPC client stub class on the client
10059 // side).
10060 RPCServiceKey = attribute.Key("rpc.service")
10061
10062 // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic
10063 // conventions. It represents a string identifying the remoting system. See
10064 // below for a list of well-known identifiers.
10065 //
10066 // Type: Enum
10067 // RequirementLevel: Recommended
10068 // Stability: Development
10069 //
10070 // Examples:
10071 RPCSystemKey = attribute.Key("rpc.system")
10072 )
10073
10074 // RPCJsonrpcErrorCode returns an attribute KeyValue conforming to the
10075 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
10076 // property of response if it is an error response.
10077 func RPCJsonrpcErrorCode(val int) attribute.KeyValue {
10078 return RPCJsonrpcErrorCodeKey.Int(val)
10079 }
10080
10081 // RPCJsonrpcErrorMessage returns an attribute KeyValue conforming to the
10082 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
10083 // `error.message` property of response if it is an error response.
10084 func RPCJsonrpcErrorMessage(val string) attribute.KeyValue {
10085 return RPCJsonrpcErrorMessageKey.String(val)
10086 }
10087
10088 // RPCJsonrpcRequestID returns an attribute KeyValue conforming to the
10089 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property
10090 // of request or response. Since protocol allows id to be int, string, `null` or
10091 // missing (for notifications), value is expected to be cast to string for
10092 // simplicity. Use empty string in case of `null` value. Omit entirely if this is
10093 // a notification.
10094 func RPCJsonrpcRequestID(val string) attribute.KeyValue {
10095 return RPCJsonrpcRequestIDKey.String(val)
10096 }
10097
10098 // RPCJsonrpcVersion returns an attribute KeyValue conforming to the
10099 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol version
10100 // as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't
10101 // specify this, the value can be omitted.
10102 func RPCJsonrpcVersion(val string) attribute.KeyValue {
10103 return RPCJsonrpcVersionKey.String(val)
10104 }
10105
10106 // RPCMessageCompressedSize returns an attribute KeyValue conforming to the
10107 // "rpc.message.compressed_size" semantic conventions. It represents the
10108 // compressed size of the message in bytes.
10109 func RPCMessageCompressedSize(val int) attribute.KeyValue {
10110 return RPCMessageCompressedSizeKey.Int(val)
10111 }
10112
10113 // RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id"
10114 // semantic conventions. It MUST be calculated as two different counters starting
10115 // from `1` one for sent messages and one for received message.
10116 func RPCMessageID(val int) attribute.KeyValue {
10117 return RPCMessageIDKey.Int(val)
10118 }
10119
10120 // RPCMessageUncompressedSize returns an attribute KeyValue conforming to the
10121 // "rpc.message.uncompressed_size" semantic conventions. It represents the
10122 // uncompressed size of the message in bytes.
10123 func RPCMessageUncompressedSize(val int) attribute.KeyValue {
10124 return RPCMessageUncompressedSizeKey.Int(val)
10125 }
10126
10127 // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
10128 // semantic conventions. It represents the name of the (logical) method being
10129 // called, must be equal to the $method part in the span name.
10130 func RPCMethod(val string) attribute.KeyValue {
10131 return RPCMethodKey.String(val)
10132 }
10133
10134 // RPCService returns an attribute KeyValue conforming to the "rpc.service"
10135 // semantic conventions. It represents the full (logical) name of the service
10136 // being called, including its package name, if applicable.
10137 func RPCService(val string) attribute.KeyValue {
10138 return RPCServiceKey.String(val)
10139 }
10140
10141 // Enum values for rpc.connect_rpc.error_code
10142 var (
10143 // cancelled
10144 // Stability: development
10145 RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled")
10146 // unknown
10147 // Stability: development
10148 RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown")
10149 // invalid_argument
10150 // Stability: development
10151 RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument")
10152 // deadline_exceeded
10153 // Stability: development
10154 RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded")
10155 // not_found
10156 // Stability: development
10157 RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found")
10158 // already_exists
10159 // Stability: development
10160 RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists")
10161 // permission_denied
10162 // Stability: development
10163 RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied")
10164 // resource_exhausted
10165 // Stability: development
10166 RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted")
10167 // failed_precondition
10168 // Stability: development
10169 RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition")
10170 // aborted
10171 // Stability: development
10172 RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted")
10173 // out_of_range
10174 // Stability: development
10175 RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range")
10176 // unimplemented
10177 // Stability: development
10178 RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented")
10179 // internal
10180 // Stability: development
10181 RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal")
10182 // unavailable
10183 // Stability: development
10184 RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable")
10185 // data_loss
10186 // Stability: development
10187 RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss")
10188 // unauthenticated
10189 // Stability: development
10190 RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated")
10191 )
10192
10193 // Enum values for rpc.grpc.status_code
10194 var (
10195 // OK
10196 // Stability: development
10197 RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0)
10198 // CANCELLED
10199 // Stability: development
10200 RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1)
10201 // UNKNOWN
10202 // Stability: development
10203 RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2)
10204 // INVALID_ARGUMENT
10205 // Stability: development
10206 RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3)
10207 // DEADLINE_EXCEEDED
10208 // Stability: development
10209 RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4)
10210 // NOT_FOUND
10211 // Stability: development
10212 RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5)
10213 // ALREADY_EXISTS
10214 // Stability: development
10215 RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6)
10216 // PERMISSION_DENIED
10217 // Stability: development
10218 RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7)
10219 // RESOURCE_EXHAUSTED
10220 // Stability: development
10221 RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8)
10222 // FAILED_PRECONDITION
10223 // Stability: development
10224 RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9)
10225 // ABORTED
10226 // Stability: development
10227 RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10)
10228 // OUT_OF_RANGE
10229 // Stability: development
10230 RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11)
10231 // UNIMPLEMENTED
10232 // Stability: development
10233 RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12)
10234 // INTERNAL
10235 // Stability: development
10236 RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13)
10237 // UNAVAILABLE
10238 // Stability: development
10239 RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14)
10240 // DATA_LOSS
10241 // Stability: development
10242 RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15)
10243 // UNAUTHENTICATED
10244 // Stability: development
10245 RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16)
10246 )
10247
10248 // Enum values for rpc.message.type
10249 var (
10250 // sent
10251 // Stability: development
10252 RPCMessageTypeSent = RPCMessageTypeKey.String("SENT")
10253 // received
10254 // Stability: development
10255 RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")
10256 )
10257
10258 // Enum values for rpc.system
10259 var (
10260 // gRPC
10261 // Stability: development
10262 RPCSystemGRPC = RPCSystemKey.String("grpc")
10263 // Java RMI
10264 // Stability: development
10265 RPCSystemJavaRmi = RPCSystemKey.String("java_rmi")
10266 // .NET WCF
10267 // Stability: development
10268 RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf")
10269 // Apache Dubbo
10270 // Stability: development
10271 RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo")
10272 // Connect RPC
10273 // Stability: development
10274 RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc")
10275 )
10276
10277 // Namespace: security_rule
10278 const (
10279 // SecurityRuleCategoryKey is the attribute Key conforming to the
10280 // "security_rule.category" semantic conventions. It represents a categorization
10281 // value keyword used by the entity using the rule for detection of this event.
10282 //
10283 // Type: string
10284 // RequirementLevel: Recommended
10285 // Stability: Development
10286 //
10287 // Examples: "Attempted Information Leak"
10288 SecurityRuleCategoryKey = attribute.Key("security_rule.category")
10289
10290 // SecurityRuleDescriptionKey is the attribute Key conforming to the
10291 // "security_rule.description" semantic conventions. It represents the
10292 // description of the rule generating the event.
10293 //
10294 // Type: string
10295 // RequirementLevel: Recommended
10296 // Stability: Development
10297 //
10298 // Examples: "Block requests to public DNS over HTTPS / TLS protocols"
10299 SecurityRuleDescriptionKey = attribute.Key("security_rule.description")
10300
10301 // SecurityRuleLicenseKey is the attribute Key conforming to the
10302 // "security_rule.license" semantic conventions. It represents the name of the
10303 // license under which the rule used to generate this event is made available.
10304 //
10305 // Type: string
10306 // RequirementLevel: Recommended
10307 // Stability: Development
10308 //
10309 // Examples: "Apache 2.0"
10310 SecurityRuleLicenseKey = attribute.Key("security_rule.license")
10311
10312 // SecurityRuleNameKey is the attribute Key conforming to the
10313 // "security_rule.name" semantic conventions. It represents the name of the rule
10314 // or signature generating the event.
10315 //
10316 // Type: string
10317 // RequirementLevel: Recommended
10318 // Stability: Development
10319 //
10320 // Examples: "BLOCK_DNS_over_TLS"
10321 SecurityRuleNameKey = attribute.Key("security_rule.name")
10322
10323 // SecurityRuleReferenceKey is the attribute Key conforming to the
10324 // "security_rule.reference" semantic conventions. It represents the reference
10325 // URL to additional information about the rule used to generate this event.
10326 //
10327 // Type: string
10328 // RequirementLevel: Recommended
10329 // Stability: Development
10330 //
10331 // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS"
10332 // Note: The URL can point to the vendor’s documentation about the rule. If
10333 // that’s not available, it can also be a link to a more general page
10334 // describing this type of alert.
10335 SecurityRuleReferenceKey = attribute.Key("security_rule.reference")
10336
10337 // SecurityRuleRulesetNameKey is the attribute Key conforming to the
10338 // "security_rule.ruleset.name" semantic conventions. It represents the name of
10339 // the ruleset, policy, group, or parent category in which the rule used to
10340 // generate this event is a member.
10341 //
10342 // Type: string
10343 // RequirementLevel: Recommended
10344 // Stability: Development
10345 //
10346 // Examples: "Standard_Protocol_Filters"
10347 SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name")
10348
10349 // SecurityRuleUUIDKey is the attribute Key conforming to the
10350 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
10351 // unique within the scope of a set or group of agents, observers, or other
10352 // entities using the rule for detection of this event.
10353 //
10354 // Type: string
10355 // RequirementLevel: Recommended
10356 // Stability: Development
10357 //
10358 // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011"
10359 SecurityRuleUUIDKey = attribute.Key("security_rule.uuid")
10360
10361 // SecurityRuleVersionKey is the attribute Key conforming to the
10362 // "security_rule.version" semantic conventions. It represents the version /
10363 // revision of the rule being used for analysis.
10364 //
10365 // Type: string
10366 // RequirementLevel: Recommended
10367 // Stability: Development
10368 //
10369 // Examples: "1.0.0"
10370 SecurityRuleVersionKey = attribute.Key("security_rule.version")
10371 )
10372
10373 // SecurityRuleCategory returns an attribute KeyValue conforming to the
10374 // "security_rule.category" semantic conventions. It represents a categorization
10375 // value keyword used by the entity using the rule for detection of this event.
10376 func SecurityRuleCategory(val string) attribute.KeyValue {
10377 return SecurityRuleCategoryKey.String(val)
10378 }
10379
10380 // SecurityRuleDescription returns an attribute KeyValue conforming to the
10381 // "security_rule.description" semantic conventions. It represents the
10382 // description of the rule generating the event.
10383 func SecurityRuleDescription(val string) attribute.KeyValue {
10384 return SecurityRuleDescriptionKey.String(val)
10385 }
10386
10387 // SecurityRuleLicense returns an attribute KeyValue conforming to the
10388 // "security_rule.license" semantic conventions. It represents the name of the
10389 // license under which the rule used to generate this event is made available.
10390 func SecurityRuleLicense(val string) attribute.KeyValue {
10391 return SecurityRuleLicenseKey.String(val)
10392 }
10393
10394 // SecurityRuleName returns an attribute KeyValue conforming to the
10395 // "security_rule.name" semantic conventions. It represents the name of the rule
10396 // or signature generating the event.
10397 func SecurityRuleName(val string) attribute.KeyValue {
10398 return SecurityRuleNameKey.String(val)
10399 }
10400
10401 // SecurityRuleReference returns an attribute KeyValue conforming to the
10402 // "security_rule.reference" semantic conventions. It represents the reference
10403 // URL to additional information about the rule used to generate this event.
10404 func SecurityRuleReference(val string) attribute.KeyValue {
10405 return SecurityRuleReferenceKey.String(val)
10406 }
10407
10408 // SecurityRuleRulesetName returns an attribute KeyValue conforming to the
10409 // "security_rule.ruleset.name" semantic conventions. It represents the name of
10410 // the ruleset, policy, group, or parent category in which the rule used to
10411 // generate this event is a member.
10412 func SecurityRuleRulesetName(val string) attribute.KeyValue {
10413 return SecurityRuleRulesetNameKey.String(val)
10414 }
10415
10416 // SecurityRuleUUID returns an attribute KeyValue conforming to the
10417 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
10418 // unique within the scope of a set or group of agents, observers, or other
10419 // entities using the rule for detection of this event.
10420 func SecurityRuleUUID(val string) attribute.KeyValue {
10421 return SecurityRuleUUIDKey.String(val)
10422 }
10423
10424 // SecurityRuleVersion returns an attribute KeyValue conforming to the
10425 // "security_rule.version" semantic conventions. It represents the version /
10426 // revision of the rule being used for analysis.
10427 func SecurityRuleVersion(val string) attribute.KeyValue {
10428 return SecurityRuleVersionKey.String(val)
10429 }
10430
10431 // Namespace: server
10432 const (
10433 // ServerAddressKey is the attribute Key conforming to the "server.address"
10434 // semantic conventions. It represents the server domain name if available
10435 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
10436 //
10437 // Type: string
10438 // RequirementLevel: Recommended
10439 // Stability: Stable
10440 //
10441 // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
10442 // Note: When observed from the client side, and when communicating through an
10443 // intermediary, `server.address` SHOULD represent the server address behind any
10444 // intermediaries, for example proxies, if it's available.
10445 ServerAddressKey = attribute.Key("server.address")
10446
10447 // ServerPortKey is the attribute Key conforming to the "server.port" semantic
10448 // conventions. It represents the server port number.
10449 //
10450 // Type: int
10451 // RequirementLevel: Recommended
10452 // Stability: Stable
10453 //
10454 // Examples: 80, 8080, 443
10455 // Note: When observed from the client side, and when communicating through an
10456 // intermediary, `server.port` SHOULD represent the server port behind any
10457 // intermediaries, for example proxies, if it's available.
10458 ServerPortKey = attribute.Key("server.port")
10459 )
10460
10461 // ServerAddress returns an attribute KeyValue conforming to the "server.address"
10462 // semantic conventions. It represents the server domain name if available
10463 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
10464 func ServerAddress(val string) attribute.KeyValue {
10465 return ServerAddressKey.String(val)
10466 }
10467
10468 // ServerPort returns an attribute KeyValue conforming to the "server.port"
10469 // semantic conventions. It represents the server port number.
10470 func ServerPort(val int) attribute.KeyValue {
10471 return ServerPortKey.Int(val)
10472 }
10473
10474 // Namespace: service
10475 const (
10476 // ServiceInstanceIDKey is the attribute Key conforming to the
10477 // "service.instance.id" semantic conventions. It represents the string ID of
10478 // the service instance.
10479 //
10480 // Type: string
10481 // RequirementLevel: Recommended
10482 // Stability: Development
10483 //
10484 // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
10485 // Note: MUST be unique for each instance of the same
10486 // `service.namespace,service.name` pair (in other words
10487 // `service.namespace,service.name,service.instance.id` triplet MUST be globally
10488 // unique). The ID helps to
10489 // distinguish instances of the same service that exist at the same time (e.g.
10490 // instances of a horizontally scaled
10491 // service).
10492 //
10493 // Implementations, such as SDKs, are recommended to generate a random Version 1
10494 // or Version 4 [RFC
10495 // 4122] UUID, but are free to use an inherent unique ID as
10496 // the source of
10497 // this value if stability is desirable. In that case, the ID SHOULD be used as
10498 // source of a UUID Version 5 and
10499 // SHOULD use the following UUID as the namespace:
10500 // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
10501 //
10502 // UUIDs are typically recommended, as only an opaque value for the purposes of
10503 // identifying a service instance is
10504 // needed. Similar to what can be seen in the man page for the
10505 // [`/etc/machine-id`] file, the underlying
10506 // data, such as pod name and namespace should be treated as confidential, being
10507 // the user's choice to expose it
10508 // or not via another resource attribute.
10509 //
10510 // For applications running behind an application server (like unicorn), we do
10511 // not recommend using one identifier
10512 // for all processes participating in the application. Instead, it's recommended
10513 // each division (e.g. a worker
10514 // thread in unicorn) to have its own instance.id.
10515 //
10516 // It's not recommended for a Collector to set `service.instance.id` if it can't
10517 // unambiguously determine the
10518 // service instance that is generating that telemetry. For instance, creating an
10519 // UUID based on `pod.name` will
10520 // likely be wrong, as the Collector might not know from which container within
10521 // that pod the telemetry originated.
10522 // However, Collectors can set the `service.instance.id` if they can
10523 // unambiguously determine the service instance
10524 // for that telemetry. This is typically the case for scraping receivers, as
10525 // they know the target address and
10526 // port.
10527 //
10528 // [RFC
10529 // 4122]: https://www.ietf.org/rfc/rfc4122.txt
10530 // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html
10531 ServiceInstanceIDKey = attribute.Key("service.instance.id")
10532
10533 // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
10534 // conventions. It represents the logical name of the service.
10535 //
10536 // Type: string
10537 // RequirementLevel: Recommended
10538 // Stability: Stable
10539 //
10540 // Examples: "shoppingcart"
10541 // Note: MUST be the same for all instances of horizontally scaled services. If
10542 // the value was not specified, SDKs MUST fallback to `unknown_service:`
10543 // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
10544 // If `process.executable.name` is not available, the value MUST be set to
10545 // `unknown_service`.
10546 //
10547 // [`process.executable.name`]: process.md
10548 ServiceNameKey = attribute.Key("service.name")
10549
10550 // ServiceNamespaceKey is the attribute Key conforming to the
10551 // "service.namespace" semantic conventions. It represents a namespace for
10552 // `service.name`.
10553 //
10554 // Type: string
10555 // RequirementLevel: Recommended
10556 // Stability: Development
10557 //
10558 // Examples: "Shop"
10559 // Note: A string value having a meaning that helps to distinguish a group of
10560 // services, for example the team name that owns a group of services.
10561 // `service.name` is expected to be unique within the same namespace. If
10562 // `service.namespace` is not specified in the Resource then `service.name` is
10563 // expected to be unique for all services that have no explicit namespace
10564 // defined (so the empty/unspecified namespace is simply one more valid
10565 // namespace). Zero-length namespace string is assumed equal to unspecified
10566 // namespace.
10567 ServiceNamespaceKey = attribute.Key("service.namespace")
10568
10569 // ServiceVersionKey is the attribute Key conforming to the "service.version"
10570 // semantic conventions. It represents the version string of the service API or
10571 // implementation. The format is not defined by these conventions.
10572 //
10573 // Type: string
10574 // RequirementLevel: Recommended
10575 // Stability: Stable
10576 //
10577 // Examples: "2.0.0", "a01dbef8a"
10578 ServiceVersionKey = attribute.Key("service.version")
10579 )
10580
10581 // ServiceInstanceID returns an attribute KeyValue conforming to the
10582 // "service.instance.id" semantic conventions. It represents the string ID of the
10583 // service instance.
10584 func ServiceInstanceID(val string) attribute.KeyValue {
10585 return ServiceInstanceIDKey.String(val)
10586 }
10587
10588 // ServiceName returns an attribute KeyValue conforming to the "service.name"
10589 // semantic conventions. It represents the logical name of the service.
10590 func ServiceName(val string) attribute.KeyValue {
10591 return ServiceNameKey.String(val)
10592 }
10593
10594 // ServiceNamespace returns an attribute KeyValue conforming to the
10595 // "service.namespace" semantic conventions. It represents a namespace for
10596 // `service.name`.
10597 func ServiceNamespace(val string) attribute.KeyValue {
10598 return ServiceNamespaceKey.String(val)
10599 }
10600
10601 // ServiceVersion returns an attribute KeyValue conforming to the
10602 // "service.version" semantic conventions. It represents the version string of
10603 // the service API or implementation. The format is not defined by these
10604 // conventions.
10605 func ServiceVersion(val string) attribute.KeyValue {
10606 return ServiceVersionKey.String(val)
10607 }
10608
10609 // Namespace: session
10610 const (
10611 // SessionIDKey is the attribute Key conforming to the "session.id" semantic
10612 // conventions. It represents a unique id to identify a session.
10613 //
10614 // Type: string
10615 // RequirementLevel: Recommended
10616 // Stability: Development
10617 //
10618 // Examples: 00112233-4455-6677-8899-aabbccddeeff
10619 SessionIDKey = attribute.Key("session.id")
10620
10621 // SessionPreviousIDKey is the attribute Key conforming to the
10622 // "session.previous_id" semantic conventions. It represents the previous
10623 // `session.id` for this user, when known.
10624 //
10625 // Type: string
10626 // RequirementLevel: Recommended
10627 // Stability: Development
10628 //
10629 // Examples: 00112233-4455-6677-8899-aabbccddeeff
10630 SessionPreviousIDKey = attribute.Key("session.previous_id")
10631 )
10632
10633 // SessionID returns an attribute KeyValue conforming to the "session.id"
10634 // semantic conventions. It represents a unique id to identify a session.
10635 func SessionID(val string) attribute.KeyValue {
10636 return SessionIDKey.String(val)
10637 }
10638
10639 // SessionPreviousID returns an attribute KeyValue conforming to the
10640 // "session.previous_id" semantic conventions. It represents the previous
10641 // `session.id` for this user, when known.
10642 func SessionPreviousID(val string) attribute.KeyValue {
10643 return SessionPreviousIDKey.String(val)
10644 }
10645
10646 // Namespace: signalr
10647 const (
10648 // SignalrConnectionStatusKey is the attribute Key conforming to the
10649 // "signalr.connection.status" semantic conventions. It represents the signalR
10650 // HTTP connection closure status.
10651 //
10652 // Type: Enum
10653 // RequirementLevel: Recommended
10654 // Stability: Stable
10655 //
10656 // Examples: "app_shutdown", "timeout"
10657 SignalrConnectionStatusKey = attribute.Key("signalr.connection.status")
10658
10659 // SignalrTransportKey is the attribute Key conforming to the
10660 // "signalr.transport" semantic conventions. It represents the
10661 // [SignalR transport type].
10662 //
10663 // Type: Enum
10664 // RequirementLevel: Recommended
10665 // Stability: Stable
10666 //
10667 // Examples: "web_sockets", "long_polling"
10668 //
10669 // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
10670 SignalrTransportKey = attribute.Key("signalr.transport")
10671 )
10672
10673 // Enum values for signalr.connection.status
10674 var (
10675 // The connection was closed normally.
10676 // Stability: stable
10677 SignalrConnectionStatusNormalClosure = SignalrConnectionStatusKey.String("normal_closure")
10678 // The connection was closed due to a timeout.
10679 // Stability: stable
10680 SignalrConnectionStatusTimeout = SignalrConnectionStatusKey.String("timeout")
10681 // The connection was closed because the app is shutting down.
10682 // Stability: stable
10683 SignalrConnectionStatusAppShutdown = SignalrConnectionStatusKey.String("app_shutdown")
10684 )
10685
10686 // Enum values for signalr.transport
10687 var (
10688 // ServerSentEvents protocol
10689 // Stability: stable
10690 SignalrTransportServerSentEvents = SignalrTransportKey.String("server_sent_events")
10691 // LongPolling protocol
10692 // Stability: stable
10693 SignalrTransportLongPolling = SignalrTransportKey.String("long_polling")
10694 // WebSockets protocol
10695 // Stability: stable
10696 SignalrTransportWebSockets = SignalrTransportKey.String("web_sockets")
10697 )
10698
10699 // Namespace: source
10700 const (
10701 // SourceAddressKey is the attribute Key conforming to the "source.address"
10702 // semantic conventions. It represents the source address - domain name if
10703 // available without reverse DNS lookup; otherwise, IP address or Unix domain
10704 // socket name.
10705 //
10706 // Type: string
10707 // RequirementLevel: Recommended
10708 // Stability: Development
10709 //
10710 // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
10711 // Note: When observed from the destination side, and when communicating through
10712 // an intermediary, `source.address` SHOULD represent the source address behind
10713 // any intermediaries, for example proxies, if it's available.
10714 SourceAddressKey = attribute.Key("source.address")
10715
10716 // SourcePortKey is the attribute Key conforming to the "source.port" semantic
10717 // conventions. It represents the source port number.
10718 //
10719 // Type: int
10720 // RequirementLevel: Recommended
10721 // Stability: Development
10722 //
10723 // Examples: 3389, 2888
10724 SourcePortKey = attribute.Key("source.port")
10725 )
10726
10727 // SourceAddress returns an attribute KeyValue conforming to the "source.address"
10728 // semantic conventions. It represents the source address - domain name if
10729 // available without reverse DNS lookup; otherwise, IP address or Unix domain
10730 // socket name.
10731 func SourceAddress(val string) attribute.KeyValue {
10732 return SourceAddressKey.String(val)
10733 }
10734
10735 // SourcePort returns an attribute KeyValue conforming to the "source.port"
10736 // semantic conventions. It represents the source port number.
10737 func SourcePort(val int) attribute.KeyValue {
10738 return SourcePortKey.Int(val)
10739 }
10740
10741 // Namespace: system
10742 const (
10743 // SystemCPULogicalNumberKey is the attribute Key conforming to the
10744 // "system.cpu.logical_number" semantic conventions. It represents the
10745 // deprecated, use `cpu.logical_number` instead.
10746 //
10747 // Type: int
10748 // RequirementLevel: Recommended
10749 // Stability: Development
10750 //
10751 // Examples: 1
10752 SystemCPULogicalNumberKey = attribute.Key("system.cpu.logical_number")
10753
10754 // SystemDeviceKey is the attribute Key conforming to the "system.device"
10755 // semantic conventions. It represents the device identifier.
10756 //
10757 // Type: string
10758 // RequirementLevel: Recommended
10759 // Stability: Development
10760 //
10761 // Examples: "(identifier)"
10762 SystemDeviceKey = attribute.Key("system.device")
10763
10764 // SystemFilesystemModeKey is the attribute Key conforming to the
10765 // "system.filesystem.mode" semantic conventions. It represents the filesystem
10766 // mode.
10767 //
10768 // Type: string
10769 // RequirementLevel: Recommended
10770 // Stability: Development
10771 //
10772 // Examples: "rw, ro"
10773 SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
10774
10775 // SystemFilesystemMountpointKey is the attribute Key conforming to the
10776 // "system.filesystem.mountpoint" semantic conventions. It represents the
10777 // filesystem mount path.
10778 //
10779 // Type: string
10780 // RequirementLevel: Recommended
10781 // Stability: Development
10782 //
10783 // Examples: "/mnt/data"
10784 SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
10785
10786 // SystemFilesystemStateKey is the attribute Key conforming to the
10787 // "system.filesystem.state" semantic conventions. It represents the filesystem
10788 // state.
10789 //
10790 // Type: Enum
10791 // RequirementLevel: Recommended
10792 // Stability: Development
10793 //
10794 // Examples: "used"
10795 SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
10796
10797 // SystemFilesystemTypeKey is the attribute Key conforming to the
10798 // "system.filesystem.type" semantic conventions. It represents the filesystem
10799 // type.
10800 //
10801 // Type: Enum
10802 // RequirementLevel: Recommended
10803 // Stability: Development
10804 //
10805 // Examples: "ext4"
10806 SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
10807
10808 // SystemMemoryStateKey is the attribute Key conforming to the
10809 // "system.memory.state" semantic conventions. It represents the memory state.
10810 //
10811 // Type: Enum
10812 // RequirementLevel: Recommended
10813 // Stability: Development
10814 //
10815 // Examples: "free", "cached"
10816 SystemMemoryStateKey = attribute.Key("system.memory.state")
10817
10818 // SystemPagingDirectionKey is the attribute Key conforming to the
10819 // "system.paging.direction" semantic conventions. It represents the paging
10820 // access direction.
10821 //
10822 // Type: Enum
10823 // RequirementLevel: Recommended
10824 // Stability: Development
10825 //
10826 // Examples: "in"
10827 SystemPagingDirectionKey = attribute.Key("system.paging.direction")
10828
10829 // SystemPagingStateKey is the attribute Key conforming to the
10830 // "system.paging.state" semantic conventions. It represents the memory paging
10831 // state.
10832 //
10833 // Type: Enum
10834 // RequirementLevel: Recommended
10835 // Stability: Development
10836 //
10837 // Examples: "free"
10838 SystemPagingStateKey = attribute.Key("system.paging.state")
10839
10840 // SystemPagingTypeKey is the attribute Key conforming to the
10841 // "system.paging.type" semantic conventions. It represents the memory paging
10842 // type.
10843 //
10844 // Type: Enum
10845 // RequirementLevel: Recommended
10846 // Stability: Development
10847 //
10848 // Examples: "minor"
10849 SystemPagingTypeKey = attribute.Key("system.paging.type")
10850
10851 // SystemProcessStatusKey is the attribute Key conforming to the
10852 // "system.process.status" semantic conventions. It represents the process
10853 // state, e.g., [Linux Process State Codes].
10854 //
10855 // Type: Enum
10856 // RequirementLevel: Recommended
10857 // Stability: Development
10858 //
10859 // Examples: "running"
10860 //
10861 // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
10862 SystemProcessStatusKey = attribute.Key("system.process.status")
10863 )
10864
10865 // SystemCPULogicalNumber returns an attribute KeyValue conforming to the
10866 // "system.cpu.logical_number" semantic conventions. It represents the
10867 // deprecated, use `cpu.logical_number` instead.
10868 func SystemCPULogicalNumber(val int) attribute.KeyValue {
10869 return SystemCPULogicalNumberKey.Int(val)
10870 }
10871
10872 // SystemDevice returns an attribute KeyValue conforming to the "system.device"
10873 // semantic conventions. It represents the device identifier.
10874 func SystemDevice(val string) attribute.KeyValue {
10875 return SystemDeviceKey.String(val)
10876 }
10877
10878 // SystemFilesystemMode returns an attribute KeyValue conforming to the
10879 // "system.filesystem.mode" semantic conventions. It represents the filesystem
10880 // mode.
10881 func SystemFilesystemMode(val string) attribute.KeyValue {
10882 return SystemFilesystemModeKey.String(val)
10883 }
10884
10885 // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
10886 // "system.filesystem.mountpoint" semantic conventions. It represents the
10887 // filesystem mount path.
10888 func SystemFilesystemMountpoint(val string) attribute.KeyValue {
10889 return SystemFilesystemMountpointKey.String(val)
10890 }
10891
10892 // Enum values for system.filesystem.state
10893 var (
10894 // used
10895 // Stability: development
10896 SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
10897 // free
10898 // Stability: development
10899 SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
10900 // reserved
10901 // Stability: development
10902 SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
10903 )
10904
10905 // Enum values for system.filesystem.type
10906 var (
10907 // fat32
10908 // Stability: development
10909 SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
10910 // exfat
10911 // Stability: development
10912 SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
10913 // ntfs
10914 // Stability: development
10915 SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
10916 // refs
10917 // Stability: development
10918 SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
10919 // hfsplus
10920 // Stability: development
10921 SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
10922 // ext4
10923 // Stability: development
10924 SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
10925 )
10926
10927 // Enum values for system.memory.state
10928 var (
10929 // used
10930 // Stability: development
10931 SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
10932 // free
10933 // Stability: development
10934 SystemMemoryStateFree = SystemMemoryStateKey.String("free")
10935 // Deprecated: Removed, report shared memory usage with
10936 // `metric.system.memory.shared` metric.
10937 SystemMemoryStateShared = SystemMemoryStateKey.String("shared")
10938 // buffers
10939 // Stability: development
10940 SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
10941 // cached
10942 // Stability: development
10943 SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
10944 )
10945
10946 // Enum values for system.paging.direction
10947 var (
10948 // in
10949 // Stability: development
10950 SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
10951 // out
10952 // Stability: development
10953 SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
10954 )
10955
10956 // Enum values for system.paging.state
10957 var (
10958 // used
10959 // Stability: development
10960 SystemPagingStateUsed = SystemPagingStateKey.String("used")
10961 // free
10962 // Stability: development
10963 SystemPagingStateFree = SystemPagingStateKey.String("free")
10964 )
10965
10966 // Enum values for system.paging.type
10967 var (
10968 // major
10969 // Stability: development
10970 SystemPagingTypeMajor = SystemPagingTypeKey.String("major")
10971 // minor
10972 // Stability: development
10973 SystemPagingTypeMinor = SystemPagingTypeKey.String("minor")
10974 )
10975
10976 // Enum values for system.process.status
10977 var (
10978 // running
10979 // Stability: development
10980 SystemProcessStatusRunning = SystemProcessStatusKey.String("running")
10981 // sleeping
10982 // Stability: development
10983 SystemProcessStatusSleeping = SystemProcessStatusKey.String("sleeping")
10984 // stopped
10985 // Stability: development
10986 SystemProcessStatusStopped = SystemProcessStatusKey.String("stopped")
10987 // defunct
10988 // Stability: development
10989 SystemProcessStatusDefunct = SystemProcessStatusKey.String("defunct")
10990 )
10991
10992 // Namespace: telemetry
10993 const (
10994 // TelemetryDistroNameKey is the attribute Key conforming to the
10995 // "telemetry.distro.name" semantic conventions. It represents the name of the
10996 // auto instrumentation agent or distribution, if used.
10997 //
10998 // Type: string
10999 // RequirementLevel: Recommended
11000 // Stability: Development
11001 //
11002 // Examples: "parts-unlimited-java"
11003 // Note: Official auto instrumentation agents and distributions SHOULD set the
11004 // `telemetry.distro.name` attribute to
11005 // a string starting with `opentelemetry-`, e.g.
11006 // `opentelemetry-java-instrumentation`.
11007 TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
11008
11009 // TelemetryDistroVersionKey is the attribute Key conforming to the
11010 // "telemetry.distro.version" semantic conventions. It represents the version
11011 // string of the auto instrumentation agent or distribution, if used.
11012 //
11013 // Type: string
11014 // RequirementLevel: Recommended
11015 // Stability: Development
11016 //
11017 // Examples: "1.2.3"
11018 TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
11019
11020 // TelemetrySDKLanguageKey is the attribute Key conforming to the
11021 // "telemetry.sdk.language" semantic conventions. It represents the language of
11022 // the telemetry SDK.
11023 //
11024 // Type: Enum
11025 // RequirementLevel: Recommended
11026 // Stability: Stable
11027 //
11028 // Examples:
11029 TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
11030
11031 // TelemetrySDKNameKey is the attribute Key conforming to the
11032 // "telemetry.sdk.name" semantic conventions. It represents the name of the
11033 // telemetry SDK as defined above.
11034 //
11035 // Type: string
11036 // RequirementLevel: Recommended
11037 // Stability: Stable
11038 //
11039 // Examples: "opentelemetry"
11040 // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
11041 // `opentelemetry`.
11042 // If another SDK, like a fork or a vendor-provided implementation, is used,
11043 // this SDK MUST set the
11044 // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
11045 // this SDK's main entry point
11046 // or another suitable identifier depending on the language.
11047 // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
11048 // All custom identifiers SHOULD be stable across different versions of an
11049 // implementation.
11050 TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
11051
11052 // TelemetrySDKVersionKey is the attribute Key conforming to the
11053 // "telemetry.sdk.version" semantic conventions. It represents the version
11054 // string of the telemetry SDK.
11055 //
11056 // Type: string
11057 // RequirementLevel: Recommended
11058 // Stability: Stable
11059 //
11060 // Examples: "1.2.3"
11061 TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
11062 )
11063
11064 // TelemetryDistroName returns an attribute KeyValue conforming to the
11065 // "telemetry.distro.name" semantic conventions. It represents the name of the
11066 // auto instrumentation agent or distribution, if used.
11067 func TelemetryDistroName(val string) attribute.KeyValue {
11068 return TelemetryDistroNameKey.String(val)
11069 }
11070
11071 // TelemetryDistroVersion returns an attribute KeyValue conforming to the
11072 // "telemetry.distro.version" semantic conventions. It represents the version
11073 // string of the auto instrumentation agent or distribution, if used.
11074 func TelemetryDistroVersion(val string) attribute.KeyValue {
11075 return TelemetryDistroVersionKey.String(val)
11076 }
11077
11078 // TelemetrySDKName returns an attribute KeyValue conforming to the
11079 // "telemetry.sdk.name" semantic conventions. It represents the name of the
11080 // telemetry SDK as defined above.
11081 func TelemetrySDKName(val string) attribute.KeyValue {
11082 return TelemetrySDKNameKey.String(val)
11083 }
11084
11085 // TelemetrySDKVersion returns an attribute KeyValue conforming to the
11086 // "telemetry.sdk.version" semantic conventions. It represents the version string
11087 // of the telemetry SDK.
11088 func TelemetrySDKVersion(val string) attribute.KeyValue {
11089 return TelemetrySDKVersionKey.String(val)
11090 }
11091
11092 // Enum values for telemetry.sdk.language
11093 var (
11094 // cpp
11095 // Stability: stable
11096 TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
11097 // dotnet
11098 // Stability: stable
11099 TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
11100 // erlang
11101 // Stability: stable
11102 TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
11103 // go
11104 // Stability: stable
11105 TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
11106 // java
11107 // Stability: stable
11108 TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
11109 // nodejs
11110 // Stability: stable
11111 TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
11112 // php
11113 // Stability: stable
11114 TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
11115 // python
11116 // Stability: stable
11117 TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
11118 // ruby
11119 // Stability: stable
11120 TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
11121 // rust
11122 // Stability: stable
11123 TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
11124 // swift
11125 // Stability: stable
11126 TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
11127 // webjs
11128 // Stability: stable
11129 TelemetrySDKLanguageWebjs = TelemetrySDKLanguageKey.String("webjs")
11130 )
11131
11132 // Namespace: test
11133 const (
11134 // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
11135 // semantic conventions. It represents the fully qualified human readable name
11136 // of the [test case].
11137 //
11138 // Type: string
11139 // RequirementLevel: Recommended
11140 // Stability: Development
11141 //
11142 // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
11143 // "ExampleTestCase1_test1"
11144 //
11145 // [test case]: https://wikipedia.org/wiki/Test_case
11146 TestCaseNameKey = attribute.Key("test.case.name")
11147
11148 // TestCaseResultStatusKey is the attribute Key conforming to the
11149 // "test.case.result.status" semantic conventions. It represents the status of
11150 // the actual test case result from test execution.
11151 //
11152 // Type: Enum
11153 // RequirementLevel: Recommended
11154 // Stability: Development
11155 //
11156 // Examples: "pass", "fail"
11157 TestCaseResultStatusKey = attribute.Key("test.case.result.status")
11158
11159 // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
11160 // semantic conventions. It represents the human readable name of a [test suite]
11161 // .
11162 //
11163 // Type: string
11164 // RequirementLevel: Recommended
11165 // Stability: Development
11166 //
11167 // Examples: "TestSuite1"
11168 //
11169 // [test suite]: https://wikipedia.org/wiki/Test_suite
11170 TestSuiteNameKey = attribute.Key("test.suite.name")
11171
11172 // TestSuiteRunStatusKey is the attribute Key conforming to the
11173 // "test.suite.run.status" semantic conventions. It represents the status of the
11174 // test suite run.
11175 //
11176 // Type: Enum
11177 // RequirementLevel: Recommended
11178 // Stability: Development
11179 //
11180 // Examples: "success", "failure", "skipped", "aborted", "timed_out",
11181 // "in_progress"
11182 TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
11183 )
11184
11185 // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
11186 // semantic conventions. It represents the fully qualified human readable name of
11187 // the [test case].
11188 //
11189 // [test case]: https://wikipedia.org/wiki/Test_case
11190 func TestCaseName(val string) attribute.KeyValue {
11191 return TestCaseNameKey.String(val)
11192 }
11193
11194 // TestSuiteName returns an attribute KeyValue conforming to the
11195 // "test.suite.name" semantic conventions. It represents the human readable name
11196 // of a [test suite].
11197 //
11198 // [test suite]: https://wikipedia.org/wiki/Test_suite
11199 func TestSuiteName(val string) attribute.KeyValue {
11200 return TestSuiteNameKey.String(val)
11201 }
11202
11203 // Enum values for test.case.result.status
11204 var (
11205 // pass
11206 // Stability: development
11207 TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
11208 // fail
11209 // Stability: development
11210 TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
11211 )
11212
11213 // Enum values for test.suite.run.status
11214 var (
11215 // success
11216 // Stability: development
11217 TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
11218 // failure
11219 // Stability: development
11220 TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
11221 // skipped
11222 // Stability: development
11223 TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
11224 // aborted
11225 // Stability: development
11226 TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
11227 // timed_out
11228 // Stability: development
11229 TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
11230 // in_progress
11231 // Stability: development
11232 TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
11233 )
11234
11235 // Namespace: thread
11236 const (
11237 // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
11238 // conventions. It represents the current "managed" thread ID (as opposed to OS
11239 // thread ID).
11240 //
11241 // Type: int
11242 // RequirementLevel: Recommended
11243 // Stability: Development
11244 ThreadIDKey = attribute.Key("thread.id")
11245
11246 // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
11247 // conventions. It represents the current thread name.
11248 //
11249 // Type: string
11250 // RequirementLevel: Recommended
11251 // Stability: Development
11252 //
11253 // Examples: main
11254 ThreadNameKey = attribute.Key("thread.name")
11255 )
11256
11257 // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
11258 // conventions. It represents the current "managed" thread ID (as opposed to OS
11259 // thread ID).
11260 func ThreadID(val int) attribute.KeyValue {
11261 return ThreadIDKey.Int(val)
11262 }
11263
11264 // ThreadName returns an attribute KeyValue conforming to the "thread.name"
11265 // semantic conventions. It represents the current thread name.
11266 func ThreadName(val string) attribute.KeyValue {
11267 return ThreadNameKey.String(val)
11268 }
11269
11270 // Namespace: tls
11271 const (
11272 // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
11273 // conventions. It represents the string indicating the [cipher] used during the
11274 // current connection.
11275 //
11276 // Type: string
11277 // RequirementLevel: Recommended
11278 // Stability: Development
11279 //
11280 // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
11281 // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
11282 // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
11283 // of the [registered TLS Cipher Suits].
11284 //
11285 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
11286 // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
11287 TLSCipherKey = attribute.Key("tls.cipher")
11288
11289 // TLSClientCertificateKey is the attribute Key conforming to the
11290 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
11291 // stand-alone certificate offered by the client. This is usually
11292 // mutually-exclusive of `client.certificate_chain` since this value also exists
11293 // in that list.
11294 //
11295 // Type: string
11296 // RequirementLevel: Recommended
11297 // Stability: Development
11298 //
11299 // Examples: "MII..."
11300 TLSClientCertificateKey = attribute.Key("tls.client.certificate")
11301
11302 // TLSClientCertificateChainKey is the attribute Key conforming to the
11303 // "tls.client.certificate_chain" semantic conventions. It represents the array
11304 // of PEM-encoded certificates that make up the certificate chain offered by the
11305 // client. This is usually mutually-exclusive of `client.certificate` since that
11306 // value should be the first certificate in the chain.
11307 //
11308 // Type: string[]
11309 // RequirementLevel: Recommended
11310 // Stability: Development
11311 //
11312 // Examples: "MII...", "MI..."
11313 TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
11314
11315 // TLSClientHashMd5Key is the attribute Key conforming to the
11316 // "tls.client.hash.md5" semantic conventions. It represents the certificate
11317 // fingerprint using the MD5 digest of DER-encoded version of certificate
11318 // offered by the client. For consistency with other hash values, this value
11319 // should be formatted as an uppercase hash.
11320 //
11321 // Type: string
11322 // RequirementLevel: Recommended
11323 // Stability: Development
11324 //
11325 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
11326 TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
11327
11328 // TLSClientHashSha1Key is the attribute Key conforming to the
11329 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
11330 // fingerprint using the SHA1 digest of DER-encoded version of certificate
11331 // offered by the client. For consistency with other hash values, this value
11332 // should be formatted as an uppercase hash.
11333 //
11334 // Type: string
11335 // RequirementLevel: Recommended
11336 // Stability: Development
11337 //
11338 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
11339 TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
11340
11341 // TLSClientHashSha256Key is the attribute Key conforming to the
11342 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
11343 // fingerprint using the SHA256 digest of DER-encoded version of certificate
11344 // offered by the client. For consistency with other hash values, this value
11345 // should be formatted as an uppercase hash.
11346 //
11347 // Type: string
11348 // RequirementLevel: Recommended
11349 // Stability: Development
11350 //
11351 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
11352 TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
11353
11354 // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
11355 // semantic conventions. It represents the distinguished name of [subject] of
11356 // the issuer of the x.509 certificate presented by the client.
11357 //
11358 // Type: string
11359 // RequirementLevel: Recommended
11360 // Stability: Development
11361 //
11362 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
11363 //
11364 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
11365 TLSClientIssuerKey = attribute.Key("tls.client.issuer")
11366
11367 // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
11368 // semantic conventions. It represents a hash that identifies clients based on
11369 // how they perform an SSL/TLS handshake.
11370 //
11371 // Type: string
11372 // RequirementLevel: Recommended
11373 // Stability: Development
11374 //
11375 // Examples: "d4e5b18d6b55c71272893221c96ba240"
11376 TLSClientJa3Key = attribute.Key("tls.client.ja3")
11377
11378 // TLSClientNotAfterKey is the attribute Key conforming to the
11379 // "tls.client.not_after" semantic conventions. It represents the date/Time
11380 // indicating when client certificate is no longer considered valid.
11381 //
11382 // Type: string
11383 // RequirementLevel: Recommended
11384 // Stability: Development
11385 //
11386 // Examples: "2021-01-01T00:00:00.000Z"
11387 TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
11388
11389 // TLSClientNotBeforeKey is the attribute Key conforming to the
11390 // "tls.client.not_before" semantic conventions. It represents the date/Time
11391 // indicating when client certificate is first considered valid.
11392 //
11393 // Type: string
11394 // RequirementLevel: Recommended
11395 // Stability: Development
11396 //
11397 // Examples: "1970-01-01T00:00:00.000Z"
11398 TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
11399
11400 // TLSClientSubjectKey is the attribute Key conforming to the
11401 // "tls.client.subject" semantic conventions. It represents the distinguished
11402 // name of subject of the x.509 certificate presented by the client.
11403 //
11404 // Type: string
11405 // RequirementLevel: Recommended
11406 // Stability: Development
11407 //
11408 // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
11409 TLSClientSubjectKey = attribute.Key("tls.client.subject")
11410
11411 // TLSClientSupportedCiphersKey is the attribute Key conforming to the
11412 // "tls.client.supported_ciphers" semantic conventions. It represents the array
11413 // of ciphers offered by the client during the client hello.
11414 //
11415 // Type: string[]
11416 // RequirementLevel: Recommended
11417 // Stability: Development
11418 //
11419 // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
11420 // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
11421 TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
11422
11423 // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
11424 // conventions. It represents the string indicating the curve used for the given
11425 // cipher, when applicable.
11426 //
11427 // Type: string
11428 // RequirementLevel: Recommended
11429 // Stability: Development
11430 //
11431 // Examples: "secp256r1"
11432 TLSCurveKey = attribute.Key("tls.curve")
11433
11434 // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
11435 // semantic conventions. It represents the boolean flag indicating if the TLS
11436 // negotiation was successful and transitioned to an encrypted tunnel.
11437 //
11438 // Type: boolean
11439 // RequirementLevel: Recommended
11440 // Stability: Development
11441 //
11442 // Examples: true
11443 TLSEstablishedKey = attribute.Key("tls.established")
11444
11445 // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
11446 // semantic conventions. It represents the string indicating the protocol being
11447 // tunneled. Per the values in the [IANA registry], this string should be lower
11448 // case.
11449 //
11450 // Type: string
11451 // RequirementLevel: Recommended
11452 // Stability: Development
11453 //
11454 // Examples: "http/1.1"
11455 //
11456 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
11457 TLSNextProtocolKey = attribute.Key("tls.next_protocol")
11458
11459 // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
11460 // semantic conventions. It represents the normalized lowercase protocol name
11461 // parsed from original string of the negotiated [SSL/TLS protocol version].
11462 //
11463 // Type: Enum
11464 // RequirementLevel: Recommended
11465 // Stability: Development
11466 //
11467 // Examples:
11468 //
11469 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
11470 TLSProtocolNameKey = attribute.Key("tls.protocol.name")
11471
11472 // TLSProtocolVersionKey is the attribute Key conforming to the
11473 // "tls.protocol.version" semantic conventions. It represents the numeric part
11474 // of the version parsed from the original string of the negotiated
11475 // [SSL/TLS protocol version].
11476 //
11477 // Type: string
11478 // RequirementLevel: Recommended
11479 // Stability: Development
11480 //
11481 // Examples: "1.2", "3"
11482 //
11483 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
11484 TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
11485
11486 // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
11487 // conventions. It represents the boolean flag indicating if this TLS connection
11488 // was resumed from an existing TLS negotiation.
11489 //
11490 // Type: boolean
11491 // RequirementLevel: Recommended
11492 // Stability: Development
11493 //
11494 // Examples: true
11495 TLSResumedKey = attribute.Key("tls.resumed")
11496
11497 // TLSServerCertificateKey is the attribute Key conforming to the
11498 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
11499 // stand-alone certificate offered by the server. This is usually
11500 // mutually-exclusive of `server.certificate_chain` since this value also exists
11501 // in that list.
11502 //
11503 // Type: string
11504 // RequirementLevel: Recommended
11505 // Stability: Development
11506 //
11507 // Examples: "MII..."
11508 TLSServerCertificateKey = attribute.Key("tls.server.certificate")
11509
11510 // TLSServerCertificateChainKey is the attribute Key conforming to the
11511 // "tls.server.certificate_chain" semantic conventions. It represents the array
11512 // of PEM-encoded certificates that make up the certificate chain offered by the
11513 // server. This is usually mutually-exclusive of `server.certificate` since that
11514 // value should be the first certificate in the chain.
11515 //
11516 // Type: string[]
11517 // RequirementLevel: Recommended
11518 // Stability: Development
11519 //
11520 // Examples: "MII...", "MI..."
11521 TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
11522
11523 // TLSServerHashMd5Key is the attribute Key conforming to the
11524 // "tls.server.hash.md5" semantic conventions. It represents the certificate
11525 // fingerprint using the MD5 digest of DER-encoded version of certificate
11526 // offered by the server. For consistency with other hash values, this value
11527 // should be formatted as an uppercase hash.
11528 //
11529 // Type: string
11530 // RequirementLevel: Recommended
11531 // Stability: Development
11532 //
11533 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
11534 TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
11535
11536 // TLSServerHashSha1Key is the attribute Key conforming to the
11537 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
11538 // fingerprint using the SHA1 digest of DER-encoded version of certificate
11539 // offered by the server. For consistency with other hash values, this value
11540 // should be formatted as an uppercase hash.
11541 //
11542 // Type: string
11543 // RequirementLevel: Recommended
11544 // Stability: Development
11545 //
11546 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
11547 TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
11548
11549 // TLSServerHashSha256Key is the attribute Key conforming to the
11550 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
11551 // fingerprint using the SHA256 digest of DER-encoded version of certificate
11552 // offered by the server. For consistency with other hash values, this value
11553 // should be formatted as an uppercase hash.
11554 //
11555 // Type: string
11556 // RequirementLevel: Recommended
11557 // Stability: Development
11558 //
11559 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
11560 TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
11561
11562 // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
11563 // semantic conventions. It represents the distinguished name of [subject] of
11564 // the issuer of the x.509 certificate presented by the client.
11565 //
11566 // Type: string
11567 // RequirementLevel: Recommended
11568 // Stability: Development
11569 //
11570 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
11571 //
11572 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
11573 TLSServerIssuerKey = attribute.Key("tls.server.issuer")
11574
11575 // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
11576 // semantic conventions. It represents a hash that identifies servers based on
11577 // how they perform an SSL/TLS handshake.
11578 //
11579 // Type: string
11580 // RequirementLevel: Recommended
11581 // Stability: Development
11582 //
11583 // Examples: "d4e5b18d6b55c71272893221c96ba240"
11584 TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
11585
11586 // TLSServerNotAfterKey is the attribute Key conforming to the
11587 // "tls.server.not_after" semantic conventions. It represents the date/Time
11588 // indicating when server certificate is no longer considered valid.
11589 //
11590 // Type: string
11591 // RequirementLevel: Recommended
11592 // Stability: Development
11593 //
11594 // Examples: "2021-01-01T00:00:00.000Z"
11595 TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
11596
11597 // TLSServerNotBeforeKey is the attribute Key conforming to the
11598 // "tls.server.not_before" semantic conventions. It represents the date/Time
11599 // indicating when server certificate is first considered valid.
11600 //
11601 // Type: string
11602 // RequirementLevel: Recommended
11603 // Stability: Development
11604 //
11605 // Examples: "1970-01-01T00:00:00.000Z"
11606 TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
11607
11608 // TLSServerSubjectKey is the attribute Key conforming to the
11609 // "tls.server.subject" semantic conventions. It represents the distinguished
11610 // name of subject of the x.509 certificate presented by the server.
11611 //
11612 // Type: string
11613 // RequirementLevel: Recommended
11614 // Stability: Development
11615 //
11616 // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
11617 TLSServerSubjectKey = attribute.Key("tls.server.subject")
11618 )
11619
11620 // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
11621 // semantic conventions. It represents the string indicating the [cipher] used
11622 // during the current connection.
11623 //
11624 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
11625 func TLSCipher(val string) attribute.KeyValue {
11626 return TLSCipherKey.String(val)
11627 }
11628
11629 // TLSClientCertificate returns an attribute KeyValue conforming to the
11630 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
11631 // stand-alone certificate offered by the client. This is usually
11632 // mutually-exclusive of `client.certificate_chain` since this value also exists
11633 // in that list.
11634 func TLSClientCertificate(val string) attribute.KeyValue {
11635 return TLSClientCertificateKey.String(val)
11636 }
11637
11638 // TLSClientCertificateChain returns an attribute KeyValue conforming to the
11639 // "tls.client.certificate_chain" semantic conventions. It represents the array
11640 // of PEM-encoded certificates that make up the certificate chain offered by the
11641 // client. This is usually mutually-exclusive of `client.certificate` since that
11642 // value should be the first certificate in the chain.
11643 func TLSClientCertificateChain(val ...string) attribute.KeyValue {
11644 return TLSClientCertificateChainKey.StringSlice(val)
11645 }
11646
11647 // TLSClientHashMd5 returns an attribute KeyValue conforming to the
11648 // "tls.client.hash.md5" semantic conventions. It represents the certificate
11649 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
11650 // by the client. For consistency with other hash values, this value should be
11651 // formatted as an uppercase hash.
11652 func TLSClientHashMd5(val string) attribute.KeyValue {
11653 return TLSClientHashMd5Key.String(val)
11654 }
11655
11656 // TLSClientHashSha1 returns an attribute KeyValue conforming to the
11657 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
11658 // fingerprint using the SHA1 digest of DER-encoded version of certificate
11659 // offered by the client. For consistency with other hash values, this value
11660 // should be formatted as an uppercase hash.
11661 func TLSClientHashSha1(val string) attribute.KeyValue {
11662 return TLSClientHashSha1Key.String(val)
11663 }
11664
11665 // TLSClientHashSha256 returns an attribute KeyValue conforming to the
11666 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
11667 // fingerprint using the SHA256 digest of DER-encoded version of certificate
11668 // offered by the client. For consistency with other hash values, this value
11669 // should be formatted as an uppercase hash.
11670 func TLSClientHashSha256(val string) attribute.KeyValue {
11671 return TLSClientHashSha256Key.String(val)
11672 }
11673
11674 // TLSClientIssuer returns an attribute KeyValue conforming to the
11675 // "tls.client.issuer" semantic conventions. It represents the distinguished name
11676 // of [subject] of the issuer of the x.509 certificate presented by the client.
11677 //
11678 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
11679 func TLSClientIssuer(val string) attribute.KeyValue {
11680 return TLSClientIssuerKey.String(val)
11681 }
11682
11683 // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
11684 // semantic conventions. It represents a hash that identifies clients based on
11685 // how they perform an SSL/TLS handshake.
11686 func TLSClientJa3(val string) attribute.KeyValue {
11687 return TLSClientJa3Key.String(val)
11688 }
11689
11690 // TLSClientNotAfter returns an attribute KeyValue conforming to the
11691 // "tls.client.not_after" semantic conventions. It represents the date/Time
11692 // indicating when client certificate is no longer considered valid.
11693 func TLSClientNotAfter(val string) attribute.KeyValue {
11694 return TLSClientNotAfterKey.String(val)
11695 }
11696
11697 // TLSClientNotBefore returns an attribute KeyValue conforming to the
11698 // "tls.client.not_before" semantic conventions. It represents the date/Time
11699 // indicating when client certificate is first considered valid.
11700 func TLSClientNotBefore(val string) attribute.KeyValue {
11701 return TLSClientNotBeforeKey.String(val)
11702 }
11703
11704 // TLSClientSubject returns an attribute KeyValue conforming to the
11705 // "tls.client.subject" semantic conventions. It represents the distinguished
11706 // name of subject of the x.509 certificate presented by the client.
11707 func TLSClientSubject(val string) attribute.KeyValue {
11708 return TLSClientSubjectKey.String(val)
11709 }
11710
11711 // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
11712 // "tls.client.supported_ciphers" semantic conventions. It represents the array
11713 // of ciphers offered by the client during the client hello.
11714 func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
11715 return TLSClientSupportedCiphersKey.StringSlice(val)
11716 }
11717
11718 // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
11719 // conventions. It represents the string indicating the curve used for the given
11720 // cipher, when applicable.
11721 func TLSCurve(val string) attribute.KeyValue {
11722 return TLSCurveKey.String(val)
11723 }
11724
11725 // TLSEstablished returns an attribute KeyValue conforming to the
11726 // "tls.established" semantic conventions. It represents the boolean flag
11727 // indicating if the TLS negotiation was successful and transitioned to an
11728 // encrypted tunnel.
11729 func TLSEstablished(val bool) attribute.KeyValue {
11730 return TLSEstablishedKey.Bool(val)
11731 }
11732
11733 // TLSNextProtocol returns an attribute KeyValue conforming to the
11734 // "tls.next_protocol" semantic conventions. It represents the string indicating
11735 // the protocol being tunneled. Per the values in the [IANA registry], this
11736 // string should be lower case.
11737 //
11738 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
11739 func TLSNextProtocol(val string) attribute.KeyValue {
11740 return TLSNextProtocolKey.String(val)
11741 }
11742
11743 // TLSProtocolVersion returns an attribute KeyValue conforming to the
11744 // "tls.protocol.version" semantic conventions. It represents the numeric part of
11745 // the version parsed from the original string of the negotiated
11746 // [SSL/TLS protocol version].
11747 //
11748 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
11749 func TLSProtocolVersion(val string) attribute.KeyValue {
11750 return TLSProtocolVersionKey.String(val)
11751 }
11752
11753 // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
11754 // semantic conventions. It represents the boolean flag indicating if this TLS
11755 // connection was resumed from an existing TLS negotiation.
11756 func TLSResumed(val bool) attribute.KeyValue {
11757 return TLSResumedKey.Bool(val)
11758 }
11759
11760 // TLSServerCertificate returns an attribute KeyValue conforming to the
11761 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
11762 // stand-alone certificate offered by the server. This is usually
11763 // mutually-exclusive of `server.certificate_chain` since this value also exists
11764 // in that list.
11765 func TLSServerCertificate(val string) attribute.KeyValue {
11766 return TLSServerCertificateKey.String(val)
11767 }
11768
11769 // TLSServerCertificateChain returns an attribute KeyValue conforming to the
11770 // "tls.server.certificate_chain" semantic conventions. It represents the array
11771 // of PEM-encoded certificates that make up the certificate chain offered by the
11772 // server. This is usually mutually-exclusive of `server.certificate` since that
11773 // value should be the first certificate in the chain.
11774 func TLSServerCertificateChain(val ...string) attribute.KeyValue {
11775 return TLSServerCertificateChainKey.StringSlice(val)
11776 }
11777
11778 // TLSServerHashMd5 returns an attribute KeyValue conforming to the
11779 // "tls.server.hash.md5" semantic conventions. It represents the certificate
11780 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
11781 // by the server. For consistency with other hash values, this value should be
11782 // formatted as an uppercase hash.
11783 func TLSServerHashMd5(val string) attribute.KeyValue {
11784 return TLSServerHashMd5Key.String(val)
11785 }
11786
11787 // TLSServerHashSha1 returns an attribute KeyValue conforming to the
11788 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
11789 // fingerprint using the SHA1 digest of DER-encoded version of certificate
11790 // offered by the server. For consistency with other hash values, this value
11791 // should be formatted as an uppercase hash.
11792 func TLSServerHashSha1(val string) attribute.KeyValue {
11793 return TLSServerHashSha1Key.String(val)
11794 }
11795
11796 // TLSServerHashSha256 returns an attribute KeyValue conforming to the
11797 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
11798 // fingerprint using the SHA256 digest of DER-encoded version of certificate
11799 // offered by the server. For consistency with other hash values, this value
11800 // should be formatted as an uppercase hash.
11801 func TLSServerHashSha256(val string) attribute.KeyValue {
11802 return TLSServerHashSha256Key.String(val)
11803 }
11804
11805 // TLSServerIssuer returns an attribute KeyValue conforming to the
11806 // "tls.server.issuer" semantic conventions. It represents the distinguished name
11807 // of [subject] of the issuer of the x.509 certificate presented by the client.
11808 //
11809 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
11810 func TLSServerIssuer(val string) attribute.KeyValue {
11811 return TLSServerIssuerKey.String(val)
11812 }
11813
11814 // TLSServerJa3s returns an attribute KeyValue conforming to the
11815 // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
11816 // servers based on how they perform an SSL/TLS handshake.
11817 func TLSServerJa3s(val string) attribute.KeyValue {
11818 return TLSServerJa3sKey.String(val)
11819 }
11820
11821 // TLSServerNotAfter returns an attribute KeyValue conforming to the
11822 // "tls.server.not_after" semantic conventions. It represents the date/Time
11823 // indicating when server certificate is no longer considered valid.
11824 func TLSServerNotAfter(val string) attribute.KeyValue {
11825 return TLSServerNotAfterKey.String(val)
11826 }
11827
11828 // TLSServerNotBefore returns an attribute KeyValue conforming to the
11829 // "tls.server.not_before" semantic conventions. It represents the date/Time
11830 // indicating when server certificate is first considered valid.
11831 func TLSServerNotBefore(val string) attribute.KeyValue {
11832 return TLSServerNotBeforeKey.String(val)
11833 }
11834
11835 // TLSServerSubject returns an attribute KeyValue conforming to the
11836 // "tls.server.subject" semantic conventions. It represents the distinguished
11837 // name of subject of the x.509 certificate presented by the server.
11838 func TLSServerSubject(val string) attribute.KeyValue {
11839 return TLSServerSubjectKey.String(val)
11840 }
11841
11842 // Enum values for tls.protocol.name
11843 var (
11844 // ssl
11845 // Stability: development
11846 TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
11847 // tls
11848 // Stability: development
11849 TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
11850 )
11851
11852 // Namespace: url
11853 const (
11854 // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
11855 // conventions. It represents the domain extracted from the `url.full`, such as
11856 // "opentelemetry.io".
11857 //
11858 // Type: string
11859 // RequirementLevel: Recommended
11860 // Stability: Development
11861 //
11862 // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
11863 // "[1080:0:0:0:8:800:200C:417A]"
11864 // Note: In some cases a URL may refer to an IP and/or port directly, without a
11865 // domain name. In this case, the IP address would go to the domain field. If
11866 // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
11867 // and `]` characters should also be captured in the domain field.
11868 //
11869 // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
11870 URLDomainKey = attribute.Key("url.domain")
11871
11872 // URLExtensionKey is the attribute Key conforming to the "url.extension"
11873 // semantic conventions. It represents the file extension extracted from the
11874 // `url.full`, excluding the leading dot.
11875 //
11876 // Type: string
11877 // RequirementLevel: Recommended
11878 // Stability: Development
11879 //
11880 // Examples: "png", "gz"
11881 // Note: The file extension is only set if it exists, as not every url has a
11882 // file extension. When the file name has multiple extensions `example.tar.gz`,
11883 // only the last one should be captured `gz`, not `tar.gz`.
11884 URLExtensionKey = attribute.Key("url.extension")
11885
11886 // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
11887 // conventions. It represents the [URI fragment] component.
11888 //
11889 // Type: string
11890 // RequirementLevel: Recommended
11891 // Stability: Stable
11892 //
11893 // Examples: "SemConv"
11894 //
11895 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
11896 URLFragmentKey = attribute.Key("url.fragment")
11897
11898 // URLFullKey is the attribute Key conforming to the "url.full" semantic
11899 // conventions. It represents the absolute URL describing a network resource
11900 // according to [RFC3986].
11901 //
11902 // Type: string
11903 // RequirementLevel: Recommended
11904 // Stability: Stable
11905 //
11906 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
11907 // Note: For network calls, URL usually has
11908 // `scheme://host[:port][path][?query][#fragment]` format, where the fragment
11909 // is not transmitted over HTTP, but if it is known, it SHOULD be included
11910 // nevertheless.
11911 //
11912 // `url.full` MUST NOT contain credentials passed via URL in form of
11913 // `https://username:[email protected]/`.
11914 // In such case username and password SHOULD be redacted and attribute's value
11915 // SHOULD be `https://REDACTED:[email protected]/`.
11916 //
11917 // `url.full` SHOULD capture the absolute URL when it is available (or can be
11918 // reconstructed).
11919 //
11920 // Sensitive content provided in `url.full` SHOULD be scrubbed when
11921 // instrumentations can identify it.
11922 //
11923 //
11924 // Query string values for the following keys SHOULD be redacted by default and
11925 // replaced by the
11926 // value `REDACTED`:
11927 //
11928 // - [`AWSAccessKeyId`]
11929 // - [`Signature`]
11930 // - [`sig`]
11931 // - [`X-Goog-Signature`]
11932 //
11933 // This list is subject to change over time.
11934 //
11935 // When a query string value is redacted, the query string key SHOULD still be
11936 // preserved, e.g.
11937 // `https://www.example.com/path?color=blue&sig=REDACTED`.
11938 //
11939 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
11940 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
11941 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
11942 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
11943 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
11944 URLFullKey = attribute.Key("url.full")
11945
11946 // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
11947 // conventions. It represents the unmodified original URL as seen in the event
11948 // source.
11949 //
11950 // Type: string
11951 // RequirementLevel: Recommended
11952 // Stability: Development
11953 //
11954 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
11955 // "search?q=OpenTelemetry"
11956 // Note: In network monitoring, the observed URL may be a full URL, whereas in
11957 // access logs, the URL is often just represented as a path. This field is meant
11958 // to represent the URL as it was observed, complete or not.
11959 // `url.original` might contain credentials passed via URL in form of
11960 // `https://username:[email protected]/`. In such case password and
11961 // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
11962 URLOriginalKey = attribute.Key("url.original")
11963
11964 // URLPathKey is the attribute Key conforming to the "url.path" semantic
11965 // conventions. It represents the [URI path] component.
11966 //
11967 // Type: string
11968 // RequirementLevel: Recommended
11969 // Stability: Stable
11970 //
11971 // Examples: "/search"
11972 // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
11973 // instrumentations can identify it.
11974 //
11975 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
11976 URLPathKey = attribute.Key("url.path")
11977
11978 // URLPortKey is the attribute Key conforming to the "url.port" semantic
11979 // conventions. It represents the port extracted from the `url.full`.
11980 //
11981 // Type: int
11982 // RequirementLevel: Recommended
11983 // Stability: Development
11984 //
11985 // Examples: 443
11986 URLPortKey = attribute.Key("url.port")
11987
11988 // URLQueryKey is the attribute Key conforming to the "url.query" semantic
11989 // conventions. It represents the [URI query] component.
11990 //
11991 // Type: string
11992 // RequirementLevel: Recommended
11993 // Stability: Stable
11994 //
11995 // Examples: "q=OpenTelemetry"
11996 // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
11997 // instrumentations can identify it.
11998 //
11999 //
12000 // Query string values for the following keys SHOULD be redacted by default and
12001 // replaced by the value `REDACTED`:
12002 //
12003 // - [`AWSAccessKeyId`]
12004 // - [`Signature`]
12005 // - [`sig`]
12006 // - [`X-Goog-Signature`]
12007 //
12008 // This list is subject to change over time.
12009 //
12010 // When a query string value is redacted, the query string key SHOULD still be
12011 // preserved, e.g.
12012 // `q=OpenTelemetry&sig=REDACTED`.
12013 //
12014 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
12015 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
12016 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
12017 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
12018 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
12019 URLQueryKey = attribute.Key("url.query")
12020
12021 // URLRegisteredDomainKey is the attribute Key conforming to the
12022 // "url.registered_domain" semantic conventions. It represents the highest
12023 // registered url domain, stripped of the subdomain.
12024 //
12025 // Type: string
12026 // RequirementLevel: Recommended
12027 // Stability: Development
12028 //
12029 // Examples: "example.com", "foo.co.uk"
12030 // Note: This value can be determined precisely with the [public suffix list].
12031 // For example, the registered domain for `foo.example.com` is `example.com`.
12032 // Trying to approximate this by simply taking the last two labels will not work
12033 // well for TLDs such as `co.uk`.
12034 //
12035 // [public suffix list]: https://publicsuffix.org/
12036 URLRegisteredDomainKey = attribute.Key("url.registered_domain")
12037
12038 // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
12039 // conventions. It represents the [URI scheme] component identifying the used
12040 // protocol.
12041 //
12042 // Type: string
12043 // RequirementLevel: Recommended
12044 // Stability: Stable
12045 //
12046 // Examples: "https", "ftp", "telnet"
12047 //
12048 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
12049 URLSchemeKey = attribute.Key("url.scheme")
12050
12051 // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
12052 // semantic conventions. It represents the subdomain portion of a fully
12053 // qualified domain name includes all of the names except the host name under
12054 // the registered_domain. In a partially qualified domain, or if the
12055 // qualification level of the full name cannot be determined, subdomain contains
12056 // all of the names below the registered domain.
12057 //
12058 // Type: string
12059 // RequirementLevel: Recommended
12060 // Stability: Development
12061 //
12062 // Examples: "east", "sub2.sub1"
12063 // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
12064 // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
12065 // subdomain field should contain `sub2.sub1`, with no trailing period.
12066 URLSubdomainKey = attribute.Key("url.subdomain")
12067
12068 // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
12069 // conventions. It represents the low-cardinality template of an
12070 // [absolute path reference].
12071 //
12072 // Type: string
12073 // RequirementLevel: Recommended
12074 // Stability: Development
12075 //
12076 // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
12077 //
12078 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
12079 URLTemplateKey = attribute.Key("url.template")
12080
12081 // URLTopLevelDomainKey is the attribute Key conforming to the
12082 // "url.top_level_domain" semantic conventions. It represents the effective top
12083 // level domain (eTLD), also known as the domain suffix, is the last part of the
12084 // domain name. For example, the top level domain for example.com is `com`.
12085 //
12086 // Type: string
12087 // RequirementLevel: Recommended
12088 // Stability: Development
12089 //
12090 // Examples: "com", "co.uk"
12091 // Note: This value can be determined precisely with the [public suffix list].
12092 //
12093 // [public suffix list]: https://publicsuffix.org/
12094 URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
12095 )
12096
12097 // URLDomain returns an attribute KeyValue conforming to the "url.domain"
12098 // semantic conventions. It represents the domain extracted from the `url.full`,
12099 // such as "opentelemetry.io".
12100 func URLDomain(val string) attribute.KeyValue {
12101 return URLDomainKey.String(val)
12102 }
12103
12104 // URLExtension returns an attribute KeyValue conforming to the "url.extension"
12105 // semantic conventions. It represents the file extension extracted from the
12106 // `url.full`, excluding the leading dot.
12107 func URLExtension(val string) attribute.KeyValue {
12108 return URLExtensionKey.String(val)
12109 }
12110
12111 // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
12112 // semantic conventions. It represents the [URI fragment] component.
12113 //
12114 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
12115 func URLFragment(val string) attribute.KeyValue {
12116 return URLFragmentKey.String(val)
12117 }
12118
12119 // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
12120 // conventions. It represents the absolute URL describing a network resource
12121 // according to [RFC3986].
12122 //
12123 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
12124 func URLFull(val string) attribute.KeyValue {
12125 return URLFullKey.String(val)
12126 }
12127
12128 // URLOriginal returns an attribute KeyValue conforming to the "url.original"
12129 // semantic conventions. It represents the unmodified original URL as seen in the
12130 // event source.
12131 func URLOriginal(val string) attribute.KeyValue {
12132 return URLOriginalKey.String(val)
12133 }
12134
12135 // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
12136 // conventions. It represents the [URI path] component.
12137 //
12138 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
12139 func URLPath(val string) attribute.KeyValue {
12140 return URLPathKey.String(val)
12141 }
12142
12143 // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
12144 // conventions. It represents the port extracted from the `url.full`.
12145 func URLPort(val int) attribute.KeyValue {
12146 return URLPortKey.Int(val)
12147 }
12148
12149 // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
12150 // conventions. It represents the [URI query] component.
12151 //
12152 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
12153 func URLQuery(val string) attribute.KeyValue {
12154 return URLQueryKey.String(val)
12155 }
12156
12157 // URLRegisteredDomain returns an attribute KeyValue conforming to the
12158 // "url.registered_domain" semantic conventions. It represents the highest
12159 // registered url domain, stripped of the subdomain.
12160 func URLRegisteredDomain(val string) attribute.KeyValue {
12161 return URLRegisteredDomainKey.String(val)
12162 }
12163
12164 // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
12165 // semantic conventions. It represents the [URI scheme] component identifying the
12166 // used protocol.
12167 //
12168 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
12169 func URLScheme(val string) attribute.KeyValue {
12170 return URLSchemeKey.String(val)
12171 }
12172
12173 // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
12174 // semantic conventions. It represents the subdomain portion of a fully qualified
12175 // domain name includes all of the names except the host name under the
12176 // registered_domain. In a partially qualified domain, or if the qualification
12177 // level of the full name cannot be determined, subdomain contains all of the
12178 // names below the registered domain.
12179 func URLSubdomain(val string) attribute.KeyValue {
12180 return URLSubdomainKey.String(val)
12181 }
12182
12183 // URLTemplate returns an attribute KeyValue conforming to the "url.template"
12184 // semantic conventions. It represents the low-cardinality template of an
12185 // [absolute path reference].
12186 //
12187 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
12188 func URLTemplate(val string) attribute.KeyValue {
12189 return URLTemplateKey.String(val)
12190 }
12191
12192 // URLTopLevelDomain returns an attribute KeyValue conforming to the
12193 // "url.top_level_domain" semantic conventions. It represents the effective top
12194 // level domain (eTLD), also known as the domain suffix, is the last part of the
12195 // domain name. For example, the top level domain for example.com is `com`.
12196 func URLTopLevelDomain(val string) attribute.KeyValue {
12197 return URLTopLevelDomainKey.String(val)
12198 }
12199
12200 // Namespace: user
12201 const (
12202 // UserEmailKey is the attribute Key conforming to the "user.email" semantic
12203 // conventions. It represents the user email address.
12204 //
12205 // Type: string
12206 // RequirementLevel: Recommended
12207 // Stability: Development
12208 //
12209 // Examples: "[email protected]"
12210 UserEmailKey = attribute.Key("user.email")
12211
12212 // UserFullNameKey is the attribute Key conforming to the "user.full_name"
12213 // semantic conventions. It represents the user's full name.
12214 //
12215 // Type: string
12216 // RequirementLevel: Recommended
12217 // Stability: Development
12218 //
12219 // Examples: "Albert Einstein"
12220 UserFullNameKey = attribute.Key("user.full_name")
12221
12222 // UserHashKey is the attribute Key conforming to the "user.hash" semantic
12223 // conventions. It represents the unique user hash to correlate information for
12224 // a user in anonymized form.
12225 //
12226 // Type: string
12227 // RequirementLevel: Recommended
12228 // Stability: Development
12229 //
12230 // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
12231 // Note: Useful if `user.id` or `user.name` contain confidential information and
12232 // cannot be used.
12233 UserHashKey = attribute.Key("user.hash")
12234
12235 // UserIDKey is the attribute Key conforming to the "user.id" semantic
12236 // conventions. It represents the unique identifier of the user.
12237 //
12238 // Type: string
12239 // RequirementLevel: Recommended
12240 // Stability: Development
12241 //
12242 // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
12243 UserIDKey = attribute.Key("user.id")
12244
12245 // UserNameKey is the attribute Key conforming to the "user.name" semantic
12246 // conventions. It represents the short name or login/username of the user.
12247 //
12248 // Type: string
12249 // RequirementLevel: Recommended
12250 // Stability: Development
12251 //
12252 // Examples: "a.einstein"
12253 UserNameKey = attribute.Key("user.name")
12254
12255 // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
12256 // conventions. It represents the array of user roles at the time of the event.
12257 //
12258 // Type: string[]
12259 // RequirementLevel: Recommended
12260 // Stability: Development
12261 //
12262 // Examples: "admin", "reporting_user"
12263 UserRolesKey = attribute.Key("user.roles")
12264 )
12265
12266 // UserEmail returns an attribute KeyValue conforming to the "user.email"
12267 // semantic conventions. It represents the user email address.
12268 func UserEmail(val string) attribute.KeyValue {
12269 return UserEmailKey.String(val)
12270 }
12271
12272 // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
12273 // semantic conventions. It represents the user's full name.
12274 func UserFullName(val string) attribute.KeyValue {
12275 return UserFullNameKey.String(val)
12276 }
12277
12278 // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
12279 // conventions. It represents the unique user hash to correlate information for a
12280 // user in anonymized form.
12281 func UserHash(val string) attribute.KeyValue {
12282 return UserHashKey.String(val)
12283 }
12284
12285 // UserID returns an attribute KeyValue conforming to the "user.id" semantic
12286 // conventions. It represents the unique identifier of the user.
12287 func UserID(val string) attribute.KeyValue {
12288 return UserIDKey.String(val)
12289 }
12290
12291 // UserName returns an attribute KeyValue conforming to the "user.name" semantic
12292 // conventions. It represents the short name or login/username of the user.
12293 func UserName(val string) attribute.KeyValue {
12294 return UserNameKey.String(val)
12295 }
12296
12297 // UserRoles returns an attribute KeyValue conforming to the "user.roles"
12298 // semantic conventions. It represents the array of user roles at the time of the
12299 // event.
12300 func UserRoles(val ...string) attribute.KeyValue {
12301 return UserRolesKey.StringSlice(val)
12302 }
12303
12304 // Namespace: user_agent
12305 const (
12306 // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
12307 // semantic conventions. It represents the name of the user-agent extracted from
12308 // original. Usually refers to the browser's name.
12309 //
12310 // Type: string
12311 // RequirementLevel: Recommended
12312 // Stability: Development
12313 //
12314 // Examples: "Safari", "YourApp"
12315 // Note: [Example] of extracting browser's name from original string. In the
12316 // case of using a user-agent for non-browser products, such as microservices
12317 // with multiple names/versions inside the `user_agent.original`, the most
12318 // significant name SHOULD be selected. In such a scenario it should align with
12319 // `user_agent.version`
12320 //
12321 // [Example]: https://www.whatsmyua.info
12322 UserAgentNameKey = attribute.Key("user_agent.name")
12323
12324 // UserAgentOriginalKey is the attribute Key conforming to the
12325 // "user_agent.original" semantic conventions. It represents the value of the
12326 // [HTTP User-Agent] header sent by the client.
12327 //
12328 // Type: string
12329 // RequirementLevel: Recommended
12330 // Stability: Stable
12331 //
12332 // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
12333 // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
12334 // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
12335 // grpc-java-okhttp/1.27.2"
12336 //
12337 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
12338 UserAgentOriginalKey = attribute.Key("user_agent.original")
12339
12340 // UserAgentOSNameKey is the attribute Key conforming to the
12341 // "user_agent.os.name" semantic conventions. It represents the human readable
12342 // operating system name.
12343 //
12344 // Type: string
12345 // RequirementLevel: Recommended
12346 // Stability: Development
12347 //
12348 // Examples: "iOS", "Android", "Ubuntu"
12349 // Note: For mapping user agent strings to OS names, libraries such as
12350 // [ua-parser] can be utilized.
12351 //
12352 // [ua-parser]: https://github.com/ua-parser
12353 UserAgentOSNameKey = attribute.Key("user_agent.os.name")
12354
12355 // UserAgentOSVersionKey is the attribute Key conforming to the
12356 // "user_agent.os.version" semantic conventions. It represents the version
12357 // string of the operating system as defined in [Version Attributes].
12358 //
12359 // Type: string
12360 // RequirementLevel: Recommended
12361 // Stability: Development
12362 //
12363 // Examples: "14.2.1", "18.04.1"
12364 // Note: For mapping user agent strings to OS versions, libraries such as
12365 // [ua-parser] can be utilized.
12366 //
12367 // [Version Attributes]: /docs/resource/README.md#version-attributes
12368 // [ua-parser]: https://github.com/ua-parser
12369 UserAgentOSVersionKey = attribute.Key("user_agent.os.version")
12370
12371 // UserAgentSyntheticTypeKey is the attribute Key conforming to the
12372 // "user_agent.synthetic.type" semantic conventions. It represents the specifies
12373 // the category of synthetic traffic, such as tests or bots.
12374 //
12375 // Type: Enum
12376 // RequirementLevel: Recommended
12377 // Stability: Development
12378 //
12379 // Examples:
12380 // Note: This attribute MAY be derived from the contents of the
12381 // `user_agent.original` attribute. Components that populate the attribute are
12382 // responsible for determining what they consider to be synthetic bot or test
12383 // traffic. This attribute can either be set for self-identification purposes,
12384 // or on telemetry detected to be generated as a result of a synthetic request.
12385 // This attribute is useful for distinguishing between genuine client traffic
12386 // and synthetic traffic generated by bots or tests.
12387 UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type")
12388
12389 // UserAgentVersionKey is the attribute Key conforming to the
12390 // "user_agent.version" semantic conventions. It represents the version of the
12391 // user-agent extracted from original. Usually refers to the browser's version.
12392 //
12393 // Type: string
12394 // RequirementLevel: Recommended
12395 // Stability: Development
12396 //
12397 // Examples: "14.1.2", "1.0.0"
12398 // Note: [Example] of extracting browser's version from original string. In the
12399 // case of using a user-agent for non-browser products, such as microservices
12400 // with multiple names/versions inside the `user_agent.original`, the most
12401 // significant version SHOULD be selected. In such a scenario it should align
12402 // with `user_agent.name`
12403 //
12404 // [Example]: https://www.whatsmyua.info
12405 UserAgentVersionKey = attribute.Key("user_agent.version")
12406 )
12407
12408 // UserAgentName returns an attribute KeyValue conforming to the
12409 // "user_agent.name" semantic conventions. It represents the name of the
12410 // user-agent extracted from original. Usually refers to the browser's name.
12411 func UserAgentName(val string) attribute.KeyValue {
12412 return UserAgentNameKey.String(val)
12413 }
12414
12415 // UserAgentOriginal returns an attribute KeyValue conforming to the
12416 // "user_agent.original" semantic conventions. It represents the value of the
12417 // [HTTP User-Agent] header sent by the client.
12418 //
12419 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
12420 func UserAgentOriginal(val string) attribute.KeyValue {
12421 return UserAgentOriginalKey.String(val)
12422 }
12423
12424 // UserAgentOSName returns an attribute KeyValue conforming to the
12425 // "user_agent.os.name" semantic conventions. It represents the human readable
12426 // operating system name.
12427 func UserAgentOSName(val string) attribute.KeyValue {
12428 return UserAgentOSNameKey.String(val)
12429 }
12430
12431 // UserAgentOSVersion returns an attribute KeyValue conforming to the
12432 // "user_agent.os.version" semantic conventions. It represents the version string
12433 // of the operating system as defined in [Version Attributes].
12434 //
12435 // [Version Attributes]: /docs/resource/README.md#version-attributes
12436 func UserAgentOSVersion(val string) attribute.KeyValue {
12437 return UserAgentOSVersionKey.String(val)
12438 }
12439
12440 // UserAgentVersion returns an attribute KeyValue conforming to the
12441 // "user_agent.version" semantic conventions. It represents the version of the
12442 // user-agent extracted from original. Usually refers to the browser's version.
12443 func UserAgentVersion(val string) attribute.KeyValue {
12444 return UserAgentVersionKey.String(val)
12445 }
12446
12447 // Enum values for user_agent.synthetic.type
12448 var (
12449 // Bot source.
12450 // Stability: development
12451 UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot")
12452 // Synthetic test source.
12453 // Stability: development
12454 UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test")
12455 )
12456
12457 // Namespace: vcs
12458 const (
12459 // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id"
12460 // semantic conventions. It represents the ID of the change (pull request/merge
12461 // request/changelist) if applicable. This is usually a unique (within
12462 // repository) identifier generated by the VCS system.
12463 //
12464 // Type: string
12465 // RequirementLevel: Recommended
12466 // Stability: Development
12467 //
12468 // Examples: "123"
12469 VCSChangeIDKey = attribute.Key("vcs.change.id")
12470
12471 // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state"
12472 // semantic conventions. It represents the state of the change (pull
12473 // request/merge request/changelist).
12474 //
12475 // Type: Enum
12476 // RequirementLevel: Recommended
12477 // Stability: Development
12478 //
12479 // Examples: "open", "closed", "merged"
12480 VCSChangeStateKey = attribute.Key("vcs.change.state")
12481
12482 // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title"
12483 // semantic conventions. It represents the human readable title of the change
12484 // (pull request/merge request/changelist). This title is often a brief summary
12485 // of the change and may get merged in to a ref as the commit summary.
12486 //
12487 // Type: string
12488 // RequirementLevel: Recommended
12489 // Stability: Development
12490 //
12491 // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
12492 // dependency"
12493 VCSChangeTitleKey = attribute.Key("vcs.change.title")
12494
12495 // VCSLineChangeTypeKey is the attribute Key conforming to the
12496 // "vcs.line_change.type" semantic conventions. It represents the type of line
12497 // change being measured on a branch or change.
12498 //
12499 // Type: Enum
12500 // RequirementLevel: Recommended
12501 // Stability: Development
12502 //
12503 // Examples: "added", "removed"
12504 VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type")
12505
12506 // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name"
12507 // semantic conventions. It represents the name of the [reference] such as
12508 // **branch** or **tag** in the repository.
12509 //
12510 // Type: string
12511 // RequirementLevel: Recommended
12512 // Stability: Development
12513 //
12514 // Examples: "my-feature-branch", "tag-1-test"
12515 // Note: `base` refers to the starting point of a change. For example, `main`
12516 // would be the base reference of type branch if you've created a new
12517 // reference of type branch from it and created new commits.
12518 //
12519 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12520 VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name")
12521
12522 // VCSRefBaseRevisionKey is the attribute Key conforming to the
12523 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
12524 // literally [revised version], The revision most often refers to a commit
12525 // object in Git, or a revision number in SVN.
12526 //
12527 // Type: string
12528 // RequirementLevel: Recommended
12529 // Stability: Development
12530 //
12531 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
12532 // "main", "123", "HEAD"
12533 // Note: `base` refers to the starting point of a change. For example, `main`
12534 // would be the base reference of type branch if you've created a new
12535 // reference of type branch from it and created new commits. The
12536 // revision can be a full [hash value (see
12537 // glossary)],
12538 // of the recorded change to a ref within a repository pointing to a
12539 // commit [commit] object. It does
12540 // not necessarily have to be a hash; it can simply define a [revision
12541 // number]
12542 // which is an integer that is monotonically increasing. In cases where
12543 // it is identical to the `ref.base.name`, it SHOULD still be included.
12544 // It is up to the implementer to decide which value to set as the
12545 // revision based on the VCS system and situational context.
12546 //
12547 // [revised version]: https://www.merriam-webster.com/dictionary/revision
12548 // [hash value (see
12549 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
12550 // [commit]: https://git-scm.com/docs/git-commit
12551 // [revision
12552 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
12553 VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision")
12554
12555 // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type"
12556 // semantic conventions. It represents the type of the [reference] in the
12557 // repository.
12558 //
12559 // Type: Enum
12560 // RequirementLevel: Recommended
12561 // Stability: Development
12562 //
12563 // Examples: "branch", "tag"
12564 // Note: `base` refers to the starting point of a change. For example, `main`
12565 // would be the base reference of type branch if you've created a new
12566 // reference of type branch from it and created new commits.
12567 //
12568 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12569 VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type")
12570
12571 // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name"
12572 // semantic conventions. It represents the name of the [reference] such as
12573 // **branch** or **tag** in the repository.
12574 //
12575 // Type: string
12576 // RequirementLevel: Recommended
12577 // Stability: Development
12578 //
12579 // Examples: "my-feature-branch", "tag-1-test"
12580 // Note: `head` refers to where you are right now; the current reference at a
12581 // given time.
12582 //
12583 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12584 VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name")
12585
12586 // VCSRefHeadRevisionKey is the attribute Key conforming to the
12587 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
12588 // literally [revised version], The revision most often refers to a commit
12589 // object in Git, or a revision number in SVN.
12590 //
12591 // Type: string
12592 // RequirementLevel: Recommended
12593 // Stability: Development
12594 //
12595 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
12596 // "main", "123", "HEAD"
12597 // Note: `head` refers to where you are right now; the current reference at a
12598 // given time.The revision can be a full [hash value (see
12599 // glossary)],
12600 // of the recorded change to a ref within a repository pointing to a
12601 // commit [commit] object. It does
12602 // not necessarily have to be a hash; it can simply define a [revision
12603 // number]
12604 // which is an integer that is monotonically increasing. In cases where
12605 // it is identical to the `ref.head.name`, it SHOULD still be included.
12606 // It is up to the implementer to decide which value to set as the
12607 // revision based on the VCS system and situational context.
12608 //
12609 // [revised version]: https://www.merriam-webster.com/dictionary/revision
12610 // [hash value (see
12611 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
12612 // [commit]: https://git-scm.com/docs/git-commit
12613 // [revision
12614 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
12615 VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision")
12616
12617 // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type"
12618 // semantic conventions. It represents the type of the [reference] in the
12619 // repository.
12620 //
12621 // Type: Enum
12622 // RequirementLevel: Recommended
12623 // Stability: Development
12624 //
12625 // Examples: "branch", "tag"
12626 // Note: `head` refers to where you are right now; the current reference at a
12627 // given time.
12628 //
12629 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12630 VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type")
12631
12632 // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic
12633 // conventions. It represents the type of the [reference] in the repository.
12634 //
12635 // Type: Enum
12636 // RequirementLevel: Recommended
12637 // Stability: Development
12638 //
12639 // Examples: "branch", "tag"
12640 //
12641 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12642 VCSRefTypeKey = attribute.Key("vcs.ref.type")
12643
12644 // VCSRepositoryNameKey is the attribute Key conforming to the
12645 // "vcs.repository.name" semantic conventions. It represents the human readable
12646 // name of the repository. It SHOULD NOT include any additional identifier like
12647 // Group/SubGroup in GitLab or organization in GitHub.
12648 //
12649 // Type: string
12650 // RequirementLevel: Recommended
12651 // Stability: Development
12652 //
12653 // Examples: "semantic-conventions", "my-cool-repo"
12654 // Note: Due to it only being the name, it can clash with forks of the same
12655 // repository if collecting telemetry across multiple orgs or groups in
12656 // the same backends.
12657 VCSRepositoryNameKey = attribute.Key("vcs.repository.name")
12658
12659 // VCSRepositoryURLFullKey is the attribute Key conforming to the
12660 // "vcs.repository.url.full" semantic conventions. It represents the
12661 // [canonical URL] of the repository providing the complete HTTP(S) address in
12662 // order to locate and identify the repository through a browser.
12663 //
12664 // Type: string
12665 // RequirementLevel: Recommended
12666 // Stability: Development
12667 //
12668 // Examples:
12669 // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
12670 // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
12671 // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include
12672 // the `.git` extension.
12673 //
12674 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
12675 VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
12676
12677 // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the
12678 // "vcs.revision_delta.direction" semantic conventions. It represents the type
12679 // of revision comparison.
12680 //
12681 // Type: Enum
12682 // RequirementLevel: Recommended
12683 // Stability: Development
12684 //
12685 // Examples: "ahead", "behind"
12686 VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction")
12687 )
12688
12689 // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id"
12690 // semantic conventions. It represents the ID of the change (pull request/merge
12691 // request/changelist) if applicable. This is usually a unique (within
12692 // repository) identifier generated by the VCS system.
12693 func VCSChangeID(val string) attribute.KeyValue {
12694 return VCSChangeIDKey.String(val)
12695 }
12696
12697 // VCSChangeTitle returns an attribute KeyValue conforming to the
12698 // "vcs.change.title" semantic conventions. It represents the human readable
12699 // title of the change (pull request/merge request/changelist). This title is
12700 // often a brief summary of the change and may get merged in to a ref as the
12701 // commit summary.
12702 func VCSChangeTitle(val string) attribute.KeyValue {
12703 return VCSChangeTitleKey.String(val)
12704 }
12705
12706 // VCSRefBaseName returns an attribute KeyValue conforming to the
12707 // "vcs.ref.base.name" semantic conventions. It represents the name of the
12708 // [reference] such as **branch** or **tag** in the repository.
12709 //
12710 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12711 func VCSRefBaseName(val string) attribute.KeyValue {
12712 return VCSRefBaseNameKey.String(val)
12713 }
12714
12715 // VCSRefBaseRevision returns an attribute KeyValue conforming to the
12716 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
12717 // literally [revised version], The revision most often refers to a commit object
12718 // in Git, or a revision number in SVN.
12719 //
12720 // [revised version]: https://www.merriam-webster.com/dictionary/revision
12721 func VCSRefBaseRevision(val string) attribute.KeyValue {
12722 return VCSRefBaseRevisionKey.String(val)
12723 }
12724
12725 // VCSRefHeadName returns an attribute KeyValue conforming to the
12726 // "vcs.ref.head.name" semantic conventions. It represents the name of the
12727 // [reference] such as **branch** or **tag** in the repository.
12728 //
12729 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12730 func VCSRefHeadName(val string) attribute.KeyValue {
12731 return VCSRefHeadNameKey.String(val)
12732 }
12733
12734 // VCSRefHeadRevision returns an attribute KeyValue conforming to the
12735 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
12736 // literally [revised version], The revision most often refers to a commit object
12737 // in Git, or a revision number in SVN.
12738 //
12739 // [revised version]: https://www.merriam-webster.com/dictionary/revision
12740 func VCSRefHeadRevision(val string) attribute.KeyValue {
12741 return VCSRefHeadRevisionKey.String(val)
12742 }
12743
12744 // VCSRepositoryName returns an attribute KeyValue conforming to the
12745 // "vcs.repository.name" semantic conventions. It represents the human readable
12746 // name of the repository. It SHOULD NOT include any additional identifier like
12747 // Group/SubGroup in GitLab or organization in GitHub.
12748 func VCSRepositoryName(val string) attribute.KeyValue {
12749 return VCSRepositoryNameKey.String(val)
12750 }
12751
12752 // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
12753 // "vcs.repository.url.full" semantic conventions. It represents the
12754 // [canonical URL] of the repository providing the complete HTTP(S) address in
12755 // order to locate and identify the repository through a browser.
12756 //
12757 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
12758 func VCSRepositoryURLFull(val string) attribute.KeyValue {
12759 return VCSRepositoryURLFullKey.String(val)
12760 }
12761
12762 // Enum values for vcs.change.state
12763 var (
12764 // Open means the change is currently active and under review. It hasn't been
12765 // merged into the target branch yet, and it's still possible to make changes or
12766 // add comments.
12767 // Stability: development
12768 VCSChangeStateOpen = VCSChangeStateKey.String("open")
12769 // WIP (work-in-progress, draft) means the change is still in progress and not
12770 // yet ready for a full review. It might still undergo significant changes.
12771 // Stability: development
12772 VCSChangeStateWip = VCSChangeStateKey.String("wip")
12773 // Closed means the merge request has been closed without merging. This can
12774 // happen for various reasons, such as the changes being deemed unnecessary, the
12775 // issue being resolved in another way, or the author deciding to withdraw the
12776 // request.
12777 // Stability: development
12778 VCSChangeStateClosed = VCSChangeStateKey.String("closed")
12779 // Merged indicates that the change has been successfully integrated into the
12780 // target codebase.
12781 // Stability: development
12782 VCSChangeStateMerged = VCSChangeStateKey.String("merged")
12783 )
12784
12785 // Enum values for vcs.line_change.type
12786 var (
12787 // How many lines were added.
12788 // Stability: development
12789 VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added")
12790 // How many lines were removed.
12791 // Stability: development
12792 VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed")
12793 )
12794
12795 // Enum values for vcs.ref.base.type
12796 var (
12797 // [branch]
12798 // Stability: development
12799 //
12800 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
12801 VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch")
12802 // [tag]
12803 // Stability: development
12804 //
12805 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
12806 VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag")
12807 )
12808
12809 // Enum values for vcs.ref.head.type
12810 var (
12811 // [branch]
12812 // Stability: development
12813 //
12814 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
12815 VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch")
12816 // [tag]
12817 // Stability: development
12818 //
12819 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
12820 VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag")
12821 )
12822
12823 // Enum values for vcs.ref.type
12824 var (
12825 // [branch]
12826 // Stability: development
12827 //
12828 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
12829 VCSRefTypeBranch = VCSRefTypeKey.String("branch")
12830 // [tag]
12831 // Stability: development
12832 //
12833 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
12834 VCSRefTypeTag = VCSRefTypeKey.String("tag")
12835 )
12836
12837 // Enum values for vcs.revision_delta.direction
12838 var (
12839 // How many revisions the change is behind the target ref.
12840 // Stability: development
12841 VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind")
12842 // How many revisions the change is ahead of the target ref.
12843 // Stability: development
12844 VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead")
12845 )
12846
12847 // Namespace: webengine
12848 const (
12849 // WebEngineDescriptionKey is the attribute Key conforming to the
12850 // "webengine.description" semantic conventions. It represents the additional
12851 // description of the web engine (e.g. detailed version and edition
12852 // information).
12853 //
12854 // Type: string
12855 // RequirementLevel: Recommended
12856 // Stability: Development
12857 //
12858 // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
12859 // 2.2.2.Final"
12860 WebEngineDescriptionKey = attribute.Key("webengine.description")
12861
12862 // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
12863 // semantic conventions. It represents the name of the web engine.
12864 //
12865 // Type: string
12866 // RequirementLevel: Recommended
12867 // Stability: Development
12868 //
12869 // Examples: "WildFly"
12870 WebEngineNameKey = attribute.Key("webengine.name")
12871
12872 // WebEngineVersionKey is the attribute Key conforming to the
12873 // "webengine.version" semantic conventions. It represents the version of the
12874 // web engine.
12875 //
12876 // Type: string
12877 // RequirementLevel: Recommended
12878 // Stability: Development
12879 //
12880 // Examples: "21.0.0"
12881 WebEngineVersionKey = attribute.Key("webengine.version")
12882 )
12883
12884 // WebEngineDescription returns an attribute KeyValue conforming to the
12885 // "webengine.description" semantic conventions. It represents the additional
12886 // description of the web engine (e.g. detailed version and edition information).
12887 func WebEngineDescription(val string) attribute.KeyValue {
12888 return WebEngineDescriptionKey.String(val)
12889 }
12890
12891 // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
12892 // semantic conventions. It represents the name of the web engine.
12893 func WebEngineName(val string) attribute.KeyValue {
12894 return WebEngineNameKey.String(val)
12895 }
12896
12897 // WebEngineVersion returns an attribute KeyValue conforming to the
12898 // "webengine.version" semantic conventions. It represents the version of the web
12899 // engine.
12900 func WebEngineVersion(val string) attribute.KeyValue {
12901 return WebEngineVersionKey.String(val)
12902 }