Debian Codegraph @

semconv/v1.33.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.33.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 // AppScreenCoordinateXKey is the attribute Key conforming to the
120 // "app.screen.coordinate.x" semantic conventions. It represents the x
121 // (horizontal) coordinate of a screen coordinate, in screen pixels.
122 //
123 // Type: int
124 // RequirementLevel: Recommended
125 // Stability: Development
126 //
127 // Examples: 0, 131
128 AppScreenCoordinateXKey = attribute.Key("app.screen.coordinate.x")
129
130 // AppScreenCoordinateYKey is the attribute Key conforming to the
131 // "app.screen.coordinate.y" semantic conventions. It represents the y
132 // (vertical) component of a screen coordinate, in screen pixels.
133 //
134 // Type: int
135 // RequirementLevel: Recommended
136 // Stability: Development
137 //
138 // Examples: 12, 99
139 AppScreenCoordinateYKey = attribute.Key("app.screen.coordinate.y")
140
141 // AppWidgetIDKey is the attribute Key conforming to the "app.widget.id"
142 // semantic conventions. It represents an identifier that uniquely
143 // differentiates this widget from other widgets in the same application.
144 //
145 // Type: string
146 // RequirementLevel: Recommended
147 // Stability: Development
148 //
149 // Examples: "f9bc787d-ff05-48ad-90e1-fca1d46130b3", "submit_order_1829"
150 // Note: A widget is an application component, typically an on-screen visual GUI
151 // element.
152 AppWidgetIDKey = attribute.Key("app.widget.id")
153
154 // AppWidgetNameKey is the attribute Key conforming to the "app.widget.name"
155 // semantic conventions. It represents the name of an application widget.
156 //
157 // Type: string
158 // RequirementLevel: Recommended
159 // Stability: Development
160 //
161 // Examples: "submit", "attack", "Clear Cart"
162 // Note: A widget is an application component, typically an on-screen visual GUI
163 // element.
164 AppWidgetNameKey = attribute.Key("app.widget.name")
165 )
166
167 // AppInstallationID returns an attribute KeyValue conforming to the
168 // "app.installation.id" semantic conventions. It represents a unique identifier
169 // representing the installation of an application on a specific device.
170 func AppInstallationID(val string) attribute.KeyValue {
171 return AppInstallationIDKey.String(val)
172 }
173
174 // AppScreenCoordinateX returns an attribute KeyValue conforming to the
175 // "app.screen.coordinate.x" semantic conventions. It represents the x
176 // (horizontal) coordinate of a screen coordinate, in screen pixels.
177 func AppScreenCoordinateX(val int) attribute.KeyValue {
178 return AppScreenCoordinateXKey.Int(val)
179 }
180
181 // AppScreenCoordinateY returns an attribute KeyValue conforming to the
182 // "app.screen.coordinate.y" semantic conventions. It represents the y (vertical)
183 // component of a screen coordinate, in screen pixels.
184 func AppScreenCoordinateY(val int) attribute.KeyValue {
185 return AppScreenCoordinateYKey.Int(val)
186 }
187
188 // AppWidgetID returns an attribute KeyValue conforming to the "app.widget.id"
189 // semantic conventions. It represents an identifier that uniquely differentiates
190 // this widget from other widgets in the same application.
191 func AppWidgetID(val string) attribute.KeyValue {
192 return AppWidgetIDKey.String(val)
193 }
194
195 // AppWidgetName returns an attribute KeyValue conforming to the
196 // "app.widget.name" semantic conventions. It represents the name of an
197 // application widget.
198 func AppWidgetName(val string) attribute.KeyValue {
199 return AppWidgetNameKey.String(val)
200 }
201
202 // Namespace: artifact
203 const (
204 // ArtifactAttestationFilenameKey is the attribute Key conforming to the
205 // "artifact.attestation.filename" semantic conventions. It represents the
206 // provenance filename of the built attestation which directly relates to the
207 // build artifact filename. This filename SHOULD accompany the artifact at
208 // publish time. See the [SLSA Relationship] specification for more information.
209 //
210 // Type: string
211 // RequirementLevel: Recommended
212 // Stability: Development
213 //
214 // Examples: "golang-binary-amd64-v0.1.0.attestation",
215 // "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation",
216 // "file-name-package.tar.gz.intoto.json1"
217 //
218 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
219 ArtifactAttestationFilenameKey = attribute.Key("artifact.attestation.filename")
220
221 // ArtifactAttestationHashKey is the attribute Key conforming to the
222 // "artifact.attestation.hash" semantic conventions. It represents the full
223 // [hash value (see glossary)], of the built attestation. Some envelopes in the
224 // [software attestation space] also refer to this as the **digest**.
225 //
226 // Type: string
227 // RequirementLevel: Recommended
228 // Stability: Development
229 //
230 // Examples: "1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408"
231 //
232 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
233 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
234 ArtifactAttestationHashKey = attribute.Key("artifact.attestation.hash")
235
236 // ArtifactAttestationIDKey is the attribute Key conforming to the
237 // "artifact.attestation.id" semantic conventions. It represents the id of the
238 // build [software attestation].
239 //
240 // Type: string
241 // RequirementLevel: Recommended
242 // Stability: Development
243 //
244 // Examples: "123"
245 //
246 // [software attestation]: https://slsa.dev/attestation-model
247 ArtifactAttestationIDKey = attribute.Key("artifact.attestation.id")
248
249 // ArtifactFilenameKey is the attribute Key conforming to the
250 // "artifact.filename" semantic conventions. It represents the human readable
251 // file name of the artifact, typically generated during build and release
252 // processes. Often includes the package name and version in the file name.
253 //
254 // Type: string
255 // RequirementLevel: Recommended
256 // Stability: Development
257 //
258 // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0",
259 // "release-1.tar.gz", "file-name-package.tar.gz"
260 // Note: This file name can also act as the [Package Name]
261 // in cases where the package ecosystem maps accordingly.
262 // Additionally, the artifact [can be published]
263 // for others, but that is not a guarantee.
264 //
265 // [Package Name]: https://slsa.dev/spec/v1.0/terminology#package-model
266 // [can be published]: https://slsa.dev/spec/v1.0/terminology#software-supply-chain
267 ArtifactFilenameKey = attribute.Key("artifact.filename")
268
269 // ArtifactHashKey is the attribute Key conforming to the "artifact.hash"
270 // semantic conventions. It represents the full [hash value (see glossary)],
271 // often found in checksum.txt on a release of the artifact and used to verify
272 // package integrity.
273 //
274 // Type: string
275 // RequirementLevel: Recommended
276 // Stability: Development
277 //
278 // Examples: "9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9"
279 // Note: The specific algorithm used to create the cryptographic hash value is
280 // not defined. In situations where an artifact has multiple
281 // cryptographic hashes, it is up to the implementer to choose which
282 // hash value to set here; this should be the most secure hash algorithm
283 // that is suitable for the situation and consistent with the
284 // corresponding attestation. The implementer can then provide the other
285 // hash values through an additional set of attribute extensions as they
286 // deem necessary.
287 //
288 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
289 ArtifactHashKey = attribute.Key("artifact.hash")
290
291 // ArtifactPurlKey is the attribute Key conforming to the "artifact.purl"
292 // semantic conventions. It represents the [Package URL] of the
293 // [package artifact] provides a standard way to identify and locate the
294 // packaged artifact.
295 //
296 // Type: string
297 // RequirementLevel: Recommended
298 // Stability: Development
299 //
300 // Examples: "pkg:github/package-url/purl-spec@1209109710924",
301 // "pkg:npm/[email protected]"
302 //
303 // [Package URL]: https://github.com/package-url/purl-spec
304 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
305 ArtifactPurlKey = attribute.Key("artifact.purl")
306
307 // ArtifactVersionKey is the attribute Key conforming to the "artifact.version"
308 // semantic conventions. It represents the version of the artifact.
309 //
310 // Type: string
311 // RequirementLevel: Recommended
312 // Stability: Development
313 //
314 // Examples: "v0.1.0", "1.2.1", "122691-build"
315 ArtifactVersionKey = attribute.Key("artifact.version")
316 )
317
318 // ArtifactAttestationFilename returns an attribute KeyValue conforming to the
319 // "artifact.attestation.filename" semantic conventions. It represents the
320 // provenance filename of the built attestation which directly relates to the
321 // build artifact filename. This filename SHOULD accompany the artifact at
322 // publish time. See the [SLSA Relationship] specification for more information.
323 //
324 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
325 func ArtifactAttestationFilename(val string) attribute.KeyValue {
326 return ArtifactAttestationFilenameKey.String(val)
327 }
328
329 // ArtifactAttestationHash returns an attribute KeyValue conforming to the
330 // "artifact.attestation.hash" semantic conventions. It represents the full
331 // [hash value (see glossary)], of the built attestation. Some envelopes in the
332 // [software attestation space] also refer to this as the **digest**.
333 //
334 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
335 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
336 func ArtifactAttestationHash(val string) attribute.KeyValue {
337 return ArtifactAttestationHashKey.String(val)
338 }
339
340 // ArtifactAttestationID returns an attribute KeyValue conforming to the
341 // "artifact.attestation.id" semantic conventions. It represents the id of the
342 // build [software attestation].
343 //
344 // [software attestation]: https://slsa.dev/attestation-model
345 func ArtifactAttestationID(val string) attribute.KeyValue {
346 return ArtifactAttestationIDKey.String(val)
347 }
348
349 // ArtifactFilename returns an attribute KeyValue conforming to the
350 // "artifact.filename" semantic conventions. It represents the human readable
351 // file name of the artifact, typically generated during build and release
352 // processes. Often includes the package name and version in the file name.
353 func ArtifactFilename(val string) attribute.KeyValue {
354 return ArtifactFilenameKey.String(val)
355 }
356
357 // ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash"
358 // semantic conventions. It represents the full [hash value (see glossary)],
359 // often found in checksum.txt on a release of the artifact and used to verify
360 // package integrity.
361 //
362 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
363 func ArtifactHash(val string) attribute.KeyValue {
364 return ArtifactHashKey.String(val)
365 }
366
367 // ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl"
368 // semantic conventions. It represents the [Package URL] of the
369 // [package artifact] provides a standard way to identify and locate the packaged
370 // artifact.
371 //
372 // [Package URL]: https://github.com/package-url/purl-spec
373 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
374 func ArtifactPurl(val string) attribute.KeyValue {
375 return ArtifactPurlKey.String(val)
376 }
377
378 // ArtifactVersion returns an attribute KeyValue conforming to the
379 // "artifact.version" semantic conventions. It represents the version of the
380 // artifact.
381 func ArtifactVersion(val string) attribute.KeyValue {
382 return ArtifactVersionKey.String(val)
383 }
384
385 // Namespace: aws
386 const (
387 // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the
388 // "aws.dynamodb.attribute_definitions" semantic conventions. It represents the
389 // JSON-serialized value of each item in the `AttributeDefinitions` request
390 // field.
391 //
392 // Type: string[]
393 // RequirementLevel: Recommended
394 // Stability: Development
395 //
396 // Examples: "{ "AttributeName": "string", "AttributeType": "string" }"
397 AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions")
398
399 // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the
400 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the
401 // value of the `AttributesToGet` request parameter.
402 //
403 // Type: string[]
404 // RequirementLevel: Recommended
405 // Stability: Development
406 //
407 // Examples: "lives", "id"
408 AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get")
409
410 // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the
411 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
412 // of the `ConsistentRead` request parameter.
413 //
414 // Type: boolean
415 // RequirementLevel: Recommended
416 // Stability: Development
417 //
418 // Examples:
419 AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read")
420
421 // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the
422 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
423 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
424 //
425 // Type: string[]
426 // RequirementLevel: Recommended
427 // Stability: Development
428 //
429 // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" :
430 // { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits":
431 // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number,
432 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } },
433 // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number,
434 // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName":
435 // "string", "WriteCapacityUnits": number }"
436 AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity")
437
438 // AWSDynamoDBCountKey is the attribute Key conforming to the
439 // "aws.dynamodb.count" semantic conventions. It represents the value of the
440 // `Count` response parameter.
441 //
442 // Type: int
443 // RequirementLevel: Recommended
444 // Stability: Development
445 //
446 // Examples: 10
447 AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count")
448
449 // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the
450 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
451 // value of the `ExclusiveStartTableName` request parameter.
452 //
453 // Type: string
454 // RequirementLevel: Recommended
455 // Stability: Development
456 //
457 // Examples: "Users", "CatsTable"
458 AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table")
459
460 // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to
461 // the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It
462 // represents the JSON-serialized value of each item in the
463 // `GlobalSecondaryIndexUpdates` request field.
464 //
465 // Type: string[]
466 // RequirementLevel: Recommended
467 // Stability: Development
468 //
469 // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ {
470 // "AttributeName": "string", "KeyType": "string" } ], "Projection": {
471 // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" },
472 // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits":
473 // number } }"
474 AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates")
475
476 // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the
477 // "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents
478 // the JSON-serialized value of each item of the `GlobalSecondaryIndexes`
479 // request field.
480 //
481 // Type: string[]
482 // RequirementLevel: Recommended
483 // Stability: Development
484 //
485 // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName":
486 // "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [
487 // "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": {
488 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"
489 AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes")
490
491 // AWSDynamoDBIndexNameKey is the attribute Key conforming to the
492 // "aws.dynamodb.index_name" semantic conventions. It represents the value of
493 // the `IndexName` request parameter.
494 //
495 // Type: string
496 // RequirementLevel: Recommended
497 // Stability: Development
498 //
499 // Examples: "name_to_group"
500 AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name")
501
502 // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the
503 // "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
504 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
505 //
506 // Type: string
507 // RequirementLevel: Recommended
508 // Stability: Development
509 //
510 // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob,
511 // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" :
512 // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S":
513 // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }"
514 AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics")
515
516 // AWSDynamoDBLimitKey is the attribute Key conforming to the
517 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
518 // `Limit` request parameter.
519 //
520 // Type: int
521 // RequirementLevel: Recommended
522 // Stability: Development
523 //
524 // Examples: 10
525 AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit")
526
527 // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the
528 // "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
529 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
530 // field.
531 //
532 // Type: string[]
533 // RequirementLevel: Recommended
534 // Stability: Development
535 //
536 // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes":
537 // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string",
538 // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ],
539 // "ProjectionType": "string" } }"
540 AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes")
541
542 // AWSDynamoDBProjectionKey is the attribute Key conforming to the
543 // "aws.dynamodb.projection" semantic conventions. It represents the value of
544 // the `ProjectionExpression` request parameter.
545 //
546 // Type: string
547 // RequirementLevel: Recommended
548 // Stability: Development
549 //
550 // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems,
551 // ProductReviews"
552 AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection")
553
554 // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the
555 // "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents
556 // the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
557 //
558 // Type: double
559 // RequirementLevel: Recommended
560 // Stability: Development
561 //
562 // Examples: 1.0, 2.0
563 AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity")
564
565 // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the
566 // "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents
567 // the value of the `ProvisionedThroughput.WriteCapacityUnits` request
568 // parameter.
569 //
570 // Type: double
571 // RequirementLevel: Recommended
572 // Stability: Development
573 //
574 // Examples: 1.0, 2.0
575 AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity")
576
577 // AWSDynamoDBScanForwardKey is the attribute Key conforming to the
578 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
579 // the `ScanIndexForward` request parameter.
580 //
581 // Type: boolean
582 // RequirementLevel: Recommended
583 // Stability: Development
584 //
585 // Examples:
586 AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward")
587
588 // AWSDynamoDBScannedCountKey is the attribute Key conforming to the
589 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
590 // the `ScannedCount` response parameter.
591 //
592 // Type: int
593 // RequirementLevel: Recommended
594 // Stability: Development
595 //
596 // Examples: 50
597 AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count")
598
599 // AWSDynamoDBSegmentKey is the attribute Key conforming to the
600 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
601 // `Segment` request parameter.
602 //
603 // Type: int
604 // RequirementLevel: Recommended
605 // Stability: Development
606 //
607 // Examples: 10
608 AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment")
609
610 // AWSDynamoDBSelectKey is the attribute Key conforming to the
611 // "aws.dynamodb.select" semantic conventions. It represents the value of the
612 // `Select` request parameter.
613 //
614 // Type: string
615 // RequirementLevel: Recommended
616 // Stability: Development
617 //
618 // Examples: "ALL_ATTRIBUTES", "COUNT"
619 AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select")
620
621 // AWSDynamoDBTableCountKey is the attribute Key conforming to the
622 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
623 // items in the `TableNames` response parameter.
624 //
625 // Type: int
626 // RequirementLevel: Recommended
627 // Stability: Development
628 //
629 // Examples: 20
630 AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count")
631
632 // AWSDynamoDBTableNamesKey is the attribute Key conforming to the
633 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in
634 // the `RequestItems` object field.
635 //
636 // Type: string[]
637 // RequirementLevel: Recommended
638 // Stability: Development
639 //
640 // Examples: "Users", "Cats"
641 AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names")
642
643 // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the
644 // "aws.dynamodb.total_segments" semantic conventions. It represents the value
645 // of the `TotalSegments` request parameter.
646 //
647 // Type: int
648 // RequirementLevel: Recommended
649 // Stability: Development
650 //
651 // Examples: 100
652 AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments")
653
654 // AWSECSClusterARNKey is the attribute Key conforming to the
655 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
656 // [ECS cluster].
657 //
658 // Type: string
659 // RequirementLevel: Recommended
660 // Stability: Development
661 //
662 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
663 //
664 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
665 AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn")
666
667 // AWSECSContainerARNKey is the attribute Key conforming to the
668 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
669 // Resource Name (ARN) of an [ECS container instance].
670 //
671 // Type: string
672 // RequirementLevel: Recommended
673 // Stability: Development
674 //
675 // Examples:
676 // "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9"
677 //
678 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
679 AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn")
680
681 // AWSECSLaunchtypeKey is the attribute Key conforming to the
682 // "aws.ecs.launchtype" semantic conventions. It represents the [launch type]
683 // for an ECS task.
684 //
685 // Type: Enum
686 // RequirementLevel: Recommended
687 // Stability: Development
688 //
689 // Examples:
690 //
691 // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
692 AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype")
693
694 // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn"
695 // semantic conventions. It represents the ARN of a running [ECS task].
696 //
697 // Type: string
698 // RequirementLevel: Recommended
699 // Stability: Development
700 //
701 // Examples:
702 // "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b",
703 // "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
704 //
705 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
706 AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn")
707
708 // AWSECSTaskFamilyKey is the attribute Key conforming to the
709 // "aws.ecs.task.family" semantic conventions. It represents the family name of
710 // the [ECS task definition] used to create the ECS task.
711 //
712 // Type: string
713 // RequirementLevel: Recommended
714 // Stability: Development
715 //
716 // Examples: "opentelemetry-family"
717 //
718 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
719 AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family")
720
721 // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id"
722 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
723 // be extracted from `task.arn`.
724 //
725 // Type: string
726 // RequirementLevel: Recommended
727 // Stability: Development
728 //
729 // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b",
730 // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
731 AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id")
732
733 // AWSECSTaskRevisionKey is the attribute Key conforming to the
734 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
735 // the task definition used to create the ECS task.
736 //
737 // Type: string
738 // RequirementLevel: Recommended
739 // Stability: Development
740 //
741 // Examples: "8", "26"
742 AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision")
743
744 // AWSEKSClusterARNKey is the attribute Key conforming to the
745 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
746 // cluster.
747 //
748 // Type: string
749 // RequirementLevel: Recommended
750 // Stability: Development
751 //
752 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
753 AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn")
754
755 // AWSExtendedRequestIDKey is the attribute Key conforming to the
756 // "aws.extended_request_id" semantic conventions. It represents the AWS
757 // extended request ID as returned in the response header `x-amz-id-2`.
758 //
759 // Type: string
760 // RequirementLevel: Recommended
761 // Stability: Development
762 //
763 // Examples:
764 // "wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ="
765 AWSExtendedRequestIDKey = attribute.Key("aws.extended_request_id")
766
767 // AWSLambdaInvokedARNKey is the attribute Key conforming to the
768 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
769 // ARN as provided on the `Context` passed to the function (
770 // `Lambda-Runtime-Invoked-Function-Arn` header on the
771 // `/runtime/invocation/next` applicable).
772 //
773 // Type: string
774 // RequirementLevel: Recommended
775 // Stability: Development
776 //
777 // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias"
778 // Note: This may be different from `cloud.resource_id` if an alias is involved.
779 AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn")
780
781 // AWSLogGroupARNsKey is the attribute Key conforming to the
782 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
783 // Name(s) (ARN) of the AWS log group(s).
784 //
785 // Type: string[]
786 // RequirementLevel: Recommended
787 // Stability: Development
788 //
789 // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"
790 // Note: See the [log group ARN format documentation].
791 //
792 // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
793 AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns")
794
795 // AWSLogGroupNamesKey is the attribute Key conforming to the
796 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
797 // AWS log group(s) an application is writing to.
798 //
799 // Type: string[]
800 // RequirementLevel: Recommended
801 // Stability: Development
802 //
803 // Examples: "/aws/lambda/my-function", "opentelemetry-service"
804 // Note: Multiple log groups must be supported for cases like multi-container
805 // applications, where a single application has sidecar containers, and each
806 // write to their own log group.
807 AWSLogGroupNamesKey = attribute.Key("aws.log.group.names")
808
809 // AWSLogStreamARNsKey is the attribute Key conforming to the
810 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
811 // AWS log stream(s).
812 //
813 // Type: string[]
814 // RequirementLevel: Recommended
815 // Stability: Development
816 //
817 // Examples:
818 // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
819 // Note: See the [log stream ARN format documentation]. One log group can
820 // contain several log streams, so these ARNs necessarily identify both a log
821 // group and a log stream.
822 //
823 // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
824 AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns")
825
826 // AWSLogStreamNamesKey is the attribute Key conforming to the
827 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
828 // AWS log stream(s) an application is writing to.
829 //
830 // Type: string[]
831 // RequirementLevel: Recommended
832 // Stability: Development
833 //
834 // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
835 AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names")
836
837 // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id"
838 // semantic conventions. It represents the AWS request ID as returned in the
839 // response headers `x-amzn-requestid`, `x-amzn-request-id` or
840 // `x-amz-request-id`.
841 //
842 // Type: string
843 // RequirementLevel: Recommended
844 // Stability: Development
845 //
846 // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ"
847 AWSRequestIDKey = attribute.Key("aws.request_id")
848
849 // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket"
850 // semantic conventions. It represents the S3 bucket name the request refers to.
851 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
852 //
853 // Type: string
854 // RequirementLevel: Recommended
855 // Stability: Development
856 //
857 // Examples: "some-bucket-name"
858 // Note: The `bucket` attribute is applicable to all S3 operations that
859 // reference a bucket, i.e. that require the bucket name as a mandatory
860 // parameter.
861 // This applies to almost all S3 operations except `list-buckets`.
862 //
863 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
864 AWSS3BucketKey = attribute.Key("aws.s3.bucket")
865
866 // AWSS3CopySourceKey is the attribute Key conforming to the
867 // "aws.s3.copy_source" semantic conventions. It represents the source object
868 // (in the form `bucket`/`key`) for the copy operation.
869 //
870 // Type: string
871 // RequirementLevel: Recommended
872 // Stability: Development
873 //
874 // Examples: "someFile.yml"
875 // Note: The `copy_source` attribute applies to S3 copy operations and
876 // corresponds to the `--copy-source` parameter
877 // of the [copy-object operation within the S3 API].
878 // This applies in particular to the following operations:
879 //
880 // - [copy-object]
881 // - [upload-part-copy]
882 //
883 //
884 // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
885 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
886 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
887 AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source")
888
889 // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete"
890 // semantic conventions. It represents the delete request container that
891 // specifies the objects to be deleted.
892 //
893 // Type: string
894 // RequirementLevel: Recommended
895 // Stability: Development
896 //
897 // Examples:
898 // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"
899 // Note: The `delete` attribute is only applicable to the [delete-object]
900 // operation.
901 // The `delete` attribute corresponds to the `--delete` parameter of the
902 // [delete-objects operation within the S3 API].
903 //
904 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
905 // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html
906 AWSS3DeleteKey = attribute.Key("aws.s3.delete")
907
908 // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic
909 // conventions. It represents the S3 object key the request refers to.
910 // Corresponds to the `--key` parameter of the [S3 API] operations.
911 //
912 // Type: string
913 // RequirementLevel: Recommended
914 // Stability: Development
915 //
916 // Examples: "someFile.yml"
917 // Note: The `key` attribute is applicable to all object-related S3 operations,
918 // i.e. that require the object key as a mandatory parameter.
919 // This applies in particular to the following operations:
920 //
921 // - [copy-object]
922 // - [delete-object]
923 // - [get-object]
924 // - [head-object]
925 // - [put-object]
926 // - [restore-object]
927 // - [select-object-content]
928 // - [abort-multipart-upload]
929 // - [complete-multipart-upload]
930 // - [create-multipart-upload]
931 // - [list-parts]
932 // - [upload-part]
933 // - [upload-part-copy]
934 //
935 //
936 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
937 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
938 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
939 // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html
940 // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html
941 // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html
942 // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html
943 // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html
944 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
945 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
946 // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html
947 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
948 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
949 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
950 AWSS3KeyKey = attribute.Key("aws.s3.key")
951
952 // AWSS3PartNumberKey is the attribute Key conforming to the
953 // "aws.s3.part_number" semantic conventions. It represents the part number of
954 // the part being uploaded in a multipart-upload operation. This is a positive
955 // integer between 1 and 10,000.
956 //
957 // Type: int
958 // RequirementLevel: Recommended
959 // Stability: Development
960 //
961 // Examples: 3456
962 // Note: The `part_number` attribute is only applicable to the [upload-part]
963 // and [upload-part-copy] operations.
964 // The `part_number` attribute corresponds to the `--part-number` parameter of
965 // the
966 // [upload-part operation within the S3 API].
967 //
968 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
969 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
970 // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
971 AWSS3PartNumberKey = attribute.Key("aws.s3.part_number")
972
973 // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id"
974 // semantic conventions. It represents the upload ID that identifies the
975 // multipart upload.
976 //
977 // Type: string
978 // RequirementLevel: Recommended
979 // Stability: Development
980 //
981 // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ"
982 // Note: The `upload_id` attribute applies to S3 multipart-upload operations and
983 // corresponds to the `--upload-id` parameter
984 // of the [S3 API] multipart operations.
985 // This applies in particular to the following operations:
986 //
987 // - [abort-multipart-upload]
988 // - [complete-multipart-upload]
989 // - [list-parts]
990 // - [upload-part]
991 // - [upload-part-copy]
992 //
993 //
994 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
995 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
996 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
997 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
998 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
999 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1000 AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id")
1001 )
1002
1003 // AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to
1004 // the "aws.dynamodb.attribute_definitions" semantic conventions. It represents
1005 // the JSON-serialized value of each item in the `AttributeDefinitions` request
1006 // field.
1007 func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue {
1008 return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val)
1009 }
1010
1011 // AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the
1012 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value
1013 // of the `AttributesToGet` request parameter.
1014 func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue {
1015 return AWSDynamoDBAttributesToGetKey.StringSlice(val)
1016 }
1017
1018 // AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the
1019 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
1020 // of the `ConsistentRead` request parameter.
1021 func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue {
1022 return AWSDynamoDBConsistentReadKey.Bool(val)
1023 }
1024
1025 // AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the
1026 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
1027 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
1028 func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue {
1029 return AWSDynamoDBConsumedCapacityKey.StringSlice(val)
1030 }
1031
1032 // AWSDynamoDBCount returns an attribute KeyValue conforming to the
1033 // "aws.dynamodb.count" semantic conventions. It represents the value of the
1034 // `Count` response parameter.
1035 func AWSDynamoDBCount(val int) attribute.KeyValue {
1036 return AWSDynamoDBCountKey.Int(val)
1037 }
1038
1039 // AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the
1040 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
1041 // value of the `ExclusiveStartTableName` request parameter.
1042 func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue {
1043 return AWSDynamoDBExclusiveStartTableKey.String(val)
1044 }
1045
1046 // AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue
1047 // conforming to the "aws.dynamodb.global_secondary_index_updates" semantic
1048 // conventions. It represents the JSON-serialized value of each item in the
1049 // `GlobalSecondaryIndexUpdates` request field.
1050 func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue {
1051 return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val)
1052 }
1053
1054 // AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to
1055 // the "aws.dynamodb.global_secondary_indexes" semantic conventions. It
1056 // represents the JSON-serialized value of each item of the
1057 // `GlobalSecondaryIndexes` request field.
1058 func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue {
1059 return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val)
1060 }
1061
1062 // AWSDynamoDBIndexName returns an attribute KeyValue conforming to the
1063 // "aws.dynamodb.index_name" semantic conventions. It represents the value of the
1064 // `IndexName` request parameter.
1065 func AWSDynamoDBIndexName(val string) attribute.KeyValue {
1066 return AWSDynamoDBIndexNameKey.String(val)
1067 }
1068
1069 // AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to
1070 // the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
1071 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
1072 func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue {
1073 return AWSDynamoDBItemCollectionMetricsKey.String(val)
1074 }
1075
1076 // AWSDynamoDBLimit returns an attribute KeyValue conforming to the
1077 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
1078 // `Limit` request parameter.
1079 func AWSDynamoDBLimit(val int) attribute.KeyValue {
1080 return AWSDynamoDBLimitKey.Int(val)
1081 }
1082
1083 // AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to
1084 // the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
1085 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
1086 // field.
1087 func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue {
1088 return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val)
1089 }
1090
1091 // AWSDynamoDBProjection returns an attribute KeyValue conforming to the
1092 // "aws.dynamodb.projection" semantic conventions. It represents the value of the
1093 // `ProjectionExpression` request parameter.
1094 func AWSDynamoDBProjection(val string) attribute.KeyValue {
1095 return AWSDynamoDBProjectionKey.String(val)
1096 }
1097
1098 // AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to
1099 // the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It
1100 // represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request
1101 // parameter.
1102 func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue {
1103 return AWSDynamoDBProvisionedReadCapacityKey.Float64(val)
1104 }
1105
1106 // AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming
1107 // to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It
1108 // represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request
1109 // parameter.
1110 func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue {
1111 return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val)
1112 }
1113
1114 // AWSDynamoDBScanForward returns an attribute KeyValue conforming to the
1115 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
1116 // the `ScanIndexForward` request parameter.
1117 func AWSDynamoDBScanForward(val bool) attribute.KeyValue {
1118 return AWSDynamoDBScanForwardKey.Bool(val)
1119 }
1120
1121 // AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the
1122 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
1123 // the `ScannedCount` response parameter.
1124 func AWSDynamoDBScannedCount(val int) attribute.KeyValue {
1125 return AWSDynamoDBScannedCountKey.Int(val)
1126 }
1127
1128 // AWSDynamoDBSegment returns an attribute KeyValue conforming to the
1129 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
1130 // `Segment` request parameter.
1131 func AWSDynamoDBSegment(val int) attribute.KeyValue {
1132 return AWSDynamoDBSegmentKey.Int(val)
1133 }
1134
1135 // AWSDynamoDBSelect returns an attribute KeyValue conforming to the
1136 // "aws.dynamodb.select" semantic conventions. It represents the value of the
1137 // `Select` request parameter.
1138 func AWSDynamoDBSelect(val string) attribute.KeyValue {
1139 return AWSDynamoDBSelectKey.String(val)
1140 }
1141
1142 // AWSDynamoDBTableCount returns an attribute KeyValue conforming to the
1143 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
1144 // items in the `TableNames` response parameter.
1145 func AWSDynamoDBTableCount(val int) attribute.KeyValue {
1146 return AWSDynamoDBTableCountKey.Int(val)
1147 }
1148
1149 // AWSDynamoDBTableNames returns an attribute KeyValue conforming to the
1150 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in the
1151 // `RequestItems` object field.
1152 func AWSDynamoDBTableNames(val ...string) attribute.KeyValue {
1153 return AWSDynamoDBTableNamesKey.StringSlice(val)
1154 }
1155
1156 // AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the
1157 // "aws.dynamodb.total_segments" semantic conventions. It represents the value of
1158 // the `TotalSegments` request parameter.
1159 func AWSDynamoDBTotalSegments(val int) attribute.KeyValue {
1160 return AWSDynamoDBTotalSegmentsKey.Int(val)
1161 }
1162
1163 // AWSECSClusterARN returns an attribute KeyValue conforming to the
1164 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
1165 // [ECS cluster].
1166 //
1167 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
1168 func AWSECSClusterARN(val string) attribute.KeyValue {
1169 return AWSECSClusterARNKey.String(val)
1170 }
1171
1172 // AWSECSContainerARN returns an attribute KeyValue conforming to the
1173 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
1174 // Resource Name (ARN) of an [ECS container instance].
1175 //
1176 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
1177 func AWSECSContainerARN(val string) attribute.KeyValue {
1178 return AWSECSContainerARNKey.String(val)
1179 }
1180
1181 // AWSECSTaskARN returns an attribute KeyValue conforming to the
1182 // "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running
1183 // [ECS task].
1184 //
1185 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
1186 func AWSECSTaskARN(val string) attribute.KeyValue {
1187 return AWSECSTaskARNKey.String(val)
1188 }
1189
1190 // AWSECSTaskFamily returns an attribute KeyValue conforming to the
1191 // "aws.ecs.task.family" semantic conventions. It represents the family name of
1192 // the [ECS task definition] used to create the ECS task.
1193 //
1194 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
1195 func AWSECSTaskFamily(val string) attribute.KeyValue {
1196 return AWSECSTaskFamilyKey.String(val)
1197 }
1198
1199 // AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id"
1200 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
1201 // be extracted from `task.arn`.
1202 func AWSECSTaskID(val string) attribute.KeyValue {
1203 return AWSECSTaskIDKey.String(val)
1204 }
1205
1206 // AWSECSTaskRevision returns an attribute KeyValue conforming to the
1207 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
1208 // the task definition used to create the ECS task.
1209 func AWSECSTaskRevision(val string) attribute.KeyValue {
1210 return AWSECSTaskRevisionKey.String(val)
1211 }
1212
1213 // AWSEKSClusterARN returns an attribute KeyValue conforming to the
1214 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
1215 // cluster.
1216 func AWSEKSClusterARN(val string) attribute.KeyValue {
1217 return AWSEKSClusterARNKey.String(val)
1218 }
1219
1220 // AWSExtendedRequestID returns an attribute KeyValue conforming to the
1221 // "aws.extended_request_id" semantic conventions. It represents the AWS extended
1222 // request ID as returned in the response header `x-amz-id-2`.
1223 func AWSExtendedRequestID(val string) attribute.KeyValue {
1224 return AWSExtendedRequestIDKey.String(val)
1225 }
1226
1227 // AWSLambdaInvokedARN returns an attribute KeyValue conforming to the
1228 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
1229 // ARN as provided on the `Context` passed to the function (
1230 // `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next`
1231 // applicable).
1232 func AWSLambdaInvokedARN(val string) attribute.KeyValue {
1233 return AWSLambdaInvokedARNKey.String(val)
1234 }
1235
1236 // AWSLogGroupARNs returns an attribute KeyValue conforming to the
1237 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
1238 // Name(s) (ARN) of the AWS log group(s).
1239 func AWSLogGroupARNs(val ...string) attribute.KeyValue {
1240 return AWSLogGroupARNsKey.StringSlice(val)
1241 }
1242
1243 // AWSLogGroupNames returns an attribute KeyValue conforming to the
1244 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
1245 // AWS log group(s) an application is writing to.
1246 func AWSLogGroupNames(val ...string) attribute.KeyValue {
1247 return AWSLogGroupNamesKey.StringSlice(val)
1248 }
1249
1250 // AWSLogStreamARNs returns an attribute KeyValue conforming to the
1251 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
1252 // AWS log stream(s).
1253 func AWSLogStreamARNs(val ...string) attribute.KeyValue {
1254 return AWSLogStreamARNsKey.StringSlice(val)
1255 }
1256
1257 // AWSLogStreamNames returns an attribute KeyValue conforming to the
1258 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
1259 // AWS log stream(s) an application is writing to.
1260 func AWSLogStreamNames(val ...string) attribute.KeyValue {
1261 return AWSLogStreamNamesKey.StringSlice(val)
1262 }
1263
1264 // AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id"
1265 // semantic conventions. It represents the AWS request ID as returned in the
1266 // response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`
1267 // .
1268 func AWSRequestID(val string) attribute.KeyValue {
1269 return AWSRequestIDKey.String(val)
1270 }
1271
1272 // AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket"
1273 // semantic conventions. It represents the S3 bucket name the request refers to.
1274 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
1275 //
1276 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1277 func AWSS3Bucket(val string) attribute.KeyValue {
1278 return AWSS3BucketKey.String(val)
1279 }
1280
1281 // AWSS3CopySource returns an attribute KeyValue conforming to the
1282 // "aws.s3.copy_source" semantic conventions. It represents the source object (in
1283 // the form `bucket`/`key`) for the copy operation.
1284 func AWSS3CopySource(val string) attribute.KeyValue {
1285 return AWSS3CopySourceKey.String(val)
1286 }
1287
1288 // AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete"
1289 // semantic conventions. It represents the delete request container that
1290 // specifies the objects to be deleted.
1291 func AWSS3Delete(val string) attribute.KeyValue {
1292 return AWSS3DeleteKey.String(val)
1293 }
1294
1295 // AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic
1296 // conventions. It represents the S3 object key the request refers to.
1297 // Corresponds to the `--key` parameter of the [S3 API] operations.
1298 //
1299 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1300 func AWSS3Key(val string) attribute.KeyValue {
1301 return AWSS3KeyKey.String(val)
1302 }
1303
1304 // AWSS3PartNumber returns an attribute KeyValue conforming to the
1305 // "aws.s3.part_number" semantic conventions. It represents the part number of
1306 // the part being uploaded in a multipart-upload operation. This is a positive
1307 // integer between 1 and 10,000.
1308 func AWSS3PartNumber(val int) attribute.KeyValue {
1309 return AWSS3PartNumberKey.Int(val)
1310 }
1311
1312 // AWSS3UploadID returns an attribute KeyValue conforming to the
1313 // "aws.s3.upload_id" semantic conventions. It represents the upload ID that
1314 // identifies the multipart upload.
1315 func AWSS3UploadID(val string) attribute.KeyValue {
1316 return AWSS3UploadIDKey.String(val)
1317 }
1318
1319 // Enum values for aws.ecs.launchtype
1320 var (
1321 // ec2
1322 // Stability: development
1323 AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2")
1324 // fargate
1325 // Stability: development
1326 AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate")
1327 )
1328
1329 // Namespace: az
1330 const (
1331 // AzNamespaceKey is the attribute Key conforming to the "az.namespace" semantic
1332 // conventions. It represents the [Azure Resource Provider Namespace] as
1333 // recognized by the client.
1334 //
1335 // Type: string
1336 // RequirementLevel: Recommended
1337 // Stability: Development
1338 //
1339 // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus"
1340 //
1341 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1342 AzNamespaceKey = attribute.Key("az.namespace")
1343
1344 // AzServiceRequestIDKey is the attribute Key conforming to the
1345 // "az.service_request_id" semantic conventions. It represents the unique
1346 // identifier of the service request. It's generated by the Azure service and
1347 // returned with the response.
1348 //
1349 // Type: string
1350 // RequirementLevel: Recommended
1351 // Stability: Development
1352 //
1353 // Examples: "00000000-0000-0000-0000-000000000000"
1354 AzServiceRequestIDKey = attribute.Key("az.service_request_id")
1355 )
1356
1357 // AzNamespace returns an attribute KeyValue conforming to the "az.namespace"
1358 // semantic conventions. It represents the [Azure Resource Provider Namespace] as
1359 // recognized by the client.
1360 //
1361 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1362 func AzNamespace(val string) attribute.KeyValue {
1363 return AzNamespaceKey.String(val)
1364 }
1365
1366 // AzServiceRequestID returns an attribute KeyValue conforming to the
1367 // "az.service_request_id" semantic conventions. It represents the unique
1368 // identifier of the service request. It's generated by the Azure service and
1369 // returned with the response.
1370 func AzServiceRequestID(val string) attribute.KeyValue {
1371 return AzServiceRequestIDKey.String(val)
1372 }
1373
1374 // Namespace: azure
1375 const (
1376 // AzureClientIDKey is the attribute Key conforming to the "azure.client.id"
1377 // semantic conventions. It represents the unique identifier of the client
1378 // instance.
1379 //
1380 // Type: string
1381 // RequirementLevel: Recommended
1382 // Stability: Development
1383 //
1384 // Examples: "3ba4827d-4422-483f-b59f-85b74211c11d", "storage-client-1"
1385 AzureClientIDKey = attribute.Key("azure.client.id")
1386
1387 // AzureCosmosDBConnectionModeKey is the attribute Key conforming to the
1388 // "azure.cosmosdb.connection.mode" semantic conventions. It represents the
1389 // cosmos client connection mode.
1390 //
1391 // Type: Enum
1392 // RequirementLevel: Recommended
1393 // Stability: Development
1394 //
1395 // Examples:
1396 AzureCosmosDBConnectionModeKey = attribute.Key("azure.cosmosdb.connection.mode")
1397
1398 // AzureCosmosDBConsistencyLevelKey is the attribute Key conforming to the
1399 // "azure.cosmosdb.consistency.level" semantic conventions. It represents the
1400 // account or request [consistency level].
1401 //
1402 // Type: Enum
1403 // RequirementLevel: Recommended
1404 // Stability: Development
1405 //
1406 // Examples: "Eventual", "ConsistentPrefix", "BoundedStaleness", "Strong",
1407 // "Session"
1408 //
1409 // [consistency level]: https://learn.microsoft.com/azure/cosmos-db/consistency-levels
1410 AzureCosmosDBConsistencyLevelKey = attribute.Key("azure.cosmosdb.consistency.level")
1411
1412 // AzureCosmosDBOperationContactedRegionsKey is the attribute Key conforming to
1413 // the "azure.cosmosdb.operation.contacted_regions" semantic conventions. It
1414 // represents the list of regions contacted during operation in the order that
1415 // they were contacted. If there is more than one region listed, it indicates
1416 // that the operation was performed on multiple regions i.e. cross-regional
1417 // call.
1418 //
1419 // Type: string[]
1420 // RequirementLevel: Recommended
1421 // Stability: Development
1422 //
1423 // Examples: "North Central US", "Australia East", "Australia Southeast"
1424 // Note: Region name matches the format of `displayName` in [Azure Location API]
1425 //
1426 // [Azure Location API]: https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location
1427 AzureCosmosDBOperationContactedRegionsKey = attribute.Key("azure.cosmosdb.operation.contacted_regions")
1428
1429 // AzureCosmosDBOperationRequestChargeKey is the attribute Key conforming to the
1430 // "azure.cosmosdb.operation.request_charge" semantic conventions. It represents
1431 // the number of request units consumed by the operation.
1432 //
1433 // Type: double
1434 // RequirementLevel: Recommended
1435 // Stability: Development
1436 //
1437 // Examples: 46.18, 1.0
1438 AzureCosmosDBOperationRequestChargeKey = attribute.Key("azure.cosmosdb.operation.request_charge")
1439
1440 // AzureCosmosDBRequestBodySizeKey is the attribute Key conforming to the
1441 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1442 // request payload size in bytes.
1443 //
1444 // Type: int
1445 // RequirementLevel: Recommended
1446 // Stability: Development
1447 //
1448 // Examples:
1449 AzureCosmosDBRequestBodySizeKey = attribute.Key("azure.cosmosdb.request.body.size")
1450
1451 // AzureCosmosDBResponseSubStatusCodeKey is the attribute Key conforming to the
1452 // "azure.cosmosdb.response.sub_status_code" semantic conventions. It represents
1453 // the cosmos DB sub status code.
1454 //
1455 // Type: int
1456 // RequirementLevel: Recommended
1457 // Stability: Development
1458 //
1459 // Examples: 1000, 1002
1460 AzureCosmosDBResponseSubStatusCodeKey = attribute.Key("azure.cosmosdb.response.sub_status_code")
1461 )
1462
1463 // AzureClientID returns an attribute KeyValue conforming to the
1464 // "azure.client.id" semantic conventions. It represents the unique identifier of
1465 // the client instance.
1466 func AzureClientID(val string) attribute.KeyValue {
1467 return AzureClientIDKey.String(val)
1468 }
1469
1470 // AzureCosmosDBOperationContactedRegions returns an attribute KeyValue
1471 // conforming to the "azure.cosmosdb.operation.contacted_regions" semantic
1472 // conventions. It represents the list of regions contacted during operation in
1473 // the order that they were contacted. If there is more than one region listed,
1474 // it indicates that the operation was performed on multiple regions i.e.
1475 // cross-regional call.
1476 func AzureCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue {
1477 return AzureCosmosDBOperationContactedRegionsKey.StringSlice(val)
1478 }
1479
1480 // AzureCosmosDBOperationRequestCharge returns an attribute KeyValue conforming
1481 // to the "azure.cosmosdb.operation.request_charge" semantic conventions. It
1482 // represents the number of request units consumed by the operation.
1483 func AzureCosmosDBOperationRequestCharge(val float64) attribute.KeyValue {
1484 return AzureCosmosDBOperationRequestChargeKey.Float64(val)
1485 }
1486
1487 // AzureCosmosDBRequestBodySize returns an attribute KeyValue conforming to the
1488 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1489 // request payload size in bytes.
1490 func AzureCosmosDBRequestBodySize(val int) attribute.KeyValue {
1491 return AzureCosmosDBRequestBodySizeKey.Int(val)
1492 }
1493
1494 // AzureCosmosDBResponseSubStatusCode returns an attribute KeyValue conforming to
1495 // the "azure.cosmosdb.response.sub_status_code" semantic conventions. It
1496 // represents the cosmos DB sub status code.
1497 func AzureCosmosDBResponseSubStatusCode(val int) attribute.KeyValue {
1498 return AzureCosmosDBResponseSubStatusCodeKey.Int(val)
1499 }
1500
1501 // Enum values for azure.cosmosdb.connection.mode
1502 var (
1503 // Gateway (HTTP) connection.
1504 // Stability: development
1505 AzureCosmosDBConnectionModeGateway = AzureCosmosDBConnectionModeKey.String("gateway")
1506 // Direct connection.
1507 // Stability: development
1508 AzureCosmosDBConnectionModeDirect = AzureCosmosDBConnectionModeKey.String("direct")
1509 )
1510
1511 // Enum values for azure.cosmosdb.consistency.level
1512 var (
1513 // strong
1514 // Stability: development
1515 AzureCosmosDBConsistencyLevelStrong = AzureCosmosDBConsistencyLevelKey.String("Strong")
1516 // bounded_staleness
1517 // Stability: development
1518 AzureCosmosDBConsistencyLevelBoundedStaleness = AzureCosmosDBConsistencyLevelKey.String("BoundedStaleness")
1519 // session
1520 // Stability: development
1521 AzureCosmosDBConsistencyLevelSession = AzureCosmosDBConsistencyLevelKey.String("Session")
1522 // eventual
1523 // Stability: development
1524 AzureCosmosDBConsistencyLevelEventual = AzureCosmosDBConsistencyLevelKey.String("Eventual")
1525 // consistent_prefix
1526 // Stability: development
1527 AzureCosmosDBConsistencyLevelConsistentPrefix = AzureCosmosDBConsistencyLevelKey.String("ConsistentPrefix")
1528 )
1529
1530 // Namespace: browser
1531 const (
1532 // BrowserBrandsKey is the attribute Key conforming to the "browser.brands"
1533 // semantic conventions. It represents the array of brand name and version
1534 // separated by a space.
1535 //
1536 // Type: string[]
1537 // RequirementLevel: Recommended
1538 // Stability: Development
1539 //
1540 // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99"
1541 // Note: This value is intended to be taken from the [UA client hints API] (
1542 // `navigator.userAgentData.brands`).
1543 //
1544 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1545 BrowserBrandsKey = attribute.Key("browser.brands")
1546
1547 // BrowserLanguageKey is the attribute Key conforming to the "browser.language"
1548 // semantic conventions. It represents the preferred language of the user using
1549 // the browser.
1550 //
1551 // Type: string
1552 // RequirementLevel: Recommended
1553 // Stability: Development
1554 //
1555 // Examples: "en", "en-US", "fr", "fr-FR"
1556 // Note: This value is intended to be taken from the Navigator API
1557 // `navigator.language`.
1558 BrowserLanguageKey = attribute.Key("browser.language")
1559
1560 // BrowserMobileKey is the attribute Key conforming to the "browser.mobile"
1561 // semantic conventions. It represents a boolean that is true if the browser is
1562 // running on a mobile device.
1563 //
1564 // Type: boolean
1565 // RequirementLevel: Recommended
1566 // Stability: Development
1567 //
1568 // Examples:
1569 // Note: This value is intended to be taken from the [UA client hints API] (
1570 // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be
1571 // left unset.
1572 //
1573 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1574 BrowserMobileKey = attribute.Key("browser.mobile")
1575
1576 // BrowserPlatformKey is the attribute Key conforming to the "browser.platform"
1577 // semantic conventions. It represents the platform on which the browser is
1578 // running.
1579 //
1580 // Type: string
1581 // RequirementLevel: Recommended
1582 // Stability: Development
1583 //
1584 // Examples: "Windows", "macOS", "Android"
1585 // Note: This value is intended to be taken from the [UA client hints API] (
1586 // `navigator.userAgentData.platform`). If unavailable, the legacy
1587 // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD
1588 // be left unset in order for the values to be consistent.
1589 // The list of possible values is defined in the
1590 // [W3C User-Agent Client Hints specification]. Note that some (but not all) of
1591 // these values can overlap with values in the
1592 // [`os.type` and `os.name` attributes]. However, for consistency, the values in
1593 // the `browser.platform` attribute should capture the exact value that the user
1594 // agent provides.
1595 //
1596 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1597 // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform
1598 // [`os.type` and `os.name` attributes]: ./os.md
1599 BrowserPlatformKey = attribute.Key("browser.platform")
1600 )
1601
1602 // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands"
1603 // semantic conventions. It represents the array of brand name and version
1604 // separated by a space.
1605 func BrowserBrands(val ...string) attribute.KeyValue {
1606 return BrowserBrandsKey.StringSlice(val)
1607 }
1608
1609 // BrowserLanguage returns an attribute KeyValue conforming to the
1610 // "browser.language" semantic conventions. It represents the preferred language
1611 // of the user using the browser.
1612 func BrowserLanguage(val string) attribute.KeyValue {
1613 return BrowserLanguageKey.String(val)
1614 }
1615
1616 // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile"
1617 // semantic conventions. It represents a boolean that is true if the browser is
1618 // running on a mobile device.
1619 func BrowserMobile(val bool) attribute.KeyValue {
1620 return BrowserMobileKey.Bool(val)
1621 }
1622
1623 // BrowserPlatform returns an attribute KeyValue conforming to the
1624 // "browser.platform" semantic conventions. It represents the platform on which
1625 // the browser is running.
1626 func BrowserPlatform(val string) attribute.KeyValue {
1627 return BrowserPlatformKey.String(val)
1628 }
1629
1630 // Namespace: cassandra
1631 const (
1632 // CassandraConsistencyLevelKey is the attribute Key conforming to the
1633 // "cassandra.consistency.level" semantic conventions. It represents the
1634 // consistency level of the query. Based on consistency values from [CQL].
1635 //
1636 // Type: Enum
1637 // RequirementLevel: Recommended
1638 // Stability: Development
1639 //
1640 // Examples:
1641 //
1642 // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
1643 CassandraConsistencyLevelKey = attribute.Key("cassandra.consistency.level")
1644
1645 // CassandraCoordinatorDCKey is the attribute Key conforming to the
1646 // "cassandra.coordinator.dc" semantic conventions. It represents the data
1647 // center of the coordinating node for a query.
1648 //
1649 // Type: string
1650 // RequirementLevel: Recommended
1651 // Stability: Development
1652 //
1653 // Examples: us-west-2
1654 CassandraCoordinatorDCKey = attribute.Key("cassandra.coordinator.dc")
1655
1656 // CassandraCoordinatorIDKey is the attribute Key conforming to the
1657 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1658 // coordinating node for a query.
1659 //
1660 // Type: string
1661 // RequirementLevel: Recommended
1662 // Stability: Development
1663 //
1664 // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af
1665 CassandraCoordinatorIDKey = attribute.Key("cassandra.coordinator.id")
1666
1667 // CassandraPageSizeKey is the attribute Key conforming to the
1668 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1669 // for paging, i.e. how many rows will be returned at once.
1670 //
1671 // Type: int
1672 // RequirementLevel: Recommended
1673 // Stability: Development
1674 //
1675 // Examples: 5000
1676 CassandraPageSizeKey = attribute.Key("cassandra.page.size")
1677
1678 // CassandraQueryIdempotentKey is the attribute Key conforming to the
1679 // "cassandra.query.idempotent" semantic conventions. It represents the whether
1680 // or not the query is idempotent.
1681 //
1682 // Type: boolean
1683 // RequirementLevel: Recommended
1684 // Stability: Development
1685 //
1686 // Examples:
1687 CassandraQueryIdempotentKey = attribute.Key("cassandra.query.idempotent")
1688
1689 // CassandraSpeculativeExecutionCountKey is the attribute Key conforming to the
1690 // "cassandra.speculative_execution.count" semantic conventions. It represents
1691 // the number of times a query was speculatively executed. Not set or `0` if the
1692 // query was not executed speculatively.
1693 //
1694 // Type: int
1695 // RequirementLevel: Recommended
1696 // Stability: Development
1697 //
1698 // Examples: 0, 2
1699 CassandraSpeculativeExecutionCountKey = attribute.Key("cassandra.speculative_execution.count")
1700 )
1701
1702 // CassandraCoordinatorDC returns an attribute KeyValue conforming to the
1703 // "cassandra.coordinator.dc" semantic conventions. It represents the data center
1704 // of the coordinating node for a query.
1705 func CassandraCoordinatorDC(val string) attribute.KeyValue {
1706 return CassandraCoordinatorDCKey.String(val)
1707 }
1708
1709 // CassandraCoordinatorID returns an attribute KeyValue conforming to the
1710 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1711 // coordinating node for a query.
1712 func CassandraCoordinatorID(val string) attribute.KeyValue {
1713 return CassandraCoordinatorIDKey.String(val)
1714 }
1715
1716 // CassandraPageSize returns an attribute KeyValue conforming to the
1717 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1718 // for paging, i.e. how many rows will be returned at once.
1719 func CassandraPageSize(val int) attribute.KeyValue {
1720 return CassandraPageSizeKey.Int(val)
1721 }
1722
1723 // CassandraQueryIdempotent returns an attribute KeyValue conforming to the
1724 // "cassandra.query.idempotent" semantic conventions. It represents the whether
1725 // or not the query is idempotent.
1726 func CassandraQueryIdempotent(val bool) attribute.KeyValue {
1727 return CassandraQueryIdempotentKey.Bool(val)
1728 }
1729
1730 // CassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to
1731 // the "cassandra.speculative_execution.count" semantic conventions. It
1732 // represents the number of times a query was speculatively executed. Not set or
1733 // `0` if the query was not executed speculatively.
1734 func CassandraSpeculativeExecutionCount(val int) attribute.KeyValue {
1735 return CassandraSpeculativeExecutionCountKey.Int(val)
1736 }
1737
1738 // Enum values for cassandra.consistency.level
1739 var (
1740 // all
1741 // Stability: development
1742 CassandraConsistencyLevelAll = CassandraConsistencyLevelKey.String("all")
1743 // each_quorum
1744 // Stability: development
1745 CassandraConsistencyLevelEachQuorum = CassandraConsistencyLevelKey.String("each_quorum")
1746 // quorum
1747 // Stability: development
1748 CassandraConsistencyLevelQuorum = CassandraConsistencyLevelKey.String("quorum")
1749 // local_quorum
1750 // Stability: development
1751 CassandraConsistencyLevelLocalQuorum = CassandraConsistencyLevelKey.String("local_quorum")
1752 // one
1753 // Stability: development
1754 CassandraConsistencyLevelOne = CassandraConsistencyLevelKey.String("one")
1755 // two
1756 // Stability: development
1757 CassandraConsistencyLevelTwo = CassandraConsistencyLevelKey.String("two")
1758 // three
1759 // Stability: development
1760 CassandraConsistencyLevelThree = CassandraConsistencyLevelKey.String("three")
1761 // local_one
1762 // Stability: development
1763 CassandraConsistencyLevelLocalOne = CassandraConsistencyLevelKey.String("local_one")
1764 // any
1765 // Stability: development
1766 CassandraConsistencyLevelAny = CassandraConsistencyLevelKey.String("any")
1767 // serial
1768 // Stability: development
1769 CassandraConsistencyLevelSerial = CassandraConsistencyLevelKey.String("serial")
1770 // local_serial
1771 // Stability: development
1772 CassandraConsistencyLevelLocalSerial = CassandraConsistencyLevelKey.String("local_serial")
1773 )
1774
1775 // Namespace: cicd
1776 const (
1777 // CICDPipelineActionNameKey is the attribute Key conforming to the
1778 // "cicd.pipeline.action.name" semantic conventions. It represents the kind of
1779 // action a pipeline run is performing.
1780 //
1781 // Type: Enum
1782 // RequirementLevel: Recommended
1783 // Stability: Development
1784 //
1785 // Examples: "BUILD", "RUN", "SYNC"
1786 CICDPipelineActionNameKey = attribute.Key("cicd.pipeline.action.name")
1787
1788 // CICDPipelineNameKey is the attribute Key conforming to the
1789 // "cicd.pipeline.name" semantic conventions. It represents the human readable
1790 // name of the pipeline within a CI/CD system.
1791 //
1792 // Type: string
1793 // RequirementLevel: Recommended
1794 // Stability: Development
1795 //
1796 // Examples: "Build and Test", "Lint", "Deploy Go Project",
1797 // "deploy_to_environment"
1798 CICDPipelineNameKey = attribute.Key("cicd.pipeline.name")
1799
1800 // CICDPipelineResultKey is the attribute Key conforming to the
1801 // "cicd.pipeline.result" semantic conventions. It represents the result of a
1802 // pipeline run.
1803 //
1804 // Type: Enum
1805 // RequirementLevel: Recommended
1806 // Stability: Development
1807 //
1808 // Examples: "success", "failure", "timeout", "skipped"
1809 CICDPipelineResultKey = attribute.Key("cicd.pipeline.result")
1810
1811 // CICDPipelineRunIDKey is the attribute Key conforming to the
1812 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
1813 // identifier of a pipeline run within a CI/CD system.
1814 //
1815 // Type: string
1816 // RequirementLevel: Recommended
1817 // Stability: Development
1818 //
1819 // Examples: "120912"
1820 CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id")
1821
1822 // CICDPipelineRunStateKey is the attribute Key conforming to the
1823 // "cicd.pipeline.run.state" semantic conventions. It represents the pipeline
1824 // run goes through these states during its lifecycle.
1825 //
1826 // Type: Enum
1827 // RequirementLevel: Recommended
1828 // Stability: Development
1829 //
1830 // Examples: "pending", "executing", "finalizing"
1831 CICDPipelineRunStateKey = attribute.Key("cicd.pipeline.run.state")
1832
1833 // CICDPipelineRunURLFullKey is the attribute Key conforming to the
1834 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
1835 // the pipeline run, providing the complete address in order to locate and
1836 // identify the pipeline run.
1837 //
1838 // Type: string
1839 // RequirementLevel: Recommended
1840 // Stability: Development
1841 //
1842 // Examples:
1843 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075"
1844 //
1845 // [URL]: https://wikipedia.org/wiki/URL
1846 CICDPipelineRunURLFullKey = attribute.Key("cicd.pipeline.run.url.full")
1847
1848 // CICDPipelineTaskNameKey is the attribute Key conforming to the
1849 // "cicd.pipeline.task.name" semantic conventions. It represents the human
1850 // readable name of a task within a pipeline. Task here most closely aligns with
1851 // a [computing process] in a pipeline. Other terms for tasks include commands,
1852 // steps, and procedures.
1853 //
1854 // Type: string
1855 // RequirementLevel: Recommended
1856 // Stability: Development
1857 //
1858 // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary"
1859 //
1860 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
1861 CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name")
1862
1863 // CICDPipelineTaskRunIDKey is the attribute Key conforming to the
1864 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
1865 // identifier of a task run within a pipeline.
1866 //
1867 // Type: string
1868 // RequirementLevel: Recommended
1869 // Stability: Development
1870 //
1871 // Examples: "12097"
1872 CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id")
1873
1874 // CICDPipelineTaskRunResultKey is the attribute Key conforming to the
1875 // "cicd.pipeline.task.run.result" semantic conventions. It represents the
1876 // result of a task run.
1877 //
1878 // Type: Enum
1879 // RequirementLevel: Recommended
1880 // Stability: Development
1881 //
1882 // Examples: "success", "failure", "timeout", "skipped"
1883 CICDPipelineTaskRunResultKey = attribute.Key("cicd.pipeline.task.run.result")
1884
1885 // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the
1886 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
1887 // [URL] of the pipeline task run, providing the complete address in order to
1888 // locate and identify the pipeline task run.
1889 //
1890 // Type: string
1891 // RequirementLevel: Recommended
1892 // Stability: Development
1893 //
1894 // Examples:
1895 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"
1896 //
1897 // [URL]: https://wikipedia.org/wiki/URL
1898 CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full")
1899
1900 // CICDPipelineTaskTypeKey is the attribute Key conforming to the
1901 // "cicd.pipeline.task.type" semantic conventions. It represents the type of the
1902 // task within a pipeline.
1903 //
1904 // Type: Enum
1905 // RequirementLevel: Recommended
1906 // Stability: Development
1907 //
1908 // Examples: "build", "test", "deploy"
1909 CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type")
1910
1911 // CICDSystemComponentKey is the attribute Key conforming to the
1912 // "cicd.system.component" semantic conventions. It represents the name of a
1913 // component of the CICD system.
1914 //
1915 // Type: string
1916 // RequirementLevel: Recommended
1917 // Stability: Development
1918 //
1919 // Examples: "controller", "scheduler", "agent"
1920 CICDSystemComponentKey = attribute.Key("cicd.system.component")
1921
1922 // CICDWorkerIDKey is the attribute Key conforming to the "cicd.worker.id"
1923 // semantic conventions. It represents the unique identifier of a worker within
1924 // a CICD system.
1925 //
1926 // Type: string
1927 // RequirementLevel: Recommended
1928 // Stability: Development
1929 //
1930 // Examples: "abc123", "10.0.1.2", "controller"
1931 CICDWorkerIDKey = attribute.Key("cicd.worker.id")
1932
1933 // CICDWorkerNameKey is the attribute Key conforming to the "cicd.worker.name"
1934 // semantic conventions. It represents the name of a worker within a CICD
1935 // system.
1936 //
1937 // Type: string
1938 // RequirementLevel: Recommended
1939 // Stability: Development
1940 //
1941 // Examples: "agent-abc", "controller", "Ubuntu LTS"
1942 CICDWorkerNameKey = attribute.Key("cicd.worker.name")
1943
1944 // CICDWorkerStateKey is the attribute Key conforming to the "cicd.worker.state"
1945 // semantic conventions. It represents the state of a CICD worker / agent.
1946 //
1947 // Type: Enum
1948 // RequirementLevel: Recommended
1949 // Stability: Development
1950 //
1951 // Examples: "idle", "busy", "down"
1952 CICDWorkerStateKey = attribute.Key("cicd.worker.state")
1953
1954 // CICDWorkerURLFullKey is the attribute Key conforming to the
1955 // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
1956 // worker, providing the complete address in order to locate and identify the
1957 // worker.
1958 //
1959 // Type: string
1960 // RequirementLevel: Recommended
1961 // Stability: Development
1962 //
1963 // Examples: "https://cicd.example.org/worker/abc123"
1964 //
1965 // [URL]: https://wikipedia.org/wiki/URL
1966 CICDWorkerURLFullKey = attribute.Key("cicd.worker.url.full")
1967 )
1968
1969 // CICDPipelineName returns an attribute KeyValue conforming to the
1970 // "cicd.pipeline.name" semantic conventions. It represents the human readable
1971 // name of the pipeline within a CI/CD system.
1972 func CICDPipelineName(val string) attribute.KeyValue {
1973 return CICDPipelineNameKey.String(val)
1974 }
1975
1976 // CICDPipelineRunID returns an attribute KeyValue conforming to the
1977 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
1978 // identifier of a pipeline run within a CI/CD system.
1979 func CICDPipelineRunID(val string) attribute.KeyValue {
1980 return CICDPipelineRunIDKey.String(val)
1981 }
1982
1983 // CICDPipelineRunURLFull returns an attribute KeyValue conforming to the
1984 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
1985 // the pipeline run, providing the complete address in order to locate and
1986 // identify the pipeline run.
1987 //
1988 // [URL]: https://wikipedia.org/wiki/URL
1989 func CICDPipelineRunURLFull(val string) attribute.KeyValue {
1990 return CICDPipelineRunURLFullKey.String(val)
1991 }
1992
1993 // CICDPipelineTaskName returns an attribute KeyValue conforming to the
1994 // "cicd.pipeline.task.name" semantic conventions. It represents the human
1995 // readable name of a task within a pipeline. Task here most closely aligns with
1996 // a [computing process] in a pipeline. Other terms for tasks include commands,
1997 // steps, and procedures.
1998 //
1999 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
2000 func CICDPipelineTaskName(val string) attribute.KeyValue {
2001 return CICDPipelineTaskNameKey.String(val)
2002 }
2003
2004 // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the
2005 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
2006 // identifier of a task run within a pipeline.
2007 func CICDPipelineTaskRunID(val string) attribute.KeyValue {
2008 return CICDPipelineTaskRunIDKey.String(val)
2009 }
2010
2011 // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the
2012 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
2013 // [URL] of the pipeline task run, providing the complete address in order to
2014 // locate and identify the pipeline task run.
2015 //
2016 // [URL]: https://wikipedia.org/wiki/URL
2017 func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue {
2018 return CICDPipelineTaskRunURLFullKey.String(val)
2019 }
2020
2021 // CICDSystemComponent returns an attribute KeyValue conforming to the
2022 // "cicd.system.component" semantic conventions. It represents the name of a
2023 // component of the CICD system.
2024 func CICDSystemComponent(val string) attribute.KeyValue {
2025 return CICDSystemComponentKey.String(val)
2026 }
2027
2028 // CICDWorkerID returns an attribute KeyValue conforming to the "cicd.worker.id"
2029 // semantic conventions. It represents the unique identifier of a worker within a
2030 // CICD system.
2031 func CICDWorkerID(val string) attribute.KeyValue {
2032 return CICDWorkerIDKey.String(val)
2033 }
2034
2035 // CICDWorkerName returns an attribute KeyValue conforming to the
2036 // "cicd.worker.name" semantic conventions. It represents the name of a worker
2037 // within a CICD system.
2038 func CICDWorkerName(val string) attribute.KeyValue {
2039 return CICDWorkerNameKey.String(val)
2040 }
2041
2042 // CICDWorkerURLFull returns an attribute KeyValue conforming to the
2043 // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
2044 // worker, providing the complete address in order to locate and identify the
2045 // worker.
2046 //
2047 // [URL]: https://wikipedia.org/wiki/URL
2048 func CICDWorkerURLFull(val string) attribute.KeyValue {
2049 return CICDWorkerURLFullKey.String(val)
2050 }
2051
2052 // Enum values for cicd.pipeline.action.name
2053 var (
2054 // The pipeline run is executing a build.
2055 // Stability: development
2056 CICDPipelineActionNameBuild = CICDPipelineActionNameKey.String("BUILD")
2057 // The pipeline run is executing.
2058 // Stability: development
2059 CICDPipelineActionNameRun = CICDPipelineActionNameKey.String("RUN")
2060 // The pipeline run is executing a sync.
2061 // Stability: development
2062 CICDPipelineActionNameSync = CICDPipelineActionNameKey.String("SYNC")
2063 )
2064
2065 // Enum values for cicd.pipeline.result
2066 var (
2067 // The pipeline run finished successfully.
2068 // Stability: development
2069 CICDPipelineResultSuccess = CICDPipelineResultKey.String("success")
2070 // The pipeline run did not finish successfully, eg. due to a compile error or a
2071 // failing test. Such failures are usually detected by non-zero exit codes of
2072 // the tools executed in the pipeline run.
2073 // Stability: development
2074 CICDPipelineResultFailure = CICDPipelineResultKey.String("failure")
2075 // The pipeline run failed due to an error in the CICD system, eg. due to the
2076 // worker being killed.
2077 // Stability: development
2078 CICDPipelineResultError = CICDPipelineResultKey.String("error")
2079 // A timeout caused the pipeline run to be interrupted.
2080 // Stability: development
2081 CICDPipelineResultTimeout = CICDPipelineResultKey.String("timeout")
2082 // The pipeline run was cancelled, eg. by a user manually cancelling the
2083 // pipeline run.
2084 // Stability: development
2085 CICDPipelineResultCancellation = CICDPipelineResultKey.String("cancellation")
2086 // The pipeline run was skipped, eg. due to a precondition not being met.
2087 // Stability: development
2088 CICDPipelineResultSkip = CICDPipelineResultKey.String("skip")
2089 )
2090
2091 // Enum values for cicd.pipeline.run.state
2092 var (
2093 // The run pending state spans from the event triggering the pipeline run until
2094 // the execution of the run starts (eg. time spent in a queue, provisioning
2095 // agents, creating run resources).
2096 //
2097 // Stability: development
2098 CICDPipelineRunStatePending = CICDPipelineRunStateKey.String("pending")
2099 // The executing state spans the execution of any run tasks (eg. build, test).
2100 // Stability: development
2101 CICDPipelineRunStateExecuting = CICDPipelineRunStateKey.String("executing")
2102 // The finalizing state spans from when the run has finished executing (eg.
2103 // cleanup of run resources).
2104 // Stability: development
2105 CICDPipelineRunStateFinalizing = CICDPipelineRunStateKey.String("finalizing")
2106 )
2107
2108 // Enum values for cicd.pipeline.task.run.result
2109 var (
2110 // The task run finished successfully.
2111 // Stability: development
2112 CICDPipelineTaskRunResultSuccess = CICDPipelineTaskRunResultKey.String("success")
2113 // The task run did not finish successfully, eg. due to a compile error or a
2114 // failing test. Such failures are usually detected by non-zero exit codes of
2115 // the tools executed in the task run.
2116 // Stability: development
2117 CICDPipelineTaskRunResultFailure = CICDPipelineTaskRunResultKey.String("failure")
2118 // The task run failed due to an error in the CICD system, eg. due to the worker
2119 // being killed.
2120 // Stability: development
2121 CICDPipelineTaskRunResultError = CICDPipelineTaskRunResultKey.String("error")
2122 // A timeout caused the task run to be interrupted.
2123 // Stability: development
2124 CICDPipelineTaskRunResultTimeout = CICDPipelineTaskRunResultKey.String("timeout")
2125 // The task run was cancelled, eg. by a user manually cancelling the task run.
2126 // Stability: development
2127 CICDPipelineTaskRunResultCancellation = CICDPipelineTaskRunResultKey.String("cancellation")
2128 // The task run was skipped, eg. due to a precondition not being met.
2129 // Stability: development
2130 CICDPipelineTaskRunResultSkip = CICDPipelineTaskRunResultKey.String("skip")
2131 )
2132
2133 // Enum values for cicd.pipeline.task.type
2134 var (
2135 // build
2136 // Stability: development
2137 CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build")
2138 // test
2139 // Stability: development
2140 CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test")
2141 // deploy
2142 // Stability: development
2143 CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy")
2144 )
2145
2146 // Enum values for cicd.worker.state
2147 var (
2148 // The worker is not performing work for the CICD system. It is available to the
2149 // CICD system to perform work on (online / idle).
2150 // Stability: development
2151 CICDWorkerStateAvailable = CICDWorkerStateKey.String("available")
2152 // The worker is performing work for the CICD system.
2153 // Stability: development
2154 CICDWorkerStateBusy = CICDWorkerStateKey.String("busy")
2155 // The worker is not available to the CICD system (disconnected / down).
2156 // Stability: development
2157 CICDWorkerStateOffline = CICDWorkerStateKey.String("offline")
2158 )
2159
2160 // Namespace: client
2161 const (
2162 // ClientAddressKey is the attribute Key conforming to the "client.address"
2163 // semantic conventions. It represents the client address - domain name if
2164 // available without reverse DNS lookup; otherwise, IP address or Unix domain
2165 // socket name.
2166 //
2167 // Type: string
2168 // RequirementLevel: Recommended
2169 // Stability: Stable
2170 //
2171 // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock"
2172 // Note: When observed from the server side, and when communicating through an
2173 // intermediary, `client.address` SHOULD represent the client address behind any
2174 // intermediaries, for example proxies, if it's available.
2175 ClientAddressKey = attribute.Key("client.address")
2176
2177 // ClientPortKey is the attribute Key conforming to the "client.port" semantic
2178 // conventions. It represents the client port number.
2179 //
2180 // Type: int
2181 // RequirementLevel: Recommended
2182 // Stability: Stable
2183 //
2184 // Examples: 65123
2185 // Note: When observed from the server side, and when communicating through an
2186 // intermediary, `client.port` SHOULD represent the client port behind any
2187 // intermediaries, for example proxies, if it's available.
2188 ClientPortKey = attribute.Key("client.port")
2189 )
2190
2191 // ClientAddress returns an attribute KeyValue conforming to the "client.address"
2192 // semantic conventions. It represents the client address - domain name if
2193 // available without reverse DNS lookup; otherwise, IP address or Unix domain
2194 // socket name.
2195 func ClientAddress(val string) attribute.KeyValue {
2196 return ClientAddressKey.String(val)
2197 }
2198
2199 // ClientPort returns an attribute KeyValue conforming to the "client.port"
2200 // semantic conventions. It represents the client port number.
2201 func ClientPort(val int) attribute.KeyValue {
2202 return ClientPortKey.Int(val)
2203 }
2204
2205 // Namespace: cloud
2206 const (
2207 // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id"
2208 // semantic conventions. It represents the cloud account ID the resource is
2209 // assigned to.
2210 //
2211 // Type: string
2212 // RequirementLevel: Recommended
2213 // Stability: Development
2214 //
2215 // Examples: "111111111111", "opentelemetry"
2216 CloudAccountIDKey = attribute.Key("cloud.account.id")
2217
2218 // CloudAvailabilityZoneKey is the attribute Key conforming to the
2219 // "cloud.availability_zone" semantic conventions. It represents the cloud
2220 // regions often have multiple, isolated locations known as zones to increase
2221 // availability. Availability zone represents the zone where the resource is
2222 // running.
2223 //
2224 // Type: string
2225 // RequirementLevel: Recommended
2226 // Stability: Development
2227 //
2228 // Examples: "us-east-1c"
2229 // Note: Availability zones are called "zones" on Alibaba Cloud and Google
2230 // Cloud.
2231 CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
2232
2233 // CloudPlatformKey is the attribute Key conforming to the "cloud.platform"
2234 // semantic conventions. It represents the cloud platform in use.
2235 //
2236 // Type: Enum
2237 // RequirementLevel: Recommended
2238 // Stability: Development
2239 //
2240 // Examples:
2241 // Note: The prefix of the service SHOULD match the one specified in
2242 // `cloud.provider`.
2243 CloudPlatformKey = attribute.Key("cloud.platform")
2244
2245 // CloudProviderKey is the attribute Key conforming to the "cloud.provider"
2246 // semantic conventions. It represents the name of the cloud provider.
2247 //
2248 // Type: Enum
2249 // RequirementLevel: Recommended
2250 // Stability: Development
2251 //
2252 // Examples:
2253 CloudProviderKey = attribute.Key("cloud.provider")
2254
2255 // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic
2256 // conventions. It represents the geographical region the resource is running.
2257 //
2258 // Type: string
2259 // RequirementLevel: Recommended
2260 // Stability: Development
2261 //
2262 // Examples: "us-central1", "us-east-1"
2263 // Note: Refer to your provider's docs to see the available regions, for example
2264 // [Alibaba Cloud regions], [AWS regions], [Azure regions],
2265 // [Google Cloud regions], or [Tencent Cloud regions].
2266 //
2267 // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm
2268 // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/
2269 // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/
2270 // [Google Cloud regions]: https://cloud.google.com/about/locations
2271 // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091
2272 CloudRegionKey = attribute.Key("cloud.region")
2273
2274 // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id"
2275 // semantic conventions. It represents the cloud provider-specific native
2276 // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a
2277 // [fully qualified resource ID] on Azure, a [full resource name] on GCP).
2278 //
2279 // Type: string
2280 // RequirementLevel: Recommended
2281 // Stability: Development
2282 //
2283 // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",
2284 // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID",
2285 // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>
2286 // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>"
2287 // Note: On some cloud providers, it may not be possible to determine the full
2288 // ID at startup,
2289 // so it may be necessary to set `cloud.resource_id` as a span attribute
2290 // instead.
2291 //
2292 // The exact value to use for `cloud.resource_id` depends on the cloud provider.
2293 // The following well-known definitions MUST be used if you set this attribute
2294 // and they apply:
2295 //
2296 // - **AWS Lambda:** The function [ARN].
2297 // Take care not to use the "invoked ARN" directly but replace any
2298 // [alias suffix]
2299 // with the resolved function version, as the same runtime instance may be
2300 // invocable with
2301 // multiple different aliases.
2302 // - **GCP:** The [URI of the resource]
2303 // - **Azure:** The [Fully Qualified Resource ID] of the invoked function,
2304 // *not* the function app, having the form
2305 //
2306 // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`
2307 // .
2308 // This means that a span attribute MUST be used, as an Azure function app
2309 // can host multiple functions that would usually share
2310 // a TracerProvider.
2311 //
2312 //
2313 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2314 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2315 // [full resource name]: https://google.aip.dev/122#full-resource-names
2316 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2317 // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
2318 // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names
2319 // [Fully Qualified Resource ID]: https://docs.microsoft.com/rest/api/resources/resources/get-by-id
2320 CloudResourceIDKey = attribute.Key("cloud.resource_id")
2321 )
2322
2323 // CloudAccountID returns an attribute KeyValue conforming to the
2324 // "cloud.account.id" semantic conventions. It represents the cloud account ID
2325 // the resource is assigned to.
2326 func CloudAccountID(val string) attribute.KeyValue {
2327 return CloudAccountIDKey.String(val)
2328 }
2329
2330 // CloudAvailabilityZone returns an attribute KeyValue conforming to the
2331 // "cloud.availability_zone" semantic conventions. It represents the cloud
2332 // regions often have multiple, isolated locations known as zones to increase
2333 // availability. Availability zone represents the zone where the resource is
2334 // running.
2335 func CloudAvailabilityZone(val string) attribute.KeyValue {
2336 return CloudAvailabilityZoneKey.String(val)
2337 }
2338
2339 // CloudRegion returns an attribute KeyValue conforming to the "cloud.region"
2340 // semantic conventions. It represents the geographical region the resource is
2341 // running.
2342 func CloudRegion(val string) attribute.KeyValue {
2343 return CloudRegionKey.String(val)
2344 }
2345
2346 // CloudResourceID returns an attribute KeyValue conforming to the
2347 // "cloud.resource_id" semantic conventions. It represents the cloud
2348 // provider-specific native identifier of the monitored cloud resource (e.g. an
2349 // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name]
2350 // on GCP).
2351 //
2352 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2353 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2354 // [full resource name]: https://google.aip.dev/122#full-resource-names
2355 func CloudResourceID(val string) attribute.KeyValue {
2356 return CloudResourceIDKey.String(val)
2357 }
2358
2359 // Enum values for cloud.platform
2360 var (
2361 // Alibaba Cloud Elastic Compute Service
2362 // Stability: development
2363 CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
2364 // Alibaba Cloud Function Compute
2365 // Stability: development
2366 CloudPlatformAlibabaCloudFC = CloudPlatformKey.String("alibaba_cloud_fc")
2367 // Red Hat OpenShift on Alibaba Cloud
2368 // Stability: development
2369 CloudPlatformAlibabaCloudOpenShift = CloudPlatformKey.String("alibaba_cloud_openshift")
2370 // AWS Elastic Compute Cloud
2371 // Stability: development
2372 CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
2373 // AWS Elastic Container Service
2374 // Stability: development
2375 CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
2376 // AWS Elastic Kubernetes Service
2377 // Stability: development
2378 CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
2379 // AWS Lambda
2380 // Stability: development
2381 CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
2382 // AWS Elastic Beanstalk
2383 // Stability: development
2384 CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
2385 // AWS App Runner
2386 // Stability: development
2387 CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
2388 // Red Hat OpenShift on AWS (ROSA)
2389 // Stability: development
2390 CloudPlatformAWSOpenShift = CloudPlatformKey.String("aws_openshift")
2391 // Azure Virtual Machines
2392 // Stability: development
2393 CloudPlatformAzureVM = CloudPlatformKey.String("azure_vm")
2394 // Azure Container Apps
2395 // Stability: development
2396 CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure_container_apps")
2397 // Azure Container Instances
2398 // Stability: development
2399 CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure_container_instances")
2400 // Azure Kubernetes Service
2401 // Stability: development
2402 CloudPlatformAzureAKS = CloudPlatformKey.String("azure_aks")
2403 // Azure Functions
2404 // Stability: development
2405 CloudPlatformAzureFunctions = CloudPlatformKey.String("azure_functions")
2406 // Azure App Service
2407 // Stability: development
2408 CloudPlatformAzureAppService = CloudPlatformKey.String("azure_app_service")
2409 // Azure Red Hat OpenShift
2410 // Stability: development
2411 CloudPlatformAzureOpenShift = CloudPlatformKey.String("azure_openshift")
2412 // Google Bare Metal Solution (BMS)
2413 // Stability: development
2414 CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
2415 // Google Cloud Compute Engine (GCE)
2416 // Stability: development
2417 CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
2418 // Google Cloud Run
2419 // Stability: development
2420 CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
2421 // Google Cloud Kubernetes Engine (GKE)
2422 // Stability: development
2423 CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
2424 // Google Cloud Functions (GCF)
2425 // Stability: development
2426 CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
2427 // Google Cloud App Engine (GAE)
2428 // Stability: development
2429 CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
2430 // Red Hat OpenShift on Google Cloud
2431 // Stability: development
2432 CloudPlatformGCPOpenShift = CloudPlatformKey.String("gcp_openshift")
2433 // Red Hat OpenShift on IBM Cloud
2434 // Stability: development
2435 CloudPlatformIBMCloudOpenShift = CloudPlatformKey.String("ibm_cloud_openshift")
2436 // Compute on Oracle Cloud Infrastructure (OCI)
2437 // Stability: development
2438 CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute")
2439 // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI)
2440 // Stability: development
2441 CloudPlatformOracleCloudOKE = CloudPlatformKey.String("oracle_cloud_oke")
2442 // Tencent Cloud Cloud Virtual Machine (CVM)
2443 // Stability: development
2444 CloudPlatformTencentCloudCVM = CloudPlatformKey.String("tencent_cloud_cvm")
2445 // Tencent Cloud Elastic Kubernetes Service (EKS)
2446 // Stability: development
2447 CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
2448 // Tencent Cloud Serverless Cloud Function (SCF)
2449 // Stability: development
2450 CloudPlatformTencentCloudSCF = CloudPlatformKey.String("tencent_cloud_scf")
2451 )
2452
2453 // Enum values for cloud.provider
2454 var (
2455 // Alibaba Cloud
2456 // Stability: development
2457 CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
2458 // Amazon Web Services
2459 // Stability: development
2460 CloudProviderAWS = CloudProviderKey.String("aws")
2461 // Microsoft Azure
2462 // Stability: development
2463 CloudProviderAzure = CloudProviderKey.String("azure")
2464 // Google Cloud Platform
2465 // Stability: development
2466 CloudProviderGCP = CloudProviderKey.String("gcp")
2467 // Heroku Platform as a Service
2468 // Stability: development
2469 CloudProviderHeroku = CloudProviderKey.String("heroku")
2470 // IBM Cloud
2471 // Stability: development
2472 CloudProviderIBMCloud = CloudProviderKey.String("ibm_cloud")
2473 // Oracle Cloud Infrastructure (OCI)
2474 // Stability: development
2475 CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud")
2476 // Tencent Cloud
2477 // Stability: development
2478 CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
2479 )
2480
2481 // Namespace: cloudevents
2482 const (
2483 // CloudEventsEventIDKey is the attribute Key conforming to the
2484 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2485 // uniquely identifies the event.
2486 //
2487 // Type: string
2488 // RequirementLevel: Recommended
2489 // Stability: Development
2490 //
2491 // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
2492 //
2493 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2494 CloudEventsEventIDKey = attribute.Key("cloudevents.event_id")
2495
2496 // CloudEventsEventSourceKey is the attribute Key conforming to the
2497 // "cloudevents.event_source" semantic conventions. It represents the [source]
2498 // identifies the context in which an event happened.
2499 //
2500 // Type: string
2501 // RequirementLevel: Recommended
2502 // Stability: Development
2503 //
2504 // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
2505 // "my-service"
2506 //
2507 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2508 CloudEventsEventSourceKey = attribute.Key("cloudevents.event_source")
2509
2510 // CloudEventsEventSpecVersionKey is the attribute Key conforming to the
2511 // "cloudevents.event_spec_version" semantic conventions. It represents the
2512 // [version of the CloudEvents specification] which the event uses.
2513 //
2514 // Type: string
2515 // RequirementLevel: Recommended
2516 // Stability: Development
2517 //
2518 // Examples: 1.0
2519 //
2520 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2521 CloudEventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
2522
2523 // CloudEventsEventSubjectKey is the attribute Key conforming to the
2524 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2525 // of the event in the context of the event producer (identified by source).
2526 //
2527 // Type: string
2528 // RequirementLevel: Recommended
2529 // Stability: Development
2530 //
2531 // Examples: mynewfile.jpg
2532 //
2533 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2534 CloudEventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
2535
2536 // CloudEventsEventTypeKey is the attribute Key conforming to the
2537 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2538 // contains a value describing the type of event related to the originating
2539 // occurrence.
2540 //
2541 // Type: string
2542 // RequirementLevel: Recommended
2543 // Stability: Development
2544 //
2545 // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
2546 //
2547 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2548 CloudEventsEventTypeKey = attribute.Key("cloudevents.event_type")
2549 )
2550
2551 // CloudEventsEventID returns an attribute KeyValue conforming to the
2552 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2553 // uniquely identifies the event.
2554 //
2555 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2556 func CloudEventsEventID(val string) attribute.KeyValue {
2557 return CloudEventsEventIDKey.String(val)
2558 }
2559
2560 // CloudEventsEventSource returns an attribute KeyValue conforming to the
2561 // "cloudevents.event_source" semantic conventions. It represents the [source]
2562 // identifies the context in which an event happened.
2563 //
2564 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2565 func CloudEventsEventSource(val string) attribute.KeyValue {
2566 return CloudEventsEventSourceKey.String(val)
2567 }
2568
2569 // CloudEventsEventSpecVersion returns an attribute KeyValue conforming to the
2570 // "cloudevents.event_spec_version" semantic conventions. It represents the
2571 // [version of the CloudEvents specification] which the event uses.
2572 //
2573 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2574 func CloudEventsEventSpecVersion(val string) attribute.KeyValue {
2575 return CloudEventsEventSpecVersionKey.String(val)
2576 }
2577
2578 // CloudEventsEventSubject returns an attribute KeyValue conforming to the
2579 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2580 // of the event in the context of the event producer (identified by source).
2581 //
2582 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2583 func CloudEventsEventSubject(val string) attribute.KeyValue {
2584 return CloudEventsEventSubjectKey.String(val)
2585 }
2586
2587 // CloudEventsEventType returns an attribute KeyValue conforming to the
2588 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2589 // contains a value describing the type of event related to the originating
2590 // occurrence.
2591 //
2592 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2593 func CloudEventsEventType(val string) attribute.KeyValue {
2594 return CloudEventsEventTypeKey.String(val)
2595 }
2596
2597 // Namespace: cloudfoundry
2598 const (
2599 // CloudFoundryAppIDKey is the attribute Key conforming to the
2600 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2601 // application.
2602 //
2603 // Type: string
2604 // RequirementLevel: Recommended
2605 // Stability: Development
2606 //
2607 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2608 // Note: Application instrumentation should use the value from environment
2609 // variable `VCAP_APPLICATION.application_id`. This is the same value as
2610 // reported by `cf app <app-name> --guid`.
2611 CloudFoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
2612
2613 // CloudFoundryAppInstanceIDKey is the attribute Key conforming to the
2614 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2615 // of the application instance. 0 when just one instance is active.
2616 //
2617 // Type: string
2618 // RequirementLevel: Recommended
2619 // Stability: Development
2620 //
2621 // Examples: "0", "1"
2622 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2623 // .
2624 // It is used for logs and metrics emitted by CloudFoundry. It is
2625 // supposed to contain the application instance index for applications
2626 // deployed on the runtime.
2627 //
2628 // Application instrumentation should use the value from environment
2629 // variable `CF_INSTANCE_INDEX`.
2630 //
2631 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2632 CloudFoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
2633
2634 // CloudFoundryAppNameKey is the attribute Key conforming to the
2635 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2636 // application.
2637 //
2638 // Type: string
2639 // RequirementLevel: Recommended
2640 // Stability: Development
2641 //
2642 // Examples: "my-app-name"
2643 // Note: Application instrumentation should use the value from environment
2644 // variable `VCAP_APPLICATION.application_name`. This is the same value
2645 // as reported by `cf apps`.
2646 CloudFoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
2647
2648 // CloudFoundryOrgIDKey is the attribute Key conforming to the
2649 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
2650 // CloudFoundry org the application is running in.
2651 //
2652 // Type: string
2653 // RequirementLevel: Recommended
2654 // Stability: Development
2655 //
2656 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2657 // Note: Application instrumentation should use the value from environment
2658 // variable `VCAP_APPLICATION.org_id`. This is the same value as
2659 // reported by `cf org <org-name> --guid`.
2660 CloudFoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
2661
2662 // CloudFoundryOrgNameKey is the attribute Key conforming to the
2663 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
2664 // CloudFoundry organization the app is running in.
2665 //
2666 // Type: string
2667 // RequirementLevel: Recommended
2668 // Stability: Development
2669 //
2670 // Examples: "my-org-name"
2671 // Note: Application instrumentation should use the value from environment
2672 // variable `VCAP_APPLICATION.org_name`. This is the same value as
2673 // reported by `cf orgs`.
2674 CloudFoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
2675
2676 // CloudFoundryProcessIDKey is the attribute Key conforming to the
2677 // "cloudfoundry.process.id" semantic conventions. It represents the UID
2678 // identifying the process.
2679 //
2680 // Type: string
2681 // RequirementLevel: Recommended
2682 // Stability: Development
2683 //
2684 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2685 // Note: Application instrumentation should use the value from environment
2686 // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
2687 // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
2688 // For system components, this could be the actual PID.
2689 CloudFoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
2690
2691 // CloudFoundryProcessTypeKey is the attribute Key conforming to the
2692 // "cloudfoundry.process.type" semantic conventions. It represents the type of
2693 // process.
2694 //
2695 // Type: string
2696 // RequirementLevel: Recommended
2697 // Stability: Development
2698 //
2699 // Examples: "web"
2700 // Note: CloudFoundry applications can consist of multiple jobs. Usually the
2701 // main process will be of type `web`. There can be additional background
2702 // tasks or side-cars with different process types.
2703 CloudFoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
2704
2705 // CloudFoundrySpaceIDKey is the attribute Key conforming to the
2706 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
2707 // CloudFoundry space the application is running in.
2708 //
2709 // Type: string
2710 // RequirementLevel: Recommended
2711 // Stability: Development
2712 //
2713 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2714 // Note: Application instrumentation should use the value from environment
2715 // variable `VCAP_APPLICATION.space_id`. This is the same value as
2716 // reported by `cf space <space-name> --guid`.
2717 CloudFoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
2718
2719 // CloudFoundrySpaceNameKey is the attribute Key conforming to the
2720 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
2721 // CloudFoundry space the application is running in.
2722 //
2723 // Type: string
2724 // RequirementLevel: Recommended
2725 // Stability: Development
2726 //
2727 // Examples: "my-space-name"
2728 // Note: Application instrumentation should use the value from environment
2729 // variable `VCAP_APPLICATION.space_name`. This is the same value as
2730 // reported by `cf spaces`.
2731 CloudFoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
2732
2733 // CloudFoundrySystemIDKey is the attribute Key conforming to the
2734 // "cloudfoundry.system.id" semantic conventions. It represents a guid or
2735 // another name describing the event source.
2736 //
2737 // Type: string
2738 // RequirementLevel: Recommended
2739 // Stability: Development
2740 //
2741 // Examples: "cf/gorouter"
2742 // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
2743 // It is used for logs and metrics emitted by CloudFoundry. It is
2744 // supposed to contain the component name, e.g. "gorouter", for
2745 // CloudFoundry components.
2746 //
2747 // When system components are instrumented, values from the
2748 // [Bosh spec]
2749 // should be used. The `system.id` should be set to
2750 // `spec.deployment/spec.name`.
2751 //
2752 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2753 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2754 CloudFoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
2755
2756 // CloudFoundrySystemInstanceIDKey is the attribute Key conforming to the
2757 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
2758 // describing the concrete instance of the event source.
2759 //
2760 // Type: string
2761 // RequirementLevel: Recommended
2762 // Stability: Development
2763 //
2764 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2765 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2766 // .
2767 // It is used for logs and metrics emitted by CloudFoundry. It is
2768 // supposed to contain the vm id for CloudFoundry components.
2769 //
2770 // When system components are instrumented, values from the
2771 // [Bosh spec]
2772 // should be used. The `system.instance.id` should be set to `spec.id`.
2773 //
2774 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2775 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2776 CloudFoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
2777 )
2778
2779 // CloudFoundryAppID returns an attribute KeyValue conforming to the
2780 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2781 // application.
2782 func CloudFoundryAppID(val string) attribute.KeyValue {
2783 return CloudFoundryAppIDKey.String(val)
2784 }
2785
2786 // CloudFoundryAppInstanceID returns an attribute KeyValue conforming to the
2787 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2788 // of the application instance. 0 when just one instance is active.
2789 func CloudFoundryAppInstanceID(val string) attribute.KeyValue {
2790 return CloudFoundryAppInstanceIDKey.String(val)
2791 }
2792
2793 // CloudFoundryAppName returns an attribute KeyValue conforming to the
2794 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2795 // application.
2796 func CloudFoundryAppName(val string) attribute.KeyValue {
2797 return CloudFoundryAppNameKey.String(val)
2798 }
2799
2800 // CloudFoundryOrgID returns an attribute KeyValue conforming to the
2801 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
2802 // CloudFoundry org the application is running in.
2803 func CloudFoundryOrgID(val string) attribute.KeyValue {
2804 return CloudFoundryOrgIDKey.String(val)
2805 }
2806
2807 // CloudFoundryOrgName returns an attribute KeyValue conforming to the
2808 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
2809 // CloudFoundry organization the app is running in.
2810 func CloudFoundryOrgName(val string) attribute.KeyValue {
2811 return CloudFoundryOrgNameKey.String(val)
2812 }
2813
2814 // CloudFoundryProcessID returns an attribute KeyValue conforming to the
2815 // "cloudfoundry.process.id" semantic conventions. It represents the UID
2816 // identifying the process.
2817 func CloudFoundryProcessID(val string) attribute.KeyValue {
2818 return CloudFoundryProcessIDKey.String(val)
2819 }
2820
2821 // CloudFoundryProcessType returns an attribute KeyValue conforming to the
2822 // "cloudfoundry.process.type" semantic conventions. It represents the type of
2823 // process.
2824 func CloudFoundryProcessType(val string) attribute.KeyValue {
2825 return CloudFoundryProcessTypeKey.String(val)
2826 }
2827
2828 // CloudFoundrySpaceID returns an attribute KeyValue conforming to the
2829 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
2830 // CloudFoundry space the application is running in.
2831 func CloudFoundrySpaceID(val string) attribute.KeyValue {
2832 return CloudFoundrySpaceIDKey.String(val)
2833 }
2834
2835 // CloudFoundrySpaceName returns an attribute KeyValue conforming to the
2836 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
2837 // CloudFoundry space the application is running in.
2838 func CloudFoundrySpaceName(val string) attribute.KeyValue {
2839 return CloudFoundrySpaceNameKey.String(val)
2840 }
2841
2842 // CloudFoundrySystemID returns an attribute KeyValue conforming to the
2843 // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
2844 // name describing the event source.
2845 func CloudFoundrySystemID(val string) attribute.KeyValue {
2846 return CloudFoundrySystemIDKey.String(val)
2847 }
2848
2849 // CloudFoundrySystemInstanceID returns an attribute KeyValue conforming to the
2850 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
2851 // describing the concrete instance of the event source.
2852 func CloudFoundrySystemInstanceID(val string) attribute.KeyValue {
2853 return CloudFoundrySystemInstanceIDKey.String(val)
2854 }
2855
2856 // Namespace: code
2857 const (
2858 // CodeColumnNumberKey is the attribute Key conforming to the
2859 // "code.column.number" semantic conventions. It represents the column number in
2860 // `code.file.path` best representing the operation. It SHOULD point within the
2861 // code unit named in `code.function.name`. This attribute MUST NOT be used on
2862 // the Profile signal since the data is already captured in 'message Line'. This
2863 // constraint is imposed to prevent redundancy and maintain data integrity.
2864 //
2865 // Type: int
2866 // RequirementLevel: Recommended
2867 // Stability: Stable
2868 CodeColumnNumberKey = attribute.Key("code.column.number")
2869
2870 // CodeFilePathKey is the attribute Key conforming to the "code.file.path"
2871 // semantic conventions. It represents the source code file name that identifies
2872 // the code unit as uniquely as possible (preferably an absolute file path).
2873 // This attribute MUST NOT be used on the Profile signal since the data is
2874 // already captured in 'message Function'. This constraint is imposed to prevent
2875 // redundancy and maintain data integrity.
2876 //
2877 // Type: string
2878 // RequirementLevel: Recommended
2879 // Stability: Stable
2880 //
2881 // Examples: /usr/local/MyApplication/content_root/app/index.php
2882 CodeFilePathKey = attribute.Key("code.file.path")
2883
2884 // CodeFunctionNameKey is the attribute Key conforming to the
2885 // "code.function.name" semantic conventions. It represents the method or
2886 // function fully-qualified name without arguments. The value should fit the
2887 // natural representation of the language runtime, which is also likely the same
2888 // used within `code.stacktrace` attribute value. This attribute MUST NOT be
2889 // used on the Profile signal since the data is already captured in 'message
2890 // Function'. This constraint is imposed to prevent redundancy and maintain data
2891 // integrity.
2892 //
2893 // Type: string
2894 // RequirementLevel: Recommended
2895 // Stability: Stable
2896 //
2897 // Examples: "com.example.MyHttpService.serveRequest",
2898 // "GuzzleHttp\Client::transfer", "fopen"
2899 // Note: Values and format depends on each language runtime, thus it is
2900 // impossible to provide an exhaustive list of examples.
2901 // The values are usually the same (or prefixes of) the ones found in native
2902 // stack trace representation stored in
2903 // `code.stacktrace` without information on arguments.
2904 //
2905 // Examples:
2906 //
2907 // - Java method: `com.example.MyHttpService.serveRequest`
2908 // - Java anonymous class method: `com.mycompany.Main$1.myMethod`
2909 // - Java lambda method:
2910 // `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod`
2911 // - PHP function: `GuzzleHttp\Client::transfer`
2912 // - Go function: `github.com/my/repo/pkg.foo.func5`
2913 // - Elixir: `OpenTelemetry.Ctx.new`
2914 // - Erlang: `opentelemetry_ctx:new`
2915 // - Rust: `playground::my_module::my_cool_func`
2916 // - C function: `fopen`
2917 CodeFunctionNameKey = attribute.Key("code.function.name")
2918
2919 // CodeLineNumberKey is the attribute Key conforming to the "code.line.number"
2920 // semantic conventions. It represents the line number in `code.file.path` best
2921 // representing the operation. It SHOULD point within the code unit named in
2922 // `code.function.name`. This attribute MUST NOT be used on the Profile signal
2923 // since the data is already captured in 'message Line'. This constraint is
2924 // imposed to prevent redundancy and maintain data integrity.
2925 //
2926 // Type: int
2927 // RequirementLevel: Recommended
2928 // Stability: Stable
2929 CodeLineNumberKey = attribute.Key("code.line.number")
2930
2931 // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
2932 // semantic conventions. It represents a stacktrace as a string in the natural
2933 // representation for the language runtime. The representation is identical to
2934 // [`exception.stacktrace`]. This attribute MUST NOT be used on the Profile
2935 // signal since the data is already captured in 'message Location'. This
2936 // constraint is imposed to prevent redundancy and maintain data integrity.
2937 //
2938 // Type: string
2939 // RequirementLevel: Recommended
2940 // Stability: Stable
2941 //
2942 // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
2943 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
2944 // com.example.GenerateTrace.main(GenerateTrace.java:5)
2945 //
2946 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
2947 CodeStacktraceKey = attribute.Key("code.stacktrace")
2948 )
2949
2950 // CodeColumnNumber returns an attribute KeyValue conforming to the
2951 // "code.column.number" semantic conventions. It represents the column number in
2952 // `code.file.path` best representing the operation. It SHOULD point within the
2953 // code unit named in `code.function.name`. This attribute MUST NOT be used on
2954 // the Profile signal since the data is already captured in 'message Line'. This
2955 // constraint is imposed to prevent redundancy and maintain data integrity.
2956 func CodeColumnNumber(val int) attribute.KeyValue {
2957 return CodeColumnNumberKey.Int(val)
2958 }
2959
2960 // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path"
2961 // semantic conventions. It represents the source code file name that identifies
2962 // the code unit as uniquely as possible (preferably an absolute file path). This
2963 // attribute MUST NOT be used on the Profile signal since the data is already
2964 // captured in 'message Function'. This constraint is imposed to prevent
2965 // redundancy and maintain data integrity.
2966 func CodeFilePath(val string) attribute.KeyValue {
2967 return CodeFilePathKey.String(val)
2968 }
2969
2970 // CodeFunctionName returns an attribute KeyValue conforming to the
2971 // "code.function.name" semantic conventions. It represents the method or
2972 // function fully-qualified name without arguments. The value should fit the
2973 // natural representation of the language runtime, which is also likely the same
2974 // used within `code.stacktrace` attribute value. This attribute MUST NOT be used
2975 // on the Profile signal since the data is already captured in 'message
2976 // Function'. This constraint is imposed to prevent redundancy and maintain data
2977 // integrity.
2978 func CodeFunctionName(val string) attribute.KeyValue {
2979 return CodeFunctionNameKey.String(val)
2980 }
2981
2982 // CodeLineNumber returns an attribute KeyValue conforming to the
2983 // "code.line.number" semantic conventions. It represents the line number in
2984 // `code.file.path` best representing the operation. It SHOULD point within the
2985 // code unit named in `code.function.name`. This attribute MUST NOT be used on
2986 // the Profile signal since the data is already captured in 'message Line'. This
2987 // constraint is imposed to prevent redundancy and maintain data integrity.
2988 func CodeLineNumber(val int) attribute.KeyValue {
2989 return CodeLineNumberKey.Int(val)
2990 }
2991
2992 // CodeStacktrace returns an attribute KeyValue conforming to the
2993 // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
2994 // in the natural representation for the language runtime. The representation is
2995 // identical to [`exception.stacktrace`]. This attribute MUST NOT be used on the
2996 // Profile signal since the data is already captured in 'message Location'. This
2997 // constraint is imposed to prevent redundancy and maintain data integrity.
2998 //
2999 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
3000 func CodeStacktrace(val string) attribute.KeyValue {
3001 return CodeStacktraceKey.String(val)
3002 }
3003
3004 // Namespace: container
3005 const (
3006 // ContainerCommandKey is the attribute Key conforming to the
3007 // "container.command" semantic conventions. It represents the command used to
3008 // run the container (i.e. the command name).
3009 //
3010 // Type: string
3011 // RequirementLevel: Recommended
3012 // Stability: Development
3013 //
3014 // Examples: "otelcontribcol"
3015 // Note: If using embedded credentials or sensitive data, it is recommended to
3016 // remove them to prevent potential leakage.
3017 ContainerCommandKey = attribute.Key("container.command")
3018
3019 // ContainerCommandArgsKey is the attribute Key conforming to the
3020 // "container.command_args" semantic conventions. It represents the all the
3021 // command arguments (including the command/executable itself) run by the
3022 // container.
3023 //
3024 // Type: string[]
3025 // RequirementLevel: Recommended
3026 // Stability: Development
3027 //
3028 // Examples: "otelcontribcol", "--config", "config.yaml"
3029 ContainerCommandArgsKey = attribute.Key("container.command_args")
3030
3031 // ContainerCommandLineKey is the attribute Key conforming to the
3032 // "container.command_line" semantic conventions. It represents the full command
3033 // run by the container as a single string representing the full command.
3034 //
3035 // Type: string
3036 // RequirementLevel: Recommended
3037 // Stability: Development
3038 //
3039 // Examples: "otelcontribcol --config config.yaml"
3040 ContainerCommandLineKey = attribute.Key("container.command_line")
3041
3042 // ContainerCSIPluginNameKey is the attribute Key conforming to the
3043 // "container.csi.plugin.name" semantic conventions. It represents the name of
3044 // the CSI ([Container Storage Interface]) plugin used by the volume.
3045 //
3046 // Type: string
3047 // RequirementLevel: Recommended
3048 // Stability: Development
3049 //
3050 // Examples: "pd.csi.storage.gke.io"
3051 // Note: This can sometimes be referred to as a "driver" in CSI implementations.
3052 // This should represent the `name` field of the GetPluginInfo RPC.
3053 //
3054 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3055 ContainerCSIPluginNameKey = attribute.Key("container.csi.plugin.name")
3056
3057 // ContainerCSIVolumeIDKey is the attribute Key conforming to the
3058 // "container.csi.volume.id" semantic conventions. It represents the unique
3059 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3060 //
3061 // Type: string
3062 // RequirementLevel: Recommended
3063 // Stability: Development
3064 //
3065 // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
3066 // Note: This can sometimes be referred to as a "volume handle" in CSI
3067 // implementations. This should represent the `Volume.volume_id` field in CSI
3068 // spec.
3069 //
3070 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3071 ContainerCSIVolumeIDKey = attribute.Key("container.csi.volume.id")
3072
3073 // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
3074 // conventions. It represents the container ID. Usually a UUID, as for example
3075 // used to [identify Docker containers]. The UUID might be abbreviated.
3076 //
3077 // Type: string
3078 // RequirementLevel: Recommended
3079 // Stability: Development
3080 //
3081 // Examples: "a3bf90e006b2"
3082 //
3083 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3084 ContainerIDKey = attribute.Key("container.id")
3085
3086 // ContainerImageIDKey is the attribute Key conforming to the
3087 // "container.image.id" semantic conventions. It represents the runtime specific
3088 // image identifier. Usually a hash algorithm followed by a UUID.
3089 //
3090 // Type: string
3091 // RequirementLevel: Recommended
3092 // Stability: Development
3093 //
3094 // Examples:
3095 // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
3096 // Note: Docker defines a sha256 of the image id; `container.image.id`
3097 // corresponds to the `Image` field from the Docker container inspect [API]
3098 // endpoint.
3099 // K8s defines a link to the container registry repository with digest
3100 // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
3101 // .
3102 // The ID is assigned by the container runtime and can vary in different
3103 // environments. Consider using `oci.manifest.digest` if it is important to
3104 // identify the same image in different environments/runtimes.
3105 //
3106 // [API]: https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect
3107 ContainerImageIDKey = attribute.Key("container.image.id")
3108
3109 // ContainerImageNameKey is the attribute Key conforming to the
3110 // "container.image.name" semantic conventions. It represents the name of the
3111 // image the container was built on.
3112 //
3113 // Type: string
3114 // RequirementLevel: Recommended
3115 // Stability: Development
3116 //
3117 // Examples: "gcr.io/opentelemetry/operator"
3118 ContainerImageNameKey = attribute.Key("container.image.name")
3119
3120 // ContainerImageRepoDigestsKey is the attribute Key conforming to the
3121 // "container.image.repo_digests" semantic conventions. It represents the repo
3122 // digests of the container image as provided by the container runtime.
3123 //
3124 // Type: string[]
3125 // RequirementLevel: Recommended
3126 // Stability: Development
3127 //
3128 // Examples:
3129 // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
3130 // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
3131 // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
3132 //
3133 // [Docker]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
3134 // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
3135 ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
3136
3137 // ContainerImageTagsKey is the attribute Key conforming to the
3138 // "container.image.tags" semantic conventions. It represents the container
3139 // image tags. An example can be found in [Docker Image Inspect]. Should be only
3140 // the `<tag>` section of the full name for example from
3141 // `registry.example.com/my-org/my-image:<tag>`.
3142 //
3143 // Type: string[]
3144 // RequirementLevel: Recommended
3145 // Stability: Development
3146 //
3147 // Examples: "v1.27.1", "3.5.7-0"
3148 //
3149 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
3150 ContainerImageTagsKey = attribute.Key("container.image.tags")
3151
3152 // ContainerNameKey is the attribute Key conforming to the "container.name"
3153 // semantic conventions. It represents the container name used by container
3154 // runtime.
3155 //
3156 // Type: string
3157 // RequirementLevel: Recommended
3158 // Stability: Development
3159 //
3160 // Examples: "opentelemetry-autoconf"
3161 ContainerNameKey = attribute.Key("container.name")
3162
3163 // ContainerRuntimeKey is the attribute Key conforming to the
3164 // "container.runtime" semantic conventions. It represents the container runtime
3165 // managing this container.
3166 //
3167 // Type: string
3168 // RequirementLevel: Recommended
3169 // Stability: Development
3170 //
3171 // Examples: "docker", "containerd", "rkt"
3172 ContainerRuntimeKey = attribute.Key("container.runtime")
3173 )
3174
3175 // ContainerCommand returns an attribute KeyValue conforming to the
3176 // "container.command" semantic conventions. It represents the command used to
3177 // run the container (i.e. the command name).
3178 func ContainerCommand(val string) attribute.KeyValue {
3179 return ContainerCommandKey.String(val)
3180 }
3181
3182 // ContainerCommandArgs returns an attribute KeyValue conforming to the
3183 // "container.command_args" semantic conventions. It represents the all the
3184 // command arguments (including the command/executable itself) run by the
3185 // container.
3186 func ContainerCommandArgs(val ...string) attribute.KeyValue {
3187 return ContainerCommandArgsKey.StringSlice(val)
3188 }
3189
3190 // ContainerCommandLine returns an attribute KeyValue conforming to the
3191 // "container.command_line" semantic conventions. It represents the full command
3192 // run by the container as a single string representing the full command.
3193 func ContainerCommandLine(val string) attribute.KeyValue {
3194 return ContainerCommandLineKey.String(val)
3195 }
3196
3197 // ContainerCSIPluginName returns an attribute KeyValue conforming to the
3198 // "container.csi.plugin.name" semantic conventions. It represents the name of
3199 // the CSI ([Container Storage Interface]) plugin used by the volume.
3200 //
3201 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3202 func ContainerCSIPluginName(val string) attribute.KeyValue {
3203 return ContainerCSIPluginNameKey.String(val)
3204 }
3205
3206 // ContainerCSIVolumeID returns an attribute KeyValue conforming to the
3207 // "container.csi.volume.id" semantic conventions. It represents the unique
3208 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3209 //
3210 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3211 func ContainerCSIVolumeID(val string) attribute.KeyValue {
3212 return ContainerCSIVolumeIDKey.String(val)
3213 }
3214
3215 // ContainerID returns an attribute KeyValue conforming to the "container.id"
3216 // semantic conventions. It represents the container ID. Usually a UUID, as for
3217 // example used to [identify Docker containers]. The UUID might be abbreviated.
3218 //
3219 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3220 func ContainerID(val string) attribute.KeyValue {
3221 return ContainerIDKey.String(val)
3222 }
3223
3224 // ContainerImageID returns an attribute KeyValue conforming to the
3225 // "container.image.id" semantic conventions. It represents the runtime specific
3226 // image identifier. Usually a hash algorithm followed by a UUID.
3227 func ContainerImageID(val string) attribute.KeyValue {
3228 return ContainerImageIDKey.String(val)
3229 }
3230
3231 // ContainerImageName returns an attribute KeyValue conforming to the
3232 // "container.image.name" semantic conventions. It represents the name of the
3233 // image the container was built on.
3234 func ContainerImageName(val string) attribute.KeyValue {
3235 return ContainerImageNameKey.String(val)
3236 }
3237
3238 // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
3239 // "container.image.repo_digests" semantic conventions. It represents the repo
3240 // digests of the container image as provided by the container runtime.
3241 func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
3242 return ContainerImageRepoDigestsKey.StringSlice(val)
3243 }
3244
3245 // ContainerImageTags returns an attribute KeyValue conforming to the
3246 // "container.image.tags" semantic conventions. It represents the container image
3247 // tags. An example can be found in [Docker Image Inspect]. Should be only the
3248 // `<tag>` section of the full name for example from
3249 // `registry.example.com/my-org/my-image:<tag>`.
3250 //
3251 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
3252 func ContainerImageTags(val ...string) attribute.KeyValue {
3253 return ContainerImageTagsKey.StringSlice(val)
3254 }
3255
3256 // ContainerName returns an attribute KeyValue conforming to the "container.name"
3257 // semantic conventions. It represents the container name used by container
3258 // runtime.
3259 func ContainerName(val string) attribute.KeyValue {
3260 return ContainerNameKey.String(val)
3261 }
3262
3263 // ContainerRuntime returns an attribute KeyValue conforming to the
3264 // "container.runtime" semantic conventions. It represents the container runtime
3265 // managing this container.
3266 func ContainerRuntime(val string) attribute.KeyValue {
3267 return ContainerRuntimeKey.String(val)
3268 }
3269
3270 // Namespace: cpu
3271 const (
3272 // CPULogicalNumberKey is the attribute Key conforming to the
3273 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3274 // number [0..n-1].
3275 //
3276 // Type: int
3277 // RequirementLevel: Recommended
3278 // Stability: Development
3279 //
3280 // Examples: 1
3281 CPULogicalNumberKey = attribute.Key("cpu.logical_number")
3282
3283 // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
3284 // conventions. It represents the mode of the CPU.
3285 //
3286 // Type: Enum
3287 // RequirementLevel: Recommended
3288 // Stability: Development
3289 //
3290 // Examples: "user", "system"
3291 CPUModeKey = attribute.Key("cpu.mode")
3292 )
3293
3294 // CPULogicalNumber returns an attribute KeyValue conforming to the
3295 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3296 // number [0..n-1].
3297 func CPULogicalNumber(val int) attribute.KeyValue {
3298 return CPULogicalNumberKey.Int(val)
3299 }
3300
3301 // Enum values for cpu.mode
3302 var (
3303 // user
3304 // Stability: development
3305 CPUModeUser = CPUModeKey.String("user")
3306 // system
3307 // Stability: development
3308 CPUModeSystem = CPUModeKey.String("system")
3309 // nice
3310 // Stability: development
3311 CPUModeNice = CPUModeKey.String("nice")
3312 // idle
3313 // Stability: development
3314 CPUModeIdle = CPUModeKey.String("idle")
3315 // iowait
3316 // Stability: development
3317 CPUModeIOWait = CPUModeKey.String("iowait")
3318 // interrupt
3319 // Stability: development
3320 CPUModeInterrupt = CPUModeKey.String("interrupt")
3321 // steal
3322 // Stability: development
3323 CPUModeSteal = CPUModeKey.String("steal")
3324 // kernel
3325 // Stability: development
3326 CPUModeKernel = CPUModeKey.String("kernel")
3327 )
3328
3329 // Namespace: db
3330 const (
3331 // DBClientConnectionPoolNameKey is the attribute Key conforming to the
3332 // "db.client.connection.pool.name" semantic conventions. It represents the name
3333 // of the connection pool; unique within the instrumented application. In case
3334 // the connection pool implementation doesn't provide a name, instrumentation
3335 // SHOULD use a combination of parameters that would make the name unique, for
3336 // example, combining attributes `server.address`, `server.port`, and
3337 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3338 // Instrumentations that generate connection pool name following different
3339 // patterns SHOULD document it.
3340 //
3341 // Type: string
3342 // RequirementLevel: Recommended
3343 // Stability: Development
3344 //
3345 // Examples: "myDataSource"
3346 DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
3347
3348 // DBClientConnectionStateKey is the attribute Key conforming to the
3349 // "db.client.connection.state" semantic conventions. It represents the state of
3350 // a connection in the pool.
3351 //
3352 // Type: Enum
3353 // RequirementLevel: Recommended
3354 // Stability: Development
3355 //
3356 // Examples: "idle"
3357 DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
3358
3359 // DBCollectionNameKey is the attribute Key conforming to the
3360 // "db.collection.name" semantic conventions. It represents the name of a
3361 // collection (table, container) within the database.
3362 //
3363 // Type: string
3364 // RequirementLevel: Recommended
3365 // Stability: Stable
3366 //
3367 // Examples: "public.users", "customers"
3368 // Note: It is RECOMMENDED to capture the value as provided by the application
3369 // without attempting to do any case normalization.
3370 //
3371 // The collection name SHOULD NOT be extracted from `db.query.text`,
3372 // when the database system supports query text with multiple collections
3373 // in non-batch operations.
3374 //
3375 // For batch operations, if the individual operations are known to have the same
3376 // collection name then that collection name SHOULD be used.
3377 DBCollectionNameKey = attribute.Key("db.collection.name")
3378
3379 // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
3380 // conventions. It represents the name of the database, fully qualified within
3381 // the server address and port.
3382 //
3383 // Type: string
3384 // RequirementLevel: Recommended
3385 // Stability: Stable
3386 //
3387 // Examples: "customers", "test.users"
3388 // Note: If a database system has multiple namespace components, they SHOULD be
3389 // concatenated from the most general to the most specific namespace component,
3390 // using `|` as a separator between the components. Any missing components (and
3391 // their associated separators) SHOULD be omitted.
3392 // Semantic conventions for individual database systems SHOULD document what
3393 // `db.namespace` means in the context of that system.
3394 // It is RECOMMENDED to capture the value as provided by the application without
3395 // attempting to do any case normalization.
3396 DBNamespaceKey = attribute.Key("db.namespace")
3397
3398 // DBOperationBatchSizeKey is the attribute Key conforming to the
3399 // "db.operation.batch.size" semantic conventions. It represents the number of
3400 // queries included in a batch operation.
3401 //
3402 // Type: int
3403 // RequirementLevel: Recommended
3404 // Stability: Stable
3405 //
3406 // Examples: 2, 3, 4
3407 // Note: Operations are only considered batches when they contain two or more
3408 // operations, and so `db.operation.batch.size` SHOULD never be `1`.
3409 DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
3410
3411 // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
3412 // semantic conventions. It represents the name of the operation or command
3413 // being executed.
3414 //
3415 // Type: string
3416 // RequirementLevel: Recommended
3417 // Stability: Stable
3418 //
3419 // Examples: "findAndModify", "HMSET", "SELECT"
3420 // Note: It is RECOMMENDED to capture the value as provided by the application
3421 // without attempting to do any case normalization.
3422 //
3423 // The operation name SHOULD NOT be extracted from `db.query.text`,
3424 // when the database system supports query text with multiple operations
3425 // in non-batch operations.
3426 //
3427 // If spaces can occur in the operation name, multiple consecutive spaces
3428 // SHOULD be normalized to a single space.
3429 //
3430 // For batch operations, if the individual operations are known to have the same
3431 // operation name
3432 // then that operation name SHOULD be used prepended by `BATCH `,
3433 // otherwise `db.operation.name` SHOULD be `BATCH` or some other database
3434 // system specific term if more applicable.
3435 DBOperationNameKey = attribute.Key("db.operation.name")
3436
3437 // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary"
3438 // semantic conventions. It represents the low cardinality summary of a database
3439 // query.
3440 //
3441 // Type: string
3442 // RequirementLevel: Recommended
3443 // Stability: Stable
3444 //
3445 // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get
3446 // user by id"
3447 // Note: The query summary describes a class of database queries and is useful
3448 // as a grouping key, especially when analyzing telemetry for database
3449 // calls involving complex queries.
3450 //
3451 // Summary may be available to the instrumentation through
3452 // instrumentation hooks or other means. If it is not available,
3453 // instrumentations
3454 // that support query parsing SHOULD generate a summary following
3455 // [Generating query summary]
3456 // section.
3457 //
3458 // [Generating query summary]: /docs/database/database-spans.md#generating-a-summary-of-the-query
3459 DBQuerySummaryKey = attribute.Key("db.query.summary")
3460
3461 // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
3462 // semantic conventions. It represents the database query being executed.
3463 //
3464 // Type: string
3465 // RequirementLevel: Recommended
3466 // Stability: Stable
3467 //
3468 // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?"
3469 // Note: For sanitization see [Sanitization of `db.query.text`].
3470 // For batch operations, if the individual operations are known to have the same
3471 // query text then that query text SHOULD be used, otherwise all of the
3472 // individual query texts SHOULD be concatenated with separator `; ` or some
3473 // other database system specific separator if more applicable.
3474 // Parameterized query text SHOULD NOT be sanitized. Even though parameterized
3475 // query text can potentially have sensitive data, by using a parameterized
3476 // query the user is giving a strong signal that any sensitive data will be
3477 // passed as parameter values, and the benefit to observability of capturing the
3478 // static part of the query text by default outweighs the risk.
3479 //
3480 // [Sanitization of `db.query.text`]: /docs/database/database-spans.md#sanitization-of-dbquerytext
3481 DBQueryTextKey = attribute.Key("db.query.text")
3482
3483 // DBResponseReturnedRowsKey is the attribute Key conforming to the
3484 // "db.response.returned_rows" semantic conventions. It represents the number of
3485 // rows returned by the operation.
3486 //
3487 // Type: int
3488 // RequirementLevel: Recommended
3489 // Stability: Development
3490 //
3491 // Examples: 10, 30, 1000
3492 DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows")
3493
3494 // DBResponseStatusCodeKey is the attribute Key conforming to the
3495 // "db.response.status_code" semantic conventions. It represents the database
3496 // response status code.
3497 //
3498 // Type: string
3499 // RequirementLevel: Recommended
3500 // Stability: Stable
3501 //
3502 // Examples: "102", "ORA-17002", "08P01", "404"
3503 // Note: The status code returned by the database. Usually it represents an
3504 // error code, but may also represent partial success, warning, or differentiate
3505 // between various types of successful outcomes.
3506 // Semantic conventions for individual database systems SHOULD document what
3507 // `db.response.status_code` means in the context of that system.
3508 DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
3509
3510 // DBStoredProcedureNameKey is the attribute Key conforming to the
3511 // "db.stored_procedure.name" semantic conventions. It represents the name of a
3512 // stored procedure within the database.
3513 //
3514 // Type: string
3515 // RequirementLevel: Recommended
3516 // Stability: Stable
3517 //
3518 // Examples: "GetCustomer"
3519 // Note: It is RECOMMENDED to capture the value as provided by the application
3520 // without attempting to do any case normalization.
3521 //
3522 // For batch operations, if the individual operations are known to have the same
3523 // stored procedure name then that stored procedure name SHOULD be used.
3524 DBStoredProcedureNameKey = attribute.Key("db.stored_procedure.name")
3525
3526 // DBSystemNameKey is the attribute Key conforming to the "db.system.name"
3527 // semantic conventions. It represents the database management system (DBMS)
3528 // product as identified by the client instrumentation.
3529 //
3530 // Type: Enum
3531 // RequirementLevel: Recommended
3532 // Stability: Stable
3533 //
3534 // Examples:
3535 // Note: The actual DBMS may differ from the one identified by the client. For
3536 // example, when using PostgreSQL client libraries to connect to a CockroachDB,
3537 // the `db.system.name` is set to `postgresql` based on the instrumentation's
3538 // best knowledge.
3539 DBSystemNameKey = attribute.Key("db.system.name")
3540 )
3541
3542 // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
3543 // "db.client.connection.pool.name" semantic conventions. It represents the name
3544 // of the connection pool; unique within the instrumented application. In case
3545 // the connection pool implementation doesn't provide a name, instrumentation
3546 // SHOULD use a combination of parameters that would make the name unique, for
3547 // example, combining attributes `server.address`, `server.port`, and
3548 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3549 // Instrumentations that generate connection pool name following different
3550 // patterns SHOULD document it.
3551 func DBClientConnectionPoolName(val string) attribute.KeyValue {
3552 return DBClientConnectionPoolNameKey.String(val)
3553 }
3554
3555 // DBCollectionName returns an attribute KeyValue conforming to the
3556 // "db.collection.name" semantic conventions. It represents the name of a
3557 // collection (table, container) within the database.
3558 func DBCollectionName(val string) attribute.KeyValue {
3559 return DBCollectionNameKey.String(val)
3560 }
3561
3562 // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
3563 // semantic conventions. It represents the name of the database, fully qualified
3564 // within the server address and port.
3565 func DBNamespace(val string) attribute.KeyValue {
3566 return DBNamespaceKey.String(val)
3567 }
3568
3569 // DBOperationBatchSize returns an attribute KeyValue conforming to the
3570 // "db.operation.batch.size" semantic conventions. It represents the number of
3571 // queries included in a batch operation.
3572 func DBOperationBatchSize(val int) attribute.KeyValue {
3573 return DBOperationBatchSizeKey.Int(val)
3574 }
3575
3576 // DBOperationName returns an attribute KeyValue conforming to the
3577 // "db.operation.name" semantic conventions. It represents the name of the
3578 // operation or command being executed.
3579 func DBOperationName(val string) attribute.KeyValue {
3580 return DBOperationNameKey.String(val)
3581 }
3582
3583 // DBQuerySummary returns an attribute KeyValue conforming to the
3584 // "db.query.summary" semantic conventions. It represents the low cardinality
3585 // summary of a database query.
3586 func DBQuerySummary(val string) attribute.KeyValue {
3587 return DBQuerySummaryKey.String(val)
3588 }
3589
3590 // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
3591 // semantic conventions. It represents the database query being executed.
3592 func DBQueryText(val string) attribute.KeyValue {
3593 return DBQueryTextKey.String(val)
3594 }
3595
3596 // DBResponseReturnedRows returns an attribute KeyValue conforming to the
3597 // "db.response.returned_rows" semantic conventions. It represents the number of
3598 // rows returned by the operation.
3599 func DBResponseReturnedRows(val int) attribute.KeyValue {
3600 return DBResponseReturnedRowsKey.Int(val)
3601 }
3602
3603 // DBResponseStatusCode returns an attribute KeyValue conforming to the
3604 // "db.response.status_code" semantic conventions. It represents the database
3605 // response status code.
3606 func DBResponseStatusCode(val string) attribute.KeyValue {
3607 return DBResponseStatusCodeKey.String(val)
3608 }
3609
3610 // DBStoredProcedureName returns an attribute KeyValue conforming to the
3611 // "db.stored_procedure.name" semantic conventions. It represents the name of a
3612 // stored procedure within the database.
3613 func DBStoredProcedureName(val string) attribute.KeyValue {
3614 return DBStoredProcedureNameKey.String(val)
3615 }
3616
3617 // Enum values for db.client.connection.state
3618 var (
3619 // idle
3620 // Stability: development
3621 DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
3622 // used
3623 // Stability: development
3624 DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
3625 )
3626
3627 // Enum values for db.system.name
3628 var (
3629 // Some other SQL database. Fallback only.
3630 // Stability: development
3631 DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql")
3632 // [Adabas (Adaptable Database System)]
3633 // Stability: development
3634 //
3635 // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas
3636 DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas")
3637 // [Actian Ingres]
3638 // Stability: development
3639 //
3640 // [Actian Ingres]: https://www.actian.com/databases/ingres/
3641 DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres")
3642 // [Amazon DynamoDB]
3643 // Stability: development
3644 //
3645 // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/
3646 DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb")
3647 // [Amazon Redshift]
3648 // Stability: development
3649 //
3650 // [Amazon Redshift]: https://aws.amazon.com/redshift/
3651 DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift")
3652 // [Azure Cosmos DB]
3653 // Stability: development
3654 //
3655 // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db
3656 DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb")
3657 // [InterSystems Caché]
3658 // Stability: development
3659 //
3660 // [InterSystems Caché]: https://www.intersystems.com/products/cache/
3661 DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache")
3662 // [Apache Cassandra]
3663 // Stability: development
3664 //
3665 // [Apache Cassandra]: https://cassandra.apache.org/
3666 DBSystemNameCassandra = DBSystemNameKey.String("cassandra")
3667 // [ClickHouse]
3668 // Stability: development
3669 //
3670 // [ClickHouse]: https://clickhouse.com/
3671 DBSystemNameClickHouse = DBSystemNameKey.String("clickhouse")
3672 // [CockroachDB]
3673 // Stability: development
3674 //
3675 // [CockroachDB]: https://www.cockroachlabs.com/
3676 DBSystemNameCockroachDB = DBSystemNameKey.String("cockroachdb")
3677 // [Couchbase]
3678 // Stability: development
3679 //
3680 // [Couchbase]: https://www.couchbase.com/
3681 DBSystemNameCouchbase = DBSystemNameKey.String("couchbase")
3682 // [Apache CouchDB]
3683 // Stability: development
3684 //
3685 // [Apache CouchDB]: https://couchdb.apache.org/
3686 DBSystemNameCouchDB = DBSystemNameKey.String("couchdb")
3687 // [Apache Derby]
3688 // Stability: development
3689 //
3690 // [Apache Derby]: https://db.apache.org/derby/
3691 DBSystemNameDerby = DBSystemNameKey.String("derby")
3692 // [Elasticsearch]
3693 // Stability: development
3694 //
3695 // [Elasticsearch]: https://www.elastic.co/elasticsearch
3696 DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch")
3697 // [Firebird]
3698 // Stability: development
3699 //
3700 // [Firebird]: https://www.firebirdsql.org/
3701 DBSystemNameFirebirdSQL = DBSystemNameKey.String("firebirdsql")
3702 // [Google Cloud Spanner]
3703 // Stability: development
3704 //
3705 // [Google Cloud Spanner]: https://cloud.google.com/spanner
3706 DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner")
3707 // [Apache Geode]
3708 // Stability: development
3709 //
3710 // [Apache Geode]: https://geode.apache.org/
3711 DBSystemNameGeode = DBSystemNameKey.String("geode")
3712 // [H2 Database]
3713 // Stability: development
3714 //
3715 // [H2 Database]: https://h2database.com/
3716 DBSystemNameH2database = DBSystemNameKey.String("h2database")
3717 // [Apache HBase]
3718 // Stability: development
3719 //
3720 // [Apache HBase]: https://hbase.apache.org/
3721 DBSystemNameHBase = DBSystemNameKey.String("hbase")
3722 // [Apache Hive]
3723 // Stability: development
3724 //
3725 // [Apache Hive]: https://hive.apache.org/
3726 DBSystemNameHive = DBSystemNameKey.String("hive")
3727 // [HyperSQL Database]
3728 // Stability: development
3729 //
3730 // [HyperSQL Database]: https://hsqldb.org/
3731 DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb")
3732 // [IBM Db2]
3733 // Stability: development
3734 //
3735 // [IBM Db2]: https://www.ibm.com/db2
3736 DBSystemNameIBMDB2 = DBSystemNameKey.String("ibm.db2")
3737 // [IBM Informix]
3738 // Stability: development
3739 //
3740 // [IBM Informix]: https://www.ibm.com/products/informix
3741 DBSystemNameIBMInformix = DBSystemNameKey.String("ibm.informix")
3742 // [IBM Netezza]
3743 // Stability: development
3744 //
3745 // [IBM Netezza]: https://www.ibm.com/products/netezza
3746 DBSystemNameIBMNetezza = DBSystemNameKey.String("ibm.netezza")
3747 // [InfluxDB]
3748 // Stability: development
3749 //
3750 // [InfluxDB]: https://www.influxdata.com/
3751 DBSystemNameInfluxDB = DBSystemNameKey.String("influxdb")
3752 // [Instant]
3753 // Stability: development
3754 //
3755 // [Instant]: https://www.instantdb.com/
3756 DBSystemNameInstantDB = DBSystemNameKey.String("instantdb")
3757 // [MariaDB]
3758 // Stability: stable
3759 //
3760 // [MariaDB]: https://mariadb.org/
3761 DBSystemNameMariaDB = DBSystemNameKey.String("mariadb")
3762 // [Memcached]
3763 // Stability: development
3764 //
3765 // [Memcached]: https://memcached.org/
3766 DBSystemNameMemcached = DBSystemNameKey.String("memcached")
3767 // [MongoDB]
3768 // Stability: development
3769 //
3770 // [MongoDB]: https://www.mongodb.com/
3771 DBSystemNameMongoDB = DBSystemNameKey.String("mongodb")
3772 // [Microsoft SQL Server]
3773 // Stability: stable
3774 //
3775 // [Microsoft SQL Server]: https://www.microsoft.com/sql-server
3776 DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server")
3777 // [MySQL]
3778 // Stability: stable
3779 //
3780 // [MySQL]: https://www.mysql.com/
3781 DBSystemNameMySQL = DBSystemNameKey.String("mysql")
3782 // [Neo4j]
3783 // Stability: development
3784 //
3785 // [Neo4j]: https://neo4j.com/
3786 DBSystemNameNeo4j = DBSystemNameKey.String("neo4j")
3787 // [OpenSearch]
3788 // Stability: development
3789 //
3790 // [OpenSearch]: https://opensearch.org/
3791 DBSystemNameOpenSearch = DBSystemNameKey.String("opensearch")
3792 // [Oracle Database]
3793 // Stability: development
3794 //
3795 // [Oracle Database]: https://www.oracle.com/database/
3796 DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db")
3797 // [PostgreSQL]
3798 // Stability: stable
3799 //
3800 // [PostgreSQL]: https://www.postgresql.org/
3801 DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql")
3802 // [Redis]
3803 // Stability: development
3804 //
3805 // [Redis]: https://redis.io/
3806 DBSystemNameRedis = DBSystemNameKey.String("redis")
3807 // [SAP HANA]
3808 // Stability: development
3809 //
3810 // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html
3811 DBSystemNameSAPHANA = DBSystemNameKey.String("sap.hana")
3812 // [SAP MaxDB]
3813 // Stability: development
3814 //
3815 // [SAP MaxDB]: https://maxdb.sap.com/
3816 DBSystemNameSAPMaxDB = DBSystemNameKey.String("sap.maxdb")
3817 // [SQLite]
3818 // Stability: development
3819 //
3820 // [SQLite]: https://www.sqlite.org/
3821 DBSystemNameSQLite = DBSystemNameKey.String("sqlite")
3822 // [Teradata]
3823 // Stability: development
3824 //
3825 // [Teradata]: https://www.teradata.com/
3826 DBSystemNameTeradata = DBSystemNameKey.String("teradata")
3827 // [Trino]
3828 // Stability: development
3829 //
3830 // [Trino]: https://trino.io/
3831 DBSystemNameTrino = DBSystemNameKey.String("trino")
3832 )
3833
3834 // Namespace: deployment
3835 const (
3836 // DeploymentEnvironmentNameKey is the attribute Key conforming to the
3837 // "deployment.environment.name" semantic conventions. It represents the name of
3838 // the [deployment environment] (aka deployment tier).
3839 //
3840 // Type: string
3841 // RequirementLevel: Recommended
3842 // Stability: Development
3843 //
3844 // Examples: "staging", "production"
3845 // Note: `deployment.environment.name` does not affect the uniqueness
3846 // constraints defined through
3847 // the `service.namespace`, `service.name` and `service.instance.id` resource
3848 // attributes.
3849 // This implies that resources carrying the following attribute combinations
3850 // MUST be
3851 // considered to be identifying the same service:
3852 //
3853 // - `service.name=frontend`, `deployment.environment.name=production`
3854 // - `service.name=frontend`, `deployment.environment.name=staging`.
3855 //
3856 //
3857 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
3858 DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
3859
3860 // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
3861 // semantic conventions. It represents the id of the deployment.
3862 //
3863 // Type: string
3864 // RequirementLevel: Recommended
3865 // Stability: Development
3866 //
3867 // Examples: "1208"
3868 DeploymentIDKey = attribute.Key("deployment.id")
3869
3870 // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
3871 // semantic conventions. It represents the name of the deployment.
3872 //
3873 // Type: string
3874 // RequirementLevel: Recommended
3875 // Stability: Development
3876 //
3877 // Examples: "deploy my app", "deploy-frontend"
3878 DeploymentNameKey = attribute.Key("deployment.name")
3879
3880 // DeploymentStatusKey is the attribute Key conforming to the
3881 // "deployment.status" semantic conventions. It represents the status of the
3882 // deployment.
3883 //
3884 // Type: Enum
3885 // RequirementLevel: Recommended
3886 // Stability: Development
3887 //
3888 // Examples:
3889 DeploymentStatusKey = attribute.Key("deployment.status")
3890 )
3891
3892 // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
3893 // "deployment.environment.name" semantic conventions. It represents the name of
3894 // the [deployment environment] (aka deployment tier).
3895 //
3896 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
3897 func DeploymentEnvironmentName(val string) attribute.KeyValue {
3898 return DeploymentEnvironmentNameKey.String(val)
3899 }
3900
3901 // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
3902 // semantic conventions. It represents the id of the deployment.
3903 func DeploymentID(val string) attribute.KeyValue {
3904 return DeploymentIDKey.String(val)
3905 }
3906
3907 // DeploymentName returns an attribute KeyValue conforming to the
3908 // "deployment.name" semantic conventions. It represents the name of the
3909 // deployment.
3910 func DeploymentName(val string) attribute.KeyValue {
3911 return DeploymentNameKey.String(val)
3912 }
3913
3914 // Enum values for deployment.status
3915 var (
3916 // failed
3917 // Stability: development
3918 DeploymentStatusFailed = DeploymentStatusKey.String("failed")
3919 // succeeded
3920 // Stability: development
3921 DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
3922 )
3923
3924 // Namespace: destination
3925 const (
3926 // DestinationAddressKey is the attribute Key conforming to the
3927 // "destination.address" semantic conventions. It represents the destination
3928 // address - domain name if available without reverse DNS lookup; otherwise, IP
3929 // address or Unix domain socket name.
3930 //
3931 // Type: string
3932 // RequirementLevel: Recommended
3933 // Stability: Development
3934 //
3935 // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
3936 // Note: When observed from the source side, and when communicating through an
3937 // intermediary, `destination.address` SHOULD represent the destination address
3938 // behind any intermediaries, for example proxies, if it's available.
3939 DestinationAddressKey = attribute.Key("destination.address")
3940
3941 // DestinationPortKey is the attribute Key conforming to the "destination.port"
3942 // semantic conventions. It represents the destination port number.
3943 //
3944 // Type: int
3945 // RequirementLevel: Recommended
3946 // Stability: Development
3947 //
3948 // Examples: 3389, 2888
3949 DestinationPortKey = attribute.Key("destination.port")
3950 )
3951
3952 // DestinationAddress returns an attribute KeyValue conforming to the
3953 // "destination.address" semantic conventions. It represents the destination
3954 // address - domain name if available without reverse DNS lookup; otherwise, IP
3955 // address or Unix domain socket name.
3956 func DestinationAddress(val string) attribute.KeyValue {
3957 return DestinationAddressKey.String(val)
3958 }
3959
3960 // DestinationPort returns an attribute KeyValue conforming to the
3961 // "destination.port" semantic conventions. It represents the destination port
3962 // number.
3963 func DestinationPort(val int) attribute.KeyValue {
3964 return DestinationPortKey.Int(val)
3965 }
3966
3967 // Namespace: device
3968 const (
3969 // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
3970 // conventions. It represents a unique identifier representing the device.
3971 //
3972 // Type: string
3973 // RequirementLevel: Recommended
3974 // Stability: Development
3975 //
3976 // Examples: "123456789012345", "01:23:45:67:89:AB"
3977 // Note: Its value SHOULD be identical for all apps on a device and it SHOULD
3978 // NOT change if an app is uninstalled and re-installed.
3979 // However, it might be resettable by the user for all apps on a device.
3980 // Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) MAY be
3981 // used as values.
3982 //
3983 // More information about Android identifier best practices can be found [here]
3984 // .
3985 //
3986 // > [!WARNING]> This attribute may contain sensitive (PII) information. Caution
3987 // > should be taken when storing personal data or anything which can identify a
3988 // > user. GDPR and data protection laws may apply,
3989 // > ensure you do your own due diligence.> Due to these reasons, this
3990 // > identifier is not recommended for consumer applications and will likely
3991 // > result in rejection from both Google Play and App Store.
3992 // > However, it may be appropriate for specific enterprise scenarios, such as
3993 // > kiosk devices or enterprise-managed devices, with appropriate compliance
3994 // > clearance.
3995 // > Any instrumentation providing this identifier MUST implement it as an
3996 // > opt-in feature.> See [`app.installation.id`]> for a more
3997 // > privacy-preserving alternative.
3998 //
3999 // [here]: https://developer.android.com/training/articles/user-data-ids
4000 // [`app.installation.id`]: /docs/attributes-registry/app.md#app-installation-id
4001 DeviceIDKey = attribute.Key("device.id")
4002
4003 // DeviceManufacturerKey is the attribute Key conforming to the
4004 // "device.manufacturer" semantic conventions. It represents the name of the
4005 // device manufacturer.
4006 //
4007 // Type: string
4008 // RequirementLevel: Recommended
4009 // Stability: Development
4010 //
4011 // Examples: "Apple", "Samsung"
4012 // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
4013 // hardcode the value `Apple`.
4014 //
4015 // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
4016 DeviceManufacturerKey = attribute.Key("device.manufacturer")
4017
4018 // DeviceModelIdentifierKey is the attribute Key conforming to the
4019 // "device.model.identifier" semantic conventions. It represents the model
4020 // identifier for the device.
4021 //
4022 // Type: string
4023 // RequirementLevel: Recommended
4024 // Stability: Development
4025 //
4026 // Examples: "iPhone3,4", "SM-G920F"
4027 // Note: It's recommended this value represents a machine-readable version of
4028 // the model identifier rather than the market or consumer-friendly name of the
4029 // device.
4030 DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
4031
4032 // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
4033 // semantic conventions. It represents the marketing name for the device model.
4034 //
4035 // Type: string
4036 // RequirementLevel: Recommended
4037 // Stability: Development
4038 //
4039 // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
4040 // Note: It's recommended this value represents a human-readable version of the
4041 // device model rather than a machine-readable alternative.
4042 DeviceModelNameKey = attribute.Key("device.model.name")
4043 )
4044
4045 // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
4046 // conventions. It represents a unique identifier representing the device.
4047 func DeviceID(val string) attribute.KeyValue {
4048 return DeviceIDKey.String(val)
4049 }
4050
4051 // DeviceManufacturer returns an attribute KeyValue conforming to the
4052 // "device.manufacturer" semantic conventions. It represents the name of the
4053 // device manufacturer.
4054 func DeviceManufacturer(val string) attribute.KeyValue {
4055 return DeviceManufacturerKey.String(val)
4056 }
4057
4058 // DeviceModelIdentifier returns an attribute KeyValue conforming to the
4059 // "device.model.identifier" semantic conventions. It represents the model
4060 // identifier for the device.
4061 func DeviceModelIdentifier(val string) attribute.KeyValue {
4062 return DeviceModelIdentifierKey.String(val)
4063 }
4064
4065 // DeviceModelName returns an attribute KeyValue conforming to the
4066 // "device.model.name" semantic conventions. It represents the marketing name for
4067 // the device model.
4068 func DeviceModelName(val string) attribute.KeyValue {
4069 return DeviceModelNameKey.String(val)
4070 }
4071
4072 // Namespace: disk
4073 const (
4074 // DiskIODirectionKey is the attribute Key conforming to the "disk.io.direction"
4075 // semantic conventions. It represents the disk IO operation direction.
4076 //
4077 // Type: Enum
4078 // RequirementLevel: Recommended
4079 // Stability: Development
4080 //
4081 // Examples: "read"
4082 DiskIODirectionKey = attribute.Key("disk.io.direction")
4083 )
4084
4085 // Enum values for disk.io.direction
4086 var (
4087 // read
4088 // Stability: development
4089 DiskIODirectionRead = DiskIODirectionKey.String("read")
4090 // write
4091 // Stability: development
4092 DiskIODirectionWrite = DiskIODirectionKey.String("write")
4093 )
4094
4095 // Namespace: dns
4096 const (
4097 // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
4098 // semantic conventions. It represents the name being queried.
4099 //
4100 // Type: string
4101 // RequirementLevel: Recommended
4102 // Stability: Development
4103 //
4104 // Examples: "www.example.com", "opentelemetry.io"
4105 // Note: If the name field contains non-printable characters (below 32 or above
4106 // 126), those characters should be represented as escaped base 10 integers
4107 // (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns,
4108 // and line feeds should be converted to \t, \r, and \n respectively.
4109 DNSQuestionNameKey = attribute.Key("dns.question.name")
4110 )
4111
4112 // DNSQuestionName returns an attribute KeyValue conforming to the
4113 // "dns.question.name" semantic conventions. It represents the name being
4114 // queried.
4115 func DNSQuestionName(val string) attribute.KeyValue {
4116 return DNSQuestionNameKey.String(val)
4117 }
4118
4119 // Namespace: elasticsearch
4120 const (
4121 // ElasticsearchNodeNameKey is the attribute Key conforming to the
4122 // "elasticsearch.node.name" semantic conventions. It represents the represents
4123 // the human-readable identifier of the node/instance to which a request was
4124 // routed.
4125 //
4126 // Type: string
4127 // RequirementLevel: Recommended
4128 // Stability: Development
4129 //
4130 // Examples: "instance-0000000001"
4131 ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name")
4132 )
4133
4134 // ElasticsearchNodeName returns an attribute KeyValue conforming to the
4135 // "elasticsearch.node.name" semantic conventions. It represents the represents
4136 // the human-readable identifier of the node/instance to which a request was
4137 // routed.
4138 func ElasticsearchNodeName(val string) attribute.KeyValue {
4139 return ElasticsearchNodeNameKey.String(val)
4140 }
4141
4142 // Namespace: enduser
4143 const (
4144 // EnduserIDKey is the attribute Key conforming to the "enduser.id" semantic
4145 // conventions. It represents the unique identifier of an end user in the
4146 // system. It maybe a username, email address, or other identifier.
4147 //
4148 // Type: string
4149 // RequirementLevel: Recommended
4150 // Stability: Development
4151 //
4152 // Examples: "username"
4153 // Note: Unique identifier of an end user in the system.
4154 //
4155 // > [!Warning]
4156 // > This field contains sensitive (PII) information.
4157 EnduserIDKey = attribute.Key("enduser.id")
4158
4159 // EnduserPseudoIDKey is the attribute Key conforming to the "enduser.pseudo.id"
4160 // semantic conventions. It represents the pseudonymous identifier of an end
4161 // user. This identifier should be a random value that is not directly linked or
4162 // associated with the end user's actual identity.
4163 //
4164 // Type: string
4165 // RequirementLevel: Recommended
4166 // Stability: Development
4167 //
4168 // Examples: "QdH5CAWJgqVT4rOr0qtumf"
4169 // Note: Pseudonymous identifier of an end user.
4170 //
4171 // > [!Warning]
4172 // > This field contains sensitive (linkable PII) information.
4173 EnduserPseudoIDKey = attribute.Key("enduser.pseudo.id")
4174 )
4175
4176 // EnduserID returns an attribute KeyValue conforming to the "enduser.id"
4177 // semantic conventions. It represents the unique identifier of an end user in
4178 // the system. It maybe a username, email address, or other identifier.
4179 func EnduserID(val string) attribute.KeyValue {
4180 return EnduserIDKey.String(val)
4181 }
4182
4183 // EnduserPseudoID returns an attribute KeyValue conforming to the
4184 // "enduser.pseudo.id" semantic conventions. It represents the pseudonymous
4185 // identifier of an end user. This identifier should be a random value that is
4186 // not directly linked or associated with the end user's actual identity.
4187 func EnduserPseudoID(val string) attribute.KeyValue {
4188 return EnduserPseudoIDKey.String(val)
4189 }
4190
4191 // Namespace: error
4192 const (
4193 // ErrorMessageKey is the attribute Key conforming to the "error.message"
4194 // semantic conventions. It represents a message providing more detail about an
4195 // error in human-readable form.
4196 //
4197 // Type: string
4198 // RequirementLevel: Recommended
4199 // Stability: Development
4200 //
4201 // Examples: "Unexpected input type: string", "The user has exceeded their
4202 // storage quota"
4203 // Note: `error.message` should provide additional context and detail about an
4204 // error.
4205 // It is NOT RECOMMENDED to duplicate the value of `error.type` in
4206 // `error.message`.
4207 // It is also NOT RECOMMENDED to duplicate the value of `exception.message` in
4208 // `error.message`.
4209 //
4210 // `error.message` is NOT RECOMMENDED for metrics or spans due to its unbounded
4211 // cardinality and overlap with span status.
4212 ErrorMessageKey = attribute.Key("error.message")
4213
4214 // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
4215 // conventions. It represents the describes a class of error the operation ended
4216 // with.
4217 //
4218 // Type: Enum
4219 // RequirementLevel: Recommended
4220 // Stability: Stable
4221 //
4222 // Examples: "timeout", "java.net.UnknownHostException",
4223 // "server_certificate_invalid", "500"
4224 // Note: The `error.type` SHOULD be predictable, and SHOULD have low
4225 // cardinality.
4226 //
4227 // When `error.type` is set to a type (e.g., an exception type), its
4228 // canonical class name identifying the type within the artifact SHOULD be used.
4229 //
4230 // Instrumentations SHOULD document the list of errors they report.
4231 //
4232 // The cardinality of `error.type` within one instrumentation library SHOULD be
4233 // low.
4234 // Telemetry consumers that aggregate data from multiple instrumentation
4235 // libraries and applications
4236 // should be prepared for `error.type` to have high cardinality at query time
4237 // when no
4238 // additional filters are applied.
4239 //
4240 // If the operation has completed successfully, instrumentations SHOULD NOT set
4241 // `error.type`.
4242 //
4243 // If a specific domain defines its own set of error identifiers (such as HTTP
4244 // or gRPC status codes),
4245 // it's RECOMMENDED to:
4246 //
4247 // - Use a domain-specific attribute
4248 // - Set `error.type` to capture all errors, regardless of whether they are
4249 // defined within the domain-specific set or not.
4250 ErrorTypeKey = attribute.Key("error.type")
4251 )
4252
4253 // ErrorMessage returns an attribute KeyValue conforming to the "error.message"
4254 // semantic conventions. It represents a message providing more detail about an
4255 // error in human-readable form.
4256 func ErrorMessage(val string) attribute.KeyValue {
4257 return ErrorMessageKey.String(val)
4258 }
4259
4260 // Enum values for error.type
4261 var (
4262 // A fallback error value to be used when the instrumentation doesn't define a
4263 // custom value.
4264 //
4265 // Stability: stable
4266 ErrorTypeOther = ErrorTypeKey.String("_OTHER")
4267 )
4268
4269 // Namespace: exception
4270 const (
4271 // ExceptionMessageKey is the attribute Key conforming to the
4272 // "exception.message" semantic conventions. It represents the exception
4273 // message.
4274 //
4275 // Type: string
4276 // RequirementLevel: Recommended
4277 // Stability: Stable
4278 //
4279 // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
4280 ExceptionMessageKey = attribute.Key("exception.message")
4281
4282 // ExceptionStacktraceKey is the attribute Key conforming to the
4283 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4284 // string in the natural representation for the language runtime. The
4285 // representation is to be determined and documented by each language SIG.
4286 //
4287 // Type: string
4288 // RequirementLevel: Recommended
4289 // Stability: Stable
4290 //
4291 // Examples: Exception in thread "main" java.lang.RuntimeException: Test
4292 // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
4293 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
4294 // com.example.GenerateTrace.main(GenerateTrace.java:5)
4295 ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
4296
4297 // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
4298 // semantic conventions. It represents the type of the exception (its
4299 // fully-qualified class name, if applicable). The dynamic type of the exception
4300 // should be preferred over the static type in languages that support it.
4301 //
4302 // Type: string
4303 // RequirementLevel: Recommended
4304 // Stability: Stable
4305 //
4306 // Examples: "java.net.ConnectException", "OSError"
4307 ExceptionTypeKey = attribute.Key("exception.type")
4308 )
4309
4310 // ExceptionMessage returns an attribute KeyValue conforming to the
4311 // "exception.message" semantic conventions. It represents the exception message.
4312 func ExceptionMessage(val string) attribute.KeyValue {
4313 return ExceptionMessageKey.String(val)
4314 }
4315
4316 // ExceptionStacktrace returns an attribute KeyValue conforming to the
4317 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4318 // string in the natural representation for the language runtime. The
4319 // representation is to be determined and documented by each language SIG.
4320 func ExceptionStacktrace(val string) attribute.KeyValue {
4321 return ExceptionStacktraceKey.String(val)
4322 }
4323
4324 // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
4325 // semantic conventions. It represents the type of the exception (its
4326 // fully-qualified class name, if applicable). The dynamic type of the exception
4327 // should be preferred over the static type in languages that support it.
4328 func ExceptionType(val string) attribute.KeyValue {
4329 return ExceptionTypeKey.String(val)
4330 }
4331
4332 // Namespace: faas
4333 const (
4334 // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
4335 // semantic conventions. It represents a boolean that is true if the serverless
4336 // function is executed for the first time (aka cold-start).
4337 //
4338 // Type: boolean
4339 // RequirementLevel: Recommended
4340 // Stability: Development
4341 //
4342 // Examples:
4343 FaaSColdstartKey = attribute.Key("faas.coldstart")
4344
4345 // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
4346 // conventions. It represents a string containing the schedule period as
4347 // [Cron Expression].
4348 //
4349 // Type: string
4350 // RequirementLevel: Recommended
4351 // Stability: Development
4352 //
4353 // Examples: 0/5 * * * ? *
4354 //
4355 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4356 FaaSCronKey = attribute.Key("faas.cron")
4357
4358 // FaaSDocumentCollectionKey is the attribute Key conforming to the
4359 // "faas.document.collection" semantic conventions. It represents the name of
4360 // the source on which the triggering operation was performed. For example, in
4361 // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
4362 // database name.
4363 //
4364 // Type: string
4365 // RequirementLevel: Recommended
4366 // Stability: Development
4367 //
4368 // Examples: "myBucketName", "myDbName"
4369 FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
4370
4371 // FaaSDocumentNameKey is the attribute Key conforming to the
4372 // "faas.document.name" semantic conventions. It represents the document
4373 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4374 // the name of the file, and in Cosmos DB the table name.
4375 //
4376 // Type: string
4377 // RequirementLevel: Recommended
4378 // Stability: Development
4379 //
4380 // Examples: "myFile.txt", "myTableName"
4381 FaaSDocumentNameKey = attribute.Key("faas.document.name")
4382
4383 // FaaSDocumentOperationKey is the attribute Key conforming to the
4384 // "faas.document.operation" semantic conventions. It represents the describes
4385 // the type of the operation that was performed on the data.
4386 //
4387 // Type: Enum
4388 // RequirementLevel: Recommended
4389 // Stability: Development
4390 //
4391 // Examples:
4392 FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
4393
4394 // FaaSDocumentTimeKey is the attribute Key conforming to the
4395 // "faas.document.time" semantic conventions. It represents a string containing
4396 // the time when the data was accessed in the [ISO 8601] format expressed in
4397 // [UTC].
4398 //
4399 // Type: string
4400 // RequirementLevel: Recommended
4401 // Stability: Development
4402 //
4403 // Examples: 2020-01-23T13:47:06Z
4404 //
4405 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4406 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4407 FaaSDocumentTimeKey = attribute.Key("faas.document.time")
4408
4409 // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
4410 // semantic conventions. It represents the execution environment ID as a string,
4411 // that will be potentially reused for other invocations to the same
4412 // function/function version.
4413 //
4414 // Type: string
4415 // RequirementLevel: Recommended
4416 // Stability: Development
4417 //
4418 // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
4419 // Note: - **AWS Lambda:** Use the (full) log stream name.
4420 FaaSInstanceKey = attribute.Key("faas.instance")
4421
4422 // FaaSInvocationIDKey is the attribute Key conforming to the
4423 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4424 // the current function invocation.
4425 //
4426 // Type: string
4427 // RequirementLevel: Recommended
4428 // Stability: Development
4429 //
4430 // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
4431 FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
4432
4433 // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
4434 // semantic conventions. It represents the name of the invoked function.
4435 //
4436 // Type: string
4437 // RequirementLevel: Recommended
4438 // Stability: Development
4439 //
4440 // Examples: my-function
4441 // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
4442 // function.
4443 FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
4444
4445 // FaaSInvokedProviderKey is the attribute Key conforming to the
4446 // "faas.invoked_provider" semantic conventions. It represents the cloud
4447 // provider of the invoked function.
4448 //
4449 // Type: Enum
4450 // RequirementLevel: Recommended
4451 // Stability: Development
4452 //
4453 // Examples:
4454 // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
4455 // invoked function.
4456 FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
4457
4458 // FaaSInvokedRegionKey is the attribute Key conforming to the
4459 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4460 // the invoked function.
4461 //
4462 // Type: string
4463 // RequirementLevel: Recommended
4464 // Stability: Development
4465 //
4466 // Examples: eu-central-1
4467 // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
4468 // function.
4469 FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
4470
4471 // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
4472 // semantic conventions. It represents the amount of memory available to the
4473 // serverless function converted to Bytes.
4474 //
4475 // Type: int
4476 // RequirementLevel: Recommended
4477 // Stability: Development
4478 //
4479 // Note: It's recommended to set this attribute since e.g. too little memory can
4480 // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
4481 // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
4482 // information (which must be multiplied by 1,048,576).
4483 FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
4484
4485 // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
4486 // conventions. It represents the name of the single function that this runtime
4487 // instance executes.
4488 //
4489 // Type: string
4490 // RequirementLevel: Recommended
4491 // Stability: Development
4492 //
4493 // Examples: "my-function", "myazurefunctionapp/some-function-name"
4494 // Note: This is the name of the function as configured/deployed on the FaaS
4495 // platform and is usually different from the name of the callback
4496 // function (which may be stored in the
4497 // [`code.namespace`/`code.function.name`]
4498 // span attributes).
4499 //
4500 // For some cloud providers, the above definition is ambiguous. The following
4501 // definition of function name MUST be used for this attribute
4502 // (and consequently the span name) for the listed cloud providers/products:
4503 //
4504 // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
4505 // followed by a forward slash followed by the function name (this form
4506 // can also be seen in the resource JSON for the function).
4507 // This means that a span attribute MUST be used, as an Azure function
4508 // app can host multiple functions that would usually share
4509 // a TracerProvider (see also the `cloud.resource_id` attribute).
4510 //
4511 //
4512 // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes
4513 FaaSNameKey = attribute.Key("faas.name")
4514
4515 // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
4516 // conventions. It represents a string containing the function invocation time
4517 // in the [ISO 8601] format expressed in [UTC].
4518 //
4519 // Type: string
4520 // RequirementLevel: Recommended
4521 // Stability: Development
4522 //
4523 // Examples: 2020-01-23T13:47:06Z
4524 //
4525 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4526 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4527 FaaSTimeKey = attribute.Key("faas.time")
4528
4529 // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
4530 // conventions. It represents the type of the trigger which caused this function
4531 // invocation.
4532 //
4533 // Type: Enum
4534 // RequirementLevel: Recommended
4535 // Stability: Development
4536 //
4537 // Examples:
4538 FaaSTriggerKey = attribute.Key("faas.trigger")
4539
4540 // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
4541 // conventions. It represents the immutable version of the function being
4542 // executed.
4543 //
4544 // Type: string
4545 // RequirementLevel: Recommended
4546 // Stability: Development
4547 //
4548 // Examples: "26", "pinkfroid-00002"
4549 // Note: Depending on the cloud provider and platform, use:
4550 //
4551 // - **AWS Lambda:** The [function version]
4552 // (an integer represented as a decimal string).
4553 // - **Google Cloud Run (Services):** The [revision]
4554 // (i.e., the function name plus the revision suffix).
4555 // - **Google Cloud Functions:** The value of the
4556 // [`K_REVISION` environment variable].
4557 // - **Azure Functions:** Not applicable. Do not set this attribute.
4558 //
4559 //
4560 // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
4561 // [revision]: https://cloud.google.com/run/docs/managing/revisions
4562 // [`K_REVISION` environment variable]: https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically
4563 FaaSVersionKey = attribute.Key("faas.version")
4564 )
4565
4566 // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
4567 // semantic conventions. It represents a boolean that is true if the serverless
4568 // function is executed for the first time (aka cold-start).
4569 func FaaSColdstart(val bool) attribute.KeyValue {
4570 return FaaSColdstartKey.Bool(val)
4571 }
4572
4573 // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
4574 // conventions. It represents a string containing the schedule period as
4575 // [Cron Expression].
4576 //
4577 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4578 func FaaSCron(val string) attribute.KeyValue {
4579 return FaaSCronKey.String(val)
4580 }
4581
4582 // FaaSDocumentCollection returns an attribute KeyValue conforming to the
4583 // "faas.document.collection" semantic conventions. It represents the name of the
4584 // source on which the triggering operation was performed. For example, in Cloud
4585 // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
4586 // name.
4587 func FaaSDocumentCollection(val string) attribute.KeyValue {
4588 return FaaSDocumentCollectionKey.String(val)
4589 }
4590
4591 // FaaSDocumentName returns an attribute KeyValue conforming to the
4592 // "faas.document.name" semantic conventions. It represents the document
4593 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4594 // the name of the file, and in Cosmos DB the table name.
4595 func FaaSDocumentName(val string) attribute.KeyValue {
4596 return FaaSDocumentNameKey.String(val)
4597 }
4598
4599 // FaaSDocumentTime returns an attribute KeyValue conforming to the
4600 // "faas.document.time" semantic conventions. It represents a string containing
4601 // the time when the data was accessed in the [ISO 8601] format expressed in
4602 // [UTC].
4603 //
4604 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4605 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4606 func FaaSDocumentTime(val string) attribute.KeyValue {
4607 return FaaSDocumentTimeKey.String(val)
4608 }
4609
4610 // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
4611 // semantic conventions. It represents the execution environment ID as a string,
4612 // that will be potentially reused for other invocations to the same
4613 // function/function version.
4614 func FaaSInstance(val string) attribute.KeyValue {
4615 return FaaSInstanceKey.String(val)
4616 }
4617
4618 // FaaSInvocationID returns an attribute KeyValue conforming to the
4619 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4620 // the current function invocation.
4621 func FaaSInvocationID(val string) attribute.KeyValue {
4622 return FaaSInvocationIDKey.String(val)
4623 }
4624
4625 // FaaSInvokedName returns an attribute KeyValue conforming to the
4626 // "faas.invoked_name" semantic conventions. It represents the name of the
4627 // invoked function.
4628 func FaaSInvokedName(val string) attribute.KeyValue {
4629 return FaaSInvokedNameKey.String(val)
4630 }
4631
4632 // FaaSInvokedRegion returns an attribute KeyValue conforming to the
4633 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4634 // the invoked function.
4635 func FaaSInvokedRegion(val string) attribute.KeyValue {
4636 return FaaSInvokedRegionKey.String(val)
4637 }
4638
4639 // FaaSMaxMemory returns an attribute KeyValue conforming to the
4640 // "faas.max_memory" semantic conventions. It represents the amount of memory
4641 // available to the serverless function converted to Bytes.
4642 func FaaSMaxMemory(val int) attribute.KeyValue {
4643 return FaaSMaxMemoryKey.Int(val)
4644 }
4645
4646 // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
4647 // conventions. It represents the name of the single function that this runtime
4648 // instance executes.
4649 func FaaSName(val string) attribute.KeyValue {
4650 return FaaSNameKey.String(val)
4651 }
4652
4653 // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
4654 // conventions. It represents a string containing the function invocation time in
4655 // the [ISO 8601] format expressed in [UTC].
4656 //
4657 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4658 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4659 func FaaSTime(val string) attribute.KeyValue {
4660 return FaaSTimeKey.String(val)
4661 }
4662
4663 // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
4664 // semantic conventions. It represents the immutable version of the function
4665 // being executed.
4666 func FaaSVersion(val string) attribute.KeyValue {
4667 return FaaSVersionKey.String(val)
4668 }
4669
4670 // Enum values for faas.document.operation
4671 var (
4672 // When a new object is created.
4673 // Stability: development
4674 FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
4675 // When an object is modified.
4676 // Stability: development
4677 FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
4678 // When an object is deleted.
4679 // Stability: development
4680 FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
4681 )
4682
4683 // Enum values for faas.invoked_provider
4684 var (
4685 // Alibaba Cloud
4686 // Stability: development
4687 FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
4688 // Amazon Web Services
4689 // Stability: development
4690 FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
4691 // Microsoft Azure
4692 // Stability: development
4693 FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
4694 // Google Cloud Platform
4695 // Stability: development
4696 FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
4697 // Tencent Cloud
4698 // Stability: development
4699 FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
4700 )
4701
4702 // Enum values for faas.trigger
4703 var (
4704 // A response to some data source operation such as a database or filesystem
4705 // read/write
4706 // Stability: development
4707 FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
4708 // To provide an answer to an inbound HTTP request
4709 // Stability: development
4710 FaaSTriggerHTTP = FaaSTriggerKey.String("http")
4711 // A function is set to be executed when messages are sent to a messaging system
4712 // Stability: development
4713 FaaSTriggerPubSub = FaaSTriggerKey.String("pubsub")
4714 // A function is scheduled to be executed regularly
4715 // Stability: development
4716 FaaSTriggerTimer = FaaSTriggerKey.String("timer")
4717 // If none of the others apply
4718 // Stability: development
4719 FaaSTriggerOther = FaaSTriggerKey.String("other")
4720 )
4721
4722 // Namespace: feature_flag
4723 const (
4724 // FeatureFlagContextIDKey is the attribute Key conforming to the
4725 // "feature_flag.context.id" semantic conventions. It represents the unique
4726 // identifier for the flag evaluation context. For example, the targeting key.
4727 //
4728 // Type: string
4729 // RequirementLevel: Recommended
4730 // Stability: Development
4731 //
4732 // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db"
4733 FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id")
4734
4735 // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
4736 // semantic conventions. It represents the lookup key of the feature flag.
4737 //
4738 // Type: string
4739 // RequirementLevel: Recommended
4740 // Stability: Development
4741 //
4742 // Examples: "logo-color"
4743 FeatureFlagKeyKey = attribute.Key("feature_flag.key")
4744
4745 // FeatureFlagProviderNameKey is the attribute Key conforming to the
4746 // "feature_flag.provider.name" semantic conventions. It represents the
4747 // identifies the feature flag provider.
4748 //
4749 // Type: string
4750 // RequirementLevel: Recommended
4751 // Stability: Development
4752 //
4753 // Examples: "Flag Manager"
4754 FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider.name")
4755
4756 // FeatureFlagResultReasonKey is the attribute Key conforming to the
4757 // "feature_flag.result.reason" semantic conventions. It represents the reason
4758 // code which shows how a feature flag value was determined.
4759 //
4760 // Type: Enum
4761 // RequirementLevel: Recommended
4762 // Stability: Development
4763 //
4764 // Examples: "static", "targeting_match", "error", "default"
4765 FeatureFlagResultReasonKey = attribute.Key("feature_flag.result.reason")
4766
4767 // FeatureFlagResultVariantKey is the attribute Key conforming to the
4768 // "feature_flag.result.variant" semantic conventions. It represents a semantic
4769 // identifier for an evaluated flag value.
4770 //
4771 // Type: string
4772 // RequirementLevel: Recommended
4773 // Stability: Development
4774 //
4775 // Examples: "red", "true", "on"
4776 // Note: A semantic identifier, commonly referred to as a variant, provides a
4777 // means
4778 // for referring to a value without including the value itself. This can
4779 // provide additional context for understanding the meaning behind a value.
4780 // For example, the variant `red` maybe be used for the value `#c05543`.
4781 FeatureFlagResultVariantKey = attribute.Key("feature_flag.result.variant")
4782
4783 // FeatureFlagSetIDKey is the attribute Key conforming to the
4784 // "feature_flag.set.id" semantic conventions. It represents the identifier of
4785 // the [flag set] to which the feature flag belongs.
4786 //
4787 // Type: string
4788 // RequirementLevel: Recommended
4789 // Stability: Development
4790 //
4791 // Examples: "proj-1", "ab98sgs", "service1/dev"
4792 //
4793 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
4794 FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id")
4795
4796 // FeatureFlagVersionKey is the attribute Key conforming to the
4797 // "feature_flag.version" semantic conventions. It represents the version of the
4798 // ruleset used during the evaluation. This may be any stable value which
4799 // uniquely identifies the ruleset.
4800 //
4801 // Type: string
4802 // RequirementLevel: Recommended
4803 // Stability: Development
4804 //
4805 // Examples: "1", "01ABCDEF"
4806 FeatureFlagVersionKey = attribute.Key("feature_flag.version")
4807 )
4808
4809 // FeatureFlagContextID returns an attribute KeyValue conforming to the
4810 // "feature_flag.context.id" semantic conventions. It represents the unique
4811 // identifier for the flag evaluation context. For example, the targeting key.
4812 func FeatureFlagContextID(val string) attribute.KeyValue {
4813 return FeatureFlagContextIDKey.String(val)
4814 }
4815
4816 // FeatureFlagKey returns an attribute KeyValue conforming to the
4817 // "feature_flag.key" semantic conventions. It represents the lookup key of the
4818 // feature flag.
4819 func FeatureFlagKey(val string) attribute.KeyValue {
4820 return FeatureFlagKeyKey.String(val)
4821 }
4822
4823 // FeatureFlagProviderName returns an attribute KeyValue conforming to the
4824 // "feature_flag.provider.name" semantic conventions. It represents the
4825 // identifies the feature flag provider.
4826 func FeatureFlagProviderName(val string) attribute.KeyValue {
4827 return FeatureFlagProviderNameKey.String(val)
4828 }
4829
4830 // FeatureFlagResultVariant returns an attribute KeyValue conforming to the
4831 // "feature_flag.result.variant" semantic conventions. It represents a semantic
4832 // identifier for an evaluated flag value.
4833 func FeatureFlagResultVariant(val string) attribute.KeyValue {
4834 return FeatureFlagResultVariantKey.String(val)
4835 }
4836
4837 // FeatureFlagSetID returns an attribute KeyValue conforming to the
4838 // "feature_flag.set.id" semantic conventions. It represents the identifier of
4839 // the [flag set] to which the feature flag belongs.
4840 //
4841 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
4842 func FeatureFlagSetID(val string) attribute.KeyValue {
4843 return FeatureFlagSetIDKey.String(val)
4844 }
4845
4846 // FeatureFlagVersion returns an attribute KeyValue conforming to the
4847 // "feature_flag.version" semantic conventions. It represents the version of the
4848 // ruleset used during the evaluation. This may be any stable value which
4849 // uniquely identifies the ruleset.
4850 func FeatureFlagVersion(val string) attribute.KeyValue {
4851 return FeatureFlagVersionKey.String(val)
4852 }
4853
4854 // Enum values for feature_flag.result.reason
4855 var (
4856 // The resolved value is static (no dynamic evaluation).
4857 // Stability: development
4858 FeatureFlagResultReasonStatic = FeatureFlagResultReasonKey.String("static")
4859 // The resolved value fell back to a pre-configured value (no dynamic evaluation
4860 // occurred or dynamic evaluation yielded no result).
4861 // Stability: development
4862 FeatureFlagResultReasonDefault = FeatureFlagResultReasonKey.String("default")
4863 // The resolved value was the result of a dynamic evaluation, such as a rule or
4864 // specific user-targeting.
4865 // Stability: development
4866 FeatureFlagResultReasonTargetingMatch = FeatureFlagResultReasonKey.String("targeting_match")
4867 // The resolved value was the result of pseudorandom assignment.
4868 // Stability: development
4869 FeatureFlagResultReasonSplit = FeatureFlagResultReasonKey.String("split")
4870 // The resolved value was retrieved from cache.
4871 // Stability: development
4872 FeatureFlagResultReasonCached = FeatureFlagResultReasonKey.String("cached")
4873 // The resolved value was the result of the flag being disabled in the
4874 // management system.
4875 // Stability: development
4876 FeatureFlagResultReasonDisabled = FeatureFlagResultReasonKey.String("disabled")
4877 // The reason for the resolved value could not be determined.
4878 // Stability: development
4879 FeatureFlagResultReasonUnknown = FeatureFlagResultReasonKey.String("unknown")
4880 // The resolved value is non-authoritative or possibly out of date
4881 // Stability: development
4882 FeatureFlagResultReasonStale = FeatureFlagResultReasonKey.String("stale")
4883 // The resolved value was the result of an error.
4884 // Stability: development
4885 FeatureFlagResultReasonError = FeatureFlagResultReasonKey.String("error")
4886 )
4887
4888 // Namespace: file
4889 const (
4890 // FileAccessedKey is the attribute Key conforming to the "file.accessed"
4891 // semantic conventions. It represents the time when the file was last accessed,
4892 // in ISO 8601 format.
4893 //
4894 // Type: string
4895 // RequirementLevel: Recommended
4896 // Stability: Development
4897 //
4898 // Examples: "2021-01-01T12:00:00Z"
4899 // Note: This attribute might not be supported by some file systems — NFS,
4900 // FAT32, in embedded OS, etc.
4901 FileAccessedKey = attribute.Key("file.accessed")
4902
4903 // FileAttributesKey is the attribute Key conforming to the "file.attributes"
4904 // semantic conventions. It represents the array of file attributes.
4905 //
4906 // Type: string[]
4907 // RequirementLevel: Recommended
4908 // Stability: Development
4909 //
4910 // Examples: "readonly", "hidden"
4911 // Note: Attributes names depend on the OS or file system. Here’s a
4912 // non-exhaustive list of values expected for this attribute: `archive`,
4913 // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
4914 // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
4915 // `write`.
4916 FileAttributesKey = attribute.Key("file.attributes")
4917
4918 // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
4919 // conventions. It represents the time when the file attributes or metadata was
4920 // last changed, in ISO 8601 format.
4921 //
4922 // Type: string
4923 // RequirementLevel: Recommended
4924 // Stability: Development
4925 //
4926 // Examples: "2021-01-01T12:00:00Z"
4927 // Note: `file.changed` captures the time when any of the file's properties or
4928 // attributes (including the content) are changed, while `file.modified`
4929 // captures the timestamp when the file content is modified.
4930 FileChangedKey = attribute.Key("file.changed")
4931
4932 // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
4933 // conventions. It represents the time when the file was created, in ISO 8601
4934 // format.
4935 //
4936 // Type: string
4937 // RequirementLevel: Recommended
4938 // Stability: Development
4939 //
4940 // Examples: "2021-01-01T12:00:00Z"
4941 // Note: This attribute might not be supported by some file systems — NFS,
4942 // FAT32, in embedded OS, etc.
4943 FileCreatedKey = attribute.Key("file.created")
4944
4945 // FileDirectoryKey is the attribute Key conforming to the "file.directory"
4946 // semantic conventions. It represents the directory where the file is located.
4947 // It should include the drive letter, when appropriate.
4948 //
4949 // Type: string
4950 // RequirementLevel: Recommended
4951 // Stability: Development
4952 //
4953 // Examples: "/home/user", "C:\Program Files\MyApp"
4954 FileDirectoryKey = attribute.Key("file.directory")
4955
4956 // FileExtensionKey is the attribute Key conforming to the "file.extension"
4957 // semantic conventions. It represents the file extension, excluding the leading
4958 // dot.
4959 //
4960 // Type: string
4961 // RequirementLevel: Recommended
4962 // Stability: Development
4963 //
4964 // Examples: "png", "gz"
4965 // Note: When the file name has multiple extensions (example.tar.gz), only the
4966 // last one should be captured ("gz", not "tar.gz").
4967 FileExtensionKey = attribute.Key("file.extension")
4968
4969 // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
4970 // semantic conventions. It represents the name of the fork. A fork is
4971 // additional data associated with a filesystem object.
4972 //
4973 // Type: string
4974 // RequirementLevel: Recommended
4975 // Stability: Development
4976 //
4977 // Examples: "Zone.Identifer"
4978 // Note: On Linux, a resource fork is used to store additional data with a
4979 // filesystem object. A file always has at least one fork for the data portion,
4980 // and additional forks may exist.
4981 // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
4982 // data stream for a file is just called $DATA. Zone.Identifier is commonly used
4983 // by Windows to track contents downloaded from the Internet. An ADS is
4984 // typically of the form: C:\path\to\filename.extension:some_fork_name, and
4985 // some_fork_name is the value that should populate `fork_name`.
4986 // `filename.extension` should populate `file.name`, and `extension` should
4987 // populate `file.extension`. The full path, `file.path`, will include the fork
4988 // name.
4989 FileForkNameKey = attribute.Key("file.fork_name")
4990
4991 // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
4992 // semantic conventions. It represents the primary Group ID (GID) of the file.
4993 //
4994 // Type: string
4995 // RequirementLevel: Recommended
4996 // Stability: Development
4997 //
4998 // Examples: "1000"
4999 FileGroupIDKey = attribute.Key("file.group.id")
5000
5001 // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
5002 // semantic conventions. It represents the primary group name of the file.
5003 //
5004 // Type: string
5005 // RequirementLevel: Recommended
5006 // Stability: Development
5007 //
5008 // Examples: "users"
5009 FileGroupNameKey = attribute.Key("file.group.name")
5010
5011 // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
5012 // conventions. It represents the inode representing the file in the filesystem.
5013 //
5014 // Type: string
5015 // RequirementLevel: Recommended
5016 // Stability: Development
5017 //
5018 // Examples: "256383"
5019 FileInodeKey = attribute.Key("file.inode")
5020
5021 // FileModeKey is the attribute Key conforming to the "file.mode" semantic
5022 // conventions. It represents the mode of the file in octal representation.
5023 //
5024 // Type: string
5025 // RequirementLevel: Recommended
5026 // Stability: Development
5027 //
5028 // Examples: "0640"
5029 FileModeKey = attribute.Key("file.mode")
5030
5031 // FileModifiedKey is the attribute Key conforming to the "file.modified"
5032 // semantic conventions. It represents the time when the file content was last
5033 // modified, in ISO 8601 format.
5034 //
5035 // Type: string
5036 // RequirementLevel: Recommended
5037 // Stability: Development
5038 //
5039 // Examples: "2021-01-01T12:00:00Z"
5040 FileModifiedKey = attribute.Key("file.modified")
5041
5042 // FileNameKey is the attribute Key conforming to the "file.name" semantic
5043 // conventions. It represents the name of the file including the extension,
5044 // without the directory.
5045 //
5046 // Type: string
5047 // RequirementLevel: Recommended
5048 // Stability: Development
5049 //
5050 // Examples: "example.png"
5051 FileNameKey = attribute.Key("file.name")
5052
5053 // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
5054 // semantic conventions. It represents the user ID (UID) or security identifier
5055 // (SID) of the file owner.
5056 //
5057 // Type: string
5058 // RequirementLevel: Recommended
5059 // Stability: Development
5060 //
5061 // Examples: "1000"
5062 FileOwnerIDKey = attribute.Key("file.owner.id")
5063
5064 // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
5065 // semantic conventions. It represents the username of the file owner.
5066 //
5067 // Type: string
5068 // RequirementLevel: Recommended
5069 // Stability: Development
5070 //
5071 // Examples: "root"
5072 FileOwnerNameKey = attribute.Key("file.owner.name")
5073
5074 // FilePathKey is the attribute Key conforming to the "file.path" semantic
5075 // conventions. It represents the full path to the file, including the file
5076 // name. It should include the drive letter, when appropriate.
5077 //
5078 // Type: string
5079 // RequirementLevel: Recommended
5080 // Stability: Development
5081 //
5082 // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
5083 FilePathKey = attribute.Key("file.path")
5084
5085 // FileSizeKey is the attribute Key conforming to the "file.size" semantic
5086 // conventions. It represents the file size in bytes.
5087 //
5088 // Type: int
5089 // RequirementLevel: Recommended
5090 // Stability: Development
5091 //
5092 // Examples:
5093 FileSizeKey = attribute.Key("file.size")
5094
5095 // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
5096 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5097 // to the target of a symbolic link.
5098 //
5099 // Type: string
5100 // RequirementLevel: Recommended
5101 // Stability: Development
5102 //
5103 // Examples: "/usr/bin/python3"
5104 // Note: This attribute is only applicable to symbolic links.
5105 FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
5106 )
5107
5108 // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
5109 // semantic conventions. It represents the time when the file was last accessed,
5110 // in ISO 8601 format.
5111 func FileAccessed(val string) attribute.KeyValue {
5112 return FileAccessedKey.String(val)
5113 }
5114
5115 // FileAttributes returns an attribute KeyValue conforming to the
5116 // "file.attributes" semantic conventions. It represents the array of file
5117 // attributes.
5118 func FileAttributes(val ...string) attribute.KeyValue {
5119 return FileAttributesKey.StringSlice(val)
5120 }
5121
5122 // FileChanged returns an attribute KeyValue conforming to the "file.changed"
5123 // semantic conventions. It represents the time when the file attributes or
5124 // metadata was last changed, in ISO 8601 format.
5125 func FileChanged(val string) attribute.KeyValue {
5126 return FileChangedKey.String(val)
5127 }
5128
5129 // FileCreated returns an attribute KeyValue conforming to the "file.created"
5130 // semantic conventions. It represents the time when the file was created, in ISO
5131 // 8601 format.
5132 func FileCreated(val string) attribute.KeyValue {
5133 return FileCreatedKey.String(val)
5134 }
5135
5136 // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
5137 // semantic conventions. It represents the directory where the file is located.
5138 // It should include the drive letter, when appropriate.
5139 func FileDirectory(val string) attribute.KeyValue {
5140 return FileDirectoryKey.String(val)
5141 }
5142
5143 // FileExtension returns an attribute KeyValue conforming to the "file.extension"
5144 // semantic conventions. It represents the file extension, excluding the leading
5145 // dot.
5146 func FileExtension(val string) attribute.KeyValue {
5147 return FileExtensionKey.String(val)
5148 }
5149
5150 // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
5151 // semantic conventions. It represents the name of the fork. A fork is additional
5152 // data associated with a filesystem object.
5153 func FileForkName(val string) attribute.KeyValue {
5154 return FileForkNameKey.String(val)
5155 }
5156
5157 // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
5158 // semantic conventions. It represents the primary Group ID (GID) of the file.
5159 func FileGroupID(val string) attribute.KeyValue {
5160 return FileGroupIDKey.String(val)
5161 }
5162
5163 // FileGroupName returns an attribute KeyValue conforming to the
5164 // "file.group.name" semantic conventions. It represents the primary group name
5165 // of the file.
5166 func FileGroupName(val string) attribute.KeyValue {
5167 return FileGroupNameKey.String(val)
5168 }
5169
5170 // FileInode returns an attribute KeyValue conforming to the "file.inode"
5171 // semantic conventions. It represents the inode representing the file in the
5172 // filesystem.
5173 func FileInode(val string) attribute.KeyValue {
5174 return FileInodeKey.String(val)
5175 }
5176
5177 // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
5178 // conventions. It represents the mode of the file in octal representation.
5179 func FileMode(val string) attribute.KeyValue {
5180 return FileModeKey.String(val)
5181 }
5182
5183 // FileModified returns an attribute KeyValue conforming to the "file.modified"
5184 // semantic conventions. It represents the time when the file content was last
5185 // modified, in ISO 8601 format.
5186 func FileModified(val string) attribute.KeyValue {
5187 return FileModifiedKey.String(val)
5188 }
5189
5190 // FileName returns an attribute KeyValue conforming to the "file.name" semantic
5191 // conventions. It represents the name of the file including the extension,
5192 // without the directory.
5193 func FileName(val string) attribute.KeyValue {
5194 return FileNameKey.String(val)
5195 }
5196
5197 // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
5198 // semantic conventions. It represents the user ID (UID) or security identifier
5199 // (SID) of the file owner.
5200 func FileOwnerID(val string) attribute.KeyValue {
5201 return FileOwnerIDKey.String(val)
5202 }
5203
5204 // FileOwnerName returns an attribute KeyValue conforming to the
5205 // "file.owner.name" semantic conventions. It represents the username of the file
5206 // owner.
5207 func FileOwnerName(val string) attribute.KeyValue {
5208 return FileOwnerNameKey.String(val)
5209 }
5210
5211 // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
5212 // conventions. It represents the full path to the file, including the file name.
5213 // It should include the drive letter, when appropriate.
5214 func FilePath(val string) attribute.KeyValue {
5215 return FilePathKey.String(val)
5216 }
5217
5218 // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
5219 // conventions. It represents the file size in bytes.
5220 func FileSize(val int) attribute.KeyValue {
5221 return FileSizeKey.Int(val)
5222 }
5223
5224 // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
5225 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5226 // to the target of a symbolic link.
5227 func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
5228 return FileSymbolicLinkTargetPathKey.String(val)
5229 }
5230
5231 // Namespace: gcp
5232 const (
5233 // GCPAppHubApplicationContainerKey is the attribute Key conforming to the
5234 // "gcp.apphub.application.container" semantic conventions. It represents the
5235 // container within GCP where the AppHub application is defined.
5236 //
5237 // Type: string
5238 // RequirementLevel: Recommended
5239 // Stability: Development
5240 //
5241 // Examples: "projects/my-container-project"
5242 GCPAppHubApplicationContainerKey = attribute.Key("gcp.apphub.application.container")
5243
5244 // GCPAppHubApplicationIDKey is the attribute Key conforming to the
5245 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5246 // the application as configured in AppHub.
5247 //
5248 // Type: string
5249 // RequirementLevel: Recommended
5250 // Stability: Development
5251 //
5252 // Examples: "my-application"
5253 GCPAppHubApplicationIDKey = attribute.Key("gcp.apphub.application.id")
5254
5255 // GCPAppHubApplicationLocationKey is the attribute Key conforming to the
5256 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5257 // zone or region where the application is defined.
5258 //
5259 // Type: string
5260 // RequirementLevel: Recommended
5261 // Stability: Development
5262 //
5263 // Examples: "us-central1"
5264 GCPAppHubApplicationLocationKey = attribute.Key("gcp.apphub.application.location")
5265
5266 // GCPAppHubServiceCriticalityTypeKey is the attribute Key conforming to the
5267 // "gcp.apphub.service.criticality_type" semantic conventions. It represents the
5268 // criticality of a service indicates its importance to the business.
5269 //
5270 // Type: Enum
5271 // RequirementLevel: Recommended
5272 // Stability: Development
5273 //
5274 // Examples:
5275 // Note: [See AppHub type enum]
5276 //
5277 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5278 GCPAppHubServiceCriticalityTypeKey = attribute.Key("gcp.apphub.service.criticality_type")
5279
5280 // GCPAppHubServiceEnvironmentTypeKey is the attribute Key conforming to the
5281 // "gcp.apphub.service.environment_type" semantic conventions. It represents the
5282 // environment of a service is the stage of a software lifecycle.
5283 //
5284 // Type: Enum
5285 // RequirementLevel: Recommended
5286 // Stability: Development
5287 //
5288 // Examples:
5289 // Note: [See AppHub environment type]
5290 //
5291 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5292 GCPAppHubServiceEnvironmentTypeKey = attribute.Key("gcp.apphub.service.environment_type")
5293
5294 // GCPAppHubServiceIDKey is the attribute Key conforming to the
5295 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5296 // service as configured in AppHub.
5297 //
5298 // Type: string
5299 // RequirementLevel: Recommended
5300 // Stability: Development
5301 //
5302 // Examples: "my-service"
5303 GCPAppHubServiceIDKey = attribute.Key("gcp.apphub.service.id")
5304
5305 // GCPAppHubWorkloadCriticalityTypeKey is the attribute Key conforming to the
5306 // "gcp.apphub.workload.criticality_type" semantic conventions. It represents
5307 // the criticality of a workload indicates its importance to the business.
5308 //
5309 // Type: Enum
5310 // RequirementLevel: Recommended
5311 // Stability: Development
5312 //
5313 // Examples:
5314 // Note: [See AppHub type enum]
5315 //
5316 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5317 GCPAppHubWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub.workload.criticality_type")
5318
5319 // GCPAppHubWorkloadEnvironmentTypeKey is the attribute Key conforming to the
5320 // "gcp.apphub.workload.environment_type" semantic conventions. It represents
5321 // the environment of a workload is the stage of a software lifecycle.
5322 //
5323 // Type: Enum
5324 // RequirementLevel: Recommended
5325 // Stability: Development
5326 //
5327 // Examples:
5328 // Note: [See AppHub environment type]
5329 //
5330 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5331 GCPAppHubWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub.workload.environment_type")
5332
5333 // GCPAppHubWorkloadIDKey is the attribute Key conforming to the
5334 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5335 // workload as configured in AppHub.
5336 //
5337 // Type: string
5338 // RequirementLevel: Recommended
5339 // Stability: Development
5340 //
5341 // Examples: "my-workload"
5342 GCPAppHubWorkloadIDKey = attribute.Key("gcp.apphub.workload.id")
5343
5344 // GCPClientServiceKey is the attribute Key conforming to the
5345 // "gcp.client.service" semantic conventions. It represents the identifies the
5346 // Google Cloud service for which the official client library is intended.
5347 //
5348 // Type: string
5349 // RequirementLevel: Recommended
5350 // Stability: Development
5351 //
5352 // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
5353 // Note: Intended to be a stable identifier for Google Cloud client libraries
5354 // that is uniform across implementation languages. The value should be derived
5355 // from the canonical service domain for the service; for example,
5356 // 'foo.googleapis.com' should result in a value of 'foo'.
5357 GCPClientServiceKey = attribute.Key("gcp.client.service")
5358
5359 // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
5360 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
5361 // the Cloud Run [execution] being run for the Job, as set by the
5362 // [`CLOUD_RUN_EXECUTION`] environment variable.
5363 //
5364 // Type: string
5365 // RequirementLevel: Recommended
5366 // Stability: Development
5367 //
5368 // Examples: "job-name-xxxx", "sample-job-mdw84"
5369 //
5370 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5371 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5372 GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
5373
5374 // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
5375 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5376 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5377 // environment variable.
5378 //
5379 // Type: int
5380 // RequirementLevel: Recommended
5381 // Stability: Development
5382 //
5383 // Examples: 0, 1
5384 //
5385 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5386 GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
5387
5388 // GCPGCEInstanceHostnameKey is the attribute Key conforming to the
5389 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5390 // of a GCE instance. This is the full value of the default or [custom hostname]
5391 // .
5392 //
5393 // Type: string
5394 // RequirementLevel: Recommended
5395 // Stability: Development
5396 //
5397 // Examples: "my-host1234.example.com",
5398 // "sample-vm.us-west1-b.c.my-project.internal"
5399 //
5400 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5401 GCPGCEInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
5402
5403 // GCPGCEInstanceNameKey is the attribute Key conforming to the
5404 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5405 // of a GCE instance. This is the value provided by `host.name`, the visible
5406 // name of the instance in the Cloud Console UI, and the prefix for the default
5407 // hostname of the instance as defined by the [default internal DNS name].
5408 //
5409 // Type: string
5410 // RequirementLevel: Recommended
5411 // Stability: Development
5412 //
5413 // Examples: "instance-1", "my-vm-name"
5414 //
5415 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5416 GCPGCEInstanceNameKey = attribute.Key("gcp.gce.instance.name")
5417 )
5418
5419 // GCPAppHubApplicationContainer returns an attribute KeyValue conforming to the
5420 // "gcp.apphub.application.container" semantic conventions. It represents the
5421 // container within GCP where the AppHub application is defined.
5422 func GCPAppHubApplicationContainer(val string) attribute.KeyValue {
5423 return GCPAppHubApplicationContainerKey.String(val)
5424 }
5425
5426 // GCPAppHubApplicationID returns an attribute KeyValue conforming to the
5427 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5428 // the application as configured in AppHub.
5429 func GCPAppHubApplicationID(val string) attribute.KeyValue {
5430 return GCPAppHubApplicationIDKey.String(val)
5431 }
5432
5433 // GCPAppHubApplicationLocation returns an attribute KeyValue conforming to the
5434 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5435 // zone or region where the application is defined.
5436 func GCPAppHubApplicationLocation(val string) attribute.KeyValue {
5437 return GCPAppHubApplicationLocationKey.String(val)
5438 }
5439
5440 // GCPAppHubServiceID returns an attribute KeyValue conforming to the
5441 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5442 // service as configured in AppHub.
5443 func GCPAppHubServiceID(val string) attribute.KeyValue {
5444 return GCPAppHubServiceIDKey.String(val)
5445 }
5446
5447 // GCPAppHubWorkloadID returns an attribute KeyValue conforming to the
5448 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5449 // workload as configured in AppHub.
5450 func GCPAppHubWorkloadID(val string) attribute.KeyValue {
5451 return GCPAppHubWorkloadIDKey.String(val)
5452 }
5453
5454 // GCPClientService returns an attribute KeyValue conforming to the
5455 // "gcp.client.service" semantic conventions. It represents the identifies the
5456 // Google Cloud service for which the official client library is intended.
5457 func GCPClientService(val string) attribute.KeyValue {
5458 return GCPClientServiceKey.String(val)
5459 }
5460
5461 // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
5462 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
5463 // the Cloud Run [execution] being run for the Job, as set by the
5464 // [`CLOUD_RUN_EXECUTION`] environment variable.
5465 //
5466 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5467 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5468 func GCPCloudRunJobExecution(val string) attribute.KeyValue {
5469 return GCPCloudRunJobExecutionKey.String(val)
5470 }
5471
5472 // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
5473 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5474 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5475 // environment variable.
5476 //
5477 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5478 func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
5479 return GCPCloudRunJobTaskIndexKey.Int(val)
5480 }
5481
5482 // GCPGCEInstanceHostname returns an attribute KeyValue conforming to the
5483 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5484 // of a GCE instance. This is the full value of the default or [custom hostname]
5485 // .
5486 //
5487 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5488 func GCPGCEInstanceHostname(val string) attribute.KeyValue {
5489 return GCPGCEInstanceHostnameKey.String(val)
5490 }
5491
5492 // GCPGCEInstanceName returns an attribute KeyValue conforming to the
5493 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5494 // of a GCE instance. This is the value provided by `host.name`, the visible name
5495 // of the instance in the Cloud Console UI, and the prefix for the default
5496 // hostname of the instance as defined by the [default internal DNS name].
5497 //
5498 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5499 func GCPGCEInstanceName(val string) attribute.KeyValue {
5500 return GCPGCEInstanceNameKey.String(val)
5501 }
5502
5503 // Enum values for gcp.apphub.service.criticality_type
5504 var (
5505 // Mission critical service.
5506 // Stability: development
5507 GCPAppHubServiceCriticalityTypeMissionCritical = GCPAppHubServiceCriticalityTypeKey.String("MISSION_CRITICAL")
5508 // High impact.
5509 // Stability: development
5510 GCPAppHubServiceCriticalityTypeHigh = GCPAppHubServiceCriticalityTypeKey.String("HIGH")
5511 // Medium impact.
5512 // Stability: development
5513 GCPAppHubServiceCriticalityTypeMedium = GCPAppHubServiceCriticalityTypeKey.String("MEDIUM")
5514 // Low impact.
5515 // Stability: development
5516 GCPAppHubServiceCriticalityTypeLow = GCPAppHubServiceCriticalityTypeKey.String("LOW")
5517 )
5518
5519 // Enum values for gcp.apphub.service.environment_type
5520 var (
5521 // Production environment.
5522 // Stability: development
5523 GCPAppHubServiceEnvironmentTypeProduction = GCPAppHubServiceEnvironmentTypeKey.String("PRODUCTION")
5524 // Staging environment.
5525 // Stability: development
5526 GCPAppHubServiceEnvironmentTypeStaging = GCPAppHubServiceEnvironmentTypeKey.String("STAGING")
5527 // Test environment.
5528 // Stability: development
5529 GCPAppHubServiceEnvironmentTypeTest = GCPAppHubServiceEnvironmentTypeKey.String("TEST")
5530 // Development environment.
5531 // Stability: development
5532 GCPAppHubServiceEnvironmentTypeDevelopment = GCPAppHubServiceEnvironmentTypeKey.String("DEVELOPMENT")
5533 )
5534
5535 // Enum values for gcp.apphub.workload.criticality_type
5536 var (
5537 // Mission critical service.
5538 // Stability: development
5539 GCPAppHubWorkloadCriticalityTypeMissionCritical = GCPAppHubWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
5540 // High impact.
5541 // Stability: development
5542 GCPAppHubWorkloadCriticalityTypeHigh = GCPAppHubWorkloadCriticalityTypeKey.String("HIGH")
5543 // Medium impact.
5544 // Stability: development
5545 GCPAppHubWorkloadCriticalityTypeMedium = GCPAppHubWorkloadCriticalityTypeKey.String("MEDIUM")
5546 // Low impact.
5547 // Stability: development
5548 GCPAppHubWorkloadCriticalityTypeLow = GCPAppHubWorkloadCriticalityTypeKey.String("LOW")
5549 )
5550
5551 // Enum values for gcp.apphub.workload.environment_type
5552 var (
5553 // Production environment.
5554 // Stability: development
5555 GCPAppHubWorkloadEnvironmentTypeProduction = GCPAppHubWorkloadEnvironmentTypeKey.String("PRODUCTION")
5556 // Staging environment.
5557 // Stability: development
5558 GCPAppHubWorkloadEnvironmentTypeStaging = GCPAppHubWorkloadEnvironmentTypeKey.String("STAGING")
5559 // Test environment.
5560 // Stability: development
5561 GCPAppHubWorkloadEnvironmentTypeTest = GCPAppHubWorkloadEnvironmentTypeKey.String("TEST")
5562 // Development environment.
5563 // Stability: development
5564 GCPAppHubWorkloadEnvironmentTypeDevelopment = GCPAppHubWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
5565 )
5566
5567 // Namespace: gen_ai
5568 const (
5569 // GenAIAgentDescriptionKey is the attribute Key conforming to the
5570 // "gen_ai.agent.description" semantic conventions. It represents the free-form
5571 // description of the GenAI agent provided by the application.
5572 //
5573 // Type: string
5574 // RequirementLevel: Recommended
5575 // Stability: Development
5576 //
5577 // Examples: "Helps with math problems", "Generates fiction stories"
5578 GenAIAgentDescriptionKey = attribute.Key("gen_ai.agent.description")
5579
5580 // GenAIAgentIDKey is the attribute Key conforming to the "gen_ai.agent.id"
5581 // semantic conventions. It represents the unique identifier of the GenAI agent.
5582 //
5583 // Type: string
5584 // RequirementLevel: Recommended
5585 // Stability: Development
5586 //
5587 // Examples: "asst_5j66UpCpwteGg4YSxUnt7lPY"
5588 GenAIAgentIDKey = attribute.Key("gen_ai.agent.id")
5589
5590 // GenAIAgentNameKey is the attribute Key conforming to the "gen_ai.agent.name"
5591 // semantic conventions. It represents the human-readable name of the GenAI
5592 // agent provided by the application.
5593 //
5594 // Type: string
5595 // RequirementLevel: Recommended
5596 // Stability: Development
5597 //
5598 // Examples: "Math Tutor", "Fiction Writer"
5599 GenAIAgentNameKey = attribute.Key("gen_ai.agent.name")
5600
5601 // GenAIOpenAIRequestServiceTierKey is the attribute Key conforming to the
5602 // "gen_ai.openai.request.service_tier" semantic conventions. It represents the
5603 // service tier requested. May be a specific tier, default, or auto.
5604 //
5605 // Type: Enum
5606 // RequirementLevel: Recommended
5607 // Stability: Development
5608 //
5609 // Examples: "auto", "default"
5610 GenAIOpenAIRequestServiceTierKey = attribute.Key("gen_ai.openai.request.service_tier")
5611
5612 // GenAIOpenAIResponseServiceTierKey is the attribute Key conforming to the
5613 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
5614 // service tier used for the response.
5615 //
5616 // Type: string
5617 // RequirementLevel: Recommended
5618 // Stability: Development
5619 //
5620 // Examples: "scale", "default"
5621 GenAIOpenAIResponseServiceTierKey = attribute.Key("gen_ai.openai.response.service_tier")
5622
5623 // GenAIOpenAIResponseSystemFingerprintKey is the attribute Key conforming to
5624 // the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
5625 // represents a fingerprint to track any eventual change in the Generative AI
5626 // environment.
5627 //
5628 // Type: string
5629 // RequirementLevel: Recommended
5630 // Stability: Development
5631 //
5632 // Examples: "fp_44709d6fcb"
5633 GenAIOpenAIResponseSystemFingerprintKey = attribute.Key("gen_ai.openai.response.system_fingerprint")
5634
5635 // GenAIOperationNameKey is the attribute Key conforming to the
5636 // "gen_ai.operation.name" semantic conventions. It represents the name of the
5637 // operation being performed.
5638 //
5639 // Type: Enum
5640 // RequirementLevel: Recommended
5641 // Stability: Development
5642 //
5643 // Examples:
5644 // Note: If one of the predefined values applies, but specific system uses a
5645 // different name it's RECOMMENDED to document it in the semantic conventions
5646 // for specific GenAI system and use system-specific name in the
5647 // instrumentation. If a different name is not documented, instrumentation
5648 // libraries SHOULD use applicable predefined value.
5649 GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
5650
5651 // GenAIOutputTypeKey is the attribute Key conforming to the
5652 // "gen_ai.output.type" semantic conventions. It represents the represents the
5653 // content type requested by the client.
5654 //
5655 // Type: Enum
5656 // RequirementLevel: Recommended
5657 // Stability: Development
5658 //
5659 // Examples:
5660 // Note: This attribute SHOULD be used when the client requests output of a
5661 // specific type. The model may return zero or more outputs of this type.
5662 // This attribute specifies the output modality and not the actual output
5663 // format. For example, if an image is requested, the actual output could be a
5664 // URL pointing to an image file.
5665 // Additional output format details may be recorded in the future in the
5666 // `gen_ai.output.{type}.*` attributes.
5667 GenAIOutputTypeKey = attribute.Key("gen_ai.output.type")
5668
5669 // GenAIRequestChoiceCountKey is the attribute Key conforming to the
5670 // "gen_ai.request.choice.count" semantic conventions. It represents the target
5671 // number of candidate completions to return.
5672 //
5673 // Type: int
5674 // RequirementLevel: Recommended
5675 // Stability: Development
5676 //
5677 // Examples: 3
5678 GenAIRequestChoiceCountKey = attribute.Key("gen_ai.request.choice.count")
5679
5680 // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the
5681 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
5682 // encoding formats requested in an embeddings operation, if specified.
5683 //
5684 // Type: string[]
5685 // RequirementLevel: Recommended
5686 // Stability: Development
5687 //
5688 // Examples: "base64"], ["float", "binary"
5689 // Note: In some GenAI systems the encoding formats are called embedding types.
5690 // Also, some GenAI systems only accept a single format per request.
5691 GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats")
5692
5693 // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
5694 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
5695 // frequency penalty setting for the GenAI request.
5696 //
5697 // Type: double
5698 // RequirementLevel: Recommended
5699 // Stability: Development
5700 //
5701 // Examples: 0.1
5702 GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
5703
5704 // GenAIRequestMaxTokensKey is the attribute Key conforming to the
5705 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
5706 // number of tokens the model generates for a request.
5707 //
5708 // Type: int
5709 // RequirementLevel: Recommended
5710 // Stability: Development
5711 //
5712 // Examples: 100
5713 GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
5714
5715 // GenAIRequestModelKey is the attribute Key conforming to the
5716 // "gen_ai.request.model" semantic conventions. It represents the name of the
5717 // GenAI model a request is being made to.
5718 //
5719 // Type: string
5720 // RequirementLevel: Recommended
5721 // Stability: Development
5722 //
5723 // Examples: gpt-4
5724 GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
5725
5726 // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
5727 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
5728 // presence penalty setting for the GenAI request.
5729 //
5730 // Type: double
5731 // RequirementLevel: Recommended
5732 // Stability: Development
5733 //
5734 // Examples: 0.1
5735 GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
5736
5737 // GenAIRequestSeedKey is the attribute Key conforming to the
5738 // "gen_ai.request.seed" semantic conventions. It represents the requests with
5739 // same seed value more likely to return same result.
5740 //
5741 // Type: int
5742 // RequirementLevel: Recommended
5743 // Stability: Development
5744 //
5745 // Examples: 100
5746 GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed")
5747
5748 // GenAIRequestStopSequencesKey is the attribute Key conforming to the
5749 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
5750 // of sequences that the model will use to stop generating further tokens.
5751 //
5752 // Type: string[]
5753 // RequirementLevel: Recommended
5754 // Stability: Development
5755 //
5756 // Examples: "forest", "lived"
5757 GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
5758
5759 // GenAIRequestTemperatureKey is the attribute Key conforming to the
5760 // "gen_ai.request.temperature" semantic conventions. It represents the
5761 // temperature setting for the GenAI request.
5762 //
5763 // Type: double
5764 // RequirementLevel: Recommended
5765 // Stability: Development
5766 //
5767 // Examples: 0.0
5768 GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
5769
5770 // GenAIRequestTopKKey is the attribute Key conforming to the
5771 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
5772 // setting for the GenAI request.
5773 //
5774 // Type: double
5775 // RequirementLevel: Recommended
5776 // Stability: Development
5777 //
5778 // Examples: 1.0
5779 GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
5780
5781 // GenAIRequestTopPKey is the attribute Key conforming to the
5782 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
5783 // setting for the GenAI request.
5784 //
5785 // Type: double
5786 // RequirementLevel: Recommended
5787 // Stability: Development
5788 //
5789 // Examples: 1.0
5790 GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
5791
5792 // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
5793 // "gen_ai.response.finish_reasons" semantic conventions. It represents the
5794 // array of reasons the model stopped generating tokens, corresponding to each
5795 // generation received.
5796 //
5797 // Type: string[]
5798 // RequirementLevel: Recommended
5799 // Stability: Development
5800 //
5801 // Examples: "stop"], ["stop", "length"
5802 GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
5803
5804 // GenAIResponseIDKey is the attribute Key conforming to the
5805 // "gen_ai.response.id" semantic conventions. It represents the unique
5806 // identifier for the completion.
5807 //
5808 // Type: string
5809 // RequirementLevel: Recommended
5810 // Stability: Development
5811 //
5812 // Examples: "chatcmpl-123"
5813 GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
5814
5815 // GenAIResponseModelKey is the attribute Key conforming to the
5816 // "gen_ai.response.model" semantic conventions. It represents the name of the
5817 // model that generated the response.
5818 //
5819 // Type: string
5820 // RequirementLevel: Recommended
5821 // Stability: Development
5822 //
5823 // Examples: "gpt-4-0613"
5824 GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
5825
5826 // GenAISystemKey is the attribute Key conforming to the "gen_ai.system"
5827 // semantic conventions. It represents the Generative AI product as identified
5828 // by the client or server instrumentation.
5829 //
5830 // Type: Enum
5831 // RequirementLevel: Recommended
5832 // Stability: Development
5833 //
5834 // Examples: openai
5835 // Note: The `gen_ai.system` describes a family of GenAI models with specific
5836 // model identified
5837 // by `gen_ai.request.model` and `gen_ai.response.model` attributes.
5838 //
5839 // The actual GenAI product may differ from the one identified by the client.
5840 // Multiple systems, including Azure OpenAI and Gemini, are accessible by OpenAI
5841 // client
5842 // libraries. In such cases, the `gen_ai.system` is set to `openai` based on the
5843 // instrumentation's best knowledge, instead of the actual system. The
5844 // `server.address`
5845 // attribute may help identify the actual system in use for `openai`.
5846 //
5847 // For custom model, a custom friendly name SHOULD be used.
5848 // If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER`
5849 // .
5850 GenAISystemKey = attribute.Key("gen_ai.system")
5851
5852 // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
5853 // semantic conventions. It represents the type of token being counted.
5854 //
5855 // Type: Enum
5856 // RequirementLevel: Recommended
5857 // Stability: Development
5858 //
5859 // Examples: "input", "output"
5860 GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
5861
5862 // GenAIToolCallIDKey is the attribute Key conforming to the
5863 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
5864 // identifier.
5865 //
5866 // Type: string
5867 // RequirementLevel: Recommended
5868 // Stability: Development
5869 //
5870 // Examples: "call_mszuSIzqtI65i1wAUOE8w5H4"
5871 GenAIToolCallIDKey = attribute.Key("gen_ai.tool.call.id")
5872
5873 // GenAIToolDescriptionKey is the attribute Key conforming to the
5874 // "gen_ai.tool.description" semantic conventions. It represents the tool
5875 // description.
5876 //
5877 // Type: string
5878 // RequirementLevel: Recommended
5879 // Stability: Development
5880 //
5881 // Examples: "Multiply two numbers"
5882 GenAIToolDescriptionKey = attribute.Key("gen_ai.tool.description")
5883
5884 // GenAIToolNameKey is the attribute Key conforming to the "gen_ai.tool.name"
5885 // semantic conventions. It represents the name of the tool utilized by the
5886 // agent.
5887 //
5888 // Type: string
5889 // RequirementLevel: Recommended
5890 // Stability: Development
5891 //
5892 // Examples: "Flights"
5893 GenAIToolNameKey = attribute.Key("gen_ai.tool.name")
5894
5895 // GenAIToolTypeKey is the attribute Key conforming to the "gen_ai.tool.type"
5896 // semantic conventions. It represents the type of the tool utilized by the
5897 // agent.
5898 //
5899 // Type: string
5900 // RequirementLevel: Recommended
5901 // Stability: Development
5902 //
5903 // Examples: "function", "extension", "datastore"
5904 // Note: Extension: A tool executed on the agent-side to directly call external
5905 // APIs, bridging the gap between the agent and real-world systems.
5906 // Agent-side operations involve actions that are performed by the agent on the
5907 // server or within the agent's controlled environment.
5908 // Function: A tool executed on the client-side, where the agent generates
5909 // parameters for a predefined function, and the client executes the logic.
5910 // Client-side operations are actions taken on the user's end or within the
5911 // client application.
5912 // Datastore: A tool used by the agent to access and query structured or
5913 // unstructured external data for retrieval-augmented tasks or knowledge
5914 // updates.
5915 GenAIToolTypeKey = attribute.Key("gen_ai.tool.type")
5916
5917 // GenAIUsageInputTokensKey is the attribute Key conforming to the
5918 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
5919 // tokens used in the GenAI input (prompt).
5920 //
5921 // Type: int
5922 // RequirementLevel: Recommended
5923 // Stability: Development
5924 //
5925 // Examples: 100
5926 GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
5927
5928 // GenAIUsageOutputTokensKey is the attribute Key conforming to the
5929 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
5930 // of tokens used in the GenAI response (completion).
5931 //
5932 // Type: int
5933 // RequirementLevel: Recommended
5934 // Stability: Development
5935 //
5936 // Examples: 180
5937 GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
5938 )
5939
5940 // GenAIAgentDescription returns an attribute KeyValue conforming to the
5941 // "gen_ai.agent.description" semantic conventions. It represents the free-form
5942 // description of the GenAI agent provided by the application.
5943 func GenAIAgentDescription(val string) attribute.KeyValue {
5944 return GenAIAgentDescriptionKey.String(val)
5945 }
5946
5947 // GenAIAgentID returns an attribute KeyValue conforming to the "gen_ai.agent.id"
5948 // semantic conventions. It represents the unique identifier of the GenAI agent.
5949 func GenAIAgentID(val string) attribute.KeyValue {
5950 return GenAIAgentIDKey.String(val)
5951 }
5952
5953 // GenAIAgentName returns an attribute KeyValue conforming to the
5954 // "gen_ai.agent.name" semantic conventions. It represents the human-readable
5955 // name of the GenAI agent provided by the application.
5956 func GenAIAgentName(val string) attribute.KeyValue {
5957 return GenAIAgentNameKey.String(val)
5958 }
5959
5960 // GenAIOpenAIResponseServiceTier returns an attribute KeyValue conforming to the
5961 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
5962 // service tier used for the response.
5963 func GenAIOpenAIResponseServiceTier(val string) attribute.KeyValue {
5964 return GenAIOpenAIResponseServiceTierKey.String(val)
5965 }
5966
5967 // GenAIOpenAIResponseSystemFingerprint returns an attribute KeyValue conforming
5968 // to the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
5969 // represents a fingerprint to track any eventual change in the Generative AI
5970 // environment.
5971 func GenAIOpenAIResponseSystemFingerprint(val string) attribute.KeyValue {
5972 return GenAIOpenAIResponseSystemFingerprintKey.String(val)
5973 }
5974
5975 // GenAIRequestChoiceCount returns an attribute KeyValue conforming to the
5976 // "gen_ai.request.choice.count" semantic conventions. It represents the target
5977 // number of candidate completions to return.
5978 func GenAIRequestChoiceCount(val int) attribute.KeyValue {
5979 return GenAIRequestChoiceCountKey.Int(val)
5980 }
5981
5982 // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the
5983 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
5984 // encoding formats requested in an embeddings operation, if specified.
5985 func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue {
5986 return GenAIRequestEncodingFormatsKey.StringSlice(val)
5987 }
5988
5989 // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
5990 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
5991 // frequency penalty setting for the GenAI request.
5992 func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
5993 return GenAIRequestFrequencyPenaltyKey.Float64(val)
5994 }
5995
5996 // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
5997 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
5998 // number of tokens the model generates for a request.
5999 func GenAIRequestMaxTokens(val int) attribute.KeyValue {
6000 return GenAIRequestMaxTokensKey.Int(val)
6001 }
6002
6003 // GenAIRequestModel returns an attribute KeyValue conforming to the
6004 // "gen_ai.request.model" semantic conventions. It represents the name of the
6005 // GenAI model a request is being made to.
6006 func GenAIRequestModel(val string) attribute.KeyValue {
6007 return GenAIRequestModelKey.String(val)
6008 }
6009
6010 // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
6011 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
6012 // presence penalty setting for the GenAI request.
6013 func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
6014 return GenAIRequestPresencePenaltyKey.Float64(val)
6015 }
6016
6017 // GenAIRequestSeed returns an attribute KeyValue conforming to the
6018 // "gen_ai.request.seed" semantic conventions. It represents the requests with
6019 // same seed value more likely to return same result.
6020 func GenAIRequestSeed(val int) attribute.KeyValue {
6021 return GenAIRequestSeedKey.Int(val)
6022 }
6023
6024 // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
6025 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
6026 // of sequences that the model will use to stop generating further tokens.
6027 func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
6028 return GenAIRequestStopSequencesKey.StringSlice(val)
6029 }
6030
6031 // GenAIRequestTemperature returns an attribute KeyValue conforming to the
6032 // "gen_ai.request.temperature" semantic conventions. It represents the
6033 // temperature setting for the GenAI request.
6034 func GenAIRequestTemperature(val float64) attribute.KeyValue {
6035 return GenAIRequestTemperatureKey.Float64(val)
6036 }
6037
6038 // GenAIRequestTopK returns an attribute KeyValue conforming to the
6039 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
6040 // setting for the GenAI request.
6041 func GenAIRequestTopK(val float64) attribute.KeyValue {
6042 return GenAIRequestTopKKey.Float64(val)
6043 }
6044
6045 // GenAIRequestTopP returns an attribute KeyValue conforming to the
6046 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
6047 // setting for the GenAI request.
6048 func GenAIRequestTopP(val float64) attribute.KeyValue {
6049 return GenAIRequestTopPKey.Float64(val)
6050 }
6051
6052 // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
6053 // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
6054 // of reasons the model stopped generating tokens, corresponding to each
6055 // generation received.
6056 func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
6057 return GenAIResponseFinishReasonsKey.StringSlice(val)
6058 }
6059
6060 // GenAIResponseID returns an attribute KeyValue conforming to the
6061 // "gen_ai.response.id" semantic conventions. It represents the unique identifier
6062 // for the completion.
6063 func GenAIResponseID(val string) attribute.KeyValue {
6064 return GenAIResponseIDKey.String(val)
6065 }
6066
6067 // GenAIResponseModel returns an attribute KeyValue conforming to the
6068 // "gen_ai.response.model" semantic conventions. It represents the name of the
6069 // model that generated the response.
6070 func GenAIResponseModel(val string) attribute.KeyValue {
6071 return GenAIResponseModelKey.String(val)
6072 }
6073
6074 // GenAIToolCallID returns an attribute KeyValue conforming to the
6075 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
6076 // identifier.
6077 func GenAIToolCallID(val string) attribute.KeyValue {
6078 return GenAIToolCallIDKey.String(val)
6079 }
6080
6081 // GenAIToolDescription returns an attribute KeyValue conforming to the
6082 // "gen_ai.tool.description" semantic conventions. It represents the tool
6083 // description.
6084 func GenAIToolDescription(val string) attribute.KeyValue {
6085 return GenAIToolDescriptionKey.String(val)
6086 }
6087
6088 // GenAIToolName returns an attribute KeyValue conforming to the
6089 // "gen_ai.tool.name" semantic conventions. It represents the name of the tool
6090 // utilized by the agent.
6091 func GenAIToolName(val string) attribute.KeyValue {
6092 return GenAIToolNameKey.String(val)
6093 }
6094
6095 // GenAIToolType returns an attribute KeyValue conforming to the
6096 // "gen_ai.tool.type" semantic conventions. It represents the type of the tool
6097 // utilized by the agent.
6098 func GenAIToolType(val string) attribute.KeyValue {
6099 return GenAIToolTypeKey.String(val)
6100 }
6101
6102 // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
6103 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
6104 // tokens used in the GenAI input (prompt).
6105 func GenAIUsageInputTokens(val int) attribute.KeyValue {
6106 return GenAIUsageInputTokensKey.Int(val)
6107 }
6108
6109 // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
6110 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
6111 // tokens used in the GenAI response (completion).
6112 func GenAIUsageOutputTokens(val int) attribute.KeyValue {
6113 return GenAIUsageOutputTokensKey.Int(val)
6114 }
6115
6116 // Enum values for gen_ai.openai.request.service_tier
6117 var (
6118 // The system will utilize scale tier credits until they are exhausted.
6119 // Stability: development
6120 GenAIOpenAIRequestServiceTierAuto = GenAIOpenAIRequestServiceTierKey.String("auto")
6121 // The system will utilize the default scale tier.
6122 // Stability: development
6123 GenAIOpenAIRequestServiceTierDefault = GenAIOpenAIRequestServiceTierKey.String("default")
6124 )
6125
6126 // Enum values for gen_ai.operation.name
6127 var (
6128 // Chat completion operation such as [OpenAI Chat API]
6129 // Stability: development
6130 //
6131 // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
6132 GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
6133 // Multimodal content generation operation such as [Gemini Generate Content]
6134 // Stability: development
6135 //
6136 // [Gemini Generate Content]: https://ai.google.dev/api/generate-content
6137 GenAIOperationNameGenerateContent = GenAIOperationNameKey.String("generate_content")
6138 // Text completions operation such as [OpenAI Completions API (Legacy)]
6139 // Stability: development
6140 //
6141 // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
6142 GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
6143 // Embeddings operation such as [OpenAI Create embeddings API]
6144 // Stability: development
6145 //
6146 // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create
6147 GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings")
6148 // Create GenAI agent
6149 // Stability: development
6150 GenAIOperationNameCreateAgent = GenAIOperationNameKey.String("create_agent")
6151 // Invoke GenAI agent
6152 // Stability: development
6153 GenAIOperationNameInvokeAgent = GenAIOperationNameKey.String("invoke_agent")
6154 // Execute a tool
6155 // Stability: development
6156 GenAIOperationNameExecuteTool = GenAIOperationNameKey.String("execute_tool")
6157 )
6158
6159 // Enum values for gen_ai.output.type
6160 var (
6161 // Plain text
6162 // Stability: development
6163 GenAIOutputTypeText = GenAIOutputTypeKey.String("text")
6164 // JSON object with known or unknown schema
6165 // Stability: development
6166 GenAIOutputTypeJSON = GenAIOutputTypeKey.String("json")
6167 // Image
6168 // Stability: development
6169 GenAIOutputTypeImage = GenAIOutputTypeKey.String("image")
6170 // Speech
6171 // Stability: development
6172 GenAIOutputTypeSpeech = GenAIOutputTypeKey.String("speech")
6173 )
6174
6175 // Enum values for gen_ai.system
6176 var (
6177 // OpenAI
6178 // Stability: development
6179 GenAISystemOpenAI = GenAISystemKey.String("openai")
6180 // Any Google generative AI endpoint
6181 // Stability: development
6182 GenAISystemGCPGenAI = GenAISystemKey.String("gcp.gen_ai")
6183 // Vertex AI
6184 // Stability: development
6185 GenAISystemGCPVertexAI = GenAISystemKey.String("gcp.vertex_ai")
6186 // Gemini
6187 // Stability: development
6188 GenAISystemGCPGemini = GenAISystemKey.String("gcp.gemini")
6189 // Deprecated: Use 'gcp.vertex_ai' instead.
6190 GenAISystemVertexAI = GenAISystemKey.String("vertex_ai")
6191 // Deprecated: Use 'gcp.gemini' instead.
6192 GenAISystemGemini = GenAISystemKey.String("gemini")
6193 // Anthropic
6194 // Stability: development
6195 GenAISystemAnthropic = GenAISystemKey.String("anthropic")
6196 // Cohere
6197 // Stability: development
6198 GenAISystemCohere = GenAISystemKey.String("cohere")
6199 // Azure AI Inference
6200 // Stability: development
6201 GenAISystemAzAIInference = GenAISystemKey.String("az.ai.inference")
6202 // Azure OpenAI
6203 // Stability: development
6204 GenAISystemAzAIOpenAI = GenAISystemKey.String("az.ai.openai")
6205 // IBM Watsonx AI
6206 // Stability: development
6207 GenAISystemIBMWatsonxAI = GenAISystemKey.String("ibm.watsonx.ai")
6208 // AWS Bedrock
6209 // Stability: development
6210 GenAISystemAWSBedrock = GenAISystemKey.String("aws.bedrock")
6211 // Perplexity
6212 // Stability: development
6213 GenAISystemPerplexity = GenAISystemKey.String("perplexity")
6214 // xAI
6215 // Stability: development
6216 GenAISystemXai = GenAISystemKey.String("xai")
6217 // DeepSeek
6218 // Stability: development
6219 GenAISystemDeepseek = GenAISystemKey.String("deepseek")
6220 // Groq
6221 // Stability: development
6222 GenAISystemGroq = GenAISystemKey.String("groq")
6223 // Mistral AI
6224 // Stability: development
6225 GenAISystemMistralAI = GenAISystemKey.String("mistral_ai")
6226 )
6227
6228 // Enum values for gen_ai.token.type
6229 var (
6230 // Input tokens (prompt, input, etc.)
6231 // Stability: development
6232 GenAITokenTypeInput = GenAITokenTypeKey.String("input")
6233 // Deprecated: Replaced by `output`.
6234 GenAITokenTypeCompletion = GenAITokenTypeKey.String("output")
6235 // Output tokens (completion, response, etc.)
6236 // Stability: development
6237 GenAITokenTypeOutput = GenAITokenTypeKey.String("output")
6238 )
6239
6240 // Namespace: geo
6241 const (
6242 // GeoContinentCodeKey is the attribute Key conforming to the
6243 // "geo.continent.code" semantic conventions. It represents the two-letter code
6244 // representing continent’s name.
6245 //
6246 // Type: Enum
6247 // RequirementLevel: Recommended
6248 // Stability: Development
6249 //
6250 // Examples:
6251 GeoContinentCodeKey = attribute.Key("geo.continent.code")
6252
6253 // GeoCountryISOCodeKey is the attribute Key conforming to the
6254 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
6255 // Country Code ([ISO 3166-1 alpha2]).
6256 //
6257 // Type: string
6258 // RequirementLevel: Recommended
6259 // Stability: Development
6260 //
6261 // Examples: "CA"
6262 //
6263 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
6264 GeoCountryISOCodeKey = attribute.Key("geo.country.iso_code")
6265
6266 // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name"
6267 // semantic conventions. It represents the locality name. Represents the name of
6268 // a city, town, village, or similar populated place.
6269 //
6270 // Type: string
6271 // RequirementLevel: Recommended
6272 // Stability: Development
6273 //
6274 // Examples: "Montreal", "Berlin"
6275 GeoLocalityNameKey = attribute.Key("geo.locality.name")
6276
6277 // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat"
6278 // semantic conventions. It represents the latitude of the geo location in
6279 // [WGS84].
6280 //
6281 // Type: double
6282 // RequirementLevel: Recommended
6283 // Stability: Development
6284 //
6285 // Examples: 45.505918
6286 //
6287 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6288 GeoLocationLatKey = attribute.Key("geo.location.lat")
6289
6290 // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon"
6291 // semantic conventions. It represents the longitude of the geo location in
6292 // [WGS84].
6293 //
6294 // Type: double
6295 // RequirementLevel: Recommended
6296 // Stability: Development
6297 //
6298 // Examples: -73.61483
6299 //
6300 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6301 GeoLocationLonKey = attribute.Key("geo.location.lon")
6302
6303 // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code"
6304 // semantic conventions. It represents the postal code associated with the
6305 // location. Values appropriate for this field may also be known as a postcode
6306 // or ZIP code and will vary widely from country to country.
6307 //
6308 // Type: string
6309 // RequirementLevel: Recommended
6310 // Stability: Development
6311 //
6312 // Examples: "94040"
6313 GeoPostalCodeKey = attribute.Key("geo.postal_code")
6314
6315 // GeoRegionISOCodeKey is the attribute Key conforming to the
6316 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
6317 // ([ISO 3166-2]).
6318 //
6319 // Type: string
6320 // RequirementLevel: Recommended
6321 // Stability: Development
6322 //
6323 // Examples: "CA-QC"
6324 //
6325 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
6326 GeoRegionISOCodeKey = attribute.Key("geo.region.iso_code")
6327 )
6328
6329 // GeoCountryISOCode returns an attribute KeyValue conforming to the
6330 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
6331 // Country Code ([ISO 3166-1 alpha2]).
6332 //
6333 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
6334 func GeoCountryISOCode(val string) attribute.KeyValue {
6335 return GeoCountryISOCodeKey.String(val)
6336 }
6337
6338 // GeoLocalityName returns an attribute KeyValue conforming to the
6339 // "geo.locality.name" semantic conventions. It represents the locality name.
6340 // Represents the name of a city, town, village, or similar populated place.
6341 func GeoLocalityName(val string) attribute.KeyValue {
6342 return GeoLocalityNameKey.String(val)
6343 }
6344
6345 // GeoLocationLat returns an attribute KeyValue conforming to the
6346 // "geo.location.lat" semantic conventions. It represents the latitude of the geo
6347 // location in [WGS84].
6348 //
6349 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6350 func GeoLocationLat(val float64) attribute.KeyValue {
6351 return GeoLocationLatKey.Float64(val)
6352 }
6353
6354 // GeoLocationLon returns an attribute KeyValue conforming to the
6355 // "geo.location.lon" semantic conventions. It represents the longitude of the
6356 // geo location in [WGS84].
6357 //
6358 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6359 func GeoLocationLon(val float64) attribute.KeyValue {
6360 return GeoLocationLonKey.Float64(val)
6361 }
6362
6363 // GeoPostalCode returns an attribute KeyValue conforming to the
6364 // "geo.postal_code" semantic conventions. It represents the postal code
6365 // associated with the location. Values appropriate for this field may also be
6366 // known as a postcode or ZIP code and will vary widely from country to country.
6367 func GeoPostalCode(val string) attribute.KeyValue {
6368 return GeoPostalCodeKey.String(val)
6369 }
6370
6371 // GeoRegionISOCode returns an attribute KeyValue conforming to the
6372 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
6373 // ([ISO 3166-2]).
6374 //
6375 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
6376 func GeoRegionISOCode(val string) attribute.KeyValue {
6377 return GeoRegionISOCodeKey.String(val)
6378 }
6379
6380 // Enum values for geo.continent.code
6381 var (
6382 // Africa
6383 // Stability: development
6384 GeoContinentCodeAf = GeoContinentCodeKey.String("AF")
6385 // Antarctica
6386 // Stability: development
6387 GeoContinentCodeAn = GeoContinentCodeKey.String("AN")
6388 // Asia
6389 // Stability: development
6390 GeoContinentCodeAs = GeoContinentCodeKey.String("AS")
6391 // Europe
6392 // Stability: development
6393 GeoContinentCodeEu = GeoContinentCodeKey.String("EU")
6394 // North America
6395 // Stability: development
6396 GeoContinentCodeNa = GeoContinentCodeKey.String("NA")
6397 // Oceania
6398 // Stability: development
6399 GeoContinentCodeOc = GeoContinentCodeKey.String("OC")
6400 // South America
6401 // Stability: development
6402 GeoContinentCodeSa = GeoContinentCodeKey.String("SA")
6403 )
6404
6405 // Namespace: go
6406 const (
6407 // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
6408 // semantic conventions. It represents the type of memory.
6409 //
6410 // Type: Enum
6411 // RequirementLevel: Recommended
6412 // Stability: Development
6413 //
6414 // Examples: "other", "stack"
6415 GoMemoryTypeKey = attribute.Key("go.memory.type")
6416 )
6417
6418 // Enum values for go.memory.type
6419 var (
6420 // Memory allocated from the heap that is reserved for stack space, whether or
6421 // not it is currently in-use.
6422 // Stability: development
6423 GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
6424 // Memory used by the Go runtime, excluding other categories of memory usage
6425 // described in this enumeration.
6426 // Stability: development
6427 GoMemoryTypeOther = GoMemoryTypeKey.String("other")
6428 )
6429
6430 // Namespace: graphql
6431 const (
6432 // GraphQLDocumentKey is the attribute Key conforming to the "graphql.document"
6433 // semantic conventions. It represents the GraphQL document being executed.
6434 //
6435 // Type: string
6436 // RequirementLevel: Recommended
6437 // Stability: Development
6438 //
6439 // Examples: query findBookById { bookById(id: ?) { name } }
6440 // Note: The value may be sanitized to exclude sensitive information.
6441 GraphQLDocumentKey = attribute.Key("graphql.document")
6442
6443 // GraphQLOperationNameKey is the attribute Key conforming to the
6444 // "graphql.operation.name" semantic conventions. It represents the name of the
6445 // operation being executed.
6446 //
6447 // Type: string
6448 // RequirementLevel: Recommended
6449 // Stability: Development
6450 //
6451 // Examples: findBookById
6452 GraphQLOperationNameKey = attribute.Key("graphql.operation.name")
6453
6454 // GraphQLOperationTypeKey is the attribute Key conforming to the
6455 // "graphql.operation.type" semantic conventions. It represents the type of the
6456 // operation being executed.
6457 //
6458 // Type: Enum
6459 // RequirementLevel: Recommended
6460 // Stability: Development
6461 //
6462 // Examples: "query", "mutation", "subscription"
6463 GraphQLOperationTypeKey = attribute.Key("graphql.operation.type")
6464 )
6465
6466 // GraphQLDocument returns an attribute KeyValue conforming to the
6467 // "graphql.document" semantic conventions. It represents the GraphQL document
6468 // being executed.
6469 func GraphQLDocument(val string) attribute.KeyValue {
6470 return GraphQLDocumentKey.String(val)
6471 }
6472
6473 // GraphQLOperationName returns an attribute KeyValue conforming to the
6474 // "graphql.operation.name" semantic conventions. It represents the name of the
6475 // operation being executed.
6476 func GraphQLOperationName(val string) attribute.KeyValue {
6477 return GraphQLOperationNameKey.String(val)
6478 }
6479
6480 // Enum values for graphql.operation.type
6481 var (
6482 // GraphQL query
6483 // Stability: development
6484 GraphQLOperationTypeQuery = GraphQLOperationTypeKey.String("query")
6485 // GraphQL mutation
6486 // Stability: development
6487 GraphQLOperationTypeMutation = GraphQLOperationTypeKey.String("mutation")
6488 // GraphQL subscription
6489 // Stability: development
6490 GraphQLOperationTypeSubscription = GraphQLOperationTypeKey.String("subscription")
6491 )
6492
6493 // Namespace: heroku
6494 const (
6495 // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
6496 // semantic conventions. It represents the unique identifier for the
6497 // application.
6498 //
6499 // Type: string
6500 // RequirementLevel: Recommended
6501 // Stability: Development
6502 //
6503 // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
6504 HerokuAppIDKey = attribute.Key("heroku.app.id")
6505
6506 // HerokuReleaseCommitKey is the attribute Key conforming to the
6507 // "heroku.release.commit" semantic conventions. It represents the commit hash
6508 // for the current release.
6509 //
6510 // Type: string
6511 // RequirementLevel: Recommended
6512 // Stability: Development
6513 //
6514 // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
6515 HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
6516
6517 // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
6518 // "heroku.release.creation_timestamp" semantic conventions. It represents the
6519 // time and date the release was created.
6520 //
6521 // Type: string
6522 // RequirementLevel: Recommended
6523 // Stability: Development
6524 //
6525 // Examples: "2022-10-23T18:00:42Z"
6526 HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
6527 )
6528
6529 // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
6530 // semantic conventions. It represents the unique identifier for the application.
6531 func HerokuAppID(val string) attribute.KeyValue {
6532 return HerokuAppIDKey.String(val)
6533 }
6534
6535 // HerokuReleaseCommit returns an attribute KeyValue conforming to the
6536 // "heroku.release.commit" semantic conventions. It represents the commit hash
6537 // for the current release.
6538 func HerokuReleaseCommit(val string) attribute.KeyValue {
6539 return HerokuReleaseCommitKey.String(val)
6540 }
6541
6542 // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
6543 // "heroku.release.creation_timestamp" semantic conventions. It represents the
6544 // time and date the release was created.
6545 func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
6546 return HerokuReleaseCreationTimestampKey.String(val)
6547 }
6548
6549 // Namespace: host
6550 const (
6551 // HostArchKey is the attribute Key conforming to the "host.arch" semantic
6552 // conventions. It represents the CPU architecture the host system is running
6553 // on.
6554 //
6555 // Type: Enum
6556 // RequirementLevel: Recommended
6557 // Stability: Development
6558 //
6559 // Examples:
6560 HostArchKey = attribute.Key("host.arch")
6561
6562 // HostCPUCacheL2SizeKey is the attribute Key conforming to the
6563 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
6564 // level 2 memory cache available to the processor (in Bytes).
6565 //
6566 // Type: int
6567 // RequirementLevel: Recommended
6568 // Stability: Development
6569 //
6570 // Examples: 12288000
6571 HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
6572
6573 // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
6574 // semantic conventions. It represents the family or generation of the CPU.
6575 //
6576 // Type: string
6577 // RequirementLevel: Recommended
6578 // Stability: Development
6579 //
6580 // Examples: "6", "PA-RISC 1.1e"
6581 HostCPUFamilyKey = attribute.Key("host.cpu.family")
6582
6583 // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
6584 // semantic conventions. It represents the model identifier. It provides more
6585 // granular information about the CPU, distinguishing it from other CPUs within
6586 // the same family.
6587 //
6588 // Type: string
6589 // RequirementLevel: Recommended
6590 // Stability: Development
6591 //
6592 // Examples: "6", "9000/778/B180L"
6593 HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
6594
6595 // HostCPUModelNameKey is the attribute Key conforming to the
6596 // "host.cpu.model.name" semantic conventions. It represents the model
6597 // designation of the processor.
6598 //
6599 // Type: string
6600 // RequirementLevel: Recommended
6601 // Stability: Development
6602 //
6603 // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
6604 HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
6605
6606 // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
6607 // semantic conventions. It represents the stepping or core revisions.
6608 //
6609 // Type: string
6610 // RequirementLevel: Recommended
6611 // Stability: Development
6612 //
6613 // Examples: "1", "r1p1"
6614 HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
6615
6616 // HostCPUVendorIDKey is the attribute Key conforming to the
6617 // "host.cpu.vendor.id" semantic conventions. It represents the processor
6618 // manufacturer identifier. A maximum 12-character string.
6619 //
6620 // Type: string
6621 // RequirementLevel: Recommended
6622 // Stability: Development
6623 //
6624 // Examples: "GenuineIntel"
6625 // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
6626 // registers. Writing these to memory in this order results in a 12-character
6627 // string.
6628 //
6629 // [CPUID]: https://wiki.osdev.org/CPUID
6630 HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
6631
6632 // HostIDKey is the attribute Key conforming to the "host.id" semantic
6633 // conventions. It represents the unique host ID. For Cloud, this must be the
6634 // instance_id assigned by the cloud provider. For non-containerized systems,
6635 // this should be the `machine-id`. See the table below for the sources to use
6636 // to determine the `machine-id` based on operating system.
6637 //
6638 // Type: string
6639 // RequirementLevel: Recommended
6640 // Stability: Development
6641 //
6642 // Examples: "fdbf79e8af94cb7f9e8df36789187052"
6643 HostIDKey = attribute.Key("host.id")
6644
6645 // HostImageIDKey is the attribute Key conforming to the "host.image.id"
6646 // semantic conventions. It represents the VM image ID or host OS image ID. For
6647 // Cloud, this value is from the provider.
6648 //
6649 // Type: string
6650 // RequirementLevel: Recommended
6651 // Stability: Development
6652 //
6653 // Examples: "ami-07b06b442921831e5"
6654 HostImageIDKey = attribute.Key("host.image.id")
6655
6656 // HostImageNameKey is the attribute Key conforming to the "host.image.name"
6657 // semantic conventions. It represents the name of the VM image or OS install
6658 // the host was instantiated from.
6659 //
6660 // Type: string
6661 // RequirementLevel: Recommended
6662 // Stability: Development
6663 //
6664 // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
6665 HostImageNameKey = attribute.Key("host.image.name")
6666
6667 // HostImageVersionKey is the attribute Key conforming to the
6668 // "host.image.version" semantic conventions. It represents the version string
6669 // of the VM image or host OS as defined in [Version Attributes].
6670 //
6671 // Type: string
6672 // RequirementLevel: Recommended
6673 // Stability: Development
6674 //
6675 // Examples: "0.1"
6676 //
6677 // [Version Attributes]: /docs/resource/README.md#version-attributes
6678 HostImageVersionKey = attribute.Key("host.image.version")
6679
6680 // HostIPKey is the attribute Key conforming to the "host.ip" semantic
6681 // conventions. It represents the available IP addresses of the host, excluding
6682 // loopback interfaces.
6683 //
6684 // Type: string[]
6685 // RequirementLevel: Recommended
6686 // Stability: Development
6687 //
6688 // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
6689 // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
6690 // addresses MUST be specified in the [RFC 5952] format.
6691 //
6692 // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
6693 HostIPKey = attribute.Key("host.ip")
6694
6695 // HostMacKey is the attribute Key conforming to the "host.mac" semantic
6696 // conventions. It represents the available MAC addresses of the host, excluding
6697 // loopback interfaces.
6698 //
6699 // Type: string[]
6700 // RequirementLevel: Recommended
6701 // Stability: Development
6702 //
6703 // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
6704 // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
6705 // hyphen-separated octets in uppercase hexadecimal form from most to least
6706 // significant.
6707 //
6708 // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
6709 HostMacKey = attribute.Key("host.mac")
6710
6711 // HostNameKey is the attribute Key conforming to the "host.name" semantic
6712 // conventions. It represents the name of the host. On Unix systems, it may
6713 // contain what the hostname command returns, or the fully qualified hostname,
6714 // or another name specified by the user.
6715 //
6716 // Type: string
6717 // RequirementLevel: Recommended
6718 // Stability: Development
6719 //
6720 // Examples: "opentelemetry-test"
6721 HostNameKey = attribute.Key("host.name")
6722
6723 // HostTypeKey is the attribute Key conforming to the "host.type" semantic
6724 // conventions. It represents the type of host. For Cloud, this must be the
6725 // machine type.
6726 //
6727 // Type: string
6728 // RequirementLevel: Recommended
6729 // Stability: Development
6730 //
6731 // Examples: "n1-standard-1"
6732 HostTypeKey = attribute.Key("host.type")
6733 )
6734
6735 // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
6736 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
6737 // level 2 memory cache available to the processor (in Bytes).
6738 func HostCPUCacheL2Size(val int) attribute.KeyValue {
6739 return HostCPUCacheL2SizeKey.Int(val)
6740 }
6741
6742 // HostCPUFamily returns an attribute KeyValue conforming to the
6743 // "host.cpu.family" semantic conventions. It represents the family or generation
6744 // of the CPU.
6745 func HostCPUFamily(val string) attribute.KeyValue {
6746 return HostCPUFamilyKey.String(val)
6747 }
6748
6749 // HostCPUModelID returns an attribute KeyValue conforming to the
6750 // "host.cpu.model.id" semantic conventions. It represents the model identifier.
6751 // It provides more granular information about the CPU, distinguishing it from
6752 // other CPUs within the same family.
6753 func HostCPUModelID(val string) attribute.KeyValue {
6754 return HostCPUModelIDKey.String(val)
6755 }
6756
6757 // HostCPUModelName returns an attribute KeyValue conforming to the
6758 // "host.cpu.model.name" semantic conventions. It represents the model
6759 // designation of the processor.
6760 func HostCPUModelName(val string) attribute.KeyValue {
6761 return HostCPUModelNameKey.String(val)
6762 }
6763
6764 // HostCPUStepping returns an attribute KeyValue conforming to the
6765 // "host.cpu.stepping" semantic conventions. It represents the stepping or core
6766 // revisions.
6767 func HostCPUStepping(val string) attribute.KeyValue {
6768 return HostCPUSteppingKey.String(val)
6769 }
6770
6771 // HostCPUVendorID returns an attribute KeyValue conforming to the
6772 // "host.cpu.vendor.id" semantic conventions. It represents the processor
6773 // manufacturer identifier. A maximum 12-character string.
6774 func HostCPUVendorID(val string) attribute.KeyValue {
6775 return HostCPUVendorIDKey.String(val)
6776 }
6777
6778 // HostID returns an attribute KeyValue conforming to the "host.id" semantic
6779 // conventions. It represents the unique host ID. For Cloud, this must be the
6780 // instance_id assigned by the cloud provider. For non-containerized systems,
6781 // this should be the `machine-id`. See the table below for the sources to use to
6782 // determine the `machine-id` based on operating system.
6783 func HostID(val string) attribute.KeyValue {
6784 return HostIDKey.String(val)
6785 }
6786
6787 // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
6788 // semantic conventions. It represents the VM image ID or host OS image ID. For
6789 // Cloud, this value is from the provider.
6790 func HostImageID(val string) attribute.KeyValue {
6791 return HostImageIDKey.String(val)
6792 }
6793
6794 // HostImageName returns an attribute KeyValue conforming to the
6795 // "host.image.name" semantic conventions. It represents the name of the VM image
6796 // or OS install the host was instantiated from.
6797 func HostImageName(val string) attribute.KeyValue {
6798 return HostImageNameKey.String(val)
6799 }
6800
6801 // HostImageVersion returns an attribute KeyValue conforming to the
6802 // "host.image.version" semantic conventions. It represents the version string of
6803 // the VM image or host OS as defined in [Version Attributes].
6804 //
6805 // [Version Attributes]: /docs/resource/README.md#version-attributes
6806 func HostImageVersion(val string) attribute.KeyValue {
6807 return HostImageVersionKey.String(val)
6808 }
6809
6810 // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
6811 // conventions. It represents the available IP addresses of the host, excluding
6812 // loopback interfaces.
6813 func HostIP(val ...string) attribute.KeyValue {
6814 return HostIPKey.StringSlice(val)
6815 }
6816
6817 // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
6818 // conventions. It represents the available MAC addresses of the host, excluding
6819 // loopback interfaces.
6820 func HostMac(val ...string) attribute.KeyValue {
6821 return HostMacKey.StringSlice(val)
6822 }
6823
6824 // HostName returns an attribute KeyValue conforming to the "host.name" semantic
6825 // conventions. It represents the name of the host. On Unix systems, it may
6826 // contain what the hostname command returns, or the fully qualified hostname, or
6827 // another name specified by the user.
6828 func HostName(val string) attribute.KeyValue {
6829 return HostNameKey.String(val)
6830 }
6831
6832 // HostType returns an attribute KeyValue conforming to the "host.type" semantic
6833 // conventions. It represents the type of host. For Cloud, this must be the
6834 // machine type.
6835 func HostType(val string) attribute.KeyValue {
6836 return HostTypeKey.String(val)
6837 }
6838
6839 // Enum values for host.arch
6840 var (
6841 // AMD64
6842 // Stability: development
6843 HostArchAMD64 = HostArchKey.String("amd64")
6844 // ARM32
6845 // Stability: development
6846 HostArchARM32 = HostArchKey.String("arm32")
6847 // ARM64
6848 // Stability: development
6849 HostArchARM64 = HostArchKey.String("arm64")
6850 // Itanium
6851 // Stability: development
6852 HostArchIA64 = HostArchKey.String("ia64")
6853 // 32-bit PowerPC
6854 // Stability: development
6855 HostArchPPC32 = HostArchKey.String("ppc32")
6856 // 64-bit PowerPC
6857 // Stability: development
6858 HostArchPPC64 = HostArchKey.String("ppc64")
6859 // IBM z/Architecture
6860 // Stability: development
6861 HostArchS390x = HostArchKey.String("s390x")
6862 // 32-bit x86
6863 // Stability: development
6864 HostArchX86 = HostArchKey.String("x86")
6865 )
6866
6867 // Namespace: http
6868 const (
6869 // HTTPConnectionStateKey is the attribute Key conforming to the
6870 // "http.connection.state" semantic conventions. It represents the state of the
6871 // HTTP connection in the HTTP connection pool.
6872 //
6873 // Type: Enum
6874 // RequirementLevel: Recommended
6875 // Stability: Development
6876 //
6877 // Examples: "active", "idle"
6878 HTTPConnectionStateKey = attribute.Key("http.connection.state")
6879
6880 // HTTPRequestBodySizeKey is the attribute Key conforming to the
6881 // "http.request.body.size" semantic conventions. It represents the size of the
6882 // request payload body in bytes. This is the number of bytes transferred
6883 // excluding headers and is often, but not always, present as the
6884 // [Content-Length] header. For requests using transport encoding, this should
6885 // be the compressed size.
6886 //
6887 // Type: int
6888 // RequirementLevel: Recommended
6889 // Stability: Development
6890 //
6891 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6892 HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
6893
6894 // HTTPRequestMethodKey is the attribute Key conforming to the
6895 // "http.request.method" semantic conventions. It represents the HTTP request
6896 // method.
6897 //
6898 // Type: Enum
6899 // RequirementLevel: Recommended
6900 // Stability: Stable
6901 //
6902 // Examples: "GET", "POST", "HEAD"
6903 // Note: HTTP request method value SHOULD be "known" to the instrumentation.
6904 // By default, this convention defines "known" methods as the ones listed in
6905 // [RFC9110]
6906 // and the PATCH method defined in [RFC5789].
6907 //
6908 // If the HTTP request method is not known to instrumentation, it MUST set the
6909 // `http.request.method` attribute to `_OTHER`.
6910 //
6911 // If the HTTP instrumentation could end up converting valid HTTP request
6912 // methods to `_OTHER`, then it MUST provide a way to override
6913 // the list of known HTTP methods. If this override is done via environment
6914 // variable, then the environment variable MUST be named
6915 // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
6916 // case-sensitive known HTTP methods
6917 // (this list MUST be a full override of the default known method, it is not a
6918 // list of known methods in addition to the defaults).
6919 //
6920 // HTTP method names are case-sensitive and `http.request.method` attribute
6921 // value MUST match a known HTTP method name exactly.
6922 // Instrumentations for specific web frameworks that consider HTTP methods to be
6923 // case insensitive, SHOULD populate a canonical equivalent.
6924 // Tracing instrumentations that do so, MUST also set
6925 // `http.request.method_original` to the original value.
6926 //
6927 // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
6928 // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
6929 HTTPRequestMethodKey = attribute.Key("http.request.method")
6930
6931 // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
6932 // "http.request.method_original" semantic conventions. It represents the
6933 // original HTTP method sent by the client in the request line.
6934 //
6935 // Type: string
6936 // RequirementLevel: Recommended
6937 // Stability: Stable
6938 //
6939 // Examples: "GeT", "ACL", "foo"
6940 HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
6941
6942 // HTTPRequestResendCountKey is the attribute Key conforming to the
6943 // "http.request.resend_count" semantic conventions. It represents the ordinal
6944 // number of request resending attempt (for any reason, including redirects).
6945 //
6946 // Type: int
6947 // RequirementLevel: Recommended
6948 // Stability: Stable
6949 //
6950 // Note: The resend count SHOULD be updated each time an HTTP request gets
6951 // resent by the client, regardless of what was the cause of the resending (e.g.
6952 // redirection, authorization failure, 503 Server Unavailable, network issues,
6953 // or any other).
6954 HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
6955
6956 // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
6957 // semantic conventions. It represents the total size of the request in bytes.
6958 // This should be the total number of bytes sent over the wire, including the
6959 // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
6960 // body if any.
6961 //
6962 // Type: int
6963 // RequirementLevel: Recommended
6964 // Stability: Development
6965 HTTPRequestSizeKey = attribute.Key("http.request.size")
6966
6967 // HTTPResponseBodySizeKey is the attribute Key conforming to the
6968 // "http.response.body.size" semantic conventions. It represents the size of the
6969 // response payload body in bytes. This is the number of bytes transferred
6970 // excluding headers and is often, but not always, present as the
6971 // [Content-Length] header. For requests using transport encoding, this should
6972 // be the compressed size.
6973 //
6974 // Type: int
6975 // RequirementLevel: Recommended
6976 // Stability: Development
6977 //
6978 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
6979 HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
6980
6981 // HTTPResponseSizeKey is the attribute Key conforming to the
6982 // "http.response.size" semantic conventions. It represents the total size of
6983 // the response in bytes. This should be the total number of bytes sent over the
6984 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
6985 // headers, and response body and trailers if any.
6986 //
6987 // Type: int
6988 // RequirementLevel: Recommended
6989 // Stability: Development
6990 HTTPResponseSizeKey = attribute.Key("http.response.size")
6991
6992 // HTTPResponseStatusCodeKey is the attribute Key conforming to the
6993 // "http.response.status_code" semantic conventions. It represents the
6994 // [HTTP response status code].
6995 //
6996 // Type: int
6997 // RequirementLevel: Recommended
6998 // Stability: Stable
6999 //
7000 // Examples: 200
7001 //
7002 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
7003 HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
7004
7005 // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
7006 // conventions. It represents the matched route, that is, the path template in
7007 // the format used by the respective server framework.
7008 //
7009 // Type: string
7010 // RequirementLevel: Recommended
7011 // Stability: Stable
7012 //
7013 // Examples: "/users/:userID?", "{controller}/{action}/{id?}"
7014 // Note: MUST NOT be populated when this is not supported by the HTTP server
7015 // framework as the route attribute should have low-cardinality and the URI path
7016 // can NOT substitute it.
7017 // SHOULD include the [application root] if there is one.
7018 //
7019 // [application root]: /docs/http/http-spans.md#http-server-definitions
7020 HTTPRouteKey = attribute.Key("http.route")
7021 )
7022
7023 // HTTPRequestBodySize returns an attribute KeyValue conforming to the
7024 // "http.request.body.size" semantic conventions. It represents the size of the
7025 // request payload body in bytes. This is the number of bytes transferred
7026 // excluding headers and is often, but not always, present as the
7027 // [Content-Length] header. For requests using transport encoding, this should be
7028 // the compressed size.
7029 //
7030 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7031 func HTTPRequestBodySize(val int) attribute.KeyValue {
7032 return HTTPRequestBodySizeKey.Int(val)
7033 }
7034
7035 // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
7036 // "http.request.method_original" semantic conventions. It represents the
7037 // original HTTP method sent by the client in the request line.
7038 func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
7039 return HTTPRequestMethodOriginalKey.String(val)
7040 }
7041
7042 // HTTPRequestResendCount returns an attribute KeyValue conforming to the
7043 // "http.request.resend_count" semantic conventions. It represents the ordinal
7044 // number of request resending attempt (for any reason, including redirects).
7045 func HTTPRequestResendCount(val int) attribute.KeyValue {
7046 return HTTPRequestResendCountKey.Int(val)
7047 }
7048
7049 // HTTPRequestSize returns an attribute KeyValue conforming to the
7050 // "http.request.size" semantic conventions. It represents the total size of the
7051 // request in bytes. This should be the total number of bytes sent over the wire,
7052 // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
7053 // and request body if any.
7054 func HTTPRequestSize(val int) attribute.KeyValue {
7055 return HTTPRequestSizeKey.Int(val)
7056 }
7057
7058 // HTTPResponseBodySize returns an attribute KeyValue conforming to the
7059 // "http.response.body.size" semantic conventions. It represents the size of the
7060 // response payload body in bytes. This is the number of bytes transferred
7061 // excluding headers and is often, but not always, present as the
7062 // [Content-Length] header. For requests using transport encoding, this should be
7063 // the compressed size.
7064 //
7065 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7066 func HTTPResponseBodySize(val int) attribute.KeyValue {
7067 return HTTPResponseBodySizeKey.Int(val)
7068 }
7069
7070 // HTTPResponseSize returns an attribute KeyValue conforming to the
7071 // "http.response.size" semantic conventions. It represents the total size of the
7072 // response in bytes. This should be the total number of bytes sent over the
7073 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
7074 // headers, and response body and trailers if any.
7075 func HTTPResponseSize(val int) attribute.KeyValue {
7076 return HTTPResponseSizeKey.Int(val)
7077 }
7078
7079 // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
7080 // "http.response.status_code" semantic conventions. It represents the
7081 // [HTTP response status code].
7082 //
7083 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
7084 func HTTPResponseStatusCode(val int) attribute.KeyValue {
7085 return HTTPResponseStatusCodeKey.Int(val)
7086 }
7087
7088 // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
7089 // semantic conventions. It represents the matched route, that is, the path
7090 // template in the format used by the respective server framework.
7091 func HTTPRoute(val string) attribute.KeyValue {
7092 return HTTPRouteKey.String(val)
7093 }
7094
7095 // Enum values for http.connection.state
7096 var (
7097 // active state.
7098 // Stability: development
7099 HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
7100 // idle state.
7101 // Stability: development
7102 HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
7103 )
7104
7105 // Enum values for http.request.method
7106 var (
7107 // CONNECT method.
7108 // Stability: stable
7109 HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
7110 // DELETE method.
7111 // Stability: stable
7112 HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
7113 // GET method.
7114 // Stability: stable
7115 HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
7116 // HEAD method.
7117 // Stability: stable
7118 HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
7119 // OPTIONS method.
7120 // Stability: stable
7121 HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
7122 // PATCH method.
7123 // Stability: stable
7124 HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
7125 // POST method.
7126 // Stability: stable
7127 HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
7128 // PUT method.
7129 // Stability: stable
7130 HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
7131 // TRACE method.
7132 // Stability: stable
7133 HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
7134 // Any HTTP method that the instrumentation has no prior knowledge of.
7135 // Stability: stable
7136 HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
7137 )
7138
7139 // Namespace: hw
7140 const (
7141 // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
7142 // It represents an identifier for the hardware component, unique within the
7143 // monitored host.
7144 //
7145 // Type: string
7146 // RequirementLevel: Recommended
7147 // Stability: Development
7148 //
7149 // Examples: "win32battery_battery_testsysa33_1"
7150 HwIDKey = attribute.Key("hw.id")
7151
7152 // HwNameKey is the attribute Key conforming to the "hw.name" semantic
7153 // conventions. It represents an easily-recognizable name for the hardware
7154 // component.
7155 //
7156 // Type: string
7157 // RequirementLevel: Recommended
7158 // Stability: Development
7159 //
7160 // Examples: "eth0"
7161 HwNameKey = attribute.Key("hw.name")
7162
7163 // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
7164 // conventions. It represents the unique identifier of the parent component
7165 // (typically the `hw.id` attribute of the enclosure, or disk controller).
7166 //
7167 // Type: string
7168 // RequirementLevel: Recommended
7169 // Stability: Development
7170 //
7171 // Examples: "dellStorage_perc_0"
7172 HwParentKey = attribute.Key("hw.parent")
7173
7174 // HwStateKey is the attribute Key conforming to the "hw.state" semantic
7175 // conventions. It represents the current state of the component.
7176 //
7177 // Type: Enum
7178 // RequirementLevel: Recommended
7179 // Stability: Development
7180 //
7181 // Examples:
7182 HwStateKey = attribute.Key("hw.state")
7183
7184 // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
7185 // conventions. It represents the type of the component.
7186 //
7187 // Type: Enum
7188 // RequirementLevel: Recommended
7189 // Stability: Development
7190 //
7191 // Examples:
7192 // Note: Describes the category of the hardware component for which `hw.state`
7193 // is being reported. For example, `hw.type=temperature` along with
7194 // `hw.state=degraded` would indicate that the temperature of the hardware
7195 // component has been reported as `degraded`.
7196 HwTypeKey = attribute.Key("hw.type")
7197 )
7198
7199 // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
7200 // conventions. It represents an identifier for the hardware component, unique
7201 // within the monitored host.
7202 func HwID(val string) attribute.KeyValue {
7203 return HwIDKey.String(val)
7204 }
7205
7206 // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
7207 // conventions. It represents an easily-recognizable name for the hardware
7208 // component.
7209 func HwName(val string) attribute.KeyValue {
7210 return HwNameKey.String(val)
7211 }
7212
7213 // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
7214 // conventions. It represents the unique identifier of the parent component
7215 // (typically the `hw.id` attribute of the enclosure, or disk controller).
7216 func HwParent(val string) attribute.KeyValue {
7217 return HwParentKey.String(val)
7218 }
7219
7220 // Enum values for hw.state
7221 var (
7222 // Ok
7223 // Stability: development
7224 HwStateOk = HwStateKey.String("ok")
7225 // Degraded
7226 // Stability: development
7227 HwStateDegraded = HwStateKey.String("degraded")
7228 // Failed
7229 // Stability: development
7230 HwStateFailed = HwStateKey.String("failed")
7231 )
7232
7233 // Enum values for hw.type
7234 var (
7235 // Battery
7236 // Stability: development
7237 HwTypeBattery = HwTypeKey.String("battery")
7238 // CPU
7239 // Stability: development
7240 HwTypeCPU = HwTypeKey.String("cpu")
7241 // Disk controller
7242 // Stability: development
7243 HwTypeDiskController = HwTypeKey.String("disk_controller")
7244 // Enclosure
7245 // Stability: development
7246 HwTypeEnclosure = HwTypeKey.String("enclosure")
7247 // Fan
7248 // Stability: development
7249 HwTypeFan = HwTypeKey.String("fan")
7250 // GPU
7251 // Stability: development
7252 HwTypeGpu = HwTypeKey.String("gpu")
7253 // Logical disk
7254 // Stability: development
7255 HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
7256 // Memory
7257 // Stability: development
7258 HwTypeMemory = HwTypeKey.String("memory")
7259 // Network
7260 // Stability: development
7261 HwTypeNetwork = HwTypeKey.String("network")
7262 // Physical disk
7263 // Stability: development
7264 HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
7265 // Power supply
7266 // Stability: development
7267 HwTypePowerSupply = HwTypeKey.String("power_supply")
7268 // Tape drive
7269 // Stability: development
7270 HwTypeTapeDrive = HwTypeKey.String("tape_drive")
7271 // Temperature
7272 // Stability: development
7273 HwTypeTemperature = HwTypeKey.String("temperature")
7274 // Voltage
7275 // Stability: development
7276 HwTypeVoltage = HwTypeKey.String("voltage")
7277 )
7278
7279 // Namespace: ios
7280 const (
7281 // IOSAppStateKey is the attribute Key conforming to the "ios.app.state"
7282 // semantic conventions. It represents the this attribute represents the state
7283 // of the application.
7284 //
7285 // Type: Enum
7286 // RequirementLevel: Recommended
7287 // Stability: Development
7288 //
7289 // Examples:
7290 // Note: The iOS lifecycle states are defined in the
7291 // [UIApplicationDelegate documentation], and from which the `OS terminology`
7292 // column values are derived.
7293 //
7294 // [UIApplicationDelegate documentation]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate
7295 IOSAppStateKey = attribute.Key("ios.app.state")
7296 )
7297
7298 // Enum values for ios.app.state
7299 var (
7300 // The app has become `active`. Associated with UIKit notification
7301 // `applicationDidBecomeActive`.
7302 //
7303 // Stability: development
7304 IOSAppStateActive = IOSAppStateKey.String("active")
7305 // The app is now `inactive`. Associated with UIKit notification
7306 // `applicationWillResignActive`.
7307 //
7308 // Stability: development
7309 IOSAppStateInactive = IOSAppStateKey.String("inactive")
7310 // The app is now in the background. This value is associated with UIKit
7311 // notification `applicationDidEnterBackground`.
7312 //
7313 // Stability: development
7314 IOSAppStateBackground = IOSAppStateKey.String("background")
7315 // The app is now in the foreground. This value is associated with UIKit
7316 // notification `applicationWillEnterForeground`.
7317 //
7318 // Stability: development
7319 IOSAppStateForeground = IOSAppStateKey.String("foreground")
7320 // The app is about to terminate. Associated with UIKit notification
7321 // `applicationWillTerminate`.
7322 //
7323 // Stability: development
7324 IOSAppStateTerminate = IOSAppStateKey.String("terminate")
7325 )
7326
7327 // Namespace: k8s
7328 const (
7329 // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
7330 // semantic conventions. It represents the name of the cluster.
7331 //
7332 // Type: string
7333 // RequirementLevel: Recommended
7334 // Stability: Development
7335 //
7336 // Examples: "opentelemetry-cluster"
7337 K8SClusterNameKey = attribute.Key("k8s.cluster.name")
7338
7339 // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
7340 // semantic conventions. It represents a pseudo-ID for the cluster, set to the
7341 // UID of the `kube-system` namespace.
7342 //
7343 // Type: string
7344 // RequirementLevel: Recommended
7345 // Stability: Development
7346 //
7347 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
7348 // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
7349 // added, we will recommend collecting the `k8s.cluster.uid` through the
7350 // official APIs. In the meantime, we are able to use the `uid` of the
7351 // `kube-system` namespace as a proxy for cluster ID. Read on for the
7352 // rationale.
7353 //
7354 // Every object created in a K8s cluster is assigned a distinct UID. The
7355 // `kube-system` namespace is used by Kubernetes itself and will exist
7356 // for the lifetime of the cluster. Using the `uid` of the `kube-system`
7357 // namespace is a reasonable proxy for the K8s ClusterID as it will only
7358 // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
7359 // UUIDs as standardized by
7360 // [ISO/IEC 9834-8 and ITU-T X.667].
7361 // Which states:
7362 //
7363 // > If generated according to one of the mechanisms defined in Rec.
7364 // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
7365 // > different from all other UUIDs generated before 3603 A.D., or is
7366 // > extremely likely to be different (depending on the mechanism chosen).
7367 //
7368 // Therefore, UIDs between clusters should be extremely unlikely to
7369 // conflict.
7370 //
7371 // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
7372 K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
7373
7374 // K8SContainerNameKey is the attribute Key conforming to the
7375 // "k8s.container.name" semantic conventions. It represents the name of the
7376 // Container from Pod specification, must be unique within a Pod. Container
7377 // runtime usually uses different globally unique name (`container.name`).
7378 //
7379 // Type: string
7380 // RequirementLevel: Recommended
7381 // Stability: Development
7382 //
7383 // Examples: "redis"
7384 K8SContainerNameKey = attribute.Key("k8s.container.name")
7385
7386 // K8SContainerRestartCountKey is the attribute Key conforming to the
7387 // "k8s.container.restart_count" semantic conventions. It represents the number
7388 // of times the container was restarted. This attribute can be used to identify
7389 // a particular container (running or stopped) within a container spec.
7390 //
7391 // Type: int
7392 // RequirementLevel: Recommended
7393 // Stability: Development
7394 //
7395 // Examples:
7396 K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
7397
7398 // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
7399 // the "k8s.container.status.last_terminated_reason" semantic conventions. It
7400 // represents the last terminated reason of the Container.
7401 //
7402 // Type: string
7403 // RequirementLevel: Recommended
7404 // Stability: Development
7405 //
7406 // Examples: "Evicted", "Error"
7407 K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
7408
7409 // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
7410 // semantic conventions. It represents the name of the CronJob.
7411 //
7412 // Type: string
7413 // RequirementLevel: Recommended
7414 // Stability: Development
7415 //
7416 // Examples: "opentelemetry"
7417 K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
7418
7419 // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
7420 // semantic conventions. It represents the UID of the CronJob.
7421 //
7422 // Type: string
7423 // RequirementLevel: Recommended
7424 // Stability: Development
7425 //
7426 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7427 K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
7428
7429 // K8SDaemonSetNameKey is the attribute Key conforming to the
7430 // "k8s.daemonset.name" semantic conventions. It represents the name of the
7431 // DaemonSet.
7432 //
7433 // Type: string
7434 // RequirementLevel: Recommended
7435 // Stability: Development
7436 //
7437 // Examples: "opentelemetry"
7438 K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
7439
7440 // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
7441 // semantic conventions. It represents the UID of the DaemonSet.
7442 //
7443 // Type: string
7444 // RequirementLevel: Recommended
7445 // Stability: Development
7446 //
7447 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7448 K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
7449
7450 // K8SDeploymentNameKey is the attribute Key conforming to the
7451 // "k8s.deployment.name" semantic conventions. It represents the name of the
7452 // Deployment.
7453 //
7454 // Type: string
7455 // RequirementLevel: Recommended
7456 // Stability: Development
7457 //
7458 // Examples: "opentelemetry"
7459 K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
7460
7461 // K8SDeploymentUIDKey is the attribute Key conforming to the
7462 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
7463 // Deployment.
7464 //
7465 // Type: string
7466 // RequirementLevel: Recommended
7467 // Stability: Development
7468 //
7469 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7470 K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
7471
7472 // K8SHPANameKey is the attribute Key conforming to the "k8s.hpa.name" semantic
7473 // conventions. It represents the name of the horizontal pod autoscaler.
7474 //
7475 // Type: string
7476 // RequirementLevel: Recommended
7477 // Stability: Development
7478 //
7479 // Examples: "opentelemetry"
7480 K8SHPANameKey = attribute.Key("k8s.hpa.name")
7481
7482 // K8SHPAUIDKey is the attribute Key conforming to the "k8s.hpa.uid" semantic
7483 // conventions. It represents the UID of the horizontal pod autoscaler.
7484 //
7485 // Type: string
7486 // RequirementLevel: Recommended
7487 // Stability: Development
7488 //
7489 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7490 K8SHPAUIDKey = attribute.Key("k8s.hpa.uid")
7491
7492 // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
7493 // conventions. It represents the name of the Job.
7494 //
7495 // Type: string
7496 // RequirementLevel: Recommended
7497 // Stability: Development
7498 //
7499 // Examples: "opentelemetry"
7500 K8SJobNameKey = attribute.Key("k8s.job.name")
7501
7502 // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
7503 // conventions. It represents the UID of the Job.
7504 //
7505 // Type: string
7506 // RequirementLevel: Recommended
7507 // Stability: Development
7508 //
7509 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7510 K8SJobUIDKey = attribute.Key("k8s.job.uid")
7511
7512 // K8SNamespaceNameKey is the attribute Key conforming to the
7513 // "k8s.namespace.name" semantic conventions. It represents the name of the
7514 // namespace that the pod is running in.
7515 //
7516 // Type: string
7517 // RequirementLevel: Recommended
7518 // Stability: Development
7519 //
7520 // Examples: "default"
7521 K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
7522
7523 // K8SNamespacePhaseKey is the attribute Key conforming to the
7524 // "k8s.namespace.phase" semantic conventions. It represents the phase of the
7525 // K8s namespace.
7526 //
7527 // Type: Enum
7528 // RequirementLevel: Recommended
7529 // Stability: Development
7530 //
7531 // Examples: "active", "terminating"
7532 // Note: This attribute aligns with the `phase` field of the
7533 // [K8s NamespaceStatus]
7534 //
7535 // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core
7536 K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase")
7537
7538 // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
7539 // semantic conventions. It represents the name of the Node.
7540 //
7541 // Type: string
7542 // RequirementLevel: Recommended
7543 // Stability: Development
7544 //
7545 // Examples: "node-1"
7546 K8SNodeNameKey = attribute.Key("k8s.node.name")
7547
7548 // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
7549 // conventions. It represents the UID of the Node.
7550 //
7551 // Type: string
7552 // RequirementLevel: Recommended
7553 // Stability: Development
7554 //
7555 // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
7556 K8SNodeUIDKey = attribute.Key("k8s.node.uid")
7557
7558 // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
7559 // conventions. It represents the name of the Pod.
7560 //
7561 // Type: string
7562 // RequirementLevel: Recommended
7563 // Stability: Development
7564 //
7565 // Examples: "opentelemetry-pod-autoconf"
7566 K8SPodNameKey = attribute.Key("k8s.pod.name")
7567
7568 // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
7569 // conventions. It represents the UID of the Pod.
7570 //
7571 // Type: string
7572 // RequirementLevel: Recommended
7573 // Stability: Development
7574 //
7575 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7576 K8SPodUIDKey = attribute.Key("k8s.pod.uid")
7577
7578 // K8SReplicaSetNameKey is the attribute Key conforming to the
7579 // "k8s.replicaset.name" semantic conventions. It represents the name of the
7580 // ReplicaSet.
7581 //
7582 // Type: string
7583 // RequirementLevel: Recommended
7584 // Stability: Development
7585 //
7586 // Examples: "opentelemetry"
7587 K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
7588
7589 // K8SReplicaSetUIDKey is the attribute Key conforming to the
7590 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
7591 // ReplicaSet.
7592 //
7593 // Type: string
7594 // RequirementLevel: Recommended
7595 // Stability: Development
7596 //
7597 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7598 K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
7599
7600 // K8SReplicationControllerNameKey is the attribute Key conforming to the
7601 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
7602 // of the replication controller.
7603 //
7604 // Type: string
7605 // RequirementLevel: Recommended
7606 // Stability: Development
7607 //
7608 // Examples: "opentelemetry"
7609 K8SReplicationControllerNameKey = attribute.Key("k8s.replicationcontroller.name")
7610
7611 // K8SReplicationControllerUIDKey is the attribute Key conforming to the
7612 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID
7613 // of the replication controller.
7614 //
7615 // Type: string
7616 // RequirementLevel: Recommended
7617 // Stability: Development
7618 //
7619 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7620 K8SReplicationControllerUIDKey = attribute.Key("k8s.replicationcontroller.uid")
7621
7622 // K8SResourceQuotaNameKey is the attribute Key conforming to the
7623 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
7624 // resource quota.
7625 //
7626 // Type: string
7627 // RequirementLevel: Recommended
7628 // Stability: Development
7629 //
7630 // Examples: "opentelemetry"
7631 K8SResourceQuotaNameKey = attribute.Key("k8s.resourcequota.name")
7632
7633 // K8SResourceQuotaUIDKey is the attribute Key conforming to the
7634 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
7635 // resource quota.
7636 //
7637 // Type: string
7638 // RequirementLevel: Recommended
7639 // Stability: Development
7640 //
7641 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7642 K8SResourceQuotaUIDKey = attribute.Key("k8s.resourcequota.uid")
7643
7644 // K8SStatefulSetNameKey is the attribute Key conforming to the
7645 // "k8s.statefulset.name" semantic conventions. It represents the name of the
7646 // StatefulSet.
7647 //
7648 // Type: string
7649 // RequirementLevel: Recommended
7650 // Stability: Development
7651 //
7652 // Examples: "opentelemetry"
7653 K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
7654
7655 // K8SStatefulSetUIDKey is the attribute Key conforming to the
7656 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
7657 // StatefulSet.
7658 //
7659 // Type: string
7660 // RequirementLevel: Recommended
7661 // Stability: Development
7662 //
7663 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7664 K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
7665
7666 // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
7667 // semantic conventions. It represents the name of the K8s volume.
7668 //
7669 // Type: string
7670 // RequirementLevel: Recommended
7671 // Stability: Development
7672 //
7673 // Examples: "volume0"
7674 K8SVolumeNameKey = attribute.Key("k8s.volume.name")
7675
7676 // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
7677 // semantic conventions. It represents the type of the K8s volume.
7678 //
7679 // Type: Enum
7680 // RequirementLevel: Recommended
7681 // Stability: Development
7682 //
7683 // Examples: "emptyDir", "persistentVolumeClaim"
7684 K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
7685 )
7686
7687 // K8SClusterName returns an attribute KeyValue conforming to the
7688 // "k8s.cluster.name" semantic conventions. It represents the name of the
7689 // cluster.
7690 func K8SClusterName(val string) attribute.KeyValue {
7691 return K8SClusterNameKey.String(val)
7692 }
7693
7694 // K8SClusterUID returns an attribute KeyValue conforming to the
7695 // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
7696 // cluster, set to the UID of the `kube-system` namespace.
7697 func K8SClusterUID(val string) attribute.KeyValue {
7698 return K8SClusterUIDKey.String(val)
7699 }
7700
7701 // K8SContainerName returns an attribute KeyValue conforming to the
7702 // "k8s.container.name" semantic conventions. It represents the name of the
7703 // Container from Pod specification, must be unique within a Pod. Container
7704 // runtime usually uses different globally unique name (`container.name`).
7705 func K8SContainerName(val string) attribute.KeyValue {
7706 return K8SContainerNameKey.String(val)
7707 }
7708
7709 // K8SContainerRestartCount returns an attribute KeyValue conforming to the
7710 // "k8s.container.restart_count" semantic conventions. It represents the number
7711 // of times the container was restarted. This attribute can be used to identify a
7712 // particular container (running or stopped) within a container spec.
7713 func K8SContainerRestartCount(val int) attribute.KeyValue {
7714 return K8SContainerRestartCountKey.Int(val)
7715 }
7716
7717 // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
7718 // conforming to the "k8s.container.status.last_terminated_reason" semantic
7719 // conventions. It represents the last terminated reason of the Container.
7720 func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
7721 return K8SContainerStatusLastTerminatedReasonKey.String(val)
7722 }
7723
7724 // K8SCronJobName returns an attribute KeyValue conforming to the
7725 // "k8s.cronjob.name" semantic conventions. It represents the name of the
7726 // CronJob.
7727 func K8SCronJobName(val string) attribute.KeyValue {
7728 return K8SCronJobNameKey.String(val)
7729 }
7730
7731 // K8SCronJobUID returns an attribute KeyValue conforming to the
7732 // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
7733 func K8SCronJobUID(val string) attribute.KeyValue {
7734 return K8SCronJobUIDKey.String(val)
7735 }
7736
7737 // K8SDaemonSetName returns an attribute KeyValue conforming to the
7738 // "k8s.daemonset.name" semantic conventions. It represents the name of the
7739 // DaemonSet.
7740 func K8SDaemonSetName(val string) attribute.KeyValue {
7741 return K8SDaemonSetNameKey.String(val)
7742 }
7743
7744 // K8SDaemonSetUID returns an attribute KeyValue conforming to the
7745 // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
7746 // DaemonSet.
7747 func K8SDaemonSetUID(val string) attribute.KeyValue {
7748 return K8SDaemonSetUIDKey.String(val)
7749 }
7750
7751 // K8SDeploymentName returns an attribute KeyValue conforming to the
7752 // "k8s.deployment.name" semantic conventions. It represents the name of the
7753 // Deployment.
7754 func K8SDeploymentName(val string) attribute.KeyValue {
7755 return K8SDeploymentNameKey.String(val)
7756 }
7757
7758 // K8SDeploymentUID returns an attribute KeyValue conforming to the
7759 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
7760 // Deployment.
7761 func K8SDeploymentUID(val string) attribute.KeyValue {
7762 return K8SDeploymentUIDKey.String(val)
7763 }
7764
7765 // K8SHPAName returns an attribute KeyValue conforming to the "k8s.hpa.name"
7766 // semantic conventions. It represents the name of the horizontal pod autoscaler.
7767 func K8SHPAName(val string) attribute.KeyValue {
7768 return K8SHPANameKey.String(val)
7769 }
7770
7771 // K8SHPAUID returns an attribute KeyValue conforming to the "k8s.hpa.uid"
7772 // semantic conventions. It represents the UID of the horizontal pod autoscaler.
7773 func K8SHPAUID(val string) attribute.KeyValue {
7774 return K8SHPAUIDKey.String(val)
7775 }
7776
7777 // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
7778 // semantic conventions. It represents the name of the Job.
7779 func K8SJobName(val string) attribute.KeyValue {
7780 return K8SJobNameKey.String(val)
7781 }
7782
7783 // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
7784 // semantic conventions. It represents the UID of the Job.
7785 func K8SJobUID(val string) attribute.KeyValue {
7786 return K8SJobUIDKey.String(val)
7787 }
7788
7789 // K8SNamespaceName returns an attribute KeyValue conforming to the
7790 // "k8s.namespace.name" semantic conventions. It represents the name of the
7791 // namespace that the pod is running in.
7792 func K8SNamespaceName(val string) attribute.KeyValue {
7793 return K8SNamespaceNameKey.String(val)
7794 }
7795
7796 // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
7797 // semantic conventions. It represents the name of the Node.
7798 func K8SNodeName(val string) attribute.KeyValue {
7799 return K8SNodeNameKey.String(val)
7800 }
7801
7802 // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
7803 // semantic conventions. It represents the UID of the Node.
7804 func K8SNodeUID(val string) attribute.KeyValue {
7805 return K8SNodeUIDKey.String(val)
7806 }
7807
7808 // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
7809 // semantic conventions. It represents the name of the Pod.
7810 func K8SPodName(val string) attribute.KeyValue {
7811 return K8SPodNameKey.String(val)
7812 }
7813
7814 // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
7815 // semantic conventions. It represents the UID of the Pod.
7816 func K8SPodUID(val string) attribute.KeyValue {
7817 return K8SPodUIDKey.String(val)
7818 }
7819
7820 // K8SReplicaSetName returns an attribute KeyValue conforming to the
7821 // "k8s.replicaset.name" semantic conventions. It represents the name of the
7822 // ReplicaSet.
7823 func K8SReplicaSetName(val string) attribute.KeyValue {
7824 return K8SReplicaSetNameKey.String(val)
7825 }
7826
7827 // K8SReplicaSetUID returns an attribute KeyValue conforming to the
7828 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
7829 // ReplicaSet.
7830 func K8SReplicaSetUID(val string) attribute.KeyValue {
7831 return K8SReplicaSetUIDKey.String(val)
7832 }
7833
7834 // K8SReplicationControllerName returns an attribute KeyValue conforming to the
7835 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
7836 // of the replication controller.
7837 func K8SReplicationControllerName(val string) attribute.KeyValue {
7838 return K8SReplicationControllerNameKey.String(val)
7839 }
7840
7841 // K8SReplicationControllerUID returns an attribute KeyValue conforming to the
7842 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID of
7843 // the replication controller.
7844 func K8SReplicationControllerUID(val string) attribute.KeyValue {
7845 return K8SReplicationControllerUIDKey.String(val)
7846 }
7847
7848 // K8SResourceQuotaName returns an attribute KeyValue conforming to the
7849 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
7850 // resource quota.
7851 func K8SResourceQuotaName(val string) attribute.KeyValue {
7852 return K8SResourceQuotaNameKey.String(val)
7853 }
7854
7855 // K8SResourceQuotaUID returns an attribute KeyValue conforming to the
7856 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
7857 // resource quota.
7858 func K8SResourceQuotaUID(val string) attribute.KeyValue {
7859 return K8SResourceQuotaUIDKey.String(val)
7860 }
7861
7862 // K8SStatefulSetName returns an attribute KeyValue conforming to the
7863 // "k8s.statefulset.name" semantic conventions. It represents the name of the
7864 // StatefulSet.
7865 func K8SStatefulSetName(val string) attribute.KeyValue {
7866 return K8SStatefulSetNameKey.String(val)
7867 }
7868
7869 // K8SStatefulSetUID returns an attribute KeyValue conforming to the
7870 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
7871 // StatefulSet.
7872 func K8SStatefulSetUID(val string) attribute.KeyValue {
7873 return K8SStatefulSetUIDKey.String(val)
7874 }
7875
7876 // K8SVolumeName returns an attribute KeyValue conforming to the
7877 // "k8s.volume.name" semantic conventions. It represents the name of the K8s
7878 // volume.
7879 func K8SVolumeName(val string) attribute.KeyValue {
7880 return K8SVolumeNameKey.String(val)
7881 }
7882
7883 // Enum values for k8s.namespace.phase
7884 var (
7885 // Active namespace phase as described by [K8s API]
7886 // Stability: development
7887 //
7888 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
7889 K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active")
7890 // Terminating namespace phase as described by [K8s API]
7891 // Stability: development
7892 //
7893 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
7894 K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating")
7895 )
7896
7897 // Enum values for k8s.volume.type
7898 var (
7899 // A [persistentVolumeClaim] volume
7900 // Stability: development
7901 //
7902 // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
7903 K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
7904 // A [configMap] volume
7905 // Stability: development
7906 //
7907 // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
7908 K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
7909 // A [downwardAPI] volume
7910 // Stability: development
7911 //
7912 // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
7913 K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
7914 // An [emptyDir] volume
7915 // Stability: development
7916 //
7917 // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
7918 K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
7919 // A [secret] volume
7920 // Stability: development
7921 //
7922 // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
7923 K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
7924 // A [local] volume
7925 // Stability: development
7926 //
7927 // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local
7928 K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
7929 )
7930
7931 // Namespace: linux
7932 const (
7933 // LinuxMemorySlabStateKey is the attribute Key conforming to the
7934 // "linux.memory.slab.state" semantic conventions. It represents the Linux Slab
7935 // memory state.
7936 //
7937 // Type: Enum
7938 // RequirementLevel: Recommended
7939 // Stability: Development
7940 //
7941 // Examples: "reclaimable", "unreclaimable"
7942 LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state")
7943 )
7944
7945 // Enum values for linux.memory.slab.state
7946 var (
7947 // reclaimable
7948 // Stability: development
7949 LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable")
7950 // unreclaimable
7951 // Stability: development
7952 LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable")
7953 )
7954
7955 // Namespace: log
7956 const (
7957 // LogFileNameKey is the attribute Key conforming to the "log.file.name"
7958 // semantic conventions. It represents the basename of the file.
7959 //
7960 // Type: string
7961 // RequirementLevel: Recommended
7962 // Stability: Development
7963 //
7964 // Examples: "audit.log"
7965 LogFileNameKey = attribute.Key("log.file.name")
7966
7967 // LogFileNameResolvedKey is the attribute Key conforming to the
7968 // "log.file.name_resolved" semantic conventions. It represents the basename of
7969 // the file, with symlinks resolved.
7970 //
7971 // Type: string
7972 // RequirementLevel: Recommended
7973 // Stability: Development
7974 //
7975 // Examples: "uuid.log"
7976 LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
7977
7978 // LogFilePathKey is the attribute Key conforming to the "log.file.path"
7979 // semantic conventions. It represents the full path to the file.
7980 //
7981 // Type: string
7982 // RequirementLevel: Recommended
7983 // Stability: Development
7984 //
7985 // Examples: "/var/log/mysql/audit.log"
7986 LogFilePathKey = attribute.Key("log.file.path")
7987
7988 // LogFilePathResolvedKey is the attribute Key conforming to the
7989 // "log.file.path_resolved" semantic conventions. It represents the full path to
7990 // the file, with symlinks resolved.
7991 //
7992 // Type: string
7993 // RequirementLevel: Recommended
7994 // Stability: Development
7995 //
7996 // Examples: "/var/lib/docker/uuid.log"
7997 LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
7998
7999 // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
8000 // conventions. It represents the stream associated with the log. See below for
8001 // a list of well-known values.
8002 //
8003 // Type: Enum
8004 // RequirementLevel: Recommended
8005 // Stability: Development
8006 //
8007 // Examples:
8008 LogIostreamKey = attribute.Key("log.iostream")
8009
8010 // LogRecordOriginalKey is the attribute Key conforming to the
8011 // "log.record.original" semantic conventions. It represents the complete
8012 // original Log Record.
8013 //
8014 // Type: string
8015 // RequirementLevel: Recommended
8016 // Stability: Development
8017 //
8018 // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
8019 // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
8020 // Note: This value MAY be added when processing a Log Record which was
8021 // originally transmitted as a string or equivalent data type AND the Body field
8022 // of the Log Record does not contain the same value. (e.g. a syslog or a log
8023 // record read from a file.)
8024 LogRecordOriginalKey = attribute.Key("log.record.original")
8025
8026 // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
8027 // semantic conventions. It represents a unique identifier for the Log Record.
8028 //
8029 // Type: string
8030 // RequirementLevel: Recommended
8031 // Stability: Development
8032 //
8033 // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
8034 // Note: If an id is provided, other log records with the same id will be
8035 // considered duplicates and can be removed safely. This means, that two
8036 // distinguishable log records MUST have different values.
8037 // The id MAY be an
8038 // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
8039 // identifiers (e.g. UUID) may be used as needed.
8040 //
8041 // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
8042 LogRecordUIDKey = attribute.Key("log.record.uid")
8043 )
8044
8045 // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
8046 // semantic conventions. It represents the basename of the file.
8047 func LogFileName(val string) attribute.KeyValue {
8048 return LogFileNameKey.String(val)
8049 }
8050
8051 // LogFileNameResolved returns an attribute KeyValue conforming to the
8052 // "log.file.name_resolved" semantic conventions. It represents the basename of
8053 // the file, with symlinks resolved.
8054 func LogFileNameResolved(val string) attribute.KeyValue {
8055 return LogFileNameResolvedKey.String(val)
8056 }
8057
8058 // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
8059 // semantic conventions. It represents the full path to the file.
8060 func LogFilePath(val string) attribute.KeyValue {
8061 return LogFilePathKey.String(val)
8062 }
8063
8064 // LogFilePathResolved returns an attribute KeyValue conforming to the
8065 // "log.file.path_resolved" semantic conventions. It represents the full path to
8066 // the file, with symlinks resolved.
8067 func LogFilePathResolved(val string) attribute.KeyValue {
8068 return LogFilePathResolvedKey.String(val)
8069 }
8070
8071 // LogRecordOriginal returns an attribute KeyValue conforming to the
8072 // "log.record.original" semantic conventions. It represents the complete
8073 // original Log Record.
8074 func LogRecordOriginal(val string) attribute.KeyValue {
8075 return LogRecordOriginalKey.String(val)
8076 }
8077
8078 // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
8079 // semantic conventions. It represents a unique identifier for the Log Record.
8080 func LogRecordUID(val string) attribute.KeyValue {
8081 return LogRecordUIDKey.String(val)
8082 }
8083
8084 // Enum values for log.iostream
8085 var (
8086 // Logs from stdout stream
8087 // Stability: development
8088 LogIostreamStdout = LogIostreamKey.String("stdout")
8089 // Events from stderr stream
8090 // Stability: development
8091 LogIostreamStderr = LogIostreamKey.String("stderr")
8092 )
8093
8094 // Namespace: messaging
8095 const (
8096 // MessagingBatchMessageCountKey is the attribute Key conforming to the
8097 // "messaging.batch.message_count" semantic conventions. It represents the
8098 // number of messages sent, received, or processed in the scope of the batching
8099 // operation.
8100 //
8101 // Type: int
8102 // RequirementLevel: Recommended
8103 // Stability: Development
8104 //
8105 // Examples: 0, 1, 2
8106 // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
8107 // spans that operate with a single message. When a messaging client library
8108 // supports both batch and single-message API for the same operation,
8109 // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
8110 // and SHOULD NOT use it for single-message APIs.
8111 MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
8112
8113 // MessagingClientIDKey is the attribute Key conforming to the
8114 // "messaging.client.id" semantic conventions. It represents a unique identifier
8115 // for the client that consumes or produces a message.
8116 //
8117 // Type: string
8118 // RequirementLevel: Recommended
8119 // Stability: Development
8120 //
8121 // Examples: "client-5", "myhost@8742@s8083jm"
8122 MessagingClientIDKey = attribute.Key("messaging.client.id")
8123
8124 // MessagingConsumerGroupNameKey is the attribute Key conforming to the
8125 // "messaging.consumer.group.name" semantic conventions. It represents the name
8126 // of the consumer group with which a consumer is associated.
8127 //
8128 // Type: string
8129 // RequirementLevel: Recommended
8130 // Stability: Development
8131 //
8132 // Examples: "my-group", "indexer"
8133 // Note: Semantic conventions for individual messaging systems SHOULD document
8134 // whether `messaging.consumer.group.name` is applicable and what it means in
8135 // the context of that system.
8136 MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
8137
8138 // MessagingDestinationAnonymousKey is the attribute Key conforming to the
8139 // "messaging.destination.anonymous" semantic conventions. It represents a
8140 // boolean that is true if the message destination is anonymous (could be
8141 // unnamed or have auto-generated name).
8142 //
8143 // Type: boolean
8144 // RequirementLevel: Recommended
8145 // Stability: Development
8146 //
8147 // Examples:
8148 MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
8149
8150 // MessagingDestinationNameKey is the attribute Key conforming to the
8151 // "messaging.destination.name" semantic conventions. It represents the message
8152 // destination name.
8153 //
8154 // Type: string
8155 // RequirementLevel: Recommended
8156 // Stability: Development
8157 //
8158 // Examples: "MyQueue", "MyTopic"
8159 // Note: Destination name SHOULD uniquely identify a specific queue, topic or
8160 // other entity within the broker. If
8161 // the broker doesn't have such notion, the destination name SHOULD uniquely
8162 // identify the broker.
8163 MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
8164
8165 // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
8166 // "messaging.destination.partition.id" semantic conventions. It represents the
8167 // identifier of the partition messages are sent to or received from, unique
8168 // within the `messaging.destination.name`.
8169 //
8170 // Type: string
8171 // RequirementLevel: Recommended
8172 // Stability: Development
8173 //
8174 // Examples: 1
8175 MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
8176
8177 // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
8178 // the "messaging.destination.subscription.name" semantic conventions. It
8179 // represents the name of the destination subscription from which a message is
8180 // consumed.
8181 //
8182 // Type: string
8183 // RequirementLevel: Recommended
8184 // Stability: Development
8185 //
8186 // Examples: "subscription-a"
8187 // Note: Semantic conventions for individual messaging systems SHOULD document
8188 // whether `messaging.destination.subscription.name` is applicable and what it
8189 // means in the context of that system.
8190 MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
8191
8192 // MessagingDestinationTemplateKey is the attribute Key conforming to the
8193 // "messaging.destination.template" semantic conventions. It represents the low
8194 // cardinality representation of the messaging destination name.
8195 //
8196 // Type: string
8197 // RequirementLevel: Recommended
8198 // Stability: Development
8199 //
8200 // Examples: "/customers/{customerId}"
8201 // Note: Destination names could be constructed from templates. An example would
8202 // be a destination name involving a user name or product id. Although the
8203 // destination name in this case is of high cardinality, the underlying template
8204 // is of low cardinality and can be effectively used for grouping and
8205 // aggregation.
8206 MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
8207
8208 // MessagingDestinationTemporaryKey is the attribute Key conforming to the
8209 // "messaging.destination.temporary" semantic conventions. It represents a
8210 // boolean that is true if the message destination is temporary and might not
8211 // exist anymore after messages are processed.
8212 //
8213 // Type: boolean
8214 // RequirementLevel: Recommended
8215 // Stability: Development
8216 //
8217 // Examples:
8218 MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
8219
8220 // MessagingEventHubsMessageEnqueuedTimeKey is the attribute Key conforming to
8221 // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
8222 // represents the UTC epoch seconds at which the message has been accepted and
8223 // stored in the entity.
8224 //
8225 // Type: int
8226 // RequirementLevel: Recommended
8227 // Stability: Development
8228 MessagingEventHubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
8229
8230 // MessagingGCPPubSubMessageAckDeadlineKey is the attribute Key conforming to
8231 // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
8232 // represents the ack deadline in seconds set for the modify ack deadline
8233 // request.
8234 //
8235 // Type: int
8236 // RequirementLevel: Recommended
8237 // Stability: Development
8238 MessagingGCPPubSubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
8239
8240 // MessagingGCPPubSubMessageAckIDKey is the attribute Key conforming to the
8241 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
8242 // ack id for a given message.
8243 //
8244 // Type: string
8245 // RequirementLevel: Recommended
8246 // Stability: Development
8247 //
8248 // Examples: ack_id
8249 MessagingGCPPubSubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
8250
8251 // MessagingGCPPubSubMessageDeliveryAttemptKey is the attribute Key conforming
8252 // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
8253 // It represents the delivery attempt for a given message.
8254 //
8255 // Type: int
8256 // RequirementLevel: Recommended
8257 // Stability: Development
8258 MessagingGCPPubSubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
8259
8260 // MessagingGCPPubSubMessageOrderingKeyKey is the attribute Key conforming to
8261 // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
8262 // represents the ordering key for a given message. If the attribute is not
8263 // present, the message does not have an ordering key.
8264 //
8265 // Type: string
8266 // RequirementLevel: Recommended
8267 // Stability: Development
8268 //
8269 // Examples: ordering_key
8270 MessagingGCPPubSubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
8271
8272 // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
8273 // "messaging.kafka.message.key" semantic conventions. It represents the message
8274 // keys in Kafka are used for grouping alike messages to ensure they're
8275 // processed on the same partition. They differ from `messaging.message.id` in
8276 // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
8277 //
8278 // Type: string
8279 // RequirementLevel: Recommended
8280 // Stability: Development
8281 //
8282 // Examples: myKey
8283 // Note: If the key type is not string, it's string representation has to be
8284 // supplied for the attribute. If the key has no unambiguous, canonical string
8285 // form, don't include its value.
8286 MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
8287
8288 // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
8289 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
8290 // boolean that is true if the message is a tombstone.
8291 //
8292 // Type: boolean
8293 // RequirementLevel: Recommended
8294 // Stability: Development
8295 //
8296 // Examples:
8297 MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
8298
8299 // MessagingKafkaOffsetKey is the attribute Key conforming to the
8300 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
8301 // record in the corresponding Kafka partition.
8302 //
8303 // Type: int
8304 // RequirementLevel: Recommended
8305 // Stability: Development
8306 MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
8307
8308 // MessagingMessageBodySizeKey is the attribute Key conforming to the
8309 // "messaging.message.body.size" semantic conventions. It represents the size of
8310 // the message body in bytes.
8311 //
8312 // Type: int
8313 // RequirementLevel: Recommended
8314 // Stability: Development
8315 //
8316 // Note: This can refer to both the compressed or uncompressed body size. If
8317 // both sizes are known, the uncompressed
8318 // body size should be used.
8319 MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
8320
8321 // MessagingMessageConversationIDKey is the attribute Key conforming to the
8322 // "messaging.message.conversation_id" semantic conventions. It represents the
8323 // conversation ID identifying the conversation to which the message belongs,
8324 // represented as a string. Sometimes called "Correlation ID".
8325 //
8326 // Type: string
8327 // RequirementLevel: Recommended
8328 // Stability: Development
8329 //
8330 // Examples: MyConversationId
8331 MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
8332
8333 // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
8334 // "messaging.message.envelope.size" semantic conventions. It represents the
8335 // size of the message body and metadata in bytes.
8336 //
8337 // Type: int
8338 // RequirementLevel: Recommended
8339 // Stability: Development
8340 //
8341 // Note: This can refer to both the compressed or uncompressed size. If both
8342 // sizes are known, the uncompressed
8343 // size should be used.
8344 MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
8345
8346 // MessagingMessageIDKey is the attribute Key conforming to the
8347 // "messaging.message.id" semantic conventions. It represents a value used by
8348 // the messaging system as an identifier for the message, represented as a
8349 // string.
8350 //
8351 // Type: string
8352 // RequirementLevel: Recommended
8353 // Stability: Development
8354 //
8355 // Examples: 452a7c7c7c7048c2f887f61572b18fc2
8356 MessagingMessageIDKey = attribute.Key("messaging.message.id")
8357
8358 // MessagingOperationNameKey is the attribute Key conforming to the
8359 // "messaging.operation.name" semantic conventions. It represents the
8360 // system-specific name of the messaging operation.
8361 //
8362 // Type: string
8363 // RequirementLevel: Recommended
8364 // Stability: Development
8365 //
8366 // Examples: "ack", "nack", "send"
8367 MessagingOperationNameKey = attribute.Key("messaging.operation.name")
8368
8369 // MessagingOperationTypeKey is the attribute Key conforming to the
8370 // "messaging.operation.type" semantic conventions. It represents a string
8371 // identifying the type of the messaging operation.
8372 //
8373 // Type: Enum
8374 // RequirementLevel: Recommended
8375 // Stability: Development
8376 //
8377 // Examples:
8378 // Note: If a custom value is used, it MUST be of low cardinality.
8379 MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
8380
8381 // MessagingRabbitMQDestinationRoutingKeyKey is the attribute Key conforming to
8382 // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
8383 // represents the rabbitMQ message routing key.
8384 //
8385 // Type: string
8386 // RequirementLevel: Recommended
8387 // Stability: Development
8388 //
8389 // Examples: myKey
8390 MessagingRabbitMQDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
8391
8392 // MessagingRabbitMQMessageDeliveryTagKey is the attribute Key conforming to the
8393 // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
8394 // the rabbitMQ message delivery tag.
8395 //
8396 // Type: int
8397 // RequirementLevel: Recommended
8398 // Stability: Development
8399 MessagingRabbitMQMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
8400
8401 // MessagingRocketMQConsumptionModelKey is the attribute Key conforming to the
8402 // "messaging.rocketmq.consumption_model" semantic conventions. It represents
8403 // the model of message consumption. This only applies to consumer spans.
8404 //
8405 // Type: Enum
8406 // RequirementLevel: Recommended
8407 // Stability: Development
8408 //
8409 // Examples:
8410 MessagingRocketMQConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
8411
8412 // MessagingRocketMQMessageDelayTimeLevelKey is the attribute Key conforming to
8413 // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
8414 // represents the delay time level for delay message, which determines the
8415 // message delay time.
8416 //
8417 // Type: int
8418 // RequirementLevel: Recommended
8419 // Stability: Development
8420 MessagingRocketMQMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
8421
8422 // MessagingRocketMQMessageDeliveryTimestampKey is the attribute Key conforming
8423 // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
8424 // It represents the timestamp in milliseconds that the delay message is
8425 // expected to be delivered to consumer.
8426 //
8427 // Type: int
8428 // RequirementLevel: Recommended
8429 // Stability: Development
8430 MessagingRocketMQMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
8431
8432 // MessagingRocketMQMessageGroupKey is the attribute Key conforming to the
8433 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
8434 // is essential for FIFO message. Messages that belong to the same message group
8435 // are always processed one by one within the same consumer group.
8436 //
8437 // Type: string
8438 // RequirementLevel: Recommended
8439 // Stability: Development
8440 //
8441 // Examples: myMessageGroup
8442 MessagingRocketMQMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
8443
8444 // MessagingRocketMQMessageKeysKey is the attribute Key conforming to the
8445 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
8446 // key(s) of message, another way to mark message besides message id.
8447 //
8448 // Type: string[]
8449 // RequirementLevel: Recommended
8450 // Stability: Development
8451 //
8452 // Examples: "keyA", "keyB"
8453 MessagingRocketMQMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
8454
8455 // MessagingRocketMQMessageTagKey is the attribute Key conforming to the
8456 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
8457 // secondary classifier of message besides topic.
8458 //
8459 // Type: string
8460 // RequirementLevel: Recommended
8461 // Stability: Development
8462 //
8463 // Examples: tagA
8464 MessagingRocketMQMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
8465
8466 // MessagingRocketMQMessageTypeKey is the attribute Key conforming to the
8467 // "messaging.rocketmq.message.type" semantic conventions. It represents the
8468 // type of message.
8469 //
8470 // Type: Enum
8471 // RequirementLevel: Recommended
8472 // Stability: Development
8473 //
8474 // Examples:
8475 MessagingRocketMQMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
8476
8477 // MessagingRocketMQNamespaceKey is the attribute Key conforming to the
8478 // "messaging.rocketmq.namespace" semantic conventions. It represents the
8479 // namespace of RocketMQ resources, resources in different namespaces are
8480 // individual.
8481 //
8482 // Type: string
8483 // RequirementLevel: Recommended
8484 // Stability: Development
8485 //
8486 // Examples: myNamespace
8487 MessagingRocketMQNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
8488
8489 // MessagingServiceBusDispositionStatusKey is the attribute Key conforming to
8490 // the "messaging.servicebus.disposition_status" semantic conventions. It
8491 // represents the describes the [settlement type].
8492 //
8493 // Type: Enum
8494 // RequirementLevel: Recommended
8495 // Stability: Development
8496 //
8497 // Examples:
8498 //
8499 // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
8500 MessagingServiceBusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
8501
8502 // MessagingServiceBusMessageDeliveryCountKey is the attribute Key conforming to
8503 // the "messaging.servicebus.message.delivery_count" semantic conventions. It
8504 // represents the number of deliveries that have been attempted for this
8505 // message.
8506 //
8507 // Type: int
8508 // RequirementLevel: Recommended
8509 // Stability: Development
8510 MessagingServiceBusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
8511
8512 // MessagingServiceBusMessageEnqueuedTimeKey is the attribute Key conforming to
8513 // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
8514 // represents the UTC epoch seconds at which the message has been accepted and
8515 // stored in the entity.
8516 //
8517 // Type: int
8518 // RequirementLevel: Recommended
8519 // Stability: Development
8520 MessagingServiceBusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
8521
8522 // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
8523 // semantic conventions. It represents the messaging system as identified by the
8524 // client instrumentation.
8525 //
8526 // Type: Enum
8527 // RequirementLevel: Recommended
8528 // Stability: Development
8529 //
8530 // Examples:
8531 // Note: The actual messaging system may differ from the one known by the
8532 // client. For example, when using Kafka client libraries to communicate with
8533 // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
8534 // instrumentation's best knowledge.
8535 MessagingSystemKey = attribute.Key("messaging.system")
8536 )
8537
8538 // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
8539 // "messaging.batch.message_count" semantic conventions. It represents the number
8540 // of messages sent, received, or processed in the scope of the batching
8541 // operation.
8542 func MessagingBatchMessageCount(val int) attribute.KeyValue {
8543 return MessagingBatchMessageCountKey.Int(val)
8544 }
8545
8546 // MessagingClientID returns an attribute KeyValue conforming to the
8547 // "messaging.client.id" semantic conventions. It represents a unique identifier
8548 // for the client that consumes or produces a message.
8549 func MessagingClientID(val string) attribute.KeyValue {
8550 return MessagingClientIDKey.String(val)
8551 }
8552
8553 // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
8554 // "messaging.consumer.group.name" semantic conventions. It represents the name
8555 // of the consumer group with which a consumer is associated.
8556 func MessagingConsumerGroupName(val string) attribute.KeyValue {
8557 return MessagingConsumerGroupNameKey.String(val)
8558 }
8559
8560 // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
8561 // "messaging.destination.anonymous" semantic conventions. It represents a
8562 // boolean that is true if the message destination is anonymous (could be unnamed
8563 // or have auto-generated name).
8564 func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
8565 return MessagingDestinationAnonymousKey.Bool(val)
8566 }
8567
8568 // MessagingDestinationName returns an attribute KeyValue conforming to the
8569 // "messaging.destination.name" semantic conventions. It represents the message
8570 // destination name.
8571 func MessagingDestinationName(val string) attribute.KeyValue {
8572 return MessagingDestinationNameKey.String(val)
8573 }
8574
8575 // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
8576 // the "messaging.destination.partition.id" semantic conventions. It represents
8577 // the identifier of the partition messages are sent to or received from, unique
8578 // within the `messaging.destination.name`.
8579 func MessagingDestinationPartitionID(val string) attribute.KeyValue {
8580 return MessagingDestinationPartitionIDKey.String(val)
8581 }
8582
8583 // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
8584 // to the "messaging.destination.subscription.name" semantic conventions. It
8585 // represents the name of the destination subscription from which a message is
8586 // consumed.
8587 func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
8588 return MessagingDestinationSubscriptionNameKey.String(val)
8589 }
8590
8591 // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
8592 // "messaging.destination.template" semantic conventions. It represents the low
8593 // cardinality representation of the messaging destination name.
8594 func MessagingDestinationTemplate(val string) attribute.KeyValue {
8595 return MessagingDestinationTemplateKey.String(val)
8596 }
8597
8598 // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
8599 // "messaging.destination.temporary" semantic conventions. It represents a
8600 // boolean that is true if the message destination is temporary and might not
8601 // exist anymore after messages are processed.
8602 func MessagingDestinationTemporary(val bool) attribute.KeyValue {
8603 return MessagingDestinationTemporaryKey.Bool(val)
8604 }
8605
8606 // MessagingEventHubsMessageEnqueuedTime returns an attribute KeyValue conforming
8607 // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
8608 // represents the UTC epoch seconds at which the message has been accepted and
8609 // stored in the entity.
8610 func MessagingEventHubsMessageEnqueuedTime(val int) attribute.KeyValue {
8611 return MessagingEventHubsMessageEnqueuedTimeKey.Int(val)
8612 }
8613
8614 // MessagingGCPPubSubMessageAckDeadline returns an attribute KeyValue conforming
8615 // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
8616 // represents the ack deadline in seconds set for the modify ack deadline
8617 // request.
8618 func MessagingGCPPubSubMessageAckDeadline(val int) attribute.KeyValue {
8619 return MessagingGCPPubSubMessageAckDeadlineKey.Int(val)
8620 }
8621
8622 // MessagingGCPPubSubMessageAckID returns an attribute KeyValue conforming to the
8623 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
8624 // ack id for a given message.
8625 func MessagingGCPPubSubMessageAckID(val string) attribute.KeyValue {
8626 return MessagingGCPPubSubMessageAckIDKey.String(val)
8627 }
8628
8629 // MessagingGCPPubSubMessageDeliveryAttempt returns an attribute KeyValue
8630 // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
8631 // conventions. It represents the delivery attempt for a given message.
8632 func MessagingGCPPubSubMessageDeliveryAttempt(val int) attribute.KeyValue {
8633 return MessagingGCPPubSubMessageDeliveryAttemptKey.Int(val)
8634 }
8635
8636 // MessagingGCPPubSubMessageOrderingKey returns an attribute KeyValue conforming
8637 // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
8638 // represents the ordering key for a given message. If the attribute is not
8639 // present, the message does not have an ordering key.
8640 func MessagingGCPPubSubMessageOrderingKey(val string) attribute.KeyValue {
8641 return MessagingGCPPubSubMessageOrderingKeyKey.String(val)
8642 }
8643
8644 // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
8645 // "messaging.kafka.message.key" semantic conventions. It represents the message
8646 // keys in Kafka are used for grouping alike messages to ensure they're processed
8647 // on the same partition. They differ from `messaging.message.id` in that they're
8648 // not unique. If the key is `null`, the attribute MUST NOT be set.
8649 func MessagingKafkaMessageKey(val string) attribute.KeyValue {
8650 return MessagingKafkaMessageKeyKey.String(val)
8651 }
8652
8653 // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
8654 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
8655 // boolean that is true if the message is a tombstone.
8656 func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
8657 return MessagingKafkaMessageTombstoneKey.Bool(val)
8658 }
8659
8660 // MessagingKafkaOffset returns an attribute KeyValue conforming to the
8661 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
8662 // record in the corresponding Kafka partition.
8663 func MessagingKafkaOffset(val int) attribute.KeyValue {
8664 return MessagingKafkaOffsetKey.Int(val)
8665 }
8666
8667 // MessagingMessageBodySize returns an attribute KeyValue conforming to the
8668 // "messaging.message.body.size" semantic conventions. It represents the size of
8669 // the message body in bytes.
8670 func MessagingMessageBodySize(val int) attribute.KeyValue {
8671 return MessagingMessageBodySizeKey.Int(val)
8672 }
8673
8674 // MessagingMessageConversationID returns an attribute KeyValue conforming to the
8675 // "messaging.message.conversation_id" semantic conventions. It represents the
8676 // conversation ID identifying the conversation to which the message belongs,
8677 // represented as a string. Sometimes called "Correlation ID".
8678 func MessagingMessageConversationID(val string) attribute.KeyValue {
8679 return MessagingMessageConversationIDKey.String(val)
8680 }
8681
8682 // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
8683 // "messaging.message.envelope.size" semantic conventions. It represents the size
8684 // of the message body and metadata in bytes.
8685 func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
8686 return MessagingMessageEnvelopeSizeKey.Int(val)
8687 }
8688
8689 // MessagingMessageID returns an attribute KeyValue conforming to the
8690 // "messaging.message.id" semantic conventions. It represents a value used by the
8691 // messaging system as an identifier for the message, represented as a string.
8692 func MessagingMessageID(val string) attribute.KeyValue {
8693 return MessagingMessageIDKey.String(val)
8694 }
8695
8696 // MessagingOperationName returns an attribute KeyValue conforming to the
8697 // "messaging.operation.name" semantic conventions. It represents the
8698 // system-specific name of the messaging operation.
8699 func MessagingOperationName(val string) attribute.KeyValue {
8700 return MessagingOperationNameKey.String(val)
8701 }
8702
8703 // MessagingRabbitMQDestinationRoutingKey returns an attribute KeyValue
8704 // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
8705 // conventions. It represents the rabbitMQ message routing key.
8706 func MessagingRabbitMQDestinationRoutingKey(val string) attribute.KeyValue {
8707 return MessagingRabbitMQDestinationRoutingKeyKey.String(val)
8708 }
8709
8710 // MessagingRabbitMQMessageDeliveryTag returns an attribute KeyValue conforming
8711 // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
8712 // represents the rabbitMQ message delivery tag.
8713 func MessagingRabbitMQMessageDeliveryTag(val int) attribute.KeyValue {
8714 return MessagingRabbitMQMessageDeliveryTagKey.Int(val)
8715 }
8716
8717 // MessagingRocketMQMessageDelayTimeLevel returns an attribute KeyValue
8718 // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
8719 // conventions. It represents the delay time level for delay message, which
8720 // determines the message delay time.
8721 func MessagingRocketMQMessageDelayTimeLevel(val int) attribute.KeyValue {
8722 return MessagingRocketMQMessageDelayTimeLevelKey.Int(val)
8723 }
8724
8725 // MessagingRocketMQMessageDeliveryTimestamp returns an attribute KeyValue
8726 // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
8727 // conventions. It represents the timestamp in milliseconds that the delay
8728 // message is expected to be delivered to consumer.
8729 func MessagingRocketMQMessageDeliveryTimestamp(val int) attribute.KeyValue {
8730 return MessagingRocketMQMessageDeliveryTimestampKey.Int(val)
8731 }
8732
8733 // MessagingRocketMQMessageGroup returns an attribute KeyValue conforming to the
8734 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
8735 // is essential for FIFO message. Messages that belong to the same message group
8736 // are always processed one by one within the same consumer group.
8737 func MessagingRocketMQMessageGroup(val string) attribute.KeyValue {
8738 return MessagingRocketMQMessageGroupKey.String(val)
8739 }
8740
8741 // MessagingRocketMQMessageKeys returns an attribute KeyValue conforming to the
8742 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
8743 // key(s) of message, another way to mark message besides message id.
8744 func MessagingRocketMQMessageKeys(val ...string) attribute.KeyValue {
8745 return MessagingRocketMQMessageKeysKey.StringSlice(val)
8746 }
8747
8748 // MessagingRocketMQMessageTag returns an attribute KeyValue conforming to the
8749 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
8750 // secondary classifier of message besides topic.
8751 func MessagingRocketMQMessageTag(val string) attribute.KeyValue {
8752 return MessagingRocketMQMessageTagKey.String(val)
8753 }
8754
8755 // MessagingRocketMQNamespace returns an attribute KeyValue conforming to the
8756 // "messaging.rocketmq.namespace" semantic conventions. It represents the
8757 // namespace of RocketMQ resources, resources in different namespaces are
8758 // individual.
8759 func MessagingRocketMQNamespace(val string) attribute.KeyValue {
8760 return MessagingRocketMQNamespaceKey.String(val)
8761 }
8762
8763 // MessagingServiceBusMessageDeliveryCount returns an attribute KeyValue
8764 // conforming to the "messaging.servicebus.message.delivery_count" semantic
8765 // conventions. It represents the number of deliveries that have been attempted
8766 // for this message.
8767 func MessagingServiceBusMessageDeliveryCount(val int) attribute.KeyValue {
8768 return MessagingServiceBusMessageDeliveryCountKey.Int(val)
8769 }
8770
8771 // MessagingServiceBusMessageEnqueuedTime returns an attribute KeyValue
8772 // conforming to the "messaging.servicebus.message.enqueued_time" semantic
8773 // conventions. It represents the UTC epoch seconds at which the message has been
8774 // accepted and stored in the entity.
8775 func MessagingServiceBusMessageEnqueuedTime(val int) attribute.KeyValue {
8776 return MessagingServiceBusMessageEnqueuedTimeKey.Int(val)
8777 }
8778
8779 // Enum values for messaging.operation.type
8780 var (
8781 // A message is created. "Create" spans always refer to a single message and are
8782 // used to provide a unique creation context for messages in batch sending
8783 // scenarios.
8784 //
8785 // Stability: development
8786 MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
8787 // One or more messages are provided for sending to an intermediary. If a single
8788 // message is sent, the context of the "Send" span can be used as the creation
8789 // context and no "Create" span needs to be created.
8790 //
8791 // Stability: development
8792 MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
8793 // One or more messages are requested by a consumer. This operation refers to
8794 // pull-based scenarios, where consumers explicitly call methods of messaging
8795 // SDKs to receive messages.
8796 //
8797 // Stability: development
8798 MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
8799 // One or more messages are processed by a consumer.
8800 //
8801 // Stability: development
8802 MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
8803 // One or more messages are settled.
8804 //
8805 // Stability: development
8806 MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
8807 // Deprecated: Replaced by `process`.
8808 MessagingOperationTypeDeliver = MessagingOperationTypeKey.String("deliver")
8809 // Deprecated: Replaced by `send`.
8810 MessagingOperationTypePublish = MessagingOperationTypeKey.String("publish")
8811 )
8812
8813 // Enum values for messaging.rocketmq.consumption_model
8814 var (
8815 // Clustering consumption model
8816 // Stability: development
8817 MessagingRocketMQConsumptionModelClustering = MessagingRocketMQConsumptionModelKey.String("clustering")
8818 // Broadcasting consumption model
8819 // Stability: development
8820 MessagingRocketMQConsumptionModelBroadcasting = MessagingRocketMQConsumptionModelKey.String("broadcasting")
8821 )
8822
8823 // Enum values for messaging.rocketmq.message.type
8824 var (
8825 // Normal message
8826 // Stability: development
8827 MessagingRocketMQMessageTypeNormal = MessagingRocketMQMessageTypeKey.String("normal")
8828 // FIFO message
8829 // Stability: development
8830 MessagingRocketMQMessageTypeFifo = MessagingRocketMQMessageTypeKey.String("fifo")
8831 // Delay message
8832 // Stability: development
8833 MessagingRocketMQMessageTypeDelay = MessagingRocketMQMessageTypeKey.String("delay")
8834 // Transaction message
8835 // Stability: development
8836 MessagingRocketMQMessageTypeTransaction = MessagingRocketMQMessageTypeKey.String("transaction")
8837 )
8838
8839 // Enum values for messaging.servicebus.disposition_status
8840 var (
8841 // Message is completed
8842 // Stability: development
8843 MessagingServiceBusDispositionStatusComplete = MessagingServiceBusDispositionStatusKey.String("complete")
8844 // Message is abandoned
8845 // Stability: development
8846 MessagingServiceBusDispositionStatusAbandon = MessagingServiceBusDispositionStatusKey.String("abandon")
8847 // Message is sent to dead letter queue
8848 // Stability: development
8849 MessagingServiceBusDispositionStatusDeadLetter = MessagingServiceBusDispositionStatusKey.String("dead_letter")
8850 // Message is deferred
8851 // Stability: development
8852 MessagingServiceBusDispositionStatusDefer = MessagingServiceBusDispositionStatusKey.String("defer")
8853 )
8854
8855 // Enum values for messaging.system
8856 var (
8857 // Apache ActiveMQ
8858 // Stability: development
8859 MessagingSystemActiveMQ = MessagingSystemKey.String("activemq")
8860 // Amazon Simple Queue Service (SQS)
8861 // Stability: development
8862 MessagingSystemAWSSQS = MessagingSystemKey.String("aws_sqs")
8863 // Azure Event Grid
8864 // Stability: development
8865 MessagingSystemEventGrid = MessagingSystemKey.String("eventgrid")
8866 // Azure Event Hubs
8867 // Stability: development
8868 MessagingSystemEventHubs = MessagingSystemKey.String("eventhubs")
8869 // Azure Service Bus
8870 // Stability: development
8871 MessagingSystemServiceBus = MessagingSystemKey.String("servicebus")
8872 // Google Cloud Pub/Sub
8873 // Stability: development
8874 MessagingSystemGCPPubSub = MessagingSystemKey.String("gcp_pubsub")
8875 // Java Message Service
8876 // Stability: development
8877 MessagingSystemJMS = MessagingSystemKey.String("jms")
8878 // Apache Kafka
8879 // Stability: development
8880 MessagingSystemKafka = MessagingSystemKey.String("kafka")
8881 // RabbitMQ
8882 // Stability: development
8883 MessagingSystemRabbitMQ = MessagingSystemKey.String("rabbitmq")
8884 // Apache RocketMQ
8885 // Stability: development
8886 MessagingSystemRocketMQ = MessagingSystemKey.String("rocketmq")
8887 // Apache Pulsar
8888 // Stability: development
8889 MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
8890 )
8891
8892 // Namespace: network
8893 const (
8894 // NetworkCarrierICCKey is the attribute Key conforming to the
8895 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
8896 // alpha-2 2-character country code associated with the mobile carrier network.
8897 //
8898 // Type: string
8899 // RequirementLevel: Recommended
8900 // Stability: Development
8901 //
8902 // Examples: DE
8903 NetworkCarrierICCKey = attribute.Key("network.carrier.icc")
8904
8905 // NetworkCarrierMCCKey is the attribute Key conforming to the
8906 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
8907 // country code.
8908 //
8909 // Type: string
8910 // RequirementLevel: Recommended
8911 // Stability: Development
8912 //
8913 // Examples: 310
8914 NetworkCarrierMCCKey = attribute.Key("network.carrier.mcc")
8915
8916 // NetworkCarrierMNCKey is the attribute Key conforming to the
8917 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
8918 // network code.
8919 //
8920 // Type: string
8921 // RequirementLevel: Recommended
8922 // Stability: Development
8923 //
8924 // Examples: 001
8925 NetworkCarrierMNCKey = attribute.Key("network.carrier.mnc")
8926
8927 // NetworkCarrierNameKey is the attribute Key conforming to the
8928 // "network.carrier.name" semantic conventions. It represents the name of the
8929 // mobile carrier.
8930 //
8931 // Type: string
8932 // RequirementLevel: Recommended
8933 // Stability: Development
8934 //
8935 // Examples: sprint
8936 NetworkCarrierNameKey = attribute.Key("network.carrier.name")
8937
8938 // NetworkConnectionStateKey is the attribute Key conforming to the
8939 // "network.connection.state" semantic conventions. It represents the state of
8940 // network connection.
8941 //
8942 // Type: Enum
8943 // RequirementLevel: Recommended
8944 // Stability: Development
8945 //
8946 // Examples: "close_wait"
8947 // Note: Connection states are defined as part of the [rfc9293]
8948 //
8949 // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2
8950 NetworkConnectionStateKey = attribute.Key("network.connection.state")
8951
8952 // NetworkConnectionSubtypeKey is the attribute Key conforming to the
8953 // "network.connection.subtype" semantic conventions. It represents the this
8954 // describes more details regarding the connection.type. It may be the type of
8955 // cell technology connection, but it could be used for describing details about
8956 // a wifi connection.
8957 //
8958 // Type: Enum
8959 // RequirementLevel: Recommended
8960 // Stability: Development
8961 //
8962 // Examples: LTE
8963 NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
8964
8965 // NetworkConnectionTypeKey is the attribute Key conforming to the
8966 // "network.connection.type" semantic conventions. It represents the internet
8967 // connection type.
8968 //
8969 // Type: Enum
8970 // RequirementLevel: Recommended
8971 // Stability: Development
8972 //
8973 // Examples: wifi
8974 NetworkConnectionTypeKey = attribute.Key("network.connection.type")
8975
8976 // NetworkInterfaceNameKey is the attribute Key conforming to the
8977 // "network.interface.name" semantic conventions. It represents the network
8978 // interface name.
8979 //
8980 // Type: string
8981 // RequirementLevel: Recommended
8982 // Stability: Development
8983 //
8984 // Examples: "lo", "eth0"
8985 NetworkInterfaceNameKey = attribute.Key("network.interface.name")
8986
8987 // NetworkIODirectionKey is the attribute Key conforming to the
8988 // "network.io.direction" semantic conventions. It represents the network IO
8989 // operation direction.
8990 //
8991 // Type: Enum
8992 // RequirementLevel: Recommended
8993 // Stability: Development
8994 //
8995 // Examples: "transmit"
8996 NetworkIODirectionKey = attribute.Key("network.io.direction")
8997
8998 // NetworkLocalAddressKey is the attribute Key conforming to the
8999 // "network.local.address" semantic conventions. It represents the local address
9000 // of the network connection - IP address or Unix domain socket name.
9001 //
9002 // Type: string
9003 // RequirementLevel: Recommended
9004 // Stability: Stable
9005 //
9006 // Examples: "10.1.2.80", "/tmp/my.sock"
9007 NetworkLocalAddressKey = attribute.Key("network.local.address")
9008
9009 // NetworkLocalPortKey is the attribute Key conforming to the
9010 // "network.local.port" semantic conventions. It represents the local port
9011 // number of the network connection.
9012 //
9013 // Type: int
9014 // RequirementLevel: Recommended
9015 // Stability: Stable
9016 //
9017 // Examples: 65123
9018 NetworkLocalPortKey = attribute.Key("network.local.port")
9019
9020 // NetworkPeerAddressKey is the attribute Key conforming to the
9021 // "network.peer.address" semantic conventions. It represents the peer address
9022 // of the network connection - IP address or Unix domain socket name.
9023 //
9024 // Type: string
9025 // RequirementLevel: Recommended
9026 // Stability: Stable
9027 //
9028 // Examples: "10.1.2.80", "/tmp/my.sock"
9029 NetworkPeerAddressKey = attribute.Key("network.peer.address")
9030
9031 // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
9032 // semantic conventions. It represents the peer port number of the network
9033 // connection.
9034 //
9035 // Type: int
9036 // RequirementLevel: Recommended
9037 // Stability: Stable
9038 //
9039 // Examples: 65123
9040 NetworkPeerPortKey = attribute.Key("network.peer.port")
9041
9042 // NetworkProtocolNameKey is the attribute Key conforming to the
9043 // "network.protocol.name" semantic conventions. It represents the
9044 // [OSI application layer] or non-OSI equivalent.
9045 //
9046 // Type: string
9047 // RequirementLevel: Recommended
9048 // Stability: Stable
9049 //
9050 // Examples: "amqp", "http", "mqtt"
9051 // Note: The value SHOULD be normalized to lowercase.
9052 //
9053 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
9054 NetworkProtocolNameKey = attribute.Key("network.protocol.name")
9055
9056 // NetworkProtocolVersionKey is the attribute Key conforming to the
9057 // "network.protocol.version" semantic conventions. It represents the actual
9058 // version of the protocol used for network communication.
9059 //
9060 // Type: string
9061 // RequirementLevel: Recommended
9062 // Stability: Stable
9063 //
9064 // Examples: "1.1", "2"
9065 // Note: If protocol version is subject to negotiation (for example using [ALPN]
9066 // ), this attribute SHOULD be set to the negotiated version. If the actual
9067 // protocol version is not known, this attribute SHOULD NOT be set.
9068 //
9069 // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
9070 NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
9071
9072 // NetworkTransportKey is the attribute Key conforming to the
9073 // "network.transport" semantic conventions. It represents the
9074 // [OSI transport layer] or [inter-process communication method].
9075 //
9076 // Type: Enum
9077 // RequirementLevel: Recommended
9078 // Stability: Stable
9079 //
9080 // Examples: "tcp", "udp"
9081 // Note: The value SHOULD be normalized to lowercase.
9082 //
9083 // Consider always setting the transport when setting a port number, since
9084 // a port number is ambiguous without knowing the transport. For example
9085 // different processes could be listening on TCP port 12345 and UDP port 12345.
9086 //
9087 // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer
9088 // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
9089 NetworkTransportKey = attribute.Key("network.transport")
9090
9091 // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
9092 // conventions. It represents the [OSI network layer] or non-OSI equivalent.
9093 //
9094 // Type: Enum
9095 // RequirementLevel: Recommended
9096 // Stability: Stable
9097 //
9098 // Examples: "ipv4", "ipv6"
9099 // Note: The value SHOULD be normalized to lowercase.
9100 //
9101 // [OSI network layer]: https://wikipedia.org/wiki/Network_layer
9102 NetworkTypeKey = attribute.Key("network.type")
9103 )
9104
9105 // NetworkCarrierICC returns an attribute KeyValue conforming to the
9106 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
9107 // alpha-2 2-character country code associated with the mobile carrier network.
9108 func NetworkCarrierICC(val string) attribute.KeyValue {
9109 return NetworkCarrierICCKey.String(val)
9110 }
9111
9112 // NetworkCarrierMCC returns an attribute KeyValue conforming to the
9113 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
9114 // country code.
9115 func NetworkCarrierMCC(val string) attribute.KeyValue {
9116 return NetworkCarrierMCCKey.String(val)
9117 }
9118
9119 // NetworkCarrierMNC returns an attribute KeyValue conforming to the
9120 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
9121 // network code.
9122 func NetworkCarrierMNC(val string) attribute.KeyValue {
9123 return NetworkCarrierMNCKey.String(val)
9124 }
9125
9126 // NetworkCarrierName returns an attribute KeyValue conforming to the
9127 // "network.carrier.name" semantic conventions. It represents the name of the
9128 // mobile carrier.
9129 func NetworkCarrierName(val string) attribute.KeyValue {
9130 return NetworkCarrierNameKey.String(val)
9131 }
9132
9133 // NetworkInterfaceName returns an attribute KeyValue conforming to the
9134 // "network.interface.name" semantic conventions. It represents the network
9135 // interface name.
9136 func NetworkInterfaceName(val string) attribute.KeyValue {
9137 return NetworkInterfaceNameKey.String(val)
9138 }
9139
9140 // NetworkLocalAddress returns an attribute KeyValue conforming to the
9141 // "network.local.address" semantic conventions. It represents the local address
9142 // of the network connection - IP address or Unix domain socket name.
9143 func NetworkLocalAddress(val string) attribute.KeyValue {
9144 return NetworkLocalAddressKey.String(val)
9145 }
9146
9147 // NetworkLocalPort returns an attribute KeyValue conforming to the
9148 // "network.local.port" semantic conventions. It represents the local port number
9149 // of the network connection.
9150 func NetworkLocalPort(val int) attribute.KeyValue {
9151 return NetworkLocalPortKey.Int(val)
9152 }
9153
9154 // NetworkPeerAddress returns an attribute KeyValue conforming to the
9155 // "network.peer.address" semantic conventions. It represents the peer address of
9156 // the network connection - IP address or Unix domain socket name.
9157 func NetworkPeerAddress(val string) attribute.KeyValue {
9158 return NetworkPeerAddressKey.String(val)
9159 }
9160
9161 // NetworkPeerPort returns an attribute KeyValue conforming to the
9162 // "network.peer.port" semantic conventions. It represents the peer port number
9163 // of the network connection.
9164 func NetworkPeerPort(val int) attribute.KeyValue {
9165 return NetworkPeerPortKey.Int(val)
9166 }
9167
9168 // NetworkProtocolName returns an attribute KeyValue conforming to the
9169 // "network.protocol.name" semantic conventions. It represents the
9170 // [OSI application layer] or non-OSI equivalent.
9171 //
9172 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
9173 func NetworkProtocolName(val string) attribute.KeyValue {
9174 return NetworkProtocolNameKey.String(val)
9175 }
9176
9177 // NetworkProtocolVersion returns an attribute KeyValue conforming to the
9178 // "network.protocol.version" semantic conventions. It represents the actual
9179 // version of the protocol used for network communication.
9180 func NetworkProtocolVersion(val string) attribute.KeyValue {
9181 return NetworkProtocolVersionKey.String(val)
9182 }
9183
9184 // Enum values for network.connection.state
9185 var (
9186 // closed
9187 // Stability: development
9188 NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed")
9189 // close_wait
9190 // Stability: development
9191 NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait")
9192 // closing
9193 // Stability: development
9194 NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing")
9195 // established
9196 // Stability: development
9197 NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established")
9198 // fin_wait_1
9199 // Stability: development
9200 NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1")
9201 // fin_wait_2
9202 // Stability: development
9203 NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2")
9204 // last_ack
9205 // Stability: development
9206 NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack")
9207 // listen
9208 // Stability: development
9209 NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen")
9210 // syn_received
9211 // Stability: development
9212 NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received")
9213 // syn_sent
9214 // Stability: development
9215 NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent")
9216 // time_wait
9217 // Stability: development
9218 NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait")
9219 )
9220
9221 // Enum values for network.connection.subtype
9222 var (
9223 // GPRS
9224 // Stability: development
9225 NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
9226 // EDGE
9227 // Stability: development
9228 NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
9229 // UMTS
9230 // Stability: development
9231 NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
9232 // CDMA
9233 // Stability: development
9234 NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
9235 // EVDO Rel. 0
9236 // Stability: development
9237 NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
9238 // EVDO Rev. A
9239 // Stability: development
9240 NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
9241 // CDMA2000 1XRTT
9242 // Stability: development
9243 NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
9244 // HSDPA
9245 // Stability: development
9246 NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
9247 // HSUPA
9248 // Stability: development
9249 NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
9250 // HSPA
9251 // Stability: development
9252 NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
9253 // IDEN
9254 // Stability: development
9255 NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
9256 // EVDO Rev. B
9257 // Stability: development
9258 NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
9259 // LTE
9260 // Stability: development
9261 NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
9262 // EHRPD
9263 // Stability: development
9264 NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
9265 // HSPAP
9266 // Stability: development
9267 NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
9268 // GSM
9269 // Stability: development
9270 NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
9271 // TD-SCDMA
9272 // Stability: development
9273 NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
9274 // IWLAN
9275 // Stability: development
9276 NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
9277 // 5G NR (New Radio)
9278 // Stability: development
9279 NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
9280 // 5G NRNSA (New Radio Non-Standalone)
9281 // Stability: development
9282 NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
9283 // LTE CA
9284 // Stability: development
9285 NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
9286 )
9287
9288 // Enum values for network.connection.type
9289 var (
9290 // wifi
9291 // Stability: development
9292 NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
9293 // wired
9294 // Stability: development
9295 NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
9296 // cell
9297 // Stability: development
9298 NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
9299 // unavailable
9300 // Stability: development
9301 NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
9302 // unknown
9303 // Stability: development
9304 NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
9305 )
9306
9307 // Enum values for network.io.direction
9308 var (
9309 // transmit
9310 // Stability: development
9311 NetworkIODirectionTransmit = NetworkIODirectionKey.String("transmit")
9312 // receive
9313 // Stability: development
9314 NetworkIODirectionReceive = NetworkIODirectionKey.String("receive")
9315 )
9316
9317 // Enum values for network.transport
9318 var (
9319 // TCP
9320 // Stability: stable
9321 NetworkTransportTCP = NetworkTransportKey.String("tcp")
9322 // UDP
9323 // Stability: stable
9324 NetworkTransportUDP = NetworkTransportKey.String("udp")
9325 // Named or anonymous pipe.
9326 // Stability: stable
9327 NetworkTransportPipe = NetworkTransportKey.String("pipe")
9328 // Unix domain socket
9329 // Stability: stable
9330 NetworkTransportUnix = NetworkTransportKey.String("unix")
9331 // QUIC
9332 // Stability: development
9333 NetworkTransportQUIC = NetworkTransportKey.String("quic")
9334 )
9335
9336 // Enum values for network.type
9337 var (
9338 // IPv4
9339 // Stability: stable
9340 NetworkTypeIPv4 = NetworkTypeKey.String("ipv4")
9341 // IPv6
9342 // Stability: stable
9343 NetworkTypeIPv6 = NetworkTypeKey.String("ipv6")
9344 )
9345
9346 // Namespace: oci
9347 const (
9348 // OCIManifestDigestKey is the attribute Key conforming to the
9349 // "oci.manifest.digest" semantic conventions. It represents the digest of the
9350 // OCI image manifest. For container images specifically is the digest by which
9351 // the container image is known.
9352 //
9353 // Type: string
9354 // RequirementLevel: Recommended
9355 // Stability: Development
9356 //
9357 // Examples:
9358 // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
9359 // Note: Follows [OCI Image Manifest Specification], and specifically the
9360 // [Digest property].
9361 // An example can be found in [Example Image Manifest].
9362 //
9363 // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
9364 // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
9365 // [Example Image Manifest]: https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest
9366 OCIManifestDigestKey = attribute.Key("oci.manifest.digest")
9367 )
9368
9369 // OCIManifestDigest returns an attribute KeyValue conforming to the
9370 // "oci.manifest.digest" semantic conventions. It represents the digest of the
9371 // OCI image manifest. For container images specifically is the digest by which
9372 // the container image is known.
9373 func OCIManifestDigest(val string) attribute.KeyValue {
9374 return OCIManifestDigestKey.String(val)
9375 }
9376
9377 // Namespace: opentracing
9378 const (
9379 // OpenTracingRefTypeKey is the attribute Key conforming to the
9380 // "opentracing.ref_type" semantic conventions. It represents the parent-child
9381 // Reference type.
9382 //
9383 // Type: Enum
9384 // RequirementLevel: Recommended
9385 // Stability: Development
9386 //
9387 // Examples:
9388 // Note: The causal relationship between a child Span and a parent Span.
9389 OpenTracingRefTypeKey = attribute.Key("opentracing.ref_type")
9390 )
9391
9392 // Enum values for opentracing.ref_type
9393 var (
9394 // The parent Span depends on the child Span in some capacity
9395 // Stability: development
9396 OpenTracingRefTypeChildOf = OpenTracingRefTypeKey.String("child_of")
9397 // The parent Span doesn't depend in any way on the result of the child Span
9398 // Stability: development
9399 OpenTracingRefTypeFollowsFrom = OpenTracingRefTypeKey.String("follows_from")
9400 )
9401
9402 // Namespace: os
9403 const (
9404 // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
9405 // conventions. It represents the unique identifier for a particular build or
9406 // compilation of the operating system.
9407 //
9408 // Type: string
9409 // RequirementLevel: Recommended
9410 // Stability: Development
9411 //
9412 // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
9413 OSBuildIDKey = attribute.Key("os.build_id")
9414
9415 // OSDescriptionKey is the attribute Key conforming to the "os.description"
9416 // semantic conventions. It represents the human readable (not intended to be
9417 // parsed) OS version information, like e.g. reported by `ver` or
9418 // `lsb_release -a` commands.
9419 //
9420 // Type: string
9421 // RequirementLevel: Recommended
9422 // Stability: Development
9423 //
9424 // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
9425 OSDescriptionKey = attribute.Key("os.description")
9426
9427 // OSNameKey is the attribute Key conforming to the "os.name" semantic
9428 // conventions. It represents the human readable operating system name.
9429 //
9430 // Type: string
9431 // RequirementLevel: Recommended
9432 // Stability: Development
9433 //
9434 // Examples: "iOS", "Android", "Ubuntu"
9435 OSNameKey = attribute.Key("os.name")
9436
9437 // OSTypeKey is the attribute Key conforming to the "os.type" semantic
9438 // conventions. It represents the operating system type.
9439 //
9440 // Type: Enum
9441 // RequirementLevel: Recommended
9442 // Stability: Development
9443 //
9444 // Examples:
9445 OSTypeKey = attribute.Key("os.type")
9446
9447 // OSVersionKey is the attribute Key conforming to the "os.version" semantic
9448 // conventions. It represents the version string of the operating system as
9449 // defined in [Version Attributes].
9450 //
9451 // Type: string
9452 // RequirementLevel: Recommended
9453 // Stability: Development
9454 //
9455 // Examples: "14.2.1", "18.04.1"
9456 //
9457 // [Version Attributes]: /docs/resource/README.md#version-attributes
9458 OSVersionKey = attribute.Key("os.version")
9459 )
9460
9461 // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
9462 // semantic conventions. It represents the unique identifier for a particular
9463 // build or compilation of the operating system.
9464 func OSBuildID(val string) attribute.KeyValue {
9465 return OSBuildIDKey.String(val)
9466 }
9467
9468 // OSDescription returns an attribute KeyValue conforming to the "os.description"
9469 // semantic conventions. It represents the human readable (not intended to be
9470 // parsed) OS version information, like e.g. reported by `ver` or
9471 // `lsb_release -a` commands.
9472 func OSDescription(val string) attribute.KeyValue {
9473 return OSDescriptionKey.String(val)
9474 }
9475
9476 // OSName returns an attribute KeyValue conforming to the "os.name" semantic
9477 // conventions. It represents the human readable operating system name.
9478 func OSName(val string) attribute.KeyValue {
9479 return OSNameKey.String(val)
9480 }
9481
9482 // OSVersion returns an attribute KeyValue conforming to the "os.version"
9483 // semantic conventions. It represents the version string of the operating system
9484 // as defined in [Version Attributes].
9485 //
9486 // [Version Attributes]: /docs/resource/README.md#version-attributes
9487 func OSVersion(val string) attribute.KeyValue {
9488 return OSVersionKey.String(val)
9489 }
9490
9491 // Enum values for os.type
9492 var (
9493 // Microsoft Windows
9494 // Stability: development
9495 OSTypeWindows = OSTypeKey.String("windows")
9496 // Linux
9497 // Stability: development
9498 OSTypeLinux = OSTypeKey.String("linux")
9499 // Apple Darwin
9500 // Stability: development
9501 OSTypeDarwin = OSTypeKey.String("darwin")
9502 // FreeBSD
9503 // Stability: development
9504 OSTypeFreeBSD = OSTypeKey.String("freebsd")
9505 // NetBSD
9506 // Stability: development
9507 OSTypeNetBSD = OSTypeKey.String("netbsd")
9508 // OpenBSD
9509 // Stability: development
9510 OSTypeOpenBSD = OSTypeKey.String("openbsd")
9511 // DragonFly BSD
9512 // Stability: development
9513 OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
9514 // HP-UX (Hewlett Packard Unix)
9515 // Stability: development
9516 OSTypeHPUX = OSTypeKey.String("hpux")
9517 // AIX (Advanced Interactive eXecutive)
9518 // Stability: development
9519 OSTypeAIX = OSTypeKey.String("aix")
9520 // SunOS, Oracle Solaris
9521 // Stability: development
9522 OSTypeSolaris = OSTypeKey.String("solaris")
9523 // IBM z/OS
9524 // Stability: development
9525 OSTypeZOS = OSTypeKey.String("z_os")
9526 )
9527
9528 // Namespace: otel
9529 const (
9530 // OTelComponentNameKey is the attribute Key conforming to the
9531 // "otel.component.name" semantic conventions. It represents a name uniquely
9532 // identifying the instance of the OpenTelemetry component within its containing
9533 // SDK instance.
9534 //
9535 // Type: string
9536 // RequirementLevel: Recommended
9537 // Stability: Development
9538 //
9539 // Examples: "otlp_grpc_span_exporter/0", "custom-name"
9540 // Note: Implementations SHOULD ensure a low cardinality for this attribute,
9541 // even across application or SDK restarts.
9542 // E.g. implementations MUST NOT use UUIDs as values for this attribute.
9543 //
9544 // Implementations MAY achieve these goals by following a
9545 // `<otel.component.type>/<instance-counter>` pattern, e.g.
9546 // `batching_span_processor/0`.
9547 // Hereby `otel.component.type` refers to the corresponding attribute value of
9548 // the component.
9549 //
9550 // The value of `instance-counter` MAY be automatically assigned by the
9551 // component and uniqueness within the enclosing SDK instance MUST be
9552 // guaranteed.
9553 // For example, `<instance-counter>` MAY be implemented by using a monotonically
9554 // increasing counter (starting with `0`), which is incremented every time an
9555 // instance of the given component type is started.
9556 //
9557 // With this implementation, for example the first Batching Span Processor would
9558 // have `batching_span_processor/0`
9559 // as `otel.component.name`, the second one `batching_span_processor/1` and so
9560 // on.
9561 // These values will therefore be reused in the case of an application restart.
9562 OTelComponentNameKey = attribute.Key("otel.component.name")
9563
9564 // OTelComponentTypeKey is the attribute Key conforming to the
9565 // "otel.component.type" semantic conventions. It represents a name identifying
9566 // the type of the OpenTelemetry component.
9567 //
9568 // Type: Enum
9569 // RequirementLevel: Recommended
9570 // Stability: Development
9571 //
9572 // Examples: "batching_span_processor", "com.example.MySpanExporter"
9573 // Note: If none of the standardized values apply, implementations SHOULD use
9574 // the language-defined name of the type.
9575 // E.g. for Java the fully qualified classname SHOULD be used in this case.
9576 OTelComponentTypeKey = attribute.Key("otel.component.type")
9577
9578 // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
9579 // semantic conventions. It represents the name of the instrumentation scope - (
9580 // `InstrumentationScope.Name` in OTLP).
9581 //
9582 // Type: string
9583 // RequirementLevel: Recommended
9584 // Stability: Stable
9585 //
9586 // Examples: "io.opentelemetry.contrib.mongodb"
9587 OTelScopeNameKey = attribute.Key("otel.scope.name")
9588
9589 // OTelScopeVersionKey is the attribute Key conforming to the
9590 // "otel.scope.version" semantic conventions. It represents the version of the
9591 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
9592 //
9593 // Type: string
9594 // RequirementLevel: Recommended
9595 // Stability: Stable
9596 //
9597 // Examples: "1.0.0"
9598 OTelScopeVersionKey = attribute.Key("otel.scope.version")
9599
9600 // OTelSpanSamplingResultKey is the attribute Key conforming to the
9601 // "otel.span.sampling_result" semantic conventions. It represents the result
9602 // value of the sampler for this span.
9603 //
9604 // Type: Enum
9605 // RequirementLevel: Recommended
9606 // Stability: Development
9607 //
9608 // Examples:
9609 OTelSpanSamplingResultKey = attribute.Key("otel.span.sampling_result")
9610
9611 // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
9612 // semantic conventions. It represents the name of the code, either "OK" or
9613 // "ERROR". MUST NOT be set if the status code is UNSET.
9614 //
9615 // Type: Enum
9616 // RequirementLevel: Recommended
9617 // Stability: Stable
9618 //
9619 // Examples:
9620 OTelStatusCodeKey = attribute.Key("otel.status_code")
9621
9622 // OTelStatusDescriptionKey is the attribute Key conforming to the
9623 // "otel.status_description" semantic conventions. It represents the description
9624 // of the Status if it has a value, otherwise not set.
9625 //
9626 // Type: string
9627 // RequirementLevel: Recommended
9628 // Stability: Stable
9629 //
9630 // Examples: "resource not found"
9631 OTelStatusDescriptionKey = attribute.Key("otel.status_description")
9632 )
9633
9634 // OTelComponentName returns an attribute KeyValue conforming to the
9635 // "otel.component.name" semantic conventions. It represents a name uniquely
9636 // identifying the instance of the OpenTelemetry component within its containing
9637 // SDK instance.
9638 func OTelComponentName(val string) attribute.KeyValue {
9639 return OTelComponentNameKey.String(val)
9640 }
9641
9642 // OTelScopeName returns an attribute KeyValue conforming to the
9643 // "otel.scope.name" semantic conventions. It represents the name of the
9644 // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
9645 func OTelScopeName(val string) attribute.KeyValue {
9646 return OTelScopeNameKey.String(val)
9647 }
9648
9649 // OTelScopeVersion returns an attribute KeyValue conforming to the
9650 // "otel.scope.version" semantic conventions. It represents the version of the
9651 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
9652 func OTelScopeVersion(val string) attribute.KeyValue {
9653 return OTelScopeVersionKey.String(val)
9654 }
9655
9656 // OTelStatusDescription returns an attribute KeyValue conforming to the
9657 // "otel.status_description" semantic conventions. It represents the description
9658 // of the Status if it has a value, otherwise not set.
9659 func OTelStatusDescription(val string) attribute.KeyValue {
9660 return OTelStatusDescriptionKey.String(val)
9661 }
9662
9663 // Enum values for otel.component.type
9664 var (
9665 // The builtin SDK batching span processor
9666 //
9667 // Stability: development
9668 OTelComponentTypeBatchingSpanProcessor = OTelComponentTypeKey.String("batching_span_processor")
9669 // The builtin SDK simple span processor
9670 //
9671 // Stability: development
9672 OTelComponentTypeSimpleSpanProcessor = OTelComponentTypeKey.String("simple_span_processor")
9673 // The builtin SDK batching log record processor
9674 //
9675 // Stability: development
9676 OTelComponentTypeBatchingLogProcessor = OTelComponentTypeKey.String("batching_log_processor")
9677 // The builtin SDK simple log record processor
9678 //
9679 // Stability: development
9680 OTelComponentTypeSimpleLogProcessor = OTelComponentTypeKey.String("simple_log_processor")
9681 // OTLP span exporter over gRPC with protobuf serialization
9682 //
9683 // Stability: development
9684 OTelComponentTypeOtlpGRPCSpanExporter = OTelComponentTypeKey.String("otlp_grpc_span_exporter")
9685 // OTLP span exporter over HTTP with protobuf serialization
9686 //
9687 // Stability: development
9688 OTelComponentTypeOtlpHTTPSpanExporter = OTelComponentTypeKey.String("otlp_http_span_exporter")
9689 // OTLP span exporter over HTTP with JSON serialization
9690 //
9691 // Stability: development
9692 OTelComponentTypeOtlpHTTPJSONSpanExporter = OTelComponentTypeKey.String("otlp_http_json_span_exporter")
9693 // OTLP log record exporter over gRPC with protobuf serialization
9694 //
9695 // Stability: development
9696 OTelComponentTypeOtlpGRPCLogExporter = OTelComponentTypeKey.String("otlp_grpc_log_exporter")
9697 // OTLP log record exporter over HTTP with protobuf serialization
9698 //
9699 // Stability: development
9700 OTelComponentTypeOtlpHTTPLogExporter = OTelComponentTypeKey.String("otlp_http_log_exporter")
9701 // OTLP log record exporter over HTTP with JSON serialization
9702 //
9703 // Stability: development
9704 OTelComponentTypeOtlpHTTPJSONLogExporter = OTelComponentTypeKey.String("otlp_http_json_log_exporter")
9705 // The builtin SDK periodically exporting metric reader
9706 //
9707 // Stability: development
9708 OTelComponentTypePeriodicMetricReader = OTelComponentTypeKey.String("periodic_metric_reader")
9709 // OTLP metric exporter over gRPC with protobuf serialization
9710 //
9711 // Stability: development
9712 OTelComponentTypeOtlpGRPCMetricExporter = OTelComponentTypeKey.String("otlp_grpc_metric_exporter")
9713 // OTLP metric exporter over HTTP with protobuf serialization
9714 //
9715 // Stability: development
9716 OTelComponentTypeOtlpHTTPMetricExporter = OTelComponentTypeKey.String("otlp_http_metric_exporter")
9717 // OTLP metric exporter over HTTP with JSON serialization
9718 //
9719 // Stability: development
9720 OTelComponentTypeOtlpHTTPJSONMetricExporter = OTelComponentTypeKey.String("otlp_http_json_metric_exporter")
9721 )
9722
9723 // Enum values for otel.span.sampling_result
9724 var (
9725 // The span is not sampled and not recording
9726 // Stability: development
9727 OTelSpanSamplingResultDrop = OTelSpanSamplingResultKey.String("DROP")
9728 // The span is not sampled, but recording
9729 // Stability: development
9730 OTelSpanSamplingResultRecordOnly = OTelSpanSamplingResultKey.String("RECORD_ONLY")
9731 // The span is sampled and recording
9732 // Stability: development
9733 OTelSpanSamplingResultRecordAndSample = OTelSpanSamplingResultKey.String("RECORD_AND_SAMPLE")
9734 )
9735
9736 // Enum values for otel.status_code
9737 var (
9738 // The operation has been validated by an Application developer or Operator to
9739 // have completed successfully.
9740 // Stability: stable
9741 OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
9742 // The operation contains an error.
9743 // Stability: stable
9744 OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
9745 )
9746
9747 // Namespace: peer
9748 const (
9749 // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic
9750 // conventions. It represents the [`service.name`] of the remote service. SHOULD
9751 // be equal to the actual `service.name` resource attribute of the remote
9752 // service if any.
9753 //
9754 // Type: string
9755 // RequirementLevel: Recommended
9756 // Stability: Development
9757 //
9758 // Examples: AuthTokenCache
9759 //
9760 // [`service.name`]: /docs/resource/README.md#service
9761 PeerServiceKey = attribute.Key("peer.service")
9762 )
9763
9764 // PeerService returns an attribute KeyValue conforming to the "peer.service"
9765 // semantic conventions. It represents the [`service.name`] of the remote
9766 // service. SHOULD be equal to the actual `service.name` resource attribute of
9767 // the remote service if any.
9768 //
9769 // [`service.name`]: /docs/resource/README.md#service
9770 func PeerService(val string) attribute.KeyValue {
9771 return PeerServiceKey.String(val)
9772 }
9773
9774 // Namespace: process
9775 const (
9776 // ProcessArgsCountKey is the attribute Key conforming to the
9777 // "process.args_count" semantic conventions. It represents the length of the
9778 // process.command_args array.
9779 //
9780 // Type: int
9781 // RequirementLevel: Recommended
9782 // Stability: Development
9783 //
9784 // Examples: 4
9785 // Note: This field can be useful for querying or performing bucket analysis on
9786 // how many arguments were provided to start a process. More arguments may be an
9787 // indication of suspicious activity.
9788 ProcessArgsCountKey = attribute.Key("process.args_count")
9789
9790 // ProcessCommandKey is the attribute Key conforming to the "process.command"
9791 // semantic conventions. It represents the command used to launch the process
9792 // (i.e. the command name). On Linux based systems, can be set to the zeroth
9793 // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
9794 // extracted from `GetCommandLineW`.
9795 //
9796 // Type: string
9797 // RequirementLevel: Recommended
9798 // Stability: Development
9799 //
9800 // Examples: "cmd/otelcol"
9801 ProcessCommandKey = attribute.Key("process.command")
9802
9803 // ProcessCommandArgsKey is the attribute Key conforming to the
9804 // "process.command_args" semantic conventions. It represents the all the
9805 // command arguments (including the command/executable itself) as received by
9806 // the process. On Linux-based systems (and some other Unixoid systems
9807 // supporting procfs), can be set according to the list of null-delimited
9808 // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
9809 // would be the full argv vector passed to `main`.
9810 //
9811 // Type: string[]
9812 // RequirementLevel: Recommended
9813 // Stability: Development
9814 //
9815 // Examples: "cmd/otecol", "--config=config.yaml"
9816 ProcessCommandArgsKey = attribute.Key("process.command_args")
9817
9818 // ProcessCommandLineKey is the attribute Key conforming to the
9819 // "process.command_line" semantic conventions. It represents the full command
9820 // used to launch the process as a single string representing the full command.
9821 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
9822 // you have to assemble it just for monitoring; use `process.command_args`
9823 // instead.
9824 //
9825 // Type: string
9826 // RequirementLevel: Recommended
9827 // Stability: Development
9828 //
9829 // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
9830 ProcessCommandLineKey = attribute.Key("process.command_line")
9831
9832 // ProcessContextSwitchTypeKey is the attribute Key conforming to the
9833 // "process.context_switch_type" semantic conventions. It represents the
9834 // specifies whether the context switches for this data point were voluntary or
9835 // involuntary.
9836 //
9837 // Type: Enum
9838 // RequirementLevel: Recommended
9839 // Stability: Development
9840 //
9841 // Examples:
9842 ProcessContextSwitchTypeKey = attribute.Key("process.context_switch_type")
9843
9844 // ProcessCreationTimeKey is the attribute Key conforming to the
9845 // "process.creation.time" semantic conventions. It represents the date and time
9846 // the process was created, in ISO 8601 format.
9847 //
9848 // Type: string
9849 // RequirementLevel: Recommended
9850 // Stability: Development
9851 //
9852 // Examples: "2023-11-21T09:25:34.853Z"
9853 ProcessCreationTimeKey = attribute.Key("process.creation.time")
9854
9855 // ProcessExecutableBuildIDGNUKey is the attribute Key conforming to the
9856 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
9857 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
9858 //
9859 // Type: string
9860 // RequirementLevel: Recommended
9861 // Stability: Development
9862 //
9863 // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
9864 ProcessExecutableBuildIDGNUKey = attribute.Key("process.executable.build_id.gnu")
9865
9866 // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the
9867 // "process.executable.build_id.go" semantic conventions. It represents the Go
9868 // build ID as retrieved by `go tool buildid <go executable>`.
9869 //
9870 // Type: string
9871 // RequirementLevel: Recommended
9872 // Stability: Development
9873 //
9874 // Examples:
9875 // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
9876 ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
9877
9878 // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the
9879 // "process.executable.build_id.htlhash" semantic conventions. It represents the
9880 // profiling specific build ID for executables. See the OTel specification for
9881 // Profiles for more information.
9882 //
9883 // Type: string
9884 // RequirementLevel: Recommended
9885 // Stability: Development
9886 //
9887 // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
9888 ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash")
9889
9890 // ProcessExecutableNameKey is the attribute Key conforming to the
9891 // "process.executable.name" semantic conventions. It represents the name of the
9892 // process executable. On Linux based systems, this SHOULD be set to the base
9893 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to
9894 // the base name of `GetProcessImageFileNameW`.
9895 //
9896 // Type: string
9897 // RequirementLevel: Recommended
9898 // Stability: Development
9899 //
9900 // Examples: "otelcol"
9901 ProcessExecutableNameKey = attribute.Key("process.executable.name")
9902
9903 // ProcessExecutablePathKey is the attribute Key conforming to the
9904 // "process.executable.path" semantic conventions. It represents the full path
9905 // to the process executable. On Linux based systems, can be set to the target
9906 // of `proc/[pid]/exe`. On Windows, can be set to the result of
9907 // `GetProcessImageFileNameW`.
9908 //
9909 // Type: string
9910 // RequirementLevel: Recommended
9911 // Stability: Development
9912 //
9913 // Examples: "/usr/bin/cmd/otelcol"
9914 ProcessExecutablePathKey = attribute.Key("process.executable.path")
9915
9916 // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
9917 // semantic conventions. It represents the exit code of the process.
9918 //
9919 // Type: int
9920 // RequirementLevel: Recommended
9921 // Stability: Development
9922 //
9923 // Examples: 127
9924 ProcessExitCodeKey = attribute.Key("process.exit.code")
9925
9926 // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
9927 // semantic conventions. It represents the date and time the process exited, in
9928 // ISO 8601 format.
9929 //
9930 // Type: string
9931 // RequirementLevel: Recommended
9932 // Stability: Development
9933 //
9934 // Examples: "2023-11-21T09:26:12.315Z"
9935 ProcessExitTimeKey = attribute.Key("process.exit.time")
9936
9937 // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
9938 // "process.group_leader.pid" semantic conventions. It represents the PID of the
9939 // process's group leader. This is also the process group ID (PGID) of the
9940 // process.
9941 //
9942 // Type: int
9943 // RequirementLevel: Recommended
9944 // Stability: Development
9945 //
9946 // Examples: 23
9947 ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
9948
9949 // ProcessInteractiveKey is the attribute Key conforming to the
9950 // "process.interactive" semantic conventions. It represents the whether the
9951 // process is connected to an interactive shell.
9952 //
9953 // Type: boolean
9954 // RequirementLevel: Recommended
9955 // Stability: Development
9956 //
9957 // Examples:
9958 ProcessInteractiveKey = attribute.Key("process.interactive")
9959
9960 // ProcessLinuxCgroupKey is the attribute Key conforming to the
9961 // "process.linux.cgroup" semantic conventions. It represents the control group
9962 // associated with the process.
9963 //
9964 // Type: string
9965 // RequirementLevel: Recommended
9966 // Stability: Development
9967 //
9968 // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope",
9969 // "0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"
9970 // Note: Control groups (cgroups) are a kernel feature used to organize and
9971 // manage process resources. This attribute provides the path(s) to the
9972 // cgroup(s) associated with the process, which should match the contents of the
9973 // [/proc/[PID]/cgroup] file.
9974 //
9975 // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html
9976 ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup")
9977
9978 // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
9979 // semantic conventions. It represents the username of the user that owns the
9980 // process.
9981 //
9982 // Type: string
9983 // RequirementLevel: Recommended
9984 // Stability: Development
9985 //
9986 // Examples: "root"
9987 ProcessOwnerKey = attribute.Key("process.owner")
9988
9989 // ProcessPagingFaultTypeKey is the attribute Key conforming to the
9990 // "process.paging.fault_type" semantic conventions. It represents the type of
9991 // page fault for this data point. Type `major` is for major/hard page faults,
9992 // and `minor` is for minor/soft page faults.
9993 //
9994 // Type: Enum
9995 // RequirementLevel: Recommended
9996 // Stability: Development
9997 //
9998 // Examples:
9999 ProcessPagingFaultTypeKey = attribute.Key("process.paging.fault_type")
10000
10001 // ProcessParentPIDKey is the attribute Key conforming to the
10002 // "process.parent_pid" semantic conventions. It represents the parent Process
10003 // identifier (PPID).
10004 //
10005 // Type: int
10006 // RequirementLevel: Recommended
10007 // Stability: Development
10008 //
10009 // Examples: 111
10010 ProcessParentPIDKey = attribute.Key("process.parent_pid")
10011
10012 // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
10013 // conventions. It represents the process identifier (PID).
10014 //
10015 // Type: int
10016 // RequirementLevel: Recommended
10017 // Stability: Development
10018 //
10019 // Examples: 1234
10020 ProcessPIDKey = attribute.Key("process.pid")
10021
10022 // ProcessRealUserIDKey is the attribute Key conforming to the
10023 // "process.real_user.id" semantic conventions. It represents the real user ID
10024 // (RUID) of the process.
10025 //
10026 // Type: int
10027 // RequirementLevel: Recommended
10028 // Stability: Development
10029 //
10030 // Examples: 1000
10031 ProcessRealUserIDKey = attribute.Key("process.real_user.id")
10032
10033 // ProcessRealUserNameKey is the attribute Key conforming to the
10034 // "process.real_user.name" semantic conventions. It represents the username of
10035 // the real user of the process.
10036 //
10037 // Type: string
10038 // RequirementLevel: Recommended
10039 // Stability: Development
10040 //
10041 // Examples: "operator"
10042 ProcessRealUserNameKey = attribute.Key("process.real_user.name")
10043
10044 // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
10045 // "process.runtime.description" semantic conventions. It represents an
10046 // additional description about the runtime of the process, for example a
10047 // specific vendor customization of the runtime environment.
10048 //
10049 // Type: string
10050 // RequirementLevel: Recommended
10051 // Stability: Development
10052 //
10053 // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
10054 ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
10055
10056 // ProcessRuntimeNameKey is the attribute Key conforming to the
10057 // "process.runtime.name" semantic conventions. It represents the name of the
10058 // runtime of this process.
10059 //
10060 // Type: string
10061 // RequirementLevel: Recommended
10062 // Stability: Development
10063 //
10064 // Examples: "OpenJDK Runtime Environment"
10065 ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
10066
10067 // ProcessRuntimeVersionKey is the attribute Key conforming to the
10068 // "process.runtime.version" semantic conventions. It represents the version of
10069 // the runtime of this process, as returned by the runtime without modification.
10070 //
10071 // Type: string
10072 // RequirementLevel: Recommended
10073 // Stability: Development
10074 //
10075 // Examples: 14.0.2
10076 ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
10077
10078 // ProcessSavedUserIDKey is the attribute Key conforming to the
10079 // "process.saved_user.id" semantic conventions. It represents the saved user ID
10080 // (SUID) of the process.
10081 //
10082 // Type: int
10083 // RequirementLevel: Recommended
10084 // Stability: Development
10085 //
10086 // Examples: 1002
10087 ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
10088
10089 // ProcessSavedUserNameKey is the attribute Key conforming to the
10090 // "process.saved_user.name" semantic conventions. It represents the username of
10091 // the saved user.
10092 //
10093 // Type: string
10094 // RequirementLevel: Recommended
10095 // Stability: Development
10096 //
10097 // Examples: "operator"
10098 ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
10099
10100 // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
10101 // "process.session_leader.pid" semantic conventions. It represents the PID of
10102 // the process's session leader. This is also the session ID (SID) of the
10103 // process.
10104 //
10105 // Type: int
10106 // RequirementLevel: Recommended
10107 // Stability: Development
10108 //
10109 // Examples: 14
10110 ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
10111
10112 // ProcessTitleKey is the attribute Key conforming to the "process.title"
10113 // semantic conventions. It represents the process title (proctitle).
10114 //
10115 // Type: string
10116 // RequirementLevel: Recommended
10117 // Stability: Development
10118 //
10119 // Examples: "cat /etc/hostname", "xfce4-session", "bash"
10120 // Note: In many Unix-like systems, process title (proctitle), is the string
10121 // that represents the name or command line of a running process, displayed by
10122 // system monitoring tools like ps, top, and htop.
10123 ProcessTitleKey = attribute.Key("process.title")
10124
10125 // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
10126 // semantic conventions. It represents the effective user ID (EUID) of the
10127 // process.
10128 //
10129 // Type: int
10130 // RequirementLevel: Recommended
10131 // Stability: Development
10132 //
10133 // Examples: 1001
10134 ProcessUserIDKey = attribute.Key("process.user.id")
10135
10136 // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
10137 // semantic conventions. It represents the username of the effective user of the
10138 // process.
10139 //
10140 // Type: string
10141 // RequirementLevel: Recommended
10142 // Stability: Development
10143 //
10144 // Examples: "root"
10145 ProcessUserNameKey = attribute.Key("process.user.name")
10146
10147 // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
10148 // conventions. It represents the virtual process identifier.
10149 //
10150 // Type: int
10151 // RequirementLevel: Recommended
10152 // Stability: Development
10153 //
10154 // Examples: 12
10155 // Note: The process ID within a PID namespace. This is not necessarily unique
10156 // across all processes on the host but it is unique within the process
10157 // namespace that the process exists within.
10158 ProcessVpidKey = attribute.Key("process.vpid")
10159
10160 // ProcessWorkingDirectoryKey is the attribute Key conforming to the
10161 // "process.working_directory" semantic conventions. It represents the working
10162 // directory of the process.
10163 //
10164 // Type: string
10165 // RequirementLevel: Recommended
10166 // Stability: Development
10167 //
10168 // Examples: "/root"
10169 ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
10170 )
10171
10172 // ProcessArgsCount returns an attribute KeyValue conforming to the
10173 // "process.args_count" semantic conventions. It represents the length of the
10174 // process.command_args array.
10175 func ProcessArgsCount(val int) attribute.KeyValue {
10176 return ProcessArgsCountKey.Int(val)
10177 }
10178
10179 // ProcessCommand returns an attribute KeyValue conforming to the
10180 // "process.command" semantic conventions. It represents the command used to
10181 // launch the process (i.e. the command name). On Linux based systems, can be set
10182 // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
10183 // first parameter extracted from `GetCommandLineW`.
10184 func ProcessCommand(val string) attribute.KeyValue {
10185 return ProcessCommandKey.String(val)
10186 }
10187
10188 // ProcessCommandArgs returns an attribute KeyValue conforming to the
10189 // "process.command_args" semantic conventions. It represents the all the command
10190 // arguments (including the command/executable itself) as received by the
10191 // process. On Linux-based systems (and some other Unixoid systems supporting
10192 // procfs), can be set according to the list of null-delimited strings extracted
10193 // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
10194 // argv vector passed to `main`.
10195 func ProcessCommandArgs(val ...string) attribute.KeyValue {
10196 return ProcessCommandArgsKey.StringSlice(val)
10197 }
10198
10199 // ProcessCommandLine returns an attribute KeyValue conforming to the
10200 // "process.command_line" semantic conventions. It represents the full command
10201 // used to launch the process as a single string representing the full command.
10202 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
10203 // you have to assemble it just for monitoring; use `process.command_args`
10204 // instead.
10205 func ProcessCommandLine(val string) attribute.KeyValue {
10206 return ProcessCommandLineKey.String(val)
10207 }
10208
10209 // ProcessCreationTime returns an attribute KeyValue conforming to the
10210 // "process.creation.time" semantic conventions. It represents the date and time
10211 // the process was created, in ISO 8601 format.
10212 func ProcessCreationTime(val string) attribute.KeyValue {
10213 return ProcessCreationTimeKey.String(val)
10214 }
10215
10216 // ProcessExecutableBuildIDGNU returns an attribute KeyValue conforming to the
10217 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
10218 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
10219 func ProcessExecutableBuildIDGNU(val string) attribute.KeyValue {
10220 return ProcessExecutableBuildIDGNUKey.String(val)
10221 }
10222
10223 // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the
10224 // "process.executable.build_id.go" semantic conventions. It represents the Go
10225 // build ID as retrieved by `go tool buildid <go executable>`.
10226 func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
10227 return ProcessExecutableBuildIDGoKey.String(val)
10228 }
10229
10230 // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to
10231 // the "process.executable.build_id.htlhash" semantic conventions. It represents
10232 // the profiling specific build ID for executables. See the OTel specification
10233 // for Profiles for more information.
10234 func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue {
10235 return ProcessExecutableBuildIDHtlhashKey.String(val)
10236 }
10237
10238 // ProcessExecutableName returns an attribute KeyValue conforming to the
10239 // "process.executable.name" semantic conventions. It represents the name of the
10240 // process executable. On Linux based systems, this SHOULD be set to the base
10241 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the
10242 // base name of `GetProcessImageFileNameW`.
10243 func ProcessExecutableName(val string) attribute.KeyValue {
10244 return ProcessExecutableNameKey.String(val)
10245 }
10246
10247 // ProcessExecutablePath returns an attribute KeyValue conforming to the
10248 // "process.executable.path" semantic conventions. It represents the full path to
10249 // the process executable. On Linux based systems, can be set to the target of
10250 // `proc/[pid]/exe`. On Windows, can be set to the result of
10251 // `GetProcessImageFileNameW`.
10252 func ProcessExecutablePath(val string) attribute.KeyValue {
10253 return ProcessExecutablePathKey.String(val)
10254 }
10255
10256 // ProcessExitCode returns an attribute KeyValue conforming to the
10257 // "process.exit.code" semantic conventions. It represents the exit code of the
10258 // process.
10259 func ProcessExitCode(val int) attribute.KeyValue {
10260 return ProcessExitCodeKey.Int(val)
10261 }
10262
10263 // ProcessExitTime returns an attribute KeyValue conforming to the
10264 // "process.exit.time" semantic conventions. It represents the date and time the
10265 // process exited, in ISO 8601 format.
10266 func ProcessExitTime(val string) attribute.KeyValue {
10267 return ProcessExitTimeKey.String(val)
10268 }
10269
10270 // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
10271 // "process.group_leader.pid" semantic conventions. It represents the PID of the
10272 // process's group leader. This is also the process group ID (PGID) of the
10273 // process.
10274 func ProcessGroupLeaderPID(val int) attribute.KeyValue {
10275 return ProcessGroupLeaderPIDKey.Int(val)
10276 }
10277
10278 // ProcessInteractive returns an attribute KeyValue conforming to the
10279 // "process.interactive" semantic conventions. It represents the whether the
10280 // process is connected to an interactive shell.
10281 func ProcessInteractive(val bool) attribute.KeyValue {
10282 return ProcessInteractiveKey.Bool(val)
10283 }
10284
10285 // ProcessLinuxCgroup returns an attribute KeyValue conforming to the
10286 // "process.linux.cgroup" semantic conventions. It represents the control group
10287 // associated with the process.
10288 func ProcessLinuxCgroup(val string) attribute.KeyValue {
10289 return ProcessLinuxCgroupKey.String(val)
10290 }
10291
10292 // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
10293 // semantic conventions. It represents the username of the user that owns the
10294 // process.
10295 func ProcessOwner(val string) attribute.KeyValue {
10296 return ProcessOwnerKey.String(val)
10297 }
10298
10299 // ProcessParentPID returns an attribute KeyValue conforming to the
10300 // "process.parent_pid" semantic conventions. It represents the parent Process
10301 // identifier (PPID).
10302 func ProcessParentPID(val int) attribute.KeyValue {
10303 return ProcessParentPIDKey.Int(val)
10304 }
10305
10306 // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
10307 // semantic conventions. It represents the process identifier (PID).
10308 func ProcessPID(val int) attribute.KeyValue {
10309 return ProcessPIDKey.Int(val)
10310 }
10311
10312 // ProcessRealUserID returns an attribute KeyValue conforming to the
10313 // "process.real_user.id" semantic conventions. It represents the real user ID
10314 // (RUID) of the process.
10315 func ProcessRealUserID(val int) attribute.KeyValue {
10316 return ProcessRealUserIDKey.Int(val)
10317 }
10318
10319 // ProcessRealUserName returns an attribute KeyValue conforming to the
10320 // "process.real_user.name" semantic conventions. It represents the username of
10321 // the real user of the process.
10322 func ProcessRealUserName(val string) attribute.KeyValue {
10323 return ProcessRealUserNameKey.String(val)
10324 }
10325
10326 // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
10327 // "process.runtime.description" semantic conventions. It represents an
10328 // additional description about the runtime of the process, for example a
10329 // specific vendor customization of the runtime environment.
10330 func ProcessRuntimeDescription(val string) attribute.KeyValue {
10331 return ProcessRuntimeDescriptionKey.String(val)
10332 }
10333
10334 // ProcessRuntimeName returns an attribute KeyValue conforming to the
10335 // "process.runtime.name" semantic conventions. It represents the name of the
10336 // runtime of this process.
10337 func ProcessRuntimeName(val string) attribute.KeyValue {
10338 return ProcessRuntimeNameKey.String(val)
10339 }
10340
10341 // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
10342 // "process.runtime.version" semantic conventions. It represents the version of
10343 // the runtime of this process, as returned by the runtime without modification.
10344 func ProcessRuntimeVersion(val string) attribute.KeyValue {
10345 return ProcessRuntimeVersionKey.String(val)
10346 }
10347
10348 // ProcessSavedUserID returns an attribute KeyValue conforming to the
10349 // "process.saved_user.id" semantic conventions. It represents the saved user ID
10350 // (SUID) of the process.
10351 func ProcessSavedUserID(val int) attribute.KeyValue {
10352 return ProcessSavedUserIDKey.Int(val)
10353 }
10354
10355 // ProcessSavedUserName returns an attribute KeyValue conforming to the
10356 // "process.saved_user.name" semantic conventions. It represents the username of
10357 // the saved user.
10358 func ProcessSavedUserName(val string) attribute.KeyValue {
10359 return ProcessSavedUserNameKey.String(val)
10360 }
10361
10362 // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
10363 // "process.session_leader.pid" semantic conventions. It represents the PID of
10364 // the process's session leader. This is also the session ID (SID) of the
10365 // process.
10366 func ProcessSessionLeaderPID(val int) attribute.KeyValue {
10367 return ProcessSessionLeaderPIDKey.Int(val)
10368 }
10369
10370 // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
10371 // semantic conventions. It represents the process title (proctitle).
10372 func ProcessTitle(val string) attribute.KeyValue {
10373 return ProcessTitleKey.String(val)
10374 }
10375
10376 // ProcessUserID returns an attribute KeyValue conforming to the
10377 // "process.user.id" semantic conventions. It represents the effective user ID
10378 // (EUID) of the process.
10379 func ProcessUserID(val int) attribute.KeyValue {
10380 return ProcessUserIDKey.Int(val)
10381 }
10382
10383 // ProcessUserName returns an attribute KeyValue conforming to the
10384 // "process.user.name" semantic conventions. It represents the username of the
10385 // effective user of the process.
10386 func ProcessUserName(val string) attribute.KeyValue {
10387 return ProcessUserNameKey.String(val)
10388 }
10389
10390 // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
10391 // semantic conventions. It represents the virtual process identifier.
10392 func ProcessVpid(val int) attribute.KeyValue {
10393 return ProcessVpidKey.Int(val)
10394 }
10395
10396 // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
10397 // "process.working_directory" semantic conventions. It represents the working
10398 // directory of the process.
10399 func ProcessWorkingDirectory(val string) attribute.KeyValue {
10400 return ProcessWorkingDirectoryKey.String(val)
10401 }
10402
10403 // Enum values for process.context_switch_type
10404 var (
10405 // voluntary
10406 // Stability: development
10407 ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
10408 // involuntary
10409 // Stability: development
10410 ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
10411 )
10412
10413 // Enum values for process.paging.fault_type
10414 var (
10415 // major
10416 // Stability: development
10417 ProcessPagingFaultTypeMajor = ProcessPagingFaultTypeKey.String("major")
10418 // minor
10419 // Stability: development
10420 ProcessPagingFaultTypeMinor = ProcessPagingFaultTypeKey.String("minor")
10421 )
10422
10423 // Namespace: profile
10424 const (
10425 // ProfileFrameTypeKey is the attribute Key conforming to the
10426 // "profile.frame.type" semantic conventions. It represents the describes the
10427 // interpreter or compiler of a single frame.
10428 //
10429 // Type: Enum
10430 // RequirementLevel: Recommended
10431 // Stability: Development
10432 //
10433 // Examples: "cpython"
10434 ProfileFrameTypeKey = attribute.Key("profile.frame.type")
10435 )
10436
10437 // Enum values for profile.frame.type
10438 var (
10439 // [.NET]
10440 //
10441 // Stability: development
10442 //
10443 // [.NET]: https://wikipedia.org/wiki/.NET
10444 ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
10445 // [JVM]
10446 //
10447 // Stability: development
10448 //
10449 // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
10450 ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
10451 // [Kernel]
10452 //
10453 // Stability: development
10454 //
10455 // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
10456 ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
10457 // Can be one of but not limited to [C], [C++], [Go] or [Rust]. If possible, a
10458 // more precise value MUST be used.
10459 //
10460 // Stability: development
10461 //
10462 // [C]: https://wikipedia.org/wiki/C_(programming_language)
10463 // [C++]: https://wikipedia.org/wiki/C%2B%2B
10464 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
10465 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
10466 ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
10467 // [Perl]
10468 //
10469 // Stability: development
10470 //
10471 // [Perl]: https://wikipedia.org/wiki/Perl
10472 ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
10473 // [PHP]
10474 //
10475 // Stability: development
10476 //
10477 // [PHP]: https://wikipedia.org/wiki/PHP
10478 ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
10479 // [Python]
10480 //
10481 // Stability: development
10482 //
10483 // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
10484 ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
10485 // [Ruby]
10486 //
10487 // Stability: development
10488 //
10489 // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
10490 ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
10491 // [V8JS]
10492 //
10493 // Stability: development
10494 //
10495 // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
10496 ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
10497 // [Erlang]
10498 //
10499 // Stability: development
10500 //
10501 // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)
10502 ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam")
10503 // [Go],
10504 //
10505 // Stability: development
10506 //
10507 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
10508 ProfileFrameTypeGo = ProfileFrameTypeKey.String("go")
10509 // [Rust]
10510 //
10511 // Stability: development
10512 //
10513 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
10514 ProfileFrameTypeRust = ProfileFrameTypeKey.String("rust")
10515 )
10516
10517 // Namespace: rpc
10518 const (
10519 // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the
10520 // "rpc.connect_rpc.error_code" semantic conventions. It represents the
10521 // [error codes] of the Connect request. Error codes are always string values.
10522 //
10523 // Type: Enum
10524 // RequirementLevel: Recommended
10525 // Stability: Development
10526 //
10527 // Examples:
10528 //
10529 // [error codes]: https://connectrpc.com//docs/protocol/#error-codes
10530 RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code")
10531
10532 // RPCGRPCStatusCodeKey is the attribute Key conforming to the
10533 // "rpc.grpc.status_code" semantic conventions. It represents the
10534 // [numeric status code] of the gRPC request.
10535 //
10536 // Type: Enum
10537 // RequirementLevel: Recommended
10538 // Stability: Development
10539 //
10540 // Examples:
10541 //
10542 // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md
10543 RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")
10544
10545 // RPCJSONRPCErrorCodeKey is the attribute Key conforming to the
10546 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
10547 // property of response if it is an error response.
10548 //
10549 // Type: int
10550 // RequirementLevel: Recommended
10551 // Stability: Development
10552 //
10553 // Examples: -32700, 100
10554 RPCJSONRPCErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code")
10555
10556 // RPCJSONRPCErrorMessageKey is the attribute Key conforming to the
10557 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
10558 // `error.message` property of response if it is an error response.
10559 //
10560 // Type: string
10561 // RequirementLevel: Recommended
10562 // Stability: Development
10563 //
10564 // Examples: "Parse error", "User already exists"
10565 RPCJSONRPCErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message")
10566
10567 // RPCJSONRPCRequestIDKey is the attribute Key conforming to the
10568 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id`
10569 // property of request or response. Since protocol allows id to be int, string,
10570 // `null` or missing (for notifications), value is expected to be cast to string
10571 // for simplicity. Use empty string in case of `null` value. Omit entirely if
10572 // this is a notification.
10573 //
10574 // Type: string
10575 // RequirementLevel: Recommended
10576 // Stability: Development
10577 //
10578 // Examples: "10", "request-7", ""
10579 RPCJSONRPCRequestIDKey = attribute.Key("rpc.jsonrpc.request_id")
10580
10581 // RPCJSONRPCVersionKey is the attribute Key conforming to the
10582 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol
10583 // version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0
10584 // doesn't specify this, the value can be omitted.
10585 //
10586 // Type: string
10587 // RequirementLevel: Recommended
10588 // Stability: Development
10589 //
10590 // Examples: "2.0", "1.0"
10591 RPCJSONRPCVersionKey = attribute.Key("rpc.jsonrpc.version")
10592
10593 // RPCMessageCompressedSizeKey is the attribute Key conforming to the
10594 // "rpc.message.compressed_size" semantic conventions. It represents the
10595 // compressed size of the message in bytes.
10596 //
10597 // Type: int
10598 // RequirementLevel: Recommended
10599 // Stability: Development
10600 //
10601 // Examples:
10602 RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size")
10603
10604 // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id"
10605 // semantic conventions. It MUST be calculated as two different counters
10606 // starting from `1` one for sent messages and one for received message..
10607 //
10608 // Type: int
10609 // RequirementLevel: Recommended
10610 // Stability: Development
10611 //
10612 // Examples:
10613 // Note: This way we guarantee that the values will be consistent between
10614 // different implementations.
10615 RPCMessageIDKey = attribute.Key("rpc.message.id")
10616
10617 // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type"
10618 // semantic conventions. It represents the whether this is a received or sent
10619 // message.
10620 //
10621 // Type: Enum
10622 // RequirementLevel: Recommended
10623 // Stability: Development
10624 //
10625 // Examples:
10626 RPCMessageTypeKey = attribute.Key("rpc.message.type")
10627
10628 // RPCMessageUncompressedSizeKey is the attribute Key conforming to the
10629 // "rpc.message.uncompressed_size" semantic conventions. It represents the
10630 // uncompressed size of the message in bytes.
10631 //
10632 // Type: int
10633 // RequirementLevel: Recommended
10634 // Stability: Development
10635 //
10636 // Examples:
10637 RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size")
10638
10639 // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
10640 // conventions. It represents the name of the (logical) method being called,
10641 // must be equal to the $method part in the span name.
10642 //
10643 // Type: string
10644 // RequirementLevel: Recommended
10645 // Stability: Development
10646 //
10647 // Examples: exampleMethod
10648 // Note: This is the logical name of the method from the RPC interface
10649 // perspective, which can be different from the name of any implementing
10650 // method/function. The `code.function.name` attribute may be used to store the
10651 // latter (e.g., method actually executing the call on the server side, RPC
10652 // client stub method on the client side).
10653 RPCMethodKey = attribute.Key("rpc.method")
10654
10655 // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic
10656 // conventions. It represents the full (logical) name of the service being
10657 // called, including its package name, if applicable.
10658 //
10659 // Type: string
10660 // RequirementLevel: Recommended
10661 // Stability: Development
10662 //
10663 // Examples: myservice.EchoService
10664 // Note: This is the logical name of the service from the RPC interface
10665 // perspective, which can be different from the name of any implementing class.
10666 // The `code.namespace` attribute may be used to store the latter (despite the
10667 // attribute name, it may include a class name; e.g., class with method actually
10668 // executing the call on the server side, RPC client stub class on the client
10669 // side).
10670 RPCServiceKey = attribute.Key("rpc.service")
10671
10672 // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic
10673 // conventions. It represents a string identifying the remoting system. See
10674 // below for a list of well-known identifiers.
10675 //
10676 // Type: Enum
10677 // RequirementLevel: Recommended
10678 // Stability: Development
10679 //
10680 // Examples:
10681 RPCSystemKey = attribute.Key("rpc.system")
10682 )
10683
10684 // RPCJSONRPCErrorCode returns an attribute KeyValue conforming to the
10685 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
10686 // property of response if it is an error response.
10687 func RPCJSONRPCErrorCode(val int) attribute.KeyValue {
10688 return RPCJSONRPCErrorCodeKey.Int(val)
10689 }
10690
10691 // RPCJSONRPCErrorMessage returns an attribute KeyValue conforming to the
10692 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
10693 // `error.message` property of response if it is an error response.
10694 func RPCJSONRPCErrorMessage(val string) attribute.KeyValue {
10695 return RPCJSONRPCErrorMessageKey.String(val)
10696 }
10697
10698 // RPCJSONRPCRequestID returns an attribute KeyValue conforming to the
10699 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property
10700 // of request or response. Since protocol allows id to be int, string, `null` or
10701 // missing (for notifications), value is expected to be cast to string for
10702 // simplicity. Use empty string in case of `null` value. Omit entirely if this is
10703 // a notification.
10704 func RPCJSONRPCRequestID(val string) attribute.KeyValue {
10705 return RPCJSONRPCRequestIDKey.String(val)
10706 }
10707
10708 // RPCJSONRPCVersion returns an attribute KeyValue conforming to the
10709 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol version
10710 // as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't
10711 // specify this, the value can be omitted.
10712 func RPCJSONRPCVersion(val string) attribute.KeyValue {
10713 return RPCJSONRPCVersionKey.String(val)
10714 }
10715
10716 // RPCMessageCompressedSize returns an attribute KeyValue conforming to the
10717 // "rpc.message.compressed_size" semantic conventions. It represents the
10718 // compressed size of the message in bytes.
10719 func RPCMessageCompressedSize(val int) attribute.KeyValue {
10720 return RPCMessageCompressedSizeKey.Int(val)
10721 }
10722
10723 // RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id"
10724 // semantic conventions. It MUST be calculated as two different counters starting
10725 // from `1` one for sent messages and one for received message..
10726 func RPCMessageID(val int) attribute.KeyValue {
10727 return RPCMessageIDKey.Int(val)
10728 }
10729
10730 // RPCMessageUncompressedSize returns an attribute KeyValue conforming to the
10731 // "rpc.message.uncompressed_size" semantic conventions. It represents the
10732 // uncompressed size of the message in bytes.
10733 func RPCMessageUncompressedSize(val int) attribute.KeyValue {
10734 return RPCMessageUncompressedSizeKey.Int(val)
10735 }
10736
10737 // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
10738 // semantic conventions. It represents the name of the (logical) method being
10739 // called, must be equal to the $method part in the span name.
10740 func RPCMethod(val string) attribute.KeyValue {
10741 return RPCMethodKey.String(val)
10742 }
10743
10744 // RPCService returns an attribute KeyValue conforming to the "rpc.service"
10745 // semantic conventions. It represents the full (logical) name of the service
10746 // being called, including its package name, if applicable.
10747 func RPCService(val string) attribute.KeyValue {
10748 return RPCServiceKey.String(val)
10749 }
10750
10751 // Enum values for rpc.connect_rpc.error_code
10752 var (
10753 // cancelled
10754 // Stability: development
10755 RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled")
10756 // unknown
10757 // Stability: development
10758 RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown")
10759 // invalid_argument
10760 // Stability: development
10761 RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument")
10762 // deadline_exceeded
10763 // Stability: development
10764 RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded")
10765 // not_found
10766 // Stability: development
10767 RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found")
10768 // already_exists
10769 // Stability: development
10770 RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists")
10771 // permission_denied
10772 // Stability: development
10773 RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied")
10774 // resource_exhausted
10775 // Stability: development
10776 RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted")
10777 // failed_precondition
10778 // Stability: development
10779 RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition")
10780 // aborted
10781 // Stability: development
10782 RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted")
10783 // out_of_range
10784 // Stability: development
10785 RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range")
10786 // unimplemented
10787 // Stability: development
10788 RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented")
10789 // internal
10790 // Stability: development
10791 RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal")
10792 // unavailable
10793 // Stability: development
10794 RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable")
10795 // data_loss
10796 // Stability: development
10797 RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss")
10798 // unauthenticated
10799 // Stability: development
10800 RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated")
10801 )
10802
10803 // Enum values for rpc.grpc.status_code
10804 var (
10805 // OK
10806 // Stability: development
10807 RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0)
10808 // CANCELLED
10809 // Stability: development
10810 RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1)
10811 // UNKNOWN
10812 // Stability: development
10813 RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2)
10814 // INVALID_ARGUMENT
10815 // Stability: development
10816 RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3)
10817 // DEADLINE_EXCEEDED
10818 // Stability: development
10819 RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4)
10820 // NOT_FOUND
10821 // Stability: development
10822 RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5)
10823 // ALREADY_EXISTS
10824 // Stability: development
10825 RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6)
10826 // PERMISSION_DENIED
10827 // Stability: development
10828 RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7)
10829 // RESOURCE_EXHAUSTED
10830 // Stability: development
10831 RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8)
10832 // FAILED_PRECONDITION
10833 // Stability: development
10834 RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9)
10835 // ABORTED
10836 // Stability: development
10837 RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10)
10838 // OUT_OF_RANGE
10839 // Stability: development
10840 RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11)
10841 // UNIMPLEMENTED
10842 // Stability: development
10843 RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12)
10844 // INTERNAL
10845 // Stability: development
10846 RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13)
10847 // UNAVAILABLE
10848 // Stability: development
10849 RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14)
10850 // DATA_LOSS
10851 // Stability: development
10852 RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15)
10853 // UNAUTHENTICATED
10854 // Stability: development
10855 RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16)
10856 )
10857
10858 // Enum values for rpc.message.type
10859 var (
10860 // sent
10861 // Stability: development
10862 RPCMessageTypeSent = RPCMessageTypeKey.String("SENT")
10863 // received
10864 // Stability: development
10865 RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")
10866 )
10867
10868 // Enum values for rpc.system
10869 var (
10870 // gRPC
10871 // Stability: development
10872 RPCSystemGRPC = RPCSystemKey.String("grpc")
10873 // Java RMI
10874 // Stability: development
10875 RPCSystemJavaRmi = RPCSystemKey.String("java_rmi")
10876 // .NET WCF
10877 // Stability: development
10878 RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf")
10879 // Apache Dubbo
10880 // Stability: development
10881 RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo")
10882 // Connect RPC
10883 // Stability: development
10884 RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc")
10885 )
10886
10887 // Namespace: security_rule
10888 const (
10889 // SecurityRuleCategoryKey is the attribute Key conforming to the
10890 // "security_rule.category" semantic conventions. It represents a categorization
10891 // value keyword used by the entity using the rule for detection of this event.
10892 //
10893 // Type: string
10894 // RequirementLevel: Recommended
10895 // Stability: Development
10896 //
10897 // Examples: "Attempted Information Leak"
10898 SecurityRuleCategoryKey = attribute.Key("security_rule.category")
10899
10900 // SecurityRuleDescriptionKey is the attribute Key conforming to the
10901 // "security_rule.description" semantic conventions. It represents the
10902 // description of the rule generating the event.
10903 //
10904 // Type: string
10905 // RequirementLevel: Recommended
10906 // Stability: Development
10907 //
10908 // Examples: "Block requests to public DNS over HTTPS / TLS protocols"
10909 SecurityRuleDescriptionKey = attribute.Key("security_rule.description")
10910
10911 // SecurityRuleLicenseKey is the attribute Key conforming to the
10912 // "security_rule.license" semantic conventions. It represents the name of the
10913 // license under which the rule used to generate this event is made available.
10914 //
10915 // Type: string
10916 // RequirementLevel: Recommended
10917 // Stability: Development
10918 //
10919 // Examples: "Apache 2.0"
10920 SecurityRuleLicenseKey = attribute.Key("security_rule.license")
10921
10922 // SecurityRuleNameKey is the attribute Key conforming to the
10923 // "security_rule.name" semantic conventions. It represents the name of the rule
10924 // or signature generating the event.
10925 //
10926 // Type: string
10927 // RequirementLevel: Recommended
10928 // Stability: Development
10929 //
10930 // Examples: "BLOCK_DNS_over_TLS"
10931 SecurityRuleNameKey = attribute.Key("security_rule.name")
10932
10933 // SecurityRuleReferenceKey is the attribute Key conforming to the
10934 // "security_rule.reference" semantic conventions. It represents the reference
10935 // URL to additional information about the rule used to generate this event.
10936 //
10937 // Type: string
10938 // RequirementLevel: Recommended
10939 // Stability: Development
10940 //
10941 // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS"
10942 // Note: The URL can point to the vendor’s documentation about the rule. If
10943 // that’s not available, it can also be a link to a more general page
10944 // describing this type of alert.
10945 SecurityRuleReferenceKey = attribute.Key("security_rule.reference")
10946
10947 // SecurityRuleRulesetNameKey is the attribute Key conforming to the
10948 // "security_rule.ruleset.name" semantic conventions. It represents the name of
10949 // the ruleset, policy, group, or parent category in which the rule used to
10950 // generate this event is a member.
10951 //
10952 // Type: string
10953 // RequirementLevel: Recommended
10954 // Stability: Development
10955 //
10956 // Examples: "Standard_Protocol_Filters"
10957 SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name")
10958
10959 // SecurityRuleUUIDKey is the attribute Key conforming to the
10960 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
10961 // unique within the scope of a set or group of agents, observers, or other
10962 // entities using the rule for detection of this event.
10963 //
10964 // Type: string
10965 // RequirementLevel: Recommended
10966 // Stability: Development
10967 //
10968 // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011"
10969 SecurityRuleUUIDKey = attribute.Key("security_rule.uuid")
10970
10971 // SecurityRuleVersionKey is the attribute Key conforming to the
10972 // "security_rule.version" semantic conventions. It represents the version /
10973 // revision of the rule being used for analysis.
10974 //
10975 // Type: string
10976 // RequirementLevel: Recommended
10977 // Stability: Development
10978 //
10979 // Examples: "1.0.0"
10980 SecurityRuleVersionKey = attribute.Key("security_rule.version")
10981 )
10982
10983 // SecurityRuleCategory returns an attribute KeyValue conforming to the
10984 // "security_rule.category" semantic conventions. It represents a categorization
10985 // value keyword used by the entity using the rule for detection of this event.
10986 func SecurityRuleCategory(val string) attribute.KeyValue {
10987 return SecurityRuleCategoryKey.String(val)
10988 }
10989
10990 // SecurityRuleDescription returns an attribute KeyValue conforming to the
10991 // "security_rule.description" semantic conventions. It represents the
10992 // description of the rule generating the event.
10993 func SecurityRuleDescription(val string) attribute.KeyValue {
10994 return SecurityRuleDescriptionKey.String(val)
10995 }
10996
10997 // SecurityRuleLicense returns an attribute KeyValue conforming to the
10998 // "security_rule.license" semantic conventions. It represents the name of the
10999 // license under which the rule used to generate this event is made available.
11000 func SecurityRuleLicense(val string) attribute.KeyValue {
11001 return SecurityRuleLicenseKey.String(val)
11002 }
11003
11004 // SecurityRuleName returns an attribute KeyValue conforming to the
11005 // "security_rule.name" semantic conventions. It represents the name of the rule
11006 // or signature generating the event.
11007 func SecurityRuleName(val string) attribute.KeyValue {
11008 return SecurityRuleNameKey.String(val)
11009 }
11010
11011 // SecurityRuleReference returns an attribute KeyValue conforming to the
11012 // "security_rule.reference" semantic conventions. It represents the reference
11013 // URL to additional information about the rule used to generate this event.
11014 func SecurityRuleReference(val string) attribute.KeyValue {
11015 return SecurityRuleReferenceKey.String(val)
11016 }
11017
11018 // SecurityRuleRulesetName returns an attribute KeyValue conforming to the
11019 // "security_rule.ruleset.name" semantic conventions. It represents the name of
11020 // the ruleset, policy, group, or parent category in which the rule used to
11021 // generate this event is a member.
11022 func SecurityRuleRulesetName(val string) attribute.KeyValue {
11023 return SecurityRuleRulesetNameKey.String(val)
11024 }
11025
11026 // SecurityRuleUUID returns an attribute KeyValue conforming to the
11027 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
11028 // unique within the scope of a set or group of agents, observers, or other
11029 // entities using the rule for detection of this event.
11030 func SecurityRuleUUID(val string) attribute.KeyValue {
11031 return SecurityRuleUUIDKey.String(val)
11032 }
11033
11034 // SecurityRuleVersion returns an attribute KeyValue conforming to the
11035 // "security_rule.version" semantic conventions. It represents the version /
11036 // revision of the rule being used for analysis.
11037 func SecurityRuleVersion(val string) attribute.KeyValue {
11038 return SecurityRuleVersionKey.String(val)
11039 }
11040
11041 // Namespace: server
11042 const (
11043 // ServerAddressKey is the attribute Key conforming to the "server.address"
11044 // semantic conventions. It represents the server domain name if available
11045 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
11046 //
11047 // Type: string
11048 // RequirementLevel: Recommended
11049 // Stability: Stable
11050 //
11051 // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
11052 // Note: When observed from the client side, and when communicating through an
11053 // intermediary, `server.address` SHOULD represent the server address behind any
11054 // intermediaries, for example proxies, if it's available.
11055 ServerAddressKey = attribute.Key("server.address")
11056
11057 // ServerPortKey is the attribute Key conforming to the "server.port" semantic
11058 // conventions. It represents the server port number.
11059 //
11060 // Type: int
11061 // RequirementLevel: Recommended
11062 // Stability: Stable
11063 //
11064 // Examples: 80, 8080, 443
11065 // Note: When observed from the client side, and when communicating through an
11066 // intermediary, `server.port` SHOULD represent the server port behind any
11067 // intermediaries, for example proxies, if it's available.
11068 ServerPortKey = attribute.Key("server.port")
11069 )
11070
11071 // ServerAddress returns an attribute KeyValue conforming to the "server.address"
11072 // semantic conventions. It represents the server domain name if available
11073 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
11074 func ServerAddress(val string) attribute.KeyValue {
11075 return ServerAddressKey.String(val)
11076 }
11077
11078 // ServerPort returns an attribute KeyValue conforming to the "server.port"
11079 // semantic conventions. It represents the server port number.
11080 func ServerPort(val int) attribute.KeyValue {
11081 return ServerPortKey.Int(val)
11082 }
11083
11084 // Namespace: service
11085 const (
11086 // ServiceInstanceIDKey is the attribute Key conforming to the
11087 // "service.instance.id" semantic conventions. It represents the string ID of
11088 // the service instance.
11089 //
11090 // Type: string
11091 // RequirementLevel: Recommended
11092 // Stability: Development
11093 //
11094 // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
11095 // Note: MUST be unique for each instance of the same
11096 // `service.namespace,service.name` pair (in other words
11097 // `service.namespace,service.name,service.instance.id` triplet MUST be globally
11098 // unique). The ID helps to
11099 // distinguish instances of the same service that exist at the same time (e.g.
11100 // instances of a horizontally scaled
11101 // service).
11102 //
11103 // Implementations, such as SDKs, are recommended to generate a random Version 1
11104 // or Version 4 [RFC
11105 // 4122] UUID, but are free to use an inherent unique ID as
11106 // the source of
11107 // this value if stability is desirable. In that case, the ID SHOULD be used as
11108 // source of a UUID Version 5 and
11109 // SHOULD use the following UUID as the namespace:
11110 // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
11111 //
11112 // UUIDs are typically recommended, as only an opaque value for the purposes of
11113 // identifying a service instance is
11114 // needed. Similar to what can be seen in the man page for the
11115 // [`/etc/machine-id`] file, the underlying
11116 // data, such as pod name and namespace should be treated as confidential, being
11117 // the user's choice to expose it
11118 // or not via another resource attribute.
11119 //
11120 // For applications running behind an application server (like unicorn), we do
11121 // not recommend using one identifier
11122 // for all processes participating in the application. Instead, it's recommended
11123 // each division (e.g. a worker
11124 // thread in unicorn) to have its own instance.id.
11125 //
11126 // It's not recommended for a Collector to set `service.instance.id` if it can't
11127 // unambiguously determine the
11128 // service instance that is generating that telemetry. For instance, creating an
11129 // UUID based on `pod.name` will
11130 // likely be wrong, as the Collector might not know from which container within
11131 // that pod the telemetry originated.
11132 // However, Collectors can set the `service.instance.id` if they can
11133 // unambiguously determine the service instance
11134 // for that telemetry. This is typically the case for scraping receivers, as
11135 // they know the target address and
11136 // port.
11137 //
11138 // [RFC
11139 // 4122]: https://www.ietf.org/rfc/rfc4122.txt
11140 // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html
11141 ServiceInstanceIDKey = attribute.Key("service.instance.id")
11142
11143 // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
11144 // conventions. It represents the logical name of the service.
11145 //
11146 // Type: string
11147 // RequirementLevel: Recommended
11148 // Stability: Stable
11149 //
11150 // Examples: "shoppingcart"
11151 // Note: MUST be the same for all instances of horizontally scaled services. If
11152 // the value was not specified, SDKs MUST fallback to `unknown_service:`
11153 // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
11154 // If `process.executable.name` is not available, the value MUST be set to
11155 // `unknown_service`.
11156 //
11157 // [`process.executable.name`]: process.md
11158 ServiceNameKey = attribute.Key("service.name")
11159
11160 // ServiceNamespaceKey is the attribute Key conforming to the
11161 // "service.namespace" semantic conventions. It represents a namespace for
11162 // `service.name`.
11163 //
11164 // Type: string
11165 // RequirementLevel: Recommended
11166 // Stability: Development
11167 //
11168 // Examples: "Shop"
11169 // Note: A string value having a meaning that helps to distinguish a group of
11170 // services, for example the team name that owns a group of services.
11171 // `service.name` is expected to be unique within the same namespace. If
11172 // `service.namespace` is not specified in the Resource then `service.name` is
11173 // expected to be unique for all services that have no explicit namespace
11174 // defined (so the empty/unspecified namespace is simply one more valid
11175 // namespace). Zero-length namespace string is assumed equal to unspecified
11176 // namespace.
11177 ServiceNamespaceKey = attribute.Key("service.namespace")
11178
11179 // ServiceVersionKey is the attribute Key conforming to the "service.version"
11180 // semantic conventions. It represents the version string of the service API or
11181 // implementation. The format is not defined by these conventions.
11182 //
11183 // Type: string
11184 // RequirementLevel: Recommended
11185 // Stability: Stable
11186 //
11187 // Examples: "2.0.0", "a01dbef8a"
11188 ServiceVersionKey = attribute.Key("service.version")
11189 )
11190
11191 // ServiceInstanceID returns an attribute KeyValue conforming to the
11192 // "service.instance.id" semantic conventions. It represents the string ID of the
11193 // service instance.
11194 func ServiceInstanceID(val string) attribute.KeyValue {
11195 return ServiceInstanceIDKey.String(val)
11196 }
11197
11198 // ServiceName returns an attribute KeyValue conforming to the "service.name"
11199 // semantic conventions. It represents the logical name of the service.
11200 func ServiceName(val string) attribute.KeyValue {
11201 return ServiceNameKey.String(val)
11202 }
11203
11204 // ServiceNamespace returns an attribute KeyValue conforming to the
11205 // "service.namespace" semantic conventions. It represents a namespace for
11206 // `service.name`.
11207 func ServiceNamespace(val string) attribute.KeyValue {
11208 return ServiceNamespaceKey.String(val)
11209 }
11210
11211 // ServiceVersion returns an attribute KeyValue conforming to the
11212 // "service.version" semantic conventions. It represents the version string of
11213 // the service API or implementation. The format is not defined by these
11214 // conventions.
11215 func ServiceVersion(val string) attribute.KeyValue {
11216 return ServiceVersionKey.String(val)
11217 }
11218
11219 // Namespace: session
11220 const (
11221 // SessionIDKey is the attribute Key conforming to the "session.id" semantic
11222 // conventions. It represents a unique id to identify a session.
11223 //
11224 // Type: string
11225 // RequirementLevel: Recommended
11226 // Stability: Development
11227 //
11228 // Examples: 00112233-4455-6677-8899-aabbccddeeff
11229 SessionIDKey = attribute.Key("session.id")
11230
11231 // SessionPreviousIDKey is the attribute Key conforming to the
11232 // "session.previous_id" semantic conventions. It represents the previous
11233 // `session.id` for this user, when known.
11234 //
11235 // Type: string
11236 // RequirementLevel: Recommended
11237 // Stability: Development
11238 //
11239 // Examples: 00112233-4455-6677-8899-aabbccddeeff
11240 SessionPreviousIDKey = attribute.Key("session.previous_id")
11241 )
11242
11243 // SessionID returns an attribute KeyValue conforming to the "session.id"
11244 // semantic conventions. It represents a unique id to identify a session.
11245 func SessionID(val string) attribute.KeyValue {
11246 return SessionIDKey.String(val)
11247 }
11248
11249 // SessionPreviousID returns an attribute KeyValue conforming to the
11250 // "session.previous_id" semantic conventions. It represents the previous
11251 // `session.id` for this user, when known.
11252 func SessionPreviousID(val string) attribute.KeyValue {
11253 return SessionPreviousIDKey.String(val)
11254 }
11255
11256 // Namespace: signalr
11257 const (
11258 // SignalRConnectionStatusKey is the attribute Key conforming to the
11259 // "signalr.connection.status" semantic conventions. It represents the signalR
11260 // HTTP connection closure status.
11261 //
11262 // Type: Enum
11263 // RequirementLevel: Recommended
11264 // Stability: Stable
11265 //
11266 // Examples: "app_shutdown", "timeout"
11267 SignalRConnectionStatusKey = attribute.Key("signalr.connection.status")
11268
11269 // SignalRTransportKey is the attribute Key conforming to the
11270 // "signalr.transport" semantic conventions. It represents the
11271 // [SignalR transport type].
11272 //
11273 // Type: Enum
11274 // RequirementLevel: Recommended
11275 // Stability: Stable
11276 //
11277 // Examples: "web_sockets", "long_polling"
11278 //
11279 // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
11280 SignalRTransportKey = attribute.Key("signalr.transport")
11281 )
11282
11283 // Enum values for signalr.connection.status
11284 var (
11285 // The connection was closed normally.
11286 // Stability: stable
11287 SignalRConnectionStatusNormalClosure = SignalRConnectionStatusKey.String("normal_closure")
11288 // The connection was closed due to a timeout.
11289 // Stability: stable
11290 SignalRConnectionStatusTimeout = SignalRConnectionStatusKey.String("timeout")
11291 // The connection was closed because the app is shutting down.
11292 // Stability: stable
11293 SignalRConnectionStatusAppShutdown = SignalRConnectionStatusKey.String("app_shutdown")
11294 )
11295
11296 // Enum values for signalr.transport
11297 var (
11298 // ServerSentEvents protocol
11299 // Stability: stable
11300 SignalRTransportServerSentEvents = SignalRTransportKey.String("server_sent_events")
11301 // LongPolling protocol
11302 // Stability: stable
11303 SignalRTransportLongPolling = SignalRTransportKey.String("long_polling")
11304 // WebSockets protocol
11305 // Stability: stable
11306 SignalRTransportWebSockets = SignalRTransportKey.String("web_sockets")
11307 )
11308
11309 // Namespace: source
11310 const (
11311 // SourceAddressKey is the attribute Key conforming to the "source.address"
11312 // semantic conventions. It represents the source address - domain name if
11313 // available without reverse DNS lookup; otherwise, IP address or Unix domain
11314 // socket name.
11315 //
11316 // Type: string
11317 // RequirementLevel: Recommended
11318 // Stability: Development
11319 //
11320 // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
11321 // Note: When observed from the destination side, and when communicating through
11322 // an intermediary, `source.address` SHOULD represent the source address behind
11323 // any intermediaries, for example proxies, if it's available.
11324 SourceAddressKey = attribute.Key("source.address")
11325
11326 // SourcePortKey is the attribute Key conforming to the "source.port" semantic
11327 // conventions. It represents the source port number.
11328 //
11329 // Type: int
11330 // RequirementLevel: Recommended
11331 // Stability: Development
11332 //
11333 // Examples: 3389, 2888
11334 SourcePortKey = attribute.Key("source.port")
11335 )
11336
11337 // SourceAddress returns an attribute KeyValue conforming to the "source.address"
11338 // semantic conventions. It represents the source address - domain name if
11339 // available without reverse DNS lookup; otherwise, IP address or Unix domain
11340 // socket name.
11341 func SourceAddress(val string) attribute.KeyValue {
11342 return SourceAddressKey.String(val)
11343 }
11344
11345 // SourcePort returns an attribute KeyValue conforming to the "source.port"
11346 // semantic conventions. It represents the source port number.
11347 func SourcePort(val int) attribute.KeyValue {
11348 return SourcePortKey.Int(val)
11349 }
11350
11351 // Namespace: system
11352 const (
11353 // SystemCPULogicalNumberKey is the attribute Key conforming to the
11354 // "system.cpu.logical_number" semantic conventions. It represents the
11355 // deprecated, use `cpu.logical_number` instead.
11356 //
11357 // Type: int
11358 // RequirementLevel: Recommended
11359 // Stability: Development
11360 //
11361 // Examples: 1
11362 SystemCPULogicalNumberKey = attribute.Key("system.cpu.logical_number")
11363
11364 // SystemDeviceKey is the attribute Key conforming to the "system.device"
11365 // semantic conventions. It represents the device identifier.
11366 //
11367 // Type: string
11368 // RequirementLevel: Recommended
11369 // Stability: Development
11370 //
11371 // Examples: "(identifier)"
11372 SystemDeviceKey = attribute.Key("system.device")
11373
11374 // SystemFilesystemModeKey is the attribute Key conforming to the
11375 // "system.filesystem.mode" semantic conventions. It represents the filesystem
11376 // mode.
11377 //
11378 // Type: string
11379 // RequirementLevel: Recommended
11380 // Stability: Development
11381 //
11382 // Examples: "rw, ro"
11383 SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
11384
11385 // SystemFilesystemMountpointKey is the attribute Key conforming to the
11386 // "system.filesystem.mountpoint" semantic conventions. It represents the
11387 // filesystem mount path.
11388 //
11389 // Type: string
11390 // RequirementLevel: Recommended
11391 // Stability: Development
11392 //
11393 // Examples: "/mnt/data"
11394 SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
11395
11396 // SystemFilesystemStateKey is the attribute Key conforming to the
11397 // "system.filesystem.state" semantic conventions. It represents the filesystem
11398 // state.
11399 //
11400 // Type: Enum
11401 // RequirementLevel: Recommended
11402 // Stability: Development
11403 //
11404 // Examples: "used"
11405 SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
11406
11407 // SystemFilesystemTypeKey is the attribute Key conforming to the
11408 // "system.filesystem.type" semantic conventions. It represents the filesystem
11409 // type.
11410 //
11411 // Type: Enum
11412 // RequirementLevel: Recommended
11413 // Stability: Development
11414 //
11415 // Examples: "ext4"
11416 SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
11417
11418 // SystemMemoryStateKey is the attribute Key conforming to the
11419 // "system.memory.state" semantic conventions. It represents the memory state.
11420 //
11421 // Type: Enum
11422 // RequirementLevel: Recommended
11423 // Stability: Development
11424 //
11425 // Examples: "free", "cached"
11426 SystemMemoryStateKey = attribute.Key("system.memory.state")
11427
11428 // SystemPagingDirectionKey is the attribute Key conforming to the
11429 // "system.paging.direction" semantic conventions. It represents the paging
11430 // access direction.
11431 //
11432 // Type: Enum
11433 // RequirementLevel: Recommended
11434 // Stability: Development
11435 //
11436 // Examples: "in"
11437 SystemPagingDirectionKey = attribute.Key("system.paging.direction")
11438
11439 // SystemPagingStateKey is the attribute Key conforming to the
11440 // "system.paging.state" semantic conventions. It represents the memory paging
11441 // state.
11442 //
11443 // Type: Enum
11444 // RequirementLevel: Recommended
11445 // Stability: Development
11446 //
11447 // Examples: "free"
11448 SystemPagingStateKey = attribute.Key("system.paging.state")
11449
11450 // SystemPagingTypeKey is the attribute Key conforming to the
11451 // "system.paging.type" semantic conventions. It represents the memory paging
11452 // type.
11453 //
11454 // Type: Enum
11455 // RequirementLevel: Recommended
11456 // Stability: Development
11457 //
11458 // Examples: "minor"
11459 SystemPagingTypeKey = attribute.Key("system.paging.type")
11460
11461 // SystemProcessStatusKey is the attribute Key conforming to the
11462 // "system.process.status" semantic conventions. It represents the process
11463 // state, e.g., [Linux Process State Codes].
11464 //
11465 // Type: Enum
11466 // RequirementLevel: Recommended
11467 // Stability: Development
11468 //
11469 // Examples: "running"
11470 //
11471 // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
11472 SystemProcessStatusKey = attribute.Key("system.process.status")
11473 )
11474
11475 // SystemCPULogicalNumber returns an attribute KeyValue conforming to the
11476 // "system.cpu.logical_number" semantic conventions. It represents the
11477 // deprecated, use `cpu.logical_number` instead.
11478 func SystemCPULogicalNumber(val int) attribute.KeyValue {
11479 return SystemCPULogicalNumberKey.Int(val)
11480 }
11481
11482 // SystemDevice returns an attribute KeyValue conforming to the "system.device"
11483 // semantic conventions. It represents the device identifier.
11484 func SystemDevice(val string) attribute.KeyValue {
11485 return SystemDeviceKey.String(val)
11486 }
11487
11488 // SystemFilesystemMode returns an attribute KeyValue conforming to the
11489 // "system.filesystem.mode" semantic conventions. It represents the filesystem
11490 // mode.
11491 func SystemFilesystemMode(val string) attribute.KeyValue {
11492 return SystemFilesystemModeKey.String(val)
11493 }
11494
11495 // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
11496 // "system.filesystem.mountpoint" semantic conventions. It represents the
11497 // filesystem mount path.
11498 func SystemFilesystemMountpoint(val string) attribute.KeyValue {
11499 return SystemFilesystemMountpointKey.String(val)
11500 }
11501
11502 // Enum values for system.filesystem.state
11503 var (
11504 // used
11505 // Stability: development
11506 SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
11507 // free
11508 // Stability: development
11509 SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
11510 // reserved
11511 // Stability: development
11512 SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
11513 )
11514
11515 // Enum values for system.filesystem.type
11516 var (
11517 // fat32
11518 // Stability: development
11519 SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
11520 // exfat
11521 // Stability: development
11522 SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
11523 // ntfs
11524 // Stability: development
11525 SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
11526 // refs
11527 // Stability: development
11528 SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
11529 // hfsplus
11530 // Stability: development
11531 SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
11532 // ext4
11533 // Stability: development
11534 SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
11535 )
11536
11537 // Enum values for system.memory.state
11538 var (
11539 // used
11540 // Stability: development
11541 SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
11542 // free
11543 // Stability: development
11544 SystemMemoryStateFree = SystemMemoryStateKey.String("free")
11545 // Deprecated: Removed, report shared memory usage with
11546 // `metric.system.memory.shared` metric.
11547 SystemMemoryStateShared = SystemMemoryStateKey.String("shared")
11548 // buffers
11549 // Stability: development
11550 SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
11551 // cached
11552 // Stability: development
11553 SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
11554 )
11555
11556 // Enum values for system.paging.direction
11557 var (
11558 // in
11559 // Stability: development
11560 SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
11561 // out
11562 // Stability: development
11563 SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
11564 )
11565
11566 // Enum values for system.paging.state
11567 var (
11568 // used
11569 // Stability: development
11570 SystemPagingStateUsed = SystemPagingStateKey.String("used")
11571 // free
11572 // Stability: development
11573 SystemPagingStateFree = SystemPagingStateKey.String("free")
11574 )
11575
11576 // Enum values for system.paging.type
11577 var (
11578 // major
11579 // Stability: development
11580 SystemPagingTypeMajor = SystemPagingTypeKey.String("major")
11581 // minor
11582 // Stability: development
11583 SystemPagingTypeMinor = SystemPagingTypeKey.String("minor")
11584 )
11585
11586 // Enum values for system.process.status
11587 var (
11588 // running
11589 // Stability: development
11590 SystemProcessStatusRunning = SystemProcessStatusKey.String("running")
11591 // sleeping
11592 // Stability: development
11593 SystemProcessStatusSleeping = SystemProcessStatusKey.String("sleeping")
11594 // stopped
11595 // Stability: development
11596 SystemProcessStatusStopped = SystemProcessStatusKey.String("stopped")
11597 // defunct
11598 // Stability: development
11599 SystemProcessStatusDefunct = SystemProcessStatusKey.String("defunct")
11600 )
11601
11602 // Namespace: telemetry
11603 const (
11604 // TelemetryDistroNameKey is the attribute Key conforming to the
11605 // "telemetry.distro.name" semantic conventions. It represents the name of the
11606 // auto instrumentation agent or distribution, if used.
11607 //
11608 // Type: string
11609 // RequirementLevel: Recommended
11610 // Stability: Development
11611 //
11612 // Examples: "parts-unlimited-java"
11613 // Note: Official auto instrumentation agents and distributions SHOULD set the
11614 // `telemetry.distro.name` attribute to
11615 // a string starting with `opentelemetry-`, e.g.
11616 // `opentelemetry-java-instrumentation`.
11617 TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
11618
11619 // TelemetryDistroVersionKey is the attribute Key conforming to the
11620 // "telemetry.distro.version" semantic conventions. It represents the version
11621 // string of the auto instrumentation agent or distribution, if used.
11622 //
11623 // Type: string
11624 // RequirementLevel: Recommended
11625 // Stability: Development
11626 //
11627 // Examples: "1.2.3"
11628 TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
11629
11630 // TelemetrySDKLanguageKey is the attribute Key conforming to the
11631 // "telemetry.sdk.language" semantic conventions. It represents the language of
11632 // the telemetry SDK.
11633 //
11634 // Type: Enum
11635 // RequirementLevel: Recommended
11636 // Stability: Stable
11637 //
11638 // Examples:
11639 TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
11640
11641 // TelemetrySDKNameKey is the attribute Key conforming to the
11642 // "telemetry.sdk.name" semantic conventions. It represents the name of the
11643 // telemetry SDK as defined above.
11644 //
11645 // Type: string
11646 // RequirementLevel: Recommended
11647 // Stability: Stable
11648 //
11649 // Examples: "opentelemetry"
11650 // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
11651 // `opentelemetry`.
11652 // If another SDK, like a fork or a vendor-provided implementation, is used,
11653 // this SDK MUST set the
11654 // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
11655 // this SDK's main entry point
11656 // or another suitable identifier depending on the language.
11657 // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
11658 // All custom identifiers SHOULD be stable across different versions of an
11659 // implementation.
11660 TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
11661
11662 // TelemetrySDKVersionKey is the attribute Key conforming to the
11663 // "telemetry.sdk.version" semantic conventions. It represents the version
11664 // string of the telemetry SDK.
11665 //
11666 // Type: string
11667 // RequirementLevel: Recommended
11668 // Stability: Stable
11669 //
11670 // Examples: "1.2.3"
11671 TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
11672 )
11673
11674 // TelemetryDistroName returns an attribute KeyValue conforming to the
11675 // "telemetry.distro.name" semantic conventions. It represents the name of the
11676 // auto instrumentation agent or distribution, if used.
11677 func TelemetryDistroName(val string) attribute.KeyValue {
11678 return TelemetryDistroNameKey.String(val)
11679 }
11680
11681 // TelemetryDistroVersion returns an attribute KeyValue conforming to the
11682 // "telemetry.distro.version" semantic conventions. It represents the version
11683 // string of the auto instrumentation agent or distribution, if used.
11684 func TelemetryDistroVersion(val string) attribute.KeyValue {
11685 return TelemetryDistroVersionKey.String(val)
11686 }
11687
11688 // TelemetrySDKName returns an attribute KeyValue conforming to the
11689 // "telemetry.sdk.name" semantic conventions. It represents the name of the
11690 // telemetry SDK as defined above.
11691 func TelemetrySDKName(val string) attribute.KeyValue {
11692 return TelemetrySDKNameKey.String(val)
11693 }
11694
11695 // TelemetrySDKVersion returns an attribute KeyValue conforming to the
11696 // "telemetry.sdk.version" semantic conventions. It represents the version string
11697 // of the telemetry SDK.
11698 func TelemetrySDKVersion(val string) attribute.KeyValue {
11699 return TelemetrySDKVersionKey.String(val)
11700 }
11701
11702 // Enum values for telemetry.sdk.language
11703 var (
11704 // cpp
11705 // Stability: stable
11706 TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
11707 // dotnet
11708 // Stability: stable
11709 TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
11710 // erlang
11711 // Stability: stable
11712 TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
11713 // go
11714 // Stability: stable
11715 TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
11716 // java
11717 // Stability: stable
11718 TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
11719 // nodejs
11720 // Stability: stable
11721 TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
11722 // php
11723 // Stability: stable
11724 TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
11725 // python
11726 // Stability: stable
11727 TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
11728 // ruby
11729 // Stability: stable
11730 TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
11731 // rust
11732 // Stability: stable
11733 TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
11734 // swift
11735 // Stability: stable
11736 TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
11737 // webjs
11738 // Stability: stable
11739 TelemetrySDKLanguageWebJS = TelemetrySDKLanguageKey.String("webjs")
11740 )
11741
11742 // Namespace: test
11743 const (
11744 // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
11745 // semantic conventions. It represents the fully qualified human readable name
11746 // of the [test case].
11747 //
11748 // Type: string
11749 // RequirementLevel: Recommended
11750 // Stability: Development
11751 //
11752 // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
11753 // "ExampleTestCase1_test1"
11754 //
11755 // [test case]: https://wikipedia.org/wiki/Test_case
11756 TestCaseNameKey = attribute.Key("test.case.name")
11757
11758 // TestCaseResultStatusKey is the attribute Key conforming to the
11759 // "test.case.result.status" semantic conventions. It represents the status of
11760 // the actual test case result from test execution.
11761 //
11762 // Type: Enum
11763 // RequirementLevel: Recommended
11764 // Stability: Development
11765 //
11766 // Examples: "pass", "fail"
11767 TestCaseResultStatusKey = attribute.Key("test.case.result.status")
11768
11769 // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
11770 // semantic conventions. It represents the human readable name of a [test suite]
11771 // .
11772 //
11773 // Type: string
11774 // RequirementLevel: Recommended
11775 // Stability: Development
11776 //
11777 // Examples: "TestSuite1"
11778 //
11779 // [test suite]: https://wikipedia.org/wiki/Test_suite
11780 TestSuiteNameKey = attribute.Key("test.suite.name")
11781
11782 // TestSuiteRunStatusKey is the attribute Key conforming to the
11783 // "test.suite.run.status" semantic conventions. It represents the status of the
11784 // test suite run.
11785 //
11786 // Type: Enum
11787 // RequirementLevel: Recommended
11788 // Stability: Development
11789 //
11790 // Examples: "success", "failure", "skipped", "aborted", "timed_out",
11791 // "in_progress"
11792 TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
11793 )
11794
11795 // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
11796 // semantic conventions. It represents the fully qualified human readable name of
11797 // the [test case].
11798 //
11799 // [test case]: https://wikipedia.org/wiki/Test_case
11800 func TestCaseName(val string) attribute.KeyValue {
11801 return TestCaseNameKey.String(val)
11802 }
11803
11804 // TestSuiteName returns an attribute KeyValue conforming to the
11805 // "test.suite.name" semantic conventions. It represents the human readable name
11806 // of a [test suite].
11807 //
11808 // [test suite]: https://wikipedia.org/wiki/Test_suite
11809 func TestSuiteName(val string) attribute.KeyValue {
11810 return TestSuiteNameKey.String(val)
11811 }
11812
11813 // Enum values for test.case.result.status
11814 var (
11815 // pass
11816 // Stability: development
11817 TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
11818 // fail
11819 // Stability: development
11820 TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
11821 )
11822
11823 // Enum values for test.suite.run.status
11824 var (
11825 // success
11826 // Stability: development
11827 TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
11828 // failure
11829 // Stability: development
11830 TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
11831 // skipped
11832 // Stability: development
11833 TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
11834 // aborted
11835 // Stability: development
11836 TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
11837 // timed_out
11838 // Stability: development
11839 TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
11840 // in_progress
11841 // Stability: development
11842 TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
11843 )
11844
11845 // Namespace: thread
11846 const (
11847 // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
11848 // conventions. It represents the current "managed" thread ID (as opposed to OS
11849 // thread ID).
11850 //
11851 // Type: int
11852 // RequirementLevel: Recommended
11853 // Stability: Development
11854 ThreadIDKey = attribute.Key("thread.id")
11855
11856 // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
11857 // conventions. It represents the current thread name.
11858 //
11859 // Type: string
11860 // RequirementLevel: Recommended
11861 // Stability: Development
11862 //
11863 // Examples: main
11864 ThreadNameKey = attribute.Key("thread.name")
11865 )
11866
11867 // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
11868 // conventions. It represents the current "managed" thread ID (as opposed to OS
11869 // thread ID).
11870 func ThreadID(val int) attribute.KeyValue {
11871 return ThreadIDKey.Int(val)
11872 }
11873
11874 // ThreadName returns an attribute KeyValue conforming to the "thread.name"
11875 // semantic conventions. It represents the current thread name.
11876 func ThreadName(val string) attribute.KeyValue {
11877 return ThreadNameKey.String(val)
11878 }
11879
11880 // Namespace: tls
11881 const (
11882 // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
11883 // conventions. It represents the string indicating the [cipher] used during the
11884 // current connection.
11885 //
11886 // Type: string
11887 // RequirementLevel: Recommended
11888 // Stability: Development
11889 //
11890 // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
11891 // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
11892 // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
11893 // of the [registered TLS Cipher Suits].
11894 //
11895 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
11896 // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
11897 TLSCipherKey = attribute.Key("tls.cipher")
11898
11899 // TLSClientCertificateKey is the attribute Key conforming to the
11900 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
11901 // stand-alone certificate offered by the client. This is usually
11902 // mutually-exclusive of `client.certificate_chain` since this value also exists
11903 // in that list.
11904 //
11905 // Type: string
11906 // RequirementLevel: Recommended
11907 // Stability: Development
11908 //
11909 // Examples: "MII..."
11910 TLSClientCertificateKey = attribute.Key("tls.client.certificate")
11911
11912 // TLSClientCertificateChainKey is the attribute Key conforming to the
11913 // "tls.client.certificate_chain" semantic conventions. It represents the array
11914 // of PEM-encoded certificates that make up the certificate chain offered by the
11915 // client. This is usually mutually-exclusive of `client.certificate` since that
11916 // value should be the first certificate in the chain.
11917 //
11918 // Type: string[]
11919 // RequirementLevel: Recommended
11920 // Stability: Development
11921 //
11922 // Examples: "MII...", "MI..."
11923 TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
11924
11925 // TLSClientHashMd5Key is the attribute Key conforming to the
11926 // "tls.client.hash.md5" semantic conventions. It represents the certificate
11927 // fingerprint using the MD5 digest of DER-encoded version of certificate
11928 // offered by the client. For consistency with other hash values, this value
11929 // should be formatted as an uppercase hash.
11930 //
11931 // Type: string
11932 // RequirementLevel: Recommended
11933 // Stability: Development
11934 //
11935 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
11936 TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
11937
11938 // TLSClientHashSha1Key is the attribute Key conforming to the
11939 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
11940 // fingerprint using the SHA1 digest of DER-encoded version of certificate
11941 // offered by the client. For consistency with other hash values, this value
11942 // should be formatted as an uppercase hash.
11943 //
11944 // Type: string
11945 // RequirementLevel: Recommended
11946 // Stability: Development
11947 //
11948 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
11949 TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
11950
11951 // TLSClientHashSha256Key is the attribute Key conforming to the
11952 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
11953 // fingerprint using the SHA256 digest of DER-encoded version of certificate
11954 // offered by the client. For consistency with other hash values, this value
11955 // should be formatted as an uppercase hash.
11956 //
11957 // Type: string
11958 // RequirementLevel: Recommended
11959 // Stability: Development
11960 //
11961 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
11962 TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
11963
11964 // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
11965 // semantic conventions. It represents the distinguished name of [subject] of
11966 // the issuer of the x.509 certificate presented by the client.
11967 //
11968 // Type: string
11969 // RequirementLevel: Recommended
11970 // Stability: Development
11971 //
11972 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
11973 //
11974 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
11975 TLSClientIssuerKey = attribute.Key("tls.client.issuer")
11976
11977 // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
11978 // semantic conventions. It represents a hash that identifies clients based on
11979 // how they perform an SSL/TLS handshake.
11980 //
11981 // Type: string
11982 // RequirementLevel: Recommended
11983 // Stability: Development
11984 //
11985 // Examples: "d4e5b18d6b55c71272893221c96ba240"
11986 TLSClientJa3Key = attribute.Key("tls.client.ja3")
11987
11988 // TLSClientNotAfterKey is the attribute Key conforming to the
11989 // "tls.client.not_after" semantic conventions. It represents the date/Time
11990 // indicating when client certificate is no longer considered valid.
11991 //
11992 // Type: string
11993 // RequirementLevel: Recommended
11994 // Stability: Development
11995 //
11996 // Examples: "2021-01-01T00:00:00.000Z"
11997 TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
11998
11999 // TLSClientNotBeforeKey is the attribute Key conforming to the
12000 // "tls.client.not_before" semantic conventions. It represents the date/Time
12001 // indicating when client certificate is first considered valid.
12002 //
12003 // Type: string
12004 // RequirementLevel: Recommended
12005 // Stability: Development
12006 //
12007 // Examples: "1970-01-01T00:00:00.000Z"
12008 TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
12009
12010 // TLSClientSubjectKey is the attribute Key conforming to the
12011 // "tls.client.subject" semantic conventions. It represents the distinguished
12012 // name of subject of the x.509 certificate presented by the client.
12013 //
12014 // Type: string
12015 // RequirementLevel: Recommended
12016 // Stability: Development
12017 //
12018 // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
12019 TLSClientSubjectKey = attribute.Key("tls.client.subject")
12020
12021 // TLSClientSupportedCiphersKey is the attribute Key conforming to the
12022 // "tls.client.supported_ciphers" semantic conventions. It represents the array
12023 // of ciphers offered by the client during the client hello.
12024 //
12025 // Type: string[]
12026 // RequirementLevel: Recommended
12027 // Stability: Development
12028 //
12029 // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
12030 // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
12031 TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
12032
12033 // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
12034 // conventions. It represents the string indicating the curve used for the given
12035 // cipher, when applicable.
12036 //
12037 // Type: string
12038 // RequirementLevel: Recommended
12039 // Stability: Development
12040 //
12041 // Examples: "secp256r1"
12042 TLSCurveKey = attribute.Key("tls.curve")
12043
12044 // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
12045 // semantic conventions. It represents the boolean flag indicating if the TLS
12046 // negotiation was successful and transitioned to an encrypted tunnel.
12047 //
12048 // Type: boolean
12049 // RequirementLevel: Recommended
12050 // Stability: Development
12051 //
12052 // Examples: true
12053 TLSEstablishedKey = attribute.Key("tls.established")
12054
12055 // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
12056 // semantic conventions. It represents the string indicating the protocol being
12057 // tunneled. Per the values in the [IANA registry], this string should be lower
12058 // case.
12059 //
12060 // Type: string
12061 // RequirementLevel: Recommended
12062 // Stability: Development
12063 //
12064 // Examples: "http/1.1"
12065 //
12066 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
12067 TLSNextProtocolKey = attribute.Key("tls.next_protocol")
12068
12069 // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
12070 // semantic conventions. It represents the normalized lowercase protocol name
12071 // parsed from original string of the negotiated [SSL/TLS protocol version].
12072 //
12073 // Type: Enum
12074 // RequirementLevel: Recommended
12075 // Stability: Development
12076 //
12077 // Examples:
12078 //
12079 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
12080 TLSProtocolNameKey = attribute.Key("tls.protocol.name")
12081
12082 // TLSProtocolVersionKey is the attribute Key conforming to the
12083 // "tls.protocol.version" semantic conventions. It represents the numeric part
12084 // of the version parsed from the original string of the negotiated
12085 // [SSL/TLS protocol version].
12086 //
12087 // Type: string
12088 // RequirementLevel: Recommended
12089 // Stability: Development
12090 //
12091 // Examples: "1.2", "3"
12092 //
12093 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
12094 TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
12095
12096 // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
12097 // conventions. It represents the boolean flag indicating if this TLS connection
12098 // was resumed from an existing TLS negotiation.
12099 //
12100 // Type: boolean
12101 // RequirementLevel: Recommended
12102 // Stability: Development
12103 //
12104 // Examples: true
12105 TLSResumedKey = attribute.Key("tls.resumed")
12106
12107 // TLSServerCertificateKey is the attribute Key conforming to the
12108 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
12109 // stand-alone certificate offered by the server. This is usually
12110 // mutually-exclusive of `server.certificate_chain` since this value also exists
12111 // in that list.
12112 //
12113 // Type: string
12114 // RequirementLevel: Recommended
12115 // Stability: Development
12116 //
12117 // Examples: "MII..."
12118 TLSServerCertificateKey = attribute.Key("tls.server.certificate")
12119
12120 // TLSServerCertificateChainKey is the attribute Key conforming to the
12121 // "tls.server.certificate_chain" semantic conventions. It represents the array
12122 // of PEM-encoded certificates that make up the certificate chain offered by the
12123 // server. This is usually mutually-exclusive of `server.certificate` since that
12124 // value should be the first certificate in the chain.
12125 //
12126 // Type: string[]
12127 // RequirementLevel: Recommended
12128 // Stability: Development
12129 //
12130 // Examples: "MII...", "MI..."
12131 TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
12132
12133 // TLSServerHashMd5Key is the attribute Key conforming to the
12134 // "tls.server.hash.md5" semantic conventions. It represents the certificate
12135 // fingerprint using the MD5 digest of DER-encoded version of certificate
12136 // offered by the server. For consistency with other hash values, this value
12137 // should be formatted as an uppercase hash.
12138 //
12139 // Type: string
12140 // RequirementLevel: Recommended
12141 // Stability: Development
12142 //
12143 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
12144 TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
12145
12146 // TLSServerHashSha1Key is the attribute Key conforming to the
12147 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
12148 // fingerprint using the SHA1 digest of DER-encoded version of certificate
12149 // offered by the server. For consistency with other hash values, this value
12150 // should be formatted as an uppercase hash.
12151 //
12152 // Type: string
12153 // RequirementLevel: Recommended
12154 // Stability: Development
12155 //
12156 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
12157 TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
12158
12159 // TLSServerHashSha256Key is the attribute Key conforming to the
12160 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
12161 // fingerprint using the SHA256 digest of DER-encoded version of certificate
12162 // offered by the server. For consistency with other hash values, this value
12163 // should be formatted as an uppercase hash.
12164 //
12165 // Type: string
12166 // RequirementLevel: Recommended
12167 // Stability: Development
12168 //
12169 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
12170 TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
12171
12172 // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
12173 // semantic conventions. It represents the distinguished name of [subject] of
12174 // the issuer of the x.509 certificate presented by the client.
12175 //
12176 // Type: string
12177 // RequirementLevel: Recommended
12178 // Stability: Development
12179 //
12180 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
12181 //
12182 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
12183 TLSServerIssuerKey = attribute.Key("tls.server.issuer")
12184
12185 // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
12186 // semantic conventions. It represents a hash that identifies servers based on
12187 // how they perform an SSL/TLS handshake.
12188 //
12189 // Type: string
12190 // RequirementLevel: Recommended
12191 // Stability: Development
12192 //
12193 // Examples: "d4e5b18d6b55c71272893221c96ba240"
12194 TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
12195
12196 // TLSServerNotAfterKey is the attribute Key conforming to the
12197 // "tls.server.not_after" semantic conventions. It represents the date/Time
12198 // indicating when server certificate is no longer considered valid.
12199 //
12200 // Type: string
12201 // RequirementLevel: Recommended
12202 // Stability: Development
12203 //
12204 // Examples: "2021-01-01T00:00:00.000Z"
12205 TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
12206
12207 // TLSServerNotBeforeKey is the attribute Key conforming to the
12208 // "tls.server.not_before" semantic conventions. It represents the date/Time
12209 // indicating when server certificate is first considered valid.
12210 //
12211 // Type: string
12212 // RequirementLevel: Recommended
12213 // Stability: Development
12214 //
12215 // Examples: "1970-01-01T00:00:00.000Z"
12216 TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
12217
12218 // TLSServerSubjectKey is the attribute Key conforming to the
12219 // "tls.server.subject" semantic conventions. It represents the distinguished
12220 // name of subject of the x.509 certificate presented by the server.
12221 //
12222 // Type: string
12223 // RequirementLevel: Recommended
12224 // Stability: Development
12225 //
12226 // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
12227 TLSServerSubjectKey = attribute.Key("tls.server.subject")
12228 )
12229
12230 // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
12231 // semantic conventions. It represents the string indicating the [cipher] used
12232 // during the current connection.
12233 //
12234 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
12235 func TLSCipher(val string) attribute.KeyValue {
12236 return TLSCipherKey.String(val)
12237 }
12238
12239 // TLSClientCertificate returns an attribute KeyValue conforming to the
12240 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
12241 // stand-alone certificate offered by the client. This is usually
12242 // mutually-exclusive of `client.certificate_chain` since this value also exists
12243 // in that list.
12244 func TLSClientCertificate(val string) attribute.KeyValue {
12245 return TLSClientCertificateKey.String(val)
12246 }
12247
12248 // TLSClientCertificateChain returns an attribute KeyValue conforming to the
12249 // "tls.client.certificate_chain" semantic conventions. It represents the array
12250 // of PEM-encoded certificates that make up the certificate chain offered by the
12251 // client. This is usually mutually-exclusive of `client.certificate` since that
12252 // value should be the first certificate in the chain.
12253 func TLSClientCertificateChain(val ...string) attribute.KeyValue {
12254 return TLSClientCertificateChainKey.StringSlice(val)
12255 }
12256
12257 // TLSClientHashMd5 returns an attribute KeyValue conforming to the
12258 // "tls.client.hash.md5" semantic conventions. It represents the certificate
12259 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
12260 // by the client. For consistency with other hash values, this value should be
12261 // formatted as an uppercase hash.
12262 func TLSClientHashMd5(val string) attribute.KeyValue {
12263 return TLSClientHashMd5Key.String(val)
12264 }
12265
12266 // TLSClientHashSha1 returns an attribute KeyValue conforming to the
12267 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
12268 // fingerprint using the SHA1 digest of DER-encoded version of certificate
12269 // offered by the client. For consistency with other hash values, this value
12270 // should be formatted as an uppercase hash.
12271 func TLSClientHashSha1(val string) attribute.KeyValue {
12272 return TLSClientHashSha1Key.String(val)
12273 }
12274
12275 // TLSClientHashSha256 returns an attribute KeyValue conforming to the
12276 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
12277 // fingerprint using the SHA256 digest of DER-encoded version of certificate
12278 // offered by the client. For consistency with other hash values, this value
12279 // should be formatted as an uppercase hash.
12280 func TLSClientHashSha256(val string) attribute.KeyValue {
12281 return TLSClientHashSha256Key.String(val)
12282 }
12283
12284 // TLSClientIssuer returns an attribute KeyValue conforming to the
12285 // "tls.client.issuer" semantic conventions. It represents the distinguished name
12286 // of [subject] of the issuer of the x.509 certificate presented by the client.
12287 //
12288 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
12289 func TLSClientIssuer(val string) attribute.KeyValue {
12290 return TLSClientIssuerKey.String(val)
12291 }
12292
12293 // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
12294 // semantic conventions. It represents a hash that identifies clients based on
12295 // how they perform an SSL/TLS handshake.
12296 func TLSClientJa3(val string) attribute.KeyValue {
12297 return TLSClientJa3Key.String(val)
12298 }
12299
12300 // TLSClientNotAfter returns an attribute KeyValue conforming to the
12301 // "tls.client.not_after" semantic conventions. It represents the date/Time
12302 // indicating when client certificate is no longer considered valid.
12303 func TLSClientNotAfter(val string) attribute.KeyValue {
12304 return TLSClientNotAfterKey.String(val)
12305 }
12306
12307 // TLSClientNotBefore returns an attribute KeyValue conforming to the
12308 // "tls.client.not_before" semantic conventions. It represents the date/Time
12309 // indicating when client certificate is first considered valid.
12310 func TLSClientNotBefore(val string) attribute.KeyValue {
12311 return TLSClientNotBeforeKey.String(val)
12312 }
12313
12314 // TLSClientSubject returns an attribute KeyValue conforming to the
12315 // "tls.client.subject" semantic conventions. It represents the distinguished
12316 // name of subject of the x.509 certificate presented by the client.
12317 func TLSClientSubject(val string) attribute.KeyValue {
12318 return TLSClientSubjectKey.String(val)
12319 }
12320
12321 // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
12322 // "tls.client.supported_ciphers" semantic conventions. It represents the array
12323 // of ciphers offered by the client during the client hello.
12324 func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
12325 return TLSClientSupportedCiphersKey.StringSlice(val)
12326 }
12327
12328 // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
12329 // conventions. It represents the string indicating the curve used for the given
12330 // cipher, when applicable.
12331 func TLSCurve(val string) attribute.KeyValue {
12332 return TLSCurveKey.String(val)
12333 }
12334
12335 // TLSEstablished returns an attribute KeyValue conforming to the
12336 // "tls.established" semantic conventions. It represents the boolean flag
12337 // indicating if the TLS negotiation was successful and transitioned to an
12338 // encrypted tunnel.
12339 func TLSEstablished(val bool) attribute.KeyValue {
12340 return TLSEstablishedKey.Bool(val)
12341 }
12342
12343 // TLSNextProtocol returns an attribute KeyValue conforming to the
12344 // "tls.next_protocol" semantic conventions. It represents the string indicating
12345 // the protocol being tunneled. Per the values in the [IANA registry], this
12346 // string should be lower case.
12347 //
12348 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
12349 func TLSNextProtocol(val string) attribute.KeyValue {
12350 return TLSNextProtocolKey.String(val)
12351 }
12352
12353 // TLSProtocolVersion returns an attribute KeyValue conforming to the
12354 // "tls.protocol.version" semantic conventions. It represents the numeric part of
12355 // the version parsed from the original string of the negotiated
12356 // [SSL/TLS protocol version].
12357 //
12358 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
12359 func TLSProtocolVersion(val string) attribute.KeyValue {
12360 return TLSProtocolVersionKey.String(val)
12361 }
12362
12363 // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
12364 // semantic conventions. It represents the boolean flag indicating if this TLS
12365 // connection was resumed from an existing TLS negotiation.
12366 func TLSResumed(val bool) attribute.KeyValue {
12367 return TLSResumedKey.Bool(val)
12368 }
12369
12370 // TLSServerCertificate returns an attribute KeyValue conforming to the
12371 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
12372 // stand-alone certificate offered by the server. This is usually
12373 // mutually-exclusive of `server.certificate_chain` since this value also exists
12374 // in that list.
12375 func TLSServerCertificate(val string) attribute.KeyValue {
12376 return TLSServerCertificateKey.String(val)
12377 }
12378
12379 // TLSServerCertificateChain returns an attribute KeyValue conforming to the
12380 // "tls.server.certificate_chain" semantic conventions. It represents the array
12381 // of PEM-encoded certificates that make up the certificate chain offered by the
12382 // server. This is usually mutually-exclusive of `server.certificate` since that
12383 // value should be the first certificate in the chain.
12384 func TLSServerCertificateChain(val ...string) attribute.KeyValue {
12385 return TLSServerCertificateChainKey.StringSlice(val)
12386 }
12387
12388 // TLSServerHashMd5 returns an attribute KeyValue conforming to the
12389 // "tls.server.hash.md5" semantic conventions. It represents the certificate
12390 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
12391 // by the server. For consistency with other hash values, this value should be
12392 // formatted as an uppercase hash.
12393 func TLSServerHashMd5(val string) attribute.KeyValue {
12394 return TLSServerHashMd5Key.String(val)
12395 }
12396
12397 // TLSServerHashSha1 returns an attribute KeyValue conforming to the
12398 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
12399 // fingerprint using the SHA1 digest of DER-encoded version of certificate
12400 // offered by the server. For consistency with other hash values, this value
12401 // should be formatted as an uppercase hash.
12402 func TLSServerHashSha1(val string) attribute.KeyValue {
12403 return TLSServerHashSha1Key.String(val)
12404 }
12405
12406 // TLSServerHashSha256 returns an attribute KeyValue conforming to the
12407 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
12408 // fingerprint using the SHA256 digest of DER-encoded version of certificate
12409 // offered by the server. For consistency with other hash values, this value
12410 // should be formatted as an uppercase hash.
12411 func TLSServerHashSha256(val string) attribute.KeyValue {
12412 return TLSServerHashSha256Key.String(val)
12413 }
12414
12415 // TLSServerIssuer returns an attribute KeyValue conforming to the
12416 // "tls.server.issuer" semantic conventions. It represents the distinguished name
12417 // of [subject] of the issuer of the x.509 certificate presented by the client.
12418 //
12419 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
12420 func TLSServerIssuer(val string) attribute.KeyValue {
12421 return TLSServerIssuerKey.String(val)
12422 }
12423
12424 // TLSServerJa3s returns an attribute KeyValue conforming to the
12425 // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
12426 // servers based on how they perform an SSL/TLS handshake.
12427 func TLSServerJa3s(val string) attribute.KeyValue {
12428 return TLSServerJa3sKey.String(val)
12429 }
12430
12431 // TLSServerNotAfter returns an attribute KeyValue conforming to the
12432 // "tls.server.not_after" semantic conventions. It represents the date/Time
12433 // indicating when server certificate is no longer considered valid.
12434 func TLSServerNotAfter(val string) attribute.KeyValue {
12435 return TLSServerNotAfterKey.String(val)
12436 }
12437
12438 // TLSServerNotBefore returns an attribute KeyValue conforming to the
12439 // "tls.server.not_before" semantic conventions. It represents the date/Time
12440 // indicating when server certificate is first considered valid.
12441 func TLSServerNotBefore(val string) attribute.KeyValue {
12442 return TLSServerNotBeforeKey.String(val)
12443 }
12444
12445 // TLSServerSubject returns an attribute KeyValue conforming to the
12446 // "tls.server.subject" semantic conventions. It represents the distinguished
12447 // name of subject of the x.509 certificate presented by the server.
12448 func TLSServerSubject(val string) attribute.KeyValue {
12449 return TLSServerSubjectKey.String(val)
12450 }
12451
12452 // Enum values for tls.protocol.name
12453 var (
12454 // ssl
12455 // Stability: development
12456 TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
12457 // tls
12458 // Stability: development
12459 TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
12460 )
12461
12462 // Namespace: url
12463 const (
12464 // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
12465 // conventions. It represents the domain extracted from the `url.full`, such as
12466 // "opentelemetry.io".
12467 //
12468 // Type: string
12469 // RequirementLevel: Recommended
12470 // Stability: Development
12471 //
12472 // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
12473 // "[1080:0:0:0:8:800:200C:417A]"
12474 // Note: In some cases a URL may refer to an IP and/or port directly, without a
12475 // domain name. In this case, the IP address would go to the domain field. If
12476 // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
12477 // and `]` characters should also be captured in the domain field.
12478 //
12479 // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
12480 URLDomainKey = attribute.Key("url.domain")
12481
12482 // URLExtensionKey is the attribute Key conforming to the "url.extension"
12483 // semantic conventions. It represents the file extension extracted from the
12484 // `url.full`, excluding the leading dot.
12485 //
12486 // Type: string
12487 // RequirementLevel: Recommended
12488 // Stability: Development
12489 //
12490 // Examples: "png", "gz"
12491 // Note: The file extension is only set if it exists, as not every url has a
12492 // file extension. When the file name has multiple extensions `example.tar.gz`,
12493 // only the last one should be captured `gz`, not `tar.gz`.
12494 URLExtensionKey = attribute.Key("url.extension")
12495
12496 // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
12497 // conventions. It represents the [URI fragment] component.
12498 //
12499 // Type: string
12500 // RequirementLevel: Recommended
12501 // Stability: Stable
12502 //
12503 // Examples: "SemConv"
12504 //
12505 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
12506 URLFragmentKey = attribute.Key("url.fragment")
12507
12508 // URLFullKey is the attribute Key conforming to the "url.full" semantic
12509 // conventions. It represents the absolute URL describing a network resource
12510 // according to [RFC3986].
12511 //
12512 // Type: string
12513 // RequirementLevel: Recommended
12514 // Stability: Stable
12515 //
12516 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
12517 // Note: For network calls, URL usually has
12518 // `scheme://host[:port][path][?query][#fragment]` format, where the fragment
12519 // is not transmitted over HTTP, but if it is known, it SHOULD be included
12520 // nevertheless.
12521 //
12522 // `url.full` MUST NOT contain credentials passed via URL in form of
12523 // `https://username:[email protected]/`.
12524 // In such case username and password SHOULD be redacted and attribute's value
12525 // SHOULD be `https://REDACTED:[email protected]/`.
12526 //
12527 // `url.full` SHOULD capture the absolute URL when it is available (or can be
12528 // reconstructed).
12529 //
12530 // Sensitive content provided in `url.full` SHOULD be scrubbed when
12531 // instrumentations can identify it.
12532 //
12533 //
12534 // Query string values for the following keys SHOULD be redacted by default and
12535 // replaced by the
12536 // value `REDACTED`:
12537 //
12538 // - [`AWSAccessKeyId`]
12539 // - [`Signature`]
12540 // - [`sig`]
12541 // - [`X-Goog-Signature`]
12542 //
12543 // This list is subject to change over time.
12544 //
12545 // When a query string value is redacted, the query string key SHOULD still be
12546 // preserved, e.g.
12547 // `https://www.example.com/path?color=blue&sig=REDACTED`.
12548 //
12549 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
12550 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
12551 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
12552 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
12553 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
12554 URLFullKey = attribute.Key("url.full")
12555
12556 // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
12557 // conventions. It represents the unmodified original URL as seen in the event
12558 // source.
12559 //
12560 // Type: string
12561 // RequirementLevel: Recommended
12562 // Stability: Development
12563 //
12564 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
12565 // "search?q=OpenTelemetry"
12566 // Note: In network monitoring, the observed URL may be a full URL, whereas in
12567 // access logs, the URL is often just represented as a path. This field is meant
12568 // to represent the URL as it was observed, complete or not.
12569 // `url.original` might contain credentials passed via URL in form of
12570 // `https://username:[email protected]/`. In such case password and
12571 // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
12572 URLOriginalKey = attribute.Key("url.original")
12573
12574 // URLPathKey is the attribute Key conforming to the "url.path" semantic
12575 // conventions. It represents the [URI path] component.
12576 //
12577 // Type: string
12578 // RequirementLevel: Recommended
12579 // Stability: Stable
12580 //
12581 // Examples: "/search"
12582 // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
12583 // instrumentations can identify it.
12584 //
12585 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
12586 URLPathKey = attribute.Key("url.path")
12587
12588 // URLPortKey is the attribute Key conforming to the "url.port" semantic
12589 // conventions. It represents the port extracted from the `url.full`.
12590 //
12591 // Type: int
12592 // RequirementLevel: Recommended
12593 // Stability: Development
12594 //
12595 // Examples: 443
12596 URLPortKey = attribute.Key("url.port")
12597
12598 // URLQueryKey is the attribute Key conforming to the "url.query" semantic
12599 // conventions. It represents the [URI query] component.
12600 //
12601 // Type: string
12602 // RequirementLevel: Recommended
12603 // Stability: Stable
12604 //
12605 // Examples: "q=OpenTelemetry"
12606 // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
12607 // instrumentations can identify it.
12608 //
12609 //
12610 // Query string values for the following keys SHOULD be redacted by default and
12611 // replaced by the value `REDACTED`:
12612 //
12613 // - [`AWSAccessKeyId`]
12614 // - [`Signature`]
12615 // - [`sig`]
12616 // - [`X-Goog-Signature`]
12617 //
12618 // This list is subject to change over time.
12619 //
12620 // When a query string value is redacted, the query string key SHOULD still be
12621 // preserved, e.g.
12622 // `q=OpenTelemetry&sig=REDACTED`.
12623 //
12624 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
12625 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
12626 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
12627 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
12628 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
12629 URLQueryKey = attribute.Key("url.query")
12630
12631 // URLRegisteredDomainKey is the attribute Key conforming to the
12632 // "url.registered_domain" semantic conventions. It represents the highest
12633 // registered url domain, stripped of the subdomain.
12634 //
12635 // Type: string
12636 // RequirementLevel: Recommended
12637 // Stability: Development
12638 //
12639 // Examples: "example.com", "foo.co.uk"
12640 // Note: This value can be determined precisely with the [public suffix list].
12641 // For example, the registered domain for `foo.example.com` is `example.com`.
12642 // Trying to approximate this by simply taking the last two labels will not work
12643 // well for TLDs such as `co.uk`.
12644 //
12645 // [public suffix list]: https://publicsuffix.org/
12646 URLRegisteredDomainKey = attribute.Key("url.registered_domain")
12647
12648 // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
12649 // conventions. It represents the [URI scheme] component identifying the used
12650 // protocol.
12651 //
12652 // Type: string
12653 // RequirementLevel: Recommended
12654 // Stability: Stable
12655 //
12656 // Examples: "https", "ftp", "telnet"
12657 //
12658 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
12659 URLSchemeKey = attribute.Key("url.scheme")
12660
12661 // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
12662 // semantic conventions. It represents the subdomain portion of a fully
12663 // qualified domain name includes all of the names except the host name under
12664 // the registered_domain. In a partially qualified domain, or if the
12665 // qualification level of the full name cannot be determined, subdomain contains
12666 // all of the names below the registered domain.
12667 //
12668 // Type: string
12669 // RequirementLevel: Recommended
12670 // Stability: Development
12671 //
12672 // Examples: "east", "sub2.sub1"
12673 // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
12674 // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
12675 // subdomain field should contain `sub2.sub1`, with no trailing period.
12676 URLSubdomainKey = attribute.Key("url.subdomain")
12677
12678 // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
12679 // conventions. It represents the low-cardinality template of an
12680 // [absolute path reference].
12681 //
12682 // Type: string
12683 // RequirementLevel: Recommended
12684 // Stability: Development
12685 //
12686 // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
12687 //
12688 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
12689 URLTemplateKey = attribute.Key("url.template")
12690
12691 // URLTopLevelDomainKey is the attribute Key conforming to the
12692 // "url.top_level_domain" semantic conventions. It represents the effective top
12693 // level domain (eTLD), also known as the domain suffix, is the last part of the
12694 // domain name. For example, the top level domain for example.com is `com`.
12695 //
12696 // Type: string
12697 // RequirementLevel: Recommended
12698 // Stability: Development
12699 //
12700 // Examples: "com", "co.uk"
12701 // Note: This value can be determined precisely with the [public suffix list].
12702 //
12703 // [public suffix list]: https://publicsuffix.org/
12704 URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
12705 )
12706
12707 // URLDomain returns an attribute KeyValue conforming to the "url.domain"
12708 // semantic conventions. It represents the domain extracted from the `url.full`,
12709 // such as "opentelemetry.io".
12710 func URLDomain(val string) attribute.KeyValue {
12711 return URLDomainKey.String(val)
12712 }
12713
12714 // URLExtension returns an attribute KeyValue conforming to the "url.extension"
12715 // semantic conventions. It represents the file extension extracted from the
12716 // `url.full`, excluding the leading dot.
12717 func URLExtension(val string) attribute.KeyValue {
12718 return URLExtensionKey.String(val)
12719 }
12720
12721 // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
12722 // semantic conventions. It represents the [URI fragment] component.
12723 //
12724 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
12725 func URLFragment(val string) attribute.KeyValue {
12726 return URLFragmentKey.String(val)
12727 }
12728
12729 // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
12730 // conventions. It represents the absolute URL describing a network resource
12731 // according to [RFC3986].
12732 //
12733 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
12734 func URLFull(val string) attribute.KeyValue {
12735 return URLFullKey.String(val)
12736 }
12737
12738 // URLOriginal returns an attribute KeyValue conforming to the "url.original"
12739 // semantic conventions. It represents the unmodified original URL as seen in the
12740 // event source.
12741 func URLOriginal(val string) attribute.KeyValue {
12742 return URLOriginalKey.String(val)
12743 }
12744
12745 // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
12746 // conventions. It represents the [URI path] component.
12747 //
12748 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
12749 func URLPath(val string) attribute.KeyValue {
12750 return URLPathKey.String(val)
12751 }
12752
12753 // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
12754 // conventions. It represents the port extracted from the `url.full`.
12755 func URLPort(val int) attribute.KeyValue {
12756 return URLPortKey.Int(val)
12757 }
12758
12759 // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
12760 // conventions. It represents the [URI query] component.
12761 //
12762 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
12763 func URLQuery(val string) attribute.KeyValue {
12764 return URLQueryKey.String(val)
12765 }
12766
12767 // URLRegisteredDomain returns an attribute KeyValue conforming to the
12768 // "url.registered_domain" semantic conventions. It represents the highest
12769 // registered url domain, stripped of the subdomain.
12770 func URLRegisteredDomain(val string) attribute.KeyValue {
12771 return URLRegisteredDomainKey.String(val)
12772 }
12773
12774 // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
12775 // semantic conventions. It represents the [URI scheme] component identifying the
12776 // used protocol.
12777 //
12778 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
12779 func URLScheme(val string) attribute.KeyValue {
12780 return URLSchemeKey.String(val)
12781 }
12782
12783 // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
12784 // semantic conventions. It represents the subdomain portion of a fully qualified
12785 // domain name includes all of the names except the host name under the
12786 // registered_domain. In a partially qualified domain, or if the qualification
12787 // level of the full name cannot be determined, subdomain contains all of the
12788 // names below the registered domain.
12789 func URLSubdomain(val string) attribute.KeyValue {
12790 return URLSubdomainKey.String(val)
12791 }
12792
12793 // URLTemplate returns an attribute KeyValue conforming to the "url.template"
12794 // semantic conventions. It represents the low-cardinality template of an
12795 // [absolute path reference].
12796 //
12797 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
12798 func URLTemplate(val string) attribute.KeyValue {
12799 return URLTemplateKey.String(val)
12800 }
12801
12802 // URLTopLevelDomain returns an attribute KeyValue conforming to the
12803 // "url.top_level_domain" semantic conventions. It represents the effective top
12804 // level domain (eTLD), also known as the domain suffix, is the last part of the
12805 // domain name. For example, the top level domain for example.com is `com`.
12806 func URLTopLevelDomain(val string) attribute.KeyValue {
12807 return URLTopLevelDomainKey.String(val)
12808 }
12809
12810 // Namespace: user
12811 const (
12812 // UserEmailKey is the attribute Key conforming to the "user.email" semantic
12813 // conventions. It represents the user email address.
12814 //
12815 // Type: string
12816 // RequirementLevel: Recommended
12817 // Stability: Development
12818 //
12819 // Examples: "[email protected]"
12820 UserEmailKey = attribute.Key("user.email")
12821
12822 // UserFullNameKey is the attribute Key conforming to the "user.full_name"
12823 // semantic conventions. It represents the user's full name.
12824 //
12825 // Type: string
12826 // RequirementLevel: Recommended
12827 // Stability: Development
12828 //
12829 // Examples: "Albert Einstein"
12830 UserFullNameKey = attribute.Key("user.full_name")
12831
12832 // UserHashKey is the attribute Key conforming to the "user.hash" semantic
12833 // conventions. It represents the unique user hash to correlate information for
12834 // a user in anonymized form.
12835 //
12836 // Type: string
12837 // RequirementLevel: Recommended
12838 // Stability: Development
12839 //
12840 // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
12841 // Note: Useful if `user.id` or `user.name` contain confidential information and
12842 // cannot be used.
12843 UserHashKey = attribute.Key("user.hash")
12844
12845 // UserIDKey is the attribute Key conforming to the "user.id" semantic
12846 // conventions. It represents the unique identifier of the user.
12847 //
12848 // Type: string
12849 // RequirementLevel: Recommended
12850 // Stability: Development
12851 //
12852 // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
12853 UserIDKey = attribute.Key("user.id")
12854
12855 // UserNameKey is the attribute Key conforming to the "user.name" semantic
12856 // conventions. It represents the short name or login/username of the user.
12857 //
12858 // Type: string
12859 // RequirementLevel: Recommended
12860 // Stability: Development
12861 //
12862 // Examples: "a.einstein"
12863 UserNameKey = attribute.Key("user.name")
12864
12865 // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
12866 // conventions. It represents the array of user roles at the time of the event.
12867 //
12868 // Type: string[]
12869 // RequirementLevel: Recommended
12870 // Stability: Development
12871 //
12872 // Examples: "admin", "reporting_user"
12873 UserRolesKey = attribute.Key("user.roles")
12874 )
12875
12876 // UserEmail returns an attribute KeyValue conforming to the "user.email"
12877 // semantic conventions. It represents the user email address.
12878 func UserEmail(val string) attribute.KeyValue {
12879 return UserEmailKey.String(val)
12880 }
12881
12882 // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
12883 // semantic conventions. It represents the user's full name.
12884 func UserFullName(val string) attribute.KeyValue {
12885 return UserFullNameKey.String(val)
12886 }
12887
12888 // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
12889 // conventions. It represents the unique user hash to correlate information for a
12890 // user in anonymized form.
12891 func UserHash(val string) attribute.KeyValue {
12892 return UserHashKey.String(val)
12893 }
12894
12895 // UserID returns an attribute KeyValue conforming to the "user.id" semantic
12896 // conventions. It represents the unique identifier of the user.
12897 func UserID(val string) attribute.KeyValue {
12898 return UserIDKey.String(val)
12899 }
12900
12901 // UserName returns an attribute KeyValue conforming to the "user.name" semantic
12902 // conventions. It represents the short name or login/username of the user.
12903 func UserName(val string) attribute.KeyValue {
12904 return UserNameKey.String(val)
12905 }
12906
12907 // UserRoles returns an attribute KeyValue conforming to the "user.roles"
12908 // semantic conventions. It represents the array of user roles at the time of the
12909 // event.
12910 func UserRoles(val ...string) attribute.KeyValue {
12911 return UserRolesKey.StringSlice(val)
12912 }
12913
12914 // Namespace: user_agent
12915 const (
12916 // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
12917 // semantic conventions. It represents the name of the user-agent extracted from
12918 // original. Usually refers to the browser's name.
12919 //
12920 // Type: string
12921 // RequirementLevel: Recommended
12922 // Stability: Development
12923 //
12924 // Examples: "Safari", "YourApp"
12925 // Note: [Example] of extracting browser's name from original string. In the
12926 // case of using a user-agent for non-browser products, such as microservices
12927 // with multiple names/versions inside the `user_agent.original`, the most
12928 // significant name SHOULD be selected. In such a scenario it should align with
12929 // `user_agent.version`
12930 //
12931 // [Example]: https://www.whatsmyua.info
12932 UserAgentNameKey = attribute.Key("user_agent.name")
12933
12934 // UserAgentOriginalKey is the attribute Key conforming to the
12935 // "user_agent.original" semantic conventions. It represents the value of the
12936 // [HTTP User-Agent] header sent by the client.
12937 //
12938 // Type: string
12939 // RequirementLevel: Recommended
12940 // Stability: Stable
12941 //
12942 // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
12943 // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
12944 // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
12945 // grpc-java-okhttp/1.27.2"
12946 //
12947 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
12948 UserAgentOriginalKey = attribute.Key("user_agent.original")
12949
12950 // UserAgentOSNameKey is the attribute Key conforming to the
12951 // "user_agent.os.name" semantic conventions. It represents the human readable
12952 // operating system name.
12953 //
12954 // Type: string
12955 // RequirementLevel: Recommended
12956 // Stability: Development
12957 //
12958 // Examples: "iOS", "Android", "Ubuntu"
12959 // Note: For mapping user agent strings to OS names, libraries such as
12960 // [ua-parser] can be utilized.
12961 //
12962 // [ua-parser]: https://github.com/ua-parser
12963 UserAgentOSNameKey = attribute.Key("user_agent.os.name")
12964
12965 // UserAgentOSVersionKey is the attribute Key conforming to the
12966 // "user_agent.os.version" semantic conventions. It represents the version
12967 // string of the operating system as defined in [Version Attributes].
12968 //
12969 // Type: string
12970 // RequirementLevel: Recommended
12971 // Stability: Development
12972 //
12973 // Examples: "14.2.1", "18.04.1"
12974 // Note: For mapping user agent strings to OS versions, libraries such as
12975 // [ua-parser] can be utilized.
12976 //
12977 // [Version Attributes]: /docs/resource/README.md#version-attributes
12978 // [ua-parser]: https://github.com/ua-parser
12979 UserAgentOSVersionKey = attribute.Key("user_agent.os.version")
12980
12981 // UserAgentSyntheticTypeKey is the attribute Key conforming to the
12982 // "user_agent.synthetic.type" semantic conventions. It represents the specifies
12983 // the category of synthetic traffic, such as tests or bots.
12984 //
12985 // Type: Enum
12986 // RequirementLevel: Recommended
12987 // Stability: Development
12988 //
12989 // Examples:
12990 // Note: This attribute MAY be derived from the contents of the
12991 // `user_agent.original` attribute. Components that populate the attribute are
12992 // responsible for determining what they consider to be synthetic bot or test
12993 // traffic. This attribute can either be set for self-identification purposes,
12994 // or on telemetry detected to be generated as a result of a synthetic request.
12995 // This attribute is useful for distinguishing between genuine client traffic
12996 // and synthetic traffic generated by bots or tests.
12997 UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type")
12998
12999 // UserAgentVersionKey is the attribute Key conforming to the
13000 // "user_agent.version" semantic conventions. It represents the version of the
13001 // user-agent extracted from original. Usually refers to the browser's version.
13002 //
13003 // Type: string
13004 // RequirementLevel: Recommended
13005 // Stability: Development
13006 //
13007 // Examples: "14.1.2", "1.0.0"
13008 // Note: [Example] of extracting browser's version from original string. In the
13009 // case of using a user-agent for non-browser products, such as microservices
13010 // with multiple names/versions inside the `user_agent.original`, the most
13011 // significant version SHOULD be selected. In such a scenario it should align
13012 // with `user_agent.name`
13013 //
13014 // [Example]: https://www.whatsmyua.info
13015 UserAgentVersionKey = attribute.Key("user_agent.version")
13016 )
13017
13018 // UserAgentName returns an attribute KeyValue conforming to the
13019 // "user_agent.name" semantic conventions. It represents the name of the
13020 // user-agent extracted from original. Usually refers to the browser's name.
13021 func UserAgentName(val string) attribute.KeyValue {
13022 return UserAgentNameKey.String(val)
13023 }
13024
13025 // UserAgentOriginal returns an attribute KeyValue conforming to the
13026 // "user_agent.original" semantic conventions. It represents the value of the
13027 // [HTTP User-Agent] header sent by the client.
13028 //
13029 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
13030 func UserAgentOriginal(val string) attribute.KeyValue {
13031 return UserAgentOriginalKey.String(val)
13032 }
13033
13034 // UserAgentOSName returns an attribute KeyValue conforming to the
13035 // "user_agent.os.name" semantic conventions. It represents the human readable
13036 // operating system name.
13037 func UserAgentOSName(val string) attribute.KeyValue {
13038 return UserAgentOSNameKey.String(val)
13039 }
13040
13041 // UserAgentOSVersion returns an attribute KeyValue conforming to the
13042 // "user_agent.os.version" semantic conventions. It represents the version string
13043 // of the operating system as defined in [Version Attributes].
13044 //
13045 // [Version Attributes]: /docs/resource/README.md#version-attributes
13046 func UserAgentOSVersion(val string) attribute.KeyValue {
13047 return UserAgentOSVersionKey.String(val)
13048 }
13049
13050 // UserAgentVersion returns an attribute KeyValue conforming to the
13051 // "user_agent.version" semantic conventions. It represents the version of the
13052 // user-agent extracted from original. Usually refers to the browser's version.
13053 func UserAgentVersion(val string) attribute.KeyValue {
13054 return UserAgentVersionKey.String(val)
13055 }
13056
13057 // Enum values for user_agent.synthetic.type
13058 var (
13059 // Bot source.
13060 // Stability: development
13061 UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot")
13062 // Synthetic test source.
13063 // Stability: development
13064 UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test")
13065 )
13066
13067 // Namespace: vcs
13068 const (
13069 // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id"
13070 // semantic conventions. It represents the ID of the change (pull request/merge
13071 // request/changelist) if applicable. This is usually a unique (within
13072 // repository) identifier generated by the VCS system.
13073 //
13074 // Type: string
13075 // RequirementLevel: Recommended
13076 // Stability: Development
13077 //
13078 // Examples: "123"
13079 VCSChangeIDKey = attribute.Key("vcs.change.id")
13080
13081 // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state"
13082 // semantic conventions. It represents the state of the change (pull
13083 // request/merge request/changelist).
13084 //
13085 // Type: Enum
13086 // RequirementLevel: Recommended
13087 // Stability: Development
13088 //
13089 // Examples: "open", "closed", "merged"
13090 VCSChangeStateKey = attribute.Key("vcs.change.state")
13091
13092 // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title"
13093 // semantic conventions. It represents the human readable title of the change
13094 // (pull request/merge request/changelist). This title is often a brief summary
13095 // of the change and may get merged in to a ref as the commit summary.
13096 //
13097 // Type: string
13098 // RequirementLevel: Recommended
13099 // Stability: Development
13100 //
13101 // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
13102 // dependency"
13103 VCSChangeTitleKey = attribute.Key("vcs.change.title")
13104
13105 // VCSLineChangeTypeKey is the attribute Key conforming to the
13106 // "vcs.line_change.type" semantic conventions. It represents the type of line
13107 // change being measured on a branch or change.
13108 //
13109 // Type: Enum
13110 // RequirementLevel: Recommended
13111 // Stability: Development
13112 //
13113 // Examples: "added", "removed"
13114 VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type")
13115
13116 // VCSOwnerNameKey is the attribute Key conforming to the "vcs.owner.name"
13117 // semantic conventions. It represents the group owner within the version
13118 // control system.
13119 //
13120 // Type: string
13121 // RequirementLevel: Recommended
13122 // Stability: Development
13123 //
13124 // Examples: "my-org", "myteam", "business-unit"
13125 VCSOwnerNameKey = attribute.Key("vcs.owner.name")
13126
13127 // VCSProviderNameKey is the attribute Key conforming to the "vcs.provider.name"
13128 // semantic conventions. It represents the name of the version control system
13129 // provider.
13130 //
13131 // Type: Enum
13132 // RequirementLevel: Recommended
13133 // Stability: Development
13134 //
13135 // Examples: "github", "gitlab", "gitea", "bitbucket"
13136 VCSProviderNameKey = attribute.Key("vcs.provider.name")
13137
13138 // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name"
13139 // semantic conventions. It represents the name of the [reference] such as
13140 // **branch** or **tag** in the repository.
13141 //
13142 // Type: string
13143 // RequirementLevel: Recommended
13144 // Stability: Development
13145 //
13146 // Examples: "my-feature-branch", "tag-1-test"
13147 // Note: `base` refers to the starting point of a change. For example, `main`
13148 // would be the base reference of type branch if you've created a new
13149 // reference of type branch from it and created new commits.
13150 //
13151 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13152 VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name")
13153
13154 // VCSRefBaseRevisionKey is the attribute Key conforming to the
13155 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
13156 // literally [revised version], The revision most often refers to a commit
13157 // object in Git, or a revision number in SVN.
13158 //
13159 // Type: string
13160 // RequirementLevel: Recommended
13161 // Stability: Development
13162 //
13163 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
13164 // "main", "123", "HEAD"
13165 // Note: `base` refers to the starting point of a change. For example, `main`
13166 // would be the base reference of type branch if you've created a new
13167 // reference of type branch from it and created new commits. The
13168 // revision can be a full [hash value (see
13169 // glossary)],
13170 // of the recorded change to a ref within a repository pointing to a
13171 // commit [commit] object. It does
13172 // not necessarily have to be a hash; it can simply define a [revision
13173 // number]
13174 // which is an integer that is monotonically increasing. In cases where
13175 // it is identical to the `ref.base.name`, it SHOULD still be included.
13176 // It is up to the implementer to decide which value to set as the
13177 // revision based on the VCS system and situational context.
13178 //
13179 // [revised version]: https://www.merriam-webster.com/dictionary/revision
13180 // [hash value (see
13181 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
13182 // [commit]: https://git-scm.com/docs/git-commit
13183 // [revision
13184 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
13185 VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision")
13186
13187 // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type"
13188 // semantic conventions. It represents the type of the [reference] in the
13189 // repository.
13190 //
13191 // Type: Enum
13192 // RequirementLevel: Recommended
13193 // Stability: Development
13194 //
13195 // Examples: "branch", "tag"
13196 // Note: `base` refers to the starting point of a change. For example, `main`
13197 // would be the base reference of type branch if you've created a new
13198 // reference of type branch from it and created new commits.
13199 //
13200 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13201 VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type")
13202
13203 // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name"
13204 // semantic conventions. It represents the name of the [reference] such as
13205 // **branch** or **tag** in the repository.
13206 //
13207 // Type: string
13208 // RequirementLevel: Recommended
13209 // Stability: Development
13210 //
13211 // Examples: "my-feature-branch", "tag-1-test"
13212 // Note: `head` refers to where you are right now; the current reference at a
13213 // given time.
13214 //
13215 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13216 VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name")
13217
13218 // VCSRefHeadRevisionKey is the attribute Key conforming to the
13219 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
13220 // literally [revised version], The revision most often refers to a commit
13221 // object in Git, or a revision number in SVN.
13222 //
13223 // Type: string
13224 // RequirementLevel: Recommended
13225 // Stability: Development
13226 //
13227 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
13228 // "main", "123", "HEAD"
13229 // Note: `head` refers to where you are right now; the current reference at a
13230 // given time.The revision can be a full [hash value (see
13231 // glossary)],
13232 // of the recorded change to a ref within a repository pointing to a
13233 // commit [commit] object. It does
13234 // not necessarily have to be a hash; it can simply define a [revision
13235 // number]
13236 // which is an integer that is monotonically increasing. In cases where
13237 // it is identical to the `ref.head.name`, it SHOULD still be included.
13238 // It is up to the implementer to decide which value to set as the
13239 // revision based on the VCS system and situational context.
13240 //
13241 // [revised version]: https://www.merriam-webster.com/dictionary/revision
13242 // [hash value (see
13243 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
13244 // [commit]: https://git-scm.com/docs/git-commit
13245 // [revision
13246 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
13247 VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision")
13248
13249 // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type"
13250 // semantic conventions. It represents the type of the [reference] in the
13251 // repository.
13252 //
13253 // Type: Enum
13254 // RequirementLevel: Recommended
13255 // Stability: Development
13256 //
13257 // Examples: "branch", "tag"
13258 // Note: `head` refers to where you are right now; the current reference at a
13259 // given time.
13260 //
13261 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13262 VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type")
13263
13264 // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic
13265 // conventions. It represents the type of the [reference] in the repository.
13266 //
13267 // Type: Enum
13268 // RequirementLevel: Recommended
13269 // Stability: Development
13270 //
13271 // Examples: "branch", "tag"
13272 //
13273 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13274 VCSRefTypeKey = attribute.Key("vcs.ref.type")
13275
13276 // VCSRepositoryNameKey is the attribute Key conforming to the
13277 // "vcs.repository.name" semantic conventions. It represents the human readable
13278 // name of the repository. It SHOULD NOT include any additional identifier like
13279 // Group/SubGroup in GitLab or organization in GitHub.
13280 //
13281 // Type: string
13282 // RequirementLevel: Recommended
13283 // Stability: Development
13284 //
13285 // Examples: "semantic-conventions", "my-cool-repo"
13286 // Note: Due to it only being the name, it can clash with forks of the same
13287 // repository if collecting telemetry across multiple orgs or groups in
13288 // the same backends.
13289 VCSRepositoryNameKey = attribute.Key("vcs.repository.name")
13290
13291 // VCSRepositoryURLFullKey is the attribute Key conforming to the
13292 // "vcs.repository.url.full" semantic conventions. It represents the
13293 // [canonical URL] of the repository providing the complete HTTP(S) address in
13294 // order to locate and identify the repository through a browser.
13295 //
13296 // Type: string
13297 // RequirementLevel: Recommended
13298 // Stability: Development
13299 //
13300 // Examples:
13301 // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
13302 // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
13303 // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include
13304 // the `.git` extension.
13305 //
13306 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
13307 VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
13308
13309 // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the
13310 // "vcs.revision_delta.direction" semantic conventions. It represents the type
13311 // of revision comparison.
13312 //
13313 // Type: Enum
13314 // RequirementLevel: Recommended
13315 // Stability: Development
13316 //
13317 // Examples: "ahead", "behind"
13318 VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction")
13319 )
13320
13321 // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id"
13322 // semantic conventions. It represents the ID of the change (pull request/merge
13323 // request/changelist) if applicable. This is usually a unique (within
13324 // repository) identifier generated by the VCS system.
13325 func VCSChangeID(val string) attribute.KeyValue {
13326 return VCSChangeIDKey.String(val)
13327 }
13328
13329 // VCSChangeTitle returns an attribute KeyValue conforming to the
13330 // "vcs.change.title" semantic conventions. It represents the human readable
13331 // title of the change (pull request/merge request/changelist). This title is
13332 // often a brief summary of the change and may get merged in to a ref as the
13333 // commit summary.
13334 func VCSChangeTitle(val string) attribute.KeyValue {
13335 return VCSChangeTitleKey.String(val)
13336 }
13337
13338 // VCSOwnerName returns an attribute KeyValue conforming to the "vcs.owner.name"
13339 // semantic conventions. It represents the group owner within the version control
13340 // system.
13341 func VCSOwnerName(val string) attribute.KeyValue {
13342 return VCSOwnerNameKey.String(val)
13343 }
13344
13345 // VCSRefBaseName returns an attribute KeyValue conforming to the
13346 // "vcs.ref.base.name" semantic conventions. It represents the name of the
13347 // [reference] such as **branch** or **tag** in the repository.
13348 //
13349 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13350 func VCSRefBaseName(val string) attribute.KeyValue {
13351 return VCSRefBaseNameKey.String(val)
13352 }
13353
13354 // VCSRefBaseRevision returns an attribute KeyValue conforming to the
13355 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
13356 // literally [revised version], The revision most often refers to a commit object
13357 // in Git, or a revision number in SVN.
13358 //
13359 // [revised version]: https://www.merriam-webster.com/dictionary/revision
13360 func VCSRefBaseRevision(val string) attribute.KeyValue {
13361 return VCSRefBaseRevisionKey.String(val)
13362 }
13363
13364 // VCSRefHeadName returns an attribute KeyValue conforming to the
13365 // "vcs.ref.head.name" semantic conventions. It represents the name of the
13366 // [reference] such as **branch** or **tag** in the repository.
13367 //
13368 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13369 func VCSRefHeadName(val string) attribute.KeyValue {
13370 return VCSRefHeadNameKey.String(val)
13371 }
13372
13373 // VCSRefHeadRevision returns an attribute KeyValue conforming to the
13374 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
13375 // literally [revised version], The revision most often refers to a commit object
13376 // in Git, or a revision number in SVN.
13377 //
13378 // [revised version]: https://www.merriam-webster.com/dictionary/revision
13379 func VCSRefHeadRevision(val string) attribute.KeyValue {
13380 return VCSRefHeadRevisionKey.String(val)
13381 }
13382
13383 // VCSRepositoryName returns an attribute KeyValue conforming to the
13384 // "vcs.repository.name" semantic conventions. It represents the human readable
13385 // name of the repository. It SHOULD NOT include any additional identifier like
13386 // Group/SubGroup in GitLab or organization in GitHub.
13387 func VCSRepositoryName(val string) attribute.KeyValue {
13388 return VCSRepositoryNameKey.String(val)
13389 }
13390
13391 // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
13392 // "vcs.repository.url.full" semantic conventions. It represents the
13393 // [canonical URL] of the repository providing the complete HTTP(S) address in
13394 // order to locate and identify the repository through a browser.
13395 //
13396 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
13397 func VCSRepositoryURLFull(val string) attribute.KeyValue {
13398 return VCSRepositoryURLFullKey.String(val)
13399 }
13400
13401 // Enum values for vcs.change.state
13402 var (
13403 // Open means the change is currently active and under review. It hasn't been
13404 // merged into the target branch yet, and it's still possible to make changes or
13405 // add comments.
13406 // Stability: development
13407 VCSChangeStateOpen = VCSChangeStateKey.String("open")
13408 // WIP (work-in-progress, draft) means the change is still in progress and not
13409 // yet ready for a full review. It might still undergo significant changes.
13410 // Stability: development
13411 VCSChangeStateWip = VCSChangeStateKey.String("wip")
13412 // Closed means the merge request has been closed without merging. This can
13413 // happen for various reasons, such as the changes being deemed unnecessary, the
13414 // issue being resolved in another way, or the author deciding to withdraw the
13415 // request.
13416 // Stability: development
13417 VCSChangeStateClosed = VCSChangeStateKey.String("closed")
13418 // Merged indicates that the change has been successfully integrated into the
13419 // target codebase.
13420 // Stability: development
13421 VCSChangeStateMerged = VCSChangeStateKey.String("merged")
13422 )
13423
13424 // Enum values for vcs.line_change.type
13425 var (
13426 // How many lines were added.
13427 // Stability: development
13428 VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added")
13429 // How many lines were removed.
13430 // Stability: development
13431 VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed")
13432 )
13433
13434 // Enum values for vcs.provider.name
13435 var (
13436 // [GitHub]
13437 // Stability: development
13438 //
13439 // [GitHub]: https://github.com
13440 VCSProviderNameGithub = VCSProviderNameKey.String("github")
13441 // [GitLab]
13442 // Stability: development
13443 //
13444 // [GitLab]: https://gitlab.com
13445 VCSProviderNameGitlab = VCSProviderNameKey.String("gitlab")
13446 // Deprecated: Replaced by `gitea`.
13447 VCSProviderNameGittea = VCSProviderNameKey.String("gittea")
13448 // [Gitea]
13449 // Stability: development
13450 //
13451 // [Gitea]: https://gitea.io
13452 VCSProviderNameGitea = VCSProviderNameKey.String("gitea")
13453 // [Bitbucket]
13454 // Stability: development
13455 //
13456 // [Bitbucket]: https://bitbucket.org
13457 VCSProviderNameBitbucket = VCSProviderNameKey.String("bitbucket")
13458 )
13459
13460 // Enum values for vcs.ref.base.type
13461 var (
13462 // [branch]
13463 // Stability: development
13464 //
13465 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
13466 VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch")
13467 // [tag]
13468 // Stability: development
13469 //
13470 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
13471 VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag")
13472 )
13473
13474 // Enum values for vcs.ref.head.type
13475 var (
13476 // [branch]
13477 // Stability: development
13478 //
13479 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
13480 VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch")
13481 // [tag]
13482 // Stability: development
13483 //
13484 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
13485 VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag")
13486 )
13487
13488 // Enum values for vcs.ref.type
13489 var (
13490 // [branch]
13491 // Stability: development
13492 //
13493 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
13494 VCSRefTypeBranch = VCSRefTypeKey.String("branch")
13495 // [tag]
13496 // Stability: development
13497 //
13498 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
13499 VCSRefTypeTag = VCSRefTypeKey.String("tag")
13500 )
13501
13502 // Enum values for vcs.revision_delta.direction
13503 var (
13504 // How many revisions the change is behind the target ref.
13505 // Stability: development
13506 VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind")
13507 // How many revisions the change is ahead of the target ref.
13508 // Stability: development
13509 VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead")
13510 )
13511
13512 // Namespace: webengine
13513 const (
13514 // WebEngineDescriptionKey is the attribute Key conforming to the
13515 // "webengine.description" semantic conventions. It represents the additional
13516 // description of the web engine (e.g. detailed version and edition
13517 // information).
13518 //
13519 // Type: string
13520 // RequirementLevel: Recommended
13521 // Stability: Development
13522 //
13523 // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
13524 // 2.2.2.Final"
13525 WebEngineDescriptionKey = attribute.Key("webengine.description")
13526
13527 // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
13528 // semantic conventions. It represents the name of the web engine.
13529 //
13530 // Type: string
13531 // RequirementLevel: Recommended
13532 // Stability: Development
13533 //
13534 // Examples: "WildFly"
13535 WebEngineNameKey = attribute.Key("webengine.name")
13536
13537 // WebEngineVersionKey is the attribute Key conforming to the
13538 // "webengine.version" semantic conventions. It represents the version of the
13539 // web engine.
13540 //
13541 // Type: string
13542 // RequirementLevel: Recommended
13543 // Stability: Development
13544 //
13545 // Examples: "21.0.0"
13546 WebEngineVersionKey = attribute.Key("webengine.version")
13547 )
13548
13549 // WebEngineDescription returns an attribute KeyValue conforming to the
13550 // "webengine.description" semantic conventions. It represents the additional
13551 // description of the web engine (e.g. detailed version and edition information).
13552 func WebEngineDescription(val string) attribute.KeyValue {
13553 return WebEngineDescriptionKey.String(val)
13554 }
13555
13556 // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
13557 // semantic conventions. It represents the name of the web engine.
13558 func WebEngineName(val string) attribute.KeyValue {
13559 return WebEngineNameKey.String(val)
13560 }
13561
13562 // WebEngineVersion returns an attribute KeyValue conforming to the
13563 // "webengine.version" semantic conventions. It represents the version of the web
13564 // engine.
13565 func WebEngineVersion(val string) attribute.KeyValue {
13566 return WebEngineVersionKey.String(val)
13567 }