Debian Codegraph @

semconv/v1.32.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.32.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: app
75 const (
76 // AppInstallationIDKey is the attribute Key conforming to the
77 // "app.installation.id" semantic conventions. It represents a unique identifier
78 // representing the installation of an application on a specific device.
79 //
80 // Type: string
81 // RequirementLevel: Recommended
82 // Stability: Development
83 //
84 // Examples: "2ab2916d-a51f-4ac8-80ee-45ac31a28092"
85 // Note: Its value SHOULD persist across launches of the same application
86 // installation, including through application upgrades.
87 // It SHOULD change if the application is uninstalled or if all applications of
88 // the vendor are uninstalled.
89 // Additionally, users might be able to reset this value (e.g. by clearing
90 // application data).
91 // If an app is installed multiple times on the same device (e.g. in different
92 // accounts on Android), each `app.installation.id` SHOULD have a different
93 // value.
94 // If multiple OpenTelemetry SDKs are used within the same application, they
95 // SHOULD use the same value for `app.installation.id`.
96 // Hardware IDs (e.g. serial number, IMEI, MAC address) MUST NOT be used as the
97 // `app.installation.id`.
98 //
99 // For iOS, this value SHOULD be equal to the [vendor identifier].
100 //
101 // For Android, examples of `app.installation.id` implementations include:
102 //
103 // - [Firebase Installation ID].
104 // - A globally unique UUID which is persisted across sessions in your
105 // application.
106 // - [App set ID].
107 // - [`Settings.getString(Settings.Secure.ANDROID_ID)`].
108 //
109 // More information about Android identifier best practices can be found [here]
110 // .
111 //
112 // [vendor identifier]: https://developer.apple.com/documentation/uikit/uidevice/identifierforvendor
113 // [Firebase Installation ID]: https://firebase.google.com/docs/projects/manage-installations
114 // [App set ID]: https://developer.android.com/identity/app-set-id
115 // [`Settings.getString(Settings.Secure.ANDROID_ID)`]: https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID
116 // [here]: https://developer.android.com/training/articles/user-data-ids
117 AppInstallationIDKey = attribute.Key("app.installation.id")
118 )
119
120 // AppInstallationID returns an attribute KeyValue conforming to the
121 // "app.installation.id" semantic conventions. It represents a unique identifier
122 // representing the installation of an application on a specific device.
123 func AppInstallationID(val string) attribute.KeyValue {
124 return AppInstallationIDKey.String(val)
125 }
126
127 // Namespace: artifact
128 const (
129 // ArtifactAttestationFilenameKey is the attribute Key conforming to the
130 // "artifact.attestation.filename" semantic conventions. It represents the
131 // provenance filename of the built attestation which directly relates to the
132 // build artifact filename. This filename SHOULD accompany the artifact at
133 // publish time. See the [SLSA Relationship] specification for more information.
134 //
135 // Type: string
136 // RequirementLevel: Recommended
137 // Stability: Development
138 //
139 // Examples: "golang-binary-amd64-v0.1.0.attestation",
140 // "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation",
141 // "file-name-package.tar.gz.intoto.json1"
142 //
143 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
144 ArtifactAttestationFilenameKey = attribute.Key("artifact.attestation.filename")
145
146 // ArtifactAttestationHashKey is the attribute Key conforming to the
147 // "artifact.attestation.hash" semantic conventions. It represents the full
148 // [hash value (see glossary)], of the built attestation. Some envelopes in the
149 // [software attestation space] also refer to this as the **digest**.
150 //
151 // Type: string
152 // RequirementLevel: Recommended
153 // Stability: Development
154 //
155 // Examples: "1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408"
156 //
157 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
158 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
159 ArtifactAttestationHashKey = attribute.Key("artifact.attestation.hash")
160
161 // ArtifactAttestationIDKey is the attribute Key conforming to the
162 // "artifact.attestation.id" semantic conventions. It represents the id of the
163 // build [software attestation].
164 //
165 // Type: string
166 // RequirementLevel: Recommended
167 // Stability: Development
168 //
169 // Examples: "123"
170 //
171 // [software attestation]: https://slsa.dev/attestation-model
172 ArtifactAttestationIDKey = attribute.Key("artifact.attestation.id")
173
174 // ArtifactFilenameKey is the attribute Key conforming to the
175 // "artifact.filename" semantic conventions. It represents the human readable
176 // file name of the artifact, typically generated during build and release
177 // processes. Often includes the package name and version in the file name.
178 //
179 // Type: string
180 // RequirementLevel: Recommended
181 // Stability: Development
182 //
183 // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0",
184 // "release-1.tar.gz", "file-name-package.tar.gz"
185 // Note: This file name can also act as the [Package Name]
186 // in cases where the package ecosystem maps accordingly.
187 // Additionally, the artifact [can be published]
188 // for others, but that is not a guarantee.
189 //
190 // [Package Name]: https://slsa.dev/spec/v1.0/terminology#package-model
191 // [can be published]: https://slsa.dev/spec/v1.0/terminology#software-supply-chain
192 ArtifactFilenameKey = attribute.Key("artifact.filename")
193
194 // ArtifactHashKey is the attribute Key conforming to the "artifact.hash"
195 // semantic conventions. It represents the full [hash value (see glossary)],
196 // often found in checksum.txt on a release of the artifact and used to verify
197 // package integrity.
198 //
199 // Type: string
200 // RequirementLevel: Recommended
201 // Stability: Development
202 //
203 // Examples: "9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9"
204 // Note: The specific algorithm used to create the cryptographic hash value is
205 // not defined. In situations where an artifact has multiple
206 // cryptographic hashes, it is up to the implementer to choose which
207 // hash value to set here; this should be the most secure hash algorithm
208 // that is suitable for the situation and consistent with the
209 // corresponding attestation. The implementer can then provide the other
210 // hash values through an additional set of attribute extensions as they
211 // deem necessary.
212 //
213 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
214 ArtifactHashKey = attribute.Key("artifact.hash")
215
216 // ArtifactPurlKey is the attribute Key conforming to the "artifact.purl"
217 // semantic conventions. It represents the [Package URL] of the
218 // [package artifact] provides a standard way to identify and locate the
219 // packaged artifact.
220 //
221 // Type: string
222 // RequirementLevel: Recommended
223 // Stability: Development
224 //
225 // Examples: "pkg:github/package-url/purl-spec@1209109710924",
226 // "pkg:npm/[email protected]"
227 //
228 // [Package URL]: https://github.com/package-url/purl-spec
229 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
230 ArtifactPurlKey = attribute.Key("artifact.purl")
231
232 // ArtifactVersionKey is the attribute Key conforming to the "artifact.version"
233 // semantic conventions. It represents the version of the artifact.
234 //
235 // Type: string
236 // RequirementLevel: Recommended
237 // Stability: Development
238 //
239 // Examples: "v0.1.0", "1.2.1", "122691-build"
240 ArtifactVersionKey = attribute.Key("artifact.version")
241 )
242
243 // ArtifactAttestationFilename returns an attribute KeyValue conforming to the
244 // "artifact.attestation.filename" semantic conventions. It represents the
245 // provenance filename of the built attestation which directly relates to the
246 // build artifact filename. This filename SHOULD accompany the artifact at
247 // publish time. See the [SLSA Relationship] specification for more information.
248 //
249 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
250 func ArtifactAttestationFilename(val string) attribute.KeyValue {
251 return ArtifactAttestationFilenameKey.String(val)
252 }
253
254 // ArtifactAttestationHash returns an attribute KeyValue conforming to the
255 // "artifact.attestation.hash" semantic conventions. It represents the full
256 // [hash value (see glossary)], of the built attestation. Some envelopes in the
257 // [software attestation space] also refer to this as the **digest**.
258 //
259 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
260 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
261 func ArtifactAttestationHash(val string) attribute.KeyValue {
262 return ArtifactAttestationHashKey.String(val)
263 }
264
265 // ArtifactAttestationID returns an attribute KeyValue conforming to the
266 // "artifact.attestation.id" semantic conventions. It represents the id of the
267 // build [software attestation].
268 //
269 // [software attestation]: https://slsa.dev/attestation-model
270 func ArtifactAttestationID(val string) attribute.KeyValue {
271 return ArtifactAttestationIDKey.String(val)
272 }
273
274 // ArtifactFilename returns an attribute KeyValue conforming to the
275 // "artifact.filename" semantic conventions. It represents the human readable
276 // file name of the artifact, typically generated during build and release
277 // processes. Often includes the package name and version in the file name.
278 func ArtifactFilename(val string) attribute.KeyValue {
279 return ArtifactFilenameKey.String(val)
280 }
281
282 // ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash"
283 // semantic conventions. It represents the full [hash value (see glossary)],
284 // often found in checksum.txt on a release of the artifact and used to verify
285 // package integrity.
286 //
287 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
288 func ArtifactHash(val string) attribute.KeyValue {
289 return ArtifactHashKey.String(val)
290 }
291
292 // ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl"
293 // semantic conventions. It represents the [Package URL] of the
294 // [package artifact] provides a standard way to identify and locate the packaged
295 // artifact.
296 //
297 // [Package URL]: https://github.com/package-url/purl-spec
298 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
299 func ArtifactPurl(val string) attribute.KeyValue {
300 return ArtifactPurlKey.String(val)
301 }
302
303 // ArtifactVersion returns an attribute KeyValue conforming to the
304 // "artifact.version" semantic conventions. It represents the version of the
305 // artifact.
306 func ArtifactVersion(val string) attribute.KeyValue {
307 return ArtifactVersionKey.String(val)
308 }
309
310 // Namespace: aws
311 const (
312 // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the
313 // "aws.dynamodb.attribute_definitions" semantic conventions. It represents the
314 // JSON-serialized value of each item in the `AttributeDefinitions` request
315 // field.
316 //
317 // Type: string[]
318 // RequirementLevel: Recommended
319 // Stability: Development
320 //
321 // Examples: "{ "AttributeName": "string", "AttributeType": "string" }"
322 AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions")
323
324 // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the
325 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the
326 // value of the `AttributesToGet` request parameter.
327 //
328 // Type: string[]
329 // RequirementLevel: Recommended
330 // Stability: Development
331 //
332 // Examples: "lives", "id"
333 AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get")
334
335 // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the
336 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
337 // of the `ConsistentRead` request parameter.
338 //
339 // Type: boolean
340 // RequirementLevel: Recommended
341 // Stability: Development
342 //
343 // Examples:
344 AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read")
345
346 // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the
347 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
348 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
349 //
350 // Type: string[]
351 // RequirementLevel: Recommended
352 // Stability: Development
353 //
354 // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" :
355 // { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits":
356 // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number,
357 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } },
358 // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number,
359 // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName":
360 // "string", "WriteCapacityUnits": number }"
361 AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity")
362
363 // AWSDynamoDBCountKey is the attribute Key conforming to the
364 // "aws.dynamodb.count" semantic conventions. It represents the value of the
365 // `Count` response parameter.
366 //
367 // Type: int
368 // RequirementLevel: Recommended
369 // Stability: Development
370 //
371 // Examples: 10
372 AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count")
373
374 // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the
375 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
376 // value of the `ExclusiveStartTableName` request parameter.
377 //
378 // Type: string
379 // RequirementLevel: Recommended
380 // Stability: Development
381 //
382 // Examples: "Users", "CatsTable"
383 AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table")
384
385 // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to
386 // the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It
387 // represents the JSON-serialized value of each item in the
388 // `GlobalSecondaryIndexUpdates` request field.
389 //
390 // Type: string[]
391 // RequirementLevel: Recommended
392 // Stability: Development
393 //
394 // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ {
395 // "AttributeName": "string", "KeyType": "string" } ], "Projection": {
396 // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" },
397 // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits":
398 // number } }"
399 AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates")
400
401 // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the
402 // "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents
403 // the JSON-serialized value of each item of the `GlobalSecondaryIndexes`
404 // request field.
405 //
406 // Type: string[]
407 // RequirementLevel: Recommended
408 // Stability: Development
409 //
410 // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName":
411 // "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [
412 // "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": {
413 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"
414 AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes")
415
416 // AWSDynamoDBIndexNameKey is the attribute Key conforming to the
417 // "aws.dynamodb.index_name" semantic conventions. It represents the value of
418 // the `IndexName` request parameter.
419 //
420 // Type: string
421 // RequirementLevel: Recommended
422 // Stability: Development
423 //
424 // Examples: "name_to_group"
425 AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name")
426
427 // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the
428 // "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
429 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
430 //
431 // Type: string
432 // RequirementLevel: Recommended
433 // Stability: Development
434 //
435 // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob,
436 // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" :
437 // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S":
438 // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }"
439 AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics")
440
441 // AWSDynamoDBLimitKey is the attribute Key conforming to the
442 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
443 // `Limit` request parameter.
444 //
445 // Type: int
446 // RequirementLevel: Recommended
447 // Stability: Development
448 //
449 // Examples: 10
450 AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit")
451
452 // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the
453 // "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
454 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
455 // field.
456 //
457 // Type: string[]
458 // RequirementLevel: Recommended
459 // Stability: Development
460 //
461 // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes":
462 // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string",
463 // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ],
464 // "ProjectionType": "string" } }"
465 AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes")
466
467 // AWSDynamoDBProjectionKey is the attribute Key conforming to the
468 // "aws.dynamodb.projection" semantic conventions. It represents the value of
469 // the `ProjectionExpression` request parameter.
470 //
471 // Type: string
472 // RequirementLevel: Recommended
473 // Stability: Development
474 //
475 // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems,
476 // ProductReviews"
477 AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection")
478
479 // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the
480 // "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents
481 // the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
482 //
483 // Type: double
484 // RequirementLevel: Recommended
485 // Stability: Development
486 //
487 // Examples: 1.0, 2.0
488 AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity")
489
490 // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the
491 // "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents
492 // the value of the `ProvisionedThroughput.WriteCapacityUnits` request
493 // parameter.
494 //
495 // Type: double
496 // RequirementLevel: Recommended
497 // Stability: Development
498 //
499 // Examples: 1.0, 2.0
500 AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity")
501
502 // AWSDynamoDBScanForwardKey is the attribute Key conforming to the
503 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
504 // the `ScanIndexForward` request parameter.
505 //
506 // Type: boolean
507 // RequirementLevel: Recommended
508 // Stability: Development
509 //
510 // Examples:
511 AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward")
512
513 // AWSDynamoDBScannedCountKey is the attribute Key conforming to the
514 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
515 // the `ScannedCount` response parameter.
516 //
517 // Type: int
518 // RequirementLevel: Recommended
519 // Stability: Development
520 //
521 // Examples: 50
522 AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count")
523
524 // AWSDynamoDBSegmentKey is the attribute Key conforming to the
525 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
526 // `Segment` request parameter.
527 //
528 // Type: int
529 // RequirementLevel: Recommended
530 // Stability: Development
531 //
532 // Examples: 10
533 AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment")
534
535 // AWSDynamoDBSelectKey is the attribute Key conforming to the
536 // "aws.dynamodb.select" semantic conventions. It represents the value of the
537 // `Select` request parameter.
538 //
539 // Type: string
540 // RequirementLevel: Recommended
541 // Stability: Development
542 //
543 // Examples: "ALL_ATTRIBUTES", "COUNT"
544 AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select")
545
546 // AWSDynamoDBTableCountKey is the attribute Key conforming to the
547 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
548 // items in the `TableNames` response parameter.
549 //
550 // Type: int
551 // RequirementLevel: Recommended
552 // Stability: Development
553 //
554 // Examples: 20
555 AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count")
556
557 // AWSDynamoDBTableNamesKey is the attribute Key conforming to the
558 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in
559 // the `RequestItems` object field.
560 //
561 // Type: string[]
562 // RequirementLevel: Recommended
563 // Stability: Development
564 //
565 // Examples: "Users", "Cats"
566 AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names")
567
568 // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the
569 // "aws.dynamodb.total_segments" semantic conventions. It represents the value
570 // of the `TotalSegments` request parameter.
571 //
572 // Type: int
573 // RequirementLevel: Recommended
574 // Stability: Development
575 //
576 // Examples: 100
577 AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments")
578
579 // AWSECSClusterARNKey is the attribute Key conforming to the
580 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
581 // [ECS cluster].
582 //
583 // Type: string
584 // RequirementLevel: Recommended
585 // Stability: Development
586 //
587 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
588 //
589 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
590 AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn")
591
592 // AWSECSContainerARNKey is the attribute Key conforming to the
593 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
594 // Resource Name (ARN) of an [ECS container instance].
595 //
596 // Type: string
597 // RequirementLevel: Recommended
598 // Stability: Development
599 //
600 // Examples:
601 // "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9"
602 //
603 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
604 AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn")
605
606 // AWSECSLaunchtypeKey is the attribute Key conforming to the
607 // "aws.ecs.launchtype" semantic conventions. It represents the [launch type]
608 // for an ECS task.
609 //
610 // Type: Enum
611 // RequirementLevel: Recommended
612 // Stability: Development
613 //
614 // Examples:
615 //
616 // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
617 AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype")
618
619 // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn"
620 // semantic conventions. It represents the ARN of a running [ECS task].
621 //
622 // Type: string
623 // RequirementLevel: Recommended
624 // Stability: Development
625 //
626 // Examples:
627 // "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b",
628 // "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
629 //
630 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
631 AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn")
632
633 // AWSECSTaskFamilyKey is the attribute Key conforming to the
634 // "aws.ecs.task.family" semantic conventions. It represents the family name of
635 // the [ECS task definition] used to create the ECS task.
636 //
637 // Type: string
638 // RequirementLevel: Recommended
639 // Stability: Development
640 //
641 // Examples: "opentelemetry-family"
642 //
643 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
644 AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family")
645
646 // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id"
647 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
648 // be extracted from `task.arn`.
649 //
650 // Type: string
651 // RequirementLevel: Recommended
652 // Stability: Development
653 //
654 // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b",
655 // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
656 AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id")
657
658 // AWSECSTaskRevisionKey is the attribute Key conforming to the
659 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
660 // the task definition used to create the ECS task.
661 //
662 // Type: string
663 // RequirementLevel: Recommended
664 // Stability: Development
665 //
666 // Examples: "8", "26"
667 AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision")
668
669 // AWSEKSClusterARNKey is the attribute Key conforming to the
670 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
671 // cluster.
672 //
673 // Type: string
674 // RequirementLevel: Recommended
675 // Stability: Development
676 //
677 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
678 AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn")
679
680 // AWSExtendedRequestIDKey is the attribute Key conforming to the
681 // "aws.extended_request_id" semantic conventions. It represents the AWS
682 // extended request ID as returned in the response header `x-amz-id-2`.
683 //
684 // Type: string
685 // RequirementLevel: Recommended
686 // Stability: Development
687 //
688 // Examples:
689 // "wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ="
690 AWSExtendedRequestIDKey = attribute.Key("aws.extended_request_id")
691
692 // AWSLambdaInvokedARNKey is the attribute Key conforming to the
693 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
694 // ARN as provided on the `Context` passed to the function (
695 // `Lambda-Runtime-Invoked-Function-Arn` header on the
696 // `/runtime/invocation/next` applicable).
697 //
698 // Type: string
699 // RequirementLevel: Recommended
700 // Stability: Development
701 //
702 // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias"
703 // Note: This may be different from `cloud.resource_id` if an alias is involved.
704 AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn")
705
706 // AWSLogGroupARNsKey is the attribute Key conforming to the
707 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
708 // Name(s) (ARN) of the AWS log group(s).
709 //
710 // Type: string[]
711 // RequirementLevel: Recommended
712 // Stability: Development
713 //
714 // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"
715 // Note: See the [log group ARN format documentation].
716 //
717 // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
718 AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns")
719
720 // AWSLogGroupNamesKey is the attribute Key conforming to the
721 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
722 // AWS log group(s) an application is writing to.
723 //
724 // Type: string[]
725 // RequirementLevel: Recommended
726 // Stability: Development
727 //
728 // Examples: "/aws/lambda/my-function", "opentelemetry-service"
729 // Note: Multiple log groups must be supported for cases like multi-container
730 // applications, where a single application has sidecar containers, and each
731 // write to their own log group.
732 AWSLogGroupNamesKey = attribute.Key("aws.log.group.names")
733
734 // AWSLogStreamARNsKey is the attribute Key conforming to the
735 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
736 // AWS log stream(s).
737 //
738 // Type: string[]
739 // RequirementLevel: Recommended
740 // Stability: Development
741 //
742 // Examples:
743 // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
744 // Note: See the [log stream ARN format documentation]. One log group can
745 // contain several log streams, so these ARNs necessarily identify both a log
746 // group and a log stream.
747 //
748 // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
749 AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns")
750
751 // AWSLogStreamNamesKey is the attribute Key conforming to the
752 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
753 // AWS log stream(s) an application is writing to.
754 //
755 // Type: string[]
756 // RequirementLevel: Recommended
757 // Stability: Development
758 //
759 // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
760 AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names")
761
762 // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id"
763 // semantic conventions. It represents the AWS request ID as returned in the
764 // response headers `x-amzn-requestid`, `x-amzn-request-id` or
765 // `x-amz-request-id`.
766 //
767 // Type: string
768 // RequirementLevel: Recommended
769 // Stability: Development
770 //
771 // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ"
772 AWSRequestIDKey = attribute.Key("aws.request_id")
773
774 // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket"
775 // semantic conventions. It represents the S3 bucket name the request refers to.
776 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
777 //
778 // Type: string
779 // RequirementLevel: Recommended
780 // Stability: Development
781 //
782 // Examples: "some-bucket-name"
783 // Note: The `bucket` attribute is applicable to all S3 operations that
784 // reference a bucket, i.e. that require the bucket name as a mandatory
785 // parameter.
786 // This applies to almost all S3 operations except `list-buckets`.
787 //
788 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
789 AWSS3BucketKey = attribute.Key("aws.s3.bucket")
790
791 // AWSS3CopySourceKey is the attribute Key conforming to the
792 // "aws.s3.copy_source" semantic conventions. It represents the source object
793 // (in the form `bucket`/`key`) for the copy operation.
794 //
795 // Type: string
796 // RequirementLevel: Recommended
797 // Stability: Development
798 //
799 // Examples: "someFile.yml"
800 // Note: The `copy_source` attribute applies to S3 copy operations and
801 // corresponds to the `--copy-source` parameter
802 // of the [copy-object operation within the S3 API].
803 // This applies in particular to the following operations:
804 //
805 // - [copy-object]
806 // - [upload-part-copy]
807 //
808 //
809 // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
810 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
811 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
812 AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source")
813
814 // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete"
815 // semantic conventions. It represents the delete request container that
816 // specifies the objects to be deleted.
817 //
818 // Type: string
819 // RequirementLevel: Recommended
820 // Stability: Development
821 //
822 // Examples:
823 // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"
824 // Note: The `delete` attribute is only applicable to the [delete-object]
825 // operation.
826 // The `delete` attribute corresponds to the `--delete` parameter of the
827 // [delete-objects operation within the S3 API].
828 //
829 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
830 // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html
831 AWSS3DeleteKey = attribute.Key("aws.s3.delete")
832
833 // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic
834 // conventions. It represents the S3 object key the request refers to.
835 // Corresponds to the `--key` parameter of the [S3 API] operations.
836 //
837 // Type: string
838 // RequirementLevel: Recommended
839 // Stability: Development
840 //
841 // Examples: "someFile.yml"
842 // Note: The `key` attribute is applicable to all object-related S3 operations,
843 // i.e. that require the object key as a mandatory parameter.
844 // This applies in particular to the following operations:
845 //
846 // - [copy-object]
847 // - [delete-object]
848 // - [get-object]
849 // - [head-object]
850 // - [put-object]
851 // - [restore-object]
852 // - [select-object-content]
853 // - [abort-multipart-upload]
854 // - [complete-multipart-upload]
855 // - [create-multipart-upload]
856 // - [list-parts]
857 // - [upload-part]
858 // - [upload-part-copy]
859 //
860 //
861 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
862 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
863 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
864 // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html
865 // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html
866 // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html
867 // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html
868 // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html
869 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
870 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
871 // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html
872 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
873 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
874 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
875 AWSS3KeyKey = attribute.Key("aws.s3.key")
876
877 // AWSS3PartNumberKey is the attribute Key conforming to the
878 // "aws.s3.part_number" semantic conventions. It represents the part number of
879 // the part being uploaded in a multipart-upload operation. This is a positive
880 // integer between 1 and 10,000.
881 //
882 // Type: int
883 // RequirementLevel: Recommended
884 // Stability: Development
885 //
886 // Examples: 3456
887 // Note: The `part_number` attribute is only applicable to the [upload-part]
888 // and [upload-part-copy] operations.
889 // The `part_number` attribute corresponds to the `--part-number` parameter of
890 // the
891 // [upload-part operation within the S3 API].
892 //
893 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
894 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
895 // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
896 AWSS3PartNumberKey = attribute.Key("aws.s3.part_number")
897
898 // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id"
899 // semantic conventions. It represents the upload ID that identifies the
900 // multipart upload.
901 //
902 // Type: string
903 // RequirementLevel: Recommended
904 // Stability: Development
905 //
906 // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ"
907 // Note: The `upload_id` attribute applies to S3 multipart-upload operations and
908 // corresponds to the `--upload-id` parameter
909 // of the [S3 API] multipart operations.
910 // This applies in particular to the following operations:
911 //
912 // - [abort-multipart-upload]
913 // - [complete-multipart-upload]
914 // - [list-parts]
915 // - [upload-part]
916 // - [upload-part-copy]
917 //
918 //
919 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
920 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
921 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
922 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
923 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
924 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
925 AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id")
926 )
927
928 // AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to
929 // the "aws.dynamodb.attribute_definitions" semantic conventions. It represents
930 // the JSON-serialized value of each item in the `AttributeDefinitions` request
931 // field.
932 func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue {
933 return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val)
934 }
935
936 // AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the
937 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value
938 // of the `AttributesToGet` request parameter.
939 func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue {
940 return AWSDynamoDBAttributesToGetKey.StringSlice(val)
941 }
942
943 // AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the
944 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
945 // of the `ConsistentRead` request parameter.
946 func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue {
947 return AWSDynamoDBConsistentReadKey.Bool(val)
948 }
949
950 // AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the
951 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
952 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
953 func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue {
954 return AWSDynamoDBConsumedCapacityKey.StringSlice(val)
955 }
956
957 // AWSDynamoDBCount returns an attribute KeyValue conforming to the
958 // "aws.dynamodb.count" semantic conventions. It represents the value of the
959 // `Count` response parameter.
960 func AWSDynamoDBCount(val int) attribute.KeyValue {
961 return AWSDynamoDBCountKey.Int(val)
962 }
963
964 // AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the
965 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
966 // value of the `ExclusiveStartTableName` request parameter.
967 func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue {
968 return AWSDynamoDBExclusiveStartTableKey.String(val)
969 }
970
971 // AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue
972 // conforming to the "aws.dynamodb.global_secondary_index_updates" semantic
973 // conventions. It represents the JSON-serialized value of each item in the
974 // `GlobalSecondaryIndexUpdates` request field.
975 func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue {
976 return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val)
977 }
978
979 // AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to
980 // the "aws.dynamodb.global_secondary_indexes" semantic conventions. It
981 // represents the JSON-serialized value of each item of the
982 // `GlobalSecondaryIndexes` request field.
983 func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue {
984 return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val)
985 }
986
987 // AWSDynamoDBIndexName returns an attribute KeyValue conforming to the
988 // "aws.dynamodb.index_name" semantic conventions. It represents the value of the
989 // `IndexName` request parameter.
990 func AWSDynamoDBIndexName(val string) attribute.KeyValue {
991 return AWSDynamoDBIndexNameKey.String(val)
992 }
993
994 // AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to
995 // the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
996 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
997 func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue {
998 return AWSDynamoDBItemCollectionMetricsKey.String(val)
999 }
1000
1001 // AWSDynamoDBLimit returns an attribute KeyValue conforming to the
1002 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
1003 // `Limit` request parameter.
1004 func AWSDynamoDBLimit(val int) attribute.KeyValue {
1005 return AWSDynamoDBLimitKey.Int(val)
1006 }
1007
1008 // AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to
1009 // the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
1010 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
1011 // field.
1012 func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue {
1013 return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val)
1014 }
1015
1016 // AWSDynamoDBProjection returns an attribute KeyValue conforming to the
1017 // "aws.dynamodb.projection" semantic conventions. It represents the value of the
1018 // `ProjectionExpression` request parameter.
1019 func AWSDynamoDBProjection(val string) attribute.KeyValue {
1020 return AWSDynamoDBProjectionKey.String(val)
1021 }
1022
1023 // AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to
1024 // the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It
1025 // represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request
1026 // parameter.
1027 func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue {
1028 return AWSDynamoDBProvisionedReadCapacityKey.Float64(val)
1029 }
1030
1031 // AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming
1032 // to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It
1033 // represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request
1034 // parameter.
1035 func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue {
1036 return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val)
1037 }
1038
1039 // AWSDynamoDBScanForward returns an attribute KeyValue conforming to the
1040 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
1041 // the `ScanIndexForward` request parameter.
1042 func AWSDynamoDBScanForward(val bool) attribute.KeyValue {
1043 return AWSDynamoDBScanForwardKey.Bool(val)
1044 }
1045
1046 // AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the
1047 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
1048 // the `ScannedCount` response parameter.
1049 func AWSDynamoDBScannedCount(val int) attribute.KeyValue {
1050 return AWSDynamoDBScannedCountKey.Int(val)
1051 }
1052
1053 // AWSDynamoDBSegment returns an attribute KeyValue conforming to the
1054 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
1055 // `Segment` request parameter.
1056 func AWSDynamoDBSegment(val int) attribute.KeyValue {
1057 return AWSDynamoDBSegmentKey.Int(val)
1058 }
1059
1060 // AWSDynamoDBSelect returns an attribute KeyValue conforming to the
1061 // "aws.dynamodb.select" semantic conventions. It represents the value of the
1062 // `Select` request parameter.
1063 func AWSDynamoDBSelect(val string) attribute.KeyValue {
1064 return AWSDynamoDBSelectKey.String(val)
1065 }
1066
1067 // AWSDynamoDBTableCount returns an attribute KeyValue conforming to the
1068 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
1069 // items in the `TableNames` response parameter.
1070 func AWSDynamoDBTableCount(val int) attribute.KeyValue {
1071 return AWSDynamoDBTableCountKey.Int(val)
1072 }
1073
1074 // AWSDynamoDBTableNames returns an attribute KeyValue conforming to the
1075 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in the
1076 // `RequestItems` object field.
1077 func AWSDynamoDBTableNames(val ...string) attribute.KeyValue {
1078 return AWSDynamoDBTableNamesKey.StringSlice(val)
1079 }
1080
1081 // AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the
1082 // "aws.dynamodb.total_segments" semantic conventions. It represents the value of
1083 // the `TotalSegments` request parameter.
1084 func AWSDynamoDBTotalSegments(val int) attribute.KeyValue {
1085 return AWSDynamoDBTotalSegmentsKey.Int(val)
1086 }
1087
1088 // AWSECSClusterARN returns an attribute KeyValue conforming to the
1089 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
1090 // [ECS cluster].
1091 //
1092 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
1093 func AWSECSClusterARN(val string) attribute.KeyValue {
1094 return AWSECSClusterARNKey.String(val)
1095 }
1096
1097 // AWSECSContainerARN returns an attribute KeyValue conforming to the
1098 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
1099 // Resource Name (ARN) of an [ECS container instance].
1100 //
1101 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
1102 func AWSECSContainerARN(val string) attribute.KeyValue {
1103 return AWSECSContainerARNKey.String(val)
1104 }
1105
1106 // AWSECSTaskARN returns an attribute KeyValue conforming to the
1107 // "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running
1108 // [ECS task].
1109 //
1110 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
1111 func AWSECSTaskARN(val string) attribute.KeyValue {
1112 return AWSECSTaskARNKey.String(val)
1113 }
1114
1115 // AWSECSTaskFamily returns an attribute KeyValue conforming to the
1116 // "aws.ecs.task.family" semantic conventions. It represents the family name of
1117 // the [ECS task definition] used to create the ECS task.
1118 //
1119 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
1120 func AWSECSTaskFamily(val string) attribute.KeyValue {
1121 return AWSECSTaskFamilyKey.String(val)
1122 }
1123
1124 // AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id"
1125 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
1126 // be extracted from `task.arn`.
1127 func AWSECSTaskID(val string) attribute.KeyValue {
1128 return AWSECSTaskIDKey.String(val)
1129 }
1130
1131 // AWSECSTaskRevision returns an attribute KeyValue conforming to the
1132 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
1133 // the task definition used to create the ECS task.
1134 func AWSECSTaskRevision(val string) attribute.KeyValue {
1135 return AWSECSTaskRevisionKey.String(val)
1136 }
1137
1138 // AWSEKSClusterARN returns an attribute KeyValue conforming to the
1139 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
1140 // cluster.
1141 func AWSEKSClusterARN(val string) attribute.KeyValue {
1142 return AWSEKSClusterARNKey.String(val)
1143 }
1144
1145 // AWSExtendedRequestID returns an attribute KeyValue conforming to the
1146 // "aws.extended_request_id" semantic conventions. It represents the AWS extended
1147 // request ID as returned in the response header `x-amz-id-2`.
1148 func AWSExtendedRequestID(val string) attribute.KeyValue {
1149 return AWSExtendedRequestIDKey.String(val)
1150 }
1151
1152 // AWSLambdaInvokedARN returns an attribute KeyValue conforming to the
1153 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
1154 // ARN as provided on the `Context` passed to the function (
1155 // `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next`
1156 // applicable).
1157 func AWSLambdaInvokedARN(val string) attribute.KeyValue {
1158 return AWSLambdaInvokedARNKey.String(val)
1159 }
1160
1161 // AWSLogGroupARNs returns an attribute KeyValue conforming to the
1162 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
1163 // Name(s) (ARN) of the AWS log group(s).
1164 func AWSLogGroupARNs(val ...string) attribute.KeyValue {
1165 return AWSLogGroupARNsKey.StringSlice(val)
1166 }
1167
1168 // AWSLogGroupNames returns an attribute KeyValue conforming to the
1169 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
1170 // AWS log group(s) an application is writing to.
1171 func AWSLogGroupNames(val ...string) attribute.KeyValue {
1172 return AWSLogGroupNamesKey.StringSlice(val)
1173 }
1174
1175 // AWSLogStreamARNs returns an attribute KeyValue conforming to the
1176 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
1177 // AWS log stream(s).
1178 func AWSLogStreamARNs(val ...string) attribute.KeyValue {
1179 return AWSLogStreamARNsKey.StringSlice(val)
1180 }
1181
1182 // AWSLogStreamNames returns an attribute KeyValue conforming to the
1183 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
1184 // AWS log stream(s) an application is writing to.
1185 func AWSLogStreamNames(val ...string) attribute.KeyValue {
1186 return AWSLogStreamNamesKey.StringSlice(val)
1187 }
1188
1189 // AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id"
1190 // semantic conventions. It represents the AWS request ID as returned in the
1191 // response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`
1192 // .
1193 func AWSRequestID(val string) attribute.KeyValue {
1194 return AWSRequestIDKey.String(val)
1195 }
1196
1197 // AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket"
1198 // semantic conventions. It represents the S3 bucket name the request refers to.
1199 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
1200 //
1201 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1202 func AWSS3Bucket(val string) attribute.KeyValue {
1203 return AWSS3BucketKey.String(val)
1204 }
1205
1206 // AWSS3CopySource returns an attribute KeyValue conforming to the
1207 // "aws.s3.copy_source" semantic conventions. It represents the source object (in
1208 // the form `bucket`/`key`) for the copy operation.
1209 func AWSS3CopySource(val string) attribute.KeyValue {
1210 return AWSS3CopySourceKey.String(val)
1211 }
1212
1213 // AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete"
1214 // semantic conventions. It represents the delete request container that
1215 // specifies the objects to be deleted.
1216 func AWSS3Delete(val string) attribute.KeyValue {
1217 return AWSS3DeleteKey.String(val)
1218 }
1219
1220 // AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic
1221 // conventions. It represents the S3 object key the request refers to.
1222 // Corresponds to the `--key` parameter of the [S3 API] operations.
1223 //
1224 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1225 func AWSS3Key(val string) attribute.KeyValue {
1226 return AWSS3KeyKey.String(val)
1227 }
1228
1229 // AWSS3PartNumber returns an attribute KeyValue conforming to the
1230 // "aws.s3.part_number" semantic conventions. It represents the part number of
1231 // the part being uploaded in a multipart-upload operation. This is a positive
1232 // integer between 1 and 10,000.
1233 func AWSS3PartNumber(val int) attribute.KeyValue {
1234 return AWSS3PartNumberKey.Int(val)
1235 }
1236
1237 // AWSS3UploadID returns an attribute KeyValue conforming to the
1238 // "aws.s3.upload_id" semantic conventions. It represents the upload ID that
1239 // identifies the multipart upload.
1240 func AWSS3UploadID(val string) attribute.KeyValue {
1241 return AWSS3UploadIDKey.String(val)
1242 }
1243
1244 // Enum values for aws.ecs.launchtype
1245 var (
1246 // ec2
1247 // Stability: development
1248 AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2")
1249 // fargate
1250 // Stability: development
1251 AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate")
1252 )
1253
1254 // Namespace: az
1255 const (
1256 // AzNamespaceKey is the attribute Key conforming to the "az.namespace" semantic
1257 // conventions. It represents the [Azure Resource Provider Namespace] as
1258 // recognized by the client.
1259 //
1260 // Type: string
1261 // RequirementLevel: Recommended
1262 // Stability: Development
1263 //
1264 // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus"
1265 //
1266 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1267 AzNamespaceKey = attribute.Key("az.namespace")
1268
1269 // AzServiceRequestIDKey is the attribute Key conforming to the
1270 // "az.service_request_id" semantic conventions. It represents the unique
1271 // identifier of the service request. It's generated by the Azure service and
1272 // returned with the response.
1273 //
1274 // Type: string
1275 // RequirementLevel: Recommended
1276 // Stability: Development
1277 //
1278 // Examples: "00000000-0000-0000-0000-000000000000"
1279 AzServiceRequestIDKey = attribute.Key("az.service_request_id")
1280 )
1281
1282 // AzNamespace returns an attribute KeyValue conforming to the "az.namespace"
1283 // semantic conventions. It represents the [Azure Resource Provider Namespace] as
1284 // recognized by the client.
1285 //
1286 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1287 func AzNamespace(val string) attribute.KeyValue {
1288 return AzNamespaceKey.String(val)
1289 }
1290
1291 // AzServiceRequestID returns an attribute KeyValue conforming to the
1292 // "az.service_request_id" semantic conventions. It represents the unique
1293 // identifier of the service request. It's generated by the Azure service and
1294 // returned with the response.
1295 func AzServiceRequestID(val string) attribute.KeyValue {
1296 return AzServiceRequestIDKey.String(val)
1297 }
1298
1299 // Namespace: azure
1300 const (
1301 // AzureClientIDKey is the attribute Key conforming to the "azure.client.id"
1302 // semantic conventions. It represents the unique identifier of the client
1303 // instance.
1304 //
1305 // Type: string
1306 // RequirementLevel: Recommended
1307 // Stability: Development
1308 //
1309 // Examples: "3ba4827d-4422-483f-b59f-85b74211c11d", "storage-client-1"
1310 AzureClientIDKey = attribute.Key("azure.client.id")
1311
1312 // AzureCosmosDBConnectionModeKey is the attribute Key conforming to the
1313 // "azure.cosmosdb.connection.mode" semantic conventions. It represents the
1314 // cosmos client connection mode.
1315 //
1316 // Type: Enum
1317 // RequirementLevel: Recommended
1318 // Stability: Development
1319 //
1320 // Examples:
1321 AzureCosmosDBConnectionModeKey = attribute.Key("azure.cosmosdb.connection.mode")
1322
1323 // AzureCosmosDBConsistencyLevelKey is the attribute Key conforming to the
1324 // "azure.cosmosdb.consistency.level" semantic conventions. It represents the
1325 // account or request [consistency level].
1326 //
1327 // Type: Enum
1328 // RequirementLevel: Recommended
1329 // Stability: Development
1330 //
1331 // Examples: "Eventual", "ConsistentPrefix", "BoundedStaleness", "Strong",
1332 // "Session"
1333 //
1334 // [consistency level]: https://learn.microsoft.com/azure/cosmos-db/consistency-levels
1335 AzureCosmosDBConsistencyLevelKey = attribute.Key("azure.cosmosdb.consistency.level")
1336
1337 // AzureCosmosDBOperationContactedRegionsKey is the attribute Key conforming to
1338 // the "azure.cosmosdb.operation.contacted_regions" semantic conventions. It
1339 // represents the list of regions contacted during operation in the order that
1340 // they were contacted. If there is more than one region listed, it indicates
1341 // that the operation was performed on multiple regions i.e. cross-regional
1342 // call.
1343 //
1344 // Type: string[]
1345 // RequirementLevel: Recommended
1346 // Stability: Development
1347 //
1348 // Examples: "North Central US", "Australia East", "Australia Southeast"
1349 // Note: Region name matches the format of `displayName` in [Azure Location API]
1350 //
1351 // [Azure Location API]: https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location
1352 AzureCosmosDBOperationContactedRegionsKey = attribute.Key("azure.cosmosdb.operation.contacted_regions")
1353
1354 // AzureCosmosDBOperationRequestChargeKey is the attribute Key conforming to the
1355 // "azure.cosmosdb.operation.request_charge" semantic conventions. It represents
1356 // the number of request units consumed by the operation.
1357 //
1358 // Type: double
1359 // RequirementLevel: Recommended
1360 // Stability: Development
1361 //
1362 // Examples: 46.18, 1.0
1363 AzureCosmosDBOperationRequestChargeKey = attribute.Key("azure.cosmosdb.operation.request_charge")
1364
1365 // AzureCosmosDBRequestBodySizeKey is the attribute Key conforming to the
1366 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1367 // request payload size in bytes.
1368 //
1369 // Type: int
1370 // RequirementLevel: Recommended
1371 // Stability: Development
1372 //
1373 // Examples:
1374 AzureCosmosDBRequestBodySizeKey = attribute.Key("azure.cosmosdb.request.body.size")
1375
1376 // AzureCosmosDBResponseSubStatusCodeKey is the attribute Key conforming to the
1377 // "azure.cosmosdb.response.sub_status_code" semantic conventions. It represents
1378 // the cosmos DB sub status code.
1379 //
1380 // Type: int
1381 // RequirementLevel: Recommended
1382 // Stability: Development
1383 //
1384 // Examples: 1000, 1002
1385 AzureCosmosDBResponseSubStatusCodeKey = attribute.Key("azure.cosmosdb.response.sub_status_code")
1386 )
1387
1388 // AzureClientID returns an attribute KeyValue conforming to the
1389 // "azure.client.id" semantic conventions. It represents the unique identifier of
1390 // the client instance.
1391 func AzureClientID(val string) attribute.KeyValue {
1392 return AzureClientIDKey.String(val)
1393 }
1394
1395 // AzureCosmosDBOperationContactedRegions returns an attribute KeyValue
1396 // conforming to the "azure.cosmosdb.operation.contacted_regions" semantic
1397 // conventions. It represents the list of regions contacted during operation in
1398 // the order that they were contacted. If there is more than one region listed,
1399 // it indicates that the operation was performed on multiple regions i.e.
1400 // cross-regional call.
1401 func AzureCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue {
1402 return AzureCosmosDBOperationContactedRegionsKey.StringSlice(val)
1403 }
1404
1405 // AzureCosmosDBOperationRequestCharge returns an attribute KeyValue conforming
1406 // to the "azure.cosmosdb.operation.request_charge" semantic conventions. It
1407 // represents the number of request units consumed by the operation.
1408 func AzureCosmosDBOperationRequestCharge(val float64) attribute.KeyValue {
1409 return AzureCosmosDBOperationRequestChargeKey.Float64(val)
1410 }
1411
1412 // AzureCosmosDBRequestBodySize returns an attribute KeyValue conforming to the
1413 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1414 // request payload size in bytes.
1415 func AzureCosmosDBRequestBodySize(val int) attribute.KeyValue {
1416 return AzureCosmosDBRequestBodySizeKey.Int(val)
1417 }
1418
1419 // AzureCosmosDBResponseSubStatusCode returns an attribute KeyValue conforming to
1420 // the "azure.cosmosdb.response.sub_status_code" semantic conventions. It
1421 // represents the cosmos DB sub status code.
1422 func AzureCosmosDBResponseSubStatusCode(val int) attribute.KeyValue {
1423 return AzureCosmosDBResponseSubStatusCodeKey.Int(val)
1424 }
1425
1426 // Enum values for azure.cosmosdb.connection.mode
1427 var (
1428 // Gateway (HTTP) connection.
1429 // Stability: development
1430 AzureCosmosDBConnectionModeGateway = AzureCosmosDBConnectionModeKey.String("gateway")
1431 // Direct connection.
1432 // Stability: development
1433 AzureCosmosDBConnectionModeDirect = AzureCosmosDBConnectionModeKey.String("direct")
1434 )
1435
1436 // Enum values for azure.cosmosdb.consistency.level
1437 var (
1438 // strong
1439 // Stability: development
1440 AzureCosmosDBConsistencyLevelStrong = AzureCosmosDBConsistencyLevelKey.String("Strong")
1441 // bounded_staleness
1442 // Stability: development
1443 AzureCosmosDBConsistencyLevelBoundedStaleness = AzureCosmosDBConsistencyLevelKey.String("BoundedStaleness")
1444 // session
1445 // Stability: development
1446 AzureCosmosDBConsistencyLevelSession = AzureCosmosDBConsistencyLevelKey.String("Session")
1447 // eventual
1448 // Stability: development
1449 AzureCosmosDBConsistencyLevelEventual = AzureCosmosDBConsistencyLevelKey.String("Eventual")
1450 // consistent_prefix
1451 // Stability: development
1452 AzureCosmosDBConsistencyLevelConsistentPrefix = AzureCosmosDBConsistencyLevelKey.String("ConsistentPrefix")
1453 )
1454
1455 // Namespace: browser
1456 const (
1457 // BrowserBrandsKey is the attribute Key conforming to the "browser.brands"
1458 // semantic conventions. It represents the array of brand name and version
1459 // separated by a space.
1460 //
1461 // Type: string[]
1462 // RequirementLevel: Recommended
1463 // Stability: Development
1464 //
1465 // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99"
1466 // Note: This value is intended to be taken from the [UA client hints API] (
1467 // `navigator.userAgentData.brands`).
1468 //
1469 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1470 BrowserBrandsKey = attribute.Key("browser.brands")
1471
1472 // BrowserLanguageKey is the attribute Key conforming to the "browser.language"
1473 // semantic conventions. It represents the preferred language of the user using
1474 // the browser.
1475 //
1476 // Type: string
1477 // RequirementLevel: Recommended
1478 // Stability: Development
1479 //
1480 // Examples: "en", "en-US", "fr", "fr-FR"
1481 // Note: This value is intended to be taken from the Navigator API
1482 // `navigator.language`.
1483 BrowserLanguageKey = attribute.Key("browser.language")
1484
1485 // BrowserMobileKey is the attribute Key conforming to the "browser.mobile"
1486 // semantic conventions. It represents a boolean that is true if the browser is
1487 // running on a mobile device.
1488 //
1489 // Type: boolean
1490 // RequirementLevel: Recommended
1491 // Stability: Development
1492 //
1493 // Examples:
1494 // Note: This value is intended to be taken from the [UA client hints API] (
1495 // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be
1496 // left unset.
1497 //
1498 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1499 BrowserMobileKey = attribute.Key("browser.mobile")
1500
1501 // BrowserPlatformKey is the attribute Key conforming to the "browser.platform"
1502 // semantic conventions. It represents the platform on which the browser is
1503 // running.
1504 //
1505 // Type: string
1506 // RequirementLevel: Recommended
1507 // Stability: Development
1508 //
1509 // Examples: "Windows", "macOS", "Android"
1510 // Note: This value is intended to be taken from the [UA client hints API] (
1511 // `navigator.userAgentData.platform`). If unavailable, the legacy
1512 // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD
1513 // be left unset in order for the values to be consistent.
1514 // The list of possible values is defined in the
1515 // [W3C User-Agent Client Hints specification]. Note that some (but not all) of
1516 // these values can overlap with values in the
1517 // [`os.type` and `os.name` attributes]. However, for consistency, the values in
1518 // the `browser.platform` attribute should capture the exact value that the user
1519 // agent provides.
1520 //
1521 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1522 // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform
1523 // [`os.type` and `os.name` attributes]: ./os.md
1524 BrowserPlatformKey = attribute.Key("browser.platform")
1525 )
1526
1527 // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands"
1528 // semantic conventions. It represents the array of brand name and version
1529 // separated by a space.
1530 func BrowserBrands(val ...string) attribute.KeyValue {
1531 return BrowserBrandsKey.StringSlice(val)
1532 }
1533
1534 // BrowserLanguage returns an attribute KeyValue conforming to the
1535 // "browser.language" semantic conventions. It represents the preferred language
1536 // of the user using the browser.
1537 func BrowserLanguage(val string) attribute.KeyValue {
1538 return BrowserLanguageKey.String(val)
1539 }
1540
1541 // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile"
1542 // semantic conventions. It represents a boolean that is true if the browser is
1543 // running on a mobile device.
1544 func BrowserMobile(val bool) attribute.KeyValue {
1545 return BrowserMobileKey.Bool(val)
1546 }
1547
1548 // BrowserPlatform returns an attribute KeyValue conforming to the
1549 // "browser.platform" semantic conventions. It represents the platform on which
1550 // the browser is running.
1551 func BrowserPlatform(val string) attribute.KeyValue {
1552 return BrowserPlatformKey.String(val)
1553 }
1554
1555 // Namespace: cassandra
1556 const (
1557 // CassandraConsistencyLevelKey is the attribute Key conforming to the
1558 // "cassandra.consistency.level" semantic conventions. It represents the
1559 // consistency level of the query. Based on consistency values from [CQL].
1560 //
1561 // Type: Enum
1562 // RequirementLevel: Recommended
1563 // Stability: Development
1564 //
1565 // Examples:
1566 //
1567 // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
1568 CassandraConsistencyLevelKey = attribute.Key("cassandra.consistency.level")
1569
1570 // CassandraCoordinatorDCKey is the attribute Key conforming to the
1571 // "cassandra.coordinator.dc" semantic conventions. It represents the data
1572 // center of the coordinating node for a query.
1573 //
1574 // Type: string
1575 // RequirementLevel: Recommended
1576 // Stability: Development
1577 //
1578 // Examples: us-west-2
1579 CassandraCoordinatorDCKey = attribute.Key("cassandra.coordinator.dc")
1580
1581 // CassandraCoordinatorIDKey is the attribute Key conforming to the
1582 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1583 // coordinating node for a query.
1584 //
1585 // Type: string
1586 // RequirementLevel: Recommended
1587 // Stability: Development
1588 //
1589 // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af
1590 CassandraCoordinatorIDKey = attribute.Key("cassandra.coordinator.id")
1591
1592 // CassandraPageSizeKey is the attribute Key conforming to the
1593 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1594 // for paging, i.e. how many rows will be returned at once.
1595 //
1596 // Type: int
1597 // RequirementLevel: Recommended
1598 // Stability: Development
1599 //
1600 // Examples: 5000
1601 CassandraPageSizeKey = attribute.Key("cassandra.page.size")
1602
1603 // CassandraQueryIdempotentKey is the attribute Key conforming to the
1604 // "cassandra.query.idempotent" semantic conventions. It represents the whether
1605 // or not the query is idempotent.
1606 //
1607 // Type: boolean
1608 // RequirementLevel: Recommended
1609 // Stability: Development
1610 //
1611 // Examples:
1612 CassandraQueryIdempotentKey = attribute.Key("cassandra.query.idempotent")
1613
1614 // CassandraSpeculativeExecutionCountKey is the attribute Key conforming to the
1615 // "cassandra.speculative_execution.count" semantic conventions. It represents
1616 // the number of times a query was speculatively executed. Not set or `0` if the
1617 // query was not executed speculatively.
1618 //
1619 // Type: int
1620 // RequirementLevel: Recommended
1621 // Stability: Development
1622 //
1623 // Examples: 0, 2
1624 CassandraSpeculativeExecutionCountKey = attribute.Key("cassandra.speculative_execution.count")
1625 )
1626
1627 // CassandraCoordinatorDC returns an attribute KeyValue conforming to the
1628 // "cassandra.coordinator.dc" semantic conventions. It represents the data center
1629 // of the coordinating node for a query.
1630 func CassandraCoordinatorDC(val string) attribute.KeyValue {
1631 return CassandraCoordinatorDCKey.String(val)
1632 }
1633
1634 // CassandraCoordinatorID returns an attribute KeyValue conforming to the
1635 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1636 // coordinating node for a query.
1637 func CassandraCoordinatorID(val string) attribute.KeyValue {
1638 return CassandraCoordinatorIDKey.String(val)
1639 }
1640
1641 // CassandraPageSize returns an attribute KeyValue conforming to the
1642 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1643 // for paging, i.e. how many rows will be returned at once.
1644 func CassandraPageSize(val int) attribute.KeyValue {
1645 return CassandraPageSizeKey.Int(val)
1646 }
1647
1648 // CassandraQueryIdempotent returns an attribute KeyValue conforming to the
1649 // "cassandra.query.idempotent" semantic conventions. It represents the whether
1650 // or not the query is idempotent.
1651 func CassandraQueryIdempotent(val bool) attribute.KeyValue {
1652 return CassandraQueryIdempotentKey.Bool(val)
1653 }
1654
1655 // CassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to
1656 // the "cassandra.speculative_execution.count" semantic conventions. It
1657 // represents the number of times a query was speculatively executed. Not set or
1658 // `0` if the query was not executed speculatively.
1659 func CassandraSpeculativeExecutionCount(val int) attribute.KeyValue {
1660 return CassandraSpeculativeExecutionCountKey.Int(val)
1661 }
1662
1663 // Enum values for cassandra.consistency.level
1664 var (
1665 // all
1666 // Stability: development
1667 CassandraConsistencyLevelAll = CassandraConsistencyLevelKey.String("all")
1668 // each_quorum
1669 // Stability: development
1670 CassandraConsistencyLevelEachQuorum = CassandraConsistencyLevelKey.String("each_quorum")
1671 // quorum
1672 // Stability: development
1673 CassandraConsistencyLevelQuorum = CassandraConsistencyLevelKey.String("quorum")
1674 // local_quorum
1675 // Stability: development
1676 CassandraConsistencyLevelLocalQuorum = CassandraConsistencyLevelKey.String("local_quorum")
1677 // one
1678 // Stability: development
1679 CassandraConsistencyLevelOne = CassandraConsistencyLevelKey.String("one")
1680 // two
1681 // Stability: development
1682 CassandraConsistencyLevelTwo = CassandraConsistencyLevelKey.String("two")
1683 // three
1684 // Stability: development
1685 CassandraConsistencyLevelThree = CassandraConsistencyLevelKey.String("three")
1686 // local_one
1687 // Stability: development
1688 CassandraConsistencyLevelLocalOne = CassandraConsistencyLevelKey.String("local_one")
1689 // any
1690 // Stability: development
1691 CassandraConsistencyLevelAny = CassandraConsistencyLevelKey.String("any")
1692 // serial
1693 // Stability: development
1694 CassandraConsistencyLevelSerial = CassandraConsistencyLevelKey.String("serial")
1695 // local_serial
1696 // Stability: development
1697 CassandraConsistencyLevelLocalSerial = CassandraConsistencyLevelKey.String("local_serial")
1698 )
1699
1700 // Namespace: cicd
1701 const (
1702 // CICDPipelineNameKey is the attribute Key conforming to the
1703 // "cicd.pipeline.name" semantic conventions. It represents the human readable
1704 // name of the pipeline within a CI/CD system.
1705 //
1706 // Type: string
1707 // RequirementLevel: Recommended
1708 // Stability: Development
1709 //
1710 // Examples: "Build and Test", "Lint", "Deploy Go Project",
1711 // "deploy_to_environment"
1712 CICDPipelineNameKey = attribute.Key("cicd.pipeline.name")
1713
1714 // CICDPipelineResultKey is the attribute Key conforming to the
1715 // "cicd.pipeline.result" semantic conventions. It represents the result of a
1716 // pipeline run.
1717 //
1718 // Type: Enum
1719 // RequirementLevel: Recommended
1720 // Stability: Development
1721 //
1722 // Examples: "success", "failure", "timeout", "skipped"
1723 CICDPipelineResultKey = attribute.Key("cicd.pipeline.result")
1724
1725 // CICDPipelineRunIDKey is the attribute Key conforming to the
1726 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
1727 // identifier of a pipeline run within a CI/CD system.
1728 //
1729 // Type: string
1730 // RequirementLevel: Recommended
1731 // Stability: Development
1732 //
1733 // Examples: "120912"
1734 CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id")
1735
1736 // CICDPipelineRunStateKey is the attribute Key conforming to the
1737 // "cicd.pipeline.run.state" semantic conventions. It represents the pipeline
1738 // run goes through these states during its lifecycle.
1739 //
1740 // Type: Enum
1741 // RequirementLevel: Recommended
1742 // Stability: Development
1743 //
1744 // Examples: "pending", "executing", "finalizing"
1745 CICDPipelineRunStateKey = attribute.Key("cicd.pipeline.run.state")
1746
1747 // CICDPipelineRunURLFullKey is the attribute Key conforming to the
1748 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
1749 // the pipeline run, providing the complete address in order to locate and
1750 // identify the pipeline run.
1751 //
1752 // Type: string
1753 // RequirementLevel: Recommended
1754 // Stability: Development
1755 //
1756 // Examples:
1757 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075"
1758 //
1759 // [URL]: https://wikipedia.org/wiki/URL
1760 CICDPipelineRunURLFullKey = attribute.Key("cicd.pipeline.run.url.full")
1761
1762 // CICDPipelineTaskNameKey is the attribute Key conforming to the
1763 // "cicd.pipeline.task.name" semantic conventions. It represents the human
1764 // readable name of a task within a pipeline. Task here most closely aligns with
1765 // a [computing process] in a pipeline. Other terms for tasks include commands,
1766 // steps, and procedures.
1767 //
1768 // Type: string
1769 // RequirementLevel: Recommended
1770 // Stability: Development
1771 //
1772 // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary"
1773 //
1774 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
1775 CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name")
1776
1777 // CICDPipelineTaskRunIDKey is the attribute Key conforming to the
1778 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
1779 // identifier of a task run within a pipeline.
1780 //
1781 // Type: string
1782 // RequirementLevel: Recommended
1783 // Stability: Development
1784 //
1785 // Examples: "12097"
1786 CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id")
1787
1788 // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the
1789 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
1790 // [URL] of the pipeline task run, providing the complete address in order to
1791 // locate and identify the pipeline task run.
1792 //
1793 // Type: string
1794 // RequirementLevel: Recommended
1795 // Stability: Development
1796 //
1797 // Examples:
1798 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"
1799 //
1800 // [URL]: https://wikipedia.org/wiki/URL
1801 CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full")
1802
1803 // CICDPipelineTaskTypeKey is the attribute Key conforming to the
1804 // "cicd.pipeline.task.type" semantic conventions. It represents the type of the
1805 // task within a pipeline.
1806 //
1807 // Type: Enum
1808 // RequirementLevel: Recommended
1809 // Stability: Development
1810 //
1811 // Examples: "build", "test", "deploy"
1812 CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type")
1813
1814 // CICDSystemComponentKey is the attribute Key conforming to the
1815 // "cicd.system.component" semantic conventions. It represents the name of a
1816 // component of the CICD system.
1817 //
1818 // Type: string
1819 // RequirementLevel: Recommended
1820 // Stability: Development
1821 //
1822 // Examples: "controller", "scheduler", "agent"
1823 CICDSystemComponentKey = attribute.Key("cicd.system.component")
1824
1825 // CICDWorkerStateKey is the attribute Key conforming to the "cicd.worker.state"
1826 // semantic conventions. It represents the state of a CICD worker / agent.
1827 //
1828 // Type: Enum
1829 // RequirementLevel: Recommended
1830 // Stability: Development
1831 //
1832 // Examples: "idle", "busy", "down"
1833 CICDWorkerStateKey = attribute.Key("cicd.worker.state")
1834 )
1835
1836 // CICDPipelineName returns an attribute KeyValue conforming to the
1837 // "cicd.pipeline.name" semantic conventions. It represents the human readable
1838 // name of the pipeline within a CI/CD system.
1839 func CICDPipelineName(val string) attribute.KeyValue {
1840 return CICDPipelineNameKey.String(val)
1841 }
1842
1843 // CICDPipelineRunID returns an attribute KeyValue conforming to the
1844 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
1845 // identifier of a pipeline run within a CI/CD system.
1846 func CICDPipelineRunID(val string) attribute.KeyValue {
1847 return CICDPipelineRunIDKey.String(val)
1848 }
1849
1850 // CICDPipelineRunURLFull returns an attribute KeyValue conforming to the
1851 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
1852 // the pipeline run, providing the complete address in order to locate and
1853 // identify the pipeline run.
1854 //
1855 // [URL]: https://wikipedia.org/wiki/URL
1856 func CICDPipelineRunURLFull(val string) attribute.KeyValue {
1857 return CICDPipelineRunURLFullKey.String(val)
1858 }
1859
1860 // CICDPipelineTaskName returns an attribute KeyValue conforming to the
1861 // "cicd.pipeline.task.name" semantic conventions. It represents the human
1862 // readable name of a task within a pipeline. Task here most closely aligns with
1863 // a [computing process] in a pipeline. Other terms for tasks include commands,
1864 // steps, and procedures.
1865 //
1866 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
1867 func CICDPipelineTaskName(val string) attribute.KeyValue {
1868 return CICDPipelineTaskNameKey.String(val)
1869 }
1870
1871 // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the
1872 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
1873 // identifier of a task run within a pipeline.
1874 func CICDPipelineTaskRunID(val string) attribute.KeyValue {
1875 return CICDPipelineTaskRunIDKey.String(val)
1876 }
1877
1878 // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the
1879 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
1880 // [URL] of the pipeline task run, providing the complete address in order to
1881 // locate and identify the pipeline task run.
1882 //
1883 // [URL]: https://wikipedia.org/wiki/URL
1884 func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue {
1885 return CICDPipelineTaskRunURLFullKey.String(val)
1886 }
1887
1888 // CICDSystemComponent returns an attribute KeyValue conforming to the
1889 // "cicd.system.component" semantic conventions. It represents the name of a
1890 // component of the CICD system.
1891 func CICDSystemComponent(val string) attribute.KeyValue {
1892 return CICDSystemComponentKey.String(val)
1893 }
1894
1895 // Enum values for cicd.pipeline.result
1896 var (
1897 // The pipeline run finished successfully.
1898 // Stability: development
1899 CICDPipelineResultSuccess = CICDPipelineResultKey.String("success")
1900 // The pipeline run did not finish successfully, eg. due to a compile error or a
1901 // failing test. Such failures are usually detected by non-zero exit codes of
1902 // the tools executed in the pipeline run.
1903 // Stability: development
1904 CICDPipelineResultFailure = CICDPipelineResultKey.String("failure")
1905 // The pipeline run failed due to an error in the CICD system, eg. due to the
1906 // worker being killed.
1907 // Stability: development
1908 CICDPipelineResultError = CICDPipelineResultKey.String("error")
1909 // A timeout caused the pipeline run to be interrupted.
1910 // Stability: development
1911 CICDPipelineResultTimeout = CICDPipelineResultKey.String("timeout")
1912 // The pipeline run was cancelled, eg. by a user manually cancelling the
1913 // pipeline run.
1914 // Stability: development
1915 CICDPipelineResultCancellation = CICDPipelineResultKey.String("cancellation")
1916 // The pipeline run was skipped, eg. due to a precondition not being met.
1917 // Stability: development
1918 CICDPipelineResultSkip = CICDPipelineResultKey.String("skip")
1919 )
1920
1921 // Enum values for cicd.pipeline.run.state
1922 var (
1923 // The run pending state spans from the event triggering the pipeline run until
1924 // the execution of the run starts (eg. time spent in a queue, provisioning
1925 // agents, creating run resources).
1926 //
1927 // Stability: development
1928 CICDPipelineRunStatePending = CICDPipelineRunStateKey.String("pending")
1929 // The executing state spans the execution of any run tasks (eg. build, test).
1930 // Stability: development
1931 CICDPipelineRunStateExecuting = CICDPipelineRunStateKey.String("executing")
1932 // The finalizing state spans from when the run has finished executing (eg.
1933 // cleanup of run resources).
1934 // Stability: development
1935 CICDPipelineRunStateFinalizing = CICDPipelineRunStateKey.String("finalizing")
1936 )
1937
1938 // Enum values for cicd.pipeline.task.type
1939 var (
1940 // build
1941 // Stability: development
1942 CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build")
1943 // test
1944 // Stability: development
1945 CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test")
1946 // deploy
1947 // Stability: development
1948 CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy")
1949 )
1950
1951 // Enum values for cicd.worker.state
1952 var (
1953 // The worker is not performing work for the CICD system. It is available to the
1954 // CICD system to perform work on (online / idle).
1955 // Stability: development
1956 CICDWorkerStateAvailable = CICDWorkerStateKey.String("available")
1957 // The worker is performing work for the CICD system.
1958 // Stability: development
1959 CICDWorkerStateBusy = CICDWorkerStateKey.String("busy")
1960 // The worker is not available to the CICD system (disconnected / down).
1961 // Stability: development
1962 CICDWorkerStateOffline = CICDWorkerStateKey.String("offline")
1963 )
1964
1965 // Namespace: client
1966 const (
1967 // ClientAddressKey is the attribute Key conforming to the "client.address"
1968 // semantic conventions. It represents the client address - domain name if
1969 // available without reverse DNS lookup; otherwise, IP address or Unix domain
1970 // socket name.
1971 //
1972 // Type: string
1973 // RequirementLevel: Recommended
1974 // Stability: Stable
1975 //
1976 // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock"
1977 // Note: When observed from the server side, and when communicating through an
1978 // intermediary, `client.address` SHOULD represent the client address behind any
1979 // intermediaries, for example proxies, if it's available.
1980 ClientAddressKey = attribute.Key("client.address")
1981
1982 // ClientPortKey is the attribute Key conforming to the "client.port" semantic
1983 // conventions. It represents the client port number.
1984 //
1985 // Type: int
1986 // RequirementLevel: Recommended
1987 // Stability: Stable
1988 //
1989 // Examples: 65123
1990 // Note: When observed from the server side, and when communicating through an
1991 // intermediary, `client.port` SHOULD represent the client port behind any
1992 // intermediaries, for example proxies, if it's available.
1993 ClientPortKey = attribute.Key("client.port")
1994 )
1995
1996 // ClientAddress returns an attribute KeyValue conforming to the "client.address"
1997 // semantic conventions. It represents the client address - domain name if
1998 // available without reverse DNS lookup; otherwise, IP address or Unix domain
1999 // socket name.
2000 func ClientAddress(val string) attribute.KeyValue {
2001 return ClientAddressKey.String(val)
2002 }
2003
2004 // ClientPort returns an attribute KeyValue conforming to the "client.port"
2005 // semantic conventions. It represents the client port number.
2006 func ClientPort(val int) attribute.KeyValue {
2007 return ClientPortKey.Int(val)
2008 }
2009
2010 // Namespace: cloud
2011 const (
2012 // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id"
2013 // semantic conventions. It represents the cloud account ID the resource is
2014 // assigned to.
2015 //
2016 // Type: string
2017 // RequirementLevel: Recommended
2018 // Stability: Development
2019 //
2020 // Examples: "111111111111", "opentelemetry"
2021 CloudAccountIDKey = attribute.Key("cloud.account.id")
2022
2023 // CloudAvailabilityZoneKey is the attribute Key conforming to the
2024 // "cloud.availability_zone" semantic conventions. It represents the cloud
2025 // regions often have multiple, isolated locations known as zones to increase
2026 // availability. Availability zone represents the zone where the resource is
2027 // running.
2028 //
2029 // Type: string
2030 // RequirementLevel: Recommended
2031 // Stability: Development
2032 //
2033 // Examples: "us-east-1c"
2034 // Note: Availability zones are called "zones" on Alibaba Cloud and Google
2035 // Cloud.
2036 CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
2037
2038 // CloudPlatformKey is the attribute Key conforming to the "cloud.platform"
2039 // semantic conventions. It represents the cloud platform in use.
2040 //
2041 // Type: Enum
2042 // RequirementLevel: Recommended
2043 // Stability: Development
2044 //
2045 // Examples:
2046 // Note: The prefix of the service SHOULD match the one specified in
2047 // `cloud.provider`.
2048 CloudPlatformKey = attribute.Key("cloud.platform")
2049
2050 // CloudProviderKey is the attribute Key conforming to the "cloud.provider"
2051 // semantic conventions. It represents the name of the cloud provider.
2052 //
2053 // Type: Enum
2054 // RequirementLevel: Recommended
2055 // Stability: Development
2056 //
2057 // Examples:
2058 CloudProviderKey = attribute.Key("cloud.provider")
2059
2060 // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic
2061 // conventions. It represents the geographical region the resource is running.
2062 //
2063 // Type: string
2064 // RequirementLevel: Recommended
2065 // Stability: Development
2066 //
2067 // Examples: "us-central1", "us-east-1"
2068 // Note: Refer to your provider's docs to see the available regions, for example
2069 // [Alibaba Cloud regions], [AWS regions], [Azure regions],
2070 // [Google Cloud regions], or [Tencent Cloud regions].
2071 //
2072 // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm
2073 // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/
2074 // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/
2075 // [Google Cloud regions]: https://cloud.google.com/about/locations
2076 // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091
2077 CloudRegionKey = attribute.Key("cloud.region")
2078
2079 // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id"
2080 // semantic conventions. It represents the cloud provider-specific native
2081 // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a
2082 // [fully qualified resource ID] on Azure, a [full resource name] on GCP).
2083 //
2084 // Type: string
2085 // RequirementLevel: Recommended
2086 // Stability: Development
2087 //
2088 // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",
2089 // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID",
2090 // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>
2091 // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>"
2092 // Note: On some cloud providers, it may not be possible to determine the full
2093 // ID at startup,
2094 // so it may be necessary to set `cloud.resource_id` as a span attribute
2095 // instead.
2096 //
2097 // The exact value to use for `cloud.resource_id` depends on the cloud provider.
2098 // The following well-known definitions MUST be used if you set this attribute
2099 // and they apply:
2100 //
2101 // - **AWS Lambda:** The function [ARN].
2102 // Take care not to use the "invoked ARN" directly but replace any
2103 // [alias suffix]
2104 // with the resolved function version, as the same runtime instance may be
2105 // invocable with
2106 // multiple different aliases.
2107 // - **GCP:** The [URI of the resource]
2108 // - **Azure:** The [Fully Qualified Resource ID] of the invoked function,
2109 // *not* the function app, having the form
2110 //
2111 // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`
2112 // .
2113 // This means that a span attribute MUST be used, as an Azure function app
2114 // can host multiple functions that would usually share
2115 // a TracerProvider.
2116 //
2117 //
2118 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2119 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2120 // [full resource name]: https://google.aip.dev/122#full-resource-names
2121 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2122 // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
2123 // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names
2124 // [Fully Qualified Resource ID]: https://docs.microsoft.com/rest/api/resources/resources/get-by-id
2125 CloudResourceIDKey = attribute.Key("cloud.resource_id")
2126 )
2127
2128 // CloudAccountID returns an attribute KeyValue conforming to the
2129 // "cloud.account.id" semantic conventions. It represents the cloud account ID
2130 // the resource is assigned to.
2131 func CloudAccountID(val string) attribute.KeyValue {
2132 return CloudAccountIDKey.String(val)
2133 }
2134
2135 // CloudAvailabilityZone returns an attribute KeyValue conforming to the
2136 // "cloud.availability_zone" semantic conventions. It represents the cloud
2137 // regions often have multiple, isolated locations known as zones to increase
2138 // availability. Availability zone represents the zone where the resource is
2139 // running.
2140 func CloudAvailabilityZone(val string) attribute.KeyValue {
2141 return CloudAvailabilityZoneKey.String(val)
2142 }
2143
2144 // CloudRegion returns an attribute KeyValue conforming to the "cloud.region"
2145 // semantic conventions. It represents the geographical region the resource is
2146 // running.
2147 func CloudRegion(val string) attribute.KeyValue {
2148 return CloudRegionKey.String(val)
2149 }
2150
2151 // CloudResourceID returns an attribute KeyValue conforming to the
2152 // "cloud.resource_id" semantic conventions. It represents the cloud
2153 // provider-specific native identifier of the monitored cloud resource (e.g. an
2154 // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name]
2155 // on GCP).
2156 //
2157 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2158 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2159 // [full resource name]: https://google.aip.dev/122#full-resource-names
2160 func CloudResourceID(val string) attribute.KeyValue {
2161 return CloudResourceIDKey.String(val)
2162 }
2163
2164 // Enum values for cloud.platform
2165 var (
2166 // Alibaba Cloud Elastic Compute Service
2167 // Stability: development
2168 CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
2169 // Alibaba Cloud Function Compute
2170 // Stability: development
2171 CloudPlatformAlibabaCloudFC = CloudPlatformKey.String("alibaba_cloud_fc")
2172 // Red Hat OpenShift on Alibaba Cloud
2173 // Stability: development
2174 CloudPlatformAlibabaCloudOpenShift = CloudPlatformKey.String("alibaba_cloud_openshift")
2175 // AWS Elastic Compute Cloud
2176 // Stability: development
2177 CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
2178 // AWS Elastic Container Service
2179 // Stability: development
2180 CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
2181 // AWS Elastic Kubernetes Service
2182 // Stability: development
2183 CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
2184 // AWS Lambda
2185 // Stability: development
2186 CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
2187 // AWS Elastic Beanstalk
2188 // Stability: development
2189 CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
2190 // AWS App Runner
2191 // Stability: development
2192 CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
2193 // Red Hat OpenShift on AWS (ROSA)
2194 // Stability: development
2195 CloudPlatformAWSOpenShift = CloudPlatformKey.String("aws_openshift")
2196 // Azure Virtual Machines
2197 // Stability: development
2198 CloudPlatformAzureVM = CloudPlatformKey.String("azure_vm")
2199 // Azure Container Apps
2200 // Stability: development
2201 CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure_container_apps")
2202 // Azure Container Instances
2203 // Stability: development
2204 CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure_container_instances")
2205 // Azure Kubernetes Service
2206 // Stability: development
2207 CloudPlatformAzureAKS = CloudPlatformKey.String("azure_aks")
2208 // Azure Functions
2209 // Stability: development
2210 CloudPlatformAzureFunctions = CloudPlatformKey.String("azure_functions")
2211 // Azure App Service
2212 // Stability: development
2213 CloudPlatformAzureAppService = CloudPlatformKey.String("azure_app_service")
2214 // Azure Red Hat OpenShift
2215 // Stability: development
2216 CloudPlatformAzureOpenShift = CloudPlatformKey.String("azure_openshift")
2217 // Google Bare Metal Solution (BMS)
2218 // Stability: development
2219 CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
2220 // Google Cloud Compute Engine (GCE)
2221 // Stability: development
2222 CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
2223 // Google Cloud Run
2224 // Stability: development
2225 CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
2226 // Google Cloud Kubernetes Engine (GKE)
2227 // Stability: development
2228 CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
2229 // Google Cloud Functions (GCF)
2230 // Stability: development
2231 CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
2232 // Google Cloud App Engine (GAE)
2233 // Stability: development
2234 CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
2235 // Red Hat OpenShift on Google Cloud
2236 // Stability: development
2237 CloudPlatformGCPOpenShift = CloudPlatformKey.String("gcp_openshift")
2238 // Red Hat OpenShift on IBM Cloud
2239 // Stability: development
2240 CloudPlatformIBMCloudOpenShift = CloudPlatformKey.String("ibm_cloud_openshift")
2241 // Compute on Oracle Cloud Infrastructure (OCI)
2242 // Stability: development
2243 CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute")
2244 // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI)
2245 // Stability: development
2246 CloudPlatformOracleCloudOKE = CloudPlatformKey.String("oracle_cloud_oke")
2247 // Tencent Cloud Cloud Virtual Machine (CVM)
2248 // Stability: development
2249 CloudPlatformTencentCloudCVM = CloudPlatformKey.String("tencent_cloud_cvm")
2250 // Tencent Cloud Elastic Kubernetes Service (EKS)
2251 // Stability: development
2252 CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
2253 // Tencent Cloud Serverless Cloud Function (SCF)
2254 // Stability: development
2255 CloudPlatformTencentCloudSCF = CloudPlatformKey.String("tencent_cloud_scf")
2256 )
2257
2258 // Enum values for cloud.provider
2259 var (
2260 // Alibaba Cloud
2261 // Stability: development
2262 CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
2263 // Amazon Web Services
2264 // Stability: development
2265 CloudProviderAWS = CloudProviderKey.String("aws")
2266 // Microsoft Azure
2267 // Stability: development
2268 CloudProviderAzure = CloudProviderKey.String("azure")
2269 // Google Cloud Platform
2270 // Stability: development
2271 CloudProviderGCP = CloudProviderKey.String("gcp")
2272 // Heroku Platform as a Service
2273 // Stability: development
2274 CloudProviderHeroku = CloudProviderKey.String("heroku")
2275 // IBM Cloud
2276 // Stability: development
2277 CloudProviderIBMCloud = CloudProviderKey.String("ibm_cloud")
2278 // Oracle Cloud Infrastructure (OCI)
2279 // Stability: development
2280 CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud")
2281 // Tencent Cloud
2282 // Stability: development
2283 CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
2284 )
2285
2286 // Namespace: cloudevents
2287 const (
2288 // CloudEventsEventIDKey is the attribute Key conforming to the
2289 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2290 // uniquely identifies the event.
2291 //
2292 // Type: string
2293 // RequirementLevel: Recommended
2294 // Stability: Development
2295 //
2296 // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
2297 //
2298 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2299 CloudEventsEventIDKey = attribute.Key("cloudevents.event_id")
2300
2301 // CloudEventsEventSourceKey is the attribute Key conforming to the
2302 // "cloudevents.event_source" semantic conventions. It represents the [source]
2303 // identifies the context in which an event happened.
2304 //
2305 // Type: string
2306 // RequirementLevel: Recommended
2307 // Stability: Development
2308 //
2309 // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
2310 // "my-service"
2311 //
2312 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2313 CloudEventsEventSourceKey = attribute.Key("cloudevents.event_source")
2314
2315 // CloudEventsEventSpecVersionKey is the attribute Key conforming to the
2316 // "cloudevents.event_spec_version" semantic conventions. It represents the
2317 // [version of the CloudEvents specification] which the event uses.
2318 //
2319 // Type: string
2320 // RequirementLevel: Recommended
2321 // Stability: Development
2322 //
2323 // Examples: 1.0
2324 //
2325 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2326 CloudEventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
2327
2328 // CloudEventsEventSubjectKey is the attribute Key conforming to the
2329 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2330 // of the event in the context of the event producer (identified by source).
2331 //
2332 // Type: string
2333 // RequirementLevel: Recommended
2334 // Stability: Development
2335 //
2336 // Examples: mynewfile.jpg
2337 //
2338 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2339 CloudEventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
2340
2341 // CloudEventsEventTypeKey is the attribute Key conforming to the
2342 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2343 // contains a value describing the type of event related to the originating
2344 // occurrence.
2345 //
2346 // Type: string
2347 // RequirementLevel: Recommended
2348 // Stability: Development
2349 //
2350 // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
2351 //
2352 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2353 CloudEventsEventTypeKey = attribute.Key("cloudevents.event_type")
2354 )
2355
2356 // CloudEventsEventID returns an attribute KeyValue conforming to the
2357 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2358 // uniquely identifies the event.
2359 //
2360 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2361 func CloudEventsEventID(val string) attribute.KeyValue {
2362 return CloudEventsEventIDKey.String(val)
2363 }
2364
2365 // CloudEventsEventSource returns an attribute KeyValue conforming to the
2366 // "cloudevents.event_source" semantic conventions. It represents the [source]
2367 // identifies the context in which an event happened.
2368 //
2369 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2370 func CloudEventsEventSource(val string) attribute.KeyValue {
2371 return CloudEventsEventSourceKey.String(val)
2372 }
2373
2374 // CloudEventsEventSpecVersion returns an attribute KeyValue conforming to the
2375 // "cloudevents.event_spec_version" semantic conventions. It represents the
2376 // [version of the CloudEvents specification] which the event uses.
2377 //
2378 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2379 func CloudEventsEventSpecVersion(val string) attribute.KeyValue {
2380 return CloudEventsEventSpecVersionKey.String(val)
2381 }
2382
2383 // CloudEventsEventSubject returns an attribute KeyValue conforming to the
2384 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2385 // of the event in the context of the event producer (identified by source).
2386 //
2387 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2388 func CloudEventsEventSubject(val string) attribute.KeyValue {
2389 return CloudEventsEventSubjectKey.String(val)
2390 }
2391
2392 // CloudEventsEventType returns an attribute KeyValue conforming to the
2393 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2394 // contains a value describing the type of event related to the originating
2395 // occurrence.
2396 //
2397 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2398 func CloudEventsEventType(val string) attribute.KeyValue {
2399 return CloudEventsEventTypeKey.String(val)
2400 }
2401
2402 // Namespace: cloudfoundry
2403 const (
2404 // CloudFoundryAppIDKey is the attribute Key conforming to the
2405 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2406 // application.
2407 //
2408 // Type: string
2409 // RequirementLevel: Recommended
2410 // Stability: Development
2411 //
2412 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2413 // Note: Application instrumentation should use the value from environment
2414 // variable `VCAP_APPLICATION.application_id`. This is the same value as
2415 // reported by `cf app <app-name> --guid`.
2416 CloudFoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
2417
2418 // CloudFoundryAppInstanceIDKey is the attribute Key conforming to the
2419 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2420 // of the application instance. 0 when just one instance is active.
2421 //
2422 // Type: string
2423 // RequirementLevel: Recommended
2424 // Stability: Development
2425 //
2426 // Examples: "0", "1"
2427 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2428 // .
2429 // It is used for logs and metrics emitted by CloudFoundry. It is
2430 // supposed to contain the application instance index for applications
2431 // deployed on the runtime.
2432 //
2433 // Application instrumentation should use the value from environment
2434 // variable `CF_INSTANCE_INDEX`.
2435 //
2436 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2437 CloudFoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
2438
2439 // CloudFoundryAppNameKey is the attribute Key conforming to the
2440 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2441 // application.
2442 //
2443 // Type: string
2444 // RequirementLevel: Recommended
2445 // Stability: Development
2446 //
2447 // Examples: "my-app-name"
2448 // Note: Application instrumentation should use the value from environment
2449 // variable `VCAP_APPLICATION.application_name`. This is the same value
2450 // as reported by `cf apps`.
2451 CloudFoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
2452
2453 // CloudFoundryOrgIDKey is the attribute Key conforming to the
2454 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
2455 // CloudFoundry org the application is running in.
2456 //
2457 // Type: string
2458 // RequirementLevel: Recommended
2459 // Stability: Development
2460 //
2461 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2462 // Note: Application instrumentation should use the value from environment
2463 // variable `VCAP_APPLICATION.org_id`. This is the same value as
2464 // reported by `cf org <org-name> --guid`.
2465 CloudFoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
2466
2467 // CloudFoundryOrgNameKey is the attribute Key conforming to the
2468 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
2469 // CloudFoundry organization the app is running in.
2470 //
2471 // Type: string
2472 // RequirementLevel: Recommended
2473 // Stability: Development
2474 //
2475 // Examples: "my-org-name"
2476 // Note: Application instrumentation should use the value from environment
2477 // variable `VCAP_APPLICATION.org_name`. This is the same value as
2478 // reported by `cf orgs`.
2479 CloudFoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
2480
2481 // CloudFoundryProcessIDKey is the attribute Key conforming to the
2482 // "cloudfoundry.process.id" semantic conventions. It represents the UID
2483 // identifying the process.
2484 //
2485 // Type: string
2486 // RequirementLevel: Recommended
2487 // Stability: Development
2488 //
2489 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2490 // Note: Application instrumentation should use the value from environment
2491 // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
2492 // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
2493 // For system components, this could be the actual PID.
2494 CloudFoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
2495
2496 // CloudFoundryProcessTypeKey is the attribute Key conforming to the
2497 // "cloudfoundry.process.type" semantic conventions. It represents the type of
2498 // process.
2499 //
2500 // Type: string
2501 // RequirementLevel: Recommended
2502 // Stability: Development
2503 //
2504 // Examples: "web"
2505 // Note: CloudFoundry applications can consist of multiple jobs. Usually the
2506 // main process will be of type `web`. There can be additional background
2507 // tasks or side-cars with different process types.
2508 CloudFoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
2509
2510 // CloudFoundrySpaceIDKey is the attribute Key conforming to the
2511 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
2512 // CloudFoundry space the application is running in.
2513 //
2514 // Type: string
2515 // RequirementLevel: Recommended
2516 // Stability: Development
2517 //
2518 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2519 // Note: Application instrumentation should use the value from environment
2520 // variable `VCAP_APPLICATION.space_id`. This is the same value as
2521 // reported by `cf space <space-name> --guid`.
2522 CloudFoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
2523
2524 // CloudFoundrySpaceNameKey is the attribute Key conforming to the
2525 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
2526 // CloudFoundry space the application is running in.
2527 //
2528 // Type: string
2529 // RequirementLevel: Recommended
2530 // Stability: Development
2531 //
2532 // Examples: "my-space-name"
2533 // Note: Application instrumentation should use the value from environment
2534 // variable `VCAP_APPLICATION.space_name`. This is the same value as
2535 // reported by `cf spaces`.
2536 CloudFoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
2537
2538 // CloudFoundrySystemIDKey is the attribute Key conforming to the
2539 // "cloudfoundry.system.id" semantic conventions. It represents a guid or
2540 // another name describing the event source.
2541 //
2542 // Type: string
2543 // RequirementLevel: Recommended
2544 // Stability: Development
2545 //
2546 // Examples: "cf/gorouter"
2547 // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
2548 // It is used for logs and metrics emitted by CloudFoundry. It is
2549 // supposed to contain the component name, e.g. "gorouter", for
2550 // CloudFoundry components.
2551 //
2552 // When system components are instrumented, values from the
2553 // [Bosh spec]
2554 // should be used. The `system.id` should be set to
2555 // `spec.deployment/spec.name`.
2556 //
2557 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2558 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2559 CloudFoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
2560
2561 // CloudFoundrySystemInstanceIDKey is the attribute Key conforming to the
2562 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
2563 // describing the concrete instance of the event source.
2564 //
2565 // Type: string
2566 // RequirementLevel: Recommended
2567 // Stability: Development
2568 //
2569 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2570 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2571 // .
2572 // It is used for logs and metrics emitted by CloudFoundry. It is
2573 // supposed to contain the vm id for CloudFoundry components.
2574 //
2575 // When system components are instrumented, values from the
2576 // [Bosh spec]
2577 // should be used. The `system.instance.id` should be set to `spec.id`.
2578 //
2579 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2580 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2581 CloudFoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
2582 )
2583
2584 // CloudFoundryAppID returns an attribute KeyValue conforming to the
2585 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2586 // application.
2587 func CloudFoundryAppID(val string) attribute.KeyValue {
2588 return CloudFoundryAppIDKey.String(val)
2589 }
2590
2591 // CloudFoundryAppInstanceID returns an attribute KeyValue conforming to the
2592 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2593 // of the application instance. 0 when just one instance is active.
2594 func CloudFoundryAppInstanceID(val string) attribute.KeyValue {
2595 return CloudFoundryAppInstanceIDKey.String(val)
2596 }
2597
2598 // CloudFoundryAppName returns an attribute KeyValue conforming to the
2599 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2600 // application.
2601 func CloudFoundryAppName(val string) attribute.KeyValue {
2602 return CloudFoundryAppNameKey.String(val)
2603 }
2604
2605 // CloudFoundryOrgID returns an attribute KeyValue conforming to the
2606 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
2607 // CloudFoundry org the application is running in.
2608 func CloudFoundryOrgID(val string) attribute.KeyValue {
2609 return CloudFoundryOrgIDKey.String(val)
2610 }
2611
2612 // CloudFoundryOrgName returns an attribute KeyValue conforming to the
2613 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
2614 // CloudFoundry organization the app is running in.
2615 func CloudFoundryOrgName(val string) attribute.KeyValue {
2616 return CloudFoundryOrgNameKey.String(val)
2617 }
2618
2619 // CloudFoundryProcessID returns an attribute KeyValue conforming to the
2620 // "cloudfoundry.process.id" semantic conventions. It represents the UID
2621 // identifying the process.
2622 func CloudFoundryProcessID(val string) attribute.KeyValue {
2623 return CloudFoundryProcessIDKey.String(val)
2624 }
2625
2626 // CloudFoundryProcessType returns an attribute KeyValue conforming to the
2627 // "cloudfoundry.process.type" semantic conventions. It represents the type of
2628 // process.
2629 func CloudFoundryProcessType(val string) attribute.KeyValue {
2630 return CloudFoundryProcessTypeKey.String(val)
2631 }
2632
2633 // CloudFoundrySpaceID returns an attribute KeyValue conforming to the
2634 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
2635 // CloudFoundry space the application is running in.
2636 func CloudFoundrySpaceID(val string) attribute.KeyValue {
2637 return CloudFoundrySpaceIDKey.String(val)
2638 }
2639
2640 // CloudFoundrySpaceName returns an attribute KeyValue conforming to the
2641 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
2642 // CloudFoundry space the application is running in.
2643 func CloudFoundrySpaceName(val string) attribute.KeyValue {
2644 return CloudFoundrySpaceNameKey.String(val)
2645 }
2646
2647 // CloudFoundrySystemID returns an attribute KeyValue conforming to the
2648 // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
2649 // name describing the event source.
2650 func CloudFoundrySystemID(val string) attribute.KeyValue {
2651 return CloudFoundrySystemIDKey.String(val)
2652 }
2653
2654 // CloudFoundrySystemInstanceID returns an attribute KeyValue conforming to the
2655 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
2656 // describing the concrete instance of the event source.
2657 func CloudFoundrySystemInstanceID(val string) attribute.KeyValue {
2658 return CloudFoundrySystemInstanceIDKey.String(val)
2659 }
2660
2661 // Namespace: code
2662 const (
2663 // CodeColumnNumberKey is the attribute Key conforming to the
2664 // "code.column.number" semantic conventions. It represents the column number in
2665 // `code.file.path` best representing the operation. It SHOULD point within the
2666 // code unit named in `code.function.name`.
2667 //
2668 // Type: int
2669 // RequirementLevel: Recommended
2670 // Stability: Release_Candidate
2671 CodeColumnNumberKey = attribute.Key("code.column.number")
2672
2673 // CodeFilePathKey is the attribute Key conforming to the "code.file.path"
2674 // semantic conventions. It represents the source code file name that identifies
2675 // the code unit as uniquely as possible (preferably an absolute file path).
2676 //
2677 // Type: string
2678 // RequirementLevel: Recommended
2679 // Stability: Release_Candidate
2680 //
2681 // Examples: /usr/local/MyApplication/content_root/app/index.php
2682 CodeFilePathKey = attribute.Key("code.file.path")
2683
2684 // CodeFunctionNameKey is the attribute Key conforming to the
2685 // "code.function.name" semantic conventions. It represents the method or
2686 // function fully-qualified name without arguments. The value should fit the
2687 // natural representation of the language runtime, which is also likely the same
2688 // used within `code.stacktrace` attribute value.
2689 //
2690 // Type: string
2691 // RequirementLevel: Recommended
2692 // Stability: Release_Candidate
2693 //
2694 // Examples: "com.example.MyHttpService.serveRequest",
2695 // "GuzzleHttp\Client::transfer", "fopen"
2696 // Note: Values and format depends on each language runtime, thus it is
2697 // impossible to provide an exhaustive list of examples.
2698 // The values are usually the same (or prefixes of) the ones found in native
2699 // stack trace representation stored in
2700 // `code.stacktrace` without information on arguments.
2701 //
2702 // Examples:
2703 //
2704 // - Java method: `com.example.MyHttpService.serveRequest`
2705 // - Java anonymous class method: `com.mycompany.Main$1.myMethod`
2706 // - Java lambda method:
2707 // `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod`
2708 // - PHP function: `GuzzleHttp\Client::transfer`
2709 // - Go function: `github.com/my/repo/pkg.foo.func5`
2710 // - Elixir: `OpenTelemetry.Ctx.new`
2711 // - Erlang: `opentelemetry_ctx:new`
2712 // - Rust: `playground::my_module::my_cool_func`
2713 // - C function: `fopen`
2714 CodeFunctionNameKey = attribute.Key("code.function.name")
2715
2716 // CodeLineNumberKey is the attribute Key conforming to the "code.line.number"
2717 // semantic conventions. It represents the line number in `code.file.path` best
2718 // representing the operation. It SHOULD point within the code unit named in
2719 // `code.function.name`.
2720 //
2721 // Type: int
2722 // RequirementLevel: Recommended
2723 // Stability: Release_Candidate
2724 CodeLineNumberKey = attribute.Key("code.line.number")
2725
2726 // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
2727 // semantic conventions. It represents a stacktrace as a string in the natural
2728 // representation for the language runtime. The representation is identical to
2729 // [`exception.stacktrace`].
2730 //
2731 // Type: string
2732 // RequirementLevel: Recommended
2733 // Stability: Release_Candidate
2734 //
2735 // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
2736 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
2737 // com.example.GenerateTrace.main(GenerateTrace.java:5)
2738 //
2739 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
2740 CodeStacktraceKey = attribute.Key("code.stacktrace")
2741 )
2742
2743 // CodeColumnNumber returns an attribute KeyValue conforming to the
2744 // "code.column.number" semantic conventions. It represents the column number in
2745 // `code.file.path` best representing the operation. It SHOULD point within the
2746 // code unit named in `code.function.name`.
2747 func CodeColumnNumber(val int) attribute.KeyValue {
2748 return CodeColumnNumberKey.Int(val)
2749 }
2750
2751 // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path"
2752 // semantic conventions. It represents the source code file name that identifies
2753 // the code unit as uniquely as possible (preferably an absolute file path).
2754 func CodeFilePath(val string) attribute.KeyValue {
2755 return CodeFilePathKey.String(val)
2756 }
2757
2758 // CodeFunctionName returns an attribute KeyValue conforming to the
2759 // "code.function.name" semantic conventions. It represents the method or
2760 // function fully-qualified name without arguments. The value should fit the
2761 // natural representation of the language runtime, which is also likely the same
2762 // used within `code.stacktrace` attribute value.
2763 func CodeFunctionName(val string) attribute.KeyValue {
2764 return CodeFunctionNameKey.String(val)
2765 }
2766
2767 // CodeLineNumber returns an attribute KeyValue conforming to the
2768 // "code.line.number" semantic conventions. It represents the line number in
2769 // `code.file.path` best representing the operation. It SHOULD point within the
2770 // code unit named in `code.function.name`.
2771 func CodeLineNumber(val int) attribute.KeyValue {
2772 return CodeLineNumberKey.Int(val)
2773 }
2774
2775 // CodeStacktrace returns an attribute KeyValue conforming to the
2776 // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
2777 // in the natural representation for the language runtime. The representation is
2778 // identical to [`exception.stacktrace`].
2779 //
2780 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
2781 func CodeStacktrace(val string) attribute.KeyValue {
2782 return CodeStacktraceKey.String(val)
2783 }
2784
2785 // Namespace: container
2786 const (
2787 // ContainerCommandKey is the attribute Key conforming to the
2788 // "container.command" semantic conventions. It represents the command used to
2789 // run the container (i.e. the command name).
2790 //
2791 // Type: string
2792 // RequirementLevel: Recommended
2793 // Stability: Development
2794 //
2795 // Examples: "otelcontribcol"
2796 // Note: If using embedded credentials or sensitive data, it is recommended to
2797 // remove them to prevent potential leakage.
2798 ContainerCommandKey = attribute.Key("container.command")
2799
2800 // ContainerCommandArgsKey is the attribute Key conforming to the
2801 // "container.command_args" semantic conventions. It represents the all the
2802 // command arguments (including the command/executable itself) run by the
2803 // container.
2804 //
2805 // Type: string[]
2806 // RequirementLevel: Recommended
2807 // Stability: Development
2808 //
2809 // Examples: "otelcontribcol", "--config", "config.yaml"
2810 ContainerCommandArgsKey = attribute.Key("container.command_args")
2811
2812 // ContainerCommandLineKey is the attribute Key conforming to the
2813 // "container.command_line" semantic conventions. It represents the full command
2814 // run by the container as a single string representing the full command.
2815 //
2816 // Type: string
2817 // RequirementLevel: Recommended
2818 // Stability: Development
2819 //
2820 // Examples: "otelcontribcol --config config.yaml"
2821 ContainerCommandLineKey = attribute.Key("container.command_line")
2822
2823 // ContainerCSIPluginNameKey is the attribute Key conforming to the
2824 // "container.csi.plugin.name" semantic conventions. It represents the name of
2825 // the CSI ([Container Storage Interface]) plugin used by the volume.
2826 //
2827 // Type: string
2828 // RequirementLevel: Recommended
2829 // Stability: Development
2830 //
2831 // Examples: "pd.csi.storage.gke.io"
2832 // Note: This can sometimes be referred to as a "driver" in CSI implementations.
2833 // This should represent the `name` field of the GetPluginInfo RPC.
2834 //
2835 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2836 ContainerCSIPluginNameKey = attribute.Key("container.csi.plugin.name")
2837
2838 // ContainerCSIVolumeIDKey is the attribute Key conforming to the
2839 // "container.csi.volume.id" semantic conventions. It represents the unique
2840 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
2841 //
2842 // Type: string
2843 // RequirementLevel: Recommended
2844 // Stability: Development
2845 //
2846 // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
2847 // Note: This can sometimes be referred to as a "volume handle" in CSI
2848 // implementations. This should represent the `Volume.volume_id` field in CSI
2849 // spec.
2850 //
2851 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2852 ContainerCSIVolumeIDKey = attribute.Key("container.csi.volume.id")
2853
2854 // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
2855 // conventions. It represents the container ID. Usually a UUID, as for example
2856 // used to [identify Docker containers]. The UUID might be abbreviated.
2857 //
2858 // Type: string
2859 // RequirementLevel: Recommended
2860 // Stability: Development
2861 //
2862 // Examples: "a3bf90e006b2"
2863 //
2864 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
2865 ContainerIDKey = attribute.Key("container.id")
2866
2867 // ContainerImageIDKey is the attribute Key conforming to the
2868 // "container.image.id" semantic conventions. It represents the runtime specific
2869 // image identifier. Usually a hash algorithm followed by a UUID.
2870 //
2871 // Type: string
2872 // RequirementLevel: Recommended
2873 // Stability: Development
2874 //
2875 // Examples:
2876 // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
2877 // Note: Docker defines a sha256 of the image id; `container.image.id`
2878 // corresponds to the `Image` field from the Docker container inspect [API]
2879 // endpoint.
2880 // K8s defines a link to the container registry repository with digest
2881 // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
2882 // .
2883 // The ID is assigned by the container runtime and can vary in different
2884 // environments. Consider using `oci.manifest.digest` if it is important to
2885 // identify the same image in different environments/runtimes.
2886 //
2887 // [API]: https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect
2888 ContainerImageIDKey = attribute.Key("container.image.id")
2889
2890 // ContainerImageNameKey is the attribute Key conforming to the
2891 // "container.image.name" semantic conventions. It represents the name of the
2892 // image the container was built on.
2893 //
2894 // Type: string
2895 // RequirementLevel: Recommended
2896 // Stability: Development
2897 //
2898 // Examples: "gcr.io/opentelemetry/operator"
2899 ContainerImageNameKey = attribute.Key("container.image.name")
2900
2901 // ContainerImageRepoDigestsKey is the attribute Key conforming to the
2902 // "container.image.repo_digests" semantic conventions. It represents the repo
2903 // digests of the container image as provided by the container runtime.
2904 //
2905 // Type: string[]
2906 // RequirementLevel: Recommended
2907 // Stability: Development
2908 //
2909 // Examples:
2910 // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
2911 // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
2912 // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
2913 //
2914 // [Docker]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
2915 // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
2916 ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
2917
2918 // ContainerImageTagsKey is the attribute Key conforming to the
2919 // "container.image.tags" semantic conventions. It represents the container
2920 // image tags. An example can be found in [Docker Image Inspect]. Should be only
2921 // the `<tag>` section of the full name for example from
2922 // `registry.example.com/my-org/my-image:<tag>`.
2923 //
2924 // Type: string[]
2925 // RequirementLevel: Recommended
2926 // Stability: Development
2927 //
2928 // Examples: "v1.27.1", "3.5.7-0"
2929 //
2930 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
2931 ContainerImageTagsKey = attribute.Key("container.image.tags")
2932
2933 // ContainerNameKey is the attribute Key conforming to the "container.name"
2934 // semantic conventions. It represents the container name used by container
2935 // runtime.
2936 //
2937 // Type: string
2938 // RequirementLevel: Recommended
2939 // Stability: Development
2940 //
2941 // Examples: "opentelemetry-autoconf"
2942 ContainerNameKey = attribute.Key("container.name")
2943
2944 // ContainerRuntimeKey is the attribute Key conforming to the
2945 // "container.runtime" semantic conventions. It represents the container runtime
2946 // managing this container.
2947 //
2948 // Type: string
2949 // RequirementLevel: Recommended
2950 // Stability: Development
2951 //
2952 // Examples: "docker", "containerd", "rkt"
2953 ContainerRuntimeKey = attribute.Key("container.runtime")
2954 )
2955
2956 // ContainerCommand returns an attribute KeyValue conforming to the
2957 // "container.command" semantic conventions. It represents the command used to
2958 // run the container (i.e. the command name).
2959 func ContainerCommand(val string) attribute.KeyValue {
2960 return ContainerCommandKey.String(val)
2961 }
2962
2963 // ContainerCommandArgs returns an attribute KeyValue conforming to the
2964 // "container.command_args" semantic conventions. It represents the all the
2965 // command arguments (including the command/executable itself) run by the
2966 // container.
2967 func ContainerCommandArgs(val ...string) attribute.KeyValue {
2968 return ContainerCommandArgsKey.StringSlice(val)
2969 }
2970
2971 // ContainerCommandLine returns an attribute KeyValue conforming to the
2972 // "container.command_line" semantic conventions. It represents the full command
2973 // run by the container as a single string representing the full command.
2974 func ContainerCommandLine(val string) attribute.KeyValue {
2975 return ContainerCommandLineKey.String(val)
2976 }
2977
2978 // ContainerCSIPluginName returns an attribute KeyValue conforming to the
2979 // "container.csi.plugin.name" semantic conventions. It represents the name of
2980 // the CSI ([Container Storage Interface]) plugin used by the volume.
2981 //
2982 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2983 func ContainerCSIPluginName(val string) attribute.KeyValue {
2984 return ContainerCSIPluginNameKey.String(val)
2985 }
2986
2987 // ContainerCSIVolumeID returns an attribute KeyValue conforming to the
2988 // "container.csi.volume.id" semantic conventions. It represents the unique
2989 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
2990 //
2991 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
2992 func ContainerCSIVolumeID(val string) attribute.KeyValue {
2993 return ContainerCSIVolumeIDKey.String(val)
2994 }
2995
2996 // ContainerID returns an attribute KeyValue conforming to the "container.id"
2997 // semantic conventions. It represents the container ID. Usually a UUID, as for
2998 // example used to [identify Docker containers]. The UUID might be abbreviated.
2999 //
3000 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3001 func ContainerID(val string) attribute.KeyValue {
3002 return ContainerIDKey.String(val)
3003 }
3004
3005 // ContainerImageID returns an attribute KeyValue conforming to the
3006 // "container.image.id" semantic conventions. It represents the runtime specific
3007 // image identifier. Usually a hash algorithm followed by a UUID.
3008 func ContainerImageID(val string) attribute.KeyValue {
3009 return ContainerImageIDKey.String(val)
3010 }
3011
3012 // ContainerImageName returns an attribute KeyValue conforming to the
3013 // "container.image.name" semantic conventions. It represents the name of the
3014 // image the container was built on.
3015 func ContainerImageName(val string) attribute.KeyValue {
3016 return ContainerImageNameKey.String(val)
3017 }
3018
3019 // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
3020 // "container.image.repo_digests" semantic conventions. It represents the repo
3021 // digests of the container image as provided by the container runtime.
3022 func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
3023 return ContainerImageRepoDigestsKey.StringSlice(val)
3024 }
3025
3026 // ContainerImageTags returns an attribute KeyValue conforming to the
3027 // "container.image.tags" semantic conventions. It represents the container image
3028 // tags. An example can be found in [Docker Image Inspect]. Should be only the
3029 // `<tag>` section of the full name for example from
3030 // `registry.example.com/my-org/my-image:<tag>`.
3031 //
3032 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
3033 func ContainerImageTags(val ...string) attribute.KeyValue {
3034 return ContainerImageTagsKey.StringSlice(val)
3035 }
3036
3037 // ContainerName returns an attribute KeyValue conforming to the "container.name"
3038 // semantic conventions. It represents the container name used by container
3039 // runtime.
3040 func ContainerName(val string) attribute.KeyValue {
3041 return ContainerNameKey.String(val)
3042 }
3043
3044 // ContainerRuntime returns an attribute KeyValue conforming to the
3045 // "container.runtime" semantic conventions. It represents the container runtime
3046 // managing this container.
3047 func ContainerRuntime(val string) attribute.KeyValue {
3048 return ContainerRuntimeKey.String(val)
3049 }
3050
3051 // Namespace: cpu
3052 const (
3053 // CPULogicalNumberKey is the attribute Key conforming to the
3054 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3055 // number [0..n-1].
3056 //
3057 // Type: int
3058 // RequirementLevel: Recommended
3059 // Stability: Development
3060 //
3061 // Examples: 1
3062 CPULogicalNumberKey = attribute.Key("cpu.logical_number")
3063
3064 // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
3065 // conventions. It represents the mode of the CPU.
3066 //
3067 // Type: Enum
3068 // RequirementLevel: Recommended
3069 // Stability: Development
3070 //
3071 // Examples: "user", "system"
3072 CPUModeKey = attribute.Key("cpu.mode")
3073 )
3074
3075 // CPULogicalNumber returns an attribute KeyValue conforming to the
3076 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3077 // number [0..n-1].
3078 func CPULogicalNumber(val int) attribute.KeyValue {
3079 return CPULogicalNumberKey.Int(val)
3080 }
3081
3082 // Enum values for cpu.mode
3083 var (
3084 // user
3085 // Stability: development
3086 CPUModeUser = CPUModeKey.String("user")
3087 // system
3088 // Stability: development
3089 CPUModeSystem = CPUModeKey.String("system")
3090 // nice
3091 // Stability: development
3092 CPUModeNice = CPUModeKey.String("nice")
3093 // idle
3094 // Stability: development
3095 CPUModeIdle = CPUModeKey.String("idle")
3096 // iowait
3097 // Stability: development
3098 CPUModeIOWait = CPUModeKey.String("iowait")
3099 // interrupt
3100 // Stability: development
3101 CPUModeInterrupt = CPUModeKey.String("interrupt")
3102 // steal
3103 // Stability: development
3104 CPUModeSteal = CPUModeKey.String("steal")
3105 // kernel
3106 // Stability: development
3107 CPUModeKernel = CPUModeKey.String("kernel")
3108 )
3109
3110 // Namespace: db
3111 const (
3112 // DBClientConnectionPoolNameKey is the attribute Key conforming to the
3113 // "db.client.connection.pool.name" semantic conventions. It represents the name
3114 // of the connection pool; unique within the instrumented application. In case
3115 // the connection pool implementation doesn't provide a name, instrumentation
3116 // SHOULD use a combination of parameters that would make the name unique, for
3117 // example, combining attributes `server.address`, `server.port`, and
3118 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3119 // Instrumentations that generate connection pool name following different
3120 // patterns SHOULD document it.
3121 //
3122 // Type: string
3123 // RequirementLevel: Recommended
3124 // Stability: Development
3125 //
3126 // Examples: "myDataSource"
3127 DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
3128
3129 // DBClientConnectionStateKey is the attribute Key conforming to the
3130 // "db.client.connection.state" semantic conventions. It represents the state of
3131 // a connection in the pool.
3132 //
3133 // Type: Enum
3134 // RequirementLevel: Recommended
3135 // Stability: Development
3136 //
3137 // Examples: "idle"
3138 DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
3139
3140 // DBCollectionNameKey is the attribute Key conforming to the
3141 // "db.collection.name" semantic conventions. It represents the name of a
3142 // collection (table, container) within the database.
3143 //
3144 // Type: string
3145 // RequirementLevel: Recommended
3146 // Stability: Release_Candidate
3147 //
3148 // Examples: "public.users", "customers"
3149 // Note: It is RECOMMENDED to capture the value as provided by the application
3150 // without attempting to do any case normalization.
3151 //
3152 // The collection name SHOULD NOT be extracted from `db.query.text`,
3153 // when the database system supports cross-table queries in non-batch
3154 // operations.
3155 //
3156 // For batch operations, if the individual operations are known to have the same
3157 // collection name then that collection name SHOULD be used.
3158 DBCollectionNameKey = attribute.Key("db.collection.name")
3159
3160 // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
3161 // conventions. It represents the name of the database, fully qualified within
3162 // the server address and port.
3163 //
3164 // Type: string
3165 // RequirementLevel: Recommended
3166 // Stability: Release_Candidate
3167 //
3168 // Examples: "customers", "test.users"
3169 // Note: If a database system has multiple namespace components, they SHOULD be
3170 // concatenated (potentially using database system specific conventions) from
3171 // most general to most specific namespace component, and more specific
3172 // namespaces SHOULD NOT be captured without the more general namespaces, to
3173 // ensure that "startswith" queries for the more general namespaces will be
3174 // valid.
3175 // Semantic conventions for individual database systems SHOULD document what
3176 // `db.namespace` means in the context of that system.
3177 // It is RECOMMENDED to capture the value as provided by the application without
3178 // attempting to do any case normalization.
3179 DBNamespaceKey = attribute.Key("db.namespace")
3180
3181 // DBOperationBatchSizeKey is the attribute Key conforming to the
3182 // "db.operation.batch.size" semantic conventions. It represents the number of
3183 // queries included in a batch operation.
3184 //
3185 // Type: int
3186 // RequirementLevel: Recommended
3187 // Stability: Release_Candidate
3188 //
3189 // Examples: 2, 3, 4
3190 // Note: Operations are only considered batches when they contain two or more
3191 // operations, and so `db.operation.batch.size` SHOULD never be `1`.
3192 DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
3193
3194 // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
3195 // semantic conventions. It represents the name of the operation or command
3196 // being executed.
3197 //
3198 // Type: string
3199 // RequirementLevel: Recommended
3200 // Stability: Release_Candidate
3201 //
3202 // Examples: "findAndModify", "HMSET", "SELECT"
3203 // Note: It is RECOMMENDED to capture the value as provided by the application
3204 // without attempting to do any case normalization.
3205 //
3206 // The operation name SHOULD NOT be extracted from `db.query.text`,
3207 // when the database system supports cross-table queries in non-batch
3208 // operations.
3209 //
3210 // If spaces can occur in the operation name, multiple consecutive spaces
3211 // SHOULD be normalized to a single space.
3212 //
3213 // For batch operations, if the individual operations are known to have the same
3214 // operation name
3215 // then that operation name SHOULD be used prepended by `BATCH `,
3216 // otherwise `db.operation.name` SHOULD be `BATCH` or some other database
3217 // system specific term if more applicable.
3218 DBOperationNameKey = attribute.Key("db.operation.name")
3219
3220 // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary"
3221 // semantic conventions. It represents the low cardinality representation of a
3222 // database query text.
3223 //
3224 // Type: string
3225 // RequirementLevel: Recommended
3226 // Stability: Release_Candidate
3227 //
3228 // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get
3229 // user by id"
3230 // Note: `db.query.summary` provides static summary of the query text. It
3231 // describes a class of database queries and is useful as a grouping key,
3232 // especially when analyzing telemetry for database calls involving complex
3233 // queries.
3234 // Summary may be available to the instrumentation through instrumentation hooks
3235 // or other means. If it is not available, instrumentations that support query
3236 // parsing SHOULD generate a summary following [Generating query summary]
3237 // section.
3238 //
3239 // [Generating query summary]: ../database/database-spans.md#generating-a-summary-of-the-query-text
3240 DBQuerySummaryKey = attribute.Key("db.query.summary")
3241
3242 // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
3243 // semantic conventions. It represents the database query being executed.
3244 //
3245 // Type: string
3246 // RequirementLevel: Recommended
3247 // Stability: Release_Candidate
3248 //
3249 // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?"
3250 // Note: For sanitization see [Sanitization of `db.query.text`].
3251 // For batch operations, if the individual operations are known to have the same
3252 // query text then that query text SHOULD be used, otherwise all of the
3253 // individual query texts SHOULD be concatenated with separator `; ` or some
3254 // other database system specific separator if more applicable.
3255 // Even though parameterized query text can potentially have sensitive data, by
3256 // using a parameterized query the user is giving a strong signal that any
3257 // sensitive data will be passed as parameter values, and the benefit to
3258 // observability of capturing the static part of the query text by default
3259 // outweighs the risk.
3260 //
3261 // [Sanitization of `db.query.text`]: ../database/database-spans.md#sanitization-of-dbquerytext
3262 DBQueryTextKey = attribute.Key("db.query.text")
3263
3264 // DBResponseReturnedRowsKey is the attribute Key conforming to the
3265 // "db.response.returned_rows" semantic conventions. It represents the number of
3266 // rows returned by the operation.
3267 //
3268 // Type: int
3269 // RequirementLevel: Recommended
3270 // Stability: Development
3271 //
3272 // Examples: 10, 30, 1000
3273 DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows")
3274
3275 // DBResponseStatusCodeKey is the attribute Key conforming to the
3276 // "db.response.status_code" semantic conventions. It represents the database
3277 // response status code.
3278 //
3279 // Type: string
3280 // RequirementLevel: Recommended
3281 // Stability: Release_Candidate
3282 //
3283 // Examples: "102", "ORA-17002", "08P01", "404"
3284 // Note: The status code returned by the database. Usually it represents an
3285 // error code, but may also represent partial success, warning, or differentiate
3286 // between various types of successful outcomes.
3287 // Semantic conventions for individual database systems SHOULD document what
3288 // `db.response.status_code` means in the context of that system.
3289 DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
3290
3291 // DBStoredProcedureNameKey is the attribute Key conforming to the
3292 // "db.stored_procedure.name" semantic conventions. It represents the name of a
3293 // stored procedure within the database.
3294 //
3295 // Type: string
3296 // RequirementLevel: Recommended
3297 // Stability: Release_Candidate
3298 //
3299 // Examples: "GetCustomer"
3300 // Note: It is RECOMMENDED to capture the value as provided by the application
3301 // without attempting to do any case normalization.
3302 //
3303 // For batch operations, if the individual operations are known to have the same
3304 // stored procedure name then that stored procedure name SHOULD be used.
3305 DBStoredProcedureNameKey = attribute.Key("db.stored_procedure.name")
3306
3307 // DBSystemNameKey is the attribute Key conforming to the "db.system.name"
3308 // semantic conventions. It represents the database management system (DBMS)
3309 // product as identified by the client instrumentation.
3310 //
3311 // Type: Enum
3312 // RequirementLevel: Recommended
3313 // Stability: Release_Candidate
3314 //
3315 // Examples:
3316 // Note: The actual DBMS may differ from the one identified by the client. For
3317 // example, when using PostgreSQL client libraries to connect to a CockroachDB,
3318 // the `db.system.name` is set to `postgresql` based on the instrumentation's
3319 // best knowledge.
3320 DBSystemNameKey = attribute.Key("db.system.name")
3321 )
3322
3323 // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
3324 // "db.client.connection.pool.name" semantic conventions. It represents the name
3325 // of the connection pool; unique within the instrumented application. In case
3326 // the connection pool implementation doesn't provide a name, instrumentation
3327 // SHOULD use a combination of parameters that would make the name unique, for
3328 // example, combining attributes `server.address`, `server.port`, and
3329 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3330 // Instrumentations that generate connection pool name following different
3331 // patterns SHOULD document it.
3332 func DBClientConnectionPoolName(val string) attribute.KeyValue {
3333 return DBClientConnectionPoolNameKey.String(val)
3334 }
3335
3336 // DBCollectionName returns an attribute KeyValue conforming to the
3337 // "db.collection.name" semantic conventions. It represents the name of a
3338 // collection (table, container) within the database.
3339 func DBCollectionName(val string) attribute.KeyValue {
3340 return DBCollectionNameKey.String(val)
3341 }
3342
3343 // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
3344 // semantic conventions. It represents the name of the database, fully qualified
3345 // within the server address and port.
3346 func DBNamespace(val string) attribute.KeyValue {
3347 return DBNamespaceKey.String(val)
3348 }
3349
3350 // DBOperationBatchSize returns an attribute KeyValue conforming to the
3351 // "db.operation.batch.size" semantic conventions. It represents the number of
3352 // queries included in a batch operation.
3353 func DBOperationBatchSize(val int) attribute.KeyValue {
3354 return DBOperationBatchSizeKey.Int(val)
3355 }
3356
3357 // DBOperationName returns an attribute KeyValue conforming to the
3358 // "db.operation.name" semantic conventions. It represents the name of the
3359 // operation or command being executed.
3360 func DBOperationName(val string) attribute.KeyValue {
3361 return DBOperationNameKey.String(val)
3362 }
3363
3364 // DBQuerySummary returns an attribute KeyValue conforming to the
3365 // "db.query.summary" semantic conventions. It represents the low cardinality
3366 // representation of a database query text.
3367 func DBQuerySummary(val string) attribute.KeyValue {
3368 return DBQuerySummaryKey.String(val)
3369 }
3370
3371 // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
3372 // semantic conventions. It represents the database query being executed.
3373 func DBQueryText(val string) attribute.KeyValue {
3374 return DBQueryTextKey.String(val)
3375 }
3376
3377 // DBResponseReturnedRows returns an attribute KeyValue conforming to the
3378 // "db.response.returned_rows" semantic conventions. It represents the number of
3379 // rows returned by the operation.
3380 func DBResponseReturnedRows(val int) attribute.KeyValue {
3381 return DBResponseReturnedRowsKey.Int(val)
3382 }
3383
3384 // DBResponseStatusCode returns an attribute KeyValue conforming to the
3385 // "db.response.status_code" semantic conventions. It represents the database
3386 // response status code.
3387 func DBResponseStatusCode(val string) attribute.KeyValue {
3388 return DBResponseStatusCodeKey.String(val)
3389 }
3390
3391 // DBStoredProcedureName returns an attribute KeyValue conforming to the
3392 // "db.stored_procedure.name" semantic conventions. It represents the name of a
3393 // stored procedure within the database.
3394 func DBStoredProcedureName(val string) attribute.KeyValue {
3395 return DBStoredProcedureNameKey.String(val)
3396 }
3397
3398 // Enum values for db.client.connection.state
3399 var (
3400 // idle
3401 // Stability: development
3402 DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
3403 // used
3404 // Stability: development
3405 DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
3406 )
3407
3408 // Enum values for db.system.name
3409 var (
3410 // Some other SQL database. Fallback only.
3411 // Stability: development
3412 DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql")
3413 // [Adabas (Adaptable Database System)]
3414 // Stability: development
3415 //
3416 // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas
3417 DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas")
3418 // [Actian Ingres]
3419 // Stability: development
3420 //
3421 // [Actian Ingres]: https://www.actian.com/databases/ingres/
3422 DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres")
3423 // [Amazon DynamoDB]
3424 // Stability: development
3425 //
3426 // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/
3427 DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb")
3428 // [Amazon Redshift]
3429 // Stability: development
3430 //
3431 // [Amazon Redshift]: https://aws.amazon.com/redshift/
3432 DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift")
3433 // [Azure Cosmos DB]
3434 // Stability: development
3435 //
3436 // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db
3437 DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb")
3438 // [InterSystems Caché]
3439 // Stability: development
3440 //
3441 // [InterSystems Caché]: https://www.intersystems.com/products/cache/
3442 DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache")
3443 // [Apache Cassandra]
3444 // Stability: development
3445 //
3446 // [Apache Cassandra]: https://cassandra.apache.org/
3447 DBSystemNameCassandra = DBSystemNameKey.String("cassandra")
3448 // [ClickHouse]
3449 // Stability: development
3450 //
3451 // [ClickHouse]: https://clickhouse.com/
3452 DBSystemNameClickHouse = DBSystemNameKey.String("clickhouse")
3453 // [CockroachDB]
3454 // Stability: development
3455 //
3456 // [CockroachDB]: https://www.cockroachlabs.com/
3457 DBSystemNameCockroachDB = DBSystemNameKey.String("cockroachdb")
3458 // [Couchbase]
3459 // Stability: development
3460 //
3461 // [Couchbase]: https://www.couchbase.com/
3462 DBSystemNameCouchbase = DBSystemNameKey.String("couchbase")
3463 // [Apache CouchDB]
3464 // Stability: development
3465 //
3466 // [Apache CouchDB]: https://couchdb.apache.org/
3467 DBSystemNameCouchDB = DBSystemNameKey.String("couchdb")
3468 // [Apache Derby]
3469 // Stability: development
3470 //
3471 // [Apache Derby]: https://db.apache.org/derby/
3472 DBSystemNameDerby = DBSystemNameKey.String("derby")
3473 // [Elasticsearch]
3474 // Stability: development
3475 //
3476 // [Elasticsearch]: https://www.elastic.co/elasticsearch
3477 DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch")
3478 // [Firebird]
3479 // Stability: development
3480 //
3481 // [Firebird]: https://www.firebirdsql.org/
3482 DBSystemNameFirebirdSQL = DBSystemNameKey.String("firebirdsql")
3483 // [Google Cloud Spanner]
3484 // Stability: development
3485 //
3486 // [Google Cloud Spanner]: https://cloud.google.com/spanner
3487 DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner")
3488 // [Apache Geode]
3489 // Stability: development
3490 //
3491 // [Apache Geode]: https://geode.apache.org/
3492 DBSystemNameGeode = DBSystemNameKey.String("geode")
3493 // [H2 Database]
3494 // Stability: development
3495 //
3496 // [H2 Database]: https://h2database.com/
3497 DBSystemNameH2database = DBSystemNameKey.String("h2database")
3498 // [Apache HBase]
3499 // Stability: development
3500 //
3501 // [Apache HBase]: https://hbase.apache.org/
3502 DBSystemNameHBase = DBSystemNameKey.String("hbase")
3503 // [Apache Hive]
3504 // Stability: development
3505 //
3506 // [Apache Hive]: https://hive.apache.org/
3507 DBSystemNameHive = DBSystemNameKey.String("hive")
3508 // [HyperSQL Database]
3509 // Stability: development
3510 //
3511 // [HyperSQL Database]: https://hsqldb.org/
3512 DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb")
3513 // [IBM Db2]
3514 // Stability: development
3515 //
3516 // [IBM Db2]: https://www.ibm.com/db2
3517 DBSystemNameIBMDB2 = DBSystemNameKey.String("ibm.db2")
3518 // [IBM Informix]
3519 // Stability: development
3520 //
3521 // [IBM Informix]: https://www.ibm.com/products/informix
3522 DBSystemNameIBMInformix = DBSystemNameKey.String("ibm.informix")
3523 // [IBM Netezza]
3524 // Stability: development
3525 //
3526 // [IBM Netezza]: https://www.ibm.com/products/netezza
3527 DBSystemNameIBMNetezza = DBSystemNameKey.String("ibm.netezza")
3528 // [InfluxDB]
3529 // Stability: development
3530 //
3531 // [InfluxDB]: https://www.influxdata.com/
3532 DBSystemNameInfluxDB = DBSystemNameKey.String("influxdb")
3533 // [Instant]
3534 // Stability: development
3535 //
3536 // [Instant]: https://www.instantdb.com/
3537 DBSystemNameInstantDB = DBSystemNameKey.String("instantdb")
3538 // [MariaDB]
3539 // Stability: release_candidate
3540 //
3541 // [MariaDB]: https://mariadb.org/
3542 DBSystemNameMariaDB = DBSystemNameKey.String("mariadb")
3543 // [Memcached]
3544 // Stability: development
3545 //
3546 // [Memcached]: https://memcached.org/
3547 DBSystemNameMemcached = DBSystemNameKey.String("memcached")
3548 // [MongoDB]
3549 // Stability: development
3550 //
3551 // [MongoDB]: https://www.mongodb.com/
3552 DBSystemNameMongoDB = DBSystemNameKey.String("mongodb")
3553 // [Microsoft SQL Server]
3554 // Stability: release_candidate
3555 //
3556 // [Microsoft SQL Server]: https://www.microsoft.com/sql-server
3557 DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server")
3558 // [MySQL]
3559 // Stability: release_candidate
3560 //
3561 // [MySQL]: https://www.mysql.com/
3562 DBSystemNameMySQL = DBSystemNameKey.String("mysql")
3563 // [Neo4j]
3564 // Stability: development
3565 //
3566 // [Neo4j]: https://neo4j.com/
3567 DBSystemNameNeo4j = DBSystemNameKey.String("neo4j")
3568 // [OpenSearch]
3569 // Stability: development
3570 //
3571 // [OpenSearch]: https://opensearch.org/
3572 DBSystemNameOpenSearch = DBSystemNameKey.String("opensearch")
3573 // [Oracle Database]
3574 // Stability: development
3575 //
3576 // [Oracle Database]: https://www.oracle.com/database/
3577 DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db")
3578 // [PostgreSQL]
3579 // Stability: release_candidate
3580 //
3581 // [PostgreSQL]: https://www.postgresql.org/
3582 DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql")
3583 // [Redis]
3584 // Stability: development
3585 //
3586 // [Redis]: https://redis.io/
3587 DBSystemNameRedis = DBSystemNameKey.String("redis")
3588 // [SAP HANA]
3589 // Stability: development
3590 //
3591 // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html
3592 DBSystemNameSAPHANA = DBSystemNameKey.String("sap.hana")
3593 // [SAP MaxDB]
3594 // Stability: development
3595 //
3596 // [SAP MaxDB]: https://maxdb.sap.com/
3597 DBSystemNameSAPMaxDB = DBSystemNameKey.String("sap.maxdb")
3598 // [SQLite]
3599 // Stability: development
3600 //
3601 // [SQLite]: https://www.sqlite.org/
3602 DBSystemNameSQLite = DBSystemNameKey.String("sqlite")
3603 // [Teradata]
3604 // Stability: development
3605 //
3606 // [Teradata]: https://www.teradata.com/
3607 DBSystemNameTeradata = DBSystemNameKey.String("teradata")
3608 // [Trino]
3609 // Stability: development
3610 //
3611 // [Trino]: https://trino.io/
3612 DBSystemNameTrino = DBSystemNameKey.String("trino")
3613 )
3614
3615 // Namespace: deployment
3616 const (
3617 // DeploymentEnvironmentNameKey is the attribute Key conforming to the
3618 // "deployment.environment.name" semantic conventions. It represents the name of
3619 // the [deployment environment] (aka deployment tier).
3620 //
3621 // Type: string
3622 // RequirementLevel: Recommended
3623 // Stability: Development
3624 //
3625 // Examples: "staging", "production"
3626 // Note: `deployment.environment.name` does not affect the uniqueness
3627 // constraints defined through
3628 // the `service.namespace`, `service.name` and `service.instance.id` resource
3629 // attributes.
3630 // This implies that resources carrying the following attribute combinations
3631 // MUST be
3632 // considered to be identifying the same service:
3633 //
3634 // - `service.name=frontend`, `deployment.environment.name=production`
3635 // - `service.name=frontend`, `deployment.environment.name=staging`.
3636 //
3637 //
3638 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
3639 DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
3640
3641 // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
3642 // semantic conventions. It represents the id of the deployment.
3643 //
3644 // Type: string
3645 // RequirementLevel: Recommended
3646 // Stability: Development
3647 //
3648 // Examples: "1208"
3649 DeploymentIDKey = attribute.Key("deployment.id")
3650
3651 // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
3652 // semantic conventions. It represents the name of the deployment.
3653 //
3654 // Type: string
3655 // RequirementLevel: Recommended
3656 // Stability: Development
3657 //
3658 // Examples: "deploy my app", "deploy-frontend"
3659 DeploymentNameKey = attribute.Key("deployment.name")
3660
3661 // DeploymentStatusKey is the attribute Key conforming to the
3662 // "deployment.status" semantic conventions. It represents the status of the
3663 // deployment.
3664 //
3665 // Type: Enum
3666 // RequirementLevel: Recommended
3667 // Stability: Development
3668 //
3669 // Examples:
3670 DeploymentStatusKey = attribute.Key("deployment.status")
3671 )
3672
3673 // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
3674 // "deployment.environment.name" semantic conventions. It represents the name of
3675 // the [deployment environment] (aka deployment tier).
3676 //
3677 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
3678 func DeploymentEnvironmentName(val string) attribute.KeyValue {
3679 return DeploymentEnvironmentNameKey.String(val)
3680 }
3681
3682 // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
3683 // semantic conventions. It represents the id of the deployment.
3684 func DeploymentID(val string) attribute.KeyValue {
3685 return DeploymentIDKey.String(val)
3686 }
3687
3688 // DeploymentName returns an attribute KeyValue conforming to the
3689 // "deployment.name" semantic conventions. It represents the name of the
3690 // deployment.
3691 func DeploymentName(val string) attribute.KeyValue {
3692 return DeploymentNameKey.String(val)
3693 }
3694
3695 // Enum values for deployment.status
3696 var (
3697 // failed
3698 // Stability: development
3699 DeploymentStatusFailed = DeploymentStatusKey.String("failed")
3700 // succeeded
3701 // Stability: development
3702 DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
3703 )
3704
3705 // Namespace: destination
3706 const (
3707 // DestinationAddressKey is the attribute Key conforming to the
3708 // "destination.address" semantic conventions. It represents the destination
3709 // address - domain name if available without reverse DNS lookup; otherwise, IP
3710 // address or Unix domain socket name.
3711 //
3712 // Type: string
3713 // RequirementLevel: Recommended
3714 // Stability: Development
3715 //
3716 // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
3717 // Note: When observed from the source side, and when communicating through an
3718 // intermediary, `destination.address` SHOULD represent the destination address
3719 // behind any intermediaries, for example proxies, if it's available.
3720 DestinationAddressKey = attribute.Key("destination.address")
3721
3722 // DestinationPortKey is the attribute Key conforming to the "destination.port"
3723 // semantic conventions. It represents the destination port number.
3724 //
3725 // Type: int
3726 // RequirementLevel: Recommended
3727 // Stability: Development
3728 //
3729 // Examples: 3389, 2888
3730 DestinationPortKey = attribute.Key("destination.port")
3731 )
3732
3733 // DestinationAddress returns an attribute KeyValue conforming to the
3734 // "destination.address" semantic conventions. It represents the destination
3735 // address - domain name if available without reverse DNS lookup; otherwise, IP
3736 // address or Unix domain socket name.
3737 func DestinationAddress(val string) attribute.KeyValue {
3738 return DestinationAddressKey.String(val)
3739 }
3740
3741 // DestinationPort returns an attribute KeyValue conforming to the
3742 // "destination.port" semantic conventions. It represents the destination port
3743 // number.
3744 func DestinationPort(val int) attribute.KeyValue {
3745 return DestinationPortKey.Int(val)
3746 }
3747
3748 // Namespace: device
3749 const (
3750 // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
3751 // conventions. It represents a unique identifier representing the device.
3752 //
3753 // Type: string
3754 // RequirementLevel: Recommended
3755 // Stability: Development
3756 //
3757 // Examples: "123456789012345", "01:23:45:67:89:AB"
3758 // Note: Its value SHOULD be identical for all apps on a device and it SHOULD
3759 // NOT change if an app is uninstalled and re-installed.
3760 // However, it might be resettable by the user for all apps on a device.
3761 // Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) MAY be
3762 // used as values.
3763 //
3764 // More information about Android identifier best practices can be found [here]
3765 // .
3766 //
3767 // > [!WARNING]> This attribute may contain sensitive (PII) information. Caution
3768 // > should be taken when storing personal data or anything which can identify a
3769 // > user. GDPR and data protection laws may apply,
3770 // > ensure you do your own due diligence.> Due to these reasons, this
3771 // > identifier is not recommended for consumer applications and will likely
3772 // > result in rejection from both Google Play and App Store.
3773 // > However, it may be appropriate for specific enterprise scenarios, such as
3774 // > kiosk devices or enterprise-managed devices, with appropriate compliance
3775 // > clearance.
3776 // > Any instrumentation providing this identifier MUST implement it as an
3777 // > opt-in feature.> See [`app.installation.id`]> for a more
3778 // > privacy-preserving alternative.
3779 //
3780 // [here]: https://developer.android.com/training/articles/user-data-ids
3781 // [`app.installation.id`]: /docs/attributes-registry/app.md#app-installation-id
3782 DeviceIDKey = attribute.Key("device.id")
3783
3784 // DeviceManufacturerKey is the attribute Key conforming to the
3785 // "device.manufacturer" semantic conventions. It represents the name of the
3786 // device manufacturer.
3787 //
3788 // Type: string
3789 // RequirementLevel: Recommended
3790 // Stability: Development
3791 //
3792 // Examples: "Apple", "Samsung"
3793 // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
3794 // hardcode the value `Apple`.
3795 //
3796 // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
3797 DeviceManufacturerKey = attribute.Key("device.manufacturer")
3798
3799 // DeviceModelIdentifierKey is the attribute Key conforming to the
3800 // "device.model.identifier" semantic conventions. It represents the model
3801 // identifier for the device.
3802 //
3803 // Type: string
3804 // RequirementLevel: Recommended
3805 // Stability: Development
3806 //
3807 // Examples: "iPhone3,4", "SM-G920F"
3808 // Note: It's recommended this value represents a machine-readable version of
3809 // the model identifier rather than the market or consumer-friendly name of the
3810 // device.
3811 DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
3812
3813 // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
3814 // semantic conventions. It represents the marketing name for the device model.
3815 //
3816 // Type: string
3817 // RequirementLevel: Recommended
3818 // Stability: Development
3819 //
3820 // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
3821 // Note: It's recommended this value represents a human-readable version of the
3822 // device model rather than a machine-readable alternative.
3823 DeviceModelNameKey = attribute.Key("device.model.name")
3824 )
3825
3826 // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
3827 // conventions. It represents a unique identifier representing the device.
3828 func DeviceID(val string) attribute.KeyValue {
3829 return DeviceIDKey.String(val)
3830 }
3831
3832 // DeviceManufacturer returns an attribute KeyValue conforming to the
3833 // "device.manufacturer" semantic conventions. It represents the name of the
3834 // device manufacturer.
3835 func DeviceManufacturer(val string) attribute.KeyValue {
3836 return DeviceManufacturerKey.String(val)
3837 }
3838
3839 // DeviceModelIdentifier returns an attribute KeyValue conforming to the
3840 // "device.model.identifier" semantic conventions. It represents the model
3841 // identifier for the device.
3842 func DeviceModelIdentifier(val string) attribute.KeyValue {
3843 return DeviceModelIdentifierKey.String(val)
3844 }
3845
3846 // DeviceModelName returns an attribute KeyValue conforming to the
3847 // "device.model.name" semantic conventions. It represents the marketing name for
3848 // the device model.
3849 func DeviceModelName(val string) attribute.KeyValue {
3850 return DeviceModelNameKey.String(val)
3851 }
3852
3853 // Namespace: disk
3854 const (
3855 // DiskIODirectionKey is the attribute Key conforming to the "disk.io.direction"
3856 // semantic conventions. It represents the disk IO operation direction.
3857 //
3858 // Type: Enum
3859 // RequirementLevel: Recommended
3860 // Stability: Development
3861 //
3862 // Examples: "read"
3863 DiskIODirectionKey = attribute.Key("disk.io.direction")
3864 )
3865
3866 // Enum values for disk.io.direction
3867 var (
3868 // read
3869 // Stability: development
3870 DiskIODirectionRead = DiskIODirectionKey.String("read")
3871 // write
3872 // Stability: development
3873 DiskIODirectionWrite = DiskIODirectionKey.String("write")
3874 )
3875
3876 // Namespace: dns
3877 const (
3878 // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
3879 // semantic conventions. It represents the name being queried.
3880 //
3881 // Type: string
3882 // RequirementLevel: Recommended
3883 // Stability: Development
3884 //
3885 // Examples: "www.example.com", "opentelemetry.io"
3886 // Note: If the name field contains non-printable characters (below 32 or above
3887 // 126), those characters should be represented as escaped base 10 integers
3888 // (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns,
3889 // and line feeds should be converted to \t, \r, and \n respectively.
3890 DNSQuestionNameKey = attribute.Key("dns.question.name")
3891 )
3892
3893 // DNSQuestionName returns an attribute KeyValue conforming to the
3894 // "dns.question.name" semantic conventions. It represents the name being
3895 // queried.
3896 func DNSQuestionName(val string) attribute.KeyValue {
3897 return DNSQuestionNameKey.String(val)
3898 }
3899
3900 // Namespace: elasticsearch
3901 const (
3902 // ElasticsearchNodeNameKey is the attribute Key conforming to the
3903 // "elasticsearch.node.name" semantic conventions. It represents the represents
3904 // the human-readable identifier of the node/instance to which a request was
3905 // routed.
3906 //
3907 // Type: string
3908 // RequirementLevel: Recommended
3909 // Stability: Development
3910 //
3911 // Examples: "instance-0000000001"
3912 ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name")
3913 )
3914
3915 // ElasticsearchNodeName returns an attribute KeyValue conforming to the
3916 // "elasticsearch.node.name" semantic conventions. It represents the represents
3917 // the human-readable identifier of the node/instance to which a request was
3918 // routed.
3919 func ElasticsearchNodeName(val string) attribute.KeyValue {
3920 return ElasticsearchNodeNameKey.String(val)
3921 }
3922
3923 // Namespace: enduser
3924 const (
3925 // EnduserIDKey is the attribute Key conforming to the "enduser.id" semantic
3926 // conventions. It represents the unique identifier of an end user in the
3927 // system. It maybe a username, email address, or other identifier.
3928 //
3929 // Type: string
3930 // RequirementLevel: Recommended
3931 // Stability: Development
3932 //
3933 // Examples: "username"
3934 // Note: Unique identifier of an end user in the system.
3935 //
3936 // > [!Warning]
3937 // > This field contains sensitive (PII) information.
3938 EnduserIDKey = attribute.Key("enduser.id")
3939
3940 // EnduserPseudoIDKey is the attribute Key conforming to the "enduser.pseudo.id"
3941 // semantic conventions. It represents the pseudonymous identifier of an end
3942 // user. This identifier should be a random value that is not directly linked or
3943 // associated with the end user's actual identity.
3944 //
3945 // Type: string
3946 // RequirementLevel: Recommended
3947 // Stability: Development
3948 //
3949 // Examples: "QdH5CAWJgqVT4rOr0qtumf"
3950 // Note: Pseudonymous identifier of an end user.
3951 //
3952 // > [!Warning]
3953 // > This field contains sensitive (linkable PII) information.
3954 EnduserPseudoIDKey = attribute.Key("enduser.pseudo.id")
3955 )
3956
3957 // EnduserID returns an attribute KeyValue conforming to the "enduser.id"
3958 // semantic conventions. It represents the unique identifier of an end user in
3959 // the system. It maybe a username, email address, or other identifier.
3960 func EnduserID(val string) attribute.KeyValue {
3961 return EnduserIDKey.String(val)
3962 }
3963
3964 // EnduserPseudoID returns an attribute KeyValue conforming to the
3965 // "enduser.pseudo.id" semantic conventions. It represents the pseudonymous
3966 // identifier of an end user. This identifier should be a random value that is
3967 // not directly linked or associated with the end user's actual identity.
3968 func EnduserPseudoID(val string) attribute.KeyValue {
3969 return EnduserPseudoIDKey.String(val)
3970 }
3971
3972 // Namespace: error
3973 const (
3974 // ErrorMessageKey is the attribute Key conforming to the "error.message"
3975 // semantic conventions. It represents a message providing more detail about an
3976 // error in human-readable form.
3977 //
3978 // Type: string
3979 // RequirementLevel: Recommended
3980 // Stability: Development
3981 //
3982 // Examples: "Unexpected input type: string", "The user has exceeded their
3983 // storage quota"
3984 // Note: `error.message` should provide additional context and detail about an
3985 // error.
3986 // It is NOT RECOMMENDED to duplicate the value of `error.type` in
3987 // `error.message`.
3988 // It is also NOT RECOMMENDED to duplicate the value of `exception.message` in
3989 // `error.message`.
3990 //
3991 // `error.message` is NOT RECOMMENDED for metrics or spans due to its unbounded
3992 // cardinality and overlap with span status.
3993 ErrorMessageKey = attribute.Key("error.message")
3994
3995 // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
3996 // conventions. It represents the describes a class of error the operation ended
3997 // with.
3998 //
3999 // Type: Enum
4000 // RequirementLevel: Recommended
4001 // Stability: Stable
4002 //
4003 // Examples: "timeout", "java.net.UnknownHostException",
4004 // "server_certificate_invalid", "500"
4005 // Note: The `error.type` SHOULD be predictable, and SHOULD have low
4006 // cardinality.
4007 //
4008 // When `error.type` is set to a type (e.g., an exception type), its
4009 // canonical class name identifying the type within the artifact SHOULD be used.
4010 //
4011 // Instrumentations SHOULD document the list of errors they report.
4012 //
4013 // The cardinality of `error.type` within one instrumentation library SHOULD be
4014 // low.
4015 // Telemetry consumers that aggregate data from multiple instrumentation
4016 // libraries and applications
4017 // should be prepared for `error.type` to have high cardinality at query time
4018 // when no
4019 // additional filters are applied.
4020 //
4021 // If the operation has completed successfully, instrumentations SHOULD NOT set
4022 // `error.type`.
4023 //
4024 // If a specific domain defines its own set of error identifiers (such as HTTP
4025 // or gRPC status codes),
4026 // it's RECOMMENDED to:
4027 //
4028 // - Use a domain-specific attribute
4029 // - Set `error.type` to capture all errors, regardless of whether they are
4030 // defined within the domain-specific set or not.
4031 ErrorTypeKey = attribute.Key("error.type")
4032 )
4033
4034 // ErrorMessage returns an attribute KeyValue conforming to the "error.message"
4035 // semantic conventions. It represents a message providing more detail about an
4036 // error in human-readable form.
4037 func ErrorMessage(val string) attribute.KeyValue {
4038 return ErrorMessageKey.String(val)
4039 }
4040
4041 // Enum values for error.type
4042 var (
4043 // A fallback error value to be used when the instrumentation doesn't define a
4044 // custom value.
4045 //
4046 // Stability: stable
4047 ErrorTypeOther = ErrorTypeKey.String("_OTHER")
4048 )
4049
4050 // Namespace: exception
4051 const (
4052 // ExceptionMessageKey is the attribute Key conforming to the
4053 // "exception.message" semantic conventions. It represents the exception
4054 // message.
4055 //
4056 // Type: string
4057 // RequirementLevel: Recommended
4058 // Stability: Stable
4059 //
4060 // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
4061 ExceptionMessageKey = attribute.Key("exception.message")
4062
4063 // ExceptionStacktraceKey is the attribute Key conforming to the
4064 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4065 // string in the natural representation for the language runtime. The
4066 // representation is to be determined and documented by each language SIG.
4067 //
4068 // Type: string
4069 // RequirementLevel: Recommended
4070 // Stability: Stable
4071 //
4072 // Examples: Exception in thread "main" java.lang.RuntimeException: Test
4073 // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
4074 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
4075 // com.example.GenerateTrace.main(GenerateTrace.java:5)
4076 ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
4077
4078 // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
4079 // semantic conventions. It represents the type of the exception (its
4080 // fully-qualified class name, if applicable). The dynamic type of the exception
4081 // should be preferred over the static type in languages that support it.
4082 //
4083 // Type: string
4084 // RequirementLevel: Recommended
4085 // Stability: Stable
4086 //
4087 // Examples: "java.net.ConnectException", "OSError"
4088 ExceptionTypeKey = attribute.Key("exception.type")
4089 )
4090
4091 // ExceptionMessage returns an attribute KeyValue conforming to the
4092 // "exception.message" semantic conventions. It represents the exception message.
4093 func ExceptionMessage(val string) attribute.KeyValue {
4094 return ExceptionMessageKey.String(val)
4095 }
4096
4097 // ExceptionStacktrace returns an attribute KeyValue conforming to the
4098 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4099 // string in the natural representation for the language runtime. The
4100 // representation is to be determined and documented by each language SIG.
4101 func ExceptionStacktrace(val string) attribute.KeyValue {
4102 return ExceptionStacktraceKey.String(val)
4103 }
4104
4105 // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
4106 // semantic conventions. It represents the type of the exception (its
4107 // fully-qualified class name, if applicable). The dynamic type of the exception
4108 // should be preferred over the static type in languages that support it.
4109 func ExceptionType(val string) attribute.KeyValue {
4110 return ExceptionTypeKey.String(val)
4111 }
4112
4113 // Namespace: faas
4114 const (
4115 // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
4116 // semantic conventions. It represents a boolean that is true if the serverless
4117 // function is executed for the first time (aka cold-start).
4118 //
4119 // Type: boolean
4120 // RequirementLevel: Recommended
4121 // Stability: Development
4122 //
4123 // Examples:
4124 FaaSColdstartKey = attribute.Key("faas.coldstart")
4125
4126 // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
4127 // conventions. It represents a string containing the schedule period as
4128 // [Cron Expression].
4129 //
4130 // Type: string
4131 // RequirementLevel: Recommended
4132 // Stability: Development
4133 //
4134 // Examples: 0/5 * * * ? *
4135 //
4136 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4137 FaaSCronKey = attribute.Key("faas.cron")
4138
4139 // FaaSDocumentCollectionKey is the attribute Key conforming to the
4140 // "faas.document.collection" semantic conventions. It represents the name of
4141 // the source on which the triggering operation was performed. For example, in
4142 // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
4143 // database name.
4144 //
4145 // Type: string
4146 // RequirementLevel: Recommended
4147 // Stability: Development
4148 //
4149 // Examples: "myBucketName", "myDbName"
4150 FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
4151
4152 // FaaSDocumentNameKey is the attribute Key conforming to the
4153 // "faas.document.name" semantic conventions. It represents the document
4154 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4155 // the name of the file, and in Cosmos DB the table name.
4156 //
4157 // Type: string
4158 // RequirementLevel: Recommended
4159 // Stability: Development
4160 //
4161 // Examples: "myFile.txt", "myTableName"
4162 FaaSDocumentNameKey = attribute.Key("faas.document.name")
4163
4164 // FaaSDocumentOperationKey is the attribute Key conforming to the
4165 // "faas.document.operation" semantic conventions. It represents the describes
4166 // the type of the operation that was performed on the data.
4167 //
4168 // Type: Enum
4169 // RequirementLevel: Recommended
4170 // Stability: Development
4171 //
4172 // Examples:
4173 FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
4174
4175 // FaaSDocumentTimeKey is the attribute Key conforming to the
4176 // "faas.document.time" semantic conventions. It represents a string containing
4177 // the time when the data was accessed in the [ISO 8601] format expressed in
4178 // [UTC].
4179 //
4180 // Type: string
4181 // RequirementLevel: Recommended
4182 // Stability: Development
4183 //
4184 // Examples: 2020-01-23T13:47:06Z
4185 //
4186 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4187 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4188 FaaSDocumentTimeKey = attribute.Key("faas.document.time")
4189
4190 // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
4191 // semantic conventions. It represents the execution environment ID as a string,
4192 // that will be potentially reused for other invocations to the same
4193 // function/function version.
4194 //
4195 // Type: string
4196 // RequirementLevel: Recommended
4197 // Stability: Development
4198 //
4199 // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
4200 // Note: - **AWS Lambda:** Use the (full) log stream name.
4201 FaaSInstanceKey = attribute.Key("faas.instance")
4202
4203 // FaaSInvocationIDKey is the attribute Key conforming to the
4204 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4205 // the current function invocation.
4206 //
4207 // Type: string
4208 // RequirementLevel: Recommended
4209 // Stability: Development
4210 //
4211 // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
4212 FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
4213
4214 // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
4215 // semantic conventions. It represents the name of the invoked function.
4216 //
4217 // Type: string
4218 // RequirementLevel: Recommended
4219 // Stability: Development
4220 //
4221 // Examples: my-function
4222 // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
4223 // function.
4224 FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
4225
4226 // FaaSInvokedProviderKey is the attribute Key conforming to the
4227 // "faas.invoked_provider" semantic conventions. It represents the cloud
4228 // provider of the invoked function.
4229 //
4230 // Type: Enum
4231 // RequirementLevel: Recommended
4232 // Stability: Development
4233 //
4234 // Examples:
4235 // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
4236 // invoked function.
4237 FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
4238
4239 // FaaSInvokedRegionKey is the attribute Key conforming to the
4240 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4241 // the invoked function.
4242 //
4243 // Type: string
4244 // RequirementLevel: Recommended
4245 // Stability: Development
4246 //
4247 // Examples: eu-central-1
4248 // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
4249 // function.
4250 FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
4251
4252 // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
4253 // semantic conventions. It represents the amount of memory available to the
4254 // serverless function converted to Bytes.
4255 //
4256 // Type: int
4257 // RequirementLevel: Recommended
4258 // Stability: Development
4259 //
4260 // Note: It's recommended to set this attribute since e.g. too little memory can
4261 // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
4262 // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
4263 // information (which must be multiplied by 1,048,576).
4264 FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
4265
4266 // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
4267 // conventions. It represents the name of the single function that this runtime
4268 // instance executes.
4269 //
4270 // Type: string
4271 // RequirementLevel: Recommended
4272 // Stability: Development
4273 //
4274 // Examples: "my-function", "myazurefunctionapp/some-function-name"
4275 // Note: This is the name of the function as configured/deployed on the FaaS
4276 // platform and is usually different from the name of the callback
4277 // function (which may be stored in the
4278 // [`code.namespace`/`code.function.name`]
4279 // span attributes).
4280 //
4281 // For some cloud providers, the above definition is ambiguous. The following
4282 // definition of function name MUST be used for this attribute
4283 // (and consequently the span name) for the listed cloud providers/products:
4284 //
4285 // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
4286 // followed by a forward slash followed by the function name (this form
4287 // can also be seen in the resource JSON for the function).
4288 // This means that a span attribute MUST be used, as an Azure function
4289 // app can host multiple functions that would usually share
4290 // a TracerProvider (see also the `cloud.resource_id` attribute).
4291 //
4292 //
4293 // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes
4294 FaaSNameKey = attribute.Key("faas.name")
4295
4296 // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
4297 // conventions. It represents a string containing the function invocation time
4298 // in the [ISO 8601] format expressed in [UTC].
4299 //
4300 // Type: string
4301 // RequirementLevel: Recommended
4302 // Stability: Development
4303 //
4304 // Examples: 2020-01-23T13:47:06Z
4305 //
4306 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4307 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4308 FaaSTimeKey = attribute.Key("faas.time")
4309
4310 // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
4311 // conventions. It represents the type of the trigger which caused this function
4312 // invocation.
4313 //
4314 // Type: Enum
4315 // RequirementLevel: Recommended
4316 // Stability: Development
4317 //
4318 // Examples:
4319 FaaSTriggerKey = attribute.Key("faas.trigger")
4320
4321 // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
4322 // conventions. It represents the immutable version of the function being
4323 // executed.
4324 //
4325 // Type: string
4326 // RequirementLevel: Recommended
4327 // Stability: Development
4328 //
4329 // Examples: "26", "pinkfroid-00002"
4330 // Note: Depending on the cloud provider and platform, use:
4331 //
4332 // - **AWS Lambda:** The [function version]
4333 // (an integer represented as a decimal string).
4334 // - **Google Cloud Run (Services):** The [revision]
4335 // (i.e., the function name plus the revision suffix).
4336 // - **Google Cloud Functions:** The value of the
4337 // [`K_REVISION` environment variable].
4338 // - **Azure Functions:** Not applicable. Do not set this attribute.
4339 //
4340 //
4341 // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
4342 // [revision]: https://cloud.google.com/run/docs/managing/revisions
4343 // [`K_REVISION` environment variable]: https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically
4344 FaaSVersionKey = attribute.Key("faas.version")
4345 )
4346
4347 // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
4348 // semantic conventions. It represents a boolean that is true if the serverless
4349 // function is executed for the first time (aka cold-start).
4350 func FaaSColdstart(val bool) attribute.KeyValue {
4351 return FaaSColdstartKey.Bool(val)
4352 }
4353
4354 // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
4355 // conventions. It represents a string containing the schedule period as
4356 // [Cron Expression].
4357 //
4358 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4359 func FaaSCron(val string) attribute.KeyValue {
4360 return FaaSCronKey.String(val)
4361 }
4362
4363 // FaaSDocumentCollection returns an attribute KeyValue conforming to the
4364 // "faas.document.collection" semantic conventions. It represents the name of the
4365 // source on which the triggering operation was performed. For example, in Cloud
4366 // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
4367 // name.
4368 func FaaSDocumentCollection(val string) attribute.KeyValue {
4369 return FaaSDocumentCollectionKey.String(val)
4370 }
4371
4372 // FaaSDocumentName returns an attribute KeyValue conforming to the
4373 // "faas.document.name" semantic conventions. It represents the document
4374 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4375 // the name of the file, and in Cosmos DB the table name.
4376 func FaaSDocumentName(val string) attribute.KeyValue {
4377 return FaaSDocumentNameKey.String(val)
4378 }
4379
4380 // FaaSDocumentTime returns an attribute KeyValue conforming to the
4381 // "faas.document.time" semantic conventions. It represents a string containing
4382 // the time when the data was accessed in the [ISO 8601] format expressed in
4383 // [UTC].
4384 //
4385 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4386 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4387 func FaaSDocumentTime(val string) attribute.KeyValue {
4388 return FaaSDocumentTimeKey.String(val)
4389 }
4390
4391 // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
4392 // semantic conventions. It represents the execution environment ID as a string,
4393 // that will be potentially reused for other invocations to the same
4394 // function/function version.
4395 func FaaSInstance(val string) attribute.KeyValue {
4396 return FaaSInstanceKey.String(val)
4397 }
4398
4399 // FaaSInvocationID returns an attribute KeyValue conforming to the
4400 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4401 // the current function invocation.
4402 func FaaSInvocationID(val string) attribute.KeyValue {
4403 return FaaSInvocationIDKey.String(val)
4404 }
4405
4406 // FaaSInvokedName returns an attribute KeyValue conforming to the
4407 // "faas.invoked_name" semantic conventions. It represents the name of the
4408 // invoked function.
4409 func FaaSInvokedName(val string) attribute.KeyValue {
4410 return FaaSInvokedNameKey.String(val)
4411 }
4412
4413 // FaaSInvokedRegion returns an attribute KeyValue conforming to the
4414 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4415 // the invoked function.
4416 func FaaSInvokedRegion(val string) attribute.KeyValue {
4417 return FaaSInvokedRegionKey.String(val)
4418 }
4419
4420 // FaaSMaxMemory returns an attribute KeyValue conforming to the
4421 // "faas.max_memory" semantic conventions. It represents the amount of memory
4422 // available to the serverless function converted to Bytes.
4423 func FaaSMaxMemory(val int) attribute.KeyValue {
4424 return FaaSMaxMemoryKey.Int(val)
4425 }
4426
4427 // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
4428 // conventions. It represents the name of the single function that this runtime
4429 // instance executes.
4430 func FaaSName(val string) attribute.KeyValue {
4431 return FaaSNameKey.String(val)
4432 }
4433
4434 // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
4435 // conventions. It represents a string containing the function invocation time in
4436 // the [ISO 8601] format expressed in [UTC].
4437 //
4438 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4439 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4440 func FaaSTime(val string) attribute.KeyValue {
4441 return FaaSTimeKey.String(val)
4442 }
4443
4444 // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
4445 // semantic conventions. It represents the immutable version of the function
4446 // being executed.
4447 func FaaSVersion(val string) attribute.KeyValue {
4448 return FaaSVersionKey.String(val)
4449 }
4450
4451 // Enum values for faas.document.operation
4452 var (
4453 // When a new object is created.
4454 // Stability: development
4455 FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
4456 // When an object is modified.
4457 // Stability: development
4458 FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
4459 // When an object is deleted.
4460 // Stability: development
4461 FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
4462 )
4463
4464 // Enum values for faas.invoked_provider
4465 var (
4466 // Alibaba Cloud
4467 // Stability: development
4468 FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
4469 // Amazon Web Services
4470 // Stability: development
4471 FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
4472 // Microsoft Azure
4473 // Stability: development
4474 FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
4475 // Google Cloud Platform
4476 // Stability: development
4477 FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
4478 // Tencent Cloud
4479 // Stability: development
4480 FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
4481 )
4482
4483 // Enum values for faas.trigger
4484 var (
4485 // A response to some data source operation such as a database or filesystem
4486 // read/write
4487 // Stability: development
4488 FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
4489 // To provide an answer to an inbound HTTP request
4490 // Stability: development
4491 FaaSTriggerHTTP = FaaSTriggerKey.String("http")
4492 // A function is set to be executed when messages are sent to a messaging system
4493 // Stability: development
4494 FaaSTriggerPubSub = FaaSTriggerKey.String("pubsub")
4495 // A function is scheduled to be executed regularly
4496 // Stability: development
4497 FaaSTriggerTimer = FaaSTriggerKey.String("timer")
4498 // If none of the others apply
4499 // Stability: development
4500 FaaSTriggerOther = FaaSTriggerKey.String("other")
4501 )
4502
4503 // Namespace: feature_flag
4504 const (
4505 // FeatureFlagContextIDKey is the attribute Key conforming to the
4506 // "feature_flag.context.id" semantic conventions. It represents the unique
4507 // identifier for the flag evaluation context. For example, the targeting key.
4508 //
4509 // Type: string
4510 // RequirementLevel: Recommended
4511 // Stability: Development
4512 //
4513 // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db"
4514 FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id")
4515
4516 // FeatureFlagEvaluationErrorMessageKey is the attribute Key conforming to the
4517 // "feature_flag.evaluation.error.message" semantic conventions. It represents a
4518 // message explaining the nature of an error occurring during flag evaluation.
4519 //
4520 // Type: string
4521 // RequirementLevel: Recommended
4522 // Stability: Development
4523 //
4524 // Examples: "Flag `header-color` expected type `string` but found type `number`
4525 // "
4526 FeatureFlagEvaluationErrorMessageKey = attribute.Key("feature_flag.evaluation.error.message")
4527
4528 // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
4529 // semantic conventions. It represents the lookup key of the feature flag.
4530 //
4531 // Type: string
4532 // RequirementLevel: Recommended
4533 // Stability: Development
4534 //
4535 // Examples: "logo-color"
4536 FeatureFlagKeyKey = attribute.Key("feature_flag.key")
4537
4538 // FeatureFlagProviderNameKey is the attribute Key conforming to the
4539 // "feature_flag.provider_name" semantic conventions. It represents the
4540 // identifies the feature flag provider.
4541 //
4542 // Type: string
4543 // RequirementLevel: Recommended
4544 // Stability: Development
4545 //
4546 // Examples: "Flag Manager"
4547 FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider_name")
4548
4549 // FeatureFlagResultReasonKey is the attribute Key conforming to the
4550 // "feature_flag.result.reason" semantic conventions. It represents the reason
4551 // code which shows how a feature flag value was determined.
4552 //
4553 // Type: Enum
4554 // RequirementLevel: Recommended
4555 // Stability: Development
4556 //
4557 // Examples: "static", "targeting_match", "error", "default"
4558 FeatureFlagResultReasonKey = attribute.Key("feature_flag.result.reason")
4559
4560 // FeatureFlagResultVariantKey is the attribute Key conforming to the
4561 // "feature_flag.result.variant" semantic conventions. It represents a semantic
4562 // identifier for an evaluated flag value.
4563 //
4564 // Type: string
4565 // RequirementLevel: Recommended
4566 // Stability: Development
4567 //
4568 // Examples: "red", "true", "on"
4569 // Note: A semantic identifier, commonly referred to as a variant, provides a
4570 // means
4571 // for referring to a value without including the value itself. This can
4572 // provide additional context for understanding the meaning behind a value.
4573 // For example, the variant `red` maybe be used for the value `#c05543`.
4574 FeatureFlagResultVariantKey = attribute.Key("feature_flag.result.variant")
4575
4576 // FeatureFlagSetIDKey is the attribute Key conforming to the
4577 // "feature_flag.set.id" semantic conventions. It represents the identifier of
4578 // the [flag set] to which the feature flag belongs.
4579 //
4580 // Type: string
4581 // RequirementLevel: Recommended
4582 // Stability: Development
4583 //
4584 // Examples: "proj-1", "ab98sgs", "service1/dev"
4585 //
4586 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
4587 FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id")
4588
4589 // FeatureFlagVersionKey is the attribute Key conforming to the
4590 // "feature_flag.version" semantic conventions. It represents the version of the
4591 // ruleset used during the evaluation. This may be any stable value which
4592 // uniquely identifies the ruleset.
4593 //
4594 // Type: string
4595 // RequirementLevel: Recommended
4596 // Stability: Development
4597 //
4598 // Examples: "1", "01ABCDEF"
4599 FeatureFlagVersionKey = attribute.Key("feature_flag.version")
4600 )
4601
4602 // FeatureFlagContextID returns an attribute KeyValue conforming to the
4603 // "feature_flag.context.id" semantic conventions. It represents the unique
4604 // identifier for the flag evaluation context. For example, the targeting key.
4605 func FeatureFlagContextID(val string) attribute.KeyValue {
4606 return FeatureFlagContextIDKey.String(val)
4607 }
4608
4609 // FeatureFlagEvaluationErrorMessage returns an attribute KeyValue conforming to
4610 // the "feature_flag.evaluation.error.message" semantic conventions. It
4611 // represents a message explaining the nature of an error occurring during flag
4612 // evaluation.
4613 func FeatureFlagEvaluationErrorMessage(val string) attribute.KeyValue {
4614 return FeatureFlagEvaluationErrorMessageKey.String(val)
4615 }
4616
4617 // FeatureFlagKey returns an attribute KeyValue conforming to the
4618 // "feature_flag.key" semantic conventions. It represents the lookup key of the
4619 // feature flag.
4620 func FeatureFlagKey(val string) attribute.KeyValue {
4621 return FeatureFlagKeyKey.String(val)
4622 }
4623
4624 // FeatureFlagProviderName returns an attribute KeyValue conforming to the
4625 // "feature_flag.provider_name" semantic conventions. It represents the
4626 // identifies the feature flag provider.
4627 func FeatureFlagProviderName(val string) attribute.KeyValue {
4628 return FeatureFlagProviderNameKey.String(val)
4629 }
4630
4631 // FeatureFlagResultVariant returns an attribute KeyValue conforming to the
4632 // "feature_flag.result.variant" semantic conventions. It represents a semantic
4633 // identifier for an evaluated flag value.
4634 func FeatureFlagResultVariant(val string) attribute.KeyValue {
4635 return FeatureFlagResultVariantKey.String(val)
4636 }
4637
4638 // FeatureFlagSetID returns an attribute KeyValue conforming to the
4639 // "feature_flag.set.id" semantic conventions. It represents the identifier of
4640 // the [flag set] to which the feature flag belongs.
4641 //
4642 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
4643 func FeatureFlagSetID(val string) attribute.KeyValue {
4644 return FeatureFlagSetIDKey.String(val)
4645 }
4646
4647 // FeatureFlagVersion returns an attribute KeyValue conforming to the
4648 // "feature_flag.version" semantic conventions. It represents the version of the
4649 // ruleset used during the evaluation. This may be any stable value which
4650 // uniquely identifies the ruleset.
4651 func FeatureFlagVersion(val string) attribute.KeyValue {
4652 return FeatureFlagVersionKey.String(val)
4653 }
4654
4655 // Enum values for feature_flag.result.reason
4656 var (
4657 // The resolved value is static (no dynamic evaluation).
4658 // Stability: development
4659 FeatureFlagResultReasonStatic = FeatureFlagResultReasonKey.String("static")
4660 // The resolved value fell back to a pre-configured value (no dynamic evaluation
4661 // occurred or dynamic evaluation yielded no result).
4662 // Stability: development
4663 FeatureFlagResultReasonDefault = FeatureFlagResultReasonKey.String("default")
4664 // The resolved value was the result of a dynamic evaluation, such as a rule or
4665 // specific user-targeting.
4666 // Stability: development
4667 FeatureFlagResultReasonTargetingMatch = FeatureFlagResultReasonKey.String("targeting_match")
4668 // The resolved value was the result of pseudorandom assignment.
4669 // Stability: development
4670 FeatureFlagResultReasonSplit = FeatureFlagResultReasonKey.String("split")
4671 // The resolved value was retrieved from cache.
4672 // Stability: development
4673 FeatureFlagResultReasonCached = FeatureFlagResultReasonKey.String("cached")
4674 // The resolved value was the result of the flag being disabled in the
4675 // management system.
4676 // Stability: development
4677 FeatureFlagResultReasonDisabled = FeatureFlagResultReasonKey.String("disabled")
4678 // The reason for the resolved value could not be determined.
4679 // Stability: development
4680 FeatureFlagResultReasonUnknown = FeatureFlagResultReasonKey.String("unknown")
4681 // The resolved value is non-authoritative or possibly out of date
4682 // Stability: development
4683 FeatureFlagResultReasonStale = FeatureFlagResultReasonKey.String("stale")
4684 // The resolved value was the result of an error.
4685 // Stability: development
4686 FeatureFlagResultReasonError = FeatureFlagResultReasonKey.String("error")
4687 )
4688
4689 // Namespace: file
4690 const (
4691 // FileAccessedKey is the attribute Key conforming to the "file.accessed"
4692 // semantic conventions. It represents the time when the file was last accessed,
4693 // in ISO 8601 format.
4694 //
4695 // Type: string
4696 // RequirementLevel: Recommended
4697 // Stability: Development
4698 //
4699 // Examples: "2021-01-01T12:00:00Z"
4700 // Note: This attribute might not be supported by some file systems — NFS,
4701 // FAT32, in embedded OS, etc.
4702 FileAccessedKey = attribute.Key("file.accessed")
4703
4704 // FileAttributesKey is the attribute Key conforming to the "file.attributes"
4705 // semantic conventions. It represents the array of file attributes.
4706 //
4707 // Type: string[]
4708 // RequirementLevel: Recommended
4709 // Stability: Development
4710 //
4711 // Examples: "readonly", "hidden"
4712 // Note: Attributes names depend on the OS or file system. Here’s a
4713 // non-exhaustive list of values expected for this attribute: `archive`,
4714 // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
4715 // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
4716 // `write`.
4717 FileAttributesKey = attribute.Key("file.attributes")
4718
4719 // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
4720 // conventions. It represents the time when the file attributes or metadata was
4721 // last changed, in ISO 8601 format.
4722 //
4723 // Type: string
4724 // RequirementLevel: Recommended
4725 // Stability: Development
4726 //
4727 // Examples: "2021-01-01T12:00:00Z"
4728 // Note: `file.changed` captures the time when any of the file's properties or
4729 // attributes (including the content) are changed, while `file.modified`
4730 // captures the timestamp when the file content is modified.
4731 FileChangedKey = attribute.Key("file.changed")
4732
4733 // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
4734 // conventions. It represents the time when the file was created, in ISO 8601
4735 // format.
4736 //
4737 // Type: string
4738 // RequirementLevel: Recommended
4739 // Stability: Development
4740 //
4741 // Examples: "2021-01-01T12:00:00Z"
4742 // Note: This attribute might not be supported by some file systems — NFS,
4743 // FAT32, in embedded OS, etc.
4744 FileCreatedKey = attribute.Key("file.created")
4745
4746 // FileDirectoryKey is the attribute Key conforming to the "file.directory"
4747 // semantic conventions. It represents the directory where the file is located.
4748 // It should include the drive letter, when appropriate.
4749 //
4750 // Type: string
4751 // RequirementLevel: Recommended
4752 // Stability: Development
4753 //
4754 // Examples: "/home/user", "C:\Program Files\MyApp"
4755 FileDirectoryKey = attribute.Key("file.directory")
4756
4757 // FileExtensionKey is the attribute Key conforming to the "file.extension"
4758 // semantic conventions. It represents the file extension, excluding the leading
4759 // dot.
4760 //
4761 // Type: string
4762 // RequirementLevel: Recommended
4763 // Stability: Development
4764 //
4765 // Examples: "png", "gz"
4766 // Note: When the file name has multiple extensions (example.tar.gz), only the
4767 // last one should be captured ("gz", not "tar.gz").
4768 FileExtensionKey = attribute.Key("file.extension")
4769
4770 // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
4771 // semantic conventions. It represents the name of the fork. A fork is
4772 // additional data associated with a filesystem object.
4773 //
4774 // Type: string
4775 // RequirementLevel: Recommended
4776 // Stability: Development
4777 //
4778 // Examples: "Zone.Identifer"
4779 // Note: On Linux, a resource fork is used to store additional data with a
4780 // filesystem object. A file always has at least one fork for the data portion,
4781 // and additional forks may exist.
4782 // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
4783 // data stream for a file is just called $DATA. Zone.Identifier is commonly used
4784 // by Windows to track contents downloaded from the Internet. An ADS is
4785 // typically of the form: C:\path\to\filename.extension:some_fork_name, and
4786 // some_fork_name is the value that should populate `fork_name`.
4787 // `filename.extension` should populate `file.name`, and `extension` should
4788 // populate `file.extension`. The full path, `file.path`, will include the fork
4789 // name.
4790 FileForkNameKey = attribute.Key("file.fork_name")
4791
4792 // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
4793 // semantic conventions. It represents the primary Group ID (GID) of the file.
4794 //
4795 // Type: string
4796 // RequirementLevel: Recommended
4797 // Stability: Development
4798 //
4799 // Examples: "1000"
4800 FileGroupIDKey = attribute.Key("file.group.id")
4801
4802 // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
4803 // semantic conventions. It represents the primary group name of the file.
4804 //
4805 // Type: string
4806 // RequirementLevel: Recommended
4807 // Stability: Development
4808 //
4809 // Examples: "users"
4810 FileGroupNameKey = attribute.Key("file.group.name")
4811
4812 // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
4813 // conventions. It represents the inode representing the file in the filesystem.
4814 //
4815 // Type: string
4816 // RequirementLevel: Recommended
4817 // Stability: Development
4818 //
4819 // Examples: "256383"
4820 FileInodeKey = attribute.Key("file.inode")
4821
4822 // FileModeKey is the attribute Key conforming to the "file.mode" semantic
4823 // conventions. It represents the mode of the file in octal representation.
4824 //
4825 // Type: string
4826 // RequirementLevel: Recommended
4827 // Stability: Development
4828 //
4829 // Examples: "0640"
4830 FileModeKey = attribute.Key("file.mode")
4831
4832 // FileModifiedKey is the attribute Key conforming to the "file.modified"
4833 // semantic conventions. It represents the time when the file content was last
4834 // modified, in ISO 8601 format.
4835 //
4836 // Type: string
4837 // RequirementLevel: Recommended
4838 // Stability: Development
4839 //
4840 // Examples: "2021-01-01T12:00:00Z"
4841 FileModifiedKey = attribute.Key("file.modified")
4842
4843 // FileNameKey is the attribute Key conforming to the "file.name" semantic
4844 // conventions. It represents the name of the file including the extension,
4845 // without the directory.
4846 //
4847 // Type: string
4848 // RequirementLevel: Recommended
4849 // Stability: Development
4850 //
4851 // Examples: "example.png"
4852 FileNameKey = attribute.Key("file.name")
4853
4854 // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
4855 // semantic conventions. It represents the user ID (UID) or security identifier
4856 // (SID) of the file owner.
4857 //
4858 // Type: string
4859 // RequirementLevel: Recommended
4860 // Stability: Development
4861 //
4862 // Examples: "1000"
4863 FileOwnerIDKey = attribute.Key("file.owner.id")
4864
4865 // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
4866 // semantic conventions. It represents the username of the file owner.
4867 //
4868 // Type: string
4869 // RequirementLevel: Recommended
4870 // Stability: Development
4871 //
4872 // Examples: "root"
4873 FileOwnerNameKey = attribute.Key("file.owner.name")
4874
4875 // FilePathKey is the attribute Key conforming to the "file.path" semantic
4876 // conventions. It represents the full path to the file, including the file
4877 // name. It should include the drive letter, when appropriate.
4878 //
4879 // Type: string
4880 // RequirementLevel: Recommended
4881 // Stability: Development
4882 //
4883 // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
4884 FilePathKey = attribute.Key("file.path")
4885
4886 // FileSizeKey is the attribute Key conforming to the "file.size" semantic
4887 // conventions. It represents the file size in bytes.
4888 //
4889 // Type: int
4890 // RequirementLevel: Recommended
4891 // Stability: Development
4892 //
4893 // Examples:
4894 FileSizeKey = attribute.Key("file.size")
4895
4896 // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
4897 // "file.symbolic_link.target_path" semantic conventions. It represents the path
4898 // to the target of a symbolic link.
4899 //
4900 // Type: string
4901 // RequirementLevel: Recommended
4902 // Stability: Development
4903 //
4904 // Examples: "/usr/bin/python3"
4905 // Note: This attribute is only applicable to symbolic links.
4906 FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
4907 )
4908
4909 // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
4910 // semantic conventions. It represents the time when the file was last accessed,
4911 // in ISO 8601 format.
4912 func FileAccessed(val string) attribute.KeyValue {
4913 return FileAccessedKey.String(val)
4914 }
4915
4916 // FileAttributes returns an attribute KeyValue conforming to the
4917 // "file.attributes" semantic conventions. It represents the array of file
4918 // attributes.
4919 func FileAttributes(val ...string) attribute.KeyValue {
4920 return FileAttributesKey.StringSlice(val)
4921 }
4922
4923 // FileChanged returns an attribute KeyValue conforming to the "file.changed"
4924 // semantic conventions. It represents the time when the file attributes or
4925 // metadata was last changed, in ISO 8601 format.
4926 func FileChanged(val string) attribute.KeyValue {
4927 return FileChangedKey.String(val)
4928 }
4929
4930 // FileCreated returns an attribute KeyValue conforming to the "file.created"
4931 // semantic conventions. It represents the time when the file was created, in ISO
4932 // 8601 format.
4933 func FileCreated(val string) attribute.KeyValue {
4934 return FileCreatedKey.String(val)
4935 }
4936
4937 // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
4938 // semantic conventions. It represents the directory where the file is located.
4939 // It should include the drive letter, when appropriate.
4940 func FileDirectory(val string) attribute.KeyValue {
4941 return FileDirectoryKey.String(val)
4942 }
4943
4944 // FileExtension returns an attribute KeyValue conforming to the "file.extension"
4945 // semantic conventions. It represents the file extension, excluding the leading
4946 // dot.
4947 func FileExtension(val string) attribute.KeyValue {
4948 return FileExtensionKey.String(val)
4949 }
4950
4951 // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
4952 // semantic conventions. It represents the name of the fork. A fork is additional
4953 // data associated with a filesystem object.
4954 func FileForkName(val string) attribute.KeyValue {
4955 return FileForkNameKey.String(val)
4956 }
4957
4958 // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
4959 // semantic conventions. It represents the primary Group ID (GID) of the file.
4960 func FileGroupID(val string) attribute.KeyValue {
4961 return FileGroupIDKey.String(val)
4962 }
4963
4964 // FileGroupName returns an attribute KeyValue conforming to the
4965 // "file.group.name" semantic conventions. It represents the primary group name
4966 // of the file.
4967 func FileGroupName(val string) attribute.KeyValue {
4968 return FileGroupNameKey.String(val)
4969 }
4970
4971 // FileInode returns an attribute KeyValue conforming to the "file.inode"
4972 // semantic conventions. It represents the inode representing the file in the
4973 // filesystem.
4974 func FileInode(val string) attribute.KeyValue {
4975 return FileInodeKey.String(val)
4976 }
4977
4978 // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
4979 // conventions. It represents the mode of the file in octal representation.
4980 func FileMode(val string) attribute.KeyValue {
4981 return FileModeKey.String(val)
4982 }
4983
4984 // FileModified returns an attribute KeyValue conforming to the "file.modified"
4985 // semantic conventions. It represents the time when the file content was last
4986 // modified, in ISO 8601 format.
4987 func FileModified(val string) attribute.KeyValue {
4988 return FileModifiedKey.String(val)
4989 }
4990
4991 // FileName returns an attribute KeyValue conforming to the "file.name" semantic
4992 // conventions. It represents the name of the file including the extension,
4993 // without the directory.
4994 func FileName(val string) attribute.KeyValue {
4995 return FileNameKey.String(val)
4996 }
4997
4998 // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
4999 // semantic conventions. It represents the user ID (UID) or security identifier
5000 // (SID) of the file owner.
5001 func FileOwnerID(val string) attribute.KeyValue {
5002 return FileOwnerIDKey.String(val)
5003 }
5004
5005 // FileOwnerName returns an attribute KeyValue conforming to the
5006 // "file.owner.name" semantic conventions. It represents the username of the file
5007 // owner.
5008 func FileOwnerName(val string) attribute.KeyValue {
5009 return FileOwnerNameKey.String(val)
5010 }
5011
5012 // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
5013 // conventions. It represents the full path to the file, including the file name.
5014 // It should include the drive letter, when appropriate.
5015 func FilePath(val string) attribute.KeyValue {
5016 return FilePathKey.String(val)
5017 }
5018
5019 // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
5020 // conventions. It represents the file size in bytes.
5021 func FileSize(val int) attribute.KeyValue {
5022 return FileSizeKey.Int(val)
5023 }
5024
5025 // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
5026 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5027 // to the target of a symbolic link.
5028 func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
5029 return FileSymbolicLinkTargetPathKey.String(val)
5030 }
5031
5032 // Namespace: gcp
5033 const (
5034 // GCPAppHubApplicationContainerKey is the attribute Key conforming to the
5035 // "gcp.apphub.application.container" semantic conventions. It represents the
5036 // container within GCP where the AppHub application is defined.
5037 //
5038 // Type: string
5039 // RequirementLevel: Recommended
5040 // Stability: Development
5041 //
5042 // Examples: "projects/my-container-project"
5043 GCPAppHubApplicationContainerKey = attribute.Key("gcp.apphub.application.container")
5044
5045 // GCPAppHubApplicationIDKey is the attribute Key conforming to the
5046 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5047 // the application as configured in AppHub.
5048 //
5049 // Type: string
5050 // RequirementLevel: Recommended
5051 // Stability: Development
5052 //
5053 // Examples: "my-application"
5054 GCPAppHubApplicationIDKey = attribute.Key("gcp.apphub.application.id")
5055
5056 // GCPAppHubApplicationLocationKey is the attribute Key conforming to the
5057 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5058 // zone or region where the application is defined.
5059 //
5060 // Type: string
5061 // RequirementLevel: Recommended
5062 // Stability: Development
5063 //
5064 // Examples: "us-central1"
5065 GCPAppHubApplicationLocationKey = attribute.Key("gcp.apphub.application.location")
5066
5067 // GCPAppHubServiceCriticalityTypeKey is the attribute Key conforming to the
5068 // "gcp.apphub.service.criticality_type" semantic conventions. It represents the
5069 // criticality of a service indicates its importance to the business.
5070 //
5071 // Type: Enum
5072 // RequirementLevel: Recommended
5073 // Stability: Development
5074 //
5075 // Examples:
5076 // Note: [See AppHub type enum]
5077 //
5078 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5079 GCPAppHubServiceCriticalityTypeKey = attribute.Key("gcp.apphub.service.criticality_type")
5080
5081 // GCPAppHubServiceEnvironmentTypeKey is the attribute Key conforming to the
5082 // "gcp.apphub.service.environment_type" semantic conventions. It represents the
5083 // environment of a service is the stage of a software lifecycle.
5084 //
5085 // Type: Enum
5086 // RequirementLevel: Recommended
5087 // Stability: Development
5088 //
5089 // Examples:
5090 // Note: [See AppHub environment type]
5091 //
5092 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5093 GCPAppHubServiceEnvironmentTypeKey = attribute.Key("gcp.apphub.service.environment_type")
5094
5095 // GCPAppHubServiceIDKey is the attribute Key conforming to the
5096 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5097 // service as configured in AppHub.
5098 //
5099 // Type: string
5100 // RequirementLevel: Recommended
5101 // Stability: Development
5102 //
5103 // Examples: "my-service"
5104 GCPAppHubServiceIDKey = attribute.Key("gcp.apphub.service.id")
5105
5106 // GCPAppHubWorkloadCriticalityTypeKey is the attribute Key conforming to the
5107 // "gcp.apphub.workload.criticality_type" semantic conventions. It represents
5108 // the criticality of a workload indicates its importance to the business.
5109 //
5110 // Type: Enum
5111 // RequirementLevel: Recommended
5112 // Stability: Development
5113 //
5114 // Examples:
5115 // Note: [See AppHub type enum]
5116 //
5117 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5118 GCPAppHubWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub.workload.criticality_type")
5119
5120 // GCPAppHubWorkloadEnvironmentTypeKey is the attribute Key conforming to the
5121 // "gcp.apphub.workload.environment_type" semantic conventions. It represents
5122 // the environment of a workload is the stage of a software lifecycle.
5123 //
5124 // Type: Enum
5125 // RequirementLevel: Recommended
5126 // Stability: Development
5127 //
5128 // Examples:
5129 // Note: [See AppHub environment type]
5130 //
5131 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5132 GCPAppHubWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub.workload.environment_type")
5133
5134 // GCPAppHubWorkloadIDKey is the attribute Key conforming to the
5135 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5136 // workload as configured in AppHub.
5137 //
5138 // Type: string
5139 // RequirementLevel: Recommended
5140 // Stability: Development
5141 //
5142 // Examples: "my-workload"
5143 GCPAppHubWorkloadIDKey = attribute.Key("gcp.apphub.workload.id")
5144
5145 // GCPClientServiceKey is the attribute Key conforming to the
5146 // "gcp.client.service" semantic conventions. It represents the identifies the
5147 // Google Cloud service for which the official client library is intended.
5148 //
5149 // Type: string
5150 // RequirementLevel: Recommended
5151 // Stability: Development
5152 //
5153 // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
5154 // Note: Intended to be a stable identifier for Google Cloud client libraries
5155 // that is uniform across implementation languages. The value should be derived
5156 // from the canonical service domain for the service; for example,
5157 // 'foo.googleapis.com' should result in a value of 'foo'.
5158 GCPClientServiceKey = attribute.Key("gcp.client.service")
5159
5160 // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
5161 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
5162 // the Cloud Run [execution] being run for the Job, as set by the
5163 // [`CLOUD_RUN_EXECUTION`] environment variable.
5164 //
5165 // Type: string
5166 // RequirementLevel: Recommended
5167 // Stability: Development
5168 //
5169 // Examples: "job-name-xxxx", "sample-job-mdw84"
5170 //
5171 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5172 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5173 GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
5174
5175 // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
5176 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5177 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5178 // environment variable.
5179 //
5180 // Type: int
5181 // RequirementLevel: Recommended
5182 // Stability: Development
5183 //
5184 // Examples: 0, 1
5185 //
5186 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5187 GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
5188
5189 // GCPGCEInstanceHostnameKey is the attribute Key conforming to the
5190 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5191 // of a GCE instance. This is the full value of the default or [custom hostname]
5192 // .
5193 //
5194 // Type: string
5195 // RequirementLevel: Recommended
5196 // Stability: Development
5197 //
5198 // Examples: "my-host1234.example.com",
5199 // "sample-vm.us-west1-b.c.my-project.internal"
5200 //
5201 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5202 GCPGCEInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
5203
5204 // GCPGCEInstanceNameKey is the attribute Key conforming to the
5205 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5206 // of a GCE instance. This is the value provided by `host.name`, the visible
5207 // name of the instance in the Cloud Console UI, and the prefix for the default
5208 // hostname of the instance as defined by the [default internal DNS name].
5209 //
5210 // Type: string
5211 // RequirementLevel: Recommended
5212 // Stability: Development
5213 //
5214 // Examples: "instance-1", "my-vm-name"
5215 //
5216 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5217 GCPGCEInstanceNameKey = attribute.Key("gcp.gce.instance.name")
5218 )
5219
5220 // GCPAppHubApplicationContainer returns an attribute KeyValue conforming to the
5221 // "gcp.apphub.application.container" semantic conventions. It represents the
5222 // container within GCP where the AppHub application is defined.
5223 func GCPAppHubApplicationContainer(val string) attribute.KeyValue {
5224 return GCPAppHubApplicationContainerKey.String(val)
5225 }
5226
5227 // GCPAppHubApplicationID returns an attribute KeyValue conforming to the
5228 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5229 // the application as configured in AppHub.
5230 func GCPAppHubApplicationID(val string) attribute.KeyValue {
5231 return GCPAppHubApplicationIDKey.String(val)
5232 }
5233
5234 // GCPAppHubApplicationLocation returns an attribute KeyValue conforming to the
5235 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5236 // zone or region where the application is defined.
5237 func GCPAppHubApplicationLocation(val string) attribute.KeyValue {
5238 return GCPAppHubApplicationLocationKey.String(val)
5239 }
5240
5241 // GCPAppHubServiceID returns an attribute KeyValue conforming to the
5242 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5243 // service as configured in AppHub.
5244 func GCPAppHubServiceID(val string) attribute.KeyValue {
5245 return GCPAppHubServiceIDKey.String(val)
5246 }
5247
5248 // GCPAppHubWorkloadID returns an attribute KeyValue conforming to the
5249 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5250 // workload as configured in AppHub.
5251 func GCPAppHubWorkloadID(val string) attribute.KeyValue {
5252 return GCPAppHubWorkloadIDKey.String(val)
5253 }
5254
5255 // GCPClientService returns an attribute KeyValue conforming to the
5256 // "gcp.client.service" semantic conventions. It represents the identifies the
5257 // Google Cloud service for which the official client library is intended.
5258 func GCPClientService(val string) attribute.KeyValue {
5259 return GCPClientServiceKey.String(val)
5260 }
5261
5262 // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
5263 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
5264 // the Cloud Run [execution] being run for the Job, as set by the
5265 // [`CLOUD_RUN_EXECUTION`] environment variable.
5266 //
5267 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5268 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5269 func GCPCloudRunJobExecution(val string) attribute.KeyValue {
5270 return GCPCloudRunJobExecutionKey.String(val)
5271 }
5272
5273 // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
5274 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5275 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5276 // environment variable.
5277 //
5278 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5279 func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
5280 return GCPCloudRunJobTaskIndexKey.Int(val)
5281 }
5282
5283 // GCPGCEInstanceHostname returns an attribute KeyValue conforming to the
5284 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5285 // of a GCE instance. This is the full value of the default or [custom hostname]
5286 // .
5287 //
5288 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5289 func GCPGCEInstanceHostname(val string) attribute.KeyValue {
5290 return GCPGCEInstanceHostnameKey.String(val)
5291 }
5292
5293 // GCPGCEInstanceName returns an attribute KeyValue conforming to the
5294 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5295 // of a GCE instance. This is the value provided by `host.name`, the visible name
5296 // of the instance in the Cloud Console UI, and the prefix for the default
5297 // hostname of the instance as defined by the [default internal DNS name].
5298 //
5299 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5300 func GCPGCEInstanceName(val string) attribute.KeyValue {
5301 return GCPGCEInstanceNameKey.String(val)
5302 }
5303
5304 // Enum values for gcp.apphub.service.criticality_type
5305 var (
5306 // Mission critical service.
5307 // Stability: development
5308 GCPAppHubServiceCriticalityTypeMissionCritical = GCPAppHubServiceCriticalityTypeKey.String("MISSION_CRITICAL")
5309 // High impact.
5310 // Stability: development
5311 GCPAppHubServiceCriticalityTypeHigh = GCPAppHubServiceCriticalityTypeKey.String("HIGH")
5312 // Medium impact.
5313 // Stability: development
5314 GCPAppHubServiceCriticalityTypeMedium = GCPAppHubServiceCriticalityTypeKey.String("MEDIUM")
5315 // Low impact.
5316 // Stability: development
5317 GCPAppHubServiceCriticalityTypeLow = GCPAppHubServiceCriticalityTypeKey.String("LOW")
5318 )
5319
5320 // Enum values for gcp.apphub.service.environment_type
5321 var (
5322 // Production environment.
5323 // Stability: development
5324 GCPAppHubServiceEnvironmentTypeProduction = GCPAppHubServiceEnvironmentTypeKey.String("PRODUCTION")
5325 // Staging environment.
5326 // Stability: development
5327 GCPAppHubServiceEnvironmentTypeStaging = GCPAppHubServiceEnvironmentTypeKey.String("STAGING")
5328 // Test environment.
5329 // Stability: development
5330 GCPAppHubServiceEnvironmentTypeTest = GCPAppHubServiceEnvironmentTypeKey.String("TEST")
5331 // Development environment.
5332 // Stability: development
5333 GCPAppHubServiceEnvironmentTypeDevelopment = GCPAppHubServiceEnvironmentTypeKey.String("DEVELOPMENT")
5334 )
5335
5336 // Enum values for gcp.apphub.workload.criticality_type
5337 var (
5338 // Mission critical service.
5339 // Stability: development
5340 GCPAppHubWorkloadCriticalityTypeMissionCritical = GCPAppHubWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
5341 // High impact.
5342 // Stability: development
5343 GCPAppHubWorkloadCriticalityTypeHigh = GCPAppHubWorkloadCriticalityTypeKey.String("HIGH")
5344 // Medium impact.
5345 // Stability: development
5346 GCPAppHubWorkloadCriticalityTypeMedium = GCPAppHubWorkloadCriticalityTypeKey.String("MEDIUM")
5347 // Low impact.
5348 // Stability: development
5349 GCPAppHubWorkloadCriticalityTypeLow = GCPAppHubWorkloadCriticalityTypeKey.String("LOW")
5350 )
5351
5352 // Enum values for gcp.apphub.workload.environment_type
5353 var (
5354 // Production environment.
5355 // Stability: development
5356 GCPAppHubWorkloadEnvironmentTypeProduction = GCPAppHubWorkloadEnvironmentTypeKey.String("PRODUCTION")
5357 // Staging environment.
5358 // Stability: development
5359 GCPAppHubWorkloadEnvironmentTypeStaging = GCPAppHubWorkloadEnvironmentTypeKey.String("STAGING")
5360 // Test environment.
5361 // Stability: development
5362 GCPAppHubWorkloadEnvironmentTypeTest = GCPAppHubWorkloadEnvironmentTypeKey.String("TEST")
5363 // Development environment.
5364 // Stability: development
5365 GCPAppHubWorkloadEnvironmentTypeDevelopment = GCPAppHubWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
5366 )
5367
5368 // Namespace: gen_ai
5369 const (
5370 // GenAIAgentDescriptionKey is the attribute Key conforming to the
5371 // "gen_ai.agent.description" semantic conventions. It represents the free-form
5372 // description of the GenAI agent provided by the application.
5373 //
5374 // Type: string
5375 // RequirementLevel: Recommended
5376 // Stability: Development
5377 //
5378 // Examples: "Helps with math problems", "Generates fiction stories"
5379 GenAIAgentDescriptionKey = attribute.Key("gen_ai.agent.description")
5380
5381 // GenAIAgentIDKey is the attribute Key conforming to the "gen_ai.agent.id"
5382 // semantic conventions. It represents the unique identifier of the GenAI agent.
5383 //
5384 // Type: string
5385 // RequirementLevel: Recommended
5386 // Stability: Development
5387 //
5388 // Examples: "asst_5j66UpCpwteGg4YSxUnt7lPY"
5389 GenAIAgentIDKey = attribute.Key("gen_ai.agent.id")
5390
5391 // GenAIAgentNameKey is the attribute Key conforming to the "gen_ai.agent.name"
5392 // semantic conventions. It represents the human-readable name of the GenAI
5393 // agent provided by the application.
5394 //
5395 // Type: string
5396 // RequirementLevel: Recommended
5397 // Stability: Development
5398 //
5399 // Examples: "Math Tutor", "Fiction Writer"
5400 GenAIAgentNameKey = attribute.Key("gen_ai.agent.name")
5401
5402 // GenAIOpenAIRequestServiceTierKey is the attribute Key conforming to the
5403 // "gen_ai.openai.request.service_tier" semantic conventions. It represents the
5404 // service tier requested. May be a specific tier, default, or auto.
5405 //
5406 // Type: Enum
5407 // RequirementLevel: Recommended
5408 // Stability: Development
5409 //
5410 // Examples: "auto", "default"
5411 GenAIOpenAIRequestServiceTierKey = attribute.Key("gen_ai.openai.request.service_tier")
5412
5413 // GenAIOpenAIResponseServiceTierKey is the attribute Key conforming to the
5414 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
5415 // service tier used for the response.
5416 //
5417 // Type: string
5418 // RequirementLevel: Recommended
5419 // Stability: Development
5420 //
5421 // Examples: "scale", "default"
5422 GenAIOpenAIResponseServiceTierKey = attribute.Key("gen_ai.openai.response.service_tier")
5423
5424 // GenAIOpenAIResponseSystemFingerprintKey is the attribute Key conforming to
5425 // the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
5426 // represents a fingerprint to track any eventual change in the Generative AI
5427 // environment.
5428 //
5429 // Type: string
5430 // RequirementLevel: Recommended
5431 // Stability: Development
5432 //
5433 // Examples: "fp_44709d6fcb"
5434 GenAIOpenAIResponseSystemFingerprintKey = attribute.Key("gen_ai.openai.response.system_fingerprint")
5435
5436 // GenAIOperationNameKey is the attribute Key conforming to the
5437 // "gen_ai.operation.name" semantic conventions. It represents the name of the
5438 // operation being performed.
5439 //
5440 // Type: Enum
5441 // RequirementLevel: Recommended
5442 // Stability: Development
5443 //
5444 // Examples:
5445 // Note: If one of the predefined values applies, but specific system uses a
5446 // different name it's RECOMMENDED to document it in the semantic conventions
5447 // for specific GenAI system and use system-specific name in the
5448 // instrumentation. If a different name is not documented, instrumentation
5449 // libraries SHOULD use applicable predefined value.
5450 GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
5451
5452 // GenAIOutputTypeKey is the attribute Key conforming to the
5453 // "gen_ai.output.type" semantic conventions. It represents the represents the
5454 // content type requested by the client.
5455 //
5456 // Type: Enum
5457 // RequirementLevel: Recommended
5458 // Stability: Development
5459 //
5460 // Examples:
5461 // Note: This attribute SHOULD be used when the client requests output of a
5462 // specific type. The model may return zero or more outputs of this type.
5463 // This attribute specifies the output modality and not the actual output
5464 // format. For example, if an image is requested, the actual output could be a
5465 // URL pointing to an image file.
5466 // Additional output format details may be recorded in the future in the
5467 // `gen_ai.output.{type}.*` attributes.
5468 GenAIOutputTypeKey = attribute.Key("gen_ai.output.type")
5469
5470 // GenAIRequestChoiceCountKey is the attribute Key conforming to the
5471 // "gen_ai.request.choice.count" semantic conventions. It represents the target
5472 // number of candidate completions to return.
5473 //
5474 // Type: int
5475 // RequirementLevel: Recommended
5476 // Stability: Development
5477 //
5478 // Examples: 3
5479 GenAIRequestChoiceCountKey = attribute.Key("gen_ai.request.choice.count")
5480
5481 // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the
5482 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
5483 // encoding formats requested in an embeddings operation, if specified.
5484 //
5485 // Type: string[]
5486 // RequirementLevel: Recommended
5487 // Stability: Development
5488 //
5489 // Examples: "base64"], ["float", "binary"
5490 // Note: In some GenAI systems the encoding formats are called embedding types.
5491 // Also, some GenAI systems only accept a single format per request.
5492 GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats")
5493
5494 // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
5495 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
5496 // frequency penalty setting for the GenAI request.
5497 //
5498 // Type: double
5499 // RequirementLevel: Recommended
5500 // Stability: Development
5501 //
5502 // Examples: 0.1
5503 GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
5504
5505 // GenAIRequestMaxTokensKey is the attribute Key conforming to the
5506 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
5507 // number of tokens the model generates for a request.
5508 //
5509 // Type: int
5510 // RequirementLevel: Recommended
5511 // Stability: Development
5512 //
5513 // Examples: 100
5514 GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
5515
5516 // GenAIRequestModelKey is the attribute Key conforming to the
5517 // "gen_ai.request.model" semantic conventions. It represents the name of the
5518 // GenAI model a request is being made to.
5519 //
5520 // Type: string
5521 // RequirementLevel: Recommended
5522 // Stability: Development
5523 //
5524 // Examples: gpt-4
5525 GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
5526
5527 // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
5528 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
5529 // presence penalty setting for the GenAI request.
5530 //
5531 // Type: double
5532 // RequirementLevel: Recommended
5533 // Stability: Development
5534 //
5535 // Examples: 0.1
5536 GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
5537
5538 // GenAIRequestSeedKey is the attribute Key conforming to the
5539 // "gen_ai.request.seed" semantic conventions. It represents the requests with
5540 // same seed value more likely to return same result.
5541 //
5542 // Type: int
5543 // RequirementLevel: Recommended
5544 // Stability: Development
5545 //
5546 // Examples: 100
5547 GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed")
5548
5549 // GenAIRequestStopSequencesKey is the attribute Key conforming to the
5550 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
5551 // of sequences that the model will use to stop generating further tokens.
5552 //
5553 // Type: string[]
5554 // RequirementLevel: Recommended
5555 // Stability: Development
5556 //
5557 // Examples: "forest", "lived"
5558 GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
5559
5560 // GenAIRequestTemperatureKey is the attribute Key conforming to the
5561 // "gen_ai.request.temperature" semantic conventions. It represents the
5562 // temperature setting for the GenAI request.
5563 //
5564 // Type: double
5565 // RequirementLevel: Recommended
5566 // Stability: Development
5567 //
5568 // Examples: 0.0
5569 GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
5570
5571 // GenAIRequestTopKKey is the attribute Key conforming to the
5572 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
5573 // setting for the GenAI request.
5574 //
5575 // Type: double
5576 // RequirementLevel: Recommended
5577 // Stability: Development
5578 //
5579 // Examples: 1.0
5580 GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
5581
5582 // GenAIRequestTopPKey is the attribute Key conforming to the
5583 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
5584 // setting for the GenAI request.
5585 //
5586 // Type: double
5587 // RequirementLevel: Recommended
5588 // Stability: Development
5589 //
5590 // Examples: 1.0
5591 GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
5592
5593 // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
5594 // "gen_ai.response.finish_reasons" semantic conventions. It represents the
5595 // array of reasons the model stopped generating tokens, corresponding to each
5596 // generation received.
5597 //
5598 // Type: string[]
5599 // RequirementLevel: Recommended
5600 // Stability: Development
5601 //
5602 // Examples: "stop"], ["stop", "length"
5603 GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
5604
5605 // GenAIResponseIDKey is the attribute Key conforming to the
5606 // "gen_ai.response.id" semantic conventions. It represents the unique
5607 // identifier for the completion.
5608 //
5609 // Type: string
5610 // RequirementLevel: Recommended
5611 // Stability: Development
5612 //
5613 // Examples: "chatcmpl-123"
5614 GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
5615
5616 // GenAIResponseModelKey is the attribute Key conforming to the
5617 // "gen_ai.response.model" semantic conventions. It represents the name of the
5618 // model that generated the response.
5619 //
5620 // Type: string
5621 // RequirementLevel: Recommended
5622 // Stability: Development
5623 //
5624 // Examples: "gpt-4-0613"
5625 GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
5626
5627 // GenAISystemKey is the attribute Key conforming to the "gen_ai.system"
5628 // semantic conventions. It represents the Generative AI product as identified
5629 // by the client or server instrumentation.
5630 //
5631 // Type: Enum
5632 // RequirementLevel: Recommended
5633 // Stability: Development
5634 //
5635 // Examples: openai
5636 // Note: The `gen_ai.system` describes a family of GenAI models with specific
5637 // model identified
5638 // by `gen_ai.request.model` and `gen_ai.response.model` attributes.
5639 //
5640 // The actual GenAI product may differ from the one identified by the client.
5641 // Multiple systems, including Azure OpenAI and Gemini, are accessible by OpenAI
5642 // client
5643 // libraries. In such cases, the `gen_ai.system` is set to `openai` based on the
5644 // instrumentation's best knowledge, instead of the actual system. The
5645 // `server.address`
5646 // attribute may help identify the actual system in use for `openai`.
5647 //
5648 // For custom model, a custom friendly name SHOULD be used.
5649 // If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER`
5650 // .
5651 GenAISystemKey = attribute.Key("gen_ai.system")
5652
5653 // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
5654 // semantic conventions. It represents the type of token being counted.
5655 //
5656 // Type: Enum
5657 // RequirementLevel: Recommended
5658 // Stability: Development
5659 //
5660 // Examples: "input", "output"
5661 GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
5662
5663 // GenAIToolCallIDKey is the attribute Key conforming to the
5664 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
5665 // identifier.
5666 //
5667 // Type: string
5668 // RequirementLevel: Recommended
5669 // Stability: Development
5670 //
5671 // Examples: "call_mszuSIzqtI65i1wAUOE8w5H4"
5672 GenAIToolCallIDKey = attribute.Key("gen_ai.tool.call.id")
5673
5674 // GenAIToolNameKey is the attribute Key conforming to the "gen_ai.tool.name"
5675 // semantic conventions. It represents the name of the tool utilized by the
5676 // agent.
5677 //
5678 // Type: string
5679 // RequirementLevel: Recommended
5680 // Stability: Development
5681 //
5682 // Examples: "Flights"
5683 GenAIToolNameKey = attribute.Key("gen_ai.tool.name")
5684
5685 // GenAIToolTypeKey is the attribute Key conforming to the "gen_ai.tool.type"
5686 // semantic conventions. It represents the type of the tool utilized by the
5687 // agent.
5688 //
5689 // Type: string
5690 // RequirementLevel: Recommended
5691 // Stability: Development
5692 //
5693 // Examples: "function", "extension", "datastore"
5694 // Note: Extension: A tool executed on the agent-side to directly call external
5695 // APIs, bridging the gap between the agent and real-world systems.
5696 // Agent-side operations involve actions that are performed by the agent on the
5697 // server or within the agent's controlled environment.
5698 // Function: A tool executed on the client-side, where the agent generates
5699 // parameters for a predefined function, and the client executes the logic.
5700 // Client-side operations are actions taken on the user's end or within the
5701 // client application.
5702 // Datastore: A tool used by the agent to access and query structured or
5703 // unstructured external data for retrieval-augmented tasks or knowledge
5704 // updates.
5705 GenAIToolTypeKey = attribute.Key("gen_ai.tool.type")
5706
5707 // GenAIUsageInputTokensKey is the attribute Key conforming to the
5708 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
5709 // tokens used in the GenAI input (prompt).
5710 //
5711 // Type: int
5712 // RequirementLevel: Recommended
5713 // Stability: Development
5714 //
5715 // Examples: 100
5716 GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
5717
5718 // GenAIUsageOutputTokensKey is the attribute Key conforming to the
5719 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
5720 // of tokens used in the GenAI response (completion).
5721 //
5722 // Type: int
5723 // RequirementLevel: Recommended
5724 // Stability: Development
5725 //
5726 // Examples: 180
5727 GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
5728 )
5729
5730 // GenAIAgentDescription returns an attribute KeyValue conforming to the
5731 // "gen_ai.agent.description" semantic conventions. It represents the free-form
5732 // description of the GenAI agent provided by the application.
5733 func GenAIAgentDescription(val string) attribute.KeyValue {
5734 return GenAIAgentDescriptionKey.String(val)
5735 }
5736
5737 // GenAIAgentID returns an attribute KeyValue conforming to the "gen_ai.agent.id"
5738 // semantic conventions. It represents the unique identifier of the GenAI agent.
5739 func GenAIAgentID(val string) attribute.KeyValue {
5740 return GenAIAgentIDKey.String(val)
5741 }
5742
5743 // GenAIAgentName returns an attribute KeyValue conforming to the
5744 // "gen_ai.agent.name" semantic conventions. It represents the human-readable
5745 // name of the GenAI agent provided by the application.
5746 func GenAIAgentName(val string) attribute.KeyValue {
5747 return GenAIAgentNameKey.String(val)
5748 }
5749
5750 // GenAIOpenAIResponseServiceTier returns an attribute KeyValue conforming to the
5751 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
5752 // service tier used for the response.
5753 func GenAIOpenAIResponseServiceTier(val string) attribute.KeyValue {
5754 return GenAIOpenAIResponseServiceTierKey.String(val)
5755 }
5756
5757 // GenAIOpenAIResponseSystemFingerprint returns an attribute KeyValue conforming
5758 // to the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
5759 // represents a fingerprint to track any eventual change in the Generative AI
5760 // environment.
5761 func GenAIOpenAIResponseSystemFingerprint(val string) attribute.KeyValue {
5762 return GenAIOpenAIResponseSystemFingerprintKey.String(val)
5763 }
5764
5765 // GenAIRequestChoiceCount returns an attribute KeyValue conforming to the
5766 // "gen_ai.request.choice.count" semantic conventions. It represents the target
5767 // number of candidate completions to return.
5768 func GenAIRequestChoiceCount(val int) attribute.KeyValue {
5769 return GenAIRequestChoiceCountKey.Int(val)
5770 }
5771
5772 // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the
5773 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
5774 // encoding formats requested in an embeddings operation, if specified.
5775 func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue {
5776 return GenAIRequestEncodingFormatsKey.StringSlice(val)
5777 }
5778
5779 // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
5780 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
5781 // frequency penalty setting for the GenAI request.
5782 func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
5783 return GenAIRequestFrequencyPenaltyKey.Float64(val)
5784 }
5785
5786 // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
5787 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
5788 // number of tokens the model generates for a request.
5789 func GenAIRequestMaxTokens(val int) attribute.KeyValue {
5790 return GenAIRequestMaxTokensKey.Int(val)
5791 }
5792
5793 // GenAIRequestModel returns an attribute KeyValue conforming to the
5794 // "gen_ai.request.model" semantic conventions. It represents the name of the
5795 // GenAI model a request is being made to.
5796 func GenAIRequestModel(val string) attribute.KeyValue {
5797 return GenAIRequestModelKey.String(val)
5798 }
5799
5800 // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
5801 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
5802 // presence penalty setting for the GenAI request.
5803 func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
5804 return GenAIRequestPresencePenaltyKey.Float64(val)
5805 }
5806
5807 // GenAIRequestSeed returns an attribute KeyValue conforming to the
5808 // "gen_ai.request.seed" semantic conventions. It represents the requests with
5809 // same seed value more likely to return same result.
5810 func GenAIRequestSeed(val int) attribute.KeyValue {
5811 return GenAIRequestSeedKey.Int(val)
5812 }
5813
5814 // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
5815 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
5816 // of sequences that the model will use to stop generating further tokens.
5817 func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
5818 return GenAIRequestStopSequencesKey.StringSlice(val)
5819 }
5820
5821 // GenAIRequestTemperature returns an attribute KeyValue conforming to the
5822 // "gen_ai.request.temperature" semantic conventions. It represents the
5823 // temperature setting for the GenAI request.
5824 func GenAIRequestTemperature(val float64) attribute.KeyValue {
5825 return GenAIRequestTemperatureKey.Float64(val)
5826 }
5827
5828 // GenAIRequestTopK returns an attribute KeyValue conforming to the
5829 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
5830 // setting for the GenAI request.
5831 func GenAIRequestTopK(val float64) attribute.KeyValue {
5832 return GenAIRequestTopKKey.Float64(val)
5833 }
5834
5835 // GenAIRequestTopP returns an attribute KeyValue conforming to the
5836 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
5837 // setting for the GenAI request.
5838 func GenAIRequestTopP(val float64) attribute.KeyValue {
5839 return GenAIRequestTopPKey.Float64(val)
5840 }
5841
5842 // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
5843 // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
5844 // of reasons the model stopped generating tokens, corresponding to each
5845 // generation received.
5846 func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
5847 return GenAIResponseFinishReasonsKey.StringSlice(val)
5848 }
5849
5850 // GenAIResponseID returns an attribute KeyValue conforming to the
5851 // "gen_ai.response.id" semantic conventions. It represents the unique identifier
5852 // for the completion.
5853 func GenAIResponseID(val string) attribute.KeyValue {
5854 return GenAIResponseIDKey.String(val)
5855 }
5856
5857 // GenAIResponseModel returns an attribute KeyValue conforming to the
5858 // "gen_ai.response.model" semantic conventions. It represents the name of the
5859 // model that generated the response.
5860 func GenAIResponseModel(val string) attribute.KeyValue {
5861 return GenAIResponseModelKey.String(val)
5862 }
5863
5864 // GenAIToolCallID returns an attribute KeyValue conforming to the
5865 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
5866 // identifier.
5867 func GenAIToolCallID(val string) attribute.KeyValue {
5868 return GenAIToolCallIDKey.String(val)
5869 }
5870
5871 // GenAIToolName returns an attribute KeyValue conforming to the
5872 // "gen_ai.tool.name" semantic conventions. It represents the name of the tool
5873 // utilized by the agent.
5874 func GenAIToolName(val string) attribute.KeyValue {
5875 return GenAIToolNameKey.String(val)
5876 }
5877
5878 // GenAIToolType returns an attribute KeyValue conforming to the
5879 // "gen_ai.tool.type" semantic conventions. It represents the type of the tool
5880 // utilized by the agent.
5881 func GenAIToolType(val string) attribute.KeyValue {
5882 return GenAIToolTypeKey.String(val)
5883 }
5884
5885 // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
5886 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
5887 // tokens used in the GenAI input (prompt).
5888 func GenAIUsageInputTokens(val int) attribute.KeyValue {
5889 return GenAIUsageInputTokensKey.Int(val)
5890 }
5891
5892 // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
5893 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
5894 // tokens used in the GenAI response (completion).
5895 func GenAIUsageOutputTokens(val int) attribute.KeyValue {
5896 return GenAIUsageOutputTokensKey.Int(val)
5897 }
5898
5899 // Enum values for gen_ai.openai.request.service_tier
5900 var (
5901 // The system will utilize scale tier credits until they are exhausted.
5902 // Stability: development
5903 GenAIOpenAIRequestServiceTierAuto = GenAIOpenAIRequestServiceTierKey.String("auto")
5904 // The system will utilize the default scale tier.
5905 // Stability: development
5906 GenAIOpenAIRequestServiceTierDefault = GenAIOpenAIRequestServiceTierKey.String("default")
5907 )
5908
5909 // Enum values for gen_ai.operation.name
5910 var (
5911 // Chat completion operation such as [OpenAI Chat API]
5912 // Stability: development
5913 //
5914 // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
5915 GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
5916 // Text completions operation such as [OpenAI Completions API (Legacy)]
5917 // Stability: development
5918 //
5919 // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
5920 GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
5921 // Embeddings operation such as [OpenAI Create embeddings API]
5922 // Stability: development
5923 //
5924 // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create
5925 GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings")
5926 // Create GenAI agent
5927 // Stability: development
5928 GenAIOperationNameCreateAgent = GenAIOperationNameKey.String("create_agent")
5929 // Execute a tool
5930 // Stability: development
5931 GenAIOperationNameExecuteTool = GenAIOperationNameKey.String("execute_tool")
5932 )
5933
5934 // Enum values for gen_ai.output.type
5935 var (
5936 // Plain text
5937 // Stability: development
5938 GenAIOutputTypeText = GenAIOutputTypeKey.String("text")
5939 // JSON object with known or unknown schema
5940 // Stability: development
5941 GenAIOutputTypeJSON = GenAIOutputTypeKey.String("json")
5942 // Image
5943 // Stability: development
5944 GenAIOutputTypeImage = GenAIOutputTypeKey.String("image")
5945 // Speech
5946 // Stability: development
5947 GenAIOutputTypeSpeech = GenAIOutputTypeKey.String("speech")
5948 )
5949
5950 // Enum values for gen_ai.system
5951 var (
5952 // OpenAI
5953 // Stability: development
5954 GenAISystemOpenAI = GenAISystemKey.String("openai")
5955 // Vertex AI
5956 // Stability: development
5957 GenAISystemVertexAI = GenAISystemKey.String("vertex_ai")
5958 // Gemini
5959 // Stability: development
5960 GenAISystemGemini = GenAISystemKey.String("gemini")
5961 // Anthropic
5962 // Stability: development
5963 GenAISystemAnthropic = GenAISystemKey.String("anthropic")
5964 // Cohere
5965 // Stability: development
5966 GenAISystemCohere = GenAISystemKey.String("cohere")
5967 // Azure AI Inference
5968 // Stability: development
5969 GenAISystemAzAIInference = GenAISystemKey.String("az.ai.inference")
5970 // Azure OpenAI
5971 // Stability: development
5972 GenAISystemAzAIOpenAI = GenAISystemKey.String("az.ai.openai")
5973 // IBM Watsonx AI
5974 // Stability: development
5975 GenAISystemIBMWatsonxAI = GenAISystemKey.String("ibm.watsonx.ai")
5976 // AWS Bedrock
5977 // Stability: development
5978 GenAISystemAWSBedrock = GenAISystemKey.String("aws.bedrock")
5979 // Perplexity
5980 // Stability: development
5981 GenAISystemPerplexity = GenAISystemKey.String("perplexity")
5982 // xAI
5983 // Stability: development
5984 GenAISystemXai = GenAISystemKey.String("xai")
5985 // DeepSeek
5986 // Stability: development
5987 GenAISystemDeepseek = GenAISystemKey.String("deepseek")
5988 // Groq
5989 // Stability: development
5990 GenAISystemGroq = GenAISystemKey.String("groq")
5991 // Mistral AI
5992 // Stability: development
5993 GenAISystemMistralAI = GenAISystemKey.String("mistral_ai")
5994 )
5995
5996 // Enum values for gen_ai.token.type
5997 var (
5998 // Input tokens (prompt, input, etc.)
5999 // Stability: development
6000 GenAITokenTypeInput = GenAITokenTypeKey.String("input")
6001 // Deprecated: Replaced by `output`.
6002 GenAITokenTypeCompletion = GenAITokenTypeKey.String("output")
6003 // Output tokens (completion, response, etc.)
6004 // Stability: development
6005 GenAITokenTypeOutput = GenAITokenTypeKey.String("output")
6006 )
6007
6008 // Namespace: geo
6009 const (
6010 // GeoContinentCodeKey is the attribute Key conforming to the
6011 // "geo.continent.code" semantic conventions. It represents the two-letter code
6012 // representing continent’s name.
6013 //
6014 // Type: Enum
6015 // RequirementLevel: Recommended
6016 // Stability: Development
6017 //
6018 // Examples:
6019 GeoContinentCodeKey = attribute.Key("geo.continent.code")
6020
6021 // GeoCountryISOCodeKey is the attribute Key conforming to the
6022 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
6023 // Country Code ([ISO 3166-1 alpha2]).
6024 //
6025 // Type: string
6026 // RequirementLevel: Recommended
6027 // Stability: Development
6028 //
6029 // Examples: "CA"
6030 //
6031 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
6032 GeoCountryISOCodeKey = attribute.Key("geo.country.iso_code")
6033
6034 // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name"
6035 // semantic conventions. It represents the locality name. Represents the name of
6036 // a city, town, village, or similar populated place.
6037 //
6038 // Type: string
6039 // RequirementLevel: Recommended
6040 // Stability: Development
6041 //
6042 // Examples: "Montreal", "Berlin"
6043 GeoLocalityNameKey = attribute.Key("geo.locality.name")
6044
6045 // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat"
6046 // semantic conventions. It represents the latitude of the geo location in
6047 // [WGS84].
6048 //
6049 // Type: double
6050 // RequirementLevel: Recommended
6051 // Stability: Development
6052 //
6053 // Examples: 45.505918
6054 //
6055 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6056 GeoLocationLatKey = attribute.Key("geo.location.lat")
6057
6058 // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon"
6059 // semantic conventions. It represents the longitude of the geo location in
6060 // [WGS84].
6061 //
6062 // Type: double
6063 // RequirementLevel: Recommended
6064 // Stability: Development
6065 //
6066 // Examples: -73.61483
6067 //
6068 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6069 GeoLocationLonKey = attribute.Key("geo.location.lon")
6070
6071 // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code"
6072 // semantic conventions. It represents the postal code associated with the
6073 // location. Values appropriate for this field may also be known as a postcode
6074 // or ZIP code and will vary widely from country to country.
6075 //
6076 // Type: string
6077 // RequirementLevel: Recommended
6078 // Stability: Development
6079 //
6080 // Examples: "94040"
6081 GeoPostalCodeKey = attribute.Key("geo.postal_code")
6082
6083 // GeoRegionISOCodeKey is the attribute Key conforming to the
6084 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
6085 // ([ISO 3166-2]).
6086 //
6087 // Type: string
6088 // RequirementLevel: Recommended
6089 // Stability: Development
6090 //
6091 // Examples: "CA-QC"
6092 //
6093 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
6094 GeoRegionISOCodeKey = attribute.Key("geo.region.iso_code")
6095 )
6096
6097 // GeoCountryISOCode returns an attribute KeyValue conforming to the
6098 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
6099 // Country Code ([ISO 3166-1 alpha2]).
6100 //
6101 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
6102 func GeoCountryISOCode(val string) attribute.KeyValue {
6103 return GeoCountryISOCodeKey.String(val)
6104 }
6105
6106 // GeoLocalityName returns an attribute KeyValue conforming to the
6107 // "geo.locality.name" semantic conventions. It represents the locality name.
6108 // Represents the name of a city, town, village, or similar populated place.
6109 func GeoLocalityName(val string) attribute.KeyValue {
6110 return GeoLocalityNameKey.String(val)
6111 }
6112
6113 // GeoLocationLat returns an attribute KeyValue conforming to the
6114 // "geo.location.lat" semantic conventions. It represents the latitude of the geo
6115 // location in [WGS84].
6116 //
6117 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6118 func GeoLocationLat(val float64) attribute.KeyValue {
6119 return GeoLocationLatKey.Float64(val)
6120 }
6121
6122 // GeoLocationLon returns an attribute KeyValue conforming to the
6123 // "geo.location.lon" semantic conventions. It represents the longitude of the
6124 // geo location in [WGS84].
6125 //
6126 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6127 func GeoLocationLon(val float64) attribute.KeyValue {
6128 return GeoLocationLonKey.Float64(val)
6129 }
6130
6131 // GeoPostalCode returns an attribute KeyValue conforming to the
6132 // "geo.postal_code" semantic conventions. It represents the postal code
6133 // associated with the location. Values appropriate for this field may also be
6134 // known as a postcode or ZIP code and will vary widely from country to country.
6135 func GeoPostalCode(val string) attribute.KeyValue {
6136 return GeoPostalCodeKey.String(val)
6137 }
6138
6139 // GeoRegionISOCode returns an attribute KeyValue conforming to the
6140 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
6141 // ([ISO 3166-2]).
6142 //
6143 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
6144 func GeoRegionISOCode(val string) attribute.KeyValue {
6145 return GeoRegionISOCodeKey.String(val)
6146 }
6147
6148 // Enum values for geo.continent.code
6149 var (
6150 // Africa
6151 // Stability: development
6152 GeoContinentCodeAf = GeoContinentCodeKey.String("AF")
6153 // Antarctica
6154 // Stability: development
6155 GeoContinentCodeAn = GeoContinentCodeKey.String("AN")
6156 // Asia
6157 // Stability: development
6158 GeoContinentCodeAs = GeoContinentCodeKey.String("AS")
6159 // Europe
6160 // Stability: development
6161 GeoContinentCodeEu = GeoContinentCodeKey.String("EU")
6162 // North America
6163 // Stability: development
6164 GeoContinentCodeNa = GeoContinentCodeKey.String("NA")
6165 // Oceania
6166 // Stability: development
6167 GeoContinentCodeOc = GeoContinentCodeKey.String("OC")
6168 // South America
6169 // Stability: development
6170 GeoContinentCodeSa = GeoContinentCodeKey.String("SA")
6171 )
6172
6173 // Namespace: go
6174 const (
6175 // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
6176 // semantic conventions. It represents the type of memory.
6177 //
6178 // Type: Enum
6179 // RequirementLevel: Recommended
6180 // Stability: Development
6181 //
6182 // Examples: "other", "stack"
6183 GoMemoryTypeKey = attribute.Key("go.memory.type")
6184 )
6185
6186 // Enum values for go.memory.type
6187 var (
6188 // Memory allocated from the heap that is reserved for stack space, whether or
6189 // not it is currently in-use.
6190 // Stability: development
6191 GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
6192 // Memory used by the Go runtime, excluding other categories of memory usage
6193 // described in this enumeration.
6194 // Stability: development
6195 GoMemoryTypeOther = GoMemoryTypeKey.String("other")
6196 )
6197
6198 // Namespace: graphql
6199 const (
6200 // GraphQLDocumentKey is the attribute Key conforming to the "graphql.document"
6201 // semantic conventions. It represents the GraphQL document being executed.
6202 //
6203 // Type: string
6204 // RequirementLevel: Recommended
6205 // Stability: Development
6206 //
6207 // Examples: query findBookById { bookById(id: ?) { name } }
6208 // Note: The value may be sanitized to exclude sensitive information.
6209 GraphQLDocumentKey = attribute.Key("graphql.document")
6210
6211 // GraphQLOperationNameKey is the attribute Key conforming to the
6212 // "graphql.operation.name" semantic conventions. It represents the name of the
6213 // operation being executed.
6214 //
6215 // Type: string
6216 // RequirementLevel: Recommended
6217 // Stability: Development
6218 //
6219 // Examples: findBookById
6220 GraphQLOperationNameKey = attribute.Key("graphql.operation.name")
6221
6222 // GraphQLOperationTypeKey is the attribute Key conforming to the
6223 // "graphql.operation.type" semantic conventions. It represents the type of the
6224 // operation being executed.
6225 //
6226 // Type: Enum
6227 // RequirementLevel: Recommended
6228 // Stability: Development
6229 //
6230 // Examples: "query", "mutation", "subscription"
6231 GraphQLOperationTypeKey = attribute.Key("graphql.operation.type")
6232 )
6233
6234 // GraphQLDocument returns an attribute KeyValue conforming to the
6235 // "graphql.document" semantic conventions. It represents the GraphQL document
6236 // being executed.
6237 func GraphQLDocument(val string) attribute.KeyValue {
6238 return GraphQLDocumentKey.String(val)
6239 }
6240
6241 // GraphQLOperationName returns an attribute KeyValue conforming to the
6242 // "graphql.operation.name" semantic conventions. It represents the name of the
6243 // operation being executed.
6244 func GraphQLOperationName(val string) attribute.KeyValue {
6245 return GraphQLOperationNameKey.String(val)
6246 }
6247
6248 // Enum values for graphql.operation.type
6249 var (
6250 // GraphQL query
6251 // Stability: development
6252 GraphQLOperationTypeQuery = GraphQLOperationTypeKey.String("query")
6253 // GraphQL mutation
6254 // Stability: development
6255 GraphQLOperationTypeMutation = GraphQLOperationTypeKey.String("mutation")
6256 // GraphQL subscription
6257 // Stability: development
6258 GraphQLOperationTypeSubscription = GraphQLOperationTypeKey.String("subscription")
6259 )
6260
6261 // Namespace: heroku
6262 const (
6263 // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
6264 // semantic conventions. It represents the unique identifier for the
6265 // application.
6266 //
6267 // Type: string
6268 // RequirementLevel: Recommended
6269 // Stability: Development
6270 //
6271 // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
6272 HerokuAppIDKey = attribute.Key("heroku.app.id")
6273
6274 // HerokuReleaseCommitKey is the attribute Key conforming to the
6275 // "heroku.release.commit" semantic conventions. It represents the commit hash
6276 // for the current release.
6277 //
6278 // Type: string
6279 // RequirementLevel: Recommended
6280 // Stability: Development
6281 //
6282 // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
6283 HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
6284
6285 // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
6286 // "heroku.release.creation_timestamp" semantic conventions. It represents the
6287 // time and date the release was created.
6288 //
6289 // Type: string
6290 // RequirementLevel: Recommended
6291 // Stability: Development
6292 //
6293 // Examples: "2022-10-23T18:00:42Z"
6294 HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
6295 )
6296
6297 // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
6298 // semantic conventions. It represents the unique identifier for the application.
6299 func HerokuAppID(val string) attribute.KeyValue {
6300 return HerokuAppIDKey.String(val)
6301 }
6302
6303 // HerokuReleaseCommit returns an attribute KeyValue conforming to the
6304 // "heroku.release.commit" semantic conventions. It represents the commit hash
6305 // for the current release.
6306 func HerokuReleaseCommit(val string) attribute.KeyValue {
6307 return HerokuReleaseCommitKey.String(val)
6308 }
6309
6310 // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
6311 // "heroku.release.creation_timestamp" semantic conventions. It represents the
6312 // time and date the release was created.
6313 func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
6314 return HerokuReleaseCreationTimestampKey.String(val)
6315 }
6316
6317 // Namespace: host
6318 const (
6319 // HostArchKey is the attribute Key conforming to the "host.arch" semantic
6320 // conventions. It represents the CPU architecture the host system is running
6321 // on.
6322 //
6323 // Type: Enum
6324 // RequirementLevel: Recommended
6325 // Stability: Development
6326 //
6327 // Examples:
6328 HostArchKey = attribute.Key("host.arch")
6329
6330 // HostCPUCacheL2SizeKey is the attribute Key conforming to the
6331 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
6332 // level 2 memory cache available to the processor (in Bytes).
6333 //
6334 // Type: int
6335 // RequirementLevel: Recommended
6336 // Stability: Development
6337 //
6338 // Examples: 12288000
6339 HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
6340
6341 // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
6342 // semantic conventions. It represents the family or generation of the CPU.
6343 //
6344 // Type: string
6345 // RequirementLevel: Recommended
6346 // Stability: Development
6347 //
6348 // Examples: "6", "PA-RISC 1.1e"
6349 HostCPUFamilyKey = attribute.Key("host.cpu.family")
6350
6351 // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
6352 // semantic conventions. It represents the model identifier. It provides more
6353 // granular information about the CPU, distinguishing it from other CPUs within
6354 // the same family.
6355 //
6356 // Type: string
6357 // RequirementLevel: Recommended
6358 // Stability: Development
6359 //
6360 // Examples: "6", "9000/778/B180L"
6361 HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
6362
6363 // HostCPUModelNameKey is the attribute Key conforming to the
6364 // "host.cpu.model.name" semantic conventions. It represents the model
6365 // designation of the processor.
6366 //
6367 // Type: string
6368 // RequirementLevel: Recommended
6369 // Stability: Development
6370 //
6371 // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
6372 HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
6373
6374 // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
6375 // semantic conventions. It represents the stepping or core revisions.
6376 //
6377 // Type: string
6378 // RequirementLevel: Recommended
6379 // Stability: Development
6380 //
6381 // Examples: "1", "r1p1"
6382 HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
6383
6384 // HostCPUVendorIDKey is the attribute Key conforming to the
6385 // "host.cpu.vendor.id" semantic conventions. It represents the processor
6386 // manufacturer identifier. A maximum 12-character string.
6387 //
6388 // Type: string
6389 // RequirementLevel: Recommended
6390 // Stability: Development
6391 //
6392 // Examples: "GenuineIntel"
6393 // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
6394 // registers. Writing these to memory in this order results in a 12-character
6395 // string.
6396 //
6397 // [CPUID]: https://wiki.osdev.org/CPUID
6398 HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
6399
6400 // HostIDKey is the attribute Key conforming to the "host.id" semantic
6401 // conventions. It represents the unique host ID. For Cloud, this must be the
6402 // instance_id assigned by the cloud provider. For non-containerized systems,
6403 // this should be the `machine-id`. See the table below for the sources to use
6404 // to determine the `machine-id` based on operating system.
6405 //
6406 // Type: string
6407 // RequirementLevel: Recommended
6408 // Stability: Development
6409 //
6410 // Examples: "fdbf79e8af94cb7f9e8df36789187052"
6411 HostIDKey = attribute.Key("host.id")
6412
6413 // HostImageIDKey is the attribute Key conforming to the "host.image.id"
6414 // semantic conventions. It represents the VM image ID or host OS image ID. For
6415 // Cloud, this value is from the provider.
6416 //
6417 // Type: string
6418 // RequirementLevel: Recommended
6419 // Stability: Development
6420 //
6421 // Examples: "ami-07b06b442921831e5"
6422 HostImageIDKey = attribute.Key("host.image.id")
6423
6424 // HostImageNameKey is the attribute Key conforming to the "host.image.name"
6425 // semantic conventions. It represents the name of the VM image or OS install
6426 // the host was instantiated from.
6427 //
6428 // Type: string
6429 // RequirementLevel: Recommended
6430 // Stability: Development
6431 //
6432 // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
6433 HostImageNameKey = attribute.Key("host.image.name")
6434
6435 // HostImageVersionKey is the attribute Key conforming to the
6436 // "host.image.version" semantic conventions. It represents the version string
6437 // of the VM image or host OS as defined in [Version Attributes].
6438 //
6439 // Type: string
6440 // RequirementLevel: Recommended
6441 // Stability: Development
6442 //
6443 // Examples: "0.1"
6444 //
6445 // [Version Attributes]: /docs/resource/README.md#version-attributes
6446 HostImageVersionKey = attribute.Key("host.image.version")
6447
6448 // HostIPKey is the attribute Key conforming to the "host.ip" semantic
6449 // conventions. It represents the available IP addresses of the host, excluding
6450 // loopback interfaces.
6451 //
6452 // Type: string[]
6453 // RequirementLevel: Recommended
6454 // Stability: Development
6455 //
6456 // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
6457 // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
6458 // addresses MUST be specified in the [RFC 5952] format.
6459 //
6460 // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
6461 HostIPKey = attribute.Key("host.ip")
6462
6463 // HostMacKey is the attribute Key conforming to the "host.mac" semantic
6464 // conventions. It represents the available MAC addresses of the host, excluding
6465 // loopback interfaces.
6466 //
6467 // Type: string[]
6468 // RequirementLevel: Recommended
6469 // Stability: Development
6470 //
6471 // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
6472 // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
6473 // hyphen-separated octets in uppercase hexadecimal form from most to least
6474 // significant.
6475 //
6476 // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
6477 HostMacKey = attribute.Key("host.mac")
6478
6479 // HostNameKey is the attribute Key conforming to the "host.name" semantic
6480 // conventions. It represents the name of the host. On Unix systems, it may
6481 // contain what the hostname command returns, or the fully qualified hostname,
6482 // or another name specified by the user.
6483 //
6484 // Type: string
6485 // RequirementLevel: Recommended
6486 // Stability: Development
6487 //
6488 // Examples: "opentelemetry-test"
6489 HostNameKey = attribute.Key("host.name")
6490
6491 // HostTypeKey is the attribute Key conforming to the "host.type" semantic
6492 // conventions. It represents the type of host. For Cloud, this must be the
6493 // machine type.
6494 //
6495 // Type: string
6496 // RequirementLevel: Recommended
6497 // Stability: Development
6498 //
6499 // Examples: "n1-standard-1"
6500 HostTypeKey = attribute.Key("host.type")
6501 )
6502
6503 // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
6504 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
6505 // level 2 memory cache available to the processor (in Bytes).
6506 func HostCPUCacheL2Size(val int) attribute.KeyValue {
6507 return HostCPUCacheL2SizeKey.Int(val)
6508 }
6509
6510 // HostCPUFamily returns an attribute KeyValue conforming to the
6511 // "host.cpu.family" semantic conventions. It represents the family or generation
6512 // of the CPU.
6513 func HostCPUFamily(val string) attribute.KeyValue {
6514 return HostCPUFamilyKey.String(val)
6515 }
6516
6517 // HostCPUModelID returns an attribute KeyValue conforming to the
6518 // "host.cpu.model.id" semantic conventions. It represents the model identifier.
6519 // It provides more granular information about the CPU, distinguishing it from
6520 // other CPUs within the same family.
6521 func HostCPUModelID(val string) attribute.KeyValue {
6522 return HostCPUModelIDKey.String(val)
6523 }
6524
6525 // HostCPUModelName returns an attribute KeyValue conforming to the
6526 // "host.cpu.model.name" semantic conventions. It represents the model
6527 // designation of the processor.
6528 func HostCPUModelName(val string) attribute.KeyValue {
6529 return HostCPUModelNameKey.String(val)
6530 }
6531
6532 // HostCPUStepping returns an attribute KeyValue conforming to the
6533 // "host.cpu.stepping" semantic conventions. It represents the stepping or core
6534 // revisions.
6535 func HostCPUStepping(val string) attribute.KeyValue {
6536 return HostCPUSteppingKey.String(val)
6537 }
6538
6539 // HostCPUVendorID returns an attribute KeyValue conforming to the
6540 // "host.cpu.vendor.id" semantic conventions. It represents the processor
6541 // manufacturer identifier. A maximum 12-character string.
6542 func HostCPUVendorID(val string) attribute.KeyValue {
6543 return HostCPUVendorIDKey.String(val)
6544 }
6545
6546 // HostID returns an attribute KeyValue conforming to the "host.id" semantic
6547 // conventions. It represents the unique host ID. For Cloud, this must be the
6548 // instance_id assigned by the cloud provider. For non-containerized systems,
6549 // this should be the `machine-id`. See the table below for the sources to use to
6550 // determine the `machine-id` based on operating system.
6551 func HostID(val string) attribute.KeyValue {
6552 return HostIDKey.String(val)
6553 }
6554
6555 // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
6556 // semantic conventions. It represents the VM image ID or host OS image ID. For
6557 // Cloud, this value is from the provider.
6558 func HostImageID(val string) attribute.KeyValue {
6559 return HostImageIDKey.String(val)
6560 }
6561
6562 // HostImageName returns an attribute KeyValue conforming to the
6563 // "host.image.name" semantic conventions. It represents the name of the VM image
6564 // or OS install the host was instantiated from.
6565 func HostImageName(val string) attribute.KeyValue {
6566 return HostImageNameKey.String(val)
6567 }
6568
6569 // HostImageVersion returns an attribute KeyValue conforming to the
6570 // "host.image.version" semantic conventions. It represents the version string of
6571 // the VM image or host OS as defined in [Version Attributes].
6572 //
6573 // [Version Attributes]: /docs/resource/README.md#version-attributes
6574 func HostImageVersion(val string) attribute.KeyValue {
6575 return HostImageVersionKey.String(val)
6576 }
6577
6578 // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
6579 // conventions. It represents the available IP addresses of the host, excluding
6580 // loopback interfaces.
6581 func HostIP(val ...string) attribute.KeyValue {
6582 return HostIPKey.StringSlice(val)
6583 }
6584
6585 // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
6586 // conventions. It represents the available MAC addresses of the host, excluding
6587 // loopback interfaces.
6588 func HostMac(val ...string) attribute.KeyValue {
6589 return HostMacKey.StringSlice(val)
6590 }
6591
6592 // HostName returns an attribute KeyValue conforming to the "host.name" semantic
6593 // conventions. It represents the name of the host. On Unix systems, it may
6594 // contain what the hostname command returns, or the fully qualified hostname, or
6595 // another name specified by the user.
6596 func HostName(val string) attribute.KeyValue {
6597 return HostNameKey.String(val)
6598 }
6599
6600 // HostType returns an attribute KeyValue conforming to the "host.type" semantic
6601 // conventions. It represents the type of host. For Cloud, this must be the
6602 // machine type.
6603 func HostType(val string) attribute.KeyValue {
6604 return HostTypeKey.String(val)
6605 }
6606
6607 // Enum values for host.arch
6608 var (
6609 // AMD64
6610 // Stability: development
6611 HostArchAMD64 = HostArchKey.String("amd64")
6612 // ARM32
6613 // Stability: development
6614 HostArchARM32 = HostArchKey.String("arm32")
6615 // ARM64
6616 // Stability: development
6617 HostArchARM64 = HostArchKey.String("arm64")
6618 // Itanium
6619 // Stability: development
6620 HostArchIA64 = HostArchKey.String("ia64")
6621 // 32-bit PowerPC
6622 // Stability: development
6623 HostArchPPC32 = HostArchKey.String("ppc32")
6624 // 64-bit PowerPC
6625 // Stability: development
6626 HostArchPPC64 = HostArchKey.String("ppc64")
6627 // IBM z/Architecture
6628 // Stability: development
6629 HostArchS390x = HostArchKey.String("s390x")
6630 // 32-bit x86
6631 // Stability: development
6632 HostArchX86 = HostArchKey.String("x86")
6633 )
6634
6635 // Namespace: http
6636 const (
6637 // HTTPConnectionStateKey is the attribute Key conforming to the
6638 // "http.connection.state" semantic conventions. It represents the state of the
6639 // HTTP connection in the HTTP connection pool.
6640 //
6641 // Type: Enum
6642 // RequirementLevel: Recommended
6643 // Stability: Development
6644 //
6645 // Examples: "active", "idle"
6646 HTTPConnectionStateKey = attribute.Key("http.connection.state")
6647
6648 // HTTPRequestBodySizeKey is the attribute Key conforming to the
6649 // "http.request.body.size" semantic conventions. It represents the size of the
6650 // request payload body in bytes. This is the number of bytes transferred
6651 // excluding headers and is often, but not always, present as the
6652 // [Content-Length] header. For requests using transport encoding, this should
6653 // be the compressed size.
6654 //
6655 // Type: int
6656 // RequirementLevel: Recommended
6657 // Stability: Development
6658 //
6659 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6660 HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
6661
6662 // HTTPRequestMethodKey is the attribute Key conforming to the
6663 // "http.request.method" semantic conventions. It represents the HTTP request
6664 // method.
6665 //
6666 // Type: Enum
6667 // RequirementLevel: Recommended
6668 // Stability: Stable
6669 //
6670 // Examples: "GET", "POST", "HEAD"
6671 // Note: HTTP request method value SHOULD be "known" to the instrumentation.
6672 // By default, this convention defines "known" methods as the ones listed in
6673 // [RFC9110]
6674 // and the PATCH method defined in [RFC5789].
6675 //
6676 // If the HTTP request method is not known to instrumentation, it MUST set the
6677 // `http.request.method` attribute to `_OTHER`.
6678 //
6679 // If the HTTP instrumentation could end up converting valid HTTP request
6680 // methods to `_OTHER`, then it MUST provide a way to override
6681 // the list of known HTTP methods. If this override is done via environment
6682 // variable, then the environment variable MUST be named
6683 // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
6684 // case-sensitive known HTTP methods
6685 // (this list MUST be a full override of the default known method, it is not a
6686 // list of known methods in addition to the defaults).
6687 //
6688 // HTTP method names are case-sensitive and `http.request.method` attribute
6689 // value MUST match a known HTTP method name exactly.
6690 // Instrumentations for specific web frameworks that consider HTTP methods to be
6691 // case insensitive, SHOULD populate a canonical equivalent.
6692 // Tracing instrumentations that do so, MUST also set
6693 // `http.request.method_original` to the original value.
6694 //
6695 // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
6696 // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
6697 HTTPRequestMethodKey = attribute.Key("http.request.method")
6698
6699 // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
6700 // "http.request.method_original" semantic conventions. It represents the
6701 // original HTTP method sent by the client in the request line.
6702 //
6703 // Type: string
6704 // RequirementLevel: Recommended
6705 // Stability: Stable
6706 //
6707 // Examples: "GeT", "ACL", "foo"
6708 HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
6709
6710 // HTTPRequestResendCountKey is the attribute Key conforming to the
6711 // "http.request.resend_count" semantic conventions. It represents the ordinal
6712 // number of request resending attempt (for any reason, including redirects).
6713 //
6714 // Type: int
6715 // RequirementLevel: Recommended
6716 // Stability: Stable
6717 //
6718 // Note: The resend count SHOULD be updated each time an HTTP request gets
6719 // resent by the client, regardless of what was the cause of the resending (e.g.
6720 // redirection, authorization failure, 503 Server Unavailable, network issues,
6721 // or any other).
6722 HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
6723
6724 // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
6725 // semantic conventions. It represents the total size of the request in bytes.
6726 // This should be the total number of bytes sent over the wire, including the
6727 // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
6728 // body if any.
6729 //
6730 // Type: int
6731 // RequirementLevel: Recommended
6732 // Stability: Development
6733 HTTPRequestSizeKey = attribute.Key("http.request.size")
6734
6735 // HTTPResponseBodySizeKey is the attribute Key conforming to the
6736 // "http.response.body.size" semantic conventions. It represents the size of the
6737 // response payload body in bytes. This is the number of bytes transferred
6738 // excluding headers and is often, but not always, present as the
6739 // [Content-Length] header. For requests using transport encoding, this should
6740 // be the compressed size.
6741 //
6742 // Type: int
6743 // RequirementLevel: Recommended
6744 // Stability: Development
6745 //
6746 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6747 HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
6748
6749 // HTTPResponseSizeKey is the attribute Key conforming to the
6750 // "http.response.size" semantic conventions. It represents the total size of
6751 // the response in bytes. This should be the total number of bytes sent over the
6752 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
6753 // headers, and response body and trailers if any.
6754 //
6755 // Type: int
6756 // RequirementLevel: Recommended
6757 // Stability: Development
6758 HTTPResponseSizeKey = attribute.Key("http.response.size")
6759
6760 // HTTPResponseStatusCodeKey is the attribute Key conforming to the
6761 // "http.response.status_code" semantic conventions. It represents the
6762 // [HTTP response status code].
6763 //
6764 // Type: int
6765 // RequirementLevel: Recommended
6766 // Stability: Stable
6767 //
6768 // Examples: 200
6769 //
6770 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
6771 HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
6772
6773 // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
6774 // conventions. It represents the matched route, that is, the path template in
6775 // the format used by the respective server framework.
6776 //
6777 // Type: string
6778 // RequirementLevel: Recommended
6779 // Stability: Stable
6780 //
6781 // Examples: "/users/:userID?", "{controller}/{action}/{id?}"
6782 // Note: MUST NOT be populated when this is not supported by the HTTP server
6783 // framework as the route attribute should have low-cardinality and the URI path
6784 // can NOT substitute it.
6785 // SHOULD include the [application root] if there is one.
6786 //
6787 // [application root]: /docs/http/http-spans.md#http-server-definitions
6788 HTTPRouteKey = attribute.Key("http.route")
6789 )
6790
6791 // HTTPRequestBodySize returns an attribute KeyValue conforming to the
6792 // "http.request.body.size" semantic conventions. It represents the size of the
6793 // request payload body in bytes. This is the number of bytes transferred
6794 // excluding headers and is often, but not always, present as the
6795 // [Content-Length] header. For requests using transport encoding, this should be
6796 // the compressed size.
6797 //
6798 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6799 func HTTPRequestBodySize(val int) attribute.KeyValue {
6800 return HTTPRequestBodySizeKey.Int(val)
6801 }
6802
6803 // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
6804 // "http.request.method_original" semantic conventions. It represents the
6805 // original HTTP method sent by the client in the request line.
6806 func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
6807 return HTTPRequestMethodOriginalKey.String(val)
6808 }
6809
6810 // HTTPRequestResendCount returns an attribute KeyValue conforming to the
6811 // "http.request.resend_count" semantic conventions. It represents the ordinal
6812 // number of request resending attempt (for any reason, including redirects).
6813 func HTTPRequestResendCount(val int) attribute.KeyValue {
6814 return HTTPRequestResendCountKey.Int(val)
6815 }
6816
6817 // HTTPRequestSize returns an attribute KeyValue conforming to the
6818 // "http.request.size" semantic conventions. It represents the total size of the
6819 // request in bytes. This should be the total number of bytes sent over the wire,
6820 // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
6821 // and request body if any.
6822 func HTTPRequestSize(val int) attribute.KeyValue {
6823 return HTTPRequestSizeKey.Int(val)
6824 }
6825
6826 // HTTPResponseBodySize returns an attribute KeyValue conforming to the
6827 // "http.response.body.size" semantic conventions. It represents the size of the
6828 // response payload body in bytes. This is the number of bytes transferred
6829 // excluding headers and is often, but not always, present as the
6830 // [Content-Length] header. For requests using transport encoding, this should be
6831 // the compressed size.
6832 //
6833 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6834 func HTTPResponseBodySize(val int) attribute.KeyValue {
6835 return HTTPResponseBodySizeKey.Int(val)
6836 }
6837
6838 // HTTPResponseSize returns an attribute KeyValue conforming to the
6839 // "http.response.size" semantic conventions. It represents the total size of the
6840 // response in bytes. This should be the total number of bytes sent over the
6841 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
6842 // headers, and response body and trailers if any.
6843 func HTTPResponseSize(val int) attribute.KeyValue {
6844 return HTTPResponseSizeKey.Int(val)
6845 }
6846
6847 // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
6848 // "http.response.status_code" semantic conventions. It represents the
6849 // [HTTP response status code].
6850 //
6851 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
6852 func HTTPResponseStatusCode(val int) attribute.KeyValue {
6853 return HTTPResponseStatusCodeKey.Int(val)
6854 }
6855
6856 // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
6857 // semantic conventions. It represents the matched route, that is, the path
6858 // template in the format used by the respective server framework.
6859 func HTTPRoute(val string) attribute.KeyValue {
6860 return HTTPRouteKey.String(val)
6861 }
6862
6863 // Enum values for http.connection.state
6864 var (
6865 // active state.
6866 // Stability: development
6867 HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
6868 // idle state.
6869 // Stability: development
6870 HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
6871 )
6872
6873 // Enum values for http.request.method
6874 var (
6875 // CONNECT method.
6876 // Stability: stable
6877 HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
6878 // DELETE method.
6879 // Stability: stable
6880 HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
6881 // GET method.
6882 // Stability: stable
6883 HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
6884 // HEAD method.
6885 // Stability: stable
6886 HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
6887 // OPTIONS method.
6888 // Stability: stable
6889 HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
6890 // PATCH method.
6891 // Stability: stable
6892 HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
6893 // POST method.
6894 // Stability: stable
6895 HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
6896 // PUT method.
6897 // Stability: stable
6898 HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
6899 // TRACE method.
6900 // Stability: stable
6901 HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
6902 // Any HTTP method that the instrumentation has no prior knowledge of.
6903 // Stability: stable
6904 HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
6905 )
6906
6907 // Namespace: hw
6908 const (
6909 // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
6910 // It represents an identifier for the hardware component, unique within the
6911 // monitored host.
6912 //
6913 // Type: string
6914 // RequirementLevel: Recommended
6915 // Stability: Development
6916 //
6917 // Examples: "win32battery_battery_testsysa33_1"
6918 HwIDKey = attribute.Key("hw.id")
6919
6920 // HwNameKey is the attribute Key conforming to the "hw.name" semantic
6921 // conventions. It represents an easily-recognizable name for the hardware
6922 // component.
6923 //
6924 // Type: string
6925 // RequirementLevel: Recommended
6926 // Stability: Development
6927 //
6928 // Examples: "eth0"
6929 HwNameKey = attribute.Key("hw.name")
6930
6931 // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
6932 // conventions. It represents the unique identifier of the parent component
6933 // (typically the `hw.id` attribute of the enclosure, or disk controller).
6934 //
6935 // Type: string
6936 // RequirementLevel: Recommended
6937 // Stability: Development
6938 //
6939 // Examples: "dellStorage_perc_0"
6940 HwParentKey = attribute.Key("hw.parent")
6941
6942 // HwStateKey is the attribute Key conforming to the "hw.state" semantic
6943 // conventions. It represents the current state of the component.
6944 //
6945 // Type: Enum
6946 // RequirementLevel: Recommended
6947 // Stability: Development
6948 //
6949 // Examples:
6950 HwStateKey = attribute.Key("hw.state")
6951
6952 // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
6953 // conventions. It represents the type of the component.
6954 //
6955 // Type: Enum
6956 // RequirementLevel: Recommended
6957 // Stability: Development
6958 //
6959 // Examples:
6960 // Note: Describes the category of the hardware component for which `hw.state`
6961 // is being reported. For example, `hw.type=temperature` along with
6962 // `hw.state=degraded` would indicate that the temperature of the hardware
6963 // component has been reported as `degraded`.
6964 HwTypeKey = attribute.Key("hw.type")
6965 )
6966
6967 // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
6968 // conventions. It represents an identifier for the hardware component, unique
6969 // within the monitored host.
6970 func HwID(val string) attribute.KeyValue {
6971 return HwIDKey.String(val)
6972 }
6973
6974 // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
6975 // conventions. It represents an easily-recognizable name for the hardware
6976 // component.
6977 func HwName(val string) attribute.KeyValue {
6978 return HwNameKey.String(val)
6979 }
6980
6981 // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
6982 // conventions. It represents the unique identifier of the parent component
6983 // (typically the `hw.id` attribute of the enclosure, or disk controller).
6984 func HwParent(val string) attribute.KeyValue {
6985 return HwParentKey.String(val)
6986 }
6987
6988 // Enum values for hw.state
6989 var (
6990 // Ok
6991 // Stability: development
6992 HwStateOk = HwStateKey.String("ok")
6993 // Degraded
6994 // Stability: development
6995 HwStateDegraded = HwStateKey.String("degraded")
6996 // Failed
6997 // Stability: development
6998 HwStateFailed = HwStateKey.String("failed")
6999 )
7000
7001 // Enum values for hw.type
7002 var (
7003 // Battery
7004 // Stability: development
7005 HwTypeBattery = HwTypeKey.String("battery")
7006 // CPU
7007 // Stability: development
7008 HwTypeCPU = HwTypeKey.String("cpu")
7009 // Disk controller
7010 // Stability: development
7011 HwTypeDiskController = HwTypeKey.String("disk_controller")
7012 // Enclosure
7013 // Stability: development
7014 HwTypeEnclosure = HwTypeKey.String("enclosure")
7015 // Fan
7016 // Stability: development
7017 HwTypeFan = HwTypeKey.String("fan")
7018 // GPU
7019 // Stability: development
7020 HwTypeGpu = HwTypeKey.String("gpu")
7021 // Logical disk
7022 // Stability: development
7023 HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
7024 // Memory
7025 // Stability: development
7026 HwTypeMemory = HwTypeKey.String("memory")
7027 // Network
7028 // Stability: development
7029 HwTypeNetwork = HwTypeKey.String("network")
7030 // Physical disk
7031 // Stability: development
7032 HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
7033 // Power supply
7034 // Stability: development
7035 HwTypePowerSupply = HwTypeKey.String("power_supply")
7036 // Tape drive
7037 // Stability: development
7038 HwTypeTapeDrive = HwTypeKey.String("tape_drive")
7039 // Temperature
7040 // Stability: development
7041 HwTypeTemperature = HwTypeKey.String("temperature")
7042 // Voltage
7043 // Stability: development
7044 HwTypeVoltage = HwTypeKey.String("voltage")
7045 )
7046
7047 // Namespace: ios
7048 const (
7049 // IOSAppStateKey is the attribute Key conforming to the "ios.app.state"
7050 // semantic conventions. It represents the this attribute represents the state
7051 // of the application.
7052 //
7053 // Type: Enum
7054 // RequirementLevel: Recommended
7055 // Stability: Development
7056 //
7057 // Examples:
7058 // Note: The iOS lifecycle states are defined in the
7059 // [UIApplicationDelegate documentation], and from which the `OS terminology`
7060 // column values are derived.
7061 //
7062 // [UIApplicationDelegate documentation]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate
7063 IOSAppStateKey = attribute.Key("ios.app.state")
7064 )
7065
7066 // Enum values for ios.app.state
7067 var (
7068 // The app has become `active`. Associated with UIKit notification
7069 // `applicationDidBecomeActive`.
7070 //
7071 // Stability: development
7072 IOSAppStateActive = IOSAppStateKey.String("active")
7073 // The app is now `inactive`. Associated with UIKit notification
7074 // `applicationWillResignActive`.
7075 //
7076 // Stability: development
7077 IOSAppStateInactive = IOSAppStateKey.String("inactive")
7078 // The app is now in the background. This value is associated with UIKit
7079 // notification `applicationDidEnterBackground`.
7080 //
7081 // Stability: development
7082 IOSAppStateBackground = IOSAppStateKey.String("background")
7083 // The app is now in the foreground. This value is associated with UIKit
7084 // notification `applicationWillEnterForeground`.
7085 //
7086 // Stability: development
7087 IOSAppStateForeground = IOSAppStateKey.String("foreground")
7088 // The app is about to terminate. Associated with UIKit notification
7089 // `applicationWillTerminate`.
7090 //
7091 // Stability: development
7092 IOSAppStateTerminate = IOSAppStateKey.String("terminate")
7093 )
7094
7095 // Namespace: k8s
7096 const (
7097 // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
7098 // semantic conventions. It represents the name of the cluster.
7099 //
7100 // Type: string
7101 // RequirementLevel: Recommended
7102 // Stability: Development
7103 //
7104 // Examples: "opentelemetry-cluster"
7105 K8SClusterNameKey = attribute.Key("k8s.cluster.name")
7106
7107 // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
7108 // semantic conventions. It represents a pseudo-ID for the cluster, set to the
7109 // UID of the `kube-system` namespace.
7110 //
7111 // Type: string
7112 // RequirementLevel: Recommended
7113 // Stability: Development
7114 //
7115 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
7116 // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
7117 // added, we will recommend collecting the `k8s.cluster.uid` through the
7118 // official APIs. In the meantime, we are able to use the `uid` of the
7119 // `kube-system` namespace as a proxy for cluster ID. Read on for the
7120 // rationale.
7121 //
7122 // Every object created in a K8s cluster is assigned a distinct UID. The
7123 // `kube-system` namespace is used by Kubernetes itself and will exist
7124 // for the lifetime of the cluster. Using the `uid` of the `kube-system`
7125 // namespace is a reasonable proxy for the K8s ClusterID as it will only
7126 // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
7127 // UUIDs as standardized by
7128 // [ISO/IEC 9834-8 and ITU-T X.667].
7129 // Which states:
7130 //
7131 // > If generated according to one of the mechanisms defined in Rec.
7132 // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
7133 // > different from all other UUIDs generated before 3603 A.D., or is
7134 // > extremely likely to be different (depending on the mechanism chosen).
7135 //
7136 // Therefore, UIDs between clusters should be extremely unlikely to
7137 // conflict.
7138 //
7139 // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
7140 K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
7141
7142 // K8SContainerNameKey is the attribute Key conforming to the
7143 // "k8s.container.name" semantic conventions. It represents the name of the
7144 // Container from Pod specification, must be unique within a Pod. Container
7145 // runtime usually uses different globally unique name (`container.name`).
7146 //
7147 // Type: string
7148 // RequirementLevel: Recommended
7149 // Stability: Development
7150 //
7151 // Examples: "redis"
7152 K8SContainerNameKey = attribute.Key("k8s.container.name")
7153
7154 // K8SContainerRestartCountKey is the attribute Key conforming to the
7155 // "k8s.container.restart_count" semantic conventions. It represents the number
7156 // of times the container was restarted. This attribute can be used to identify
7157 // a particular container (running or stopped) within a container spec.
7158 //
7159 // Type: int
7160 // RequirementLevel: Recommended
7161 // Stability: Development
7162 //
7163 // Examples:
7164 K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
7165
7166 // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
7167 // the "k8s.container.status.last_terminated_reason" semantic conventions. It
7168 // represents the last terminated reason of the Container.
7169 //
7170 // Type: string
7171 // RequirementLevel: Recommended
7172 // Stability: Development
7173 //
7174 // Examples: "Evicted", "Error"
7175 K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
7176
7177 // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
7178 // semantic conventions. It represents the name of the CronJob.
7179 //
7180 // Type: string
7181 // RequirementLevel: Recommended
7182 // Stability: Development
7183 //
7184 // Examples: "opentelemetry"
7185 K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
7186
7187 // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
7188 // semantic conventions. It represents the UID of the CronJob.
7189 //
7190 // Type: string
7191 // RequirementLevel: Recommended
7192 // Stability: Development
7193 //
7194 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7195 K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
7196
7197 // K8SDaemonSetNameKey is the attribute Key conforming to the
7198 // "k8s.daemonset.name" semantic conventions. It represents the name of the
7199 // DaemonSet.
7200 //
7201 // Type: string
7202 // RequirementLevel: Recommended
7203 // Stability: Development
7204 //
7205 // Examples: "opentelemetry"
7206 K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
7207
7208 // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
7209 // semantic conventions. It represents the UID of the DaemonSet.
7210 //
7211 // Type: string
7212 // RequirementLevel: Recommended
7213 // Stability: Development
7214 //
7215 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7216 K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
7217
7218 // K8SDeploymentNameKey is the attribute Key conforming to the
7219 // "k8s.deployment.name" semantic conventions. It represents the name of the
7220 // Deployment.
7221 //
7222 // Type: string
7223 // RequirementLevel: Recommended
7224 // Stability: Development
7225 //
7226 // Examples: "opentelemetry"
7227 K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
7228
7229 // K8SDeploymentUIDKey is the attribute Key conforming to the
7230 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
7231 // Deployment.
7232 //
7233 // Type: string
7234 // RequirementLevel: Recommended
7235 // Stability: Development
7236 //
7237 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7238 K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
7239
7240 // K8SHPANameKey is the attribute Key conforming to the "k8s.hpa.name" semantic
7241 // conventions. It represents the name of the horizontal pod autoscaler.
7242 //
7243 // Type: string
7244 // RequirementLevel: Recommended
7245 // Stability: Development
7246 //
7247 // Examples: "opentelemetry"
7248 K8SHPANameKey = attribute.Key("k8s.hpa.name")
7249
7250 // K8SHPAUIDKey is the attribute Key conforming to the "k8s.hpa.uid" semantic
7251 // conventions. It represents the UID of the horizontal pod autoscaler.
7252 //
7253 // Type: string
7254 // RequirementLevel: Recommended
7255 // Stability: Development
7256 //
7257 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7258 K8SHPAUIDKey = attribute.Key("k8s.hpa.uid")
7259
7260 // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
7261 // conventions. It represents the name of the Job.
7262 //
7263 // Type: string
7264 // RequirementLevel: Recommended
7265 // Stability: Development
7266 //
7267 // Examples: "opentelemetry"
7268 K8SJobNameKey = attribute.Key("k8s.job.name")
7269
7270 // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
7271 // conventions. It represents the UID of the Job.
7272 //
7273 // Type: string
7274 // RequirementLevel: Recommended
7275 // Stability: Development
7276 //
7277 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7278 K8SJobUIDKey = attribute.Key("k8s.job.uid")
7279
7280 // K8SNamespaceNameKey is the attribute Key conforming to the
7281 // "k8s.namespace.name" semantic conventions. It represents the name of the
7282 // namespace that the pod is running in.
7283 //
7284 // Type: string
7285 // RequirementLevel: Recommended
7286 // Stability: Development
7287 //
7288 // Examples: "default"
7289 K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
7290
7291 // K8SNamespacePhaseKey is the attribute Key conforming to the
7292 // "k8s.namespace.phase" semantic conventions. It represents the phase of the
7293 // K8s namespace.
7294 //
7295 // Type: Enum
7296 // RequirementLevel: Recommended
7297 // Stability: Development
7298 //
7299 // Examples: "active", "terminating"
7300 // Note: This attribute aligns with the `phase` field of the
7301 // [K8s NamespaceStatus]
7302 //
7303 // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core
7304 K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase")
7305
7306 // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
7307 // semantic conventions. It represents the name of the Node.
7308 //
7309 // Type: string
7310 // RequirementLevel: Recommended
7311 // Stability: Development
7312 //
7313 // Examples: "node-1"
7314 K8SNodeNameKey = attribute.Key("k8s.node.name")
7315
7316 // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
7317 // conventions. It represents the UID of the Node.
7318 //
7319 // Type: string
7320 // RequirementLevel: Recommended
7321 // Stability: Development
7322 //
7323 // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
7324 K8SNodeUIDKey = attribute.Key("k8s.node.uid")
7325
7326 // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
7327 // conventions. It represents the name of the Pod.
7328 //
7329 // Type: string
7330 // RequirementLevel: Recommended
7331 // Stability: Development
7332 //
7333 // Examples: "opentelemetry-pod-autoconf"
7334 K8SPodNameKey = attribute.Key("k8s.pod.name")
7335
7336 // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
7337 // conventions. It represents the UID of the Pod.
7338 //
7339 // Type: string
7340 // RequirementLevel: Recommended
7341 // Stability: Development
7342 //
7343 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7344 K8SPodUIDKey = attribute.Key("k8s.pod.uid")
7345
7346 // K8SReplicaSetNameKey is the attribute Key conforming to the
7347 // "k8s.replicaset.name" semantic conventions. It represents the name of the
7348 // ReplicaSet.
7349 //
7350 // Type: string
7351 // RequirementLevel: Recommended
7352 // Stability: Development
7353 //
7354 // Examples: "opentelemetry"
7355 K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
7356
7357 // K8SReplicaSetUIDKey is the attribute Key conforming to the
7358 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
7359 // ReplicaSet.
7360 //
7361 // Type: string
7362 // RequirementLevel: Recommended
7363 // Stability: Development
7364 //
7365 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7366 K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
7367
7368 // K8SReplicationControllerNameKey is the attribute Key conforming to the
7369 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
7370 // of the replication controller.
7371 //
7372 // Type: string
7373 // RequirementLevel: Recommended
7374 // Stability: Development
7375 //
7376 // Examples: "opentelemetry"
7377 K8SReplicationControllerNameKey = attribute.Key("k8s.replicationcontroller.name")
7378
7379 // K8SReplicationControllerUIDKey is the attribute Key conforming to the
7380 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID
7381 // of the replication controller.
7382 //
7383 // Type: string
7384 // RequirementLevel: Recommended
7385 // Stability: Development
7386 //
7387 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7388 K8SReplicationControllerUIDKey = attribute.Key("k8s.replicationcontroller.uid")
7389
7390 // K8SResourceQuotaNameKey is the attribute Key conforming to the
7391 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
7392 // resource quota.
7393 //
7394 // Type: string
7395 // RequirementLevel: Recommended
7396 // Stability: Development
7397 //
7398 // Examples: "opentelemetry"
7399 K8SResourceQuotaNameKey = attribute.Key("k8s.resourcequota.name")
7400
7401 // K8SResourceQuotaUIDKey is the attribute Key conforming to the
7402 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
7403 // resource quota.
7404 //
7405 // Type: string
7406 // RequirementLevel: Recommended
7407 // Stability: Development
7408 //
7409 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7410 K8SResourceQuotaUIDKey = attribute.Key("k8s.resourcequota.uid")
7411
7412 // K8SStatefulSetNameKey is the attribute Key conforming to the
7413 // "k8s.statefulset.name" semantic conventions. It represents the name of the
7414 // StatefulSet.
7415 //
7416 // Type: string
7417 // RequirementLevel: Recommended
7418 // Stability: Development
7419 //
7420 // Examples: "opentelemetry"
7421 K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
7422
7423 // K8SStatefulSetUIDKey is the attribute Key conforming to the
7424 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
7425 // StatefulSet.
7426 //
7427 // Type: string
7428 // RequirementLevel: Recommended
7429 // Stability: Development
7430 //
7431 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7432 K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
7433
7434 // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
7435 // semantic conventions. It represents the name of the K8s volume.
7436 //
7437 // Type: string
7438 // RequirementLevel: Recommended
7439 // Stability: Development
7440 //
7441 // Examples: "volume0"
7442 K8SVolumeNameKey = attribute.Key("k8s.volume.name")
7443
7444 // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
7445 // semantic conventions. It represents the type of the K8s volume.
7446 //
7447 // Type: Enum
7448 // RequirementLevel: Recommended
7449 // Stability: Development
7450 //
7451 // Examples: "emptyDir", "persistentVolumeClaim"
7452 K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
7453 )
7454
7455 // K8SClusterName returns an attribute KeyValue conforming to the
7456 // "k8s.cluster.name" semantic conventions. It represents the name of the
7457 // cluster.
7458 func K8SClusterName(val string) attribute.KeyValue {
7459 return K8SClusterNameKey.String(val)
7460 }
7461
7462 // K8SClusterUID returns an attribute KeyValue conforming to the
7463 // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
7464 // cluster, set to the UID of the `kube-system` namespace.
7465 func K8SClusterUID(val string) attribute.KeyValue {
7466 return K8SClusterUIDKey.String(val)
7467 }
7468
7469 // K8SContainerName returns an attribute KeyValue conforming to the
7470 // "k8s.container.name" semantic conventions. It represents the name of the
7471 // Container from Pod specification, must be unique within a Pod. Container
7472 // runtime usually uses different globally unique name (`container.name`).
7473 func K8SContainerName(val string) attribute.KeyValue {
7474 return K8SContainerNameKey.String(val)
7475 }
7476
7477 // K8SContainerRestartCount returns an attribute KeyValue conforming to the
7478 // "k8s.container.restart_count" semantic conventions. It represents the number
7479 // of times the container was restarted. This attribute can be used to identify a
7480 // particular container (running or stopped) within a container spec.
7481 func K8SContainerRestartCount(val int) attribute.KeyValue {
7482 return K8SContainerRestartCountKey.Int(val)
7483 }
7484
7485 // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
7486 // conforming to the "k8s.container.status.last_terminated_reason" semantic
7487 // conventions. It represents the last terminated reason of the Container.
7488 func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
7489 return K8SContainerStatusLastTerminatedReasonKey.String(val)
7490 }
7491
7492 // K8SCronJobName returns an attribute KeyValue conforming to the
7493 // "k8s.cronjob.name" semantic conventions. It represents the name of the
7494 // CronJob.
7495 func K8SCronJobName(val string) attribute.KeyValue {
7496 return K8SCronJobNameKey.String(val)
7497 }
7498
7499 // K8SCronJobUID returns an attribute KeyValue conforming to the
7500 // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
7501 func K8SCronJobUID(val string) attribute.KeyValue {
7502 return K8SCronJobUIDKey.String(val)
7503 }
7504
7505 // K8SDaemonSetName returns an attribute KeyValue conforming to the
7506 // "k8s.daemonset.name" semantic conventions. It represents the name of the
7507 // DaemonSet.
7508 func K8SDaemonSetName(val string) attribute.KeyValue {
7509 return K8SDaemonSetNameKey.String(val)
7510 }
7511
7512 // K8SDaemonSetUID returns an attribute KeyValue conforming to the
7513 // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
7514 // DaemonSet.
7515 func K8SDaemonSetUID(val string) attribute.KeyValue {
7516 return K8SDaemonSetUIDKey.String(val)
7517 }
7518
7519 // K8SDeploymentName returns an attribute KeyValue conforming to the
7520 // "k8s.deployment.name" semantic conventions. It represents the name of the
7521 // Deployment.
7522 func K8SDeploymentName(val string) attribute.KeyValue {
7523 return K8SDeploymentNameKey.String(val)
7524 }
7525
7526 // K8SDeploymentUID returns an attribute KeyValue conforming to the
7527 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
7528 // Deployment.
7529 func K8SDeploymentUID(val string) attribute.KeyValue {
7530 return K8SDeploymentUIDKey.String(val)
7531 }
7532
7533 // K8SHPAName returns an attribute KeyValue conforming to the "k8s.hpa.name"
7534 // semantic conventions. It represents the name of the horizontal pod autoscaler.
7535 func K8SHPAName(val string) attribute.KeyValue {
7536 return K8SHPANameKey.String(val)
7537 }
7538
7539 // K8SHPAUID returns an attribute KeyValue conforming to the "k8s.hpa.uid"
7540 // semantic conventions. It represents the UID of the horizontal pod autoscaler.
7541 func K8SHPAUID(val string) attribute.KeyValue {
7542 return K8SHPAUIDKey.String(val)
7543 }
7544
7545 // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
7546 // semantic conventions. It represents the name of the Job.
7547 func K8SJobName(val string) attribute.KeyValue {
7548 return K8SJobNameKey.String(val)
7549 }
7550
7551 // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
7552 // semantic conventions. It represents the UID of the Job.
7553 func K8SJobUID(val string) attribute.KeyValue {
7554 return K8SJobUIDKey.String(val)
7555 }
7556
7557 // K8SNamespaceName returns an attribute KeyValue conforming to the
7558 // "k8s.namespace.name" semantic conventions. It represents the name of the
7559 // namespace that the pod is running in.
7560 func K8SNamespaceName(val string) attribute.KeyValue {
7561 return K8SNamespaceNameKey.String(val)
7562 }
7563
7564 // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
7565 // semantic conventions. It represents the name of the Node.
7566 func K8SNodeName(val string) attribute.KeyValue {
7567 return K8SNodeNameKey.String(val)
7568 }
7569
7570 // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
7571 // semantic conventions. It represents the UID of the Node.
7572 func K8SNodeUID(val string) attribute.KeyValue {
7573 return K8SNodeUIDKey.String(val)
7574 }
7575
7576 // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
7577 // semantic conventions. It represents the name of the Pod.
7578 func K8SPodName(val string) attribute.KeyValue {
7579 return K8SPodNameKey.String(val)
7580 }
7581
7582 // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
7583 // semantic conventions. It represents the UID of the Pod.
7584 func K8SPodUID(val string) attribute.KeyValue {
7585 return K8SPodUIDKey.String(val)
7586 }
7587
7588 // K8SReplicaSetName returns an attribute KeyValue conforming to the
7589 // "k8s.replicaset.name" semantic conventions. It represents the name of the
7590 // ReplicaSet.
7591 func K8SReplicaSetName(val string) attribute.KeyValue {
7592 return K8SReplicaSetNameKey.String(val)
7593 }
7594
7595 // K8SReplicaSetUID returns an attribute KeyValue conforming to the
7596 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
7597 // ReplicaSet.
7598 func K8SReplicaSetUID(val string) attribute.KeyValue {
7599 return K8SReplicaSetUIDKey.String(val)
7600 }
7601
7602 // K8SReplicationControllerName returns an attribute KeyValue conforming to the
7603 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
7604 // of the replication controller.
7605 func K8SReplicationControllerName(val string) attribute.KeyValue {
7606 return K8SReplicationControllerNameKey.String(val)
7607 }
7608
7609 // K8SReplicationControllerUID returns an attribute KeyValue conforming to the
7610 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID of
7611 // the replication controller.
7612 func K8SReplicationControllerUID(val string) attribute.KeyValue {
7613 return K8SReplicationControllerUIDKey.String(val)
7614 }
7615
7616 // K8SResourceQuotaName returns an attribute KeyValue conforming to the
7617 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
7618 // resource quota.
7619 func K8SResourceQuotaName(val string) attribute.KeyValue {
7620 return K8SResourceQuotaNameKey.String(val)
7621 }
7622
7623 // K8SResourceQuotaUID returns an attribute KeyValue conforming to the
7624 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
7625 // resource quota.
7626 func K8SResourceQuotaUID(val string) attribute.KeyValue {
7627 return K8SResourceQuotaUIDKey.String(val)
7628 }
7629
7630 // K8SStatefulSetName returns an attribute KeyValue conforming to the
7631 // "k8s.statefulset.name" semantic conventions. It represents the name of the
7632 // StatefulSet.
7633 func K8SStatefulSetName(val string) attribute.KeyValue {
7634 return K8SStatefulSetNameKey.String(val)
7635 }
7636
7637 // K8SStatefulSetUID returns an attribute KeyValue conforming to the
7638 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
7639 // StatefulSet.
7640 func K8SStatefulSetUID(val string) attribute.KeyValue {
7641 return K8SStatefulSetUIDKey.String(val)
7642 }
7643
7644 // K8SVolumeName returns an attribute KeyValue conforming to the
7645 // "k8s.volume.name" semantic conventions. It represents the name of the K8s
7646 // volume.
7647 func K8SVolumeName(val string) attribute.KeyValue {
7648 return K8SVolumeNameKey.String(val)
7649 }
7650
7651 // Enum values for k8s.namespace.phase
7652 var (
7653 // Active namespace phase as described by [K8s API]
7654 // Stability: development
7655 //
7656 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
7657 K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active")
7658 // Terminating namespace phase as described by [K8s API]
7659 // Stability: development
7660 //
7661 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
7662 K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating")
7663 )
7664
7665 // Enum values for k8s.volume.type
7666 var (
7667 // A [persistentVolumeClaim] volume
7668 // Stability: development
7669 //
7670 // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
7671 K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
7672 // A [configMap] volume
7673 // Stability: development
7674 //
7675 // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
7676 K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
7677 // A [downwardAPI] volume
7678 // Stability: development
7679 //
7680 // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
7681 K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
7682 // An [emptyDir] volume
7683 // Stability: development
7684 //
7685 // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
7686 K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
7687 // A [secret] volume
7688 // Stability: development
7689 //
7690 // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
7691 K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
7692 // A [local] volume
7693 // Stability: development
7694 //
7695 // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local
7696 K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
7697 )
7698
7699 // Namespace: linux
7700 const (
7701 // LinuxMemorySlabStateKey is the attribute Key conforming to the
7702 // "linux.memory.slab.state" semantic conventions. It represents the Linux Slab
7703 // memory state.
7704 //
7705 // Type: Enum
7706 // RequirementLevel: Recommended
7707 // Stability: Development
7708 //
7709 // Examples: "reclaimable", "unreclaimable"
7710 LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state")
7711 )
7712
7713 // Enum values for linux.memory.slab.state
7714 var (
7715 // reclaimable
7716 // Stability: development
7717 LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable")
7718 // unreclaimable
7719 // Stability: development
7720 LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable")
7721 )
7722
7723 // Namespace: log
7724 const (
7725 // LogFileNameKey is the attribute Key conforming to the "log.file.name"
7726 // semantic conventions. It represents the basename of the file.
7727 //
7728 // Type: string
7729 // RequirementLevel: Recommended
7730 // Stability: Development
7731 //
7732 // Examples: "audit.log"
7733 LogFileNameKey = attribute.Key("log.file.name")
7734
7735 // LogFileNameResolvedKey is the attribute Key conforming to the
7736 // "log.file.name_resolved" semantic conventions. It represents the basename of
7737 // the file, with symlinks resolved.
7738 //
7739 // Type: string
7740 // RequirementLevel: Recommended
7741 // Stability: Development
7742 //
7743 // Examples: "uuid.log"
7744 LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
7745
7746 // LogFilePathKey is the attribute Key conforming to the "log.file.path"
7747 // semantic conventions. It represents the full path to the file.
7748 //
7749 // Type: string
7750 // RequirementLevel: Recommended
7751 // Stability: Development
7752 //
7753 // Examples: "/var/log/mysql/audit.log"
7754 LogFilePathKey = attribute.Key("log.file.path")
7755
7756 // LogFilePathResolvedKey is the attribute Key conforming to the
7757 // "log.file.path_resolved" semantic conventions. It represents the full path to
7758 // the file, with symlinks resolved.
7759 //
7760 // Type: string
7761 // RequirementLevel: Recommended
7762 // Stability: Development
7763 //
7764 // Examples: "/var/lib/docker/uuid.log"
7765 LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
7766
7767 // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
7768 // conventions. It represents the stream associated with the log. See below for
7769 // a list of well-known values.
7770 //
7771 // Type: Enum
7772 // RequirementLevel: Recommended
7773 // Stability: Development
7774 //
7775 // Examples:
7776 LogIostreamKey = attribute.Key("log.iostream")
7777
7778 // LogRecordOriginalKey is the attribute Key conforming to the
7779 // "log.record.original" semantic conventions. It represents the complete
7780 // original Log Record.
7781 //
7782 // Type: string
7783 // RequirementLevel: Recommended
7784 // Stability: Development
7785 //
7786 // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
7787 // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
7788 // Note: This value MAY be added when processing a Log Record which was
7789 // originally transmitted as a string or equivalent data type AND the Body field
7790 // of the Log Record does not contain the same value. (e.g. a syslog or a log
7791 // record read from a file.)
7792 LogRecordOriginalKey = attribute.Key("log.record.original")
7793
7794 // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
7795 // semantic conventions. It represents a unique identifier for the Log Record.
7796 //
7797 // Type: string
7798 // RequirementLevel: Recommended
7799 // Stability: Development
7800 //
7801 // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
7802 // Note: If an id is provided, other log records with the same id will be
7803 // considered duplicates and can be removed safely. This means, that two
7804 // distinguishable log records MUST have different values.
7805 // The id MAY be an
7806 // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
7807 // identifiers (e.g. UUID) may be used as needed.
7808 //
7809 // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
7810 LogRecordUIDKey = attribute.Key("log.record.uid")
7811 )
7812
7813 // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
7814 // semantic conventions. It represents the basename of the file.
7815 func LogFileName(val string) attribute.KeyValue {
7816 return LogFileNameKey.String(val)
7817 }
7818
7819 // LogFileNameResolved returns an attribute KeyValue conforming to the
7820 // "log.file.name_resolved" semantic conventions. It represents the basename of
7821 // the file, with symlinks resolved.
7822 func LogFileNameResolved(val string) attribute.KeyValue {
7823 return LogFileNameResolvedKey.String(val)
7824 }
7825
7826 // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
7827 // semantic conventions. It represents the full path to the file.
7828 func LogFilePath(val string) attribute.KeyValue {
7829 return LogFilePathKey.String(val)
7830 }
7831
7832 // LogFilePathResolved returns an attribute KeyValue conforming to the
7833 // "log.file.path_resolved" semantic conventions. It represents the full path to
7834 // the file, with symlinks resolved.
7835 func LogFilePathResolved(val string) attribute.KeyValue {
7836 return LogFilePathResolvedKey.String(val)
7837 }
7838
7839 // LogRecordOriginal returns an attribute KeyValue conforming to the
7840 // "log.record.original" semantic conventions. It represents the complete
7841 // original Log Record.
7842 func LogRecordOriginal(val string) attribute.KeyValue {
7843 return LogRecordOriginalKey.String(val)
7844 }
7845
7846 // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
7847 // semantic conventions. It represents a unique identifier for the Log Record.
7848 func LogRecordUID(val string) attribute.KeyValue {
7849 return LogRecordUIDKey.String(val)
7850 }
7851
7852 // Enum values for log.iostream
7853 var (
7854 // Logs from stdout stream
7855 // Stability: development
7856 LogIostreamStdout = LogIostreamKey.String("stdout")
7857 // Events from stderr stream
7858 // Stability: development
7859 LogIostreamStderr = LogIostreamKey.String("stderr")
7860 )
7861
7862 // Namespace: messaging
7863 const (
7864 // MessagingBatchMessageCountKey is the attribute Key conforming to the
7865 // "messaging.batch.message_count" semantic conventions. It represents the
7866 // number of messages sent, received, or processed in the scope of the batching
7867 // operation.
7868 //
7869 // Type: int
7870 // RequirementLevel: Recommended
7871 // Stability: Development
7872 //
7873 // Examples: 0, 1, 2
7874 // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
7875 // spans that operate with a single message. When a messaging client library
7876 // supports both batch and single-message API for the same operation,
7877 // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
7878 // and SHOULD NOT use it for single-message APIs.
7879 MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
7880
7881 // MessagingClientIDKey is the attribute Key conforming to the
7882 // "messaging.client.id" semantic conventions. It represents a unique identifier
7883 // for the client that consumes or produces a message.
7884 //
7885 // Type: string
7886 // RequirementLevel: Recommended
7887 // Stability: Development
7888 //
7889 // Examples: "client-5", "myhost@8742@s8083jm"
7890 MessagingClientIDKey = attribute.Key("messaging.client.id")
7891
7892 // MessagingConsumerGroupNameKey is the attribute Key conforming to the
7893 // "messaging.consumer.group.name" semantic conventions. It represents the name
7894 // of the consumer group with which a consumer is associated.
7895 //
7896 // Type: string
7897 // RequirementLevel: Recommended
7898 // Stability: Development
7899 //
7900 // Examples: "my-group", "indexer"
7901 // Note: Semantic conventions for individual messaging systems SHOULD document
7902 // whether `messaging.consumer.group.name` is applicable and what it means in
7903 // the context of that system.
7904 MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
7905
7906 // MessagingDestinationAnonymousKey is the attribute Key conforming to the
7907 // "messaging.destination.anonymous" semantic conventions. It represents a
7908 // boolean that is true if the message destination is anonymous (could be
7909 // unnamed or have auto-generated name).
7910 //
7911 // Type: boolean
7912 // RequirementLevel: Recommended
7913 // Stability: Development
7914 //
7915 // Examples:
7916 MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
7917
7918 // MessagingDestinationNameKey is the attribute Key conforming to the
7919 // "messaging.destination.name" semantic conventions. It represents the message
7920 // destination name.
7921 //
7922 // Type: string
7923 // RequirementLevel: Recommended
7924 // Stability: Development
7925 //
7926 // Examples: "MyQueue", "MyTopic"
7927 // Note: Destination name SHOULD uniquely identify a specific queue, topic or
7928 // other entity within the broker. If
7929 // the broker doesn't have such notion, the destination name SHOULD uniquely
7930 // identify the broker.
7931 MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
7932
7933 // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
7934 // "messaging.destination.partition.id" semantic conventions. It represents the
7935 // identifier of the partition messages are sent to or received from, unique
7936 // within the `messaging.destination.name`.
7937 //
7938 // Type: string
7939 // RequirementLevel: Recommended
7940 // Stability: Development
7941 //
7942 // Examples: 1
7943 MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
7944
7945 // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
7946 // the "messaging.destination.subscription.name" semantic conventions. It
7947 // represents the name of the destination subscription from which a message is
7948 // consumed.
7949 //
7950 // Type: string
7951 // RequirementLevel: Recommended
7952 // Stability: Development
7953 //
7954 // Examples: "subscription-a"
7955 // Note: Semantic conventions for individual messaging systems SHOULD document
7956 // whether `messaging.destination.subscription.name` is applicable and what it
7957 // means in the context of that system.
7958 MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
7959
7960 // MessagingDestinationTemplateKey is the attribute Key conforming to the
7961 // "messaging.destination.template" semantic conventions. It represents the low
7962 // cardinality representation of the messaging destination name.
7963 //
7964 // Type: string
7965 // RequirementLevel: Recommended
7966 // Stability: Development
7967 //
7968 // Examples: "/customers/{customerId}"
7969 // Note: Destination names could be constructed from templates. An example would
7970 // be a destination name involving a user name or product id. Although the
7971 // destination name in this case is of high cardinality, the underlying template
7972 // is of low cardinality and can be effectively used for grouping and
7973 // aggregation.
7974 MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
7975
7976 // MessagingDestinationTemporaryKey is the attribute Key conforming to the
7977 // "messaging.destination.temporary" semantic conventions. It represents a
7978 // boolean that is true if the message destination is temporary and might not
7979 // exist anymore after messages are processed.
7980 //
7981 // Type: boolean
7982 // RequirementLevel: Recommended
7983 // Stability: Development
7984 //
7985 // Examples:
7986 MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
7987
7988 // MessagingEventHubsMessageEnqueuedTimeKey is the attribute Key conforming to
7989 // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
7990 // represents the UTC epoch seconds at which the message has been accepted and
7991 // stored in the entity.
7992 //
7993 // Type: int
7994 // RequirementLevel: Recommended
7995 // Stability: Development
7996 MessagingEventHubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
7997
7998 // MessagingGCPPubSubMessageAckDeadlineKey is the attribute Key conforming to
7999 // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
8000 // represents the ack deadline in seconds set for the modify ack deadline
8001 // request.
8002 //
8003 // Type: int
8004 // RequirementLevel: Recommended
8005 // Stability: Development
8006 MessagingGCPPubSubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
8007
8008 // MessagingGCPPubSubMessageAckIDKey is the attribute Key conforming to the
8009 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
8010 // ack id for a given message.
8011 //
8012 // Type: string
8013 // RequirementLevel: Recommended
8014 // Stability: Development
8015 //
8016 // Examples: ack_id
8017 MessagingGCPPubSubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
8018
8019 // MessagingGCPPubSubMessageDeliveryAttemptKey is the attribute Key conforming
8020 // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
8021 // It represents the delivery attempt for a given message.
8022 //
8023 // Type: int
8024 // RequirementLevel: Recommended
8025 // Stability: Development
8026 MessagingGCPPubSubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
8027
8028 // MessagingGCPPubSubMessageOrderingKeyKey is the attribute Key conforming to
8029 // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
8030 // represents the ordering key for a given message. If the attribute is not
8031 // present, the message does not have an ordering key.
8032 //
8033 // Type: string
8034 // RequirementLevel: Recommended
8035 // Stability: Development
8036 //
8037 // Examples: ordering_key
8038 MessagingGCPPubSubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
8039
8040 // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
8041 // "messaging.kafka.message.key" semantic conventions. It represents the message
8042 // keys in Kafka are used for grouping alike messages to ensure they're
8043 // processed on the same partition. They differ from `messaging.message.id` in
8044 // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
8045 //
8046 // Type: string
8047 // RequirementLevel: Recommended
8048 // Stability: Development
8049 //
8050 // Examples: myKey
8051 // Note: If the key type is not string, it's string representation has to be
8052 // supplied for the attribute. If the key has no unambiguous, canonical string
8053 // form, don't include its value.
8054 MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
8055
8056 // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
8057 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
8058 // boolean that is true if the message is a tombstone.
8059 //
8060 // Type: boolean
8061 // RequirementLevel: Recommended
8062 // Stability: Development
8063 //
8064 // Examples:
8065 MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
8066
8067 // MessagingKafkaOffsetKey is the attribute Key conforming to the
8068 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
8069 // record in the corresponding Kafka partition.
8070 //
8071 // Type: int
8072 // RequirementLevel: Recommended
8073 // Stability: Development
8074 MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
8075
8076 // MessagingMessageBodySizeKey is the attribute Key conforming to the
8077 // "messaging.message.body.size" semantic conventions. It represents the size of
8078 // the message body in bytes.
8079 //
8080 // Type: int
8081 // RequirementLevel: Recommended
8082 // Stability: Development
8083 //
8084 // Note: This can refer to both the compressed or uncompressed body size. If
8085 // both sizes are known, the uncompressed
8086 // body size should be used.
8087 MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
8088
8089 // MessagingMessageConversationIDKey is the attribute Key conforming to the
8090 // "messaging.message.conversation_id" semantic conventions. It represents the
8091 // conversation ID identifying the conversation to which the message belongs,
8092 // represented as a string. Sometimes called "Correlation ID".
8093 //
8094 // Type: string
8095 // RequirementLevel: Recommended
8096 // Stability: Development
8097 //
8098 // Examples: MyConversationId
8099 MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
8100
8101 // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
8102 // "messaging.message.envelope.size" semantic conventions. It represents the
8103 // size of the message body and metadata in bytes.
8104 //
8105 // Type: int
8106 // RequirementLevel: Recommended
8107 // Stability: Development
8108 //
8109 // Note: This can refer to both the compressed or uncompressed size. If both
8110 // sizes are known, the uncompressed
8111 // size should be used.
8112 MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
8113
8114 // MessagingMessageIDKey is the attribute Key conforming to the
8115 // "messaging.message.id" semantic conventions. It represents a value used by
8116 // the messaging system as an identifier for the message, represented as a
8117 // string.
8118 //
8119 // Type: string
8120 // RequirementLevel: Recommended
8121 // Stability: Development
8122 //
8123 // Examples: 452a7c7c7c7048c2f887f61572b18fc2
8124 MessagingMessageIDKey = attribute.Key("messaging.message.id")
8125
8126 // MessagingOperationNameKey is the attribute Key conforming to the
8127 // "messaging.operation.name" semantic conventions. It represents the
8128 // system-specific name of the messaging operation.
8129 //
8130 // Type: string
8131 // RequirementLevel: Recommended
8132 // Stability: Development
8133 //
8134 // Examples: "ack", "nack", "send"
8135 MessagingOperationNameKey = attribute.Key("messaging.operation.name")
8136
8137 // MessagingOperationTypeKey is the attribute Key conforming to the
8138 // "messaging.operation.type" semantic conventions. It represents a string
8139 // identifying the type of the messaging operation.
8140 //
8141 // Type: Enum
8142 // RequirementLevel: Recommended
8143 // Stability: Development
8144 //
8145 // Examples:
8146 // Note: If a custom value is used, it MUST be of low cardinality.
8147 MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
8148
8149 // MessagingRabbitMQDestinationRoutingKeyKey is the attribute Key conforming to
8150 // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
8151 // represents the rabbitMQ message routing key.
8152 //
8153 // Type: string
8154 // RequirementLevel: Recommended
8155 // Stability: Development
8156 //
8157 // Examples: myKey
8158 MessagingRabbitMQDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
8159
8160 // MessagingRabbitMQMessageDeliveryTagKey is the attribute Key conforming to the
8161 // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
8162 // the rabbitMQ message delivery tag.
8163 //
8164 // Type: int
8165 // RequirementLevel: Recommended
8166 // Stability: Development
8167 MessagingRabbitMQMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
8168
8169 // MessagingRocketMQConsumptionModelKey is the attribute Key conforming to the
8170 // "messaging.rocketmq.consumption_model" semantic conventions. It represents
8171 // the model of message consumption. This only applies to consumer spans.
8172 //
8173 // Type: Enum
8174 // RequirementLevel: Recommended
8175 // Stability: Development
8176 //
8177 // Examples:
8178 MessagingRocketMQConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
8179
8180 // MessagingRocketMQMessageDelayTimeLevelKey is the attribute Key conforming to
8181 // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
8182 // represents the delay time level for delay message, which determines the
8183 // message delay time.
8184 //
8185 // Type: int
8186 // RequirementLevel: Recommended
8187 // Stability: Development
8188 MessagingRocketMQMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
8189
8190 // MessagingRocketMQMessageDeliveryTimestampKey is the attribute Key conforming
8191 // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
8192 // It represents the timestamp in milliseconds that the delay message is
8193 // expected to be delivered to consumer.
8194 //
8195 // Type: int
8196 // RequirementLevel: Recommended
8197 // Stability: Development
8198 MessagingRocketMQMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
8199
8200 // MessagingRocketMQMessageGroupKey is the attribute Key conforming to the
8201 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
8202 // is essential for FIFO message. Messages that belong to the same message group
8203 // are always processed one by one within the same consumer group.
8204 //
8205 // Type: string
8206 // RequirementLevel: Recommended
8207 // Stability: Development
8208 //
8209 // Examples: myMessageGroup
8210 MessagingRocketMQMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
8211
8212 // MessagingRocketMQMessageKeysKey is the attribute Key conforming to the
8213 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
8214 // key(s) of message, another way to mark message besides message id.
8215 //
8216 // Type: string[]
8217 // RequirementLevel: Recommended
8218 // Stability: Development
8219 //
8220 // Examples: "keyA", "keyB"
8221 MessagingRocketMQMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
8222
8223 // MessagingRocketMQMessageTagKey is the attribute Key conforming to the
8224 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
8225 // secondary classifier of message besides topic.
8226 //
8227 // Type: string
8228 // RequirementLevel: Recommended
8229 // Stability: Development
8230 //
8231 // Examples: tagA
8232 MessagingRocketMQMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
8233
8234 // MessagingRocketMQMessageTypeKey is the attribute Key conforming to the
8235 // "messaging.rocketmq.message.type" semantic conventions. It represents the
8236 // type of message.
8237 //
8238 // Type: Enum
8239 // RequirementLevel: Recommended
8240 // Stability: Development
8241 //
8242 // Examples:
8243 MessagingRocketMQMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
8244
8245 // MessagingRocketMQNamespaceKey is the attribute Key conforming to the
8246 // "messaging.rocketmq.namespace" semantic conventions. It represents the
8247 // namespace of RocketMQ resources, resources in different namespaces are
8248 // individual.
8249 //
8250 // Type: string
8251 // RequirementLevel: Recommended
8252 // Stability: Development
8253 //
8254 // Examples: myNamespace
8255 MessagingRocketMQNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
8256
8257 // MessagingServiceBusDispositionStatusKey is the attribute Key conforming to
8258 // the "messaging.servicebus.disposition_status" semantic conventions. It
8259 // represents the describes the [settlement type].
8260 //
8261 // Type: Enum
8262 // RequirementLevel: Recommended
8263 // Stability: Development
8264 //
8265 // Examples:
8266 //
8267 // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
8268 MessagingServiceBusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
8269
8270 // MessagingServiceBusMessageDeliveryCountKey is the attribute Key conforming to
8271 // the "messaging.servicebus.message.delivery_count" semantic conventions. It
8272 // represents the number of deliveries that have been attempted for this
8273 // message.
8274 //
8275 // Type: int
8276 // RequirementLevel: Recommended
8277 // Stability: Development
8278 MessagingServiceBusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
8279
8280 // MessagingServiceBusMessageEnqueuedTimeKey is the attribute Key conforming to
8281 // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
8282 // represents the UTC epoch seconds at which the message has been accepted and
8283 // stored in the entity.
8284 //
8285 // Type: int
8286 // RequirementLevel: Recommended
8287 // Stability: Development
8288 MessagingServiceBusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
8289
8290 // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
8291 // semantic conventions. It represents the messaging system as identified by the
8292 // client instrumentation.
8293 //
8294 // Type: Enum
8295 // RequirementLevel: Recommended
8296 // Stability: Development
8297 //
8298 // Examples:
8299 // Note: The actual messaging system may differ from the one known by the
8300 // client. For example, when using Kafka client libraries to communicate with
8301 // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
8302 // instrumentation's best knowledge.
8303 MessagingSystemKey = attribute.Key("messaging.system")
8304 )
8305
8306 // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
8307 // "messaging.batch.message_count" semantic conventions. It represents the number
8308 // of messages sent, received, or processed in the scope of the batching
8309 // operation.
8310 func MessagingBatchMessageCount(val int) attribute.KeyValue {
8311 return MessagingBatchMessageCountKey.Int(val)
8312 }
8313
8314 // MessagingClientID returns an attribute KeyValue conforming to the
8315 // "messaging.client.id" semantic conventions. It represents a unique identifier
8316 // for the client that consumes or produces a message.
8317 func MessagingClientID(val string) attribute.KeyValue {
8318 return MessagingClientIDKey.String(val)
8319 }
8320
8321 // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
8322 // "messaging.consumer.group.name" semantic conventions. It represents the name
8323 // of the consumer group with which a consumer is associated.
8324 func MessagingConsumerGroupName(val string) attribute.KeyValue {
8325 return MessagingConsumerGroupNameKey.String(val)
8326 }
8327
8328 // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
8329 // "messaging.destination.anonymous" semantic conventions. It represents a
8330 // boolean that is true if the message destination is anonymous (could be unnamed
8331 // or have auto-generated name).
8332 func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
8333 return MessagingDestinationAnonymousKey.Bool(val)
8334 }
8335
8336 // MessagingDestinationName returns an attribute KeyValue conforming to the
8337 // "messaging.destination.name" semantic conventions. It represents the message
8338 // destination name.
8339 func MessagingDestinationName(val string) attribute.KeyValue {
8340 return MessagingDestinationNameKey.String(val)
8341 }
8342
8343 // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
8344 // the "messaging.destination.partition.id" semantic conventions. It represents
8345 // the identifier of the partition messages are sent to or received from, unique
8346 // within the `messaging.destination.name`.
8347 func MessagingDestinationPartitionID(val string) attribute.KeyValue {
8348 return MessagingDestinationPartitionIDKey.String(val)
8349 }
8350
8351 // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
8352 // to the "messaging.destination.subscription.name" semantic conventions. It
8353 // represents the name of the destination subscription from which a message is
8354 // consumed.
8355 func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
8356 return MessagingDestinationSubscriptionNameKey.String(val)
8357 }
8358
8359 // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
8360 // "messaging.destination.template" semantic conventions. It represents the low
8361 // cardinality representation of the messaging destination name.
8362 func MessagingDestinationTemplate(val string) attribute.KeyValue {
8363 return MessagingDestinationTemplateKey.String(val)
8364 }
8365
8366 // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
8367 // "messaging.destination.temporary" semantic conventions. It represents a
8368 // boolean that is true if the message destination is temporary and might not
8369 // exist anymore after messages are processed.
8370 func MessagingDestinationTemporary(val bool) attribute.KeyValue {
8371 return MessagingDestinationTemporaryKey.Bool(val)
8372 }
8373
8374 // MessagingEventHubsMessageEnqueuedTime returns an attribute KeyValue conforming
8375 // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
8376 // represents the UTC epoch seconds at which the message has been accepted and
8377 // stored in the entity.
8378 func MessagingEventHubsMessageEnqueuedTime(val int) attribute.KeyValue {
8379 return MessagingEventHubsMessageEnqueuedTimeKey.Int(val)
8380 }
8381
8382 // MessagingGCPPubSubMessageAckDeadline returns an attribute KeyValue conforming
8383 // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
8384 // represents the ack deadline in seconds set for the modify ack deadline
8385 // request.
8386 func MessagingGCPPubSubMessageAckDeadline(val int) attribute.KeyValue {
8387 return MessagingGCPPubSubMessageAckDeadlineKey.Int(val)
8388 }
8389
8390 // MessagingGCPPubSubMessageAckID returns an attribute KeyValue conforming to the
8391 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
8392 // ack id for a given message.
8393 func MessagingGCPPubSubMessageAckID(val string) attribute.KeyValue {
8394 return MessagingGCPPubSubMessageAckIDKey.String(val)
8395 }
8396
8397 // MessagingGCPPubSubMessageDeliveryAttempt returns an attribute KeyValue
8398 // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
8399 // conventions. It represents the delivery attempt for a given message.
8400 func MessagingGCPPubSubMessageDeliveryAttempt(val int) attribute.KeyValue {
8401 return MessagingGCPPubSubMessageDeliveryAttemptKey.Int(val)
8402 }
8403
8404 // MessagingGCPPubSubMessageOrderingKey returns an attribute KeyValue conforming
8405 // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
8406 // represents the ordering key for a given message. If the attribute is not
8407 // present, the message does not have an ordering key.
8408 func MessagingGCPPubSubMessageOrderingKey(val string) attribute.KeyValue {
8409 return MessagingGCPPubSubMessageOrderingKeyKey.String(val)
8410 }
8411
8412 // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
8413 // "messaging.kafka.message.key" semantic conventions. It represents the message
8414 // keys in Kafka are used for grouping alike messages to ensure they're processed
8415 // on the same partition. They differ from `messaging.message.id` in that they're
8416 // not unique. If the key is `null`, the attribute MUST NOT be set.
8417 func MessagingKafkaMessageKey(val string) attribute.KeyValue {
8418 return MessagingKafkaMessageKeyKey.String(val)
8419 }
8420
8421 // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
8422 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
8423 // boolean that is true if the message is a tombstone.
8424 func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
8425 return MessagingKafkaMessageTombstoneKey.Bool(val)
8426 }
8427
8428 // MessagingKafkaOffset returns an attribute KeyValue conforming to the
8429 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
8430 // record in the corresponding Kafka partition.
8431 func MessagingKafkaOffset(val int) attribute.KeyValue {
8432 return MessagingKafkaOffsetKey.Int(val)
8433 }
8434
8435 // MessagingMessageBodySize returns an attribute KeyValue conforming to the
8436 // "messaging.message.body.size" semantic conventions. It represents the size of
8437 // the message body in bytes.
8438 func MessagingMessageBodySize(val int) attribute.KeyValue {
8439 return MessagingMessageBodySizeKey.Int(val)
8440 }
8441
8442 // MessagingMessageConversationID returns an attribute KeyValue conforming to the
8443 // "messaging.message.conversation_id" semantic conventions. It represents the
8444 // conversation ID identifying the conversation to which the message belongs,
8445 // represented as a string. Sometimes called "Correlation ID".
8446 func MessagingMessageConversationID(val string) attribute.KeyValue {
8447 return MessagingMessageConversationIDKey.String(val)
8448 }
8449
8450 // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
8451 // "messaging.message.envelope.size" semantic conventions. It represents the size
8452 // of the message body and metadata in bytes.
8453 func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
8454 return MessagingMessageEnvelopeSizeKey.Int(val)
8455 }
8456
8457 // MessagingMessageID returns an attribute KeyValue conforming to the
8458 // "messaging.message.id" semantic conventions. It represents a value used by the
8459 // messaging system as an identifier for the message, represented as a string.
8460 func MessagingMessageID(val string) attribute.KeyValue {
8461 return MessagingMessageIDKey.String(val)
8462 }
8463
8464 // MessagingOperationName returns an attribute KeyValue conforming to the
8465 // "messaging.operation.name" semantic conventions. It represents the
8466 // system-specific name of the messaging operation.
8467 func MessagingOperationName(val string) attribute.KeyValue {
8468 return MessagingOperationNameKey.String(val)
8469 }
8470
8471 // MessagingRabbitMQDestinationRoutingKey returns an attribute KeyValue
8472 // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
8473 // conventions. It represents the rabbitMQ message routing key.
8474 func MessagingRabbitMQDestinationRoutingKey(val string) attribute.KeyValue {
8475 return MessagingRabbitMQDestinationRoutingKeyKey.String(val)
8476 }
8477
8478 // MessagingRabbitMQMessageDeliveryTag returns an attribute KeyValue conforming
8479 // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
8480 // represents the rabbitMQ message delivery tag.
8481 func MessagingRabbitMQMessageDeliveryTag(val int) attribute.KeyValue {
8482 return MessagingRabbitMQMessageDeliveryTagKey.Int(val)
8483 }
8484
8485 // MessagingRocketMQMessageDelayTimeLevel returns an attribute KeyValue
8486 // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
8487 // conventions. It represents the delay time level for delay message, which
8488 // determines the message delay time.
8489 func MessagingRocketMQMessageDelayTimeLevel(val int) attribute.KeyValue {
8490 return MessagingRocketMQMessageDelayTimeLevelKey.Int(val)
8491 }
8492
8493 // MessagingRocketMQMessageDeliveryTimestamp returns an attribute KeyValue
8494 // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
8495 // conventions. It represents the timestamp in milliseconds that the delay
8496 // message is expected to be delivered to consumer.
8497 func MessagingRocketMQMessageDeliveryTimestamp(val int) attribute.KeyValue {
8498 return MessagingRocketMQMessageDeliveryTimestampKey.Int(val)
8499 }
8500
8501 // MessagingRocketMQMessageGroup returns an attribute KeyValue conforming to the
8502 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
8503 // is essential for FIFO message. Messages that belong to the same message group
8504 // are always processed one by one within the same consumer group.
8505 func MessagingRocketMQMessageGroup(val string) attribute.KeyValue {
8506 return MessagingRocketMQMessageGroupKey.String(val)
8507 }
8508
8509 // MessagingRocketMQMessageKeys returns an attribute KeyValue conforming to the
8510 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
8511 // key(s) of message, another way to mark message besides message id.
8512 func MessagingRocketMQMessageKeys(val ...string) attribute.KeyValue {
8513 return MessagingRocketMQMessageKeysKey.StringSlice(val)
8514 }
8515
8516 // MessagingRocketMQMessageTag returns an attribute KeyValue conforming to the
8517 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
8518 // secondary classifier of message besides topic.
8519 func MessagingRocketMQMessageTag(val string) attribute.KeyValue {
8520 return MessagingRocketMQMessageTagKey.String(val)
8521 }
8522
8523 // MessagingRocketMQNamespace returns an attribute KeyValue conforming to the
8524 // "messaging.rocketmq.namespace" semantic conventions. It represents the
8525 // namespace of RocketMQ resources, resources in different namespaces are
8526 // individual.
8527 func MessagingRocketMQNamespace(val string) attribute.KeyValue {
8528 return MessagingRocketMQNamespaceKey.String(val)
8529 }
8530
8531 // MessagingServiceBusMessageDeliveryCount returns an attribute KeyValue
8532 // conforming to the "messaging.servicebus.message.delivery_count" semantic
8533 // conventions. It represents the number of deliveries that have been attempted
8534 // for this message.
8535 func MessagingServiceBusMessageDeliveryCount(val int) attribute.KeyValue {
8536 return MessagingServiceBusMessageDeliveryCountKey.Int(val)
8537 }
8538
8539 // MessagingServiceBusMessageEnqueuedTime returns an attribute KeyValue
8540 // conforming to the "messaging.servicebus.message.enqueued_time" semantic
8541 // conventions. It represents the UTC epoch seconds at which the message has been
8542 // accepted and stored in the entity.
8543 func MessagingServiceBusMessageEnqueuedTime(val int) attribute.KeyValue {
8544 return MessagingServiceBusMessageEnqueuedTimeKey.Int(val)
8545 }
8546
8547 // Enum values for messaging.operation.type
8548 var (
8549 // A message is created. "Create" spans always refer to a single message and are
8550 // used to provide a unique creation context for messages in batch sending
8551 // scenarios.
8552 //
8553 // Stability: development
8554 MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
8555 // One or more messages are provided for sending to an intermediary. If a single
8556 // message is sent, the context of the "Send" span can be used as the creation
8557 // context and no "Create" span needs to be created.
8558 //
8559 // Stability: development
8560 MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
8561 // One or more messages are requested by a consumer. This operation refers to
8562 // pull-based scenarios, where consumers explicitly call methods of messaging
8563 // SDKs to receive messages.
8564 //
8565 // Stability: development
8566 MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
8567 // One or more messages are processed by a consumer.
8568 //
8569 // Stability: development
8570 MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
8571 // One or more messages are settled.
8572 //
8573 // Stability: development
8574 MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
8575 // Deprecated: Replaced by `process`.
8576 MessagingOperationTypeDeliver = MessagingOperationTypeKey.String("deliver")
8577 // Deprecated: Replaced by `send`.
8578 MessagingOperationTypePublish = MessagingOperationTypeKey.String("publish")
8579 )
8580
8581 // Enum values for messaging.rocketmq.consumption_model
8582 var (
8583 // Clustering consumption model
8584 // Stability: development
8585 MessagingRocketMQConsumptionModelClustering = MessagingRocketMQConsumptionModelKey.String("clustering")
8586 // Broadcasting consumption model
8587 // Stability: development
8588 MessagingRocketMQConsumptionModelBroadcasting = MessagingRocketMQConsumptionModelKey.String("broadcasting")
8589 )
8590
8591 // Enum values for messaging.rocketmq.message.type
8592 var (
8593 // Normal message
8594 // Stability: development
8595 MessagingRocketMQMessageTypeNormal = MessagingRocketMQMessageTypeKey.String("normal")
8596 // FIFO message
8597 // Stability: development
8598 MessagingRocketMQMessageTypeFifo = MessagingRocketMQMessageTypeKey.String("fifo")
8599 // Delay message
8600 // Stability: development
8601 MessagingRocketMQMessageTypeDelay = MessagingRocketMQMessageTypeKey.String("delay")
8602 // Transaction message
8603 // Stability: development
8604 MessagingRocketMQMessageTypeTransaction = MessagingRocketMQMessageTypeKey.String("transaction")
8605 )
8606
8607 // Enum values for messaging.servicebus.disposition_status
8608 var (
8609 // Message is completed
8610 // Stability: development
8611 MessagingServiceBusDispositionStatusComplete = MessagingServiceBusDispositionStatusKey.String("complete")
8612 // Message is abandoned
8613 // Stability: development
8614 MessagingServiceBusDispositionStatusAbandon = MessagingServiceBusDispositionStatusKey.String("abandon")
8615 // Message is sent to dead letter queue
8616 // Stability: development
8617 MessagingServiceBusDispositionStatusDeadLetter = MessagingServiceBusDispositionStatusKey.String("dead_letter")
8618 // Message is deferred
8619 // Stability: development
8620 MessagingServiceBusDispositionStatusDefer = MessagingServiceBusDispositionStatusKey.String("defer")
8621 )
8622
8623 // Enum values for messaging.system
8624 var (
8625 // Apache ActiveMQ
8626 // Stability: development
8627 MessagingSystemActiveMQ = MessagingSystemKey.String("activemq")
8628 // Amazon Simple Queue Service (SQS)
8629 // Stability: development
8630 MessagingSystemAWSSQS = MessagingSystemKey.String("aws_sqs")
8631 // Azure Event Grid
8632 // Stability: development
8633 MessagingSystemEventGrid = MessagingSystemKey.String("eventgrid")
8634 // Azure Event Hubs
8635 // Stability: development
8636 MessagingSystemEventHubs = MessagingSystemKey.String("eventhubs")
8637 // Azure Service Bus
8638 // Stability: development
8639 MessagingSystemServiceBus = MessagingSystemKey.String("servicebus")
8640 // Google Cloud Pub/Sub
8641 // Stability: development
8642 MessagingSystemGCPPubSub = MessagingSystemKey.String("gcp_pubsub")
8643 // Java Message Service
8644 // Stability: development
8645 MessagingSystemJMS = MessagingSystemKey.String("jms")
8646 // Apache Kafka
8647 // Stability: development
8648 MessagingSystemKafka = MessagingSystemKey.String("kafka")
8649 // RabbitMQ
8650 // Stability: development
8651 MessagingSystemRabbitMQ = MessagingSystemKey.String("rabbitmq")
8652 // Apache RocketMQ
8653 // Stability: development
8654 MessagingSystemRocketMQ = MessagingSystemKey.String("rocketmq")
8655 // Apache Pulsar
8656 // Stability: development
8657 MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
8658 )
8659
8660 // Namespace: network
8661 const (
8662 // NetworkCarrierICCKey is the attribute Key conforming to the
8663 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
8664 // alpha-2 2-character country code associated with the mobile carrier network.
8665 //
8666 // Type: string
8667 // RequirementLevel: Recommended
8668 // Stability: Development
8669 //
8670 // Examples: DE
8671 NetworkCarrierICCKey = attribute.Key("network.carrier.icc")
8672
8673 // NetworkCarrierMCCKey is the attribute Key conforming to the
8674 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
8675 // country code.
8676 //
8677 // Type: string
8678 // RequirementLevel: Recommended
8679 // Stability: Development
8680 //
8681 // Examples: 310
8682 NetworkCarrierMCCKey = attribute.Key("network.carrier.mcc")
8683
8684 // NetworkCarrierMNCKey is the attribute Key conforming to the
8685 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
8686 // network code.
8687 //
8688 // Type: string
8689 // RequirementLevel: Recommended
8690 // Stability: Development
8691 //
8692 // Examples: 001
8693 NetworkCarrierMNCKey = attribute.Key("network.carrier.mnc")
8694
8695 // NetworkCarrierNameKey is the attribute Key conforming to the
8696 // "network.carrier.name" semantic conventions. It represents the name of the
8697 // mobile carrier.
8698 //
8699 // Type: string
8700 // RequirementLevel: Recommended
8701 // Stability: Development
8702 //
8703 // Examples: sprint
8704 NetworkCarrierNameKey = attribute.Key("network.carrier.name")
8705
8706 // NetworkConnectionStateKey is the attribute Key conforming to the
8707 // "network.connection.state" semantic conventions. It represents the state of
8708 // network connection.
8709 //
8710 // Type: Enum
8711 // RequirementLevel: Recommended
8712 // Stability: Development
8713 //
8714 // Examples: "close_wait"
8715 // Note: Connection states are defined as part of the [rfc9293]
8716 //
8717 // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2
8718 NetworkConnectionStateKey = attribute.Key("network.connection.state")
8719
8720 // NetworkConnectionSubtypeKey is the attribute Key conforming to the
8721 // "network.connection.subtype" semantic conventions. It represents the this
8722 // describes more details regarding the connection.type. It may be the type of
8723 // cell technology connection, but it could be used for describing details about
8724 // a wifi connection.
8725 //
8726 // Type: Enum
8727 // RequirementLevel: Recommended
8728 // Stability: Development
8729 //
8730 // Examples: LTE
8731 NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
8732
8733 // NetworkConnectionTypeKey is the attribute Key conforming to the
8734 // "network.connection.type" semantic conventions. It represents the internet
8735 // connection type.
8736 //
8737 // Type: Enum
8738 // RequirementLevel: Recommended
8739 // Stability: Development
8740 //
8741 // Examples: wifi
8742 NetworkConnectionTypeKey = attribute.Key("network.connection.type")
8743
8744 // NetworkInterfaceNameKey is the attribute Key conforming to the
8745 // "network.interface.name" semantic conventions. It represents the network
8746 // interface name.
8747 //
8748 // Type: string
8749 // RequirementLevel: Recommended
8750 // Stability: Development
8751 //
8752 // Examples: "lo", "eth0"
8753 NetworkInterfaceNameKey = attribute.Key("network.interface.name")
8754
8755 // NetworkIODirectionKey is the attribute Key conforming to the
8756 // "network.io.direction" semantic conventions. It represents the network IO
8757 // operation direction.
8758 //
8759 // Type: Enum
8760 // RequirementLevel: Recommended
8761 // Stability: Development
8762 //
8763 // Examples: "transmit"
8764 NetworkIODirectionKey = attribute.Key("network.io.direction")
8765
8766 // NetworkLocalAddressKey is the attribute Key conforming to the
8767 // "network.local.address" semantic conventions. It represents the local address
8768 // of the network connection - IP address or Unix domain socket name.
8769 //
8770 // Type: string
8771 // RequirementLevel: Recommended
8772 // Stability: Stable
8773 //
8774 // Examples: "10.1.2.80", "/tmp/my.sock"
8775 NetworkLocalAddressKey = attribute.Key("network.local.address")
8776
8777 // NetworkLocalPortKey is the attribute Key conforming to the
8778 // "network.local.port" semantic conventions. It represents the local port
8779 // number of the network connection.
8780 //
8781 // Type: int
8782 // RequirementLevel: Recommended
8783 // Stability: Stable
8784 //
8785 // Examples: 65123
8786 NetworkLocalPortKey = attribute.Key("network.local.port")
8787
8788 // NetworkPeerAddressKey is the attribute Key conforming to the
8789 // "network.peer.address" semantic conventions. It represents the peer address
8790 // of the network connection - IP address or Unix domain socket name.
8791 //
8792 // Type: string
8793 // RequirementLevel: Recommended
8794 // Stability: Stable
8795 //
8796 // Examples: "10.1.2.80", "/tmp/my.sock"
8797 NetworkPeerAddressKey = attribute.Key("network.peer.address")
8798
8799 // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
8800 // semantic conventions. It represents the peer port number of the network
8801 // connection.
8802 //
8803 // Type: int
8804 // RequirementLevel: Recommended
8805 // Stability: Stable
8806 //
8807 // Examples: 65123
8808 NetworkPeerPortKey = attribute.Key("network.peer.port")
8809
8810 // NetworkProtocolNameKey is the attribute Key conforming to the
8811 // "network.protocol.name" semantic conventions. It represents the
8812 // [OSI application layer] or non-OSI equivalent.
8813 //
8814 // Type: string
8815 // RequirementLevel: Recommended
8816 // Stability: Stable
8817 //
8818 // Examples: "amqp", "http", "mqtt"
8819 // Note: The value SHOULD be normalized to lowercase.
8820 //
8821 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
8822 NetworkProtocolNameKey = attribute.Key("network.protocol.name")
8823
8824 // NetworkProtocolVersionKey is the attribute Key conforming to the
8825 // "network.protocol.version" semantic conventions. It represents the actual
8826 // version of the protocol used for network communication.
8827 //
8828 // Type: string
8829 // RequirementLevel: Recommended
8830 // Stability: Stable
8831 //
8832 // Examples: "1.1", "2"
8833 // Note: If protocol version is subject to negotiation (for example using [ALPN]
8834 // ), this attribute SHOULD be set to the negotiated version. If the actual
8835 // protocol version is not known, this attribute SHOULD NOT be set.
8836 //
8837 // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
8838 NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
8839
8840 // NetworkTransportKey is the attribute Key conforming to the
8841 // "network.transport" semantic conventions. It represents the
8842 // [OSI transport layer] or [inter-process communication method].
8843 //
8844 // Type: Enum
8845 // RequirementLevel: Recommended
8846 // Stability: Stable
8847 //
8848 // Examples: "tcp", "udp"
8849 // Note: The value SHOULD be normalized to lowercase.
8850 //
8851 // Consider always setting the transport when setting a port number, since
8852 // a port number is ambiguous without knowing the transport. For example
8853 // different processes could be listening on TCP port 12345 and UDP port 12345.
8854 //
8855 // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer
8856 // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
8857 NetworkTransportKey = attribute.Key("network.transport")
8858
8859 // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
8860 // conventions. It represents the [OSI network layer] or non-OSI equivalent.
8861 //
8862 // Type: Enum
8863 // RequirementLevel: Recommended
8864 // Stability: Stable
8865 //
8866 // Examples: "ipv4", "ipv6"
8867 // Note: The value SHOULD be normalized to lowercase.
8868 //
8869 // [OSI network layer]: https://wikipedia.org/wiki/Network_layer
8870 NetworkTypeKey = attribute.Key("network.type")
8871 )
8872
8873 // NetworkCarrierICC returns an attribute KeyValue conforming to the
8874 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
8875 // alpha-2 2-character country code associated with the mobile carrier network.
8876 func NetworkCarrierICC(val string) attribute.KeyValue {
8877 return NetworkCarrierICCKey.String(val)
8878 }
8879
8880 // NetworkCarrierMCC returns an attribute KeyValue conforming to the
8881 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
8882 // country code.
8883 func NetworkCarrierMCC(val string) attribute.KeyValue {
8884 return NetworkCarrierMCCKey.String(val)
8885 }
8886
8887 // NetworkCarrierMNC returns an attribute KeyValue conforming to the
8888 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
8889 // network code.
8890 func NetworkCarrierMNC(val string) attribute.KeyValue {
8891 return NetworkCarrierMNCKey.String(val)
8892 }
8893
8894 // NetworkCarrierName returns an attribute KeyValue conforming to the
8895 // "network.carrier.name" semantic conventions. It represents the name of the
8896 // mobile carrier.
8897 func NetworkCarrierName(val string) attribute.KeyValue {
8898 return NetworkCarrierNameKey.String(val)
8899 }
8900
8901 // NetworkInterfaceName returns an attribute KeyValue conforming to the
8902 // "network.interface.name" semantic conventions. It represents the network
8903 // interface name.
8904 func NetworkInterfaceName(val string) attribute.KeyValue {
8905 return NetworkInterfaceNameKey.String(val)
8906 }
8907
8908 // NetworkLocalAddress returns an attribute KeyValue conforming to the
8909 // "network.local.address" semantic conventions. It represents the local address
8910 // of the network connection - IP address or Unix domain socket name.
8911 func NetworkLocalAddress(val string) attribute.KeyValue {
8912 return NetworkLocalAddressKey.String(val)
8913 }
8914
8915 // NetworkLocalPort returns an attribute KeyValue conforming to the
8916 // "network.local.port" semantic conventions. It represents the local port number
8917 // of the network connection.
8918 func NetworkLocalPort(val int) attribute.KeyValue {
8919 return NetworkLocalPortKey.Int(val)
8920 }
8921
8922 // NetworkPeerAddress returns an attribute KeyValue conforming to the
8923 // "network.peer.address" semantic conventions. It represents the peer address of
8924 // the network connection - IP address or Unix domain socket name.
8925 func NetworkPeerAddress(val string) attribute.KeyValue {
8926 return NetworkPeerAddressKey.String(val)
8927 }
8928
8929 // NetworkPeerPort returns an attribute KeyValue conforming to the
8930 // "network.peer.port" semantic conventions. It represents the peer port number
8931 // of the network connection.
8932 func NetworkPeerPort(val int) attribute.KeyValue {
8933 return NetworkPeerPortKey.Int(val)
8934 }
8935
8936 // NetworkProtocolName returns an attribute KeyValue conforming to the
8937 // "network.protocol.name" semantic conventions. It represents the
8938 // [OSI application layer] or non-OSI equivalent.
8939 //
8940 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
8941 func NetworkProtocolName(val string) attribute.KeyValue {
8942 return NetworkProtocolNameKey.String(val)
8943 }
8944
8945 // NetworkProtocolVersion returns an attribute KeyValue conforming to the
8946 // "network.protocol.version" semantic conventions. It represents the actual
8947 // version of the protocol used for network communication.
8948 func NetworkProtocolVersion(val string) attribute.KeyValue {
8949 return NetworkProtocolVersionKey.String(val)
8950 }
8951
8952 // Enum values for network.connection.state
8953 var (
8954 // closed
8955 // Stability: development
8956 NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed")
8957 // close_wait
8958 // Stability: development
8959 NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait")
8960 // closing
8961 // Stability: development
8962 NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing")
8963 // established
8964 // Stability: development
8965 NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established")
8966 // fin_wait_1
8967 // Stability: development
8968 NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1")
8969 // fin_wait_2
8970 // Stability: development
8971 NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2")
8972 // last_ack
8973 // Stability: development
8974 NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack")
8975 // listen
8976 // Stability: development
8977 NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen")
8978 // syn_received
8979 // Stability: development
8980 NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received")
8981 // syn_sent
8982 // Stability: development
8983 NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent")
8984 // time_wait
8985 // Stability: development
8986 NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait")
8987 )
8988
8989 // Enum values for network.connection.subtype
8990 var (
8991 // GPRS
8992 // Stability: development
8993 NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
8994 // EDGE
8995 // Stability: development
8996 NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
8997 // UMTS
8998 // Stability: development
8999 NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
9000 // CDMA
9001 // Stability: development
9002 NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
9003 // EVDO Rel. 0
9004 // Stability: development
9005 NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
9006 // EVDO Rev. A
9007 // Stability: development
9008 NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
9009 // CDMA2000 1XRTT
9010 // Stability: development
9011 NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
9012 // HSDPA
9013 // Stability: development
9014 NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
9015 // HSUPA
9016 // Stability: development
9017 NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
9018 // HSPA
9019 // Stability: development
9020 NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
9021 // IDEN
9022 // Stability: development
9023 NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
9024 // EVDO Rev. B
9025 // Stability: development
9026 NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
9027 // LTE
9028 // Stability: development
9029 NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
9030 // EHRPD
9031 // Stability: development
9032 NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
9033 // HSPAP
9034 // Stability: development
9035 NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
9036 // GSM
9037 // Stability: development
9038 NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
9039 // TD-SCDMA
9040 // Stability: development
9041 NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
9042 // IWLAN
9043 // Stability: development
9044 NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
9045 // 5G NR (New Radio)
9046 // Stability: development
9047 NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
9048 // 5G NRNSA (New Radio Non-Standalone)
9049 // Stability: development
9050 NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
9051 // LTE CA
9052 // Stability: development
9053 NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
9054 )
9055
9056 // Enum values for network.connection.type
9057 var (
9058 // wifi
9059 // Stability: development
9060 NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
9061 // wired
9062 // Stability: development
9063 NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
9064 // cell
9065 // Stability: development
9066 NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
9067 // unavailable
9068 // Stability: development
9069 NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
9070 // unknown
9071 // Stability: development
9072 NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
9073 )
9074
9075 // Enum values for network.io.direction
9076 var (
9077 // transmit
9078 // Stability: development
9079 NetworkIODirectionTransmit = NetworkIODirectionKey.String("transmit")
9080 // receive
9081 // Stability: development
9082 NetworkIODirectionReceive = NetworkIODirectionKey.String("receive")
9083 )
9084
9085 // Enum values for network.transport
9086 var (
9087 // TCP
9088 // Stability: stable
9089 NetworkTransportTCP = NetworkTransportKey.String("tcp")
9090 // UDP
9091 // Stability: stable
9092 NetworkTransportUDP = NetworkTransportKey.String("udp")
9093 // Named or anonymous pipe.
9094 // Stability: stable
9095 NetworkTransportPipe = NetworkTransportKey.String("pipe")
9096 // Unix domain socket
9097 // Stability: stable
9098 NetworkTransportUnix = NetworkTransportKey.String("unix")
9099 // QUIC
9100 // Stability: development
9101 NetworkTransportQUIC = NetworkTransportKey.String("quic")
9102 )
9103
9104 // Enum values for network.type
9105 var (
9106 // IPv4
9107 // Stability: stable
9108 NetworkTypeIPv4 = NetworkTypeKey.String("ipv4")
9109 // IPv6
9110 // Stability: stable
9111 NetworkTypeIPv6 = NetworkTypeKey.String("ipv6")
9112 )
9113
9114 // Namespace: oci
9115 const (
9116 // OCIManifestDigestKey is the attribute Key conforming to the
9117 // "oci.manifest.digest" semantic conventions. It represents the digest of the
9118 // OCI image manifest. For container images specifically is the digest by which
9119 // the container image is known.
9120 //
9121 // Type: string
9122 // RequirementLevel: Recommended
9123 // Stability: Development
9124 //
9125 // Examples:
9126 // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
9127 // Note: Follows [OCI Image Manifest Specification], and specifically the
9128 // [Digest property].
9129 // An example can be found in [Example Image Manifest].
9130 //
9131 // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
9132 // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
9133 // [Example Image Manifest]: https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest
9134 OCIManifestDigestKey = attribute.Key("oci.manifest.digest")
9135 )
9136
9137 // OCIManifestDigest returns an attribute KeyValue conforming to the
9138 // "oci.manifest.digest" semantic conventions. It represents the digest of the
9139 // OCI image manifest. For container images specifically is the digest by which
9140 // the container image is known.
9141 func OCIManifestDigest(val string) attribute.KeyValue {
9142 return OCIManifestDigestKey.String(val)
9143 }
9144
9145 // Namespace: opentracing
9146 const (
9147 // OpenTracingRefTypeKey is the attribute Key conforming to the
9148 // "opentracing.ref_type" semantic conventions. It represents the parent-child
9149 // Reference type.
9150 //
9151 // Type: Enum
9152 // RequirementLevel: Recommended
9153 // Stability: Development
9154 //
9155 // Examples:
9156 // Note: The causal relationship between a child Span and a parent Span.
9157 OpenTracingRefTypeKey = attribute.Key("opentracing.ref_type")
9158 )
9159
9160 // Enum values for opentracing.ref_type
9161 var (
9162 // The parent Span depends on the child Span in some capacity
9163 // Stability: development
9164 OpenTracingRefTypeChildOf = OpenTracingRefTypeKey.String("child_of")
9165 // The parent Span doesn't depend in any way on the result of the child Span
9166 // Stability: development
9167 OpenTracingRefTypeFollowsFrom = OpenTracingRefTypeKey.String("follows_from")
9168 )
9169
9170 // Namespace: os
9171 const (
9172 // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
9173 // conventions. It represents the unique identifier for a particular build or
9174 // compilation of the operating system.
9175 //
9176 // Type: string
9177 // RequirementLevel: Recommended
9178 // Stability: Development
9179 //
9180 // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
9181 OSBuildIDKey = attribute.Key("os.build_id")
9182
9183 // OSDescriptionKey is the attribute Key conforming to the "os.description"
9184 // semantic conventions. It represents the human readable (not intended to be
9185 // parsed) OS version information, like e.g. reported by `ver` or
9186 // `lsb_release -a` commands.
9187 //
9188 // Type: string
9189 // RequirementLevel: Recommended
9190 // Stability: Development
9191 //
9192 // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
9193 OSDescriptionKey = attribute.Key("os.description")
9194
9195 // OSNameKey is the attribute Key conforming to the "os.name" semantic
9196 // conventions. It represents the human readable operating system name.
9197 //
9198 // Type: string
9199 // RequirementLevel: Recommended
9200 // Stability: Development
9201 //
9202 // Examples: "iOS", "Android", "Ubuntu"
9203 OSNameKey = attribute.Key("os.name")
9204
9205 // OSTypeKey is the attribute Key conforming to the "os.type" semantic
9206 // conventions. It represents the operating system type.
9207 //
9208 // Type: Enum
9209 // RequirementLevel: Recommended
9210 // Stability: Development
9211 //
9212 // Examples:
9213 OSTypeKey = attribute.Key("os.type")
9214
9215 // OSVersionKey is the attribute Key conforming to the "os.version" semantic
9216 // conventions. It represents the version string of the operating system as
9217 // defined in [Version Attributes].
9218 //
9219 // Type: string
9220 // RequirementLevel: Recommended
9221 // Stability: Development
9222 //
9223 // Examples: "14.2.1", "18.04.1"
9224 //
9225 // [Version Attributes]: /docs/resource/README.md#version-attributes
9226 OSVersionKey = attribute.Key("os.version")
9227 )
9228
9229 // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
9230 // semantic conventions. It represents the unique identifier for a particular
9231 // build or compilation of the operating system.
9232 func OSBuildID(val string) attribute.KeyValue {
9233 return OSBuildIDKey.String(val)
9234 }
9235
9236 // OSDescription returns an attribute KeyValue conforming to the "os.description"
9237 // semantic conventions. It represents the human readable (not intended to be
9238 // parsed) OS version information, like e.g. reported by `ver` or
9239 // `lsb_release -a` commands.
9240 func OSDescription(val string) attribute.KeyValue {
9241 return OSDescriptionKey.String(val)
9242 }
9243
9244 // OSName returns an attribute KeyValue conforming to the "os.name" semantic
9245 // conventions. It represents the human readable operating system name.
9246 func OSName(val string) attribute.KeyValue {
9247 return OSNameKey.String(val)
9248 }
9249
9250 // OSVersion returns an attribute KeyValue conforming to the "os.version"
9251 // semantic conventions. It represents the version string of the operating system
9252 // as defined in [Version Attributes].
9253 //
9254 // [Version Attributes]: /docs/resource/README.md#version-attributes
9255 func OSVersion(val string) attribute.KeyValue {
9256 return OSVersionKey.String(val)
9257 }
9258
9259 // Enum values for os.type
9260 var (
9261 // Microsoft Windows
9262 // Stability: development
9263 OSTypeWindows = OSTypeKey.String("windows")
9264 // Linux
9265 // Stability: development
9266 OSTypeLinux = OSTypeKey.String("linux")
9267 // Apple Darwin
9268 // Stability: development
9269 OSTypeDarwin = OSTypeKey.String("darwin")
9270 // FreeBSD
9271 // Stability: development
9272 OSTypeFreeBSD = OSTypeKey.String("freebsd")
9273 // NetBSD
9274 // Stability: development
9275 OSTypeNetBSD = OSTypeKey.String("netbsd")
9276 // OpenBSD
9277 // Stability: development
9278 OSTypeOpenBSD = OSTypeKey.String("openbsd")
9279 // DragonFly BSD
9280 // Stability: development
9281 OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
9282 // HP-UX (Hewlett Packard Unix)
9283 // Stability: development
9284 OSTypeHPUX = OSTypeKey.String("hpux")
9285 // AIX (Advanced Interactive eXecutive)
9286 // Stability: development
9287 OSTypeAIX = OSTypeKey.String("aix")
9288 // SunOS, Oracle Solaris
9289 // Stability: development
9290 OSTypeSolaris = OSTypeKey.String("solaris")
9291 // IBM z/OS
9292 // Stability: development
9293 OSTypeZOS = OSTypeKey.String("z_os")
9294 )
9295
9296 // Namespace: otel
9297 const (
9298 // OTelComponentNameKey is the attribute Key conforming to the
9299 // "otel.component.name" semantic conventions. It represents a name uniquely
9300 // identifying the instance of the OpenTelemetry component within its containing
9301 // SDK instance.
9302 //
9303 // Type: string
9304 // RequirementLevel: Recommended
9305 // Stability: Development
9306 //
9307 // Examples: "otlp_grpc_span_exporter/0", "custom-name"
9308 // Note: Implementations SHOULD ensure a low cardinality for this attribute,
9309 // even across application or SDK restarts.
9310 // E.g. implementations MUST NOT use UUIDs as values for this attribute.
9311 //
9312 // Implementations MAY achieve these goals by following a
9313 // `<otel.component.type>/<instance-counter>` pattern, e.g.
9314 // `batching_span_processor/0`.
9315 // Hereby `otel.component.type` refers to the corresponding attribute value of
9316 // the component.
9317 //
9318 // The value of `instance-counter` MAY be automatically assigned by the
9319 // component and uniqueness within the enclosing SDK instance MUST be
9320 // guaranteed.
9321 // For example, `<instance-counter>` MAY be implemented by using a monotonically
9322 // increasing counter (starting with `0`), which is incremented every time an
9323 // instance of the given component type is started.
9324 //
9325 // With this implementation, for example the first Batching Span Processor would
9326 // have `batching_span_processor/0`
9327 // as `otel.component.name`, the second one `batching_span_processor/1` and so
9328 // on.
9329 // These values will therefore be reused in the case of an application restart.
9330 OTelComponentNameKey = attribute.Key("otel.component.name")
9331
9332 // OTelComponentTypeKey is the attribute Key conforming to the
9333 // "otel.component.type" semantic conventions. It represents a name identifying
9334 // the type of the OpenTelemetry component.
9335 //
9336 // Type: Enum
9337 // RequirementLevel: Recommended
9338 // Stability: Development
9339 //
9340 // Examples: "batching_span_processor", "com.example.MySpanExporter"
9341 // Note: If none of the standardized values apply, implementations SHOULD use
9342 // the language-defined name of the type.
9343 // E.g. for Java the fully qualified classname SHOULD be used in this case.
9344 OTelComponentTypeKey = attribute.Key("otel.component.type")
9345
9346 // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
9347 // semantic conventions. It represents the name of the instrumentation scope - (
9348 // `InstrumentationScope.Name` in OTLP).
9349 //
9350 // Type: string
9351 // RequirementLevel: Recommended
9352 // Stability: Stable
9353 //
9354 // Examples: "io.opentelemetry.contrib.mongodb"
9355 OTelScopeNameKey = attribute.Key("otel.scope.name")
9356
9357 // OTelScopeVersionKey is the attribute Key conforming to the
9358 // "otel.scope.version" semantic conventions. It represents the version of the
9359 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
9360 //
9361 // Type: string
9362 // RequirementLevel: Recommended
9363 // Stability: Stable
9364 //
9365 // Examples: "1.0.0"
9366 OTelScopeVersionKey = attribute.Key("otel.scope.version")
9367
9368 // OTelSpanSamplingResultKey is the attribute Key conforming to the
9369 // "otel.span.sampling_result" semantic conventions. It represents the result
9370 // value of the sampler for this span.
9371 //
9372 // Type: Enum
9373 // RequirementLevel: Recommended
9374 // Stability: Development
9375 //
9376 // Examples:
9377 OTelSpanSamplingResultKey = attribute.Key("otel.span.sampling_result")
9378
9379 // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
9380 // semantic conventions. It represents the name of the code, either "OK" or
9381 // "ERROR". MUST NOT be set if the status code is UNSET.
9382 //
9383 // Type: Enum
9384 // RequirementLevel: Recommended
9385 // Stability: Stable
9386 //
9387 // Examples:
9388 OTelStatusCodeKey = attribute.Key("otel.status_code")
9389
9390 // OTelStatusDescriptionKey is the attribute Key conforming to the
9391 // "otel.status_description" semantic conventions. It represents the description
9392 // of the Status if it has a value, otherwise not set.
9393 //
9394 // Type: string
9395 // RequirementLevel: Recommended
9396 // Stability: Stable
9397 //
9398 // Examples: "resource not found"
9399 OTelStatusDescriptionKey = attribute.Key("otel.status_description")
9400 )
9401
9402 // OTelComponentName returns an attribute KeyValue conforming to the
9403 // "otel.component.name" semantic conventions. It represents a name uniquely
9404 // identifying the instance of the OpenTelemetry component within its containing
9405 // SDK instance.
9406 func OTelComponentName(val string) attribute.KeyValue {
9407 return OTelComponentNameKey.String(val)
9408 }
9409
9410 // OTelScopeName returns an attribute KeyValue conforming to the
9411 // "otel.scope.name" semantic conventions. It represents the name of the
9412 // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
9413 func OTelScopeName(val string) attribute.KeyValue {
9414 return OTelScopeNameKey.String(val)
9415 }
9416
9417 // OTelScopeVersion returns an attribute KeyValue conforming to the
9418 // "otel.scope.version" semantic conventions. It represents the version of the
9419 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
9420 func OTelScopeVersion(val string) attribute.KeyValue {
9421 return OTelScopeVersionKey.String(val)
9422 }
9423
9424 // OTelStatusDescription returns an attribute KeyValue conforming to the
9425 // "otel.status_description" semantic conventions. It represents the description
9426 // of the Status if it has a value, otherwise not set.
9427 func OTelStatusDescription(val string) attribute.KeyValue {
9428 return OTelStatusDescriptionKey.String(val)
9429 }
9430
9431 // Enum values for otel.component.type
9432 var (
9433 // The builtin SDK Batching Span Processor
9434 //
9435 // Stability: development
9436 OTelComponentTypeBatchingSpanProcessor = OTelComponentTypeKey.String("batching_span_processor")
9437 // The builtin SDK Simple Span Processor
9438 //
9439 // Stability: development
9440 OTelComponentTypeSimpleSpanProcessor = OTelComponentTypeKey.String("simple_span_processor")
9441 // The builtin SDK Batching LogRecord Processor
9442 //
9443 // Stability: development
9444 OTelComponentTypeBatchingLogProcessor = OTelComponentTypeKey.String("batching_log_processor")
9445 // The builtin SDK Simple LogRecord Processor
9446 //
9447 // Stability: development
9448 OTelComponentTypeSimpleLogProcessor = OTelComponentTypeKey.String("simple_log_processor")
9449 // OTLP span exporter over gRPC with protobuf serialization
9450 //
9451 // Stability: development
9452 OTelComponentTypeOtlpGRPCSpanExporter = OTelComponentTypeKey.String("otlp_grpc_span_exporter")
9453 // OTLP span exporter over HTTP with protobuf serialization
9454 //
9455 // Stability: development
9456 OTelComponentTypeOtlpHTTPSpanExporter = OTelComponentTypeKey.String("otlp_http_span_exporter")
9457 // OTLP span exporter over HTTP with JSON serialization
9458 //
9459 // Stability: development
9460 OTelComponentTypeOtlpHTTPJSONSpanExporter = OTelComponentTypeKey.String("otlp_http_json_span_exporter")
9461 // OTLP LogRecord exporter over gRPC with protobuf serialization
9462 //
9463 // Stability: development
9464 OTelComponentTypeOtlpGRPCLogExporter = OTelComponentTypeKey.String("otlp_grpc_log_exporter")
9465 // OTLP LogRecord exporter over HTTP with protobuf serialization
9466 //
9467 // Stability: development
9468 OTelComponentTypeOtlpHTTPLogExporter = OTelComponentTypeKey.String("otlp_http_log_exporter")
9469 // OTLP LogRecord exporter over HTTP with JSON serialization
9470 //
9471 // Stability: development
9472 OTelComponentTypeOtlpHTTPJSONLogExporter = OTelComponentTypeKey.String("otlp_http_json_log_exporter")
9473 )
9474
9475 // Enum values for otel.span.sampling_result
9476 var (
9477 // The span is not sampled and not recording
9478 // Stability: development
9479 OTelSpanSamplingResultDrop = OTelSpanSamplingResultKey.String("DROP")
9480 // The span is not sampled, but recording
9481 // Stability: development
9482 OTelSpanSamplingResultRecordOnly = OTelSpanSamplingResultKey.String("RECORD_ONLY")
9483 // The span is sampled and recording
9484 // Stability: development
9485 OTelSpanSamplingResultRecordAndSample = OTelSpanSamplingResultKey.String("RECORD_AND_SAMPLE")
9486 )
9487
9488 // Enum values for otel.status_code
9489 var (
9490 // The operation has been validated by an Application developer or Operator to
9491 // have completed successfully.
9492 // Stability: stable
9493 OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
9494 // The operation contains an error.
9495 // Stability: stable
9496 OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
9497 )
9498
9499 // Namespace: peer
9500 const (
9501 // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic
9502 // conventions. It represents the [`service.name`] of the remote service. SHOULD
9503 // be equal to the actual `service.name` resource attribute of the remote
9504 // service if any.
9505 //
9506 // Type: string
9507 // RequirementLevel: Recommended
9508 // Stability: Development
9509 //
9510 // Examples: AuthTokenCache
9511 //
9512 // [`service.name`]: /docs/resource/README.md#service
9513 PeerServiceKey = attribute.Key("peer.service")
9514 )
9515
9516 // PeerService returns an attribute KeyValue conforming to the "peer.service"
9517 // semantic conventions. It represents the [`service.name`] of the remote
9518 // service. SHOULD be equal to the actual `service.name` resource attribute of
9519 // the remote service if any.
9520 //
9521 // [`service.name`]: /docs/resource/README.md#service
9522 func PeerService(val string) attribute.KeyValue {
9523 return PeerServiceKey.String(val)
9524 }
9525
9526 // Namespace: process
9527 const (
9528 // ProcessArgsCountKey is the attribute Key conforming to the
9529 // "process.args_count" semantic conventions. It represents the length of the
9530 // process.command_args array.
9531 //
9532 // Type: int
9533 // RequirementLevel: Recommended
9534 // Stability: Development
9535 //
9536 // Examples: 4
9537 // Note: This field can be useful for querying or performing bucket analysis on
9538 // how many arguments were provided to start a process. More arguments may be an
9539 // indication of suspicious activity.
9540 ProcessArgsCountKey = attribute.Key("process.args_count")
9541
9542 // ProcessCommandKey is the attribute Key conforming to the "process.command"
9543 // semantic conventions. It represents the command used to launch the process
9544 // (i.e. the command name). On Linux based systems, can be set to the zeroth
9545 // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
9546 // extracted from `GetCommandLineW`.
9547 //
9548 // Type: string
9549 // RequirementLevel: Recommended
9550 // Stability: Development
9551 //
9552 // Examples: "cmd/otelcol"
9553 ProcessCommandKey = attribute.Key("process.command")
9554
9555 // ProcessCommandArgsKey is the attribute Key conforming to the
9556 // "process.command_args" semantic conventions. It represents the all the
9557 // command arguments (including the command/executable itself) as received by
9558 // the process. On Linux-based systems (and some other Unixoid systems
9559 // supporting procfs), can be set according to the list of null-delimited
9560 // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
9561 // would be the full argv vector passed to `main`.
9562 //
9563 // Type: string[]
9564 // RequirementLevel: Recommended
9565 // Stability: Development
9566 //
9567 // Examples: "cmd/otecol", "--config=config.yaml"
9568 ProcessCommandArgsKey = attribute.Key("process.command_args")
9569
9570 // ProcessCommandLineKey is the attribute Key conforming to the
9571 // "process.command_line" semantic conventions. It represents the full command
9572 // used to launch the process as a single string representing the full command.
9573 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
9574 // you have to assemble it just for monitoring; use `process.command_args`
9575 // instead.
9576 //
9577 // Type: string
9578 // RequirementLevel: Recommended
9579 // Stability: Development
9580 //
9581 // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
9582 ProcessCommandLineKey = attribute.Key("process.command_line")
9583
9584 // ProcessContextSwitchTypeKey is the attribute Key conforming to the
9585 // "process.context_switch_type" semantic conventions. It represents the
9586 // specifies whether the context switches for this data point were voluntary or
9587 // involuntary.
9588 //
9589 // Type: Enum
9590 // RequirementLevel: Recommended
9591 // Stability: Development
9592 //
9593 // Examples:
9594 ProcessContextSwitchTypeKey = attribute.Key("process.context_switch_type")
9595
9596 // ProcessCreationTimeKey is the attribute Key conforming to the
9597 // "process.creation.time" semantic conventions. It represents the date and time
9598 // the process was created, in ISO 8601 format.
9599 //
9600 // Type: string
9601 // RequirementLevel: Recommended
9602 // Stability: Development
9603 //
9604 // Examples: "2023-11-21T09:25:34.853Z"
9605 ProcessCreationTimeKey = attribute.Key("process.creation.time")
9606
9607 // ProcessExecutableBuildIDGNUKey is the attribute Key conforming to the
9608 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
9609 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
9610 //
9611 // Type: string
9612 // RequirementLevel: Recommended
9613 // Stability: Development
9614 //
9615 // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
9616 ProcessExecutableBuildIDGNUKey = attribute.Key("process.executable.build_id.gnu")
9617
9618 // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the
9619 // "process.executable.build_id.go" semantic conventions. It represents the Go
9620 // build ID as retrieved by `go tool buildid <go executable>`.
9621 //
9622 // Type: string
9623 // RequirementLevel: Recommended
9624 // Stability: Development
9625 //
9626 // Examples:
9627 // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
9628 ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
9629
9630 // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the
9631 // "process.executable.build_id.htlhash" semantic conventions. It represents the
9632 // profiling specific build ID for executables. See the OTel specification for
9633 // Profiles for more information.
9634 //
9635 // Type: string
9636 // RequirementLevel: Recommended
9637 // Stability: Development
9638 //
9639 // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
9640 ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash")
9641
9642 // ProcessExecutableNameKey is the attribute Key conforming to the
9643 // "process.executable.name" semantic conventions. It represents the name of the
9644 // process executable. On Linux based systems, this SHOULD be set to the base
9645 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to
9646 // the base name of `GetProcessImageFileNameW`.
9647 //
9648 // Type: string
9649 // RequirementLevel: Recommended
9650 // Stability: Development
9651 //
9652 // Examples: "otelcol"
9653 ProcessExecutableNameKey = attribute.Key("process.executable.name")
9654
9655 // ProcessExecutablePathKey is the attribute Key conforming to the
9656 // "process.executable.path" semantic conventions. It represents the full path
9657 // to the process executable. On Linux based systems, can be set to the target
9658 // of `proc/[pid]/exe`. On Windows, can be set to the result of
9659 // `GetProcessImageFileNameW`.
9660 //
9661 // Type: string
9662 // RequirementLevel: Recommended
9663 // Stability: Development
9664 //
9665 // Examples: "/usr/bin/cmd/otelcol"
9666 ProcessExecutablePathKey = attribute.Key("process.executable.path")
9667
9668 // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
9669 // semantic conventions. It represents the exit code of the process.
9670 //
9671 // Type: int
9672 // RequirementLevel: Recommended
9673 // Stability: Development
9674 //
9675 // Examples: 127
9676 ProcessExitCodeKey = attribute.Key("process.exit.code")
9677
9678 // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
9679 // semantic conventions. It represents the date and time the process exited, in
9680 // ISO 8601 format.
9681 //
9682 // Type: string
9683 // RequirementLevel: Recommended
9684 // Stability: Development
9685 //
9686 // Examples: "2023-11-21T09:26:12.315Z"
9687 ProcessExitTimeKey = attribute.Key("process.exit.time")
9688
9689 // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
9690 // "process.group_leader.pid" semantic conventions. It represents the PID of the
9691 // process's group leader. This is also the process group ID (PGID) of the
9692 // process.
9693 //
9694 // Type: int
9695 // RequirementLevel: Recommended
9696 // Stability: Development
9697 //
9698 // Examples: 23
9699 ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
9700
9701 // ProcessInteractiveKey is the attribute Key conforming to the
9702 // "process.interactive" semantic conventions. It represents the whether the
9703 // process is connected to an interactive shell.
9704 //
9705 // Type: boolean
9706 // RequirementLevel: Recommended
9707 // Stability: Development
9708 //
9709 // Examples:
9710 ProcessInteractiveKey = attribute.Key("process.interactive")
9711
9712 // ProcessLinuxCgroupKey is the attribute Key conforming to the
9713 // "process.linux.cgroup" semantic conventions. It represents the control group
9714 // associated with the process.
9715 //
9716 // Type: string
9717 // RequirementLevel: Recommended
9718 // Stability: Development
9719 //
9720 // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope",
9721 // "0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"
9722 // Note: Control groups (cgroups) are a kernel feature used to organize and
9723 // manage process resources. This attribute provides the path(s) to the
9724 // cgroup(s) associated with the process, which should match the contents of the
9725 // [/proc/[PID]/cgroup] file.
9726 //
9727 // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html
9728 ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup")
9729
9730 // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
9731 // semantic conventions. It represents the username of the user that owns the
9732 // process.
9733 //
9734 // Type: string
9735 // RequirementLevel: Recommended
9736 // Stability: Development
9737 //
9738 // Examples: "root"
9739 ProcessOwnerKey = attribute.Key("process.owner")
9740
9741 // ProcessPagingFaultTypeKey is the attribute Key conforming to the
9742 // "process.paging.fault_type" semantic conventions. It represents the type of
9743 // page fault for this data point. Type `major` is for major/hard page faults,
9744 // and `minor` is for minor/soft page faults.
9745 //
9746 // Type: Enum
9747 // RequirementLevel: Recommended
9748 // Stability: Development
9749 //
9750 // Examples:
9751 ProcessPagingFaultTypeKey = attribute.Key("process.paging.fault_type")
9752
9753 // ProcessParentPIDKey is the attribute Key conforming to the
9754 // "process.parent_pid" semantic conventions. It represents the parent Process
9755 // identifier (PPID).
9756 //
9757 // Type: int
9758 // RequirementLevel: Recommended
9759 // Stability: Development
9760 //
9761 // Examples: 111
9762 ProcessParentPIDKey = attribute.Key("process.parent_pid")
9763
9764 // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
9765 // conventions. It represents the process identifier (PID).
9766 //
9767 // Type: int
9768 // RequirementLevel: Recommended
9769 // Stability: Development
9770 //
9771 // Examples: 1234
9772 ProcessPIDKey = attribute.Key("process.pid")
9773
9774 // ProcessRealUserIDKey is the attribute Key conforming to the
9775 // "process.real_user.id" semantic conventions. It represents the real user ID
9776 // (RUID) of the process.
9777 //
9778 // Type: int
9779 // RequirementLevel: Recommended
9780 // Stability: Development
9781 //
9782 // Examples: 1000
9783 ProcessRealUserIDKey = attribute.Key("process.real_user.id")
9784
9785 // ProcessRealUserNameKey is the attribute Key conforming to the
9786 // "process.real_user.name" semantic conventions. It represents the username of
9787 // the real user of the process.
9788 //
9789 // Type: string
9790 // RequirementLevel: Recommended
9791 // Stability: Development
9792 //
9793 // Examples: "operator"
9794 ProcessRealUserNameKey = attribute.Key("process.real_user.name")
9795
9796 // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
9797 // "process.runtime.description" semantic conventions. It represents an
9798 // additional description about the runtime of the process, for example a
9799 // specific vendor customization of the runtime environment.
9800 //
9801 // Type: string
9802 // RequirementLevel: Recommended
9803 // Stability: Development
9804 //
9805 // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
9806 ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
9807
9808 // ProcessRuntimeNameKey is the attribute Key conforming to the
9809 // "process.runtime.name" semantic conventions. It represents the name of the
9810 // runtime of this process.
9811 //
9812 // Type: string
9813 // RequirementLevel: Recommended
9814 // Stability: Development
9815 //
9816 // Examples: "OpenJDK Runtime Environment"
9817 ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
9818
9819 // ProcessRuntimeVersionKey is the attribute Key conforming to the
9820 // "process.runtime.version" semantic conventions. It represents the version of
9821 // the runtime of this process, as returned by the runtime without modification.
9822 //
9823 // Type: string
9824 // RequirementLevel: Recommended
9825 // Stability: Development
9826 //
9827 // Examples: 14.0.2
9828 ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
9829
9830 // ProcessSavedUserIDKey is the attribute Key conforming to the
9831 // "process.saved_user.id" semantic conventions. It represents the saved user ID
9832 // (SUID) of the process.
9833 //
9834 // Type: int
9835 // RequirementLevel: Recommended
9836 // Stability: Development
9837 //
9838 // Examples: 1002
9839 ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
9840
9841 // ProcessSavedUserNameKey is the attribute Key conforming to the
9842 // "process.saved_user.name" semantic conventions. It represents the username of
9843 // the saved user.
9844 //
9845 // Type: string
9846 // RequirementLevel: Recommended
9847 // Stability: Development
9848 //
9849 // Examples: "operator"
9850 ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
9851
9852 // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
9853 // "process.session_leader.pid" semantic conventions. It represents the PID of
9854 // the process's session leader. This is also the session ID (SID) of the
9855 // process.
9856 //
9857 // Type: int
9858 // RequirementLevel: Recommended
9859 // Stability: Development
9860 //
9861 // Examples: 14
9862 ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
9863
9864 // ProcessTitleKey is the attribute Key conforming to the "process.title"
9865 // semantic conventions. It represents the process title (proctitle).
9866 //
9867 // Type: string
9868 // RequirementLevel: Recommended
9869 // Stability: Development
9870 //
9871 // Examples: "cat /etc/hostname", "xfce4-session", "bash"
9872 // Note: In many Unix-like systems, process title (proctitle), is the string
9873 // that represents the name or command line of a running process, displayed by
9874 // system monitoring tools like ps, top, and htop.
9875 ProcessTitleKey = attribute.Key("process.title")
9876
9877 // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
9878 // semantic conventions. It represents the effective user ID (EUID) of the
9879 // process.
9880 //
9881 // Type: int
9882 // RequirementLevel: Recommended
9883 // Stability: Development
9884 //
9885 // Examples: 1001
9886 ProcessUserIDKey = attribute.Key("process.user.id")
9887
9888 // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
9889 // semantic conventions. It represents the username of the effective user of the
9890 // process.
9891 //
9892 // Type: string
9893 // RequirementLevel: Recommended
9894 // Stability: Development
9895 //
9896 // Examples: "root"
9897 ProcessUserNameKey = attribute.Key("process.user.name")
9898
9899 // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
9900 // conventions. It represents the virtual process identifier.
9901 //
9902 // Type: int
9903 // RequirementLevel: Recommended
9904 // Stability: Development
9905 //
9906 // Examples: 12
9907 // Note: The process ID within a PID namespace. This is not necessarily unique
9908 // across all processes on the host but it is unique within the process
9909 // namespace that the process exists within.
9910 ProcessVpidKey = attribute.Key("process.vpid")
9911
9912 // ProcessWorkingDirectoryKey is the attribute Key conforming to the
9913 // "process.working_directory" semantic conventions. It represents the working
9914 // directory of the process.
9915 //
9916 // Type: string
9917 // RequirementLevel: Recommended
9918 // Stability: Development
9919 //
9920 // Examples: "/root"
9921 ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
9922 )
9923
9924 // ProcessArgsCount returns an attribute KeyValue conforming to the
9925 // "process.args_count" semantic conventions. It represents the length of the
9926 // process.command_args array.
9927 func ProcessArgsCount(val int) attribute.KeyValue {
9928 return ProcessArgsCountKey.Int(val)
9929 }
9930
9931 // ProcessCommand returns an attribute KeyValue conforming to the
9932 // "process.command" semantic conventions. It represents the command used to
9933 // launch the process (i.e. the command name). On Linux based systems, can be set
9934 // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
9935 // first parameter extracted from `GetCommandLineW`.
9936 func ProcessCommand(val string) attribute.KeyValue {
9937 return ProcessCommandKey.String(val)
9938 }
9939
9940 // ProcessCommandArgs returns an attribute KeyValue conforming to the
9941 // "process.command_args" semantic conventions. It represents the all the command
9942 // arguments (including the command/executable itself) as received by the
9943 // process. On Linux-based systems (and some other Unixoid systems supporting
9944 // procfs), can be set according to the list of null-delimited strings extracted
9945 // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
9946 // argv vector passed to `main`.
9947 func ProcessCommandArgs(val ...string) attribute.KeyValue {
9948 return ProcessCommandArgsKey.StringSlice(val)
9949 }
9950
9951 // ProcessCommandLine returns an attribute KeyValue conforming to the
9952 // "process.command_line" semantic conventions. It represents the full command
9953 // used to launch the process as a single string representing the full command.
9954 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
9955 // you have to assemble it just for monitoring; use `process.command_args`
9956 // instead.
9957 func ProcessCommandLine(val string) attribute.KeyValue {
9958 return ProcessCommandLineKey.String(val)
9959 }
9960
9961 // ProcessCreationTime returns an attribute KeyValue conforming to the
9962 // "process.creation.time" semantic conventions. It represents the date and time
9963 // the process was created, in ISO 8601 format.
9964 func ProcessCreationTime(val string) attribute.KeyValue {
9965 return ProcessCreationTimeKey.String(val)
9966 }
9967
9968 // ProcessExecutableBuildIDGNU returns an attribute KeyValue conforming to the
9969 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
9970 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
9971 func ProcessExecutableBuildIDGNU(val string) attribute.KeyValue {
9972 return ProcessExecutableBuildIDGNUKey.String(val)
9973 }
9974
9975 // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the
9976 // "process.executable.build_id.go" semantic conventions. It represents the Go
9977 // build ID as retrieved by `go tool buildid <go executable>`.
9978 func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
9979 return ProcessExecutableBuildIDGoKey.String(val)
9980 }
9981
9982 // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to
9983 // the "process.executable.build_id.htlhash" semantic conventions. It represents
9984 // the profiling specific build ID for executables. See the OTel specification
9985 // for Profiles for more information.
9986 func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue {
9987 return ProcessExecutableBuildIDHtlhashKey.String(val)
9988 }
9989
9990 // ProcessExecutableName returns an attribute KeyValue conforming to the
9991 // "process.executable.name" semantic conventions. It represents the name of the
9992 // process executable. On Linux based systems, this SHOULD be set to the base
9993 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the
9994 // base name of `GetProcessImageFileNameW`.
9995 func ProcessExecutableName(val string) attribute.KeyValue {
9996 return ProcessExecutableNameKey.String(val)
9997 }
9998
9999 // ProcessExecutablePath returns an attribute KeyValue conforming to the
10000 // "process.executable.path" semantic conventions. It represents the full path to
10001 // the process executable. On Linux based systems, can be set to the target of
10002 // `proc/[pid]/exe`. On Windows, can be set to the result of
10003 // `GetProcessImageFileNameW`.
10004 func ProcessExecutablePath(val string) attribute.KeyValue {
10005 return ProcessExecutablePathKey.String(val)
10006 }
10007
10008 // ProcessExitCode returns an attribute KeyValue conforming to the
10009 // "process.exit.code" semantic conventions. It represents the exit code of the
10010 // process.
10011 func ProcessExitCode(val int) attribute.KeyValue {
10012 return ProcessExitCodeKey.Int(val)
10013 }
10014
10015 // ProcessExitTime returns an attribute KeyValue conforming to the
10016 // "process.exit.time" semantic conventions. It represents the date and time the
10017 // process exited, in ISO 8601 format.
10018 func ProcessExitTime(val string) attribute.KeyValue {
10019 return ProcessExitTimeKey.String(val)
10020 }
10021
10022 // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
10023 // "process.group_leader.pid" semantic conventions. It represents the PID of the
10024 // process's group leader. This is also the process group ID (PGID) of the
10025 // process.
10026 func ProcessGroupLeaderPID(val int) attribute.KeyValue {
10027 return ProcessGroupLeaderPIDKey.Int(val)
10028 }
10029
10030 // ProcessInteractive returns an attribute KeyValue conforming to the
10031 // "process.interactive" semantic conventions. It represents the whether the
10032 // process is connected to an interactive shell.
10033 func ProcessInteractive(val bool) attribute.KeyValue {
10034 return ProcessInteractiveKey.Bool(val)
10035 }
10036
10037 // ProcessLinuxCgroup returns an attribute KeyValue conforming to the
10038 // "process.linux.cgroup" semantic conventions. It represents the control group
10039 // associated with the process.
10040 func ProcessLinuxCgroup(val string) attribute.KeyValue {
10041 return ProcessLinuxCgroupKey.String(val)
10042 }
10043
10044 // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
10045 // semantic conventions. It represents the username of the user that owns the
10046 // process.
10047 func ProcessOwner(val string) attribute.KeyValue {
10048 return ProcessOwnerKey.String(val)
10049 }
10050
10051 // ProcessParentPID returns an attribute KeyValue conforming to the
10052 // "process.parent_pid" semantic conventions. It represents the parent Process
10053 // identifier (PPID).
10054 func ProcessParentPID(val int) attribute.KeyValue {
10055 return ProcessParentPIDKey.Int(val)
10056 }
10057
10058 // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
10059 // semantic conventions. It represents the process identifier (PID).
10060 func ProcessPID(val int) attribute.KeyValue {
10061 return ProcessPIDKey.Int(val)
10062 }
10063
10064 // ProcessRealUserID returns an attribute KeyValue conforming to the
10065 // "process.real_user.id" semantic conventions. It represents the real user ID
10066 // (RUID) of the process.
10067 func ProcessRealUserID(val int) attribute.KeyValue {
10068 return ProcessRealUserIDKey.Int(val)
10069 }
10070
10071 // ProcessRealUserName returns an attribute KeyValue conforming to the
10072 // "process.real_user.name" semantic conventions. It represents the username of
10073 // the real user of the process.
10074 func ProcessRealUserName(val string) attribute.KeyValue {
10075 return ProcessRealUserNameKey.String(val)
10076 }
10077
10078 // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
10079 // "process.runtime.description" semantic conventions. It represents an
10080 // additional description about the runtime of the process, for example a
10081 // specific vendor customization of the runtime environment.
10082 func ProcessRuntimeDescription(val string) attribute.KeyValue {
10083 return ProcessRuntimeDescriptionKey.String(val)
10084 }
10085
10086 // ProcessRuntimeName returns an attribute KeyValue conforming to the
10087 // "process.runtime.name" semantic conventions. It represents the name of the
10088 // runtime of this process.
10089 func ProcessRuntimeName(val string) attribute.KeyValue {
10090 return ProcessRuntimeNameKey.String(val)
10091 }
10092
10093 // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
10094 // "process.runtime.version" semantic conventions. It represents the version of
10095 // the runtime of this process, as returned by the runtime without modification.
10096 func ProcessRuntimeVersion(val string) attribute.KeyValue {
10097 return ProcessRuntimeVersionKey.String(val)
10098 }
10099
10100 // ProcessSavedUserID returns an attribute KeyValue conforming to the
10101 // "process.saved_user.id" semantic conventions. It represents the saved user ID
10102 // (SUID) of the process.
10103 func ProcessSavedUserID(val int) attribute.KeyValue {
10104 return ProcessSavedUserIDKey.Int(val)
10105 }
10106
10107 // ProcessSavedUserName returns an attribute KeyValue conforming to the
10108 // "process.saved_user.name" semantic conventions. It represents the username of
10109 // the saved user.
10110 func ProcessSavedUserName(val string) attribute.KeyValue {
10111 return ProcessSavedUserNameKey.String(val)
10112 }
10113
10114 // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
10115 // "process.session_leader.pid" semantic conventions. It represents the PID of
10116 // the process's session leader. This is also the session ID (SID) of the
10117 // process.
10118 func ProcessSessionLeaderPID(val int) attribute.KeyValue {
10119 return ProcessSessionLeaderPIDKey.Int(val)
10120 }
10121
10122 // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
10123 // semantic conventions. It represents the process title (proctitle).
10124 func ProcessTitle(val string) attribute.KeyValue {
10125 return ProcessTitleKey.String(val)
10126 }
10127
10128 // ProcessUserID returns an attribute KeyValue conforming to the
10129 // "process.user.id" semantic conventions. It represents the effective user ID
10130 // (EUID) of the process.
10131 func ProcessUserID(val int) attribute.KeyValue {
10132 return ProcessUserIDKey.Int(val)
10133 }
10134
10135 // ProcessUserName returns an attribute KeyValue conforming to the
10136 // "process.user.name" semantic conventions. It represents the username of the
10137 // effective user of the process.
10138 func ProcessUserName(val string) attribute.KeyValue {
10139 return ProcessUserNameKey.String(val)
10140 }
10141
10142 // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
10143 // semantic conventions. It represents the virtual process identifier.
10144 func ProcessVpid(val int) attribute.KeyValue {
10145 return ProcessVpidKey.Int(val)
10146 }
10147
10148 // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
10149 // "process.working_directory" semantic conventions. It represents the working
10150 // directory of the process.
10151 func ProcessWorkingDirectory(val string) attribute.KeyValue {
10152 return ProcessWorkingDirectoryKey.String(val)
10153 }
10154
10155 // Enum values for process.context_switch_type
10156 var (
10157 // voluntary
10158 // Stability: development
10159 ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
10160 // involuntary
10161 // Stability: development
10162 ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
10163 )
10164
10165 // Enum values for process.paging.fault_type
10166 var (
10167 // major
10168 // Stability: development
10169 ProcessPagingFaultTypeMajor = ProcessPagingFaultTypeKey.String("major")
10170 // minor
10171 // Stability: development
10172 ProcessPagingFaultTypeMinor = ProcessPagingFaultTypeKey.String("minor")
10173 )
10174
10175 // Namespace: profile
10176 const (
10177 // ProfileFrameTypeKey is the attribute Key conforming to the
10178 // "profile.frame.type" semantic conventions. It represents the describes the
10179 // interpreter or compiler of a single frame.
10180 //
10181 // Type: Enum
10182 // RequirementLevel: Recommended
10183 // Stability: Development
10184 //
10185 // Examples: "cpython"
10186 ProfileFrameTypeKey = attribute.Key("profile.frame.type")
10187 )
10188
10189 // Enum values for profile.frame.type
10190 var (
10191 // [.NET]
10192 //
10193 // Stability: development
10194 //
10195 // [.NET]: https://wikipedia.org/wiki/.NET
10196 ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
10197 // [JVM]
10198 //
10199 // Stability: development
10200 //
10201 // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
10202 ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
10203 // [Kernel]
10204 //
10205 // Stability: development
10206 //
10207 // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
10208 ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
10209 // Can be one of but not limited to [C], [C++], [Go] or [Rust]. If possible, a
10210 // more precise value MUST be used.
10211 //
10212 // Stability: development
10213 //
10214 // [C]: https://wikipedia.org/wiki/C_(programming_language)
10215 // [C++]: https://wikipedia.org/wiki/C%2B%2B
10216 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
10217 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
10218 ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
10219 // [Perl]
10220 //
10221 // Stability: development
10222 //
10223 // [Perl]: https://wikipedia.org/wiki/Perl
10224 ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
10225 // [PHP]
10226 //
10227 // Stability: development
10228 //
10229 // [PHP]: https://wikipedia.org/wiki/PHP
10230 ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
10231 // [Python]
10232 //
10233 // Stability: development
10234 //
10235 // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
10236 ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
10237 // [Ruby]
10238 //
10239 // Stability: development
10240 //
10241 // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
10242 ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
10243 // [V8JS]
10244 //
10245 // Stability: development
10246 //
10247 // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
10248 ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
10249 // [Erlang]
10250 //
10251 // Stability: development
10252 //
10253 // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)
10254 ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam")
10255 // [Go],
10256 //
10257 // Stability: development
10258 //
10259 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
10260 ProfileFrameTypeGo = ProfileFrameTypeKey.String("go")
10261 // [Rust]
10262 //
10263 // Stability: development
10264 //
10265 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
10266 ProfileFrameTypeRust = ProfileFrameTypeKey.String("rust")
10267 )
10268
10269 // Namespace: rpc
10270 const (
10271 // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the
10272 // "rpc.connect_rpc.error_code" semantic conventions. It represents the
10273 // [error codes] of the Connect request. Error codes are always string values.
10274 //
10275 // Type: Enum
10276 // RequirementLevel: Recommended
10277 // Stability: Development
10278 //
10279 // Examples:
10280 //
10281 // [error codes]: https://connectrpc.com//docs/protocol/#error-codes
10282 RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code")
10283
10284 // RPCGRPCStatusCodeKey is the attribute Key conforming to the
10285 // "rpc.grpc.status_code" semantic conventions. It represents the
10286 // [numeric status code] of the gRPC request.
10287 //
10288 // Type: Enum
10289 // RequirementLevel: Recommended
10290 // Stability: Development
10291 //
10292 // Examples:
10293 //
10294 // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md
10295 RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")
10296
10297 // RPCJSONRPCErrorCodeKey is the attribute Key conforming to the
10298 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
10299 // property of response if it is an error response.
10300 //
10301 // Type: int
10302 // RequirementLevel: Recommended
10303 // Stability: Development
10304 //
10305 // Examples: -32700, 100
10306 RPCJSONRPCErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code")
10307
10308 // RPCJSONRPCErrorMessageKey is the attribute Key conforming to the
10309 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
10310 // `error.message` property of response if it is an error response.
10311 //
10312 // Type: string
10313 // RequirementLevel: Recommended
10314 // Stability: Development
10315 //
10316 // Examples: "Parse error", "User already exists"
10317 RPCJSONRPCErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message")
10318
10319 // RPCJSONRPCRequestIDKey is the attribute Key conforming to the
10320 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id`
10321 // property of request or response. Since protocol allows id to be int, string,
10322 // `null` or missing (for notifications), value is expected to be cast to string
10323 // for simplicity. Use empty string in case of `null` value. Omit entirely if
10324 // this is a notification.
10325 //
10326 // Type: string
10327 // RequirementLevel: Recommended
10328 // Stability: Development
10329 //
10330 // Examples: "10", "request-7", ""
10331 RPCJSONRPCRequestIDKey = attribute.Key("rpc.jsonrpc.request_id")
10332
10333 // RPCJSONRPCVersionKey is the attribute Key conforming to the
10334 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol
10335 // version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0
10336 // doesn't specify this, the value can be omitted.
10337 //
10338 // Type: string
10339 // RequirementLevel: Recommended
10340 // Stability: Development
10341 //
10342 // Examples: "2.0", "1.0"
10343 RPCJSONRPCVersionKey = attribute.Key("rpc.jsonrpc.version")
10344
10345 // RPCMessageCompressedSizeKey is the attribute Key conforming to the
10346 // "rpc.message.compressed_size" semantic conventions. It represents the
10347 // compressed size of the message in bytes.
10348 //
10349 // Type: int
10350 // RequirementLevel: Recommended
10351 // Stability: Development
10352 //
10353 // Examples:
10354 RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size")
10355
10356 // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id"
10357 // semantic conventions. It MUST be calculated as two different counters
10358 // starting from `1` one for sent messages and one for received message..
10359 //
10360 // Type: int
10361 // RequirementLevel: Recommended
10362 // Stability: Development
10363 //
10364 // Examples:
10365 // Note: This way we guarantee that the values will be consistent between
10366 // different implementations.
10367 RPCMessageIDKey = attribute.Key("rpc.message.id")
10368
10369 // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type"
10370 // semantic conventions. It represents the whether this is a received or sent
10371 // message.
10372 //
10373 // Type: Enum
10374 // RequirementLevel: Recommended
10375 // Stability: Development
10376 //
10377 // Examples:
10378 RPCMessageTypeKey = attribute.Key("rpc.message.type")
10379
10380 // RPCMessageUncompressedSizeKey is the attribute Key conforming to the
10381 // "rpc.message.uncompressed_size" semantic conventions. It represents the
10382 // uncompressed size of the message in bytes.
10383 //
10384 // Type: int
10385 // RequirementLevel: Recommended
10386 // Stability: Development
10387 //
10388 // Examples:
10389 RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size")
10390
10391 // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
10392 // conventions. It represents the name of the (logical) method being called,
10393 // must be equal to the $method part in the span name.
10394 //
10395 // Type: string
10396 // RequirementLevel: Recommended
10397 // Stability: Development
10398 //
10399 // Examples: exampleMethod
10400 // Note: This is the logical name of the method from the RPC interface
10401 // perspective, which can be different from the name of any implementing
10402 // method/function. The `code.function.name` attribute may be used to store the
10403 // latter (e.g., method actually executing the call on the server side, RPC
10404 // client stub method on the client side).
10405 RPCMethodKey = attribute.Key("rpc.method")
10406
10407 // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic
10408 // conventions. It represents the full (logical) name of the service being
10409 // called, including its package name, if applicable.
10410 //
10411 // Type: string
10412 // RequirementLevel: Recommended
10413 // Stability: Development
10414 //
10415 // Examples: myservice.EchoService
10416 // Note: This is the logical name of the service from the RPC interface
10417 // perspective, which can be different from the name of any implementing class.
10418 // The `code.namespace` attribute may be used to store the latter (despite the
10419 // attribute name, it may include a class name; e.g., class with method actually
10420 // executing the call on the server side, RPC client stub class on the client
10421 // side).
10422 RPCServiceKey = attribute.Key("rpc.service")
10423
10424 // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic
10425 // conventions. It represents a string identifying the remoting system. See
10426 // below for a list of well-known identifiers.
10427 //
10428 // Type: Enum
10429 // RequirementLevel: Recommended
10430 // Stability: Development
10431 //
10432 // Examples:
10433 RPCSystemKey = attribute.Key("rpc.system")
10434 )
10435
10436 // RPCJSONRPCErrorCode returns an attribute KeyValue conforming to the
10437 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
10438 // property of response if it is an error response.
10439 func RPCJSONRPCErrorCode(val int) attribute.KeyValue {
10440 return RPCJSONRPCErrorCodeKey.Int(val)
10441 }
10442
10443 // RPCJSONRPCErrorMessage returns an attribute KeyValue conforming to the
10444 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
10445 // `error.message` property of response if it is an error response.
10446 func RPCJSONRPCErrorMessage(val string) attribute.KeyValue {
10447 return RPCJSONRPCErrorMessageKey.String(val)
10448 }
10449
10450 // RPCJSONRPCRequestID returns an attribute KeyValue conforming to the
10451 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property
10452 // of request or response. Since protocol allows id to be int, string, `null` or
10453 // missing (for notifications), value is expected to be cast to string for
10454 // simplicity. Use empty string in case of `null` value. Omit entirely if this is
10455 // a notification.
10456 func RPCJSONRPCRequestID(val string) attribute.KeyValue {
10457 return RPCJSONRPCRequestIDKey.String(val)
10458 }
10459
10460 // RPCJSONRPCVersion returns an attribute KeyValue conforming to the
10461 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol version
10462 // as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't
10463 // specify this, the value can be omitted.
10464 func RPCJSONRPCVersion(val string) attribute.KeyValue {
10465 return RPCJSONRPCVersionKey.String(val)
10466 }
10467
10468 // RPCMessageCompressedSize returns an attribute KeyValue conforming to the
10469 // "rpc.message.compressed_size" semantic conventions. It represents the
10470 // compressed size of the message in bytes.
10471 func RPCMessageCompressedSize(val int) attribute.KeyValue {
10472 return RPCMessageCompressedSizeKey.Int(val)
10473 }
10474
10475 // RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id"
10476 // semantic conventions. It MUST be calculated as two different counters starting
10477 // from `1` one for sent messages and one for received message..
10478 func RPCMessageID(val int) attribute.KeyValue {
10479 return RPCMessageIDKey.Int(val)
10480 }
10481
10482 // RPCMessageUncompressedSize returns an attribute KeyValue conforming to the
10483 // "rpc.message.uncompressed_size" semantic conventions. It represents the
10484 // uncompressed size of the message in bytes.
10485 func RPCMessageUncompressedSize(val int) attribute.KeyValue {
10486 return RPCMessageUncompressedSizeKey.Int(val)
10487 }
10488
10489 // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
10490 // semantic conventions. It represents the name of the (logical) method being
10491 // called, must be equal to the $method part in the span name.
10492 func RPCMethod(val string) attribute.KeyValue {
10493 return RPCMethodKey.String(val)
10494 }
10495
10496 // RPCService returns an attribute KeyValue conforming to the "rpc.service"
10497 // semantic conventions. It represents the full (logical) name of the service
10498 // being called, including its package name, if applicable.
10499 func RPCService(val string) attribute.KeyValue {
10500 return RPCServiceKey.String(val)
10501 }
10502
10503 // Enum values for rpc.connect_rpc.error_code
10504 var (
10505 // cancelled
10506 // Stability: development
10507 RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled")
10508 // unknown
10509 // Stability: development
10510 RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown")
10511 // invalid_argument
10512 // Stability: development
10513 RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument")
10514 // deadline_exceeded
10515 // Stability: development
10516 RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded")
10517 // not_found
10518 // Stability: development
10519 RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found")
10520 // already_exists
10521 // Stability: development
10522 RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists")
10523 // permission_denied
10524 // Stability: development
10525 RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied")
10526 // resource_exhausted
10527 // Stability: development
10528 RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted")
10529 // failed_precondition
10530 // Stability: development
10531 RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition")
10532 // aborted
10533 // Stability: development
10534 RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted")
10535 // out_of_range
10536 // Stability: development
10537 RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range")
10538 // unimplemented
10539 // Stability: development
10540 RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented")
10541 // internal
10542 // Stability: development
10543 RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal")
10544 // unavailable
10545 // Stability: development
10546 RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable")
10547 // data_loss
10548 // Stability: development
10549 RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss")
10550 // unauthenticated
10551 // Stability: development
10552 RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated")
10553 )
10554
10555 // Enum values for rpc.grpc.status_code
10556 var (
10557 // OK
10558 // Stability: development
10559 RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0)
10560 // CANCELLED
10561 // Stability: development
10562 RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1)
10563 // UNKNOWN
10564 // Stability: development
10565 RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2)
10566 // INVALID_ARGUMENT
10567 // Stability: development
10568 RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3)
10569 // DEADLINE_EXCEEDED
10570 // Stability: development
10571 RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4)
10572 // NOT_FOUND
10573 // Stability: development
10574 RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5)
10575 // ALREADY_EXISTS
10576 // Stability: development
10577 RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6)
10578 // PERMISSION_DENIED
10579 // Stability: development
10580 RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7)
10581 // RESOURCE_EXHAUSTED
10582 // Stability: development
10583 RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8)
10584 // FAILED_PRECONDITION
10585 // Stability: development
10586 RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9)
10587 // ABORTED
10588 // Stability: development
10589 RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10)
10590 // OUT_OF_RANGE
10591 // Stability: development
10592 RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11)
10593 // UNIMPLEMENTED
10594 // Stability: development
10595 RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12)
10596 // INTERNAL
10597 // Stability: development
10598 RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13)
10599 // UNAVAILABLE
10600 // Stability: development
10601 RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14)
10602 // DATA_LOSS
10603 // Stability: development
10604 RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15)
10605 // UNAUTHENTICATED
10606 // Stability: development
10607 RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16)
10608 )
10609
10610 // Enum values for rpc.message.type
10611 var (
10612 // sent
10613 // Stability: development
10614 RPCMessageTypeSent = RPCMessageTypeKey.String("SENT")
10615 // received
10616 // Stability: development
10617 RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")
10618 )
10619
10620 // Enum values for rpc.system
10621 var (
10622 // gRPC
10623 // Stability: development
10624 RPCSystemGRPC = RPCSystemKey.String("grpc")
10625 // Java RMI
10626 // Stability: development
10627 RPCSystemJavaRmi = RPCSystemKey.String("java_rmi")
10628 // .NET WCF
10629 // Stability: development
10630 RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf")
10631 // Apache Dubbo
10632 // Stability: development
10633 RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo")
10634 // Connect RPC
10635 // Stability: development
10636 RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc")
10637 )
10638
10639 // Namespace: security_rule
10640 const (
10641 // SecurityRuleCategoryKey is the attribute Key conforming to the
10642 // "security_rule.category" semantic conventions. It represents a categorization
10643 // value keyword used by the entity using the rule for detection of this event.
10644 //
10645 // Type: string
10646 // RequirementLevel: Recommended
10647 // Stability: Development
10648 //
10649 // Examples: "Attempted Information Leak"
10650 SecurityRuleCategoryKey = attribute.Key("security_rule.category")
10651
10652 // SecurityRuleDescriptionKey is the attribute Key conforming to the
10653 // "security_rule.description" semantic conventions. It represents the
10654 // description of the rule generating the event.
10655 //
10656 // Type: string
10657 // RequirementLevel: Recommended
10658 // Stability: Development
10659 //
10660 // Examples: "Block requests to public DNS over HTTPS / TLS protocols"
10661 SecurityRuleDescriptionKey = attribute.Key("security_rule.description")
10662
10663 // SecurityRuleLicenseKey is the attribute Key conforming to the
10664 // "security_rule.license" semantic conventions. It represents the name of the
10665 // license under which the rule used to generate this event is made available.
10666 //
10667 // Type: string
10668 // RequirementLevel: Recommended
10669 // Stability: Development
10670 //
10671 // Examples: "Apache 2.0"
10672 SecurityRuleLicenseKey = attribute.Key("security_rule.license")
10673
10674 // SecurityRuleNameKey is the attribute Key conforming to the
10675 // "security_rule.name" semantic conventions. It represents the name of the rule
10676 // or signature generating the event.
10677 //
10678 // Type: string
10679 // RequirementLevel: Recommended
10680 // Stability: Development
10681 //
10682 // Examples: "BLOCK_DNS_over_TLS"
10683 SecurityRuleNameKey = attribute.Key("security_rule.name")
10684
10685 // SecurityRuleReferenceKey is the attribute Key conforming to the
10686 // "security_rule.reference" semantic conventions. It represents the reference
10687 // URL to additional information about the rule used to generate this event.
10688 //
10689 // Type: string
10690 // RequirementLevel: Recommended
10691 // Stability: Development
10692 //
10693 // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS"
10694 // Note: The URL can point to the vendor’s documentation about the rule. If
10695 // that’s not available, it can also be a link to a more general page
10696 // describing this type of alert.
10697 SecurityRuleReferenceKey = attribute.Key("security_rule.reference")
10698
10699 // SecurityRuleRulesetNameKey is the attribute Key conforming to the
10700 // "security_rule.ruleset.name" semantic conventions. It represents the name of
10701 // the ruleset, policy, group, or parent category in which the rule used to
10702 // generate this event is a member.
10703 //
10704 // Type: string
10705 // RequirementLevel: Recommended
10706 // Stability: Development
10707 //
10708 // Examples: "Standard_Protocol_Filters"
10709 SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name")
10710
10711 // SecurityRuleUUIDKey is the attribute Key conforming to the
10712 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
10713 // unique within the scope of a set or group of agents, observers, or other
10714 // entities using the rule for detection of this event.
10715 //
10716 // Type: string
10717 // RequirementLevel: Recommended
10718 // Stability: Development
10719 //
10720 // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011"
10721 SecurityRuleUUIDKey = attribute.Key("security_rule.uuid")
10722
10723 // SecurityRuleVersionKey is the attribute Key conforming to the
10724 // "security_rule.version" semantic conventions. It represents the version /
10725 // revision of the rule being used for analysis.
10726 //
10727 // Type: string
10728 // RequirementLevel: Recommended
10729 // Stability: Development
10730 //
10731 // Examples: "1.0.0"
10732 SecurityRuleVersionKey = attribute.Key("security_rule.version")
10733 )
10734
10735 // SecurityRuleCategory returns an attribute KeyValue conforming to the
10736 // "security_rule.category" semantic conventions. It represents a categorization
10737 // value keyword used by the entity using the rule for detection of this event.
10738 func SecurityRuleCategory(val string) attribute.KeyValue {
10739 return SecurityRuleCategoryKey.String(val)
10740 }
10741
10742 // SecurityRuleDescription returns an attribute KeyValue conforming to the
10743 // "security_rule.description" semantic conventions. It represents the
10744 // description of the rule generating the event.
10745 func SecurityRuleDescription(val string) attribute.KeyValue {
10746 return SecurityRuleDescriptionKey.String(val)
10747 }
10748
10749 // SecurityRuleLicense returns an attribute KeyValue conforming to the
10750 // "security_rule.license" semantic conventions. It represents the name of the
10751 // license under which the rule used to generate this event is made available.
10752 func SecurityRuleLicense(val string) attribute.KeyValue {
10753 return SecurityRuleLicenseKey.String(val)
10754 }
10755
10756 // SecurityRuleName returns an attribute KeyValue conforming to the
10757 // "security_rule.name" semantic conventions. It represents the name of the rule
10758 // or signature generating the event.
10759 func SecurityRuleName(val string) attribute.KeyValue {
10760 return SecurityRuleNameKey.String(val)
10761 }
10762
10763 // SecurityRuleReference returns an attribute KeyValue conforming to the
10764 // "security_rule.reference" semantic conventions. It represents the reference
10765 // URL to additional information about the rule used to generate this event.
10766 func SecurityRuleReference(val string) attribute.KeyValue {
10767 return SecurityRuleReferenceKey.String(val)
10768 }
10769
10770 // SecurityRuleRulesetName returns an attribute KeyValue conforming to the
10771 // "security_rule.ruleset.name" semantic conventions. It represents the name of
10772 // the ruleset, policy, group, or parent category in which the rule used to
10773 // generate this event is a member.
10774 func SecurityRuleRulesetName(val string) attribute.KeyValue {
10775 return SecurityRuleRulesetNameKey.String(val)
10776 }
10777
10778 // SecurityRuleUUID returns an attribute KeyValue conforming to the
10779 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
10780 // unique within the scope of a set or group of agents, observers, or other
10781 // entities using the rule for detection of this event.
10782 func SecurityRuleUUID(val string) attribute.KeyValue {
10783 return SecurityRuleUUIDKey.String(val)
10784 }
10785
10786 // SecurityRuleVersion returns an attribute KeyValue conforming to the
10787 // "security_rule.version" semantic conventions. It represents the version /
10788 // revision of the rule being used for analysis.
10789 func SecurityRuleVersion(val string) attribute.KeyValue {
10790 return SecurityRuleVersionKey.String(val)
10791 }
10792
10793 // Namespace: server
10794 const (
10795 // ServerAddressKey is the attribute Key conforming to the "server.address"
10796 // semantic conventions. It represents the server domain name if available
10797 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
10798 //
10799 // Type: string
10800 // RequirementLevel: Recommended
10801 // Stability: Stable
10802 //
10803 // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
10804 // Note: When observed from the client side, and when communicating through an
10805 // intermediary, `server.address` SHOULD represent the server address behind any
10806 // intermediaries, for example proxies, if it's available.
10807 ServerAddressKey = attribute.Key("server.address")
10808
10809 // ServerPortKey is the attribute Key conforming to the "server.port" semantic
10810 // conventions. It represents the server port number.
10811 //
10812 // Type: int
10813 // RequirementLevel: Recommended
10814 // Stability: Stable
10815 //
10816 // Examples: 80, 8080, 443
10817 // Note: When observed from the client side, and when communicating through an
10818 // intermediary, `server.port` SHOULD represent the server port behind any
10819 // intermediaries, for example proxies, if it's available.
10820 ServerPortKey = attribute.Key("server.port")
10821 )
10822
10823 // ServerAddress returns an attribute KeyValue conforming to the "server.address"
10824 // semantic conventions. It represents the server domain name if available
10825 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
10826 func ServerAddress(val string) attribute.KeyValue {
10827 return ServerAddressKey.String(val)
10828 }
10829
10830 // ServerPort returns an attribute KeyValue conforming to the "server.port"
10831 // semantic conventions. It represents the server port number.
10832 func ServerPort(val int) attribute.KeyValue {
10833 return ServerPortKey.Int(val)
10834 }
10835
10836 // Namespace: service
10837 const (
10838 // ServiceInstanceIDKey is the attribute Key conforming to the
10839 // "service.instance.id" semantic conventions. It represents the string ID of
10840 // the service instance.
10841 //
10842 // Type: string
10843 // RequirementLevel: Recommended
10844 // Stability: Development
10845 //
10846 // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
10847 // Note: MUST be unique for each instance of the same
10848 // `service.namespace,service.name` pair (in other words
10849 // `service.namespace,service.name,service.instance.id` triplet MUST be globally
10850 // unique). The ID helps to
10851 // distinguish instances of the same service that exist at the same time (e.g.
10852 // instances of a horizontally scaled
10853 // service).
10854 //
10855 // Implementations, such as SDKs, are recommended to generate a random Version 1
10856 // or Version 4 [RFC
10857 // 4122] UUID, but are free to use an inherent unique ID as
10858 // the source of
10859 // this value if stability is desirable. In that case, the ID SHOULD be used as
10860 // source of a UUID Version 5 and
10861 // SHOULD use the following UUID as the namespace:
10862 // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
10863 //
10864 // UUIDs are typically recommended, as only an opaque value for the purposes of
10865 // identifying a service instance is
10866 // needed. Similar to what can be seen in the man page for the
10867 // [`/etc/machine-id`] file, the underlying
10868 // data, such as pod name and namespace should be treated as confidential, being
10869 // the user's choice to expose it
10870 // or not via another resource attribute.
10871 //
10872 // For applications running behind an application server (like unicorn), we do
10873 // not recommend using one identifier
10874 // for all processes participating in the application. Instead, it's recommended
10875 // each division (e.g. a worker
10876 // thread in unicorn) to have its own instance.id.
10877 //
10878 // It's not recommended for a Collector to set `service.instance.id` if it can't
10879 // unambiguously determine the
10880 // service instance that is generating that telemetry. For instance, creating an
10881 // UUID based on `pod.name` will
10882 // likely be wrong, as the Collector might not know from which container within
10883 // that pod the telemetry originated.
10884 // However, Collectors can set the `service.instance.id` if they can
10885 // unambiguously determine the service instance
10886 // for that telemetry. This is typically the case for scraping receivers, as
10887 // they know the target address and
10888 // port.
10889 //
10890 // [RFC
10891 // 4122]: https://www.ietf.org/rfc/rfc4122.txt
10892 // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html
10893 ServiceInstanceIDKey = attribute.Key("service.instance.id")
10894
10895 // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
10896 // conventions. It represents the logical name of the service.
10897 //
10898 // Type: string
10899 // RequirementLevel: Recommended
10900 // Stability: Stable
10901 //
10902 // Examples: "shoppingcart"
10903 // Note: MUST be the same for all instances of horizontally scaled services. If
10904 // the value was not specified, SDKs MUST fallback to `unknown_service:`
10905 // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
10906 // If `process.executable.name` is not available, the value MUST be set to
10907 // `unknown_service`.
10908 //
10909 // [`process.executable.name`]: process.md
10910 ServiceNameKey = attribute.Key("service.name")
10911
10912 // ServiceNamespaceKey is the attribute Key conforming to the
10913 // "service.namespace" semantic conventions. It represents a namespace for
10914 // `service.name`.
10915 //
10916 // Type: string
10917 // RequirementLevel: Recommended
10918 // Stability: Development
10919 //
10920 // Examples: "Shop"
10921 // Note: A string value having a meaning that helps to distinguish a group of
10922 // services, for example the team name that owns a group of services.
10923 // `service.name` is expected to be unique within the same namespace. If
10924 // `service.namespace` is not specified in the Resource then `service.name` is
10925 // expected to be unique for all services that have no explicit namespace
10926 // defined (so the empty/unspecified namespace is simply one more valid
10927 // namespace). Zero-length namespace string is assumed equal to unspecified
10928 // namespace.
10929 ServiceNamespaceKey = attribute.Key("service.namespace")
10930
10931 // ServiceVersionKey is the attribute Key conforming to the "service.version"
10932 // semantic conventions. It represents the version string of the service API or
10933 // implementation. The format is not defined by these conventions.
10934 //
10935 // Type: string
10936 // RequirementLevel: Recommended
10937 // Stability: Stable
10938 //
10939 // Examples: "2.0.0", "a01dbef8a"
10940 ServiceVersionKey = attribute.Key("service.version")
10941 )
10942
10943 // ServiceInstanceID returns an attribute KeyValue conforming to the
10944 // "service.instance.id" semantic conventions. It represents the string ID of the
10945 // service instance.
10946 func ServiceInstanceID(val string) attribute.KeyValue {
10947 return ServiceInstanceIDKey.String(val)
10948 }
10949
10950 // ServiceName returns an attribute KeyValue conforming to the "service.name"
10951 // semantic conventions. It represents the logical name of the service.
10952 func ServiceName(val string) attribute.KeyValue {
10953 return ServiceNameKey.String(val)
10954 }
10955
10956 // ServiceNamespace returns an attribute KeyValue conforming to the
10957 // "service.namespace" semantic conventions. It represents a namespace for
10958 // `service.name`.
10959 func ServiceNamespace(val string) attribute.KeyValue {
10960 return ServiceNamespaceKey.String(val)
10961 }
10962
10963 // ServiceVersion returns an attribute KeyValue conforming to the
10964 // "service.version" semantic conventions. It represents the version string of
10965 // the service API or implementation. The format is not defined by these
10966 // conventions.
10967 func ServiceVersion(val string) attribute.KeyValue {
10968 return ServiceVersionKey.String(val)
10969 }
10970
10971 // Namespace: session
10972 const (
10973 // SessionIDKey is the attribute Key conforming to the "session.id" semantic
10974 // conventions. It represents a unique id to identify a session.
10975 //
10976 // Type: string
10977 // RequirementLevel: Recommended
10978 // Stability: Development
10979 //
10980 // Examples: 00112233-4455-6677-8899-aabbccddeeff
10981 SessionIDKey = attribute.Key("session.id")
10982
10983 // SessionPreviousIDKey is the attribute Key conforming to the
10984 // "session.previous_id" semantic conventions. It represents the previous
10985 // `session.id` for this user, when known.
10986 //
10987 // Type: string
10988 // RequirementLevel: Recommended
10989 // Stability: Development
10990 //
10991 // Examples: 00112233-4455-6677-8899-aabbccddeeff
10992 SessionPreviousIDKey = attribute.Key("session.previous_id")
10993 )
10994
10995 // SessionID returns an attribute KeyValue conforming to the "session.id"
10996 // semantic conventions. It represents a unique id to identify a session.
10997 func SessionID(val string) attribute.KeyValue {
10998 return SessionIDKey.String(val)
10999 }
11000
11001 // SessionPreviousID returns an attribute KeyValue conforming to the
11002 // "session.previous_id" semantic conventions. It represents the previous
11003 // `session.id` for this user, when known.
11004 func SessionPreviousID(val string) attribute.KeyValue {
11005 return SessionPreviousIDKey.String(val)
11006 }
11007
11008 // Namespace: signalr
11009 const (
11010 // SignalRConnectionStatusKey is the attribute Key conforming to the
11011 // "signalr.connection.status" semantic conventions. It represents the signalR
11012 // HTTP connection closure status.
11013 //
11014 // Type: Enum
11015 // RequirementLevel: Recommended
11016 // Stability: Stable
11017 //
11018 // Examples: "app_shutdown", "timeout"
11019 SignalRConnectionStatusKey = attribute.Key("signalr.connection.status")
11020
11021 // SignalRTransportKey is the attribute Key conforming to the
11022 // "signalr.transport" semantic conventions. It represents the
11023 // [SignalR transport type].
11024 //
11025 // Type: Enum
11026 // RequirementLevel: Recommended
11027 // Stability: Stable
11028 //
11029 // Examples: "web_sockets", "long_polling"
11030 //
11031 // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
11032 SignalRTransportKey = attribute.Key("signalr.transport")
11033 )
11034
11035 // Enum values for signalr.connection.status
11036 var (
11037 // The connection was closed normally.
11038 // Stability: stable
11039 SignalRConnectionStatusNormalClosure = SignalRConnectionStatusKey.String("normal_closure")
11040 // The connection was closed due to a timeout.
11041 // Stability: stable
11042 SignalRConnectionStatusTimeout = SignalRConnectionStatusKey.String("timeout")
11043 // The connection was closed because the app is shutting down.
11044 // Stability: stable
11045 SignalRConnectionStatusAppShutdown = SignalRConnectionStatusKey.String("app_shutdown")
11046 )
11047
11048 // Enum values for signalr.transport
11049 var (
11050 // ServerSentEvents protocol
11051 // Stability: stable
11052 SignalRTransportServerSentEvents = SignalRTransportKey.String("server_sent_events")
11053 // LongPolling protocol
11054 // Stability: stable
11055 SignalRTransportLongPolling = SignalRTransportKey.String("long_polling")
11056 // WebSockets protocol
11057 // Stability: stable
11058 SignalRTransportWebSockets = SignalRTransportKey.String("web_sockets")
11059 )
11060
11061 // Namespace: source
11062 const (
11063 // SourceAddressKey is the attribute Key conforming to the "source.address"
11064 // semantic conventions. It represents the source address - domain name if
11065 // available without reverse DNS lookup; otherwise, IP address or Unix domain
11066 // socket name.
11067 //
11068 // Type: string
11069 // RequirementLevel: Recommended
11070 // Stability: Development
11071 //
11072 // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
11073 // Note: When observed from the destination side, and when communicating through
11074 // an intermediary, `source.address` SHOULD represent the source address behind
11075 // any intermediaries, for example proxies, if it's available.
11076 SourceAddressKey = attribute.Key("source.address")
11077
11078 // SourcePortKey is the attribute Key conforming to the "source.port" semantic
11079 // conventions. It represents the source port number.
11080 //
11081 // Type: int
11082 // RequirementLevel: Recommended
11083 // Stability: Development
11084 //
11085 // Examples: 3389, 2888
11086 SourcePortKey = attribute.Key("source.port")
11087 )
11088
11089 // SourceAddress returns an attribute KeyValue conforming to the "source.address"
11090 // semantic conventions. It represents the source address - domain name if
11091 // available without reverse DNS lookup; otherwise, IP address or Unix domain
11092 // socket name.
11093 func SourceAddress(val string) attribute.KeyValue {
11094 return SourceAddressKey.String(val)
11095 }
11096
11097 // SourcePort returns an attribute KeyValue conforming to the "source.port"
11098 // semantic conventions. It represents the source port number.
11099 func SourcePort(val int) attribute.KeyValue {
11100 return SourcePortKey.Int(val)
11101 }
11102
11103 // Namespace: system
11104 const (
11105 // SystemCPULogicalNumberKey is the attribute Key conforming to the
11106 // "system.cpu.logical_number" semantic conventions. It represents the
11107 // deprecated, use `cpu.logical_number` instead.
11108 //
11109 // Type: int
11110 // RequirementLevel: Recommended
11111 // Stability: Development
11112 //
11113 // Examples: 1
11114 SystemCPULogicalNumberKey = attribute.Key("system.cpu.logical_number")
11115
11116 // SystemDeviceKey is the attribute Key conforming to the "system.device"
11117 // semantic conventions. It represents the device identifier.
11118 //
11119 // Type: string
11120 // RequirementLevel: Recommended
11121 // Stability: Development
11122 //
11123 // Examples: "(identifier)"
11124 SystemDeviceKey = attribute.Key("system.device")
11125
11126 // SystemFilesystemModeKey is the attribute Key conforming to the
11127 // "system.filesystem.mode" semantic conventions. It represents the filesystem
11128 // mode.
11129 //
11130 // Type: string
11131 // RequirementLevel: Recommended
11132 // Stability: Development
11133 //
11134 // Examples: "rw, ro"
11135 SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
11136
11137 // SystemFilesystemMountpointKey is the attribute Key conforming to the
11138 // "system.filesystem.mountpoint" semantic conventions. It represents the
11139 // filesystem mount path.
11140 //
11141 // Type: string
11142 // RequirementLevel: Recommended
11143 // Stability: Development
11144 //
11145 // Examples: "/mnt/data"
11146 SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
11147
11148 // SystemFilesystemStateKey is the attribute Key conforming to the
11149 // "system.filesystem.state" semantic conventions. It represents the filesystem
11150 // state.
11151 //
11152 // Type: Enum
11153 // RequirementLevel: Recommended
11154 // Stability: Development
11155 //
11156 // Examples: "used"
11157 SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
11158
11159 // SystemFilesystemTypeKey is the attribute Key conforming to the
11160 // "system.filesystem.type" semantic conventions. It represents the filesystem
11161 // type.
11162 //
11163 // Type: Enum
11164 // RequirementLevel: Recommended
11165 // Stability: Development
11166 //
11167 // Examples: "ext4"
11168 SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
11169
11170 // SystemMemoryStateKey is the attribute Key conforming to the
11171 // "system.memory.state" semantic conventions. It represents the memory state.
11172 //
11173 // Type: Enum
11174 // RequirementLevel: Recommended
11175 // Stability: Development
11176 //
11177 // Examples: "free", "cached"
11178 SystemMemoryStateKey = attribute.Key("system.memory.state")
11179
11180 // SystemPagingDirectionKey is the attribute Key conforming to the
11181 // "system.paging.direction" semantic conventions. It represents the paging
11182 // access direction.
11183 //
11184 // Type: Enum
11185 // RequirementLevel: Recommended
11186 // Stability: Development
11187 //
11188 // Examples: "in"
11189 SystemPagingDirectionKey = attribute.Key("system.paging.direction")
11190
11191 // SystemPagingStateKey is the attribute Key conforming to the
11192 // "system.paging.state" semantic conventions. It represents the memory paging
11193 // state.
11194 //
11195 // Type: Enum
11196 // RequirementLevel: Recommended
11197 // Stability: Development
11198 //
11199 // Examples: "free"
11200 SystemPagingStateKey = attribute.Key("system.paging.state")
11201
11202 // SystemPagingTypeKey is the attribute Key conforming to the
11203 // "system.paging.type" semantic conventions. It represents the memory paging
11204 // type.
11205 //
11206 // Type: Enum
11207 // RequirementLevel: Recommended
11208 // Stability: Development
11209 //
11210 // Examples: "minor"
11211 SystemPagingTypeKey = attribute.Key("system.paging.type")
11212
11213 // SystemProcessStatusKey is the attribute Key conforming to the
11214 // "system.process.status" semantic conventions. It represents the process
11215 // state, e.g., [Linux Process State Codes].
11216 //
11217 // Type: Enum
11218 // RequirementLevel: Recommended
11219 // Stability: Development
11220 //
11221 // Examples: "running"
11222 //
11223 // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
11224 SystemProcessStatusKey = attribute.Key("system.process.status")
11225 )
11226
11227 // SystemCPULogicalNumber returns an attribute KeyValue conforming to the
11228 // "system.cpu.logical_number" semantic conventions. It represents the
11229 // deprecated, use `cpu.logical_number` instead.
11230 func SystemCPULogicalNumber(val int) attribute.KeyValue {
11231 return SystemCPULogicalNumberKey.Int(val)
11232 }
11233
11234 // SystemDevice returns an attribute KeyValue conforming to the "system.device"
11235 // semantic conventions. It represents the device identifier.
11236 func SystemDevice(val string) attribute.KeyValue {
11237 return SystemDeviceKey.String(val)
11238 }
11239
11240 // SystemFilesystemMode returns an attribute KeyValue conforming to the
11241 // "system.filesystem.mode" semantic conventions. It represents the filesystem
11242 // mode.
11243 func SystemFilesystemMode(val string) attribute.KeyValue {
11244 return SystemFilesystemModeKey.String(val)
11245 }
11246
11247 // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
11248 // "system.filesystem.mountpoint" semantic conventions. It represents the
11249 // filesystem mount path.
11250 func SystemFilesystemMountpoint(val string) attribute.KeyValue {
11251 return SystemFilesystemMountpointKey.String(val)
11252 }
11253
11254 // Enum values for system.filesystem.state
11255 var (
11256 // used
11257 // Stability: development
11258 SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
11259 // free
11260 // Stability: development
11261 SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
11262 // reserved
11263 // Stability: development
11264 SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
11265 )
11266
11267 // Enum values for system.filesystem.type
11268 var (
11269 // fat32
11270 // Stability: development
11271 SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
11272 // exfat
11273 // Stability: development
11274 SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
11275 // ntfs
11276 // Stability: development
11277 SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
11278 // refs
11279 // Stability: development
11280 SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
11281 // hfsplus
11282 // Stability: development
11283 SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
11284 // ext4
11285 // Stability: development
11286 SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
11287 )
11288
11289 // Enum values for system.memory.state
11290 var (
11291 // used
11292 // Stability: development
11293 SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
11294 // free
11295 // Stability: development
11296 SystemMemoryStateFree = SystemMemoryStateKey.String("free")
11297 // Deprecated: Removed, report shared memory usage with
11298 // `metric.system.memory.shared` metric.
11299 SystemMemoryStateShared = SystemMemoryStateKey.String("shared")
11300 // buffers
11301 // Stability: development
11302 SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
11303 // cached
11304 // Stability: development
11305 SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
11306 )
11307
11308 // Enum values for system.paging.direction
11309 var (
11310 // in
11311 // Stability: development
11312 SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
11313 // out
11314 // Stability: development
11315 SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
11316 )
11317
11318 // Enum values for system.paging.state
11319 var (
11320 // used
11321 // Stability: development
11322 SystemPagingStateUsed = SystemPagingStateKey.String("used")
11323 // free
11324 // Stability: development
11325 SystemPagingStateFree = SystemPagingStateKey.String("free")
11326 )
11327
11328 // Enum values for system.paging.type
11329 var (
11330 // major
11331 // Stability: development
11332 SystemPagingTypeMajor = SystemPagingTypeKey.String("major")
11333 // minor
11334 // Stability: development
11335 SystemPagingTypeMinor = SystemPagingTypeKey.String("minor")
11336 )
11337
11338 // Enum values for system.process.status
11339 var (
11340 // running
11341 // Stability: development
11342 SystemProcessStatusRunning = SystemProcessStatusKey.String("running")
11343 // sleeping
11344 // Stability: development
11345 SystemProcessStatusSleeping = SystemProcessStatusKey.String("sleeping")
11346 // stopped
11347 // Stability: development
11348 SystemProcessStatusStopped = SystemProcessStatusKey.String("stopped")
11349 // defunct
11350 // Stability: development
11351 SystemProcessStatusDefunct = SystemProcessStatusKey.String("defunct")
11352 )
11353
11354 // Namespace: telemetry
11355 const (
11356 // TelemetryDistroNameKey is the attribute Key conforming to the
11357 // "telemetry.distro.name" semantic conventions. It represents the name of the
11358 // auto instrumentation agent or distribution, if used.
11359 //
11360 // Type: string
11361 // RequirementLevel: Recommended
11362 // Stability: Development
11363 //
11364 // Examples: "parts-unlimited-java"
11365 // Note: Official auto instrumentation agents and distributions SHOULD set the
11366 // `telemetry.distro.name` attribute to
11367 // a string starting with `opentelemetry-`, e.g.
11368 // `opentelemetry-java-instrumentation`.
11369 TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
11370
11371 // TelemetryDistroVersionKey is the attribute Key conforming to the
11372 // "telemetry.distro.version" semantic conventions. It represents the version
11373 // string of the auto instrumentation agent or distribution, if used.
11374 //
11375 // Type: string
11376 // RequirementLevel: Recommended
11377 // Stability: Development
11378 //
11379 // Examples: "1.2.3"
11380 TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
11381
11382 // TelemetrySDKLanguageKey is the attribute Key conforming to the
11383 // "telemetry.sdk.language" semantic conventions. It represents the language of
11384 // the telemetry SDK.
11385 //
11386 // Type: Enum
11387 // RequirementLevel: Recommended
11388 // Stability: Stable
11389 //
11390 // Examples:
11391 TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
11392
11393 // TelemetrySDKNameKey is the attribute Key conforming to the
11394 // "telemetry.sdk.name" semantic conventions. It represents the name of the
11395 // telemetry SDK as defined above.
11396 //
11397 // Type: string
11398 // RequirementLevel: Recommended
11399 // Stability: Stable
11400 //
11401 // Examples: "opentelemetry"
11402 // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
11403 // `opentelemetry`.
11404 // If another SDK, like a fork or a vendor-provided implementation, is used,
11405 // this SDK MUST set the
11406 // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
11407 // this SDK's main entry point
11408 // or another suitable identifier depending on the language.
11409 // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
11410 // All custom identifiers SHOULD be stable across different versions of an
11411 // implementation.
11412 TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
11413
11414 // TelemetrySDKVersionKey is the attribute Key conforming to the
11415 // "telemetry.sdk.version" semantic conventions. It represents the version
11416 // string of the telemetry SDK.
11417 //
11418 // Type: string
11419 // RequirementLevel: Recommended
11420 // Stability: Stable
11421 //
11422 // Examples: "1.2.3"
11423 TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
11424 )
11425
11426 // TelemetryDistroName returns an attribute KeyValue conforming to the
11427 // "telemetry.distro.name" semantic conventions. It represents the name of the
11428 // auto instrumentation agent or distribution, if used.
11429 func TelemetryDistroName(val string) attribute.KeyValue {
11430 return TelemetryDistroNameKey.String(val)
11431 }
11432
11433 // TelemetryDistroVersion returns an attribute KeyValue conforming to the
11434 // "telemetry.distro.version" semantic conventions. It represents the version
11435 // string of the auto instrumentation agent or distribution, if used.
11436 func TelemetryDistroVersion(val string) attribute.KeyValue {
11437 return TelemetryDistroVersionKey.String(val)
11438 }
11439
11440 // TelemetrySDKName returns an attribute KeyValue conforming to the
11441 // "telemetry.sdk.name" semantic conventions. It represents the name of the
11442 // telemetry SDK as defined above.
11443 func TelemetrySDKName(val string) attribute.KeyValue {
11444 return TelemetrySDKNameKey.String(val)
11445 }
11446
11447 // TelemetrySDKVersion returns an attribute KeyValue conforming to the
11448 // "telemetry.sdk.version" semantic conventions. It represents the version string
11449 // of the telemetry SDK.
11450 func TelemetrySDKVersion(val string) attribute.KeyValue {
11451 return TelemetrySDKVersionKey.String(val)
11452 }
11453
11454 // Enum values for telemetry.sdk.language
11455 var (
11456 // cpp
11457 // Stability: stable
11458 TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
11459 // dotnet
11460 // Stability: stable
11461 TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
11462 // erlang
11463 // Stability: stable
11464 TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
11465 // go
11466 // Stability: stable
11467 TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
11468 // java
11469 // Stability: stable
11470 TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
11471 // nodejs
11472 // Stability: stable
11473 TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
11474 // php
11475 // Stability: stable
11476 TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
11477 // python
11478 // Stability: stable
11479 TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
11480 // ruby
11481 // Stability: stable
11482 TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
11483 // rust
11484 // Stability: stable
11485 TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
11486 // swift
11487 // Stability: stable
11488 TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
11489 // webjs
11490 // Stability: stable
11491 TelemetrySDKLanguageWebJS = TelemetrySDKLanguageKey.String("webjs")
11492 )
11493
11494 // Namespace: test
11495 const (
11496 // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
11497 // semantic conventions. It represents the fully qualified human readable name
11498 // of the [test case].
11499 //
11500 // Type: string
11501 // RequirementLevel: Recommended
11502 // Stability: Development
11503 //
11504 // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
11505 // "ExampleTestCase1_test1"
11506 //
11507 // [test case]: https://wikipedia.org/wiki/Test_case
11508 TestCaseNameKey = attribute.Key("test.case.name")
11509
11510 // TestCaseResultStatusKey is the attribute Key conforming to the
11511 // "test.case.result.status" semantic conventions. It represents the status of
11512 // the actual test case result from test execution.
11513 //
11514 // Type: Enum
11515 // RequirementLevel: Recommended
11516 // Stability: Development
11517 //
11518 // Examples: "pass", "fail"
11519 TestCaseResultStatusKey = attribute.Key("test.case.result.status")
11520
11521 // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
11522 // semantic conventions. It represents the human readable name of a [test suite]
11523 // .
11524 //
11525 // Type: string
11526 // RequirementLevel: Recommended
11527 // Stability: Development
11528 //
11529 // Examples: "TestSuite1"
11530 //
11531 // [test suite]: https://wikipedia.org/wiki/Test_suite
11532 TestSuiteNameKey = attribute.Key("test.suite.name")
11533
11534 // TestSuiteRunStatusKey is the attribute Key conforming to the
11535 // "test.suite.run.status" semantic conventions. It represents the status of the
11536 // test suite run.
11537 //
11538 // Type: Enum
11539 // RequirementLevel: Recommended
11540 // Stability: Development
11541 //
11542 // Examples: "success", "failure", "skipped", "aborted", "timed_out",
11543 // "in_progress"
11544 TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
11545 )
11546
11547 // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
11548 // semantic conventions. It represents the fully qualified human readable name of
11549 // the [test case].
11550 //
11551 // [test case]: https://wikipedia.org/wiki/Test_case
11552 func TestCaseName(val string) attribute.KeyValue {
11553 return TestCaseNameKey.String(val)
11554 }
11555
11556 // TestSuiteName returns an attribute KeyValue conforming to the
11557 // "test.suite.name" semantic conventions. It represents the human readable name
11558 // of a [test suite].
11559 //
11560 // [test suite]: https://wikipedia.org/wiki/Test_suite
11561 func TestSuiteName(val string) attribute.KeyValue {
11562 return TestSuiteNameKey.String(val)
11563 }
11564
11565 // Enum values for test.case.result.status
11566 var (
11567 // pass
11568 // Stability: development
11569 TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
11570 // fail
11571 // Stability: development
11572 TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
11573 )
11574
11575 // Enum values for test.suite.run.status
11576 var (
11577 // success
11578 // Stability: development
11579 TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
11580 // failure
11581 // Stability: development
11582 TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
11583 // skipped
11584 // Stability: development
11585 TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
11586 // aborted
11587 // Stability: development
11588 TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
11589 // timed_out
11590 // Stability: development
11591 TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
11592 // in_progress
11593 // Stability: development
11594 TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
11595 )
11596
11597 // Namespace: thread
11598 const (
11599 // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
11600 // conventions. It represents the current "managed" thread ID (as opposed to OS
11601 // thread ID).
11602 //
11603 // Type: int
11604 // RequirementLevel: Recommended
11605 // Stability: Development
11606 ThreadIDKey = attribute.Key("thread.id")
11607
11608 // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
11609 // conventions. It represents the current thread name.
11610 //
11611 // Type: string
11612 // RequirementLevel: Recommended
11613 // Stability: Development
11614 //
11615 // Examples: main
11616 ThreadNameKey = attribute.Key("thread.name")
11617 )
11618
11619 // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
11620 // conventions. It represents the current "managed" thread ID (as opposed to OS
11621 // thread ID).
11622 func ThreadID(val int) attribute.KeyValue {
11623 return ThreadIDKey.Int(val)
11624 }
11625
11626 // ThreadName returns an attribute KeyValue conforming to the "thread.name"
11627 // semantic conventions. It represents the current thread name.
11628 func ThreadName(val string) attribute.KeyValue {
11629 return ThreadNameKey.String(val)
11630 }
11631
11632 // Namespace: tls
11633 const (
11634 // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
11635 // conventions. It represents the string indicating the [cipher] used during the
11636 // current connection.
11637 //
11638 // Type: string
11639 // RequirementLevel: Recommended
11640 // Stability: Development
11641 //
11642 // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
11643 // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
11644 // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
11645 // of the [registered TLS Cipher Suits].
11646 //
11647 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
11648 // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
11649 TLSCipherKey = attribute.Key("tls.cipher")
11650
11651 // TLSClientCertificateKey is the attribute Key conforming to the
11652 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
11653 // stand-alone certificate offered by the client. This is usually
11654 // mutually-exclusive of `client.certificate_chain` since this value also exists
11655 // in that list.
11656 //
11657 // Type: string
11658 // RequirementLevel: Recommended
11659 // Stability: Development
11660 //
11661 // Examples: "MII..."
11662 TLSClientCertificateKey = attribute.Key("tls.client.certificate")
11663
11664 // TLSClientCertificateChainKey is the attribute Key conforming to the
11665 // "tls.client.certificate_chain" semantic conventions. It represents the array
11666 // of PEM-encoded certificates that make up the certificate chain offered by the
11667 // client. This is usually mutually-exclusive of `client.certificate` since that
11668 // value should be the first certificate in the chain.
11669 //
11670 // Type: string[]
11671 // RequirementLevel: Recommended
11672 // Stability: Development
11673 //
11674 // Examples: "MII...", "MI..."
11675 TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
11676
11677 // TLSClientHashMd5Key is the attribute Key conforming to the
11678 // "tls.client.hash.md5" semantic conventions. It represents the certificate
11679 // fingerprint using the MD5 digest of DER-encoded version of certificate
11680 // offered by the client. For consistency with other hash values, this value
11681 // should be formatted as an uppercase hash.
11682 //
11683 // Type: string
11684 // RequirementLevel: Recommended
11685 // Stability: Development
11686 //
11687 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
11688 TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
11689
11690 // TLSClientHashSha1Key is the attribute Key conforming to the
11691 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
11692 // fingerprint using the SHA1 digest of DER-encoded version of certificate
11693 // offered by the client. For consistency with other hash values, this value
11694 // should be formatted as an uppercase hash.
11695 //
11696 // Type: string
11697 // RequirementLevel: Recommended
11698 // Stability: Development
11699 //
11700 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
11701 TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
11702
11703 // TLSClientHashSha256Key is the attribute Key conforming to the
11704 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
11705 // fingerprint using the SHA256 digest of DER-encoded version of certificate
11706 // offered by the client. For consistency with other hash values, this value
11707 // should be formatted as an uppercase hash.
11708 //
11709 // Type: string
11710 // RequirementLevel: Recommended
11711 // Stability: Development
11712 //
11713 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
11714 TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
11715
11716 // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
11717 // semantic conventions. It represents the distinguished name of [subject] of
11718 // the issuer of the x.509 certificate presented by the client.
11719 //
11720 // Type: string
11721 // RequirementLevel: Recommended
11722 // Stability: Development
11723 //
11724 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
11725 //
11726 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
11727 TLSClientIssuerKey = attribute.Key("tls.client.issuer")
11728
11729 // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
11730 // semantic conventions. It represents a hash that identifies clients based on
11731 // how they perform an SSL/TLS handshake.
11732 //
11733 // Type: string
11734 // RequirementLevel: Recommended
11735 // Stability: Development
11736 //
11737 // Examples: "d4e5b18d6b55c71272893221c96ba240"
11738 TLSClientJa3Key = attribute.Key("tls.client.ja3")
11739
11740 // TLSClientNotAfterKey is the attribute Key conforming to the
11741 // "tls.client.not_after" semantic conventions. It represents the date/Time
11742 // indicating when client certificate is no longer considered valid.
11743 //
11744 // Type: string
11745 // RequirementLevel: Recommended
11746 // Stability: Development
11747 //
11748 // Examples: "2021-01-01T00:00:00.000Z"
11749 TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
11750
11751 // TLSClientNotBeforeKey is the attribute Key conforming to the
11752 // "tls.client.not_before" semantic conventions. It represents the date/Time
11753 // indicating when client certificate is first considered valid.
11754 //
11755 // Type: string
11756 // RequirementLevel: Recommended
11757 // Stability: Development
11758 //
11759 // Examples: "1970-01-01T00:00:00.000Z"
11760 TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
11761
11762 // TLSClientSubjectKey is the attribute Key conforming to the
11763 // "tls.client.subject" semantic conventions. It represents the distinguished
11764 // name of subject of the x.509 certificate presented by the client.
11765 //
11766 // Type: string
11767 // RequirementLevel: Recommended
11768 // Stability: Development
11769 //
11770 // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
11771 TLSClientSubjectKey = attribute.Key("tls.client.subject")
11772
11773 // TLSClientSupportedCiphersKey is the attribute Key conforming to the
11774 // "tls.client.supported_ciphers" semantic conventions. It represents the array
11775 // of ciphers offered by the client during the client hello.
11776 //
11777 // Type: string[]
11778 // RequirementLevel: Recommended
11779 // Stability: Development
11780 //
11781 // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
11782 // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
11783 TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
11784
11785 // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
11786 // conventions. It represents the string indicating the curve used for the given
11787 // cipher, when applicable.
11788 //
11789 // Type: string
11790 // RequirementLevel: Recommended
11791 // Stability: Development
11792 //
11793 // Examples: "secp256r1"
11794 TLSCurveKey = attribute.Key("tls.curve")
11795
11796 // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
11797 // semantic conventions. It represents the boolean flag indicating if the TLS
11798 // negotiation was successful and transitioned to an encrypted tunnel.
11799 //
11800 // Type: boolean
11801 // RequirementLevel: Recommended
11802 // Stability: Development
11803 //
11804 // Examples: true
11805 TLSEstablishedKey = attribute.Key("tls.established")
11806
11807 // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
11808 // semantic conventions. It represents the string indicating the protocol being
11809 // tunneled. Per the values in the [IANA registry], this string should be lower
11810 // case.
11811 //
11812 // Type: string
11813 // RequirementLevel: Recommended
11814 // Stability: Development
11815 //
11816 // Examples: "http/1.1"
11817 //
11818 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
11819 TLSNextProtocolKey = attribute.Key("tls.next_protocol")
11820
11821 // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
11822 // semantic conventions. It represents the normalized lowercase protocol name
11823 // parsed from original string of the negotiated [SSL/TLS protocol version].
11824 //
11825 // Type: Enum
11826 // RequirementLevel: Recommended
11827 // Stability: Development
11828 //
11829 // Examples:
11830 //
11831 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
11832 TLSProtocolNameKey = attribute.Key("tls.protocol.name")
11833
11834 // TLSProtocolVersionKey is the attribute Key conforming to the
11835 // "tls.protocol.version" semantic conventions. It represents the numeric part
11836 // of the version parsed from the original string of the negotiated
11837 // [SSL/TLS protocol version].
11838 //
11839 // Type: string
11840 // RequirementLevel: Recommended
11841 // Stability: Development
11842 //
11843 // Examples: "1.2", "3"
11844 //
11845 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
11846 TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
11847
11848 // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
11849 // conventions. It represents the boolean flag indicating if this TLS connection
11850 // was resumed from an existing TLS negotiation.
11851 //
11852 // Type: boolean
11853 // RequirementLevel: Recommended
11854 // Stability: Development
11855 //
11856 // Examples: true
11857 TLSResumedKey = attribute.Key("tls.resumed")
11858
11859 // TLSServerCertificateKey is the attribute Key conforming to the
11860 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
11861 // stand-alone certificate offered by the server. This is usually
11862 // mutually-exclusive of `server.certificate_chain` since this value also exists
11863 // in that list.
11864 //
11865 // Type: string
11866 // RequirementLevel: Recommended
11867 // Stability: Development
11868 //
11869 // Examples: "MII..."
11870 TLSServerCertificateKey = attribute.Key("tls.server.certificate")
11871
11872 // TLSServerCertificateChainKey is the attribute Key conforming to the
11873 // "tls.server.certificate_chain" semantic conventions. It represents the array
11874 // of PEM-encoded certificates that make up the certificate chain offered by the
11875 // server. This is usually mutually-exclusive of `server.certificate` since that
11876 // value should be the first certificate in the chain.
11877 //
11878 // Type: string[]
11879 // RequirementLevel: Recommended
11880 // Stability: Development
11881 //
11882 // Examples: "MII...", "MI..."
11883 TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
11884
11885 // TLSServerHashMd5Key is the attribute Key conforming to the
11886 // "tls.server.hash.md5" semantic conventions. It represents the certificate
11887 // fingerprint using the MD5 digest of DER-encoded version of certificate
11888 // offered by the server. For consistency with other hash values, this value
11889 // should be formatted as an uppercase hash.
11890 //
11891 // Type: string
11892 // RequirementLevel: Recommended
11893 // Stability: Development
11894 //
11895 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
11896 TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
11897
11898 // TLSServerHashSha1Key is the attribute Key conforming to the
11899 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
11900 // fingerprint using the SHA1 digest of DER-encoded version of certificate
11901 // offered by the server. For consistency with other hash values, this value
11902 // should be formatted as an uppercase hash.
11903 //
11904 // Type: string
11905 // RequirementLevel: Recommended
11906 // Stability: Development
11907 //
11908 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
11909 TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
11910
11911 // TLSServerHashSha256Key is the attribute Key conforming to the
11912 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
11913 // fingerprint using the SHA256 digest of DER-encoded version of certificate
11914 // offered by the server. For consistency with other hash values, this value
11915 // should be formatted as an uppercase hash.
11916 //
11917 // Type: string
11918 // RequirementLevel: Recommended
11919 // Stability: Development
11920 //
11921 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
11922 TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
11923
11924 // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
11925 // semantic conventions. It represents the distinguished name of [subject] of
11926 // the issuer of the x.509 certificate presented by the client.
11927 //
11928 // Type: string
11929 // RequirementLevel: Recommended
11930 // Stability: Development
11931 //
11932 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
11933 //
11934 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
11935 TLSServerIssuerKey = attribute.Key("tls.server.issuer")
11936
11937 // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
11938 // semantic conventions. It represents a hash that identifies servers based on
11939 // how they perform an SSL/TLS handshake.
11940 //
11941 // Type: string
11942 // RequirementLevel: Recommended
11943 // Stability: Development
11944 //
11945 // Examples: "d4e5b18d6b55c71272893221c96ba240"
11946 TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
11947
11948 // TLSServerNotAfterKey is the attribute Key conforming to the
11949 // "tls.server.not_after" semantic conventions. It represents the date/Time
11950 // indicating when server certificate is no longer considered valid.
11951 //
11952 // Type: string
11953 // RequirementLevel: Recommended
11954 // Stability: Development
11955 //
11956 // Examples: "2021-01-01T00:00:00.000Z"
11957 TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
11958
11959 // TLSServerNotBeforeKey is the attribute Key conforming to the
11960 // "tls.server.not_before" semantic conventions. It represents the date/Time
11961 // indicating when server certificate is first considered valid.
11962 //
11963 // Type: string
11964 // RequirementLevel: Recommended
11965 // Stability: Development
11966 //
11967 // Examples: "1970-01-01T00:00:00.000Z"
11968 TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
11969
11970 // TLSServerSubjectKey is the attribute Key conforming to the
11971 // "tls.server.subject" semantic conventions. It represents the distinguished
11972 // name of subject of the x.509 certificate presented by the server.
11973 //
11974 // Type: string
11975 // RequirementLevel: Recommended
11976 // Stability: Development
11977 //
11978 // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
11979 TLSServerSubjectKey = attribute.Key("tls.server.subject")
11980 )
11981
11982 // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
11983 // semantic conventions. It represents the string indicating the [cipher] used
11984 // during the current connection.
11985 //
11986 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
11987 func TLSCipher(val string) attribute.KeyValue {
11988 return TLSCipherKey.String(val)
11989 }
11990
11991 // TLSClientCertificate returns an attribute KeyValue conforming to the
11992 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
11993 // stand-alone certificate offered by the client. This is usually
11994 // mutually-exclusive of `client.certificate_chain` since this value also exists
11995 // in that list.
11996 func TLSClientCertificate(val string) attribute.KeyValue {
11997 return TLSClientCertificateKey.String(val)
11998 }
11999
12000 // TLSClientCertificateChain returns an attribute KeyValue conforming to the
12001 // "tls.client.certificate_chain" semantic conventions. It represents the array
12002 // of PEM-encoded certificates that make up the certificate chain offered by the
12003 // client. This is usually mutually-exclusive of `client.certificate` since that
12004 // value should be the first certificate in the chain.
12005 func TLSClientCertificateChain(val ...string) attribute.KeyValue {
12006 return TLSClientCertificateChainKey.StringSlice(val)
12007 }
12008
12009 // TLSClientHashMd5 returns an attribute KeyValue conforming to the
12010 // "tls.client.hash.md5" semantic conventions. It represents the certificate
12011 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
12012 // by the client. For consistency with other hash values, this value should be
12013 // formatted as an uppercase hash.
12014 func TLSClientHashMd5(val string) attribute.KeyValue {
12015 return TLSClientHashMd5Key.String(val)
12016 }
12017
12018 // TLSClientHashSha1 returns an attribute KeyValue conforming to the
12019 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
12020 // fingerprint using the SHA1 digest of DER-encoded version of certificate
12021 // offered by the client. For consistency with other hash values, this value
12022 // should be formatted as an uppercase hash.
12023 func TLSClientHashSha1(val string) attribute.KeyValue {
12024 return TLSClientHashSha1Key.String(val)
12025 }
12026
12027 // TLSClientHashSha256 returns an attribute KeyValue conforming to the
12028 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
12029 // fingerprint using the SHA256 digest of DER-encoded version of certificate
12030 // offered by the client. For consistency with other hash values, this value
12031 // should be formatted as an uppercase hash.
12032 func TLSClientHashSha256(val string) attribute.KeyValue {
12033 return TLSClientHashSha256Key.String(val)
12034 }
12035
12036 // TLSClientIssuer returns an attribute KeyValue conforming to the
12037 // "tls.client.issuer" semantic conventions. It represents the distinguished name
12038 // of [subject] of the issuer of the x.509 certificate presented by the client.
12039 //
12040 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
12041 func TLSClientIssuer(val string) attribute.KeyValue {
12042 return TLSClientIssuerKey.String(val)
12043 }
12044
12045 // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
12046 // semantic conventions. It represents a hash that identifies clients based on
12047 // how they perform an SSL/TLS handshake.
12048 func TLSClientJa3(val string) attribute.KeyValue {
12049 return TLSClientJa3Key.String(val)
12050 }
12051
12052 // TLSClientNotAfter returns an attribute KeyValue conforming to the
12053 // "tls.client.not_after" semantic conventions. It represents the date/Time
12054 // indicating when client certificate is no longer considered valid.
12055 func TLSClientNotAfter(val string) attribute.KeyValue {
12056 return TLSClientNotAfterKey.String(val)
12057 }
12058
12059 // TLSClientNotBefore returns an attribute KeyValue conforming to the
12060 // "tls.client.not_before" semantic conventions. It represents the date/Time
12061 // indicating when client certificate is first considered valid.
12062 func TLSClientNotBefore(val string) attribute.KeyValue {
12063 return TLSClientNotBeforeKey.String(val)
12064 }
12065
12066 // TLSClientSubject returns an attribute KeyValue conforming to the
12067 // "tls.client.subject" semantic conventions. It represents the distinguished
12068 // name of subject of the x.509 certificate presented by the client.
12069 func TLSClientSubject(val string) attribute.KeyValue {
12070 return TLSClientSubjectKey.String(val)
12071 }
12072
12073 // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
12074 // "tls.client.supported_ciphers" semantic conventions. It represents the array
12075 // of ciphers offered by the client during the client hello.
12076 func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
12077 return TLSClientSupportedCiphersKey.StringSlice(val)
12078 }
12079
12080 // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
12081 // conventions. It represents the string indicating the curve used for the given
12082 // cipher, when applicable.
12083 func TLSCurve(val string) attribute.KeyValue {
12084 return TLSCurveKey.String(val)
12085 }
12086
12087 // TLSEstablished returns an attribute KeyValue conforming to the
12088 // "tls.established" semantic conventions. It represents the boolean flag
12089 // indicating if the TLS negotiation was successful and transitioned to an
12090 // encrypted tunnel.
12091 func TLSEstablished(val bool) attribute.KeyValue {
12092 return TLSEstablishedKey.Bool(val)
12093 }
12094
12095 // TLSNextProtocol returns an attribute KeyValue conforming to the
12096 // "tls.next_protocol" semantic conventions. It represents the string indicating
12097 // the protocol being tunneled. Per the values in the [IANA registry], this
12098 // string should be lower case.
12099 //
12100 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
12101 func TLSNextProtocol(val string) attribute.KeyValue {
12102 return TLSNextProtocolKey.String(val)
12103 }
12104
12105 // TLSProtocolVersion returns an attribute KeyValue conforming to the
12106 // "tls.protocol.version" semantic conventions. It represents the numeric part of
12107 // the version parsed from the original string of the negotiated
12108 // [SSL/TLS protocol version].
12109 //
12110 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
12111 func TLSProtocolVersion(val string) attribute.KeyValue {
12112 return TLSProtocolVersionKey.String(val)
12113 }
12114
12115 // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
12116 // semantic conventions. It represents the boolean flag indicating if this TLS
12117 // connection was resumed from an existing TLS negotiation.
12118 func TLSResumed(val bool) attribute.KeyValue {
12119 return TLSResumedKey.Bool(val)
12120 }
12121
12122 // TLSServerCertificate returns an attribute KeyValue conforming to the
12123 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
12124 // stand-alone certificate offered by the server. This is usually
12125 // mutually-exclusive of `server.certificate_chain` since this value also exists
12126 // in that list.
12127 func TLSServerCertificate(val string) attribute.KeyValue {
12128 return TLSServerCertificateKey.String(val)
12129 }
12130
12131 // TLSServerCertificateChain returns an attribute KeyValue conforming to the
12132 // "tls.server.certificate_chain" semantic conventions. It represents the array
12133 // of PEM-encoded certificates that make up the certificate chain offered by the
12134 // server. This is usually mutually-exclusive of `server.certificate` since that
12135 // value should be the first certificate in the chain.
12136 func TLSServerCertificateChain(val ...string) attribute.KeyValue {
12137 return TLSServerCertificateChainKey.StringSlice(val)
12138 }
12139
12140 // TLSServerHashMd5 returns an attribute KeyValue conforming to the
12141 // "tls.server.hash.md5" semantic conventions. It represents the certificate
12142 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
12143 // by the server. For consistency with other hash values, this value should be
12144 // formatted as an uppercase hash.
12145 func TLSServerHashMd5(val string) attribute.KeyValue {
12146 return TLSServerHashMd5Key.String(val)
12147 }
12148
12149 // TLSServerHashSha1 returns an attribute KeyValue conforming to the
12150 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
12151 // fingerprint using the SHA1 digest of DER-encoded version of certificate
12152 // offered by the server. For consistency with other hash values, this value
12153 // should be formatted as an uppercase hash.
12154 func TLSServerHashSha1(val string) attribute.KeyValue {
12155 return TLSServerHashSha1Key.String(val)
12156 }
12157
12158 // TLSServerHashSha256 returns an attribute KeyValue conforming to the
12159 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
12160 // fingerprint using the SHA256 digest of DER-encoded version of certificate
12161 // offered by the server. For consistency with other hash values, this value
12162 // should be formatted as an uppercase hash.
12163 func TLSServerHashSha256(val string) attribute.KeyValue {
12164 return TLSServerHashSha256Key.String(val)
12165 }
12166
12167 // TLSServerIssuer returns an attribute KeyValue conforming to the
12168 // "tls.server.issuer" semantic conventions. It represents the distinguished name
12169 // of [subject] of the issuer of the x.509 certificate presented by the client.
12170 //
12171 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
12172 func TLSServerIssuer(val string) attribute.KeyValue {
12173 return TLSServerIssuerKey.String(val)
12174 }
12175
12176 // TLSServerJa3s returns an attribute KeyValue conforming to the
12177 // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
12178 // servers based on how they perform an SSL/TLS handshake.
12179 func TLSServerJa3s(val string) attribute.KeyValue {
12180 return TLSServerJa3sKey.String(val)
12181 }
12182
12183 // TLSServerNotAfter returns an attribute KeyValue conforming to the
12184 // "tls.server.not_after" semantic conventions. It represents the date/Time
12185 // indicating when server certificate is no longer considered valid.
12186 func TLSServerNotAfter(val string) attribute.KeyValue {
12187 return TLSServerNotAfterKey.String(val)
12188 }
12189
12190 // TLSServerNotBefore returns an attribute KeyValue conforming to the
12191 // "tls.server.not_before" semantic conventions. It represents the date/Time
12192 // indicating when server certificate is first considered valid.
12193 func TLSServerNotBefore(val string) attribute.KeyValue {
12194 return TLSServerNotBeforeKey.String(val)
12195 }
12196
12197 // TLSServerSubject returns an attribute KeyValue conforming to the
12198 // "tls.server.subject" semantic conventions. It represents the distinguished
12199 // name of subject of the x.509 certificate presented by the server.
12200 func TLSServerSubject(val string) attribute.KeyValue {
12201 return TLSServerSubjectKey.String(val)
12202 }
12203
12204 // Enum values for tls.protocol.name
12205 var (
12206 // ssl
12207 // Stability: development
12208 TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
12209 // tls
12210 // Stability: development
12211 TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
12212 )
12213
12214 // Namespace: url
12215 const (
12216 // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
12217 // conventions. It represents the domain extracted from the `url.full`, such as
12218 // "opentelemetry.io".
12219 //
12220 // Type: string
12221 // RequirementLevel: Recommended
12222 // Stability: Development
12223 //
12224 // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
12225 // "[1080:0:0:0:8:800:200C:417A]"
12226 // Note: In some cases a URL may refer to an IP and/or port directly, without a
12227 // domain name. In this case, the IP address would go to the domain field. If
12228 // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
12229 // and `]` characters should also be captured in the domain field.
12230 //
12231 // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
12232 URLDomainKey = attribute.Key("url.domain")
12233
12234 // URLExtensionKey is the attribute Key conforming to the "url.extension"
12235 // semantic conventions. It represents the file extension extracted from the
12236 // `url.full`, excluding the leading dot.
12237 //
12238 // Type: string
12239 // RequirementLevel: Recommended
12240 // Stability: Development
12241 //
12242 // Examples: "png", "gz"
12243 // Note: The file extension is only set if it exists, as not every url has a
12244 // file extension. When the file name has multiple extensions `example.tar.gz`,
12245 // only the last one should be captured `gz`, not `tar.gz`.
12246 URLExtensionKey = attribute.Key("url.extension")
12247
12248 // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
12249 // conventions. It represents the [URI fragment] component.
12250 //
12251 // Type: string
12252 // RequirementLevel: Recommended
12253 // Stability: Stable
12254 //
12255 // Examples: "SemConv"
12256 //
12257 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
12258 URLFragmentKey = attribute.Key("url.fragment")
12259
12260 // URLFullKey is the attribute Key conforming to the "url.full" semantic
12261 // conventions. It represents the absolute URL describing a network resource
12262 // according to [RFC3986].
12263 //
12264 // Type: string
12265 // RequirementLevel: Recommended
12266 // Stability: Stable
12267 //
12268 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
12269 // Note: For network calls, URL usually has
12270 // `scheme://host[:port][path][?query][#fragment]` format, where the fragment
12271 // is not transmitted over HTTP, but if it is known, it SHOULD be included
12272 // nevertheless.
12273 //
12274 // `url.full` MUST NOT contain credentials passed via URL in form of
12275 // `https://username:[email protected]/`.
12276 // In such case username and password SHOULD be redacted and attribute's value
12277 // SHOULD be `https://REDACTED:[email protected]/`.
12278 //
12279 // `url.full` SHOULD capture the absolute URL when it is available (or can be
12280 // reconstructed).
12281 //
12282 // Sensitive content provided in `url.full` SHOULD be scrubbed when
12283 // instrumentations can identify it.
12284 //
12285 //
12286 // Query string values for the following keys SHOULD be redacted by default and
12287 // replaced by the
12288 // value `REDACTED`:
12289 //
12290 // - [`AWSAccessKeyId`]
12291 // - [`Signature`]
12292 // - [`sig`]
12293 // - [`X-Goog-Signature`]
12294 //
12295 // This list is subject to change over time.
12296 //
12297 // When a query string value is redacted, the query string key SHOULD still be
12298 // preserved, e.g.
12299 // `https://www.example.com/path?color=blue&sig=REDACTED`.
12300 //
12301 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
12302 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
12303 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
12304 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
12305 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
12306 URLFullKey = attribute.Key("url.full")
12307
12308 // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
12309 // conventions. It represents the unmodified original URL as seen in the event
12310 // source.
12311 //
12312 // Type: string
12313 // RequirementLevel: Recommended
12314 // Stability: Development
12315 //
12316 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
12317 // "search?q=OpenTelemetry"
12318 // Note: In network monitoring, the observed URL may be a full URL, whereas in
12319 // access logs, the URL is often just represented as a path. This field is meant
12320 // to represent the URL as it was observed, complete or not.
12321 // `url.original` might contain credentials passed via URL in form of
12322 // `https://username:[email protected]/`. In such case password and
12323 // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
12324 URLOriginalKey = attribute.Key("url.original")
12325
12326 // URLPathKey is the attribute Key conforming to the "url.path" semantic
12327 // conventions. It represents the [URI path] component.
12328 //
12329 // Type: string
12330 // RequirementLevel: Recommended
12331 // Stability: Stable
12332 //
12333 // Examples: "/search"
12334 // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
12335 // instrumentations can identify it.
12336 //
12337 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
12338 URLPathKey = attribute.Key("url.path")
12339
12340 // URLPortKey is the attribute Key conforming to the "url.port" semantic
12341 // conventions. It represents the port extracted from the `url.full`.
12342 //
12343 // Type: int
12344 // RequirementLevel: Recommended
12345 // Stability: Development
12346 //
12347 // Examples: 443
12348 URLPortKey = attribute.Key("url.port")
12349
12350 // URLQueryKey is the attribute Key conforming to the "url.query" semantic
12351 // conventions. It represents the [URI query] component.
12352 //
12353 // Type: string
12354 // RequirementLevel: Recommended
12355 // Stability: Stable
12356 //
12357 // Examples: "q=OpenTelemetry"
12358 // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
12359 // instrumentations can identify it.
12360 //
12361 //
12362 // Query string values for the following keys SHOULD be redacted by default and
12363 // replaced by the value `REDACTED`:
12364 //
12365 // - [`AWSAccessKeyId`]
12366 // - [`Signature`]
12367 // - [`sig`]
12368 // - [`X-Goog-Signature`]
12369 //
12370 // This list is subject to change over time.
12371 //
12372 // When a query string value is redacted, the query string key SHOULD still be
12373 // preserved, e.g.
12374 // `q=OpenTelemetry&sig=REDACTED`.
12375 //
12376 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
12377 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
12378 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
12379 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
12380 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
12381 URLQueryKey = attribute.Key("url.query")
12382
12383 // URLRegisteredDomainKey is the attribute Key conforming to the
12384 // "url.registered_domain" semantic conventions. It represents the highest
12385 // registered url domain, stripped of the subdomain.
12386 //
12387 // Type: string
12388 // RequirementLevel: Recommended
12389 // Stability: Development
12390 //
12391 // Examples: "example.com", "foo.co.uk"
12392 // Note: This value can be determined precisely with the [public suffix list].
12393 // For example, the registered domain for `foo.example.com` is `example.com`.
12394 // Trying to approximate this by simply taking the last two labels will not work
12395 // well for TLDs such as `co.uk`.
12396 //
12397 // [public suffix list]: https://publicsuffix.org/
12398 URLRegisteredDomainKey = attribute.Key("url.registered_domain")
12399
12400 // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
12401 // conventions. It represents the [URI scheme] component identifying the used
12402 // protocol.
12403 //
12404 // Type: string
12405 // RequirementLevel: Recommended
12406 // Stability: Stable
12407 //
12408 // Examples: "https", "ftp", "telnet"
12409 //
12410 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
12411 URLSchemeKey = attribute.Key("url.scheme")
12412
12413 // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
12414 // semantic conventions. It represents the subdomain portion of a fully
12415 // qualified domain name includes all of the names except the host name under
12416 // the registered_domain. In a partially qualified domain, or if the
12417 // qualification level of the full name cannot be determined, subdomain contains
12418 // all of the names below the registered domain.
12419 //
12420 // Type: string
12421 // RequirementLevel: Recommended
12422 // Stability: Development
12423 //
12424 // Examples: "east", "sub2.sub1"
12425 // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
12426 // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
12427 // subdomain field should contain `sub2.sub1`, with no trailing period.
12428 URLSubdomainKey = attribute.Key("url.subdomain")
12429
12430 // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
12431 // conventions. It represents the low-cardinality template of an
12432 // [absolute path reference].
12433 //
12434 // Type: string
12435 // RequirementLevel: Recommended
12436 // Stability: Development
12437 //
12438 // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
12439 //
12440 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
12441 URLTemplateKey = attribute.Key("url.template")
12442
12443 // URLTopLevelDomainKey is the attribute Key conforming to the
12444 // "url.top_level_domain" semantic conventions. It represents the effective top
12445 // level domain (eTLD), also known as the domain suffix, is the last part of the
12446 // domain name. For example, the top level domain for example.com is `com`.
12447 //
12448 // Type: string
12449 // RequirementLevel: Recommended
12450 // Stability: Development
12451 //
12452 // Examples: "com", "co.uk"
12453 // Note: This value can be determined precisely with the [public suffix list].
12454 //
12455 // [public suffix list]: https://publicsuffix.org/
12456 URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
12457 )
12458
12459 // URLDomain returns an attribute KeyValue conforming to the "url.domain"
12460 // semantic conventions. It represents the domain extracted from the `url.full`,
12461 // such as "opentelemetry.io".
12462 func URLDomain(val string) attribute.KeyValue {
12463 return URLDomainKey.String(val)
12464 }
12465
12466 // URLExtension returns an attribute KeyValue conforming to the "url.extension"
12467 // semantic conventions. It represents the file extension extracted from the
12468 // `url.full`, excluding the leading dot.
12469 func URLExtension(val string) attribute.KeyValue {
12470 return URLExtensionKey.String(val)
12471 }
12472
12473 // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
12474 // semantic conventions. It represents the [URI fragment] component.
12475 //
12476 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
12477 func URLFragment(val string) attribute.KeyValue {
12478 return URLFragmentKey.String(val)
12479 }
12480
12481 // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
12482 // conventions. It represents the absolute URL describing a network resource
12483 // according to [RFC3986].
12484 //
12485 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
12486 func URLFull(val string) attribute.KeyValue {
12487 return URLFullKey.String(val)
12488 }
12489
12490 // URLOriginal returns an attribute KeyValue conforming to the "url.original"
12491 // semantic conventions. It represents the unmodified original URL as seen in the
12492 // event source.
12493 func URLOriginal(val string) attribute.KeyValue {
12494 return URLOriginalKey.String(val)
12495 }
12496
12497 // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
12498 // conventions. It represents the [URI path] component.
12499 //
12500 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
12501 func URLPath(val string) attribute.KeyValue {
12502 return URLPathKey.String(val)
12503 }
12504
12505 // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
12506 // conventions. It represents the port extracted from the `url.full`.
12507 func URLPort(val int) attribute.KeyValue {
12508 return URLPortKey.Int(val)
12509 }
12510
12511 // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
12512 // conventions. It represents the [URI query] component.
12513 //
12514 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
12515 func URLQuery(val string) attribute.KeyValue {
12516 return URLQueryKey.String(val)
12517 }
12518
12519 // URLRegisteredDomain returns an attribute KeyValue conforming to the
12520 // "url.registered_domain" semantic conventions. It represents the highest
12521 // registered url domain, stripped of the subdomain.
12522 func URLRegisteredDomain(val string) attribute.KeyValue {
12523 return URLRegisteredDomainKey.String(val)
12524 }
12525
12526 // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
12527 // semantic conventions. It represents the [URI scheme] component identifying the
12528 // used protocol.
12529 //
12530 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
12531 func URLScheme(val string) attribute.KeyValue {
12532 return URLSchemeKey.String(val)
12533 }
12534
12535 // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
12536 // semantic conventions. It represents the subdomain portion of a fully qualified
12537 // domain name includes all of the names except the host name under the
12538 // registered_domain. In a partially qualified domain, or if the qualification
12539 // level of the full name cannot be determined, subdomain contains all of the
12540 // names below the registered domain.
12541 func URLSubdomain(val string) attribute.KeyValue {
12542 return URLSubdomainKey.String(val)
12543 }
12544
12545 // URLTemplate returns an attribute KeyValue conforming to the "url.template"
12546 // semantic conventions. It represents the low-cardinality template of an
12547 // [absolute path reference].
12548 //
12549 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
12550 func URLTemplate(val string) attribute.KeyValue {
12551 return URLTemplateKey.String(val)
12552 }
12553
12554 // URLTopLevelDomain returns an attribute KeyValue conforming to the
12555 // "url.top_level_domain" semantic conventions. It represents the effective top
12556 // level domain (eTLD), also known as the domain suffix, is the last part of the
12557 // domain name. For example, the top level domain for example.com is `com`.
12558 func URLTopLevelDomain(val string) attribute.KeyValue {
12559 return URLTopLevelDomainKey.String(val)
12560 }
12561
12562 // Namespace: user
12563 const (
12564 // UserEmailKey is the attribute Key conforming to the "user.email" semantic
12565 // conventions. It represents the user email address.
12566 //
12567 // Type: string
12568 // RequirementLevel: Recommended
12569 // Stability: Development
12570 //
12571 // Examples: "[email protected]"
12572 UserEmailKey = attribute.Key("user.email")
12573
12574 // UserFullNameKey is the attribute Key conforming to the "user.full_name"
12575 // semantic conventions. It represents the user's full name.
12576 //
12577 // Type: string
12578 // RequirementLevel: Recommended
12579 // Stability: Development
12580 //
12581 // Examples: "Albert Einstein"
12582 UserFullNameKey = attribute.Key("user.full_name")
12583
12584 // UserHashKey is the attribute Key conforming to the "user.hash" semantic
12585 // conventions. It represents the unique user hash to correlate information for
12586 // a user in anonymized form.
12587 //
12588 // Type: string
12589 // RequirementLevel: Recommended
12590 // Stability: Development
12591 //
12592 // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
12593 // Note: Useful if `user.id` or `user.name` contain confidential information and
12594 // cannot be used.
12595 UserHashKey = attribute.Key("user.hash")
12596
12597 // UserIDKey is the attribute Key conforming to the "user.id" semantic
12598 // conventions. It represents the unique identifier of the user.
12599 //
12600 // Type: string
12601 // RequirementLevel: Recommended
12602 // Stability: Development
12603 //
12604 // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
12605 UserIDKey = attribute.Key("user.id")
12606
12607 // UserNameKey is the attribute Key conforming to the "user.name" semantic
12608 // conventions. It represents the short name or login/username of the user.
12609 //
12610 // Type: string
12611 // RequirementLevel: Recommended
12612 // Stability: Development
12613 //
12614 // Examples: "a.einstein"
12615 UserNameKey = attribute.Key("user.name")
12616
12617 // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
12618 // conventions. It represents the array of user roles at the time of the event.
12619 //
12620 // Type: string[]
12621 // RequirementLevel: Recommended
12622 // Stability: Development
12623 //
12624 // Examples: "admin", "reporting_user"
12625 UserRolesKey = attribute.Key("user.roles")
12626 )
12627
12628 // UserEmail returns an attribute KeyValue conforming to the "user.email"
12629 // semantic conventions. It represents the user email address.
12630 func UserEmail(val string) attribute.KeyValue {
12631 return UserEmailKey.String(val)
12632 }
12633
12634 // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
12635 // semantic conventions. It represents the user's full name.
12636 func UserFullName(val string) attribute.KeyValue {
12637 return UserFullNameKey.String(val)
12638 }
12639
12640 // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
12641 // conventions. It represents the unique user hash to correlate information for a
12642 // user in anonymized form.
12643 func UserHash(val string) attribute.KeyValue {
12644 return UserHashKey.String(val)
12645 }
12646
12647 // UserID returns an attribute KeyValue conforming to the "user.id" semantic
12648 // conventions. It represents the unique identifier of the user.
12649 func UserID(val string) attribute.KeyValue {
12650 return UserIDKey.String(val)
12651 }
12652
12653 // UserName returns an attribute KeyValue conforming to the "user.name" semantic
12654 // conventions. It represents the short name or login/username of the user.
12655 func UserName(val string) attribute.KeyValue {
12656 return UserNameKey.String(val)
12657 }
12658
12659 // UserRoles returns an attribute KeyValue conforming to the "user.roles"
12660 // semantic conventions. It represents the array of user roles at the time of the
12661 // event.
12662 func UserRoles(val ...string) attribute.KeyValue {
12663 return UserRolesKey.StringSlice(val)
12664 }
12665
12666 // Namespace: user_agent
12667 const (
12668 // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
12669 // semantic conventions. It represents the name of the user-agent extracted from
12670 // original. Usually refers to the browser's name.
12671 //
12672 // Type: string
12673 // RequirementLevel: Recommended
12674 // Stability: Development
12675 //
12676 // Examples: "Safari", "YourApp"
12677 // Note: [Example] of extracting browser's name from original string. In the
12678 // case of using a user-agent for non-browser products, such as microservices
12679 // with multiple names/versions inside the `user_agent.original`, the most
12680 // significant name SHOULD be selected. In such a scenario it should align with
12681 // `user_agent.version`
12682 //
12683 // [Example]: https://www.whatsmyua.info
12684 UserAgentNameKey = attribute.Key("user_agent.name")
12685
12686 // UserAgentOriginalKey is the attribute Key conforming to the
12687 // "user_agent.original" semantic conventions. It represents the value of the
12688 // [HTTP User-Agent] header sent by the client.
12689 //
12690 // Type: string
12691 // RequirementLevel: Recommended
12692 // Stability: Stable
12693 //
12694 // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
12695 // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
12696 // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
12697 // grpc-java-okhttp/1.27.2"
12698 //
12699 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
12700 UserAgentOriginalKey = attribute.Key("user_agent.original")
12701
12702 // UserAgentOSNameKey is the attribute Key conforming to the
12703 // "user_agent.os.name" semantic conventions. It represents the human readable
12704 // operating system name.
12705 //
12706 // Type: string
12707 // RequirementLevel: Recommended
12708 // Stability: Development
12709 //
12710 // Examples: "iOS", "Android", "Ubuntu"
12711 // Note: For mapping user agent strings to OS names, libraries such as
12712 // [ua-parser] can be utilized.
12713 //
12714 // [ua-parser]: https://github.com/ua-parser
12715 UserAgentOSNameKey = attribute.Key("user_agent.os.name")
12716
12717 // UserAgentOSVersionKey is the attribute Key conforming to the
12718 // "user_agent.os.version" semantic conventions. It represents the version
12719 // string of the operating system as defined in [Version Attributes].
12720 //
12721 // Type: string
12722 // RequirementLevel: Recommended
12723 // Stability: Development
12724 //
12725 // Examples: "14.2.1", "18.04.1"
12726 // Note: For mapping user agent strings to OS versions, libraries such as
12727 // [ua-parser] can be utilized.
12728 //
12729 // [Version Attributes]: /docs/resource/README.md#version-attributes
12730 // [ua-parser]: https://github.com/ua-parser
12731 UserAgentOSVersionKey = attribute.Key("user_agent.os.version")
12732
12733 // UserAgentSyntheticTypeKey is the attribute Key conforming to the
12734 // "user_agent.synthetic.type" semantic conventions. It represents the specifies
12735 // the category of synthetic traffic, such as tests or bots.
12736 //
12737 // Type: Enum
12738 // RequirementLevel: Recommended
12739 // Stability: Development
12740 //
12741 // Examples:
12742 // Note: This attribute MAY be derived from the contents of the
12743 // `user_agent.original` attribute. Components that populate the attribute are
12744 // responsible for determining what they consider to be synthetic bot or test
12745 // traffic. This attribute can either be set for self-identification purposes,
12746 // or on telemetry detected to be generated as a result of a synthetic request.
12747 // This attribute is useful for distinguishing between genuine client traffic
12748 // and synthetic traffic generated by bots or tests.
12749 UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type")
12750
12751 // UserAgentVersionKey is the attribute Key conforming to the
12752 // "user_agent.version" semantic conventions. It represents the version of the
12753 // user-agent extracted from original. Usually refers to the browser's version.
12754 //
12755 // Type: string
12756 // RequirementLevel: Recommended
12757 // Stability: Development
12758 //
12759 // Examples: "14.1.2", "1.0.0"
12760 // Note: [Example] of extracting browser's version from original string. In the
12761 // case of using a user-agent for non-browser products, such as microservices
12762 // with multiple names/versions inside the `user_agent.original`, the most
12763 // significant version SHOULD be selected. In such a scenario it should align
12764 // with `user_agent.name`
12765 //
12766 // [Example]: https://www.whatsmyua.info
12767 UserAgentVersionKey = attribute.Key("user_agent.version")
12768 )
12769
12770 // UserAgentName returns an attribute KeyValue conforming to the
12771 // "user_agent.name" semantic conventions. It represents the name of the
12772 // user-agent extracted from original. Usually refers to the browser's name.
12773 func UserAgentName(val string) attribute.KeyValue {
12774 return UserAgentNameKey.String(val)
12775 }
12776
12777 // UserAgentOriginal returns an attribute KeyValue conforming to the
12778 // "user_agent.original" semantic conventions. It represents the value of the
12779 // [HTTP User-Agent] header sent by the client.
12780 //
12781 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
12782 func UserAgentOriginal(val string) attribute.KeyValue {
12783 return UserAgentOriginalKey.String(val)
12784 }
12785
12786 // UserAgentOSName returns an attribute KeyValue conforming to the
12787 // "user_agent.os.name" semantic conventions. It represents the human readable
12788 // operating system name.
12789 func UserAgentOSName(val string) attribute.KeyValue {
12790 return UserAgentOSNameKey.String(val)
12791 }
12792
12793 // UserAgentOSVersion returns an attribute KeyValue conforming to the
12794 // "user_agent.os.version" semantic conventions. It represents the version string
12795 // of the operating system as defined in [Version Attributes].
12796 //
12797 // [Version Attributes]: /docs/resource/README.md#version-attributes
12798 func UserAgentOSVersion(val string) attribute.KeyValue {
12799 return UserAgentOSVersionKey.String(val)
12800 }
12801
12802 // UserAgentVersion returns an attribute KeyValue conforming to the
12803 // "user_agent.version" semantic conventions. It represents the version of the
12804 // user-agent extracted from original. Usually refers to the browser's version.
12805 func UserAgentVersion(val string) attribute.KeyValue {
12806 return UserAgentVersionKey.String(val)
12807 }
12808
12809 // Enum values for user_agent.synthetic.type
12810 var (
12811 // Bot source.
12812 // Stability: development
12813 UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot")
12814 // Synthetic test source.
12815 // Stability: development
12816 UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test")
12817 )
12818
12819 // Namespace: vcs
12820 const (
12821 // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id"
12822 // semantic conventions. It represents the ID of the change (pull request/merge
12823 // request/changelist) if applicable. This is usually a unique (within
12824 // repository) identifier generated by the VCS system.
12825 //
12826 // Type: string
12827 // RequirementLevel: Recommended
12828 // Stability: Development
12829 //
12830 // Examples: "123"
12831 VCSChangeIDKey = attribute.Key("vcs.change.id")
12832
12833 // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state"
12834 // semantic conventions. It represents the state of the change (pull
12835 // request/merge request/changelist).
12836 //
12837 // Type: Enum
12838 // RequirementLevel: Recommended
12839 // Stability: Development
12840 //
12841 // Examples: "open", "closed", "merged"
12842 VCSChangeStateKey = attribute.Key("vcs.change.state")
12843
12844 // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title"
12845 // semantic conventions. It represents the human readable title of the change
12846 // (pull request/merge request/changelist). This title is often a brief summary
12847 // of the change and may get merged in to a ref as the commit summary.
12848 //
12849 // Type: string
12850 // RequirementLevel: Recommended
12851 // Stability: Development
12852 //
12853 // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
12854 // dependency"
12855 VCSChangeTitleKey = attribute.Key("vcs.change.title")
12856
12857 // VCSLineChangeTypeKey is the attribute Key conforming to the
12858 // "vcs.line_change.type" semantic conventions. It represents the type of line
12859 // change being measured on a branch or change.
12860 //
12861 // Type: Enum
12862 // RequirementLevel: Recommended
12863 // Stability: Development
12864 //
12865 // Examples: "added", "removed"
12866 VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type")
12867
12868 // VCSOwnerNameKey is the attribute Key conforming to the "vcs.owner.name"
12869 // semantic conventions. It represents the group owner within the version
12870 // control system.
12871 //
12872 // Type: string
12873 // RequirementLevel: Recommended
12874 // Stability: Development
12875 //
12876 // Examples: "my-org", "myteam", "business-unit"
12877 VCSOwnerNameKey = attribute.Key("vcs.owner.name")
12878
12879 // VCSProviderNameKey is the attribute Key conforming to the "vcs.provider.name"
12880 // semantic conventions. It represents the name of the version control system
12881 // provider.
12882 //
12883 // Type: Enum
12884 // RequirementLevel: Recommended
12885 // Stability: Development
12886 //
12887 // Examples: "github", "gitlab", "gittea", "bitbucket"
12888 VCSProviderNameKey = attribute.Key("vcs.provider.name")
12889
12890 // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name"
12891 // semantic conventions. It represents the name of the [reference] such as
12892 // **branch** or **tag** in the repository.
12893 //
12894 // Type: string
12895 // RequirementLevel: Recommended
12896 // Stability: Development
12897 //
12898 // Examples: "my-feature-branch", "tag-1-test"
12899 // Note: `base` refers to the starting point of a change. For example, `main`
12900 // would be the base reference of type branch if you've created a new
12901 // reference of type branch from it and created new commits.
12902 //
12903 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12904 VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name")
12905
12906 // VCSRefBaseRevisionKey is the attribute Key conforming to the
12907 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
12908 // literally [revised version], The revision most often refers to a commit
12909 // object in Git, or a revision number in SVN.
12910 //
12911 // Type: string
12912 // RequirementLevel: Recommended
12913 // Stability: Development
12914 //
12915 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
12916 // "main", "123", "HEAD"
12917 // Note: `base` refers to the starting point of a change. For example, `main`
12918 // would be the base reference of type branch if you've created a new
12919 // reference of type branch from it and created new commits. The
12920 // revision can be a full [hash value (see
12921 // glossary)],
12922 // of the recorded change to a ref within a repository pointing to a
12923 // commit [commit] object. It does
12924 // not necessarily have to be a hash; it can simply define a [revision
12925 // number]
12926 // which is an integer that is monotonically increasing. In cases where
12927 // it is identical to the `ref.base.name`, it SHOULD still be included.
12928 // It is up to the implementer to decide which value to set as the
12929 // revision based on the VCS system and situational context.
12930 //
12931 // [revised version]: https://www.merriam-webster.com/dictionary/revision
12932 // [hash value (see
12933 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
12934 // [commit]: https://git-scm.com/docs/git-commit
12935 // [revision
12936 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
12937 VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision")
12938
12939 // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type"
12940 // semantic conventions. It represents the type of the [reference] in the
12941 // repository.
12942 //
12943 // Type: Enum
12944 // RequirementLevel: Recommended
12945 // Stability: Development
12946 //
12947 // Examples: "branch", "tag"
12948 // Note: `base` refers to the starting point of a change. For example, `main`
12949 // would be the base reference of type branch if you've created a new
12950 // reference of type branch from it and created new commits.
12951 //
12952 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12953 VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type")
12954
12955 // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name"
12956 // semantic conventions. It represents the name of the [reference] such as
12957 // **branch** or **tag** in the repository.
12958 //
12959 // Type: string
12960 // RequirementLevel: Recommended
12961 // Stability: Development
12962 //
12963 // Examples: "my-feature-branch", "tag-1-test"
12964 // Note: `head` refers to where you are right now; the current reference at a
12965 // given time.
12966 //
12967 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
12968 VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name")
12969
12970 // VCSRefHeadRevisionKey is the attribute Key conforming to the
12971 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
12972 // literally [revised version], The revision most often refers to a commit
12973 // object in Git, or a revision number in SVN.
12974 //
12975 // Type: string
12976 // RequirementLevel: Recommended
12977 // Stability: Development
12978 //
12979 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
12980 // "main", "123", "HEAD"
12981 // Note: `head` refers to where you are right now; the current reference at a
12982 // given time.The revision can be a full [hash value (see
12983 // glossary)],
12984 // of the recorded change to a ref within a repository pointing to a
12985 // commit [commit] object. It does
12986 // not necessarily have to be a hash; it can simply define a [revision
12987 // number]
12988 // which is an integer that is monotonically increasing. In cases where
12989 // it is identical to the `ref.head.name`, it SHOULD still be included.
12990 // It is up to the implementer to decide which value to set as the
12991 // revision based on the VCS system and situational context.
12992 //
12993 // [revised version]: https://www.merriam-webster.com/dictionary/revision
12994 // [hash value (see
12995 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
12996 // [commit]: https://git-scm.com/docs/git-commit
12997 // [revision
12998 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
12999 VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision")
13000
13001 // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type"
13002 // semantic conventions. It represents the type of the [reference] in the
13003 // repository.
13004 //
13005 // Type: Enum
13006 // RequirementLevel: Recommended
13007 // Stability: Development
13008 //
13009 // Examples: "branch", "tag"
13010 // Note: `head` refers to where you are right now; the current reference at a
13011 // given time.
13012 //
13013 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13014 VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type")
13015
13016 // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic
13017 // conventions. It represents the type of the [reference] in the repository.
13018 //
13019 // Type: Enum
13020 // RequirementLevel: Recommended
13021 // Stability: Development
13022 //
13023 // Examples: "branch", "tag"
13024 //
13025 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13026 VCSRefTypeKey = attribute.Key("vcs.ref.type")
13027
13028 // VCSRepositoryNameKey is the attribute Key conforming to the
13029 // "vcs.repository.name" semantic conventions. It represents the human readable
13030 // name of the repository. It SHOULD NOT include any additional identifier like
13031 // Group/SubGroup in GitLab or organization in GitHub.
13032 //
13033 // Type: string
13034 // RequirementLevel: Recommended
13035 // Stability: Development
13036 //
13037 // Examples: "semantic-conventions", "my-cool-repo"
13038 // Note: Due to it only being the name, it can clash with forks of the same
13039 // repository if collecting telemetry across multiple orgs or groups in
13040 // the same backends.
13041 VCSRepositoryNameKey = attribute.Key("vcs.repository.name")
13042
13043 // VCSRepositoryURLFullKey is the attribute Key conforming to the
13044 // "vcs.repository.url.full" semantic conventions. It represents the
13045 // [canonical URL] of the repository providing the complete HTTP(S) address in
13046 // order to locate and identify the repository through a browser.
13047 //
13048 // Type: string
13049 // RequirementLevel: Recommended
13050 // Stability: Development
13051 //
13052 // Examples:
13053 // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
13054 // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
13055 // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include
13056 // the `.git` extension.
13057 //
13058 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
13059 VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
13060
13061 // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the
13062 // "vcs.revision_delta.direction" semantic conventions. It represents the type
13063 // of revision comparison.
13064 //
13065 // Type: Enum
13066 // RequirementLevel: Recommended
13067 // Stability: Development
13068 //
13069 // Examples: "ahead", "behind"
13070 VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction")
13071 )
13072
13073 // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id"
13074 // semantic conventions. It represents the ID of the change (pull request/merge
13075 // request/changelist) if applicable. This is usually a unique (within
13076 // repository) identifier generated by the VCS system.
13077 func VCSChangeID(val string) attribute.KeyValue {
13078 return VCSChangeIDKey.String(val)
13079 }
13080
13081 // VCSChangeTitle returns an attribute KeyValue conforming to the
13082 // "vcs.change.title" semantic conventions. It represents the human readable
13083 // title of the change (pull request/merge request/changelist). This title is
13084 // often a brief summary of the change and may get merged in to a ref as the
13085 // commit summary.
13086 func VCSChangeTitle(val string) attribute.KeyValue {
13087 return VCSChangeTitleKey.String(val)
13088 }
13089
13090 // VCSOwnerName returns an attribute KeyValue conforming to the "vcs.owner.name"
13091 // semantic conventions. It represents the group owner within the version control
13092 // system.
13093 func VCSOwnerName(val string) attribute.KeyValue {
13094 return VCSOwnerNameKey.String(val)
13095 }
13096
13097 // VCSRefBaseName returns an attribute KeyValue conforming to the
13098 // "vcs.ref.base.name" semantic conventions. It represents the name of the
13099 // [reference] such as **branch** or **tag** in the repository.
13100 //
13101 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13102 func VCSRefBaseName(val string) attribute.KeyValue {
13103 return VCSRefBaseNameKey.String(val)
13104 }
13105
13106 // VCSRefBaseRevision returns an attribute KeyValue conforming to the
13107 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
13108 // literally [revised version], The revision most often refers to a commit object
13109 // in Git, or a revision number in SVN.
13110 //
13111 // [revised version]: https://www.merriam-webster.com/dictionary/revision
13112 func VCSRefBaseRevision(val string) attribute.KeyValue {
13113 return VCSRefBaseRevisionKey.String(val)
13114 }
13115
13116 // VCSRefHeadName returns an attribute KeyValue conforming to the
13117 // "vcs.ref.head.name" semantic conventions. It represents the name of the
13118 // [reference] such as **branch** or **tag** in the repository.
13119 //
13120 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13121 func VCSRefHeadName(val string) attribute.KeyValue {
13122 return VCSRefHeadNameKey.String(val)
13123 }
13124
13125 // VCSRefHeadRevision returns an attribute KeyValue conforming to the
13126 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
13127 // literally [revised version], The revision most often refers to a commit object
13128 // in Git, or a revision number in SVN.
13129 //
13130 // [revised version]: https://www.merriam-webster.com/dictionary/revision
13131 func VCSRefHeadRevision(val string) attribute.KeyValue {
13132 return VCSRefHeadRevisionKey.String(val)
13133 }
13134
13135 // VCSRepositoryName returns an attribute KeyValue conforming to the
13136 // "vcs.repository.name" semantic conventions. It represents the human readable
13137 // name of the repository. It SHOULD NOT include any additional identifier like
13138 // Group/SubGroup in GitLab or organization in GitHub.
13139 func VCSRepositoryName(val string) attribute.KeyValue {
13140 return VCSRepositoryNameKey.String(val)
13141 }
13142
13143 // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
13144 // "vcs.repository.url.full" semantic conventions. It represents the
13145 // [canonical URL] of the repository providing the complete HTTP(S) address in
13146 // order to locate and identify the repository through a browser.
13147 //
13148 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
13149 func VCSRepositoryURLFull(val string) attribute.KeyValue {
13150 return VCSRepositoryURLFullKey.String(val)
13151 }
13152
13153 // Enum values for vcs.change.state
13154 var (
13155 // Open means the change is currently active and under review. It hasn't been
13156 // merged into the target branch yet, and it's still possible to make changes or
13157 // add comments.
13158 // Stability: development
13159 VCSChangeStateOpen = VCSChangeStateKey.String("open")
13160 // WIP (work-in-progress, draft) means the change is still in progress and not
13161 // yet ready for a full review. It might still undergo significant changes.
13162 // Stability: development
13163 VCSChangeStateWip = VCSChangeStateKey.String("wip")
13164 // Closed means the merge request has been closed without merging. This can
13165 // happen for various reasons, such as the changes being deemed unnecessary, the
13166 // issue being resolved in another way, or the author deciding to withdraw the
13167 // request.
13168 // Stability: development
13169 VCSChangeStateClosed = VCSChangeStateKey.String("closed")
13170 // Merged indicates that the change has been successfully integrated into the
13171 // target codebase.
13172 // Stability: development
13173 VCSChangeStateMerged = VCSChangeStateKey.String("merged")
13174 )
13175
13176 // Enum values for vcs.line_change.type
13177 var (
13178 // How many lines were added.
13179 // Stability: development
13180 VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added")
13181 // How many lines were removed.
13182 // Stability: development
13183 VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed")
13184 )
13185
13186 // Enum values for vcs.provider.name
13187 var (
13188 // [GitHub]
13189 // Stability: development
13190 //
13191 // [GitHub]: https://github.com
13192 VCSProviderNameGithub = VCSProviderNameKey.String("github")
13193 // [GitLab]
13194 // Stability: development
13195 //
13196 // [GitLab]: https://gitlab.com
13197 VCSProviderNameGitlab = VCSProviderNameKey.String("gitlab")
13198 // [Gitea]
13199 // Stability: development
13200 //
13201 // [Gitea]: https://gitea.io
13202 VCSProviderNameGittea = VCSProviderNameKey.String("gittea")
13203 // [Bitbucket]
13204 // Stability: development
13205 //
13206 // [Bitbucket]: https://bitbucket.org
13207 VCSProviderNameBitbucket = VCSProviderNameKey.String("bitbucket")
13208 )
13209
13210 // Enum values for vcs.ref.base.type
13211 var (
13212 // [branch]
13213 // Stability: development
13214 //
13215 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
13216 VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch")
13217 // [tag]
13218 // Stability: development
13219 //
13220 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
13221 VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag")
13222 )
13223
13224 // Enum values for vcs.ref.head.type
13225 var (
13226 // [branch]
13227 // Stability: development
13228 //
13229 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
13230 VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch")
13231 // [tag]
13232 // Stability: development
13233 //
13234 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
13235 VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag")
13236 )
13237
13238 // Enum values for vcs.ref.type
13239 var (
13240 // [branch]
13241 // Stability: development
13242 //
13243 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
13244 VCSRefTypeBranch = VCSRefTypeKey.String("branch")
13245 // [tag]
13246 // Stability: development
13247 //
13248 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
13249 VCSRefTypeTag = VCSRefTypeKey.String("tag")
13250 )
13251
13252 // Enum values for vcs.revision_delta.direction
13253 var (
13254 // How many revisions the change is behind the target ref.
13255 // Stability: development
13256 VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind")
13257 // How many revisions the change is ahead of the target ref.
13258 // Stability: development
13259 VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead")
13260 )
13261
13262 // Namespace: webengine
13263 const (
13264 // WebEngineDescriptionKey is the attribute Key conforming to the
13265 // "webengine.description" semantic conventions. It represents the additional
13266 // description of the web engine (e.g. detailed version and edition
13267 // information).
13268 //
13269 // Type: string
13270 // RequirementLevel: Recommended
13271 // Stability: Development
13272 //
13273 // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
13274 // 2.2.2.Final"
13275 WebEngineDescriptionKey = attribute.Key("webengine.description")
13276
13277 // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
13278 // semantic conventions. It represents the name of the web engine.
13279 //
13280 // Type: string
13281 // RequirementLevel: Recommended
13282 // Stability: Development
13283 //
13284 // Examples: "WildFly"
13285 WebEngineNameKey = attribute.Key("webengine.name")
13286
13287 // WebEngineVersionKey is the attribute Key conforming to the
13288 // "webengine.version" semantic conventions. It represents the version of the
13289 // web engine.
13290 //
13291 // Type: string
13292 // RequirementLevel: Recommended
13293 // Stability: Development
13294 //
13295 // Examples: "21.0.0"
13296 WebEngineVersionKey = attribute.Key("webengine.version")
13297 )
13298
13299 // WebEngineDescription returns an attribute KeyValue conforming to the
13300 // "webengine.description" semantic conventions. It represents the additional
13301 // description of the web engine (e.g. detailed version and edition information).
13302 func WebEngineDescription(val string) attribute.KeyValue {
13303 return WebEngineDescriptionKey.String(val)
13304 }
13305
13306 // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
13307 // semantic conventions. It represents the name of the web engine.
13308 func WebEngineName(val string) attribute.KeyValue {
13309 return WebEngineNameKey.String(val)
13310 }
13311
13312 // WebEngineVersion returns an attribute KeyValue conforming to the
13313 // "webengine.version" semantic conventions. It represents the version of the web
13314 // engine.
13315 func WebEngineVersion(val string) attribute.KeyValue {
13316 return WebEngineVersionKey.String(val)
13317 }