Debian Codegraph @

semconv/v1.36.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.36.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 // AWSBedrockGuardrailIDKey is the attribute Key conforming to the
388 // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
389 // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
390 // prevent unwanted behavior from model responses or user messages.
391 //
392 // Type: string
393 // RequirementLevel: Recommended
394 // Stability: Development
395 //
396 // Examples: "sgi5gkybzqak"
397 //
398 // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
399 AWSBedrockGuardrailIDKey = attribute.Key("aws.bedrock.guardrail.id")
400
401 // AWSBedrockKnowledgeBaseIDKey is the attribute Key conforming to the
402 // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the
403 // unique identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a
404 // bank of information that can be queried by models to generate more relevant
405 // responses and augment prompts.
406 //
407 // Type: string
408 // RequirementLevel: Recommended
409 // Stability: Development
410 //
411 // Examples: "XFWUPB9PAW"
412 //
413 // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
414 AWSBedrockKnowledgeBaseIDKey = attribute.Key("aws.bedrock.knowledge_base.id")
415
416 // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the
417 // "aws.dynamodb.attribute_definitions" semantic conventions. It represents the
418 // JSON-serialized value of each item in the `AttributeDefinitions` request
419 // field.
420 //
421 // Type: string[]
422 // RequirementLevel: Recommended
423 // Stability: Development
424 //
425 // Examples: "{ "AttributeName": "string", "AttributeType": "string" }"
426 AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions")
427
428 // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the
429 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the
430 // value of the `AttributesToGet` request parameter.
431 //
432 // Type: string[]
433 // RequirementLevel: Recommended
434 // Stability: Development
435 //
436 // Examples: "lives", "id"
437 AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get")
438
439 // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the
440 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
441 // of the `ConsistentRead` request parameter.
442 //
443 // Type: boolean
444 // RequirementLevel: Recommended
445 // Stability: Development
446 //
447 // Examples:
448 AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read")
449
450 // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the
451 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
452 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
453 //
454 // Type: string[]
455 // RequirementLevel: Recommended
456 // Stability: Development
457 //
458 // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" :
459 // { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits":
460 // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number,
461 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } },
462 // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number,
463 // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName":
464 // "string", "WriteCapacityUnits": number }"
465 AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity")
466
467 // AWSDynamoDBCountKey is the attribute Key conforming to the
468 // "aws.dynamodb.count" semantic conventions. It represents the value of the
469 // `Count` response parameter.
470 //
471 // Type: int
472 // RequirementLevel: Recommended
473 // Stability: Development
474 //
475 // Examples: 10
476 AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count")
477
478 // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the
479 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
480 // value of the `ExclusiveStartTableName` request parameter.
481 //
482 // Type: string
483 // RequirementLevel: Recommended
484 // Stability: Development
485 //
486 // Examples: "Users", "CatsTable"
487 AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table")
488
489 // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to
490 // the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It
491 // represents the JSON-serialized value of each item in the
492 // `GlobalSecondaryIndexUpdates` request field.
493 //
494 // Type: string[]
495 // RequirementLevel: Recommended
496 // Stability: Development
497 //
498 // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ {
499 // "AttributeName": "string", "KeyType": "string" } ], "Projection": {
500 // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" },
501 // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits":
502 // number } }"
503 AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates")
504
505 // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the
506 // "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents
507 // the JSON-serialized value of each item of the `GlobalSecondaryIndexes`
508 // request field.
509 //
510 // Type: string[]
511 // RequirementLevel: Recommended
512 // Stability: Development
513 //
514 // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName":
515 // "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [
516 // "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": {
517 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"
518 AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes")
519
520 // AWSDynamoDBIndexNameKey is the attribute Key conforming to the
521 // "aws.dynamodb.index_name" semantic conventions. It represents the value of
522 // the `IndexName` request parameter.
523 //
524 // Type: string
525 // RequirementLevel: Recommended
526 // Stability: Development
527 //
528 // Examples: "name_to_group"
529 AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name")
530
531 // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the
532 // "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
533 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
534 //
535 // Type: string
536 // RequirementLevel: Recommended
537 // Stability: Development
538 //
539 // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob,
540 // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" :
541 // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S":
542 // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }"
543 AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics")
544
545 // AWSDynamoDBLimitKey is the attribute Key conforming to the
546 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
547 // `Limit` request parameter.
548 //
549 // Type: int
550 // RequirementLevel: Recommended
551 // Stability: Development
552 //
553 // Examples: 10
554 AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit")
555
556 // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the
557 // "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
558 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
559 // field.
560 //
561 // Type: string[]
562 // RequirementLevel: Recommended
563 // Stability: Development
564 //
565 // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes":
566 // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string",
567 // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ],
568 // "ProjectionType": "string" } }"
569 AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes")
570
571 // AWSDynamoDBProjectionKey is the attribute Key conforming to the
572 // "aws.dynamodb.projection" semantic conventions. It represents the value of
573 // the `ProjectionExpression` request parameter.
574 //
575 // Type: string
576 // RequirementLevel: Recommended
577 // Stability: Development
578 //
579 // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems,
580 // ProductReviews"
581 AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection")
582
583 // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the
584 // "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents
585 // the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
586 //
587 // Type: double
588 // RequirementLevel: Recommended
589 // Stability: Development
590 //
591 // Examples: 1.0, 2.0
592 AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity")
593
594 // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the
595 // "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents
596 // the value of the `ProvisionedThroughput.WriteCapacityUnits` request
597 // parameter.
598 //
599 // Type: double
600 // RequirementLevel: Recommended
601 // Stability: Development
602 //
603 // Examples: 1.0, 2.0
604 AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity")
605
606 // AWSDynamoDBScanForwardKey is the attribute Key conforming to the
607 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
608 // the `ScanIndexForward` request parameter.
609 //
610 // Type: boolean
611 // RequirementLevel: Recommended
612 // Stability: Development
613 //
614 // Examples:
615 AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward")
616
617 // AWSDynamoDBScannedCountKey is the attribute Key conforming to the
618 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
619 // the `ScannedCount` response parameter.
620 //
621 // Type: int
622 // RequirementLevel: Recommended
623 // Stability: Development
624 //
625 // Examples: 50
626 AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count")
627
628 // AWSDynamoDBSegmentKey is the attribute Key conforming to the
629 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
630 // `Segment` request parameter.
631 //
632 // Type: int
633 // RequirementLevel: Recommended
634 // Stability: Development
635 //
636 // Examples: 10
637 AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment")
638
639 // AWSDynamoDBSelectKey is the attribute Key conforming to the
640 // "aws.dynamodb.select" semantic conventions. It represents the value of the
641 // `Select` request parameter.
642 //
643 // Type: string
644 // RequirementLevel: Recommended
645 // Stability: Development
646 //
647 // Examples: "ALL_ATTRIBUTES", "COUNT"
648 AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select")
649
650 // AWSDynamoDBTableCountKey is the attribute Key conforming to the
651 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
652 // items in the `TableNames` response parameter.
653 //
654 // Type: int
655 // RequirementLevel: Recommended
656 // Stability: Development
657 //
658 // Examples: 20
659 AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count")
660
661 // AWSDynamoDBTableNamesKey is the attribute Key conforming to the
662 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in
663 // the `RequestItems` object field.
664 //
665 // Type: string[]
666 // RequirementLevel: Recommended
667 // Stability: Development
668 //
669 // Examples: "Users", "Cats"
670 AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names")
671
672 // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the
673 // "aws.dynamodb.total_segments" semantic conventions. It represents the value
674 // of the `TotalSegments` request parameter.
675 //
676 // Type: int
677 // RequirementLevel: Recommended
678 // Stability: Development
679 //
680 // Examples: 100
681 AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments")
682
683 // AWSECSClusterARNKey is the attribute Key conforming to the
684 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
685 // [ECS cluster].
686 //
687 // Type: string
688 // RequirementLevel: Recommended
689 // Stability: Development
690 //
691 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
692 //
693 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
694 AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn")
695
696 // AWSECSContainerARNKey is the attribute Key conforming to the
697 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
698 // Resource Name (ARN) of an [ECS container instance].
699 //
700 // Type: string
701 // RequirementLevel: Recommended
702 // Stability: Development
703 //
704 // Examples:
705 // "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9"
706 //
707 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
708 AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn")
709
710 // AWSECSLaunchtypeKey is the attribute Key conforming to the
711 // "aws.ecs.launchtype" semantic conventions. It represents the [launch type]
712 // for an ECS task.
713 //
714 // Type: Enum
715 // RequirementLevel: Recommended
716 // Stability: Development
717 //
718 // Examples:
719 //
720 // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
721 AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype")
722
723 // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn"
724 // semantic conventions. It represents the ARN of a running [ECS task].
725 //
726 // Type: string
727 // RequirementLevel: Recommended
728 // Stability: Development
729 //
730 // Examples:
731 // "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b",
732 // "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
733 //
734 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
735 AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn")
736
737 // AWSECSTaskFamilyKey is the attribute Key conforming to the
738 // "aws.ecs.task.family" semantic conventions. It represents the family name of
739 // the [ECS task definition] used to create the ECS task.
740 //
741 // Type: string
742 // RequirementLevel: Recommended
743 // Stability: Development
744 //
745 // Examples: "opentelemetry-family"
746 //
747 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
748 AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family")
749
750 // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id"
751 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
752 // be extracted from `task.arn`.
753 //
754 // Type: string
755 // RequirementLevel: Recommended
756 // Stability: Development
757 //
758 // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b",
759 // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
760 AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id")
761
762 // AWSECSTaskRevisionKey is the attribute Key conforming to the
763 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
764 // the task definition used to create the ECS task.
765 //
766 // Type: string
767 // RequirementLevel: Recommended
768 // Stability: Development
769 //
770 // Examples: "8", "26"
771 AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision")
772
773 // AWSEKSClusterARNKey is the attribute Key conforming to the
774 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
775 // cluster.
776 //
777 // Type: string
778 // RequirementLevel: Recommended
779 // Stability: Development
780 //
781 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
782 AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn")
783
784 // AWSExtendedRequestIDKey is the attribute Key conforming to the
785 // "aws.extended_request_id" semantic conventions. It represents the AWS
786 // extended request ID as returned in the response header `x-amz-id-2`.
787 //
788 // Type: string
789 // RequirementLevel: Recommended
790 // Stability: Development
791 //
792 // Examples:
793 // "wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ="
794 AWSExtendedRequestIDKey = attribute.Key("aws.extended_request_id")
795
796 // AWSKinesisStreamNameKey is the attribute Key conforming to the
797 // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
798 // AWS Kinesis [stream] the request refers to. Corresponds to the
799 // `--stream-name` parameter of the Kinesis [describe-stream] operation.
800 //
801 // Type: string
802 // RequirementLevel: Recommended
803 // Stability: Development
804 //
805 // Examples: "some-stream-name"
806 //
807 // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
808 // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
809 AWSKinesisStreamNameKey = attribute.Key("aws.kinesis.stream_name")
810
811 // AWSLambdaInvokedARNKey is the attribute Key conforming to the
812 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
813 // ARN as provided on the `Context` passed to the function (
814 // `Lambda-Runtime-Invoked-Function-Arn` header on the
815 // `/runtime/invocation/next` applicable).
816 //
817 // Type: string
818 // RequirementLevel: Recommended
819 // Stability: Development
820 //
821 // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias"
822 // Note: This may be different from `cloud.resource_id` if an alias is involved.
823 AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn")
824
825 // AWSLambdaResourceMappingIDKey is the attribute Key conforming to the
826 // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
827 // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
828 // function. It's contents are read by Lambda and used to trigger a function.
829 // This isn't available in the lambda execution context or the lambda runtime
830 // environtment. This is going to be populated by the AWS SDK for each language
831 // when that UUID is present. Some of these operations are
832 // Create/Delete/Get/List/Update EventSourceMapping.
833 //
834 // Type: string
835 // RequirementLevel: Recommended
836 // Stability: Development
837 //
838 // Examples: "587ad24b-03b9-4413-8202-bbd56b36e5b7"
839 //
840 // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
841 AWSLambdaResourceMappingIDKey = attribute.Key("aws.lambda.resource_mapping.id")
842
843 // AWSLogGroupARNsKey is the attribute Key conforming to the
844 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
845 // Name(s) (ARN) of the AWS log group(s).
846 //
847 // Type: string[]
848 // RequirementLevel: Recommended
849 // Stability: Development
850 //
851 // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"
852 // Note: See the [log group ARN format documentation].
853 //
854 // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
855 AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns")
856
857 // AWSLogGroupNamesKey is the attribute Key conforming to the
858 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
859 // AWS log group(s) an application is writing to.
860 //
861 // Type: string[]
862 // RequirementLevel: Recommended
863 // Stability: Development
864 //
865 // Examples: "/aws/lambda/my-function", "opentelemetry-service"
866 // Note: Multiple log groups must be supported for cases like multi-container
867 // applications, where a single application has sidecar containers, and each
868 // write to their own log group.
869 AWSLogGroupNamesKey = attribute.Key("aws.log.group.names")
870
871 // AWSLogStreamARNsKey is the attribute Key conforming to the
872 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
873 // AWS log stream(s).
874 //
875 // Type: string[]
876 // RequirementLevel: Recommended
877 // Stability: Development
878 //
879 // Examples:
880 // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
881 // Note: See the [log stream ARN format documentation]. One log group can
882 // contain several log streams, so these ARNs necessarily identify both a log
883 // group and a log stream.
884 //
885 // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
886 AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns")
887
888 // AWSLogStreamNamesKey is the attribute Key conforming to the
889 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
890 // AWS log stream(s) an application is writing to.
891 //
892 // Type: string[]
893 // RequirementLevel: Recommended
894 // Stability: Development
895 //
896 // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
897 AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names")
898
899 // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id"
900 // semantic conventions. It represents the AWS request ID as returned in the
901 // response headers `x-amzn-requestid`, `x-amzn-request-id` or
902 // `x-amz-request-id`.
903 //
904 // Type: string
905 // RequirementLevel: Recommended
906 // Stability: Development
907 //
908 // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ"
909 AWSRequestIDKey = attribute.Key("aws.request_id")
910
911 // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket"
912 // semantic conventions. It represents the S3 bucket name the request refers to.
913 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
914 //
915 // Type: string
916 // RequirementLevel: Recommended
917 // Stability: Development
918 //
919 // Examples: "some-bucket-name"
920 // Note: The `bucket` attribute is applicable to all S3 operations that
921 // reference a bucket, i.e. that require the bucket name as a mandatory
922 // parameter.
923 // This applies to almost all S3 operations except `list-buckets`.
924 //
925 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
926 AWSS3BucketKey = attribute.Key("aws.s3.bucket")
927
928 // AWSS3CopySourceKey is the attribute Key conforming to the
929 // "aws.s3.copy_source" semantic conventions. It represents the source object
930 // (in the form `bucket`/`key`) for the copy operation.
931 //
932 // Type: string
933 // RequirementLevel: Recommended
934 // Stability: Development
935 //
936 // Examples: "someFile.yml"
937 // Note: The `copy_source` attribute applies to S3 copy operations and
938 // corresponds to the `--copy-source` parameter
939 // of the [copy-object operation within the S3 API].
940 // This applies in particular to the following operations:
941 //
942 // - [copy-object]
943 // - [upload-part-copy]
944 //
945 //
946 // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
947 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
948 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
949 AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source")
950
951 // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete"
952 // semantic conventions. It represents the delete request container that
953 // specifies the objects to be deleted.
954 //
955 // Type: string
956 // RequirementLevel: Recommended
957 // Stability: Development
958 //
959 // Examples:
960 // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"
961 // Note: The `delete` attribute is only applicable to the [delete-object]
962 // operation.
963 // The `delete` attribute corresponds to the `--delete` parameter of the
964 // [delete-objects operation within the S3 API].
965 //
966 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
967 // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html
968 AWSS3DeleteKey = attribute.Key("aws.s3.delete")
969
970 // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic
971 // conventions. It represents the S3 object key the request refers to.
972 // Corresponds to the `--key` parameter of the [S3 API] operations.
973 //
974 // Type: string
975 // RequirementLevel: Recommended
976 // Stability: Development
977 //
978 // Examples: "someFile.yml"
979 // Note: The `key` attribute is applicable to all object-related S3 operations,
980 // i.e. that require the object key as a mandatory parameter.
981 // This applies in particular to the following operations:
982 //
983 // - [copy-object]
984 // - [delete-object]
985 // - [get-object]
986 // - [head-object]
987 // - [put-object]
988 // - [restore-object]
989 // - [select-object-content]
990 // - [abort-multipart-upload]
991 // - [complete-multipart-upload]
992 // - [create-multipart-upload]
993 // - [list-parts]
994 // - [upload-part]
995 // - [upload-part-copy]
996 //
997 //
998 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
999 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
1000 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
1001 // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html
1002 // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html
1003 // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html
1004 // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html
1005 // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html
1006 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
1007 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
1008 // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html
1009 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
1010 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1011 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1012 AWSS3KeyKey = attribute.Key("aws.s3.key")
1013
1014 // AWSS3PartNumberKey is the attribute Key conforming to the
1015 // "aws.s3.part_number" semantic conventions. It represents the part number of
1016 // the part being uploaded in a multipart-upload operation. This is a positive
1017 // integer between 1 and 10,000.
1018 //
1019 // Type: int
1020 // RequirementLevel: Recommended
1021 // Stability: Development
1022 //
1023 // Examples: 3456
1024 // Note: The `part_number` attribute is only applicable to the [upload-part]
1025 // and [upload-part-copy] operations.
1026 // The `part_number` attribute corresponds to the `--part-number` parameter of
1027 // the
1028 // [upload-part operation within the S3 API].
1029 //
1030 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1031 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1032 // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1033 AWSS3PartNumberKey = attribute.Key("aws.s3.part_number")
1034
1035 // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id"
1036 // semantic conventions. It represents the upload ID that identifies the
1037 // multipart upload.
1038 //
1039 // Type: string
1040 // RequirementLevel: Recommended
1041 // Stability: Development
1042 //
1043 // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ"
1044 // Note: The `upload_id` attribute applies to S3 multipart-upload operations and
1045 // corresponds to the `--upload-id` parameter
1046 // of the [S3 API] multipart operations.
1047 // This applies in particular to the following operations:
1048 //
1049 // - [abort-multipart-upload]
1050 // - [complete-multipart-upload]
1051 // - [list-parts]
1052 // - [upload-part]
1053 // - [upload-part-copy]
1054 //
1055 //
1056 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1057 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
1058 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
1059 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
1060 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1061 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1062 AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id")
1063
1064 // AWSSecretsmanagerSecretARNKey is the attribute Key conforming to the
1065 // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN
1066 // of the Secret stored in the Secrets Mangger.
1067 //
1068 // Type: string
1069 // RequirementLevel: Recommended
1070 // Stability: Development
1071 //
1072 // Examples:
1073 // "arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters"
1074 AWSSecretsmanagerSecretARNKey = attribute.Key("aws.secretsmanager.secret.arn")
1075
1076 // AWSSNSTopicARNKey is the attribute Key conforming to the "aws.sns.topic.arn"
1077 // semantic conventions. It represents the ARN of the AWS SNS Topic. An Amazon
1078 // SNS [topic] is a logical access point that acts as a communication channel.
1079 //
1080 // Type: string
1081 // RequirementLevel: Recommended
1082 // Stability: Development
1083 //
1084 // Examples: "arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE"
1085 //
1086 // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
1087 AWSSNSTopicARNKey = attribute.Key("aws.sns.topic.arn")
1088
1089 // AWSSQSQueueURLKey is the attribute Key conforming to the "aws.sqs.queue.url"
1090 // semantic conventions. It represents the URL of the AWS SQS Queue. It's a
1091 // unique identifier for a queue in Amazon Simple Queue Service (SQS) and is
1092 // used to access the queue and perform actions on it.
1093 //
1094 // Type: string
1095 // RequirementLevel: Recommended
1096 // Stability: Development
1097 //
1098 // Examples: "https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue"
1099 AWSSQSQueueURLKey = attribute.Key("aws.sqs.queue.url")
1100
1101 // AWSStepFunctionsActivityARNKey is the attribute Key conforming to the
1102 // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
1103 // of the AWS Step Functions Activity.
1104 //
1105 // Type: string
1106 // RequirementLevel: Recommended
1107 // Stability: Development
1108 //
1109 // Examples: "arn:aws:states:us-east-1:123456789012:activity:get-greeting"
1110 AWSStepFunctionsActivityARNKey = attribute.Key("aws.step_functions.activity.arn")
1111
1112 // AWSStepFunctionsStateMachineARNKey is the attribute Key conforming to the
1113 // "aws.step_functions.state_machine.arn" semantic conventions. It represents
1114 // the ARN of the AWS Step Functions State Machine.
1115 //
1116 // Type: string
1117 // RequirementLevel: Recommended
1118 // Stability: Development
1119 //
1120 // Examples:
1121 // "arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1"
1122 AWSStepFunctionsStateMachineARNKey = attribute.Key("aws.step_functions.state_machine.arn")
1123 )
1124
1125 // AWSBedrockGuardrailID returns an attribute KeyValue conforming to the
1126 // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
1127 // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
1128 // prevent unwanted behavior from model responses or user messages.
1129 //
1130 // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
1131 func AWSBedrockGuardrailID(val string) attribute.KeyValue {
1132 return AWSBedrockGuardrailIDKey.String(val)
1133 }
1134
1135 // AWSBedrockKnowledgeBaseID returns an attribute KeyValue conforming to the
1136 // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the unique
1137 // identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a bank of
1138 // information that can be queried by models to generate more relevant responses
1139 // and augment prompts.
1140 //
1141 // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
1142 func AWSBedrockKnowledgeBaseID(val string) attribute.KeyValue {
1143 return AWSBedrockKnowledgeBaseIDKey.String(val)
1144 }
1145
1146 // AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to
1147 // the "aws.dynamodb.attribute_definitions" semantic conventions. It represents
1148 // the JSON-serialized value of each item in the `AttributeDefinitions` request
1149 // field.
1150 func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue {
1151 return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val)
1152 }
1153
1154 // AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the
1155 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value
1156 // of the `AttributesToGet` request parameter.
1157 func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue {
1158 return AWSDynamoDBAttributesToGetKey.StringSlice(val)
1159 }
1160
1161 // AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the
1162 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
1163 // of the `ConsistentRead` request parameter.
1164 func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue {
1165 return AWSDynamoDBConsistentReadKey.Bool(val)
1166 }
1167
1168 // AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the
1169 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
1170 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
1171 func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue {
1172 return AWSDynamoDBConsumedCapacityKey.StringSlice(val)
1173 }
1174
1175 // AWSDynamoDBCount returns an attribute KeyValue conforming to the
1176 // "aws.dynamodb.count" semantic conventions. It represents the value of the
1177 // `Count` response parameter.
1178 func AWSDynamoDBCount(val int) attribute.KeyValue {
1179 return AWSDynamoDBCountKey.Int(val)
1180 }
1181
1182 // AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the
1183 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
1184 // value of the `ExclusiveStartTableName` request parameter.
1185 func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue {
1186 return AWSDynamoDBExclusiveStartTableKey.String(val)
1187 }
1188
1189 // AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue
1190 // conforming to the "aws.dynamodb.global_secondary_index_updates" semantic
1191 // conventions. It represents the JSON-serialized value of each item in the
1192 // `GlobalSecondaryIndexUpdates` request field.
1193 func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue {
1194 return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val)
1195 }
1196
1197 // AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to
1198 // the "aws.dynamodb.global_secondary_indexes" semantic conventions. It
1199 // represents the JSON-serialized value of each item of the
1200 // `GlobalSecondaryIndexes` request field.
1201 func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue {
1202 return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val)
1203 }
1204
1205 // AWSDynamoDBIndexName returns an attribute KeyValue conforming to the
1206 // "aws.dynamodb.index_name" semantic conventions. It represents the value of the
1207 // `IndexName` request parameter.
1208 func AWSDynamoDBIndexName(val string) attribute.KeyValue {
1209 return AWSDynamoDBIndexNameKey.String(val)
1210 }
1211
1212 // AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to
1213 // the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
1214 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
1215 func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue {
1216 return AWSDynamoDBItemCollectionMetricsKey.String(val)
1217 }
1218
1219 // AWSDynamoDBLimit returns an attribute KeyValue conforming to the
1220 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
1221 // `Limit` request parameter.
1222 func AWSDynamoDBLimit(val int) attribute.KeyValue {
1223 return AWSDynamoDBLimitKey.Int(val)
1224 }
1225
1226 // AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to
1227 // the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
1228 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
1229 // field.
1230 func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue {
1231 return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val)
1232 }
1233
1234 // AWSDynamoDBProjection returns an attribute KeyValue conforming to the
1235 // "aws.dynamodb.projection" semantic conventions. It represents the value of the
1236 // `ProjectionExpression` request parameter.
1237 func AWSDynamoDBProjection(val string) attribute.KeyValue {
1238 return AWSDynamoDBProjectionKey.String(val)
1239 }
1240
1241 // AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to
1242 // the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It
1243 // represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request
1244 // parameter.
1245 func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue {
1246 return AWSDynamoDBProvisionedReadCapacityKey.Float64(val)
1247 }
1248
1249 // AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming
1250 // to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It
1251 // represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request
1252 // parameter.
1253 func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue {
1254 return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val)
1255 }
1256
1257 // AWSDynamoDBScanForward returns an attribute KeyValue conforming to the
1258 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
1259 // the `ScanIndexForward` request parameter.
1260 func AWSDynamoDBScanForward(val bool) attribute.KeyValue {
1261 return AWSDynamoDBScanForwardKey.Bool(val)
1262 }
1263
1264 // AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the
1265 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
1266 // the `ScannedCount` response parameter.
1267 func AWSDynamoDBScannedCount(val int) attribute.KeyValue {
1268 return AWSDynamoDBScannedCountKey.Int(val)
1269 }
1270
1271 // AWSDynamoDBSegment returns an attribute KeyValue conforming to the
1272 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
1273 // `Segment` request parameter.
1274 func AWSDynamoDBSegment(val int) attribute.KeyValue {
1275 return AWSDynamoDBSegmentKey.Int(val)
1276 }
1277
1278 // AWSDynamoDBSelect returns an attribute KeyValue conforming to the
1279 // "aws.dynamodb.select" semantic conventions. It represents the value of the
1280 // `Select` request parameter.
1281 func AWSDynamoDBSelect(val string) attribute.KeyValue {
1282 return AWSDynamoDBSelectKey.String(val)
1283 }
1284
1285 // AWSDynamoDBTableCount returns an attribute KeyValue conforming to the
1286 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
1287 // items in the `TableNames` response parameter.
1288 func AWSDynamoDBTableCount(val int) attribute.KeyValue {
1289 return AWSDynamoDBTableCountKey.Int(val)
1290 }
1291
1292 // AWSDynamoDBTableNames returns an attribute KeyValue conforming to the
1293 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in the
1294 // `RequestItems` object field.
1295 func AWSDynamoDBTableNames(val ...string) attribute.KeyValue {
1296 return AWSDynamoDBTableNamesKey.StringSlice(val)
1297 }
1298
1299 // AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the
1300 // "aws.dynamodb.total_segments" semantic conventions. It represents the value of
1301 // the `TotalSegments` request parameter.
1302 func AWSDynamoDBTotalSegments(val int) attribute.KeyValue {
1303 return AWSDynamoDBTotalSegmentsKey.Int(val)
1304 }
1305
1306 // AWSECSClusterARN returns an attribute KeyValue conforming to the
1307 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
1308 // [ECS cluster].
1309 //
1310 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
1311 func AWSECSClusterARN(val string) attribute.KeyValue {
1312 return AWSECSClusterARNKey.String(val)
1313 }
1314
1315 // AWSECSContainerARN returns an attribute KeyValue conforming to the
1316 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
1317 // Resource Name (ARN) of an [ECS container instance].
1318 //
1319 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
1320 func AWSECSContainerARN(val string) attribute.KeyValue {
1321 return AWSECSContainerARNKey.String(val)
1322 }
1323
1324 // AWSECSTaskARN returns an attribute KeyValue conforming to the
1325 // "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running
1326 // [ECS task].
1327 //
1328 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
1329 func AWSECSTaskARN(val string) attribute.KeyValue {
1330 return AWSECSTaskARNKey.String(val)
1331 }
1332
1333 // AWSECSTaskFamily returns an attribute KeyValue conforming to the
1334 // "aws.ecs.task.family" semantic conventions. It represents the family name of
1335 // the [ECS task definition] used to create the ECS task.
1336 //
1337 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
1338 func AWSECSTaskFamily(val string) attribute.KeyValue {
1339 return AWSECSTaskFamilyKey.String(val)
1340 }
1341
1342 // AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id"
1343 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
1344 // be extracted from `task.arn`.
1345 func AWSECSTaskID(val string) attribute.KeyValue {
1346 return AWSECSTaskIDKey.String(val)
1347 }
1348
1349 // AWSECSTaskRevision returns an attribute KeyValue conforming to the
1350 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
1351 // the task definition used to create the ECS task.
1352 func AWSECSTaskRevision(val string) attribute.KeyValue {
1353 return AWSECSTaskRevisionKey.String(val)
1354 }
1355
1356 // AWSEKSClusterARN returns an attribute KeyValue conforming to the
1357 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
1358 // cluster.
1359 func AWSEKSClusterARN(val string) attribute.KeyValue {
1360 return AWSEKSClusterARNKey.String(val)
1361 }
1362
1363 // AWSExtendedRequestID returns an attribute KeyValue conforming to the
1364 // "aws.extended_request_id" semantic conventions. It represents the AWS extended
1365 // request ID as returned in the response header `x-amz-id-2`.
1366 func AWSExtendedRequestID(val string) attribute.KeyValue {
1367 return AWSExtendedRequestIDKey.String(val)
1368 }
1369
1370 // AWSKinesisStreamName returns an attribute KeyValue conforming to the
1371 // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
1372 // AWS Kinesis [stream] the request refers to. Corresponds to the `--stream-name`
1373 // parameter of the Kinesis [describe-stream] operation.
1374 //
1375 // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
1376 // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
1377 func AWSKinesisStreamName(val string) attribute.KeyValue {
1378 return AWSKinesisStreamNameKey.String(val)
1379 }
1380
1381 // AWSLambdaInvokedARN returns an attribute KeyValue conforming to the
1382 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
1383 // ARN as provided on the `Context` passed to the function (
1384 // `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next`
1385 // applicable).
1386 func AWSLambdaInvokedARN(val string) attribute.KeyValue {
1387 return AWSLambdaInvokedARNKey.String(val)
1388 }
1389
1390 // AWSLambdaResourceMappingID returns an attribute KeyValue conforming to the
1391 // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
1392 // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
1393 // function. It's contents are read by Lambda and used to trigger a function.
1394 // This isn't available in the lambda execution context or the lambda runtime
1395 // environtment. This is going to be populated by the AWS SDK for each language
1396 // when that UUID is present. Some of these operations are
1397 // Create/Delete/Get/List/Update EventSourceMapping.
1398 //
1399 // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
1400 func AWSLambdaResourceMappingID(val string) attribute.KeyValue {
1401 return AWSLambdaResourceMappingIDKey.String(val)
1402 }
1403
1404 // AWSLogGroupARNs returns an attribute KeyValue conforming to the
1405 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
1406 // Name(s) (ARN) of the AWS log group(s).
1407 func AWSLogGroupARNs(val ...string) attribute.KeyValue {
1408 return AWSLogGroupARNsKey.StringSlice(val)
1409 }
1410
1411 // AWSLogGroupNames returns an attribute KeyValue conforming to the
1412 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
1413 // AWS log group(s) an application is writing to.
1414 func AWSLogGroupNames(val ...string) attribute.KeyValue {
1415 return AWSLogGroupNamesKey.StringSlice(val)
1416 }
1417
1418 // AWSLogStreamARNs returns an attribute KeyValue conforming to the
1419 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
1420 // AWS log stream(s).
1421 func AWSLogStreamARNs(val ...string) attribute.KeyValue {
1422 return AWSLogStreamARNsKey.StringSlice(val)
1423 }
1424
1425 // AWSLogStreamNames returns an attribute KeyValue conforming to the
1426 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
1427 // AWS log stream(s) an application is writing to.
1428 func AWSLogStreamNames(val ...string) attribute.KeyValue {
1429 return AWSLogStreamNamesKey.StringSlice(val)
1430 }
1431
1432 // AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id"
1433 // semantic conventions. It represents the AWS request ID as returned in the
1434 // response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`
1435 // .
1436 func AWSRequestID(val string) attribute.KeyValue {
1437 return AWSRequestIDKey.String(val)
1438 }
1439
1440 // AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket"
1441 // semantic conventions. It represents the S3 bucket name the request refers to.
1442 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
1443 //
1444 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1445 func AWSS3Bucket(val string) attribute.KeyValue {
1446 return AWSS3BucketKey.String(val)
1447 }
1448
1449 // AWSS3CopySource returns an attribute KeyValue conforming to the
1450 // "aws.s3.copy_source" semantic conventions. It represents the source object (in
1451 // the form `bucket`/`key`) for the copy operation.
1452 func AWSS3CopySource(val string) attribute.KeyValue {
1453 return AWSS3CopySourceKey.String(val)
1454 }
1455
1456 // AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete"
1457 // semantic conventions. It represents the delete request container that
1458 // specifies the objects to be deleted.
1459 func AWSS3Delete(val string) attribute.KeyValue {
1460 return AWSS3DeleteKey.String(val)
1461 }
1462
1463 // AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic
1464 // conventions. It represents the S3 object key the request refers to.
1465 // Corresponds to the `--key` parameter of the [S3 API] operations.
1466 //
1467 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1468 func AWSS3Key(val string) attribute.KeyValue {
1469 return AWSS3KeyKey.String(val)
1470 }
1471
1472 // AWSS3PartNumber returns an attribute KeyValue conforming to the
1473 // "aws.s3.part_number" semantic conventions. It represents the part number of
1474 // the part being uploaded in a multipart-upload operation. This is a positive
1475 // integer between 1 and 10,000.
1476 func AWSS3PartNumber(val int) attribute.KeyValue {
1477 return AWSS3PartNumberKey.Int(val)
1478 }
1479
1480 // AWSS3UploadID returns an attribute KeyValue conforming to the
1481 // "aws.s3.upload_id" semantic conventions. It represents the upload ID that
1482 // identifies the multipart upload.
1483 func AWSS3UploadID(val string) attribute.KeyValue {
1484 return AWSS3UploadIDKey.String(val)
1485 }
1486
1487 // AWSSecretsmanagerSecretARN returns an attribute KeyValue conforming to the
1488 // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN of
1489 // the Secret stored in the Secrets Mangger.
1490 func AWSSecretsmanagerSecretARN(val string) attribute.KeyValue {
1491 return AWSSecretsmanagerSecretARNKey.String(val)
1492 }
1493
1494 // AWSSNSTopicARN returns an attribute KeyValue conforming to the
1495 // "aws.sns.topic.arn" semantic conventions. It represents the ARN of the AWS SNS
1496 // Topic. An Amazon SNS [topic] is a logical access point that acts as a
1497 // communication channel.
1498 //
1499 // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
1500 func AWSSNSTopicARN(val string) attribute.KeyValue {
1501 return AWSSNSTopicARNKey.String(val)
1502 }
1503
1504 // AWSSQSQueueURL returns an attribute KeyValue conforming to the
1505 // "aws.sqs.queue.url" semantic conventions. It represents the URL of the AWS SQS
1506 // Queue. It's a unique identifier for a queue in Amazon Simple Queue Service
1507 // (SQS) and is used to access the queue and perform actions on it.
1508 func AWSSQSQueueURL(val string) attribute.KeyValue {
1509 return AWSSQSQueueURLKey.String(val)
1510 }
1511
1512 // AWSStepFunctionsActivityARN returns an attribute KeyValue conforming to the
1513 // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
1514 // of the AWS Step Functions Activity.
1515 func AWSStepFunctionsActivityARN(val string) attribute.KeyValue {
1516 return AWSStepFunctionsActivityARNKey.String(val)
1517 }
1518
1519 // AWSStepFunctionsStateMachineARN returns an attribute KeyValue conforming to
1520 // the "aws.step_functions.state_machine.arn" semantic conventions. It represents
1521 // the ARN of the AWS Step Functions State Machine.
1522 func AWSStepFunctionsStateMachineARN(val string) attribute.KeyValue {
1523 return AWSStepFunctionsStateMachineARNKey.String(val)
1524 }
1525
1526 // Enum values for aws.ecs.launchtype
1527 var (
1528 // ec2
1529 // Stability: development
1530 AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2")
1531 // fargate
1532 // Stability: development
1533 AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate")
1534 )
1535
1536 // Namespace: azure
1537 const (
1538 // AzureClientIDKey is the attribute Key conforming to the "azure.client.id"
1539 // semantic conventions. It represents the unique identifier of the client
1540 // instance.
1541 //
1542 // Type: string
1543 // RequirementLevel: Recommended
1544 // Stability: Development
1545 //
1546 // Examples: "3ba4827d-4422-483f-b59f-85b74211c11d", "storage-client-1"
1547 AzureClientIDKey = attribute.Key("azure.client.id")
1548
1549 // AzureCosmosDBConnectionModeKey is the attribute Key conforming to the
1550 // "azure.cosmosdb.connection.mode" semantic conventions. It represents the
1551 // cosmos client connection mode.
1552 //
1553 // Type: Enum
1554 // RequirementLevel: Recommended
1555 // Stability: Development
1556 //
1557 // Examples:
1558 AzureCosmosDBConnectionModeKey = attribute.Key("azure.cosmosdb.connection.mode")
1559
1560 // AzureCosmosDBConsistencyLevelKey is the attribute Key conforming to the
1561 // "azure.cosmosdb.consistency.level" semantic conventions. It represents the
1562 // account or request [consistency level].
1563 //
1564 // Type: Enum
1565 // RequirementLevel: Recommended
1566 // Stability: Development
1567 //
1568 // Examples: "Eventual", "ConsistentPrefix", "BoundedStaleness", "Strong",
1569 // "Session"
1570 //
1571 // [consistency level]: https://learn.microsoft.com/azure/cosmos-db/consistency-levels
1572 AzureCosmosDBConsistencyLevelKey = attribute.Key("azure.cosmosdb.consistency.level")
1573
1574 // AzureCosmosDBOperationContactedRegionsKey is the attribute Key conforming to
1575 // the "azure.cosmosdb.operation.contacted_regions" semantic conventions. It
1576 // represents the list of regions contacted during operation in the order that
1577 // they were contacted. If there is more than one region listed, it indicates
1578 // that the operation was performed on multiple regions i.e. cross-regional
1579 // call.
1580 //
1581 // Type: string[]
1582 // RequirementLevel: Recommended
1583 // Stability: Development
1584 //
1585 // Examples: "North Central US", "Australia East", "Australia Southeast"
1586 // Note: Region name matches the format of `displayName` in [Azure Location API]
1587 //
1588 // [Azure Location API]: https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location
1589 AzureCosmosDBOperationContactedRegionsKey = attribute.Key("azure.cosmosdb.operation.contacted_regions")
1590
1591 // AzureCosmosDBOperationRequestChargeKey is the attribute Key conforming to the
1592 // "azure.cosmosdb.operation.request_charge" semantic conventions. It represents
1593 // the number of request units consumed by the operation.
1594 //
1595 // Type: double
1596 // RequirementLevel: Recommended
1597 // Stability: Development
1598 //
1599 // Examples: 46.18, 1.0
1600 AzureCosmosDBOperationRequestChargeKey = attribute.Key("azure.cosmosdb.operation.request_charge")
1601
1602 // AzureCosmosDBRequestBodySizeKey is the attribute Key conforming to the
1603 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1604 // request payload size in bytes.
1605 //
1606 // Type: int
1607 // RequirementLevel: Recommended
1608 // Stability: Development
1609 //
1610 // Examples:
1611 AzureCosmosDBRequestBodySizeKey = attribute.Key("azure.cosmosdb.request.body.size")
1612
1613 // AzureCosmosDBResponseSubStatusCodeKey is the attribute Key conforming to the
1614 // "azure.cosmosdb.response.sub_status_code" semantic conventions. It represents
1615 // the cosmos DB sub status code.
1616 //
1617 // Type: int
1618 // RequirementLevel: Recommended
1619 // Stability: Development
1620 //
1621 // Examples: 1000, 1002
1622 AzureCosmosDBResponseSubStatusCodeKey = attribute.Key("azure.cosmosdb.response.sub_status_code")
1623
1624 // AzureResourceProviderNamespaceKey is the attribute Key conforming to the
1625 // "azure.resource_provider.namespace" semantic conventions. It represents the
1626 // [Azure Resource Provider Namespace] as recognized by the client.
1627 //
1628 // Type: string
1629 // RequirementLevel: Recommended
1630 // Stability: Development
1631 //
1632 // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus"
1633 //
1634 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1635 AzureResourceProviderNamespaceKey = attribute.Key("azure.resource_provider.namespace")
1636
1637 // AzureServiceRequestIDKey is the attribute Key conforming to the
1638 // "azure.service.request.id" semantic conventions. It represents the unique
1639 // identifier of the service request. It's generated by the Azure service and
1640 // returned with the response.
1641 //
1642 // Type: string
1643 // RequirementLevel: Recommended
1644 // Stability: Development
1645 //
1646 // Examples: "00000000-0000-0000-0000-000000000000"
1647 AzureServiceRequestIDKey = attribute.Key("azure.service.request.id")
1648 )
1649
1650 // AzureClientID returns an attribute KeyValue conforming to the
1651 // "azure.client.id" semantic conventions. It represents the unique identifier of
1652 // the client instance.
1653 func AzureClientID(val string) attribute.KeyValue {
1654 return AzureClientIDKey.String(val)
1655 }
1656
1657 // AzureCosmosDBOperationContactedRegions returns an attribute KeyValue
1658 // conforming to the "azure.cosmosdb.operation.contacted_regions" semantic
1659 // conventions. It represents the list of regions contacted during operation in
1660 // the order that they were contacted. If there is more than one region listed,
1661 // it indicates that the operation was performed on multiple regions i.e.
1662 // cross-regional call.
1663 func AzureCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue {
1664 return AzureCosmosDBOperationContactedRegionsKey.StringSlice(val)
1665 }
1666
1667 // AzureCosmosDBOperationRequestCharge returns an attribute KeyValue conforming
1668 // to the "azure.cosmosdb.operation.request_charge" semantic conventions. It
1669 // represents the number of request units consumed by the operation.
1670 func AzureCosmosDBOperationRequestCharge(val float64) attribute.KeyValue {
1671 return AzureCosmosDBOperationRequestChargeKey.Float64(val)
1672 }
1673
1674 // AzureCosmosDBRequestBodySize returns an attribute KeyValue conforming to the
1675 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1676 // request payload size in bytes.
1677 func AzureCosmosDBRequestBodySize(val int) attribute.KeyValue {
1678 return AzureCosmosDBRequestBodySizeKey.Int(val)
1679 }
1680
1681 // AzureCosmosDBResponseSubStatusCode returns an attribute KeyValue conforming to
1682 // the "azure.cosmosdb.response.sub_status_code" semantic conventions. It
1683 // represents the cosmos DB sub status code.
1684 func AzureCosmosDBResponseSubStatusCode(val int) attribute.KeyValue {
1685 return AzureCosmosDBResponseSubStatusCodeKey.Int(val)
1686 }
1687
1688 // AzureResourceProviderNamespace returns an attribute KeyValue conforming to the
1689 // "azure.resource_provider.namespace" semantic conventions. It represents the
1690 // [Azure Resource Provider Namespace] as recognized by the client.
1691 //
1692 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1693 func AzureResourceProviderNamespace(val string) attribute.KeyValue {
1694 return AzureResourceProviderNamespaceKey.String(val)
1695 }
1696
1697 // AzureServiceRequestID returns an attribute KeyValue conforming to the
1698 // "azure.service.request.id" semantic conventions. It represents the unique
1699 // identifier of the service request. It's generated by the Azure service and
1700 // returned with the response.
1701 func AzureServiceRequestID(val string) attribute.KeyValue {
1702 return AzureServiceRequestIDKey.String(val)
1703 }
1704
1705 // Enum values for azure.cosmosdb.connection.mode
1706 var (
1707 // Gateway (HTTP) connection.
1708 // Stability: development
1709 AzureCosmosDBConnectionModeGateway = AzureCosmosDBConnectionModeKey.String("gateway")
1710 // Direct connection.
1711 // Stability: development
1712 AzureCosmosDBConnectionModeDirect = AzureCosmosDBConnectionModeKey.String("direct")
1713 )
1714
1715 // Enum values for azure.cosmosdb.consistency.level
1716 var (
1717 // strong
1718 // Stability: development
1719 AzureCosmosDBConsistencyLevelStrong = AzureCosmosDBConsistencyLevelKey.String("Strong")
1720 // bounded_staleness
1721 // Stability: development
1722 AzureCosmosDBConsistencyLevelBoundedStaleness = AzureCosmosDBConsistencyLevelKey.String("BoundedStaleness")
1723 // session
1724 // Stability: development
1725 AzureCosmosDBConsistencyLevelSession = AzureCosmosDBConsistencyLevelKey.String("Session")
1726 // eventual
1727 // Stability: development
1728 AzureCosmosDBConsistencyLevelEventual = AzureCosmosDBConsistencyLevelKey.String("Eventual")
1729 // consistent_prefix
1730 // Stability: development
1731 AzureCosmosDBConsistencyLevelConsistentPrefix = AzureCosmosDBConsistencyLevelKey.String("ConsistentPrefix")
1732 )
1733
1734 // Namespace: browser
1735 const (
1736 // BrowserBrandsKey is the attribute Key conforming to the "browser.brands"
1737 // semantic conventions. It represents the array of brand name and version
1738 // separated by a space.
1739 //
1740 // Type: string[]
1741 // RequirementLevel: Recommended
1742 // Stability: Development
1743 //
1744 // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99"
1745 // Note: This value is intended to be taken from the [UA client hints API] (
1746 // `navigator.userAgentData.brands`).
1747 //
1748 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1749 BrowserBrandsKey = attribute.Key("browser.brands")
1750
1751 // BrowserLanguageKey is the attribute Key conforming to the "browser.language"
1752 // semantic conventions. It represents the preferred language of the user using
1753 // the browser.
1754 //
1755 // Type: string
1756 // RequirementLevel: Recommended
1757 // Stability: Development
1758 //
1759 // Examples: "en", "en-US", "fr", "fr-FR"
1760 // Note: This value is intended to be taken from the Navigator API
1761 // `navigator.language`.
1762 BrowserLanguageKey = attribute.Key("browser.language")
1763
1764 // BrowserMobileKey is the attribute Key conforming to the "browser.mobile"
1765 // semantic conventions. It represents a boolean that is true if the browser is
1766 // running on a mobile device.
1767 //
1768 // Type: boolean
1769 // RequirementLevel: Recommended
1770 // Stability: Development
1771 //
1772 // Examples:
1773 // Note: This value is intended to be taken from the [UA client hints API] (
1774 // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be
1775 // left unset.
1776 //
1777 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1778 BrowserMobileKey = attribute.Key("browser.mobile")
1779
1780 // BrowserPlatformKey is the attribute Key conforming to the "browser.platform"
1781 // semantic conventions. It represents the platform on which the browser is
1782 // running.
1783 //
1784 // Type: string
1785 // RequirementLevel: Recommended
1786 // Stability: Development
1787 //
1788 // Examples: "Windows", "macOS", "Android"
1789 // Note: This value is intended to be taken from the [UA client hints API] (
1790 // `navigator.userAgentData.platform`). If unavailable, the legacy
1791 // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD
1792 // be left unset in order for the values to be consistent.
1793 // The list of possible values is defined in the
1794 // [W3C User-Agent Client Hints specification]. Note that some (but not all) of
1795 // these values can overlap with values in the
1796 // [`os.type` and `os.name` attributes]. However, for consistency, the values in
1797 // the `browser.platform` attribute should capture the exact value that the user
1798 // agent provides.
1799 //
1800 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1801 // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform
1802 // [`os.type` and `os.name` attributes]: ./os.md
1803 BrowserPlatformKey = attribute.Key("browser.platform")
1804 )
1805
1806 // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands"
1807 // semantic conventions. It represents the array of brand name and version
1808 // separated by a space.
1809 func BrowserBrands(val ...string) attribute.KeyValue {
1810 return BrowserBrandsKey.StringSlice(val)
1811 }
1812
1813 // BrowserLanguage returns an attribute KeyValue conforming to the
1814 // "browser.language" semantic conventions. It represents the preferred language
1815 // of the user using the browser.
1816 func BrowserLanguage(val string) attribute.KeyValue {
1817 return BrowserLanguageKey.String(val)
1818 }
1819
1820 // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile"
1821 // semantic conventions. It represents a boolean that is true if the browser is
1822 // running on a mobile device.
1823 func BrowserMobile(val bool) attribute.KeyValue {
1824 return BrowserMobileKey.Bool(val)
1825 }
1826
1827 // BrowserPlatform returns an attribute KeyValue conforming to the
1828 // "browser.platform" semantic conventions. It represents the platform on which
1829 // the browser is running.
1830 func BrowserPlatform(val string) attribute.KeyValue {
1831 return BrowserPlatformKey.String(val)
1832 }
1833
1834 // Namespace: cassandra
1835 const (
1836 // CassandraConsistencyLevelKey is the attribute Key conforming to the
1837 // "cassandra.consistency.level" semantic conventions. It represents the
1838 // consistency level of the query. Based on consistency values from [CQL].
1839 //
1840 // Type: Enum
1841 // RequirementLevel: Recommended
1842 // Stability: Development
1843 //
1844 // Examples:
1845 //
1846 // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
1847 CassandraConsistencyLevelKey = attribute.Key("cassandra.consistency.level")
1848
1849 // CassandraCoordinatorDCKey is the attribute Key conforming to the
1850 // "cassandra.coordinator.dc" semantic conventions. It represents the data
1851 // center of the coordinating node for a query.
1852 //
1853 // Type: string
1854 // RequirementLevel: Recommended
1855 // Stability: Development
1856 //
1857 // Examples: us-west-2
1858 CassandraCoordinatorDCKey = attribute.Key("cassandra.coordinator.dc")
1859
1860 // CassandraCoordinatorIDKey is the attribute Key conforming to the
1861 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1862 // coordinating node for a query.
1863 //
1864 // Type: string
1865 // RequirementLevel: Recommended
1866 // Stability: Development
1867 //
1868 // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af
1869 CassandraCoordinatorIDKey = attribute.Key("cassandra.coordinator.id")
1870
1871 // CassandraPageSizeKey is the attribute Key conforming to the
1872 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1873 // for paging, i.e. how many rows will be returned at once.
1874 //
1875 // Type: int
1876 // RequirementLevel: Recommended
1877 // Stability: Development
1878 //
1879 // Examples: 5000
1880 CassandraPageSizeKey = attribute.Key("cassandra.page.size")
1881
1882 // CassandraQueryIdempotentKey is the attribute Key conforming to the
1883 // "cassandra.query.idempotent" semantic conventions. It represents the whether
1884 // or not the query is idempotent.
1885 //
1886 // Type: boolean
1887 // RequirementLevel: Recommended
1888 // Stability: Development
1889 //
1890 // Examples:
1891 CassandraQueryIdempotentKey = attribute.Key("cassandra.query.idempotent")
1892
1893 // CassandraSpeculativeExecutionCountKey is the attribute Key conforming to the
1894 // "cassandra.speculative_execution.count" semantic conventions. It represents
1895 // the number of times a query was speculatively executed. Not set or `0` if the
1896 // query was not executed speculatively.
1897 //
1898 // Type: int
1899 // RequirementLevel: Recommended
1900 // Stability: Development
1901 //
1902 // Examples: 0, 2
1903 CassandraSpeculativeExecutionCountKey = attribute.Key("cassandra.speculative_execution.count")
1904 )
1905
1906 // CassandraCoordinatorDC returns an attribute KeyValue conforming to the
1907 // "cassandra.coordinator.dc" semantic conventions. It represents the data center
1908 // of the coordinating node for a query.
1909 func CassandraCoordinatorDC(val string) attribute.KeyValue {
1910 return CassandraCoordinatorDCKey.String(val)
1911 }
1912
1913 // CassandraCoordinatorID returns an attribute KeyValue conforming to the
1914 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1915 // coordinating node for a query.
1916 func CassandraCoordinatorID(val string) attribute.KeyValue {
1917 return CassandraCoordinatorIDKey.String(val)
1918 }
1919
1920 // CassandraPageSize returns an attribute KeyValue conforming to the
1921 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1922 // for paging, i.e. how many rows will be returned at once.
1923 func CassandraPageSize(val int) attribute.KeyValue {
1924 return CassandraPageSizeKey.Int(val)
1925 }
1926
1927 // CassandraQueryIdempotent returns an attribute KeyValue conforming to the
1928 // "cassandra.query.idempotent" semantic conventions. It represents the whether
1929 // or not the query is idempotent.
1930 func CassandraQueryIdempotent(val bool) attribute.KeyValue {
1931 return CassandraQueryIdempotentKey.Bool(val)
1932 }
1933
1934 // CassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to
1935 // the "cassandra.speculative_execution.count" semantic conventions. It
1936 // represents the number of times a query was speculatively executed. Not set or
1937 // `0` if the query was not executed speculatively.
1938 func CassandraSpeculativeExecutionCount(val int) attribute.KeyValue {
1939 return CassandraSpeculativeExecutionCountKey.Int(val)
1940 }
1941
1942 // Enum values for cassandra.consistency.level
1943 var (
1944 // all
1945 // Stability: development
1946 CassandraConsistencyLevelAll = CassandraConsistencyLevelKey.String("all")
1947 // each_quorum
1948 // Stability: development
1949 CassandraConsistencyLevelEachQuorum = CassandraConsistencyLevelKey.String("each_quorum")
1950 // quorum
1951 // Stability: development
1952 CassandraConsistencyLevelQuorum = CassandraConsistencyLevelKey.String("quorum")
1953 // local_quorum
1954 // Stability: development
1955 CassandraConsistencyLevelLocalQuorum = CassandraConsistencyLevelKey.String("local_quorum")
1956 // one
1957 // Stability: development
1958 CassandraConsistencyLevelOne = CassandraConsistencyLevelKey.String("one")
1959 // two
1960 // Stability: development
1961 CassandraConsistencyLevelTwo = CassandraConsistencyLevelKey.String("two")
1962 // three
1963 // Stability: development
1964 CassandraConsistencyLevelThree = CassandraConsistencyLevelKey.String("three")
1965 // local_one
1966 // Stability: development
1967 CassandraConsistencyLevelLocalOne = CassandraConsistencyLevelKey.String("local_one")
1968 // any
1969 // Stability: development
1970 CassandraConsistencyLevelAny = CassandraConsistencyLevelKey.String("any")
1971 // serial
1972 // Stability: development
1973 CassandraConsistencyLevelSerial = CassandraConsistencyLevelKey.String("serial")
1974 // local_serial
1975 // Stability: development
1976 CassandraConsistencyLevelLocalSerial = CassandraConsistencyLevelKey.String("local_serial")
1977 )
1978
1979 // Namespace: cicd
1980 const (
1981 // CICDPipelineActionNameKey is the attribute Key conforming to the
1982 // "cicd.pipeline.action.name" semantic conventions. It represents the kind of
1983 // action a pipeline run is performing.
1984 //
1985 // Type: Enum
1986 // RequirementLevel: Recommended
1987 // Stability: Development
1988 //
1989 // Examples: "BUILD", "RUN", "SYNC"
1990 CICDPipelineActionNameKey = attribute.Key("cicd.pipeline.action.name")
1991
1992 // CICDPipelineNameKey is the attribute Key conforming to the
1993 // "cicd.pipeline.name" semantic conventions. It represents the human readable
1994 // name of the pipeline within a CI/CD system.
1995 //
1996 // Type: string
1997 // RequirementLevel: Recommended
1998 // Stability: Development
1999 //
2000 // Examples: "Build and Test", "Lint", "Deploy Go Project",
2001 // "deploy_to_environment"
2002 CICDPipelineNameKey = attribute.Key("cicd.pipeline.name")
2003
2004 // CICDPipelineResultKey is the attribute Key conforming to the
2005 // "cicd.pipeline.result" semantic conventions. It represents the result of a
2006 // pipeline run.
2007 //
2008 // Type: Enum
2009 // RequirementLevel: Recommended
2010 // Stability: Development
2011 //
2012 // Examples: "success", "failure", "timeout", "skipped"
2013 CICDPipelineResultKey = attribute.Key("cicd.pipeline.result")
2014
2015 // CICDPipelineRunIDKey is the attribute Key conforming to the
2016 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
2017 // identifier of a pipeline run within a CI/CD system.
2018 //
2019 // Type: string
2020 // RequirementLevel: Recommended
2021 // Stability: Development
2022 //
2023 // Examples: "120912"
2024 CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id")
2025
2026 // CICDPipelineRunStateKey is the attribute Key conforming to the
2027 // "cicd.pipeline.run.state" semantic conventions. It represents the pipeline
2028 // run goes through these states during its lifecycle.
2029 //
2030 // Type: Enum
2031 // RequirementLevel: Recommended
2032 // Stability: Development
2033 //
2034 // Examples: "pending", "executing", "finalizing"
2035 CICDPipelineRunStateKey = attribute.Key("cicd.pipeline.run.state")
2036
2037 // CICDPipelineRunURLFullKey is the attribute Key conforming to the
2038 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
2039 // the pipeline run, providing the complete address in order to locate and
2040 // identify the pipeline run.
2041 //
2042 // Type: string
2043 // RequirementLevel: Recommended
2044 // Stability: Development
2045 //
2046 // Examples:
2047 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075"
2048 //
2049 // [URL]: https://wikipedia.org/wiki/URL
2050 CICDPipelineRunURLFullKey = attribute.Key("cicd.pipeline.run.url.full")
2051
2052 // CICDPipelineTaskNameKey is the attribute Key conforming to the
2053 // "cicd.pipeline.task.name" semantic conventions. It represents the human
2054 // readable name of a task within a pipeline. Task here most closely aligns with
2055 // a [computing process] in a pipeline. Other terms for tasks include commands,
2056 // steps, and procedures.
2057 //
2058 // Type: string
2059 // RequirementLevel: Recommended
2060 // Stability: Development
2061 //
2062 // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary"
2063 //
2064 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
2065 CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name")
2066
2067 // CICDPipelineTaskRunIDKey is the attribute Key conforming to the
2068 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
2069 // identifier of a task run within a pipeline.
2070 //
2071 // Type: string
2072 // RequirementLevel: Recommended
2073 // Stability: Development
2074 //
2075 // Examples: "12097"
2076 CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id")
2077
2078 // CICDPipelineTaskRunResultKey is the attribute Key conforming to the
2079 // "cicd.pipeline.task.run.result" semantic conventions. It represents the
2080 // result of a task run.
2081 //
2082 // Type: Enum
2083 // RequirementLevel: Recommended
2084 // Stability: Development
2085 //
2086 // Examples: "success", "failure", "timeout", "skipped"
2087 CICDPipelineTaskRunResultKey = attribute.Key("cicd.pipeline.task.run.result")
2088
2089 // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the
2090 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
2091 // [URL] of the pipeline task run, providing the complete address in order to
2092 // locate and identify the pipeline task run.
2093 //
2094 // Type: string
2095 // RequirementLevel: Recommended
2096 // Stability: Development
2097 //
2098 // Examples:
2099 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"
2100 //
2101 // [URL]: https://wikipedia.org/wiki/URL
2102 CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full")
2103
2104 // CICDPipelineTaskTypeKey is the attribute Key conforming to the
2105 // "cicd.pipeline.task.type" semantic conventions. It represents the type of the
2106 // task within a pipeline.
2107 //
2108 // Type: Enum
2109 // RequirementLevel: Recommended
2110 // Stability: Development
2111 //
2112 // Examples: "build", "test", "deploy"
2113 CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type")
2114
2115 // CICDSystemComponentKey is the attribute Key conforming to the
2116 // "cicd.system.component" semantic conventions. It represents the name of a
2117 // component of the CICD system.
2118 //
2119 // Type: string
2120 // RequirementLevel: Recommended
2121 // Stability: Development
2122 //
2123 // Examples: "controller", "scheduler", "agent"
2124 CICDSystemComponentKey = attribute.Key("cicd.system.component")
2125
2126 // CICDWorkerIDKey is the attribute Key conforming to the "cicd.worker.id"
2127 // semantic conventions. It represents the unique identifier of a worker within
2128 // a CICD system.
2129 //
2130 // Type: string
2131 // RequirementLevel: Recommended
2132 // Stability: Development
2133 //
2134 // Examples: "abc123", "10.0.1.2", "controller"
2135 CICDWorkerIDKey = attribute.Key("cicd.worker.id")
2136
2137 // CICDWorkerNameKey is the attribute Key conforming to the "cicd.worker.name"
2138 // semantic conventions. It represents the name of a worker within a CICD
2139 // system.
2140 //
2141 // Type: string
2142 // RequirementLevel: Recommended
2143 // Stability: Development
2144 //
2145 // Examples: "agent-abc", "controller", "Ubuntu LTS"
2146 CICDWorkerNameKey = attribute.Key("cicd.worker.name")
2147
2148 // CICDWorkerStateKey is the attribute Key conforming to the "cicd.worker.state"
2149 // semantic conventions. It represents the state of a CICD worker / agent.
2150 //
2151 // Type: Enum
2152 // RequirementLevel: Recommended
2153 // Stability: Development
2154 //
2155 // Examples: "idle", "busy", "down"
2156 CICDWorkerStateKey = attribute.Key("cicd.worker.state")
2157
2158 // CICDWorkerURLFullKey is the attribute Key conforming to the
2159 // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
2160 // worker, providing the complete address in order to locate and identify the
2161 // worker.
2162 //
2163 // Type: string
2164 // RequirementLevel: Recommended
2165 // Stability: Development
2166 //
2167 // Examples: "https://cicd.example.org/worker/abc123"
2168 //
2169 // [URL]: https://wikipedia.org/wiki/URL
2170 CICDWorkerURLFullKey = attribute.Key("cicd.worker.url.full")
2171 )
2172
2173 // CICDPipelineName returns an attribute KeyValue conforming to the
2174 // "cicd.pipeline.name" semantic conventions. It represents the human readable
2175 // name of the pipeline within a CI/CD system.
2176 func CICDPipelineName(val string) attribute.KeyValue {
2177 return CICDPipelineNameKey.String(val)
2178 }
2179
2180 // CICDPipelineRunID returns an attribute KeyValue conforming to the
2181 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
2182 // identifier of a pipeline run within a CI/CD system.
2183 func CICDPipelineRunID(val string) attribute.KeyValue {
2184 return CICDPipelineRunIDKey.String(val)
2185 }
2186
2187 // CICDPipelineRunURLFull returns an attribute KeyValue conforming to the
2188 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
2189 // the pipeline run, providing the complete address in order to locate and
2190 // identify the pipeline run.
2191 //
2192 // [URL]: https://wikipedia.org/wiki/URL
2193 func CICDPipelineRunURLFull(val string) attribute.KeyValue {
2194 return CICDPipelineRunURLFullKey.String(val)
2195 }
2196
2197 // CICDPipelineTaskName returns an attribute KeyValue conforming to the
2198 // "cicd.pipeline.task.name" semantic conventions. It represents the human
2199 // readable name of a task within a pipeline. Task here most closely aligns with
2200 // a [computing process] in a pipeline. Other terms for tasks include commands,
2201 // steps, and procedures.
2202 //
2203 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
2204 func CICDPipelineTaskName(val string) attribute.KeyValue {
2205 return CICDPipelineTaskNameKey.String(val)
2206 }
2207
2208 // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the
2209 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
2210 // identifier of a task run within a pipeline.
2211 func CICDPipelineTaskRunID(val string) attribute.KeyValue {
2212 return CICDPipelineTaskRunIDKey.String(val)
2213 }
2214
2215 // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the
2216 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
2217 // [URL] of the pipeline task run, providing the complete address in order to
2218 // locate and identify the pipeline task run.
2219 //
2220 // [URL]: https://wikipedia.org/wiki/URL
2221 func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue {
2222 return CICDPipelineTaskRunURLFullKey.String(val)
2223 }
2224
2225 // CICDSystemComponent returns an attribute KeyValue conforming to the
2226 // "cicd.system.component" semantic conventions. It represents the name of a
2227 // component of the CICD system.
2228 func CICDSystemComponent(val string) attribute.KeyValue {
2229 return CICDSystemComponentKey.String(val)
2230 }
2231
2232 // CICDWorkerID returns an attribute KeyValue conforming to the "cicd.worker.id"
2233 // semantic conventions. It represents the unique identifier of a worker within a
2234 // CICD system.
2235 func CICDWorkerID(val string) attribute.KeyValue {
2236 return CICDWorkerIDKey.String(val)
2237 }
2238
2239 // CICDWorkerName returns an attribute KeyValue conforming to the
2240 // "cicd.worker.name" semantic conventions. It represents the name of a worker
2241 // within a CICD system.
2242 func CICDWorkerName(val string) attribute.KeyValue {
2243 return CICDWorkerNameKey.String(val)
2244 }
2245
2246 // CICDWorkerURLFull returns an attribute KeyValue conforming to the
2247 // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
2248 // worker, providing the complete address in order to locate and identify the
2249 // worker.
2250 //
2251 // [URL]: https://wikipedia.org/wiki/URL
2252 func CICDWorkerURLFull(val string) attribute.KeyValue {
2253 return CICDWorkerURLFullKey.String(val)
2254 }
2255
2256 // Enum values for cicd.pipeline.action.name
2257 var (
2258 // The pipeline run is executing a build.
2259 // Stability: development
2260 CICDPipelineActionNameBuild = CICDPipelineActionNameKey.String("BUILD")
2261 // The pipeline run is executing.
2262 // Stability: development
2263 CICDPipelineActionNameRun = CICDPipelineActionNameKey.String("RUN")
2264 // The pipeline run is executing a sync.
2265 // Stability: development
2266 CICDPipelineActionNameSync = CICDPipelineActionNameKey.String("SYNC")
2267 )
2268
2269 // Enum values for cicd.pipeline.result
2270 var (
2271 // The pipeline run finished successfully.
2272 // Stability: development
2273 CICDPipelineResultSuccess = CICDPipelineResultKey.String("success")
2274 // The pipeline run did not finish successfully, eg. due to a compile error or a
2275 // failing test. Such failures are usually detected by non-zero exit codes of
2276 // the tools executed in the pipeline run.
2277 // Stability: development
2278 CICDPipelineResultFailure = CICDPipelineResultKey.String("failure")
2279 // The pipeline run failed due to an error in the CICD system, eg. due to the
2280 // worker being killed.
2281 // Stability: development
2282 CICDPipelineResultError = CICDPipelineResultKey.String("error")
2283 // A timeout caused the pipeline run to be interrupted.
2284 // Stability: development
2285 CICDPipelineResultTimeout = CICDPipelineResultKey.String("timeout")
2286 // The pipeline run was cancelled, eg. by a user manually cancelling the
2287 // pipeline run.
2288 // Stability: development
2289 CICDPipelineResultCancellation = CICDPipelineResultKey.String("cancellation")
2290 // The pipeline run was skipped, eg. due to a precondition not being met.
2291 // Stability: development
2292 CICDPipelineResultSkip = CICDPipelineResultKey.String("skip")
2293 )
2294
2295 // Enum values for cicd.pipeline.run.state
2296 var (
2297 // The run pending state spans from the event triggering the pipeline run until
2298 // the execution of the run starts (eg. time spent in a queue, provisioning
2299 // agents, creating run resources).
2300 //
2301 // Stability: development
2302 CICDPipelineRunStatePending = CICDPipelineRunStateKey.String("pending")
2303 // The executing state spans the execution of any run tasks (eg. build, test).
2304 // Stability: development
2305 CICDPipelineRunStateExecuting = CICDPipelineRunStateKey.String("executing")
2306 // The finalizing state spans from when the run has finished executing (eg.
2307 // cleanup of run resources).
2308 // Stability: development
2309 CICDPipelineRunStateFinalizing = CICDPipelineRunStateKey.String("finalizing")
2310 )
2311
2312 // Enum values for cicd.pipeline.task.run.result
2313 var (
2314 // The task run finished successfully.
2315 // Stability: development
2316 CICDPipelineTaskRunResultSuccess = CICDPipelineTaskRunResultKey.String("success")
2317 // The task run did not finish successfully, eg. due to a compile error or a
2318 // failing test. Such failures are usually detected by non-zero exit codes of
2319 // the tools executed in the task run.
2320 // Stability: development
2321 CICDPipelineTaskRunResultFailure = CICDPipelineTaskRunResultKey.String("failure")
2322 // The task run failed due to an error in the CICD system, eg. due to the worker
2323 // being killed.
2324 // Stability: development
2325 CICDPipelineTaskRunResultError = CICDPipelineTaskRunResultKey.String("error")
2326 // A timeout caused the task run to be interrupted.
2327 // Stability: development
2328 CICDPipelineTaskRunResultTimeout = CICDPipelineTaskRunResultKey.String("timeout")
2329 // The task run was cancelled, eg. by a user manually cancelling the task run.
2330 // Stability: development
2331 CICDPipelineTaskRunResultCancellation = CICDPipelineTaskRunResultKey.String("cancellation")
2332 // The task run was skipped, eg. due to a precondition not being met.
2333 // Stability: development
2334 CICDPipelineTaskRunResultSkip = CICDPipelineTaskRunResultKey.String("skip")
2335 )
2336
2337 // Enum values for cicd.pipeline.task.type
2338 var (
2339 // build
2340 // Stability: development
2341 CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build")
2342 // test
2343 // Stability: development
2344 CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test")
2345 // deploy
2346 // Stability: development
2347 CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy")
2348 )
2349
2350 // Enum values for cicd.worker.state
2351 var (
2352 // The worker is not performing work for the CICD system. It is available to the
2353 // CICD system to perform work on (online / idle).
2354 // Stability: development
2355 CICDWorkerStateAvailable = CICDWorkerStateKey.String("available")
2356 // The worker is performing work for the CICD system.
2357 // Stability: development
2358 CICDWorkerStateBusy = CICDWorkerStateKey.String("busy")
2359 // The worker is not available to the CICD system (disconnected / down).
2360 // Stability: development
2361 CICDWorkerStateOffline = CICDWorkerStateKey.String("offline")
2362 )
2363
2364 // Namespace: client
2365 const (
2366 // ClientAddressKey is the attribute Key conforming to the "client.address"
2367 // semantic conventions. It represents the client address - domain name if
2368 // available without reverse DNS lookup; otherwise, IP address or Unix domain
2369 // socket name.
2370 //
2371 // Type: string
2372 // RequirementLevel: Recommended
2373 // Stability: Stable
2374 //
2375 // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock"
2376 // Note: When observed from the server side, and when communicating through an
2377 // intermediary, `client.address` SHOULD represent the client address behind any
2378 // intermediaries, for example proxies, if it's available.
2379 ClientAddressKey = attribute.Key("client.address")
2380
2381 // ClientPortKey is the attribute Key conforming to the "client.port" semantic
2382 // conventions. It represents the client port number.
2383 //
2384 // Type: int
2385 // RequirementLevel: Recommended
2386 // Stability: Stable
2387 //
2388 // Examples: 65123
2389 // Note: When observed from the server side, and when communicating through an
2390 // intermediary, `client.port` SHOULD represent the client port behind any
2391 // intermediaries, for example proxies, if it's available.
2392 ClientPortKey = attribute.Key("client.port")
2393 )
2394
2395 // ClientAddress returns an attribute KeyValue conforming to the "client.address"
2396 // semantic conventions. It represents the client address - domain name if
2397 // available without reverse DNS lookup; otherwise, IP address or Unix domain
2398 // socket name.
2399 func ClientAddress(val string) attribute.KeyValue {
2400 return ClientAddressKey.String(val)
2401 }
2402
2403 // ClientPort returns an attribute KeyValue conforming to the "client.port"
2404 // semantic conventions. It represents the client port number.
2405 func ClientPort(val int) attribute.KeyValue {
2406 return ClientPortKey.Int(val)
2407 }
2408
2409 // Namespace: cloud
2410 const (
2411 // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id"
2412 // semantic conventions. It represents the cloud account ID the resource is
2413 // assigned to.
2414 //
2415 // Type: string
2416 // RequirementLevel: Recommended
2417 // Stability: Development
2418 //
2419 // Examples: "111111111111", "opentelemetry"
2420 CloudAccountIDKey = attribute.Key("cloud.account.id")
2421
2422 // CloudAvailabilityZoneKey is the attribute Key conforming to the
2423 // "cloud.availability_zone" semantic conventions. It represents the cloud
2424 // regions often have multiple, isolated locations known as zones to increase
2425 // availability. Availability zone represents the zone where the resource is
2426 // running.
2427 //
2428 // Type: string
2429 // RequirementLevel: Recommended
2430 // Stability: Development
2431 //
2432 // Examples: "us-east-1c"
2433 // Note: Availability zones are called "zones" on Alibaba Cloud and Google
2434 // Cloud.
2435 CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
2436
2437 // CloudPlatformKey is the attribute Key conforming to the "cloud.platform"
2438 // semantic conventions. It represents the cloud platform in use.
2439 //
2440 // Type: Enum
2441 // RequirementLevel: Recommended
2442 // Stability: Development
2443 //
2444 // Examples:
2445 // Note: The prefix of the service SHOULD match the one specified in
2446 // `cloud.provider`.
2447 CloudPlatformKey = attribute.Key("cloud.platform")
2448
2449 // CloudProviderKey is the attribute Key conforming to the "cloud.provider"
2450 // semantic conventions. It represents the name of the cloud provider.
2451 //
2452 // Type: Enum
2453 // RequirementLevel: Recommended
2454 // Stability: Development
2455 //
2456 // Examples:
2457 CloudProviderKey = attribute.Key("cloud.provider")
2458
2459 // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic
2460 // conventions. It represents the geographical region within a cloud provider.
2461 // When associated with a resource, this attribute specifies the region where
2462 // the resource operates. When calling services or APIs deployed on a cloud,
2463 // this attribute identifies the region where the called destination is
2464 // deployed.
2465 //
2466 // Type: string
2467 // RequirementLevel: Recommended
2468 // Stability: Development
2469 //
2470 // Examples: "us-central1", "us-east-1"
2471 // Note: Refer to your provider's docs to see the available regions, for example
2472 // [Alibaba Cloud regions], [AWS regions], [Azure regions],
2473 // [Google Cloud regions], or [Tencent Cloud regions].
2474 //
2475 // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm
2476 // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/
2477 // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/
2478 // [Google Cloud regions]: https://cloud.google.com/about/locations
2479 // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091
2480 CloudRegionKey = attribute.Key("cloud.region")
2481
2482 // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id"
2483 // semantic conventions. It represents the cloud provider-specific native
2484 // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a
2485 // [fully qualified resource ID] on Azure, a [full resource name] on GCP).
2486 //
2487 // Type: string
2488 // RequirementLevel: Recommended
2489 // Stability: Development
2490 //
2491 // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",
2492 // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID",
2493 // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>
2494 // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>"
2495 // Note: On some cloud providers, it may not be possible to determine the full
2496 // ID at startup,
2497 // so it may be necessary to set `cloud.resource_id` as a span attribute
2498 // instead.
2499 //
2500 // The exact value to use for `cloud.resource_id` depends on the cloud provider.
2501 // The following well-known definitions MUST be used if you set this attribute
2502 // and they apply:
2503 //
2504 // - **AWS Lambda:** The function [ARN].
2505 // Take care not to use the "invoked ARN" directly but replace any
2506 // [alias suffix]
2507 // with the resolved function version, as the same runtime instance may be
2508 // invocable with
2509 // multiple different aliases.
2510 // - **GCP:** The [URI of the resource]
2511 // - **Azure:** The [Fully Qualified Resource ID] of the invoked function,
2512 // *not* the function app, having the form
2513 //
2514 // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`
2515 // .
2516 // This means that a span attribute MUST be used, as an Azure function app
2517 // can host multiple functions that would usually share
2518 // a TracerProvider.
2519 //
2520 //
2521 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2522 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2523 // [full resource name]: https://google.aip.dev/122#full-resource-names
2524 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2525 // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
2526 // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names
2527 // [Fully Qualified Resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2528 CloudResourceIDKey = attribute.Key("cloud.resource_id")
2529 )
2530
2531 // CloudAccountID returns an attribute KeyValue conforming to the
2532 // "cloud.account.id" semantic conventions. It represents the cloud account ID
2533 // the resource is assigned to.
2534 func CloudAccountID(val string) attribute.KeyValue {
2535 return CloudAccountIDKey.String(val)
2536 }
2537
2538 // CloudAvailabilityZone returns an attribute KeyValue conforming to the
2539 // "cloud.availability_zone" semantic conventions. It represents the cloud
2540 // regions often have multiple, isolated locations known as zones to increase
2541 // availability. Availability zone represents the zone where the resource is
2542 // running.
2543 func CloudAvailabilityZone(val string) attribute.KeyValue {
2544 return CloudAvailabilityZoneKey.String(val)
2545 }
2546
2547 // CloudRegion returns an attribute KeyValue conforming to the "cloud.region"
2548 // semantic conventions. It represents the geographical region within a cloud
2549 // provider. When associated with a resource, this attribute specifies the region
2550 // where the resource operates. When calling services or APIs deployed on a
2551 // cloud, this attribute identifies the region where the called destination is
2552 // deployed.
2553 func CloudRegion(val string) attribute.KeyValue {
2554 return CloudRegionKey.String(val)
2555 }
2556
2557 // CloudResourceID returns an attribute KeyValue conforming to the
2558 // "cloud.resource_id" semantic conventions. It represents the cloud
2559 // provider-specific native identifier of the monitored cloud resource (e.g. an
2560 // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name]
2561 // on GCP).
2562 //
2563 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2564 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2565 // [full resource name]: https://google.aip.dev/122#full-resource-names
2566 func CloudResourceID(val string) attribute.KeyValue {
2567 return CloudResourceIDKey.String(val)
2568 }
2569
2570 // Enum values for cloud.platform
2571 var (
2572 // Alibaba Cloud Elastic Compute Service
2573 // Stability: development
2574 CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
2575 // Alibaba Cloud Function Compute
2576 // Stability: development
2577 CloudPlatformAlibabaCloudFC = CloudPlatformKey.String("alibaba_cloud_fc")
2578 // Red Hat OpenShift on Alibaba Cloud
2579 // Stability: development
2580 CloudPlatformAlibabaCloudOpenShift = CloudPlatformKey.String("alibaba_cloud_openshift")
2581 // AWS Elastic Compute Cloud
2582 // Stability: development
2583 CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
2584 // AWS Elastic Container Service
2585 // Stability: development
2586 CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
2587 // AWS Elastic Kubernetes Service
2588 // Stability: development
2589 CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
2590 // AWS Lambda
2591 // Stability: development
2592 CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
2593 // AWS Elastic Beanstalk
2594 // Stability: development
2595 CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
2596 // AWS App Runner
2597 // Stability: development
2598 CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
2599 // Red Hat OpenShift on AWS (ROSA)
2600 // Stability: development
2601 CloudPlatformAWSOpenShift = CloudPlatformKey.String("aws_openshift")
2602 // Azure Virtual Machines
2603 // Stability: development
2604 CloudPlatformAzureVM = CloudPlatformKey.String("azure.vm")
2605 // Azure Container Apps
2606 // Stability: development
2607 CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure.container_apps")
2608 // Azure Container Instances
2609 // Stability: development
2610 CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure.container_instances")
2611 // Azure Kubernetes Service
2612 // Stability: development
2613 CloudPlatformAzureAKS = CloudPlatformKey.String("azure.aks")
2614 // Azure Functions
2615 // Stability: development
2616 CloudPlatformAzureFunctions = CloudPlatformKey.String("azure.functions")
2617 // Azure App Service
2618 // Stability: development
2619 CloudPlatformAzureAppService = CloudPlatformKey.String("azure.app_service")
2620 // Azure Red Hat OpenShift
2621 // Stability: development
2622 CloudPlatformAzureOpenShift = CloudPlatformKey.String("azure.openshift")
2623 // Google Bare Metal Solution (BMS)
2624 // Stability: development
2625 CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
2626 // Google Cloud Compute Engine (GCE)
2627 // Stability: development
2628 CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
2629 // Google Cloud Run
2630 // Stability: development
2631 CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
2632 // Google Cloud Kubernetes Engine (GKE)
2633 // Stability: development
2634 CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
2635 // Google Cloud Functions (GCF)
2636 // Stability: development
2637 CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
2638 // Google Cloud App Engine (GAE)
2639 // Stability: development
2640 CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
2641 // Red Hat OpenShift on Google Cloud
2642 // Stability: development
2643 CloudPlatformGCPOpenShift = CloudPlatformKey.String("gcp_openshift")
2644 // Red Hat OpenShift on IBM Cloud
2645 // Stability: development
2646 CloudPlatformIBMCloudOpenShift = CloudPlatformKey.String("ibm_cloud_openshift")
2647 // Compute on Oracle Cloud Infrastructure (OCI)
2648 // Stability: development
2649 CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute")
2650 // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI)
2651 // Stability: development
2652 CloudPlatformOracleCloudOKE = CloudPlatformKey.String("oracle_cloud_oke")
2653 // Tencent Cloud Cloud Virtual Machine (CVM)
2654 // Stability: development
2655 CloudPlatformTencentCloudCVM = CloudPlatformKey.String("tencent_cloud_cvm")
2656 // Tencent Cloud Elastic Kubernetes Service (EKS)
2657 // Stability: development
2658 CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
2659 // Tencent Cloud Serverless Cloud Function (SCF)
2660 // Stability: development
2661 CloudPlatformTencentCloudSCF = CloudPlatformKey.String("tencent_cloud_scf")
2662 )
2663
2664 // Enum values for cloud.provider
2665 var (
2666 // Alibaba Cloud
2667 // Stability: development
2668 CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
2669 // Amazon Web Services
2670 // Stability: development
2671 CloudProviderAWS = CloudProviderKey.String("aws")
2672 // Microsoft Azure
2673 // Stability: development
2674 CloudProviderAzure = CloudProviderKey.String("azure")
2675 // Google Cloud Platform
2676 // Stability: development
2677 CloudProviderGCP = CloudProviderKey.String("gcp")
2678 // Heroku Platform as a Service
2679 // Stability: development
2680 CloudProviderHeroku = CloudProviderKey.String("heroku")
2681 // IBM Cloud
2682 // Stability: development
2683 CloudProviderIBMCloud = CloudProviderKey.String("ibm_cloud")
2684 // Oracle Cloud Infrastructure (OCI)
2685 // Stability: development
2686 CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud")
2687 // Tencent Cloud
2688 // Stability: development
2689 CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
2690 )
2691
2692 // Namespace: cloudevents
2693 const (
2694 // CloudEventsEventIDKey is the attribute Key conforming to the
2695 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2696 // uniquely identifies the event.
2697 //
2698 // Type: string
2699 // RequirementLevel: Recommended
2700 // Stability: Development
2701 //
2702 // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
2703 //
2704 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2705 CloudEventsEventIDKey = attribute.Key("cloudevents.event_id")
2706
2707 // CloudEventsEventSourceKey is the attribute Key conforming to the
2708 // "cloudevents.event_source" semantic conventions. It represents the [source]
2709 // identifies the context in which an event happened.
2710 //
2711 // Type: string
2712 // RequirementLevel: Recommended
2713 // Stability: Development
2714 //
2715 // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
2716 // "my-service"
2717 //
2718 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2719 CloudEventsEventSourceKey = attribute.Key("cloudevents.event_source")
2720
2721 // CloudEventsEventSpecVersionKey is the attribute Key conforming to the
2722 // "cloudevents.event_spec_version" semantic conventions. It represents the
2723 // [version of the CloudEvents specification] which the event uses.
2724 //
2725 // Type: string
2726 // RequirementLevel: Recommended
2727 // Stability: Development
2728 //
2729 // Examples: 1.0
2730 //
2731 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2732 CloudEventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
2733
2734 // CloudEventsEventSubjectKey is the attribute Key conforming to the
2735 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2736 // of the event in the context of the event producer (identified by source).
2737 //
2738 // Type: string
2739 // RequirementLevel: Recommended
2740 // Stability: Development
2741 //
2742 // Examples: mynewfile.jpg
2743 //
2744 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2745 CloudEventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
2746
2747 // CloudEventsEventTypeKey is the attribute Key conforming to the
2748 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2749 // contains a value describing the type of event related to the originating
2750 // occurrence.
2751 //
2752 // Type: string
2753 // RequirementLevel: Recommended
2754 // Stability: Development
2755 //
2756 // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
2757 //
2758 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2759 CloudEventsEventTypeKey = attribute.Key("cloudevents.event_type")
2760 )
2761
2762 // CloudEventsEventID returns an attribute KeyValue conforming to the
2763 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2764 // uniquely identifies the event.
2765 //
2766 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2767 func CloudEventsEventID(val string) attribute.KeyValue {
2768 return CloudEventsEventIDKey.String(val)
2769 }
2770
2771 // CloudEventsEventSource returns an attribute KeyValue conforming to the
2772 // "cloudevents.event_source" semantic conventions. It represents the [source]
2773 // identifies the context in which an event happened.
2774 //
2775 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2776 func CloudEventsEventSource(val string) attribute.KeyValue {
2777 return CloudEventsEventSourceKey.String(val)
2778 }
2779
2780 // CloudEventsEventSpecVersion returns an attribute KeyValue conforming to the
2781 // "cloudevents.event_spec_version" semantic conventions. It represents the
2782 // [version of the CloudEvents specification] which the event uses.
2783 //
2784 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2785 func CloudEventsEventSpecVersion(val string) attribute.KeyValue {
2786 return CloudEventsEventSpecVersionKey.String(val)
2787 }
2788
2789 // CloudEventsEventSubject returns an attribute KeyValue conforming to the
2790 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2791 // of the event in the context of the event producer (identified by source).
2792 //
2793 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2794 func CloudEventsEventSubject(val string) attribute.KeyValue {
2795 return CloudEventsEventSubjectKey.String(val)
2796 }
2797
2798 // CloudEventsEventType returns an attribute KeyValue conforming to the
2799 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2800 // contains a value describing the type of event related to the originating
2801 // occurrence.
2802 //
2803 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2804 func CloudEventsEventType(val string) attribute.KeyValue {
2805 return CloudEventsEventTypeKey.String(val)
2806 }
2807
2808 // Namespace: cloudfoundry
2809 const (
2810 // CloudFoundryAppIDKey is the attribute Key conforming to the
2811 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2812 // application.
2813 //
2814 // Type: string
2815 // RequirementLevel: Recommended
2816 // Stability: Development
2817 //
2818 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2819 // Note: Application instrumentation should use the value from environment
2820 // variable `VCAP_APPLICATION.application_id`. This is the same value as
2821 // reported by `cf app <app-name> --guid`.
2822 CloudFoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
2823
2824 // CloudFoundryAppInstanceIDKey is the attribute Key conforming to the
2825 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2826 // of the application instance. 0 when just one instance is active.
2827 //
2828 // Type: string
2829 // RequirementLevel: Recommended
2830 // Stability: Development
2831 //
2832 // Examples: "0", "1"
2833 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2834 // .
2835 // It is used for logs and metrics emitted by CloudFoundry. It is
2836 // supposed to contain the application instance index for applications
2837 // deployed on the runtime.
2838 //
2839 // Application instrumentation should use the value from environment
2840 // variable `CF_INSTANCE_INDEX`.
2841 //
2842 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2843 CloudFoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
2844
2845 // CloudFoundryAppNameKey is the attribute Key conforming to the
2846 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2847 // application.
2848 //
2849 // Type: string
2850 // RequirementLevel: Recommended
2851 // Stability: Development
2852 //
2853 // Examples: "my-app-name"
2854 // Note: Application instrumentation should use the value from environment
2855 // variable `VCAP_APPLICATION.application_name`. This is the same value
2856 // as reported by `cf apps`.
2857 CloudFoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
2858
2859 // CloudFoundryOrgIDKey is the attribute Key conforming to the
2860 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
2861 // CloudFoundry org the application is running in.
2862 //
2863 // Type: string
2864 // RequirementLevel: Recommended
2865 // Stability: Development
2866 //
2867 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2868 // Note: Application instrumentation should use the value from environment
2869 // variable `VCAP_APPLICATION.org_id`. This is the same value as
2870 // reported by `cf org <org-name> --guid`.
2871 CloudFoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
2872
2873 // CloudFoundryOrgNameKey is the attribute Key conforming to the
2874 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
2875 // CloudFoundry organization the app is running in.
2876 //
2877 // Type: string
2878 // RequirementLevel: Recommended
2879 // Stability: Development
2880 //
2881 // Examples: "my-org-name"
2882 // Note: Application instrumentation should use the value from environment
2883 // variable `VCAP_APPLICATION.org_name`. This is the same value as
2884 // reported by `cf orgs`.
2885 CloudFoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
2886
2887 // CloudFoundryProcessIDKey is the attribute Key conforming to the
2888 // "cloudfoundry.process.id" semantic conventions. It represents the UID
2889 // identifying the process.
2890 //
2891 // Type: string
2892 // RequirementLevel: Recommended
2893 // Stability: Development
2894 //
2895 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2896 // Note: Application instrumentation should use the value from environment
2897 // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
2898 // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
2899 // For system components, this could be the actual PID.
2900 CloudFoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
2901
2902 // CloudFoundryProcessTypeKey is the attribute Key conforming to the
2903 // "cloudfoundry.process.type" semantic conventions. It represents the type of
2904 // process.
2905 //
2906 // Type: string
2907 // RequirementLevel: Recommended
2908 // Stability: Development
2909 //
2910 // Examples: "web"
2911 // Note: CloudFoundry applications can consist of multiple jobs. Usually the
2912 // main process will be of type `web`. There can be additional background
2913 // tasks or side-cars with different process types.
2914 CloudFoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
2915
2916 // CloudFoundrySpaceIDKey is the attribute Key conforming to the
2917 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
2918 // CloudFoundry space the application is running in.
2919 //
2920 // Type: string
2921 // RequirementLevel: Recommended
2922 // Stability: Development
2923 //
2924 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2925 // Note: Application instrumentation should use the value from environment
2926 // variable `VCAP_APPLICATION.space_id`. This is the same value as
2927 // reported by `cf space <space-name> --guid`.
2928 CloudFoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
2929
2930 // CloudFoundrySpaceNameKey is the attribute Key conforming to the
2931 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
2932 // CloudFoundry space the application is running in.
2933 //
2934 // Type: string
2935 // RequirementLevel: Recommended
2936 // Stability: Development
2937 //
2938 // Examples: "my-space-name"
2939 // Note: Application instrumentation should use the value from environment
2940 // variable `VCAP_APPLICATION.space_name`. This is the same value as
2941 // reported by `cf spaces`.
2942 CloudFoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
2943
2944 // CloudFoundrySystemIDKey is the attribute Key conforming to the
2945 // "cloudfoundry.system.id" semantic conventions. It represents a guid or
2946 // another name describing the event source.
2947 //
2948 // Type: string
2949 // RequirementLevel: Recommended
2950 // Stability: Development
2951 //
2952 // Examples: "cf/gorouter"
2953 // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
2954 // It is used for logs and metrics emitted by CloudFoundry. It is
2955 // supposed to contain the component name, e.g. "gorouter", for
2956 // CloudFoundry components.
2957 //
2958 // When system components are instrumented, values from the
2959 // [Bosh spec]
2960 // should be used. The `system.id` should be set to
2961 // `spec.deployment/spec.name`.
2962 //
2963 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2964 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2965 CloudFoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
2966
2967 // CloudFoundrySystemInstanceIDKey is the attribute Key conforming to the
2968 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
2969 // describing the concrete instance of the event source.
2970 //
2971 // Type: string
2972 // RequirementLevel: Recommended
2973 // Stability: Development
2974 //
2975 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2976 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2977 // .
2978 // It is used for logs and metrics emitted by CloudFoundry. It is
2979 // supposed to contain the vm id for CloudFoundry components.
2980 //
2981 // When system components are instrumented, values from the
2982 // [Bosh spec]
2983 // should be used. The `system.instance.id` should be set to `spec.id`.
2984 //
2985 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2986 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2987 CloudFoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
2988 )
2989
2990 // CloudFoundryAppID returns an attribute KeyValue conforming to the
2991 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2992 // application.
2993 func CloudFoundryAppID(val string) attribute.KeyValue {
2994 return CloudFoundryAppIDKey.String(val)
2995 }
2996
2997 // CloudFoundryAppInstanceID returns an attribute KeyValue conforming to the
2998 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2999 // of the application instance. 0 when just one instance is active.
3000 func CloudFoundryAppInstanceID(val string) attribute.KeyValue {
3001 return CloudFoundryAppInstanceIDKey.String(val)
3002 }
3003
3004 // CloudFoundryAppName returns an attribute KeyValue conforming to the
3005 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
3006 // application.
3007 func CloudFoundryAppName(val string) attribute.KeyValue {
3008 return CloudFoundryAppNameKey.String(val)
3009 }
3010
3011 // CloudFoundryOrgID returns an attribute KeyValue conforming to the
3012 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
3013 // CloudFoundry org the application is running in.
3014 func CloudFoundryOrgID(val string) attribute.KeyValue {
3015 return CloudFoundryOrgIDKey.String(val)
3016 }
3017
3018 // CloudFoundryOrgName returns an attribute KeyValue conforming to the
3019 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
3020 // CloudFoundry organization the app is running in.
3021 func CloudFoundryOrgName(val string) attribute.KeyValue {
3022 return CloudFoundryOrgNameKey.String(val)
3023 }
3024
3025 // CloudFoundryProcessID returns an attribute KeyValue conforming to the
3026 // "cloudfoundry.process.id" semantic conventions. It represents the UID
3027 // identifying the process.
3028 func CloudFoundryProcessID(val string) attribute.KeyValue {
3029 return CloudFoundryProcessIDKey.String(val)
3030 }
3031
3032 // CloudFoundryProcessType returns an attribute KeyValue conforming to the
3033 // "cloudfoundry.process.type" semantic conventions. It represents the type of
3034 // process.
3035 func CloudFoundryProcessType(val string) attribute.KeyValue {
3036 return CloudFoundryProcessTypeKey.String(val)
3037 }
3038
3039 // CloudFoundrySpaceID returns an attribute KeyValue conforming to the
3040 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
3041 // CloudFoundry space the application is running in.
3042 func CloudFoundrySpaceID(val string) attribute.KeyValue {
3043 return CloudFoundrySpaceIDKey.String(val)
3044 }
3045
3046 // CloudFoundrySpaceName returns an attribute KeyValue conforming to the
3047 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
3048 // CloudFoundry space the application is running in.
3049 func CloudFoundrySpaceName(val string) attribute.KeyValue {
3050 return CloudFoundrySpaceNameKey.String(val)
3051 }
3052
3053 // CloudFoundrySystemID returns an attribute KeyValue conforming to the
3054 // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
3055 // name describing the event source.
3056 func CloudFoundrySystemID(val string) attribute.KeyValue {
3057 return CloudFoundrySystemIDKey.String(val)
3058 }
3059
3060 // CloudFoundrySystemInstanceID returns an attribute KeyValue conforming to the
3061 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
3062 // describing the concrete instance of the event source.
3063 func CloudFoundrySystemInstanceID(val string) attribute.KeyValue {
3064 return CloudFoundrySystemInstanceIDKey.String(val)
3065 }
3066
3067 // Namespace: code
3068 const (
3069 // CodeColumnNumberKey is the attribute Key conforming to the
3070 // "code.column.number" semantic conventions. It represents the column number in
3071 // `code.file.path` best representing the operation. It SHOULD point within the
3072 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3073 // the Profile signal since the data is already captured in 'message Line'. This
3074 // constraint is imposed to prevent redundancy and maintain data integrity.
3075 //
3076 // Type: int
3077 // RequirementLevel: Recommended
3078 // Stability: Stable
3079 CodeColumnNumberKey = attribute.Key("code.column.number")
3080
3081 // CodeFilePathKey is the attribute Key conforming to the "code.file.path"
3082 // semantic conventions. It represents the source code file name that identifies
3083 // the code unit as uniquely as possible (preferably an absolute file path).
3084 // This attribute MUST NOT be used on the Profile signal since the data is
3085 // already captured in 'message Function'. This constraint is imposed to prevent
3086 // redundancy and maintain data integrity.
3087 //
3088 // Type: string
3089 // RequirementLevel: Recommended
3090 // Stability: Stable
3091 //
3092 // Examples: /usr/local/MyApplication/content_root/app/index.php
3093 CodeFilePathKey = attribute.Key("code.file.path")
3094
3095 // CodeFunctionNameKey is the attribute Key conforming to the
3096 // "code.function.name" semantic conventions. It represents the method or
3097 // function fully-qualified name without arguments. The value should fit the
3098 // natural representation of the language runtime, which is also likely the same
3099 // used within `code.stacktrace` attribute value. This attribute MUST NOT be
3100 // used on the Profile signal since the data is already captured in 'message
3101 // Function'. This constraint is imposed to prevent redundancy and maintain data
3102 // integrity.
3103 //
3104 // Type: string
3105 // RequirementLevel: Recommended
3106 // Stability: Stable
3107 //
3108 // Examples: "com.example.MyHttpService.serveRequest",
3109 // "GuzzleHttp\Client::transfer", "fopen"
3110 // Note: Values and format depends on each language runtime, thus it is
3111 // impossible to provide an exhaustive list of examples.
3112 // The values are usually the same (or prefixes of) the ones found in native
3113 // stack trace representation stored in
3114 // `code.stacktrace` without information on arguments.
3115 //
3116 // Examples:
3117 //
3118 // - Java method: `com.example.MyHttpService.serveRequest`
3119 // - Java anonymous class method: `com.mycompany.Main$1.myMethod`
3120 // - Java lambda method:
3121 // `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod`
3122 // - PHP function: `GuzzleHttp\Client::transfer`
3123 // - Go function: `github.com/my/repo/pkg.foo.func5`
3124 // - Elixir: `OpenTelemetry.Ctx.new`
3125 // - Erlang: `opentelemetry_ctx:new`
3126 // - Rust: `playground::my_module::my_cool_func`
3127 // - C function: `fopen`
3128 CodeFunctionNameKey = attribute.Key("code.function.name")
3129
3130 // CodeLineNumberKey is the attribute Key conforming to the "code.line.number"
3131 // semantic conventions. It represents the line number in `code.file.path` best
3132 // representing the operation. It SHOULD point within the code unit named in
3133 // `code.function.name`. This attribute MUST NOT be used on the Profile signal
3134 // since the data is already captured in 'message Line'. This constraint is
3135 // imposed to prevent redundancy and maintain data integrity.
3136 //
3137 // Type: int
3138 // RequirementLevel: Recommended
3139 // Stability: Stable
3140 CodeLineNumberKey = attribute.Key("code.line.number")
3141
3142 // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
3143 // semantic conventions. It represents a stacktrace as a string in the natural
3144 // representation for the language runtime. The representation is identical to
3145 // [`exception.stacktrace`]. This attribute MUST NOT be used on the Profile
3146 // signal since the data is already captured in 'message Location'. This
3147 // constraint is imposed to prevent redundancy and maintain data integrity.
3148 //
3149 // Type: string
3150 // RequirementLevel: Recommended
3151 // Stability: Stable
3152 //
3153 // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
3154 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
3155 // com.example.GenerateTrace.main(GenerateTrace.java:5)
3156 //
3157 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
3158 CodeStacktraceKey = attribute.Key("code.stacktrace")
3159 )
3160
3161 // CodeColumnNumber returns an attribute KeyValue conforming to the
3162 // "code.column.number" semantic conventions. It represents the column number in
3163 // `code.file.path` best representing the operation. It SHOULD point within the
3164 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3165 // the Profile signal since the data is already captured in 'message Line'. This
3166 // constraint is imposed to prevent redundancy and maintain data integrity.
3167 func CodeColumnNumber(val int) attribute.KeyValue {
3168 return CodeColumnNumberKey.Int(val)
3169 }
3170
3171 // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path"
3172 // semantic conventions. It represents the source code file name that identifies
3173 // the code unit as uniquely as possible (preferably an absolute file path). This
3174 // attribute MUST NOT be used on the Profile signal since the data is already
3175 // captured in 'message Function'. This constraint is imposed to prevent
3176 // redundancy and maintain data integrity.
3177 func CodeFilePath(val string) attribute.KeyValue {
3178 return CodeFilePathKey.String(val)
3179 }
3180
3181 // CodeFunctionName returns an attribute KeyValue conforming to the
3182 // "code.function.name" semantic conventions. It represents the method or
3183 // function fully-qualified name without arguments. The value should fit the
3184 // natural representation of the language runtime, which is also likely the same
3185 // used within `code.stacktrace` attribute value. This attribute MUST NOT be used
3186 // on the Profile signal since the data is already captured in 'message
3187 // Function'. This constraint is imposed to prevent redundancy and maintain data
3188 // integrity.
3189 func CodeFunctionName(val string) attribute.KeyValue {
3190 return CodeFunctionNameKey.String(val)
3191 }
3192
3193 // CodeLineNumber returns an attribute KeyValue conforming to the
3194 // "code.line.number" semantic conventions. It represents the line number in
3195 // `code.file.path` best representing the operation. It SHOULD point within the
3196 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3197 // the Profile signal since the data is already captured in 'message Line'. This
3198 // constraint is imposed to prevent redundancy and maintain data integrity.
3199 func CodeLineNumber(val int) attribute.KeyValue {
3200 return CodeLineNumberKey.Int(val)
3201 }
3202
3203 // CodeStacktrace returns an attribute KeyValue conforming to the
3204 // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
3205 // in the natural representation for the language runtime. The representation is
3206 // identical to [`exception.stacktrace`]. This attribute MUST NOT be used on the
3207 // Profile signal since the data is already captured in 'message Location'. This
3208 // constraint is imposed to prevent redundancy and maintain data integrity.
3209 //
3210 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
3211 func CodeStacktrace(val string) attribute.KeyValue {
3212 return CodeStacktraceKey.String(val)
3213 }
3214
3215 // Namespace: container
3216 const (
3217 // ContainerCommandKey is the attribute Key conforming to the
3218 // "container.command" semantic conventions. It represents the command used to
3219 // run the container (i.e. the command name).
3220 //
3221 // Type: string
3222 // RequirementLevel: Recommended
3223 // Stability: Development
3224 //
3225 // Examples: "otelcontribcol"
3226 // Note: If using embedded credentials or sensitive data, it is recommended to
3227 // remove them to prevent potential leakage.
3228 ContainerCommandKey = attribute.Key("container.command")
3229
3230 // ContainerCommandArgsKey is the attribute Key conforming to the
3231 // "container.command_args" semantic conventions. It represents the all the
3232 // command arguments (including the command/executable itself) run by the
3233 // container.
3234 //
3235 // Type: string[]
3236 // RequirementLevel: Recommended
3237 // Stability: Development
3238 //
3239 // Examples: "otelcontribcol", "--config", "config.yaml"
3240 ContainerCommandArgsKey = attribute.Key("container.command_args")
3241
3242 // ContainerCommandLineKey is the attribute Key conforming to the
3243 // "container.command_line" semantic conventions. It represents the full command
3244 // run by the container as a single string representing the full command.
3245 //
3246 // Type: string
3247 // RequirementLevel: Recommended
3248 // Stability: Development
3249 //
3250 // Examples: "otelcontribcol --config config.yaml"
3251 ContainerCommandLineKey = attribute.Key("container.command_line")
3252
3253 // ContainerCSIPluginNameKey is the attribute Key conforming to the
3254 // "container.csi.plugin.name" semantic conventions. It represents the name of
3255 // the CSI ([Container Storage Interface]) plugin used by the volume.
3256 //
3257 // Type: string
3258 // RequirementLevel: Recommended
3259 // Stability: Development
3260 //
3261 // Examples: "pd.csi.storage.gke.io"
3262 // Note: This can sometimes be referred to as a "driver" in CSI implementations.
3263 // This should represent the `name` field of the GetPluginInfo RPC.
3264 //
3265 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3266 ContainerCSIPluginNameKey = attribute.Key("container.csi.plugin.name")
3267
3268 // ContainerCSIVolumeIDKey is the attribute Key conforming to the
3269 // "container.csi.volume.id" semantic conventions. It represents the unique
3270 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3271 //
3272 // Type: string
3273 // RequirementLevel: Recommended
3274 // Stability: Development
3275 //
3276 // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
3277 // Note: This can sometimes be referred to as a "volume handle" in CSI
3278 // implementations. This should represent the `Volume.volume_id` field in CSI
3279 // spec.
3280 //
3281 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3282 ContainerCSIVolumeIDKey = attribute.Key("container.csi.volume.id")
3283
3284 // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
3285 // conventions. It represents the container ID. Usually a UUID, as for example
3286 // used to [identify Docker containers]. The UUID might be abbreviated.
3287 //
3288 // Type: string
3289 // RequirementLevel: Recommended
3290 // Stability: Development
3291 //
3292 // Examples: "a3bf90e006b2"
3293 //
3294 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3295 ContainerIDKey = attribute.Key("container.id")
3296
3297 // ContainerImageIDKey is the attribute Key conforming to the
3298 // "container.image.id" semantic conventions. It represents the runtime specific
3299 // image identifier. Usually a hash algorithm followed by a UUID.
3300 //
3301 // Type: string
3302 // RequirementLevel: Recommended
3303 // Stability: Development
3304 //
3305 // Examples:
3306 // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
3307 // Note: Docker defines a sha256 of the image id; `container.image.id`
3308 // corresponds to the `Image` field from the Docker container inspect [API]
3309 // endpoint.
3310 // K8s defines a link to the container registry repository with digest
3311 // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
3312 // .
3313 // The ID is assigned by the container runtime and can vary in different
3314 // environments. Consider using `oci.manifest.digest` if it is important to
3315 // identify the same image in different environments/runtimes.
3316 //
3317 // [API]: https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect
3318 ContainerImageIDKey = attribute.Key("container.image.id")
3319
3320 // ContainerImageNameKey is the attribute Key conforming to the
3321 // "container.image.name" semantic conventions. It represents the name of the
3322 // image the container was built on.
3323 //
3324 // Type: string
3325 // RequirementLevel: Recommended
3326 // Stability: Development
3327 //
3328 // Examples: "gcr.io/opentelemetry/operator"
3329 ContainerImageNameKey = attribute.Key("container.image.name")
3330
3331 // ContainerImageRepoDigestsKey is the attribute Key conforming to the
3332 // "container.image.repo_digests" semantic conventions. It represents the repo
3333 // digests of the container image as provided by the container runtime.
3334 //
3335 // Type: string[]
3336 // RequirementLevel: Recommended
3337 // Stability: Development
3338 //
3339 // Examples:
3340 // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
3341 // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
3342 // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
3343 //
3344 // [Docker]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
3345 // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
3346 ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
3347
3348 // ContainerImageTagsKey is the attribute Key conforming to the
3349 // "container.image.tags" semantic conventions. It represents the container
3350 // image tags. An example can be found in [Docker Image Inspect]. Should be only
3351 // the `<tag>` section of the full name for example from
3352 // `registry.example.com/my-org/my-image:<tag>`.
3353 //
3354 // Type: string[]
3355 // RequirementLevel: Recommended
3356 // Stability: Development
3357 //
3358 // Examples: "v1.27.1", "3.5.7-0"
3359 //
3360 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
3361 ContainerImageTagsKey = attribute.Key("container.image.tags")
3362
3363 // ContainerNameKey is the attribute Key conforming to the "container.name"
3364 // semantic conventions. It represents the container name used by container
3365 // runtime.
3366 //
3367 // Type: string
3368 // RequirementLevel: Recommended
3369 // Stability: Development
3370 //
3371 // Examples: "opentelemetry-autoconf"
3372 ContainerNameKey = attribute.Key("container.name")
3373
3374 // ContainerRuntimeKey is the attribute Key conforming to the
3375 // "container.runtime" semantic conventions. It represents the container runtime
3376 // managing this container.
3377 //
3378 // Type: string
3379 // RequirementLevel: Recommended
3380 // Stability: Development
3381 //
3382 // Examples: "docker", "containerd", "rkt"
3383 ContainerRuntimeKey = attribute.Key("container.runtime")
3384 )
3385
3386 // ContainerCommand returns an attribute KeyValue conforming to the
3387 // "container.command" semantic conventions. It represents the command used to
3388 // run the container (i.e. the command name).
3389 func ContainerCommand(val string) attribute.KeyValue {
3390 return ContainerCommandKey.String(val)
3391 }
3392
3393 // ContainerCommandArgs returns an attribute KeyValue conforming to the
3394 // "container.command_args" semantic conventions. It represents the all the
3395 // command arguments (including the command/executable itself) run by the
3396 // container.
3397 func ContainerCommandArgs(val ...string) attribute.KeyValue {
3398 return ContainerCommandArgsKey.StringSlice(val)
3399 }
3400
3401 // ContainerCommandLine returns an attribute KeyValue conforming to the
3402 // "container.command_line" semantic conventions. It represents the full command
3403 // run by the container as a single string representing the full command.
3404 func ContainerCommandLine(val string) attribute.KeyValue {
3405 return ContainerCommandLineKey.String(val)
3406 }
3407
3408 // ContainerCSIPluginName returns an attribute KeyValue conforming to the
3409 // "container.csi.plugin.name" semantic conventions. It represents the name of
3410 // the CSI ([Container Storage Interface]) plugin used by the volume.
3411 //
3412 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3413 func ContainerCSIPluginName(val string) attribute.KeyValue {
3414 return ContainerCSIPluginNameKey.String(val)
3415 }
3416
3417 // ContainerCSIVolumeID returns an attribute KeyValue conforming to the
3418 // "container.csi.volume.id" semantic conventions. It represents the unique
3419 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3420 //
3421 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3422 func ContainerCSIVolumeID(val string) attribute.KeyValue {
3423 return ContainerCSIVolumeIDKey.String(val)
3424 }
3425
3426 // ContainerID returns an attribute KeyValue conforming to the "container.id"
3427 // semantic conventions. It represents the container ID. Usually a UUID, as for
3428 // example used to [identify Docker containers]. The UUID might be abbreviated.
3429 //
3430 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3431 func ContainerID(val string) attribute.KeyValue {
3432 return ContainerIDKey.String(val)
3433 }
3434
3435 // ContainerImageID returns an attribute KeyValue conforming to the
3436 // "container.image.id" semantic conventions. It represents the runtime specific
3437 // image identifier. Usually a hash algorithm followed by a UUID.
3438 func ContainerImageID(val string) attribute.KeyValue {
3439 return ContainerImageIDKey.String(val)
3440 }
3441
3442 // ContainerImageName returns an attribute KeyValue conforming to the
3443 // "container.image.name" semantic conventions. It represents the name of the
3444 // image the container was built on.
3445 func ContainerImageName(val string) attribute.KeyValue {
3446 return ContainerImageNameKey.String(val)
3447 }
3448
3449 // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
3450 // "container.image.repo_digests" semantic conventions. It represents the repo
3451 // digests of the container image as provided by the container runtime.
3452 func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
3453 return ContainerImageRepoDigestsKey.StringSlice(val)
3454 }
3455
3456 // ContainerImageTags returns an attribute KeyValue conforming to the
3457 // "container.image.tags" semantic conventions. It represents the container image
3458 // tags. An example can be found in [Docker Image Inspect]. Should be only the
3459 // `<tag>` section of the full name for example from
3460 // `registry.example.com/my-org/my-image:<tag>`.
3461 //
3462 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
3463 func ContainerImageTags(val ...string) attribute.KeyValue {
3464 return ContainerImageTagsKey.StringSlice(val)
3465 }
3466
3467 // ContainerLabel returns an attribute KeyValue conforming to the
3468 // "container.label" semantic conventions. It represents the container labels,
3469 // `<key>` being the label name, the value being the label value.
3470 func ContainerLabel(key string, val string) attribute.KeyValue {
3471 return attribute.String("container.label."+key, val)
3472 }
3473
3474 // ContainerName returns an attribute KeyValue conforming to the "container.name"
3475 // semantic conventions. It represents the container name used by container
3476 // runtime.
3477 func ContainerName(val string) attribute.KeyValue {
3478 return ContainerNameKey.String(val)
3479 }
3480
3481 // ContainerRuntime returns an attribute KeyValue conforming to the
3482 // "container.runtime" semantic conventions. It represents the container runtime
3483 // managing this container.
3484 func ContainerRuntime(val string) attribute.KeyValue {
3485 return ContainerRuntimeKey.String(val)
3486 }
3487
3488 // Namespace: cpu
3489 const (
3490 // CPULogicalNumberKey is the attribute Key conforming to the
3491 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3492 // number [0..n-1].
3493 //
3494 // Type: int
3495 // RequirementLevel: Recommended
3496 // Stability: Development
3497 //
3498 // Examples: 1
3499 CPULogicalNumberKey = attribute.Key("cpu.logical_number")
3500
3501 // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
3502 // conventions. It represents the mode of the CPU.
3503 //
3504 // Type: Enum
3505 // RequirementLevel: Recommended
3506 // Stability: Development
3507 //
3508 // Examples: "user", "system"
3509 CPUModeKey = attribute.Key("cpu.mode")
3510 )
3511
3512 // CPULogicalNumber returns an attribute KeyValue conforming to the
3513 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3514 // number [0..n-1].
3515 func CPULogicalNumber(val int) attribute.KeyValue {
3516 return CPULogicalNumberKey.Int(val)
3517 }
3518
3519 // Enum values for cpu.mode
3520 var (
3521 // user
3522 // Stability: development
3523 CPUModeUser = CPUModeKey.String("user")
3524 // system
3525 // Stability: development
3526 CPUModeSystem = CPUModeKey.String("system")
3527 // nice
3528 // Stability: development
3529 CPUModeNice = CPUModeKey.String("nice")
3530 // idle
3531 // Stability: development
3532 CPUModeIdle = CPUModeKey.String("idle")
3533 // iowait
3534 // Stability: development
3535 CPUModeIOWait = CPUModeKey.String("iowait")
3536 // interrupt
3537 // Stability: development
3538 CPUModeInterrupt = CPUModeKey.String("interrupt")
3539 // steal
3540 // Stability: development
3541 CPUModeSteal = CPUModeKey.String("steal")
3542 // kernel
3543 // Stability: development
3544 CPUModeKernel = CPUModeKey.String("kernel")
3545 )
3546
3547 // Namespace: db
3548 const (
3549 // DBClientConnectionPoolNameKey is the attribute Key conforming to the
3550 // "db.client.connection.pool.name" semantic conventions. It represents the name
3551 // of the connection pool; unique within the instrumented application. In case
3552 // the connection pool implementation doesn't provide a name, instrumentation
3553 // SHOULD use a combination of parameters that would make the name unique, for
3554 // example, combining attributes `server.address`, `server.port`, and
3555 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3556 // Instrumentations that generate connection pool name following different
3557 // patterns SHOULD document it.
3558 //
3559 // Type: string
3560 // RequirementLevel: Recommended
3561 // Stability: Development
3562 //
3563 // Examples: "myDataSource"
3564 DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
3565
3566 // DBClientConnectionStateKey is the attribute Key conforming to the
3567 // "db.client.connection.state" semantic conventions. It represents the state of
3568 // a connection in the pool.
3569 //
3570 // Type: Enum
3571 // RequirementLevel: Recommended
3572 // Stability: Development
3573 //
3574 // Examples: "idle"
3575 DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
3576
3577 // DBCollectionNameKey is the attribute Key conforming to the
3578 // "db.collection.name" semantic conventions. It represents the name of a
3579 // collection (table, container) within the database.
3580 //
3581 // Type: string
3582 // RequirementLevel: Recommended
3583 // Stability: Stable
3584 //
3585 // Examples: "public.users", "customers"
3586 // Note: It is RECOMMENDED to capture the value as provided by the application
3587 // without attempting to do any case normalization.
3588 //
3589 // The collection name SHOULD NOT be extracted from `db.query.text`,
3590 // when the database system supports query text with multiple collections
3591 // in non-batch operations.
3592 //
3593 // For batch operations, if the individual operations are known to have the same
3594 // collection name then that collection name SHOULD be used.
3595 DBCollectionNameKey = attribute.Key("db.collection.name")
3596
3597 // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
3598 // conventions. It represents the name of the database, fully qualified within
3599 // the server address and port.
3600 //
3601 // Type: string
3602 // RequirementLevel: Recommended
3603 // Stability: Stable
3604 //
3605 // Examples: "customers", "test.users"
3606 // Note: If a database system has multiple namespace components, they SHOULD be
3607 // concatenated from the most general to the most specific namespace component,
3608 // using `|` as a separator between the components. Any missing components (and
3609 // their associated separators) SHOULD be omitted.
3610 // Semantic conventions for individual database systems SHOULD document what
3611 // `db.namespace` means in the context of that system.
3612 // It is RECOMMENDED to capture the value as provided by the application without
3613 // attempting to do any case normalization.
3614 DBNamespaceKey = attribute.Key("db.namespace")
3615
3616 // DBOperationBatchSizeKey is the attribute Key conforming to the
3617 // "db.operation.batch.size" semantic conventions. It represents the number of
3618 // queries included in a batch operation.
3619 //
3620 // Type: int
3621 // RequirementLevel: Recommended
3622 // Stability: Stable
3623 //
3624 // Examples: 2, 3, 4
3625 // Note: Operations are only considered batches when they contain two or more
3626 // operations, and so `db.operation.batch.size` SHOULD never be `1`.
3627 DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
3628
3629 // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
3630 // semantic conventions. It represents the name of the operation or command
3631 // being executed.
3632 //
3633 // Type: string
3634 // RequirementLevel: Recommended
3635 // Stability: Stable
3636 //
3637 // Examples: "findAndModify", "HMSET", "SELECT"
3638 // Note: It is RECOMMENDED to capture the value as provided by the application
3639 // without attempting to do any case normalization.
3640 //
3641 // The operation name SHOULD NOT be extracted from `db.query.text`,
3642 // when the database system supports query text with multiple operations
3643 // in non-batch operations.
3644 //
3645 // If spaces can occur in the operation name, multiple consecutive spaces
3646 // SHOULD be normalized to a single space.
3647 //
3648 // For batch operations, if the individual operations are known to have the same
3649 // operation name
3650 // then that operation name SHOULD be used prepended by `BATCH `,
3651 // otherwise `db.operation.name` SHOULD be `BATCH` or some other database
3652 // system specific term if more applicable.
3653 DBOperationNameKey = attribute.Key("db.operation.name")
3654
3655 // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary"
3656 // semantic conventions. It represents the low cardinality summary of a database
3657 // query.
3658 //
3659 // Type: string
3660 // RequirementLevel: Recommended
3661 // Stability: Stable
3662 //
3663 // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get
3664 // user by id"
3665 // Note: The query summary describes a class of database queries and is useful
3666 // as a grouping key, especially when analyzing telemetry for database
3667 // calls involving complex queries.
3668 //
3669 // Summary may be available to the instrumentation through
3670 // instrumentation hooks or other means. If it is not available,
3671 // instrumentations
3672 // that support query parsing SHOULD generate a summary following
3673 // [Generating query summary]
3674 // section.
3675 //
3676 // [Generating query summary]: /docs/database/database-spans.md#generating-a-summary-of-the-query
3677 DBQuerySummaryKey = attribute.Key("db.query.summary")
3678
3679 // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
3680 // semantic conventions. It represents the database query being executed.
3681 //
3682 // Type: string
3683 // RequirementLevel: Recommended
3684 // Stability: Stable
3685 //
3686 // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?"
3687 // Note: For sanitization see [Sanitization of `db.query.text`].
3688 // For batch operations, if the individual operations are known to have the same
3689 // query text then that query text SHOULD be used, otherwise all of the
3690 // individual query texts SHOULD be concatenated with separator `; ` or some
3691 // other database system specific separator if more applicable.
3692 // Parameterized query text SHOULD NOT be sanitized. Even though parameterized
3693 // query text can potentially have sensitive data, by using a parameterized
3694 // query the user is giving a strong signal that any sensitive data will be
3695 // passed as parameter values, and the benefit to observability of capturing the
3696 // static part of the query text by default outweighs the risk.
3697 //
3698 // [Sanitization of `db.query.text`]: /docs/database/database-spans.md#sanitization-of-dbquerytext
3699 DBQueryTextKey = attribute.Key("db.query.text")
3700
3701 // DBResponseReturnedRowsKey is the attribute Key conforming to the
3702 // "db.response.returned_rows" semantic conventions. It represents the number of
3703 // rows returned by the operation.
3704 //
3705 // Type: int
3706 // RequirementLevel: Recommended
3707 // Stability: Development
3708 //
3709 // Examples: 10, 30, 1000
3710 DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows")
3711
3712 // DBResponseStatusCodeKey is the attribute Key conforming to the
3713 // "db.response.status_code" semantic conventions. It represents the database
3714 // response status code.
3715 //
3716 // Type: string
3717 // RequirementLevel: Recommended
3718 // Stability: Stable
3719 //
3720 // Examples: "102", "ORA-17002", "08P01", "404"
3721 // Note: The status code returned by the database. Usually it represents an
3722 // error code, but may also represent partial success, warning, or differentiate
3723 // between various types of successful outcomes.
3724 // Semantic conventions for individual database systems SHOULD document what
3725 // `db.response.status_code` means in the context of that system.
3726 DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
3727
3728 // DBStoredProcedureNameKey is the attribute Key conforming to the
3729 // "db.stored_procedure.name" semantic conventions. It represents the name of a
3730 // stored procedure within the database.
3731 //
3732 // Type: string
3733 // RequirementLevel: Recommended
3734 // Stability: Stable
3735 //
3736 // Examples: "GetCustomer"
3737 // Note: It is RECOMMENDED to capture the value as provided by the application
3738 // without attempting to do any case normalization.
3739 //
3740 // For batch operations, if the individual operations are known to have the same
3741 // stored procedure name then that stored procedure name SHOULD be used.
3742 DBStoredProcedureNameKey = attribute.Key("db.stored_procedure.name")
3743
3744 // DBSystemNameKey is the attribute Key conforming to the "db.system.name"
3745 // semantic conventions. It represents the database management system (DBMS)
3746 // product as identified by the client instrumentation.
3747 //
3748 // Type: Enum
3749 // RequirementLevel: Recommended
3750 // Stability: Stable
3751 //
3752 // Examples:
3753 // Note: The actual DBMS may differ from the one identified by the client. For
3754 // example, when using PostgreSQL client libraries to connect to a CockroachDB,
3755 // the `db.system.name` is set to `postgresql` based on the instrumentation's
3756 // best knowledge.
3757 DBSystemNameKey = attribute.Key("db.system.name")
3758 )
3759
3760 // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
3761 // "db.client.connection.pool.name" semantic conventions. It represents the name
3762 // of the connection pool; unique within the instrumented application. In case
3763 // the connection pool implementation doesn't provide a name, instrumentation
3764 // SHOULD use a combination of parameters that would make the name unique, for
3765 // example, combining attributes `server.address`, `server.port`, and
3766 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3767 // Instrumentations that generate connection pool name following different
3768 // patterns SHOULD document it.
3769 func DBClientConnectionPoolName(val string) attribute.KeyValue {
3770 return DBClientConnectionPoolNameKey.String(val)
3771 }
3772
3773 // DBCollectionName returns an attribute KeyValue conforming to the
3774 // "db.collection.name" semantic conventions. It represents the name of a
3775 // collection (table, container) within the database.
3776 func DBCollectionName(val string) attribute.KeyValue {
3777 return DBCollectionNameKey.String(val)
3778 }
3779
3780 // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
3781 // semantic conventions. It represents the name of the database, fully qualified
3782 // within the server address and port.
3783 func DBNamespace(val string) attribute.KeyValue {
3784 return DBNamespaceKey.String(val)
3785 }
3786
3787 // DBOperationBatchSize returns an attribute KeyValue conforming to the
3788 // "db.operation.batch.size" semantic conventions. It represents the number of
3789 // queries included in a batch operation.
3790 func DBOperationBatchSize(val int) attribute.KeyValue {
3791 return DBOperationBatchSizeKey.Int(val)
3792 }
3793
3794 // DBOperationName returns an attribute KeyValue conforming to the
3795 // "db.operation.name" semantic conventions. It represents the name of the
3796 // operation or command being executed.
3797 func DBOperationName(val string) attribute.KeyValue {
3798 return DBOperationNameKey.String(val)
3799 }
3800
3801 // DBOperationParameter returns an attribute KeyValue conforming to the
3802 // "db.operation.parameter" semantic conventions. It represents a database
3803 // operation parameter, with `<key>` being the parameter name, and the attribute
3804 // value being a string representation of the parameter value.
3805 func DBOperationParameter(key string, val string) attribute.KeyValue {
3806 return attribute.String("db.operation.parameter."+key, val)
3807 }
3808
3809 // DBQueryParameter returns an attribute KeyValue conforming to the
3810 // "db.query.parameter" semantic conventions. It represents a database query
3811 // parameter, with `<key>` being the parameter name, and the attribute value
3812 // being a string representation of the parameter value.
3813 func DBQueryParameter(key string, val string) attribute.KeyValue {
3814 return attribute.String("db.query.parameter."+key, val)
3815 }
3816
3817 // DBQuerySummary returns an attribute KeyValue conforming to the
3818 // "db.query.summary" semantic conventions. It represents the low cardinality
3819 // summary of a database query.
3820 func DBQuerySummary(val string) attribute.KeyValue {
3821 return DBQuerySummaryKey.String(val)
3822 }
3823
3824 // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
3825 // semantic conventions. It represents the database query being executed.
3826 func DBQueryText(val string) attribute.KeyValue {
3827 return DBQueryTextKey.String(val)
3828 }
3829
3830 // DBResponseReturnedRows returns an attribute KeyValue conforming to the
3831 // "db.response.returned_rows" semantic conventions. It represents the number of
3832 // rows returned by the operation.
3833 func DBResponseReturnedRows(val int) attribute.KeyValue {
3834 return DBResponseReturnedRowsKey.Int(val)
3835 }
3836
3837 // DBResponseStatusCode returns an attribute KeyValue conforming to the
3838 // "db.response.status_code" semantic conventions. It represents the database
3839 // response status code.
3840 func DBResponseStatusCode(val string) attribute.KeyValue {
3841 return DBResponseStatusCodeKey.String(val)
3842 }
3843
3844 // DBStoredProcedureName returns an attribute KeyValue conforming to the
3845 // "db.stored_procedure.name" semantic conventions. It represents the name of a
3846 // stored procedure within the database.
3847 func DBStoredProcedureName(val string) attribute.KeyValue {
3848 return DBStoredProcedureNameKey.String(val)
3849 }
3850
3851 // Enum values for db.client.connection.state
3852 var (
3853 // idle
3854 // Stability: development
3855 DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
3856 // used
3857 // Stability: development
3858 DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
3859 )
3860
3861 // Enum values for db.system.name
3862 var (
3863 // Some other SQL database. Fallback only.
3864 // Stability: development
3865 DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql")
3866 // [Adabas (Adaptable Database System)]
3867 // Stability: development
3868 //
3869 // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas
3870 DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas")
3871 // [Actian Ingres]
3872 // Stability: development
3873 //
3874 // [Actian Ingres]: https://www.actian.com/databases/ingres/
3875 DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres")
3876 // [Amazon DynamoDB]
3877 // Stability: development
3878 //
3879 // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/
3880 DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb")
3881 // [Amazon Redshift]
3882 // Stability: development
3883 //
3884 // [Amazon Redshift]: https://aws.amazon.com/redshift/
3885 DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift")
3886 // [Azure Cosmos DB]
3887 // Stability: development
3888 //
3889 // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db
3890 DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb")
3891 // [InterSystems Caché]
3892 // Stability: development
3893 //
3894 // [InterSystems Caché]: https://www.intersystems.com/products/cache/
3895 DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache")
3896 // [Apache Cassandra]
3897 // Stability: development
3898 //
3899 // [Apache Cassandra]: https://cassandra.apache.org/
3900 DBSystemNameCassandra = DBSystemNameKey.String("cassandra")
3901 // [ClickHouse]
3902 // Stability: development
3903 //
3904 // [ClickHouse]: https://clickhouse.com/
3905 DBSystemNameClickHouse = DBSystemNameKey.String("clickhouse")
3906 // [CockroachDB]
3907 // Stability: development
3908 //
3909 // [CockroachDB]: https://www.cockroachlabs.com/
3910 DBSystemNameCockroachDB = DBSystemNameKey.String("cockroachdb")
3911 // [Couchbase]
3912 // Stability: development
3913 //
3914 // [Couchbase]: https://www.couchbase.com/
3915 DBSystemNameCouchbase = DBSystemNameKey.String("couchbase")
3916 // [Apache CouchDB]
3917 // Stability: development
3918 //
3919 // [Apache CouchDB]: https://couchdb.apache.org/
3920 DBSystemNameCouchDB = DBSystemNameKey.String("couchdb")
3921 // [Apache Derby]
3922 // Stability: development
3923 //
3924 // [Apache Derby]: https://db.apache.org/derby/
3925 DBSystemNameDerby = DBSystemNameKey.String("derby")
3926 // [Elasticsearch]
3927 // Stability: development
3928 //
3929 // [Elasticsearch]: https://www.elastic.co/elasticsearch
3930 DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch")
3931 // [Firebird]
3932 // Stability: development
3933 //
3934 // [Firebird]: https://www.firebirdsql.org/
3935 DBSystemNameFirebirdSQL = DBSystemNameKey.String("firebirdsql")
3936 // [Google Cloud Spanner]
3937 // Stability: development
3938 //
3939 // [Google Cloud Spanner]: https://cloud.google.com/spanner
3940 DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner")
3941 // [Apache Geode]
3942 // Stability: development
3943 //
3944 // [Apache Geode]: https://geode.apache.org/
3945 DBSystemNameGeode = DBSystemNameKey.String("geode")
3946 // [H2 Database]
3947 // Stability: development
3948 //
3949 // [H2 Database]: https://h2database.com/
3950 DBSystemNameH2database = DBSystemNameKey.String("h2database")
3951 // [Apache HBase]
3952 // Stability: development
3953 //
3954 // [Apache HBase]: https://hbase.apache.org/
3955 DBSystemNameHBase = DBSystemNameKey.String("hbase")
3956 // [Apache Hive]
3957 // Stability: development
3958 //
3959 // [Apache Hive]: https://hive.apache.org/
3960 DBSystemNameHive = DBSystemNameKey.String("hive")
3961 // [HyperSQL Database]
3962 // Stability: development
3963 //
3964 // [HyperSQL Database]: https://hsqldb.org/
3965 DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb")
3966 // [IBM Db2]
3967 // Stability: development
3968 //
3969 // [IBM Db2]: https://www.ibm.com/db2
3970 DBSystemNameIBMDB2 = DBSystemNameKey.String("ibm.db2")
3971 // [IBM Informix]
3972 // Stability: development
3973 //
3974 // [IBM Informix]: https://www.ibm.com/products/informix
3975 DBSystemNameIBMInformix = DBSystemNameKey.String("ibm.informix")
3976 // [IBM Netezza]
3977 // Stability: development
3978 //
3979 // [IBM Netezza]: https://www.ibm.com/products/netezza
3980 DBSystemNameIBMNetezza = DBSystemNameKey.String("ibm.netezza")
3981 // [InfluxDB]
3982 // Stability: development
3983 //
3984 // [InfluxDB]: https://www.influxdata.com/
3985 DBSystemNameInfluxDB = DBSystemNameKey.String("influxdb")
3986 // [Instant]
3987 // Stability: development
3988 //
3989 // [Instant]: https://www.instantdb.com/
3990 DBSystemNameInstantDB = DBSystemNameKey.String("instantdb")
3991 // [MariaDB]
3992 // Stability: stable
3993 //
3994 // [MariaDB]: https://mariadb.org/
3995 DBSystemNameMariaDB = DBSystemNameKey.String("mariadb")
3996 // [Memcached]
3997 // Stability: development
3998 //
3999 // [Memcached]: https://memcached.org/
4000 DBSystemNameMemcached = DBSystemNameKey.String("memcached")
4001 // [MongoDB]
4002 // Stability: development
4003 //
4004 // [MongoDB]: https://www.mongodb.com/
4005 DBSystemNameMongoDB = DBSystemNameKey.String("mongodb")
4006 // [Microsoft SQL Server]
4007 // Stability: stable
4008 //
4009 // [Microsoft SQL Server]: https://www.microsoft.com/sql-server
4010 DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server")
4011 // [MySQL]
4012 // Stability: stable
4013 //
4014 // [MySQL]: https://www.mysql.com/
4015 DBSystemNameMySQL = DBSystemNameKey.String("mysql")
4016 // [Neo4j]
4017 // Stability: development
4018 //
4019 // [Neo4j]: https://neo4j.com/
4020 DBSystemNameNeo4j = DBSystemNameKey.String("neo4j")
4021 // [OpenSearch]
4022 // Stability: development
4023 //
4024 // [OpenSearch]: https://opensearch.org/
4025 DBSystemNameOpenSearch = DBSystemNameKey.String("opensearch")
4026 // [Oracle Database]
4027 // Stability: development
4028 //
4029 // [Oracle Database]: https://www.oracle.com/database/
4030 DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db")
4031 // [PostgreSQL]
4032 // Stability: stable
4033 //
4034 // [PostgreSQL]: https://www.postgresql.org/
4035 DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql")
4036 // [Redis]
4037 // Stability: development
4038 //
4039 // [Redis]: https://redis.io/
4040 DBSystemNameRedis = DBSystemNameKey.String("redis")
4041 // [SAP HANA]
4042 // Stability: development
4043 //
4044 // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html
4045 DBSystemNameSAPHANA = DBSystemNameKey.String("sap.hana")
4046 // [SAP MaxDB]
4047 // Stability: development
4048 //
4049 // [SAP MaxDB]: https://maxdb.sap.com/
4050 DBSystemNameSAPMaxDB = DBSystemNameKey.String("sap.maxdb")
4051 // [SQLite]
4052 // Stability: development
4053 //
4054 // [SQLite]: https://www.sqlite.org/
4055 DBSystemNameSQLite = DBSystemNameKey.String("sqlite")
4056 // [Teradata]
4057 // Stability: development
4058 //
4059 // [Teradata]: https://www.teradata.com/
4060 DBSystemNameTeradata = DBSystemNameKey.String("teradata")
4061 // [Trino]
4062 // Stability: development
4063 //
4064 // [Trino]: https://trino.io/
4065 DBSystemNameTrino = DBSystemNameKey.String("trino")
4066 )
4067
4068 // Namespace: deployment
4069 const (
4070 // DeploymentEnvironmentNameKey is the attribute Key conforming to the
4071 // "deployment.environment.name" semantic conventions. It represents the name of
4072 // the [deployment environment] (aka deployment tier).
4073 //
4074 // Type: string
4075 // RequirementLevel: Recommended
4076 // Stability: Development
4077 //
4078 // Examples: "staging", "production"
4079 // Note: `deployment.environment.name` does not affect the uniqueness
4080 // constraints defined through
4081 // the `service.namespace`, `service.name` and `service.instance.id` resource
4082 // attributes.
4083 // This implies that resources carrying the following attribute combinations
4084 // MUST be
4085 // considered to be identifying the same service:
4086 //
4087 // - `service.name=frontend`, `deployment.environment.name=production`
4088 // - `service.name=frontend`, `deployment.environment.name=staging`.
4089 //
4090 //
4091 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
4092 DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
4093
4094 // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
4095 // semantic conventions. It represents the id of the deployment.
4096 //
4097 // Type: string
4098 // RequirementLevel: Recommended
4099 // Stability: Development
4100 //
4101 // Examples: "1208"
4102 DeploymentIDKey = attribute.Key("deployment.id")
4103
4104 // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
4105 // semantic conventions. It represents the name of the deployment.
4106 //
4107 // Type: string
4108 // RequirementLevel: Recommended
4109 // Stability: Development
4110 //
4111 // Examples: "deploy my app", "deploy-frontend"
4112 DeploymentNameKey = attribute.Key("deployment.name")
4113
4114 // DeploymentStatusKey is the attribute Key conforming to the
4115 // "deployment.status" semantic conventions. It represents the status of the
4116 // deployment.
4117 //
4118 // Type: Enum
4119 // RequirementLevel: Recommended
4120 // Stability: Development
4121 //
4122 // Examples:
4123 DeploymentStatusKey = attribute.Key("deployment.status")
4124 )
4125
4126 // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
4127 // "deployment.environment.name" semantic conventions. It represents the name of
4128 // the [deployment environment] (aka deployment tier).
4129 //
4130 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
4131 func DeploymentEnvironmentName(val string) attribute.KeyValue {
4132 return DeploymentEnvironmentNameKey.String(val)
4133 }
4134
4135 // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
4136 // semantic conventions. It represents the id of the deployment.
4137 func DeploymentID(val string) attribute.KeyValue {
4138 return DeploymentIDKey.String(val)
4139 }
4140
4141 // DeploymentName returns an attribute KeyValue conforming to the
4142 // "deployment.name" semantic conventions. It represents the name of the
4143 // deployment.
4144 func DeploymentName(val string) attribute.KeyValue {
4145 return DeploymentNameKey.String(val)
4146 }
4147
4148 // Enum values for deployment.status
4149 var (
4150 // failed
4151 // Stability: development
4152 DeploymentStatusFailed = DeploymentStatusKey.String("failed")
4153 // succeeded
4154 // Stability: development
4155 DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
4156 )
4157
4158 // Namespace: destination
4159 const (
4160 // DestinationAddressKey is the attribute Key conforming to the
4161 // "destination.address" semantic conventions. It represents the destination
4162 // address - domain name if available without reverse DNS lookup; otherwise, IP
4163 // address or Unix domain socket name.
4164 //
4165 // Type: string
4166 // RequirementLevel: Recommended
4167 // Stability: Development
4168 //
4169 // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
4170 // Note: When observed from the source side, and when communicating through an
4171 // intermediary, `destination.address` SHOULD represent the destination address
4172 // behind any intermediaries, for example proxies, if it's available.
4173 DestinationAddressKey = attribute.Key("destination.address")
4174
4175 // DestinationPortKey is the attribute Key conforming to the "destination.port"
4176 // semantic conventions. It represents the destination port number.
4177 //
4178 // Type: int
4179 // RequirementLevel: Recommended
4180 // Stability: Development
4181 //
4182 // Examples: 3389, 2888
4183 DestinationPortKey = attribute.Key("destination.port")
4184 )
4185
4186 // DestinationAddress returns an attribute KeyValue conforming to the
4187 // "destination.address" semantic conventions. It represents the destination
4188 // address - domain name if available without reverse DNS lookup; otherwise, IP
4189 // address or Unix domain socket name.
4190 func DestinationAddress(val string) attribute.KeyValue {
4191 return DestinationAddressKey.String(val)
4192 }
4193
4194 // DestinationPort returns an attribute KeyValue conforming to the
4195 // "destination.port" semantic conventions. It represents the destination port
4196 // number.
4197 func DestinationPort(val int) attribute.KeyValue {
4198 return DestinationPortKey.Int(val)
4199 }
4200
4201 // Namespace: device
4202 const (
4203 // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
4204 // conventions. It represents a unique identifier representing the device.
4205 //
4206 // Type: string
4207 // RequirementLevel: Recommended
4208 // Stability: Development
4209 //
4210 // Examples: "123456789012345", "01:23:45:67:89:AB"
4211 // Note: Its value SHOULD be identical for all apps on a device and it SHOULD
4212 // NOT change if an app is uninstalled and re-installed.
4213 // However, it might be resettable by the user for all apps on a device.
4214 // Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) MAY be
4215 // used as values.
4216 //
4217 // More information about Android identifier best practices can be found [here]
4218 // .
4219 //
4220 // > [!WARNING]> This attribute may contain sensitive (PII) information. Caution
4221 // > should be taken when storing personal data or anything which can identify a
4222 // > user. GDPR and data protection laws may apply,
4223 // > ensure you do your own due diligence.> Due to these reasons, this
4224 // > identifier is not recommended for consumer applications and will likely
4225 // > result in rejection from both Google Play and App Store.
4226 // > However, it may be appropriate for specific enterprise scenarios, such as
4227 // > kiosk devices or enterprise-managed devices, with appropriate compliance
4228 // > clearance.
4229 // > Any instrumentation providing this identifier MUST implement it as an
4230 // > opt-in feature.> See [`app.installation.id`]> for a more
4231 // > privacy-preserving alternative.
4232 //
4233 // [here]: https://developer.android.com/training/articles/user-data-ids
4234 // [`app.installation.id`]: /docs/registry/attributes/app.md#app-installation-id
4235 DeviceIDKey = attribute.Key("device.id")
4236
4237 // DeviceManufacturerKey is the attribute Key conforming to the
4238 // "device.manufacturer" semantic conventions. It represents the name of the
4239 // device manufacturer.
4240 //
4241 // Type: string
4242 // RequirementLevel: Recommended
4243 // Stability: Development
4244 //
4245 // Examples: "Apple", "Samsung"
4246 // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
4247 // hardcode the value `Apple`.
4248 //
4249 // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
4250 DeviceManufacturerKey = attribute.Key("device.manufacturer")
4251
4252 // DeviceModelIdentifierKey is the attribute Key conforming to the
4253 // "device.model.identifier" semantic conventions. It represents the model
4254 // identifier for the device.
4255 //
4256 // Type: string
4257 // RequirementLevel: Recommended
4258 // Stability: Development
4259 //
4260 // Examples: "iPhone3,4", "SM-G920F"
4261 // Note: It's recommended this value represents a machine-readable version of
4262 // the model identifier rather than the market or consumer-friendly name of the
4263 // device.
4264 DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
4265
4266 // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
4267 // semantic conventions. It represents the marketing name for the device model.
4268 //
4269 // Type: string
4270 // RequirementLevel: Recommended
4271 // Stability: Development
4272 //
4273 // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
4274 // Note: It's recommended this value represents a human-readable version of the
4275 // device model rather than a machine-readable alternative.
4276 DeviceModelNameKey = attribute.Key("device.model.name")
4277 )
4278
4279 // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
4280 // conventions. It represents a unique identifier representing the device.
4281 func DeviceID(val string) attribute.KeyValue {
4282 return DeviceIDKey.String(val)
4283 }
4284
4285 // DeviceManufacturer returns an attribute KeyValue conforming to the
4286 // "device.manufacturer" semantic conventions. It represents the name of the
4287 // device manufacturer.
4288 func DeviceManufacturer(val string) attribute.KeyValue {
4289 return DeviceManufacturerKey.String(val)
4290 }
4291
4292 // DeviceModelIdentifier returns an attribute KeyValue conforming to the
4293 // "device.model.identifier" semantic conventions. It represents the model
4294 // identifier for the device.
4295 func DeviceModelIdentifier(val string) attribute.KeyValue {
4296 return DeviceModelIdentifierKey.String(val)
4297 }
4298
4299 // DeviceModelName returns an attribute KeyValue conforming to the
4300 // "device.model.name" semantic conventions. It represents the marketing name for
4301 // the device model.
4302 func DeviceModelName(val string) attribute.KeyValue {
4303 return DeviceModelNameKey.String(val)
4304 }
4305
4306 // Namespace: disk
4307 const (
4308 // DiskIODirectionKey is the attribute Key conforming to the "disk.io.direction"
4309 // semantic conventions. It represents the disk IO operation direction.
4310 //
4311 // Type: Enum
4312 // RequirementLevel: Recommended
4313 // Stability: Development
4314 //
4315 // Examples: "read"
4316 DiskIODirectionKey = attribute.Key("disk.io.direction")
4317 )
4318
4319 // Enum values for disk.io.direction
4320 var (
4321 // read
4322 // Stability: development
4323 DiskIODirectionRead = DiskIODirectionKey.String("read")
4324 // write
4325 // Stability: development
4326 DiskIODirectionWrite = DiskIODirectionKey.String("write")
4327 )
4328
4329 // Namespace: dns
4330 const (
4331 // DNSAnswersKey is the attribute Key conforming to the "dns.answers" semantic
4332 // conventions. It represents the list of IPv4 or IPv6 addresses resolved during
4333 // DNS lookup.
4334 //
4335 // Type: string[]
4336 // RequirementLevel: Recommended
4337 // Stability: Development
4338 //
4339 // Examples: "10.0.0.1", "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
4340 DNSAnswersKey = attribute.Key("dns.answers")
4341
4342 // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
4343 // semantic conventions. It represents the name being queried.
4344 //
4345 // Type: string
4346 // RequirementLevel: Recommended
4347 // Stability: Development
4348 //
4349 // Examples: "www.example.com", "opentelemetry.io"
4350 // Note: If the name field contains non-printable characters (below 32 or above
4351 // 126), those characters should be represented as escaped base 10 integers
4352 // (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns,
4353 // and line feeds should be converted to \t, \r, and \n respectively.
4354 DNSQuestionNameKey = attribute.Key("dns.question.name")
4355 )
4356
4357 // DNSAnswers returns an attribute KeyValue conforming to the "dns.answers"
4358 // semantic conventions. It represents the list of IPv4 or IPv6 addresses
4359 // resolved during DNS lookup.
4360 func DNSAnswers(val ...string) attribute.KeyValue {
4361 return DNSAnswersKey.StringSlice(val)
4362 }
4363
4364 // DNSQuestionName returns an attribute KeyValue conforming to the
4365 // "dns.question.name" semantic conventions. It represents the name being
4366 // queried.
4367 func DNSQuestionName(val string) attribute.KeyValue {
4368 return DNSQuestionNameKey.String(val)
4369 }
4370
4371 // Namespace: elasticsearch
4372 const (
4373 // ElasticsearchNodeNameKey is the attribute Key conforming to the
4374 // "elasticsearch.node.name" semantic conventions. It represents the represents
4375 // the human-readable identifier of the node/instance to which a request was
4376 // routed.
4377 //
4378 // Type: string
4379 // RequirementLevel: Recommended
4380 // Stability: Development
4381 //
4382 // Examples: "instance-0000000001"
4383 ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name")
4384 )
4385
4386 // ElasticsearchNodeName returns an attribute KeyValue conforming to the
4387 // "elasticsearch.node.name" semantic conventions. It represents the represents
4388 // the human-readable identifier of the node/instance to which a request was
4389 // routed.
4390 func ElasticsearchNodeName(val string) attribute.KeyValue {
4391 return ElasticsearchNodeNameKey.String(val)
4392 }
4393
4394 // Namespace: enduser
4395 const (
4396 // EnduserIDKey is the attribute Key conforming to the "enduser.id" semantic
4397 // conventions. It represents the unique identifier of an end user in the
4398 // system. It maybe a username, email address, or other identifier.
4399 //
4400 // Type: string
4401 // RequirementLevel: Recommended
4402 // Stability: Development
4403 //
4404 // Examples: "username"
4405 // Note: Unique identifier of an end user in the system.
4406 //
4407 // > [!Warning]
4408 // > This field contains sensitive (PII) information.
4409 EnduserIDKey = attribute.Key("enduser.id")
4410
4411 // EnduserPseudoIDKey is the attribute Key conforming to the "enduser.pseudo.id"
4412 // semantic conventions. It represents the pseudonymous identifier of an end
4413 // user. This identifier should be a random value that is not directly linked or
4414 // associated with the end user's actual identity.
4415 //
4416 // Type: string
4417 // RequirementLevel: Recommended
4418 // Stability: Development
4419 //
4420 // Examples: "QdH5CAWJgqVT4rOr0qtumf"
4421 // Note: Pseudonymous identifier of an end user.
4422 //
4423 // > [!Warning]
4424 // > This field contains sensitive (linkable PII) information.
4425 EnduserPseudoIDKey = attribute.Key("enduser.pseudo.id")
4426 )
4427
4428 // EnduserID returns an attribute KeyValue conforming to the "enduser.id"
4429 // semantic conventions. It represents the unique identifier of an end user in
4430 // the system. It maybe a username, email address, or other identifier.
4431 func EnduserID(val string) attribute.KeyValue {
4432 return EnduserIDKey.String(val)
4433 }
4434
4435 // EnduserPseudoID returns an attribute KeyValue conforming to the
4436 // "enduser.pseudo.id" semantic conventions. It represents the pseudonymous
4437 // identifier of an end user. This identifier should be a random value that is
4438 // not directly linked or associated with the end user's actual identity.
4439 func EnduserPseudoID(val string) attribute.KeyValue {
4440 return EnduserPseudoIDKey.String(val)
4441 }
4442
4443 // Namespace: error
4444 const (
4445 // ErrorMessageKey is the attribute Key conforming to the "error.message"
4446 // semantic conventions. It represents a message providing more detail about an
4447 // error in human-readable form.
4448 //
4449 // Type: string
4450 // RequirementLevel: Recommended
4451 // Stability: Development
4452 //
4453 // Examples: "Unexpected input type: string", "The user has exceeded their
4454 // storage quota"
4455 // Note: `error.message` should provide additional context and detail about an
4456 // error.
4457 // It is NOT RECOMMENDED to duplicate the value of `error.type` in
4458 // `error.message`.
4459 // It is also NOT RECOMMENDED to duplicate the value of `exception.message` in
4460 // `error.message`.
4461 //
4462 // `error.message` is NOT RECOMMENDED for metrics or spans due to its unbounded
4463 // cardinality and overlap with span status.
4464 ErrorMessageKey = attribute.Key("error.message")
4465
4466 // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
4467 // conventions. It represents the describes a class of error the operation ended
4468 // with.
4469 //
4470 // Type: Enum
4471 // RequirementLevel: Recommended
4472 // Stability: Stable
4473 //
4474 // Examples: "timeout", "java.net.UnknownHostException",
4475 // "server_certificate_invalid", "500"
4476 // Note: The `error.type` SHOULD be predictable, and SHOULD have low
4477 // cardinality.
4478 //
4479 // When `error.type` is set to a type (e.g., an exception type), its
4480 // canonical class name identifying the type within the artifact SHOULD be used.
4481 //
4482 // Instrumentations SHOULD document the list of errors they report.
4483 //
4484 // The cardinality of `error.type` within one instrumentation library SHOULD be
4485 // low.
4486 // Telemetry consumers that aggregate data from multiple instrumentation
4487 // libraries and applications
4488 // should be prepared for `error.type` to have high cardinality at query time
4489 // when no
4490 // additional filters are applied.
4491 //
4492 // If the operation has completed successfully, instrumentations SHOULD NOT set
4493 // `error.type`.
4494 //
4495 // If a specific domain defines its own set of error identifiers (such as HTTP
4496 // or gRPC status codes),
4497 // it's RECOMMENDED to:
4498 //
4499 // - Use a domain-specific attribute
4500 // - Set `error.type` to capture all errors, regardless of whether they are
4501 // defined within the domain-specific set or not.
4502 ErrorTypeKey = attribute.Key("error.type")
4503 )
4504
4505 // ErrorMessage returns an attribute KeyValue conforming to the "error.message"
4506 // semantic conventions. It represents a message providing more detail about an
4507 // error in human-readable form.
4508 func ErrorMessage(val string) attribute.KeyValue {
4509 return ErrorMessageKey.String(val)
4510 }
4511
4512 // Enum values for error.type
4513 var (
4514 // A fallback error value to be used when the instrumentation doesn't define a
4515 // custom value.
4516 //
4517 // Stability: stable
4518 ErrorTypeOther = ErrorTypeKey.String("_OTHER")
4519 )
4520
4521 // Namespace: exception
4522 const (
4523 // ExceptionMessageKey is the attribute Key conforming to the
4524 // "exception.message" semantic conventions. It represents the exception
4525 // message.
4526 //
4527 // Type: string
4528 // RequirementLevel: Recommended
4529 // Stability: Stable
4530 //
4531 // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
4532 ExceptionMessageKey = attribute.Key("exception.message")
4533
4534 // ExceptionStacktraceKey is the attribute Key conforming to the
4535 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4536 // string in the natural representation for the language runtime. The
4537 // representation is to be determined and documented by each language SIG.
4538 //
4539 // Type: string
4540 // RequirementLevel: Recommended
4541 // Stability: Stable
4542 //
4543 // Examples: Exception in thread "main" java.lang.RuntimeException: Test
4544 // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
4545 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
4546 // com.example.GenerateTrace.main(GenerateTrace.java:5)
4547 ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
4548
4549 // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
4550 // semantic conventions. It represents the type of the exception (its
4551 // fully-qualified class name, if applicable). The dynamic type of the exception
4552 // should be preferred over the static type in languages that support it.
4553 //
4554 // Type: string
4555 // RequirementLevel: Recommended
4556 // Stability: Stable
4557 //
4558 // Examples: "java.net.ConnectException", "OSError"
4559 ExceptionTypeKey = attribute.Key("exception.type")
4560 )
4561
4562 // ExceptionMessage returns an attribute KeyValue conforming to the
4563 // "exception.message" semantic conventions. It represents the exception message.
4564 func ExceptionMessage(val string) attribute.KeyValue {
4565 return ExceptionMessageKey.String(val)
4566 }
4567
4568 // ExceptionStacktrace returns an attribute KeyValue conforming to the
4569 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4570 // string in the natural representation for the language runtime. The
4571 // representation is to be determined and documented by each language SIG.
4572 func ExceptionStacktrace(val string) attribute.KeyValue {
4573 return ExceptionStacktraceKey.String(val)
4574 }
4575
4576 // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
4577 // semantic conventions. It represents the type of the exception (its
4578 // fully-qualified class name, if applicable). The dynamic type of the exception
4579 // should be preferred over the static type in languages that support it.
4580 func ExceptionType(val string) attribute.KeyValue {
4581 return ExceptionTypeKey.String(val)
4582 }
4583
4584 // Namespace: faas
4585 const (
4586 // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
4587 // semantic conventions. It represents a boolean that is true if the serverless
4588 // function is executed for the first time (aka cold-start).
4589 //
4590 // Type: boolean
4591 // RequirementLevel: Recommended
4592 // Stability: Development
4593 //
4594 // Examples:
4595 FaaSColdstartKey = attribute.Key("faas.coldstart")
4596
4597 // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
4598 // conventions. It represents a string containing the schedule period as
4599 // [Cron Expression].
4600 //
4601 // Type: string
4602 // RequirementLevel: Recommended
4603 // Stability: Development
4604 //
4605 // Examples: 0/5 * * * ? *
4606 //
4607 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4608 FaaSCronKey = attribute.Key("faas.cron")
4609
4610 // FaaSDocumentCollectionKey is the attribute Key conforming to the
4611 // "faas.document.collection" semantic conventions. It represents the name of
4612 // the source on which the triggering operation was performed. For example, in
4613 // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
4614 // database name.
4615 //
4616 // Type: string
4617 // RequirementLevel: Recommended
4618 // Stability: Development
4619 //
4620 // Examples: "myBucketName", "myDbName"
4621 FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
4622
4623 // FaaSDocumentNameKey is the attribute Key conforming to the
4624 // "faas.document.name" semantic conventions. It represents the document
4625 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4626 // the name of the file, and in Cosmos DB the table name.
4627 //
4628 // Type: string
4629 // RequirementLevel: Recommended
4630 // Stability: Development
4631 //
4632 // Examples: "myFile.txt", "myTableName"
4633 FaaSDocumentNameKey = attribute.Key("faas.document.name")
4634
4635 // FaaSDocumentOperationKey is the attribute Key conforming to the
4636 // "faas.document.operation" semantic conventions. It represents the describes
4637 // the type of the operation that was performed on the data.
4638 //
4639 // Type: Enum
4640 // RequirementLevel: Recommended
4641 // Stability: Development
4642 //
4643 // Examples:
4644 FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
4645
4646 // FaaSDocumentTimeKey is the attribute Key conforming to the
4647 // "faas.document.time" semantic conventions. It represents a string containing
4648 // the time when the data was accessed in the [ISO 8601] format expressed in
4649 // [UTC].
4650 //
4651 // Type: string
4652 // RequirementLevel: Recommended
4653 // Stability: Development
4654 //
4655 // Examples: 2020-01-23T13:47:06Z
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 FaaSDocumentTimeKey = attribute.Key("faas.document.time")
4660
4661 // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
4662 // semantic conventions. It represents the execution environment ID as a string,
4663 // that will be potentially reused for other invocations to the same
4664 // function/function version.
4665 //
4666 // Type: string
4667 // RequirementLevel: Recommended
4668 // Stability: Development
4669 //
4670 // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
4671 // Note: - **AWS Lambda:** Use the (full) log stream name.
4672 FaaSInstanceKey = attribute.Key("faas.instance")
4673
4674 // FaaSInvocationIDKey is the attribute Key conforming to the
4675 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4676 // the current function invocation.
4677 //
4678 // Type: string
4679 // RequirementLevel: Recommended
4680 // Stability: Development
4681 //
4682 // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
4683 FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
4684
4685 // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
4686 // semantic conventions. It represents the name of the invoked function.
4687 //
4688 // Type: string
4689 // RequirementLevel: Recommended
4690 // Stability: Development
4691 //
4692 // Examples: my-function
4693 // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
4694 // function.
4695 FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
4696
4697 // FaaSInvokedProviderKey is the attribute Key conforming to the
4698 // "faas.invoked_provider" semantic conventions. It represents the cloud
4699 // provider of the invoked function.
4700 //
4701 // Type: Enum
4702 // RequirementLevel: Recommended
4703 // Stability: Development
4704 //
4705 // Examples:
4706 // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
4707 // invoked function.
4708 FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
4709
4710 // FaaSInvokedRegionKey is the attribute Key conforming to the
4711 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4712 // the invoked function.
4713 //
4714 // Type: string
4715 // RequirementLevel: Recommended
4716 // Stability: Development
4717 //
4718 // Examples: eu-central-1
4719 // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
4720 // function.
4721 FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
4722
4723 // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
4724 // semantic conventions. It represents the amount of memory available to the
4725 // serverless function converted to Bytes.
4726 //
4727 // Type: int
4728 // RequirementLevel: Recommended
4729 // Stability: Development
4730 //
4731 // Note: It's recommended to set this attribute since e.g. too little memory can
4732 // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
4733 // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
4734 // information (which must be multiplied by 1,048,576).
4735 FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
4736
4737 // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
4738 // conventions. It represents the name of the single function that this runtime
4739 // instance executes.
4740 //
4741 // Type: string
4742 // RequirementLevel: Recommended
4743 // Stability: Development
4744 //
4745 // Examples: "my-function", "myazurefunctionapp/some-function-name"
4746 // Note: This is the name of the function as configured/deployed on the FaaS
4747 // platform and is usually different from the name of the callback
4748 // function (which may be stored in the
4749 // [`code.namespace`/`code.function.name`]
4750 // span attributes).
4751 //
4752 // For some cloud providers, the above definition is ambiguous. The following
4753 // definition of function name MUST be used for this attribute
4754 // (and consequently the span name) for the listed cloud providers/products:
4755 //
4756 // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
4757 // followed by a forward slash followed by the function name (this form
4758 // can also be seen in the resource JSON for the function).
4759 // This means that a span attribute MUST be used, as an Azure function
4760 // app can host multiple functions that would usually share
4761 // a TracerProvider (see also the `cloud.resource_id` attribute).
4762 //
4763 //
4764 // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes
4765 FaaSNameKey = attribute.Key("faas.name")
4766
4767 // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
4768 // conventions. It represents a string containing the function invocation time
4769 // in the [ISO 8601] format expressed in [UTC].
4770 //
4771 // Type: string
4772 // RequirementLevel: Recommended
4773 // Stability: Development
4774 //
4775 // Examples: 2020-01-23T13:47:06Z
4776 //
4777 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4778 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4779 FaaSTimeKey = attribute.Key("faas.time")
4780
4781 // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
4782 // conventions. It represents the type of the trigger which caused this function
4783 // invocation.
4784 //
4785 // Type: Enum
4786 // RequirementLevel: Recommended
4787 // Stability: Development
4788 //
4789 // Examples:
4790 FaaSTriggerKey = attribute.Key("faas.trigger")
4791
4792 // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
4793 // conventions. It represents the immutable version of the function being
4794 // executed.
4795 //
4796 // Type: string
4797 // RequirementLevel: Recommended
4798 // Stability: Development
4799 //
4800 // Examples: "26", "pinkfroid-00002"
4801 // Note: Depending on the cloud provider and platform, use:
4802 //
4803 // - **AWS Lambda:** The [function version]
4804 // (an integer represented as a decimal string).
4805 // - **Google Cloud Run (Services):** The [revision]
4806 // (i.e., the function name plus the revision suffix).
4807 // - **Google Cloud Functions:** The value of the
4808 // [`K_REVISION` environment variable].
4809 // - **Azure Functions:** Not applicable. Do not set this attribute.
4810 //
4811 //
4812 // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
4813 // [revision]: https://cloud.google.com/run/docs/managing/revisions
4814 // [`K_REVISION` environment variable]: https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically
4815 FaaSVersionKey = attribute.Key("faas.version")
4816 )
4817
4818 // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
4819 // semantic conventions. It represents a boolean that is true if the serverless
4820 // function is executed for the first time (aka cold-start).
4821 func FaaSColdstart(val bool) attribute.KeyValue {
4822 return FaaSColdstartKey.Bool(val)
4823 }
4824
4825 // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
4826 // conventions. It represents a string containing the schedule period as
4827 // [Cron Expression].
4828 //
4829 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4830 func FaaSCron(val string) attribute.KeyValue {
4831 return FaaSCronKey.String(val)
4832 }
4833
4834 // FaaSDocumentCollection returns an attribute KeyValue conforming to the
4835 // "faas.document.collection" semantic conventions. It represents the name of the
4836 // source on which the triggering operation was performed. For example, in Cloud
4837 // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
4838 // name.
4839 func FaaSDocumentCollection(val string) attribute.KeyValue {
4840 return FaaSDocumentCollectionKey.String(val)
4841 }
4842
4843 // FaaSDocumentName returns an attribute KeyValue conforming to the
4844 // "faas.document.name" semantic conventions. It represents the document
4845 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4846 // the name of the file, and in Cosmos DB the table name.
4847 func FaaSDocumentName(val string) attribute.KeyValue {
4848 return FaaSDocumentNameKey.String(val)
4849 }
4850
4851 // FaaSDocumentTime returns an attribute KeyValue conforming to the
4852 // "faas.document.time" semantic conventions. It represents a string containing
4853 // the time when the data was accessed in the [ISO 8601] format expressed in
4854 // [UTC].
4855 //
4856 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4857 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4858 func FaaSDocumentTime(val string) attribute.KeyValue {
4859 return FaaSDocumentTimeKey.String(val)
4860 }
4861
4862 // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
4863 // semantic conventions. It represents the execution environment ID as a string,
4864 // that will be potentially reused for other invocations to the same
4865 // function/function version.
4866 func FaaSInstance(val string) attribute.KeyValue {
4867 return FaaSInstanceKey.String(val)
4868 }
4869
4870 // FaaSInvocationID returns an attribute KeyValue conforming to the
4871 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4872 // the current function invocation.
4873 func FaaSInvocationID(val string) attribute.KeyValue {
4874 return FaaSInvocationIDKey.String(val)
4875 }
4876
4877 // FaaSInvokedName returns an attribute KeyValue conforming to the
4878 // "faas.invoked_name" semantic conventions. It represents the name of the
4879 // invoked function.
4880 func FaaSInvokedName(val string) attribute.KeyValue {
4881 return FaaSInvokedNameKey.String(val)
4882 }
4883
4884 // FaaSInvokedRegion returns an attribute KeyValue conforming to the
4885 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4886 // the invoked function.
4887 func FaaSInvokedRegion(val string) attribute.KeyValue {
4888 return FaaSInvokedRegionKey.String(val)
4889 }
4890
4891 // FaaSMaxMemory returns an attribute KeyValue conforming to the
4892 // "faas.max_memory" semantic conventions. It represents the amount of memory
4893 // available to the serverless function converted to Bytes.
4894 func FaaSMaxMemory(val int) attribute.KeyValue {
4895 return FaaSMaxMemoryKey.Int(val)
4896 }
4897
4898 // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
4899 // conventions. It represents the name of the single function that this runtime
4900 // instance executes.
4901 func FaaSName(val string) attribute.KeyValue {
4902 return FaaSNameKey.String(val)
4903 }
4904
4905 // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
4906 // conventions. It represents a string containing the function invocation time in
4907 // the [ISO 8601] format expressed in [UTC].
4908 //
4909 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4910 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4911 func FaaSTime(val string) attribute.KeyValue {
4912 return FaaSTimeKey.String(val)
4913 }
4914
4915 // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
4916 // semantic conventions. It represents the immutable version of the function
4917 // being executed.
4918 func FaaSVersion(val string) attribute.KeyValue {
4919 return FaaSVersionKey.String(val)
4920 }
4921
4922 // Enum values for faas.document.operation
4923 var (
4924 // When a new object is created.
4925 // Stability: development
4926 FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
4927 // When an object is modified.
4928 // Stability: development
4929 FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
4930 // When an object is deleted.
4931 // Stability: development
4932 FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
4933 )
4934
4935 // Enum values for faas.invoked_provider
4936 var (
4937 // Alibaba Cloud
4938 // Stability: development
4939 FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
4940 // Amazon Web Services
4941 // Stability: development
4942 FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
4943 // Microsoft Azure
4944 // Stability: development
4945 FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
4946 // Google Cloud Platform
4947 // Stability: development
4948 FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
4949 // Tencent Cloud
4950 // Stability: development
4951 FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
4952 )
4953
4954 // Enum values for faas.trigger
4955 var (
4956 // A response to some data source operation such as a database or filesystem
4957 // read/write
4958 // Stability: development
4959 FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
4960 // To provide an answer to an inbound HTTP request
4961 // Stability: development
4962 FaaSTriggerHTTP = FaaSTriggerKey.String("http")
4963 // A function is set to be executed when messages are sent to a messaging system
4964 // Stability: development
4965 FaaSTriggerPubSub = FaaSTriggerKey.String("pubsub")
4966 // A function is scheduled to be executed regularly
4967 // Stability: development
4968 FaaSTriggerTimer = FaaSTriggerKey.String("timer")
4969 // If none of the others apply
4970 // Stability: development
4971 FaaSTriggerOther = FaaSTriggerKey.String("other")
4972 )
4973
4974 // Namespace: feature_flag
4975 const (
4976 // FeatureFlagContextIDKey is the attribute Key conforming to the
4977 // "feature_flag.context.id" semantic conventions. It represents the unique
4978 // identifier for the flag evaluation context. For example, the targeting key.
4979 //
4980 // Type: string
4981 // RequirementLevel: Recommended
4982 // Stability: Release_Candidate
4983 //
4984 // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db"
4985 FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id")
4986
4987 // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
4988 // semantic conventions. It represents the lookup key of the feature flag.
4989 //
4990 // Type: string
4991 // RequirementLevel: Recommended
4992 // Stability: Release_Candidate
4993 //
4994 // Examples: "logo-color"
4995 FeatureFlagKeyKey = attribute.Key("feature_flag.key")
4996
4997 // FeatureFlagProviderNameKey is the attribute Key conforming to the
4998 // "feature_flag.provider.name" semantic conventions. It represents the
4999 // identifies the feature flag provider.
5000 //
5001 // Type: string
5002 // RequirementLevel: Recommended
5003 // Stability: Release_Candidate
5004 //
5005 // Examples: "Flag Manager"
5006 FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider.name")
5007
5008 // FeatureFlagResultReasonKey is the attribute Key conforming to the
5009 // "feature_flag.result.reason" semantic conventions. It represents the reason
5010 // code which shows how a feature flag value was determined.
5011 //
5012 // Type: Enum
5013 // RequirementLevel: Recommended
5014 // Stability: Release_Candidate
5015 //
5016 // Examples: "static", "targeting_match", "error", "default"
5017 FeatureFlagResultReasonKey = attribute.Key("feature_flag.result.reason")
5018
5019 // FeatureFlagResultValueKey is the attribute Key conforming to the
5020 // "feature_flag.result.value" semantic conventions. It represents the evaluated
5021 // value of the feature flag.
5022 //
5023 // Type: any
5024 // RequirementLevel: Recommended
5025 // Stability: Release_Candidate
5026 //
5027 // Examples: "#ff0000", true, 3
5028 // Note: With some feature flag providers, feature flag results can be quite
5029 // large or contain private or sensitive details.
5030 // Because of this, `feature_flag.result.variant` is often the preferred
5031 // attribute if it is available.
5032 //
5033 // It may be desirable to redact or otherwise limit the size and scope of
5034 // `feature_flag.result.value` if possible.
5035 // Because the evaluated flag value is unstructured and may be any type, it is
5036 // left to the instrumentation author to determine how best to achieve this.
5037 FeatureFlagResultValueKey = attribute.Key("feature_flag.result.value")
5038
5039 // FeatureFlagResultVariantKey is the attribute Key conforming to the
5040 // "feature_flag.result.variant" semantic conventions. It represents a semantic
5041 // identifier for an evaluated flag value.
5042 //
5043 // Type: string
5044 // RequirementLevel: Recommended
5045 // Stability: Release_Candidate
5046 //
5047 // Examples: "red", "true", "on"
5048 // Note: A semantic identifier, commonly referred to as a variant, provides a
5049 // means
5050 // for referring to a value without including the value itself. This can
5051 // provide additional context for understanding the meaning behind a value.
5052 // For example, the variant `red` maybe be used for the value `#c05543`.
5053 FeatureFlagResultVariantKey = attribute.Key("feature_flag.result.variant")
5054
5055 // FeatureFlagSetIDKey is the attribute Key conforming to the
5056 // "feature_flag.set.id" semantic conventions. It represents the identifier of
5057 // the [flag set] to which the feature flag belongs.
5058 //
5059 // Type: string
5060 // RequirementLevel: Recommended
5061 // Stability: Release_Candidate
5062 //
5063 // Examples: "proj-1", "ab98sgs", "service1/dev"
5064 //
5065 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
5066 FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id")
5067
5068 // FeatureFlagVersionKey is the attribute Key conforming to the
5069 // "feature_flag.version" semantic conventions. It represents the version of the
5070 // ruleset used during the evaluation. This may be any stable value which
5071 // uniquely identifies the ruleset.
5072 //
5073 // Type: string
5074 // RequirementLevel: Recommended
5075 // Stability: Release_Candidate
5076 //
5077 // Examples: "1", "01ABCDEF"
5078 FeatureFlagVersionKey = attribute.Key("feature_flag.version")
5079 )
5080
5081 // FeatureFlagContextID returns an attribute KeyValue conforming to the
5082 // "feature_flag.context.id" semantic conventions. It represents the unique
5083 // identifier for the flag evaluation context. For example, the targeting key.
5084 func FeatureFlagContextID(val string) attribute.KeyValue {
5085 return FeatureFlagContextIDKey.String(val)
5086 }
5087
5088 // FeatureFlagKey returns an attribute KeyValue conforming to the
5089 // "feature_flag.key" semantic conventions. It represents the lookup key of the
5090 // feature flag.
5091 func FeatureFlagKey(val string) attribute.KeyValue {
5092 return FeatureFlagKeyKey.String(val)
5093 }
5094
5095 // FeatureFlagProviderName returns an attribute KeyValue conforming to the
5096 // "feature_flag.provider.name" semantic conventions. It represents the
5097 // identifies the feature flag provider.
5098 func FeatureFlagProviderName(val string) attribute.KeyValue {
5099 return FeatureFlagProviderNameKey.String(val)
5100 }
5101
5102 // FeatureFlagResultVariant returns an attribute KeyValue conforming to the
5103 // "feature_flag.result.variant" semantic conventions. It represents a semantic
5104 // identifier for an evaluated flag value.
5105 func FeatureFlagResultVariant(val string) attribute.KeyValue {
5106 return FeatureFlagResultVariantKey.String(val)
5107 }
5108
5109 // FeatureFlagSetID returns an attribute KeyValue conforming to the
5110 // "feature_flag.set.id" semantic conventions. It represents the identifier of
5111 // the [flag set] to which the feature flag belongs.
5112 //
5113 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
5114 func FeatureFlagSetID(val string) attribute.KeyValue {
5115 return FeatureFlagSetIDKey.String(val)
5116 }
5117
5118 // FeatureFlagVersion returns an attribute KeyValue conforming to the
5119 // "feature_flag.version" semantic conventions. It represents the version of the
5120 // ruleset used during the evaluation. This may be any stable value which
5121 // uniquely identifies the ruleset.
5122 func FeatureFlagVersion(val string) attribute.KeyValue {
5123 return FeatureFlagVersionKey.String(val)
5124 }
5125
5126 // Enum values for feature_flag.result.reason
5127 var (
5128 // The resolved value is static (no dynamic evaluation).
5129 // Stability: release_candidate
5130 FeatureFlagResultReasonStatic = FeatureFlagResultReasonKey.String("static")
5131 // The resolved value fell back to a pre-configured value (no dynamic evaluation
5132 // occurred or dynamic evaluation yielded no result).
5133 // Stability: release_candidate
5134 FeatureFlagResultReasonDefault = FeatureFlagResultReasonKey.String("default")
5135 // The resolved value was the result of a dynamic evaluation, such as a rule or
5136 // specific user-targeting.
5137 // Stability: release_candidate
5138 FeatureFlagResultReasonTargetingMatch = FeatureFlagResultReasonKey.String("targeting_match")
5139 // The resolved value was the result of pseudorandom assignment.
5140 // Stability: release_candidate
5141 FeatureFlagResultReasonSplit = FeatureFlagResultReasonKey.String("split")
5142 // The resolved value was retrieved from cache.
5143 // Stability: release_candidate
5144 FeatureFlagResultReasonCached = FeatureFlagResultReasonKey.String("cached")
5145 // The resolved value was the result of the flag being disabled in the
5146 // management system.
5147 // Stability: release_candidate
5148 FeatureFlagResultReasonDisabled = FeatureFlagResultReasonKey.String("disabled")
5149 // The reason for the resolved value could not be determined.
5150 // Stability: release_candidate
5151 FeatureFlagResultReasonUnknown = FeatureFlagResultReasonKey.String("unknown")
5152 // The resolved value is non-authoritative or possibly out of date
5153 // Stability: release_candidate
5154 FeatureFlagResultReasonStale = FeatureFlagResultReasonKey.String("stale")
5155 // The resolved value was the result of an error.
5156 // Stability: release_candidate
5157 FeatureFlagResultReasonError = FeatureFlagResultReasonKey.String("error")
5158 )
5159
5160 // Namespace: file
5161 const (
5162 // FileAccessedKey is the attribute Key conforming to the "file.accessed"
5163 // semantic conventions. It represents the time when the file was last accessed,
5164 // in ISO 8601 format.
5165 //
5166 // Type: string
5167 // RequirementLevel: Recommended
5168 // Stability: Development
5169 //
5170 // Examples: "2021-01-01T12:00:00Z"
5171 // Note: This attribute might not be supported by some file systems — NFS,
5172 // FAT32, in embedded OS, etc.
5173 FileAccessedKey = attribute.Key("file.accessed")
5174
5175 // FileAttributesKey is the attribute Key conforming to the "file.attributes"
5176 // semantic conventions. It represents the array of file attributes.
5177 //
5178 // Type: string[]
5179 // RequirementLevel: Recommended
5180 // Stability: Development
5181 //
5182 // Examples: "readonly", "hidden"
5183 // Note: Attributes names depend on the OS or file system. Here’s a
5184 // non-exhaustive list of values expected for this attribute: `archive`,
5185 // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
5186 // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
5187 // `write`.
5188 FileAttributesKey = attribute.Key("file.attributes")
5189
5190 // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
5191 // conventions. It represents the time when the file attributes or metadata was
5192 // last changed, in ISO 8601 format.
5193 //
5194 // Type: string
5195 // RequirementLevel: Recommended
5196 // Stability: Development
5197 //
5198 // Examples: "2021-01-01T12:00:00Z"
5199 // Note: `file.changed` captures the time when any of the file's properties or
5200 // attributes (including the content) are changed, while `file.modified`
5201 // captures the timestamp when the file content is modified.
5202 FileChangedKey = attribute.Key("file.changed")
5203
5204 // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
5205 // conventions. It represents the time when the file was created, in ISO 8601
5206 // format.
5207 //
5208 // Type: string
5209 // RequirementLevel: Recommended
5210 // Stability: Development
5211 //
5212 // Examples: "2021-01-01T12:00:00Z"
5213 // Note: This attribute might not be supported by some file systems — NFS,
5214 // FAT32, in embedded OS, etc.
5215 FileCreatedKey = attribute.Key("file.created")
5216
5217 // FileDirectoryKey is the attribute Key conforming to the "file.directory"
5218 // semantic conventions. It represents the directory where the file is located.
5219 // It should include the drive letter, when appropriate.
5220 //
5221 // Type: string
5222 // RequirementLevel: Recommended
5223 // Stability: Development
5224 //
5225 // Examples: "/home/user", "C:\Program Files\MyApp"
5226 FileDirectoryKey = attribute.Key("file.directory")
5227
5228 // FileExtensionKey is the attribute Key conforming to the "file.extension"
5229 // semantic conventions. It represents the file extension, excluding the leading
5230 // dot.
5231 //
5232 // Type: string
5233 // RequirementLevel: Recommended
5234 // Stability: Development
5235 //
5236 // Examples: "png", "gz"
5237 // Note: When the file name has multiple extensions (example.tar.gz), only the
5238 // last one should be captured ("gz", not "tar.gz").
5239 FileExtensionKey = attribute.Key("file.extension")
5240
5241 // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
5242 // semantic conventions. It represents the name of the fork. A fork is
5243 // additional data associated with a filesystem object.
5244 //
5245 // Type: string
5246 // RequirementLevel: Recommended
5247 // Stability: Development
5248 //
5249 // Examples: "Zone.Identifer"
5250 // Note: On Linux, a resource fork is used to store additional data with a
5251 // filesystem object. A file always has at least one fork for the data portion,
5252 // and additional forks may exist.
5253 // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
5254 // data stream for a file is just called $DATA. Zone.Identifier is commonly used
5255 // by Windows to track contents downloaded from the Internet. An ADS is
5256 // typically of the form: C:\path\to\filename.extension:some_fork_name, and
5257 // some_fork_name is the value that should populate `fork_name`.
5258 // `filename.extension` should populate `file.name`, and `extension` should
5259 // populate `file.extension`. The full path, `file.path`, will include the fork
5260 // name.
5261 FileForkNameKey = attribute.Key("file.fork_name")
5262
5263 // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
5264 // semantic conventions. It represents the primary Group ID (GID) of the file.
5265 //
5266 // Type: string
5267 // RequirementLevel: Recommended
5268 // Stability: Development
5269 //
5270 // Examples: "1000"
5271 FileGroupIDKey = attribute.Key("file.group.id")
5272
5273 // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
5274 // semantic conventions. It represents the primary group name of the file.
5275 //
5276 // Type: string
5277 // RequirementLevel: Recommended
5278 // Stability: Development
5279 //
5280 // Examples: "users"
5281 FileGroupNameKey = attribute.Key("file.group.name")
5282
5283 // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
5284 // conventions. It represents the inode representing the file in the filesystem.
5285 //
5286 // Type: string
5287 // RequirementLevel: Recommended
5288 // Stability: Development
5289 //
5290 // Examples: "256383"
5291 FileInodeKey = attribute.Key("file.inode")
5292
5293 // FileModeKey is the attribute Key conforming to the "file.mode" semantic
5294 // conventions. It represents the mode of the file in octal representation.
5295 //
5296 // Type: string
5297 // RequirementLevel: Recommended
5298 // Stability: Development
5299 //
5300 // Examples: "0640"
5301 FileModeKey = attribute.Key("file.mode")
5302
5303 // FileModifiedKey is the attribute Key conforming to the "file.modified"
5304 // semantic conventions. It represents the time when the file content was last
5305 // modified, in ISO 8601 format.
5306 //
5307 // Type: string
5308 // RequirementLevel: Recommended
5309 // Stability: Development
5310 //
5311 // Examples: "2021-01-01T12:00:00Z"
5312 FileModifiedKey = attribute.Key("file.modified")
5313
5314 // FileNameKey is the attribute Key conforming to the "file.name" semantic
5315 // conventions. It represents the name of the file including the extension,
5316 // without the directory.
5317 //
5318 // Type: string
5319 // RequirementLevel: Recommended
5320 // Stability: Development
5321 //
5322 // Examples: "example.png"
5323 FileNameKey = attribute.Key("file.name")
5324
5325 // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
5326 // semantic conventions. It represents the user ID (UID) or security identifier
5327 // (SID) of the file owner.
5328 //
5329 // Type: string
5330 // RequirementLevel: Recommended
5331 // Stability: Development
5332 //
5333 // Examples: "1000"
5334 FileOwnerIDKey = attribute.Key("file.owner.id")
5335
5336 // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
5337 // semantic conventions. It represents the username of the file owner.
5338 //
5339 // Type: string
5340 // RequirementLevel: Recommended
5341 // Stability: Development
5342 //
5343 // Examples: "root"
5344 FileOwnerNameKey = attribute.Key("file.owner.name")
5345
5346 // FilePathKey is the attribute Key conforming to the "file.path" semantic
5347 // conventions. It represents the full path to the file, including the file
5348 // name. It should include the drive letter, when appropriate.
5349 //
5350 // Type: string
5351 // RequirementLevel: Recommended
5352 // Stability: Development
5353 //
5354 // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
5355 FilePathKey = attribute.Key("file.path")
5356
5357 // FileSizeKey is the attribute Key conforming to the "file.size" semantic
5358 // conventions. It represents the file size in bytes.
5359 //
5360 // Type: int
5361 // RequirementLevel: Recommended
5362 // Stability: Development
5363 //
5364 // Examples:
5365 FileSizeKey = attribute.Key("file.size")
5366
5367 // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
5368 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5369 // to the target of a symbolic link.
5370 //
5371 // Type: string
5372 // RequirementLevel: Recommended
5373 // Stability: Development
5374 //
5375 // Examples: "/usr/bin/python3"
5376 // Note: This attribute is only applicable to symbolic links.
5377 FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
5378 )
5379
5380 // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
5381 // semantic conventions. It represents the time when the file was last accessed,
5382 // in ISO 8601 format.
5383 func FileAccessed(val string) attribute.KeyValue {
5384 return FileAccessedKey.String(val)
5385 }
5386
5387 // FileAttributes returns an attribute KeyValue conforming to the
5388 // "file.attributes" semantic conventions. It represents the array of file
5389 // attributes.
5390 func FileAttributes(val ...string) attribute.KeyValue {
5391 return FileAttributesKey.StringSlice(val)
5392 }
5393
5394 // FileChanged returns an attribute KeyValue conforming to the "file.changed"
5395 // semantic conventions. It represents the time when the file attributes or
5396 // metadata was last changed, in ISO 8601 format.
5397 func FileChanged(val string) attribute.KeyValue {
5398 return FileChangedKey.String(val)
5399 }
5400
5401 // FileCreated returns an attribute KeyValue conforming to the "file.created"
5402 // semantic conventions. It represents the time when the file was created, in ISO
5403 // 8601 format.
5404 func FileCreated(val string) attribute.KeyValue {
5405 return FileCreatedKey.String(val)
5406 }
5407
5408 // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
5409 // semantic conventions. It represents the directory where the file is located.
5410 // It should include the drive letter, when appropriate.
5411 func FileDirectory(val string) attribute.KeyValue {
5412 return FileDirectoryKey.String(val)
5413 }
5414
5415 // FileExtension returns an attribute KeyValue conforming to the "file.extension"
5416 // semantic conventions. It represents the file extension, excluding the leading
5417 // dot.
5418 func FileExtension(val string) attribute.KeyValue {
5419 return FileExtensionKey.String(val)
5420 }
5421
5422 // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
5423 // semantic conventions. It represents the name of the fork. A fork is additional
5424 // data associated with a filesystem object.
5425 func FileForkName(val string) attribute.KeyValue {
5426 return FileForkNameKey.String(val)
5427 }
5428
5429 // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
5430 // semantic conventions. It represents the primary Group ID (GID) of the file.
5431 func FileGroupID(val string) attribute.KeyValue {
5432 return FileGroupIDKey.String(val)
5433 }
5434
5435 // FileGroupName returns an attribute KeyValue conforming to the
5436 // "file.group.name" semantic conventions. It represents the primary group name
5437 // of the file.
5438 func FileGroupName(val string) attribute.KeyValue {
5439 return FileGroupNameKey.String(val)
5440 }
5441
5442 // FileInode returns an attribute KeyValue conforming to the "file.inode"
5443 // semantic conventions. It represents the inode representing the file in the
5444 // filesystem.
5445 func FileInode(val string) attribute.KeyValue {
5446 return FileInodeKey.String(val)
5447 }
5448
5449 // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
5450 // conventions. It represents the mode of the file in octal representation.
5451 func FileMode(val string) attribute.KeyValue {
5452 return FileModeKey.String(val)
5453 }
5454
5455 // FileModified returns an attribute KeyValue conforming to the "file.modified"
5456 // semantic conventions. It represents the time when the file content was last
5457 // modified, in ISO 8601 format.
5458 func FileModified(val string) attribute.KeyValue {
5459 return FileModifiedKey.String(val)
5460 }
5461
5462 // FileName returns an attribute KeyValue conforming to the "file.name" semantic
5463 // conventions. It represents the name of the file including the extension,
5464 // without the directory.
5465 func FileName(val string) attribute.KeyValue {
5466 return FileNameKey.String(val)
5467 }
5468
5469 // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
5470 // semantic conventions. It represents the user ID (UID) or security identifier
5471 // (SID) of the file owner.
5472 func FileOwnerID(val string) attribute.KeyValue {
5473 return FileOwnerIDKey.String(val)
5474 }
5475
5476 // FileOwnerName returns an attribute KeyValue conforming to the
5477 // "file.owner.name" semantic conventions. It represents the username of the file
5478 // owner.
5479 func FileOwnerName(val string) attribute.KeyValue {
5480 return FileOwnerNameKey.String(val)
5481 }
5482
5483 // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
5484 // conventions. It represents the full path to the file, including the file name.
5485 // It should include the drive letter, when appropriate.
5486 func FilePath(val string) attribute.KeyValue {
5487 return FilePathKey.String(val)
5488 }
5489
5490 // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
5491 // conventions. It represents the file size in bytes.
5492 func FileSize(val int) attribute.KeyValue {
5493 return FileSizeKey.Int(val)
5494 }
5495
5496 // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
5497 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5498 // to the target of a symbolic link.
5499 func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
5500 return FileSymbolicLinkTargetPathKey.String(val)
5501 }
5502
5503 // Namespace: gcp
5504 const (
5505 // GCPAppHubApplicationContainerKey is the attribute Key conforming to the
5506 // "gcp.apphub.application.container" semantic conventions. It represents the
5507 // container within GCP where the AppHub application is defined.
5508 //
5509 // Type: string
5510 // RequirementLevel: Recommended
5511 // Stability: Development
5512 //
5513 // Examples: "projects/my-container-project"
5514 GCPAppHubApplicationContainerKey = attribute.Key("gcp.apphub.application.container")
5515
5516 // GCPAppHubApplicationIDKey is the attribute Key conforming to the
5517 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5518 // the application as configured in AppHub.
5519 //
5520 // Type: string
5521 // RequirementLevel: Recommended
5522 // Stability: Development
5523 //
5524 // Examples: "my-application"
5525 GCPAppHubApplicationIDKey = attribute.Key("gcp.apphub.application.id")
5526
5527 // GCPAppHubApplicationLocationKey is the attribute Key conforming to the
5528 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5529 // zone or region where the application is defined.
5530 //
5531 // Type: string
5532 // RequirementLevel: Recommended
5533 // Stability: Development
5534 //
5535 // Examples: "us-central1"
5536 GCPAppHubApplicationLocationKey = attribute.Key("gcp.apphub.application.location")
5537
5538 // GCPAppHubServiceCriticalityTypeKey is the attribute Key conforming to the
5539 // "gcp.apphub.service.criticality_type" semantic conventions. It represents the
5540 // criticality of a service indicates its importance to the business.
5541 //
5542 // Type: Enum
5543 // RequirementLevel: Recommended
5544 // Stability: Development
5545 //
5546 // Examples:
5547 // Note: [See AppHub type enum]
5548 //
5549 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5550 GCPAppHubServiceCriticalityTypeKey = attribute.Key("gcp.apphub.service.criticality_type")
5551
5552 // GCPAppHubServiceEnvironmentTypeKey is the attribute Key conforming to the
5553 // "gcp.apphub.service.environment_type" semantic conventions. It represents the
5554 // environment of a service is the stage of a software lifecycle.
5555 //
5556 // Type: Enum
5557 // RequirementLevel: Recommended
5558 // Stability: Development
5559 //
5560 // Examples:
5561 // Note: [See AppHub environment type]
5562 //
5563 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5564 GCPAppHubServiceEnvironmentTypeKey = attribute.Key("gcp.apphub.service.environment_type")
5565
5566 // GCPAppHubServiceIDKey is the attribute Key conforming to the
5567 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5568 // service as configured in AppHub.
5569 //
5570 // Type: string
5571 // RequirementLevel: Recommended
5572 // Stability: Development
5573 //
5574 // Examples: "my-service"
5575 GCPAppHubServiceIDKey = attribute.Key("gcp.apphub.service.id")
5576
5577 // GCPAppHubWorkloadCriticalityTypeKey is the attribute Key conforming to the
5578 // "gcp.apphub.workload.criticality_type" semantic conventions. It represents
5579 // the criticality of a workload indicates its importance to the business.
5580 //
5581 // Type: Enum
5582 // RequirementLevel: Recommended
5583 // Stability: Development
5584 //
5585 // Examples:
5586 // Note: [See AppHub type enum]
5587 //
5588 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5589 GCPAppHubWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub.workload.criticality_type")
5590
5591 // GCPAppHubWorkloadEnvironmentTypeKey is the attribute Key conforming to the
5592 // "gcp.apphub.workload.environment_type" semantic conventions. It represents
5593 // the environment of a workload is the stage of a software lifecycle.
5594 //
5595 // Type: Enum
5596 // RequirementLevel: Recommended
5597 // Stability: Development
5598 //
5599 // Examples:
5600 // Note: [See AppHub environment type]
5601 //
5602 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5603 GCPAppHubWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub.workload.environment_type")
5604
5605 // GCPAppHubWorkloadIDKey is the attribute Key conforming to the
5606 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5607 // workload as configured in AppHub.
5608 //
5609 // Type: string
5610 // RequirementLevel: Recommended
5611 // Stability: Development
5612 //
5613 // Examples: "my-workload"
5614 GCPAppHubWorkloadIDKey = attribute.Key("gcp.apphub.workload.id")
5615
5616 // GCPClientServiceKey is the attribute Key conforming to the
5617 // "gcp.client.service" semantic conventions. It represents the identifies the
5618 // Google Cloud service for which the official client library is intended.
5619 //
5620 // Type: string
5621 // RequirementLevel: Recommended
5622 // Stability: Development
5623 //
5624 // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
5625 // Note: Intended to be a stable identifier for Google Cloud client libraries
5626 // that is uniform across implementation languages. The value should be derived
5627 // from the canonical service domain for the service; for example,
5628 // 'foo.googleapis.com' should result in a value of 'foo'.
5629 GCPClientServiceKey = attribute.Key("gcp.client.service")
5630
5631 // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
5632 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
5633 // the Cloud Run [execution] being run for the Job, as set by the
5634 // [`CLOUD_RUN_EXECUTION`] environment variable.
5635 //
5636 // Type: string
5637 // RequirementLevel: Recommended
5638 // Stability: Development
5639 //
5640 // Examples: "job-name-xxxx", "sample-job-mdw84"
5641 //
5642 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5643 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5644 GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
5645
5646 // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
5647 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5648 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5649 // environment variable.
5650 //
5651 // Type: int
5652 // RequirementLevel: Recommended
5653 // Stability: Development
5654 //
5655 // Examples: 0, 1
5656 //
5657 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5658 GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
5659
5660 // GCPGCEInstanceHostnameKey is the attribute Key conforming to the
5661 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5662 // of a GCE instance. This is the full value of the default or [custom hostname]
5663 // .
5664 //
5665 // Type: string
5666 // RequirementLevel: Recommended
5667 // Stability: Development
5668 //
5669 // Examples: "my-host1234.example.com",
5670 // "sample-vm.us-west1-b.c.my-project.internal"
5671 //
5672 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5673 GCPGCEInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
5674
5675 // GCPGCEInstanceNameKey is the attribute Key conforming to the
5676 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5677 // of a GCE instance. This is the value provided by `host.name`, the visible
5678 // name of the instance in the Cloud Console UI, and the prefix for the default
5679 // hostname of the instance as defined by the [default internal DNS name].
5680 //
5681 // Type: string
5682 // RequirementLevel: Recommended
5683 // Stability: Development
5684 //
5685 // Examples: "instance-1", "my-vm-name"
5686 //
5687 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5688 GCPGCEInstanceNameKey = attribute.Key("gcp.gce.instance.name")
5689 )
5690
5691 // GCPAppHubApplicationContainer returns an attribute KeyValue conforming to the
5692 // "gcp.apphub.application.container" semantic conventions. It represents the
5693 // container within GCP where the AppHub application is defined.
5694 func GCPAppHubApplicationContainer(val string) attribute.KeyValue {
5695 return GCPAppHubApplicationContainerKey.String(val)
5696 }
5697
5698 // GCPAppHubApplicationID returns an attribute KeyValue conforming to the
5699 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5700 // the application as configured in AppHub.
5701 func GCPAppHubApplicationID(val string) attribute.KeyValue {
5702 return GCPAppHubApplicationIDKey.String(val)
5703 }
5704
5705 // GCPAppHubApplicationLocation returns an attribute KeyValue conforming to the
5706 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5707 // zone or region where the application is defined.
5708 func GCPAppHubApplicationLocation(val string) attribute.KeyValue {
5709 return GCPAppHubApplicationLocationKey.String(val)
5710 }
5711
5712 // GCPAppHubServiceID returns an attribute KeyValue conforming to the
5713 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5714 // service as configured in AppHub.
5715 func GCPAppHubServiceID(val string) attribute.KeyValue {
5716 return GCPAppHubServiceIDKey.String(val)
5717 }
5718
5719 // GCPAppHubWorkloadID returns an attribute KeyValue conforming to the
5720 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5721 // workload as configured in AppHub.
5722 func GCPAppHubWorkloadID(val string) attribute.KeyValue {
5723 return GCPAppHubWorkloadIDKey.String(val)
5724 }
5725
5726 // GCPClientService returns an attribute KeyValue conforming to the
5727 // "gcp.client.service" semantic conventions. It represents the identifies the
5728 // Google Cloud service for which the official client library is intended.
5729 func GCPClientService(val string) attribute.KeyValue {
5730 return GCPClientServiceKey.String(val)
5731 }
5732
5733 // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
5734 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
5735 // the Cloud Run [execution] being run for the Job, as set by the
5736 // [`CLOUD_RUN_EXECUTION`] environment variable.
5737 //
5738 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5739 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5740 func GCPCloudRunJobExecution(val string) attribute.KeyValue {
5741 return GCPCloudRunJobExecutionKey.String(val)
5742 }
5743
5744 // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
5745 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5746 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5747 // environment variable.
5748 //
5749 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5750 func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
5751 return GCPCloudRunJobTaskIndexKey.Int(val)
5752 }
5753
5754 // GCPGCEInstanceHostname returns an attribute KeyValue conforming to the
5755 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5756 // of a GCE instance. This is the full value of the default or [custom hostname]
5757 // .
5758 //
5759 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5760 func GCPGCEInstanceHostname(val string) attribute.KeyValue {
5761 return GCPGCEInstanceHostnameKey.String(val)
5762 }
5763
5764 // GCPGCEInstanceName returns an attribute KeyValue conforming to the
5765 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5766 // of a GCE instance. This is the value provided by `host.name`, the visible name
5767 // of the instance in the Cloud Console UI, and the prefix for the default
5768 // hostname of the instance as defined by the [default internal DNS name].
5769 //
5770 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5771 func GCPGCEInstanceName(val string) attribute.KeyValue {
5772 return GCPGCEInstanceNameKey.String(val)
5773 }
5774
5775 // Enum values for gcp.apphub.service.criticality_type
5776 var (
5777 // Mission critical service.
5778 // Stability: development
5779 GCPAppHubServiceCriticalityTypeMissionCritical = GCPAppHubServiceCriticalityTypeKey.String("MISSION_CRITICAL")
5780 // High impact.
5781 // Stability: development
5782 GCPAppHubServiceCriticalityTypeHigh = GCPAppHubServiceCriticalityTypeKey.String("HIGH")
5783 // Medium impact.
5784 // Stability: development
5785 GCPAppHubServiceCriticalityTypeMedium = GCPAppHubServiceCriticalityTypeKey.String("MEDIUM")
5786 // Low impact.
5787 // Stability: development
5788 GCPAppHubServiceCriticalityTypeLow = GCPAppHubServiceCriticalityTypeKey.String("LOW")
5789 )
5790
5791 // Enum values for gcp.apphub.service.environment_type
5792 var (
5793 // Production environment.
5794 // Stability: development
5795 GCPAppHubServiceEnvironmentTypeProduction = GCPAppHubServiceEnvironmentTypeKey.String("PRODUCTION")
5796 // Staging environment.
5797 // Stability: development
5798 GCPAppHubServiceEnvironmentTypeStaging = GCPAppHubServiceEnvironmentTypeKey.String("STAGING")
5799 // Test environment.
5800 // Stability: development
5801 GCPAppHubServiceEnvironmentTypeTest = GCPAppHubServiceEnvironmentTypeKey.String("TEST")
5802 // Development environment.
5803 // Stability: development
5804 GCPAppHubServiceEnvironmentTypeDevelopment = GCPAppHubServiceEnvironmentTypeKey.String("DEVELOPMENT")
5805 )
5806
5807 // Enum values for gcp.apphub.workload.criticality_type
5808 var (
5809 // Mission critical service.
5810 // Stability: development
5811 GCPAppHubWorkloadCriticalityTypeMissionCritical = GCPAppHubWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
5812 // High impact.
5813 // Stability: development
5814 GCPAppHubWorkloadCriticalityTypeHigh = GCPAppHubWorkloadCriticalityTypeKey.String("HIGH")
5815 // Medium impact.
5816 // Stability: development
5817 GCPAppHubWorkloadCriticalityTypeMedium = GCPAppHubWorkloadCriticalityTypeKey.String("MEDIUM")
5818 // Low impact.
5819 // Stability: development
5820 GCPAppHubWorkloadCriticalityTypeLow = GCPAppHubWorkloadCriticalityTypeKey.String("LOW")
5821 )
5822
5823 // Enum values for gcp.apphub.workload.environment_type
5824 var (
5825 // Production environment.
5826 // Stability: development
5827 GCPAppHubWorkloadEnvironmentTypeProduction = GCPAppHubWorkloadEnvironmentTypeKey.String("PRODUCTION")
5828 // Staging environment.
5829 // Stability: development
5830 GCPAppHubWorkloadEnvironmentTypeStaging = GCPAppHubWorkloadEnvironmentTypeKey.String("STAGING")
5831 // Test environment.
5832 // Stability: development
5833 GCPAppHubWorkloadEnvironmentTypeTest = GCPAppHubWorkloadEnvironmentTypeKey.String("TEST")
5834 // Development environment.
5835 // Stability: development
5836 GCPAppHubWorkloadEnvironmentTypeDevelopment = GCPAppHubWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
5837 )
5838
5839 // Namespace: gen_ai
5840 const (
5841 // GenAIAgentDescriptionKey is the attribute Key conforming to the
5842 // "gen_ai.agent.description" semantic conventions. It represents the free-form
5843 // description of the GenAI agent provided by the application.
5844 //
5845 // Type: string
5846 // RequirementLevel: Recommended
5847 // Stability: Development
5848 //
5849 // Examples: "Helps with math problems", "Generates fiction stories"
5850 GenAIAgentDescriptionKey = attribute.Key("gen_ai.agent.description")
5851
5852 // GenAIAgentIDKey is the attribute Key conforming to the "gen_ai.agent.id"
5853 // semantic conventions. It represents the unique identifier of the GenAI agent.
5854 //
5855 // Type: string
5856 // RequirementLevel: Recommended
5857 // Stability: Development
5858 //
5859 // Examples: "asst_5j66UpCpwteGg4YSxUnt7lPY"
5860 GenAIAgentIDKey = attribute.Key("gen_ai.agent.id")
5861
5862 // GenAIAgentNameKey is the attribute Key conforming to the "gen_ai.agent.name"
5863 // semantic conventions. It represents the human-readable name of the GenAI
5864 // agent provided by the application.
5865 //
5866 // Type: string
5867 // RequirementLevel: Recommended
5868 // Stability: Development
5869 //
5870 // Examples: "Math Tutor", "Fiction Writer"
5871 GenAIAgentNameKey = attribute.Key("gen_ai.agent.name")
5872
5873 // GenAIConversationIDKey is the attribute Key conforming to the
5874 // "gen_ai.conversation.id" semantic conventions. It represents the unique
5875 // identifier for a conversation (session, thread), used to store and correlate
5876 // messages within this conversation.
5877 //
5878 // Type: string
5879 // RequirementLevel: Recommended
5880 // Stability: Development
5881 //
5882 // Examples: "conv_5j66UpCpwteGg4YSxUnt7lPY"
5883 GenAIConversationIDKey = attribute.Key("gen_ai.conversation.id")
5884
5885 // GenAIDataSourceIDKey is the attribute Key conforming to the
5886 // "gen_ai.data_source.id" semantic conventions. It represents the data source
5887 // identifier.
5888 //
5889 // Type: string
5890 // RequirementLevel: Recommended
5891 // Stability: Development
5892 //
5893 // Examples: "H7STPQYOND"
5894 // Note: Data sources are used by AI agents and RAG applications to store
5895 // grounding data. A data source may be an external database, object store,
5896 // document collection, website, or any other storage system used by the GenAI
5897 // agent or application. The `gen_ai.data_source.id` SHOULD match the identifier
5898 // used by the GenAI system rather than a name specific to the external storage,
5899 // such as a database or object store. Semantic conventions referencing
5900 // `gen_ai.data_source.id` MAY also leverage additional attributes, such as
5901 // `db.*`, to further identify and describe the data source.
5902 GenAIDataSourceIDKey = attribute.Key("gen_ai.data_source.id")
5903
5904 // GenAIOpenAIRequestServiceTierKey is the attribute Key conforming to the
5905 // "gen_ai.openai.request.service_tier" semantic conventions. It represents the
5906 // service tier requested. May be a specific tier, default, or auto.
5907 //
5908 // Type: Enum
5909 // RequirementLevel: Recommended
5910 // Stability: Development
5911 //
5912 // Examples: "auto", "default"
5913 GenAIOpenAIRequestServiceTierKey = attribute.Key("gen_ai.openai.request.service_tier")
5914
5915 // GenAIOpenAIResponseServiceTierKey is the attribute Key conforming to the
5916 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
5917 // service tier used for the response.
5918 //
5919 // Type: string
5920 // RequirementLevel: Recommended
5921 // Stability: Development
5922 //
5923 // Examples: "scale", "default"
5924 GenAIOpenAIResponseServiceTierKey = attribute.Key("gen_ai.openai.response.service_tier")
5925
5926 // GenAIOpenAIResponseSystemFingerprintKey is the attribute Key conforming to
5927 // the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
5928 // represents a fingerprint to track any eventual change in the Generative AI
5929 // environment.
5930 //
5931 // Type: string
5932 // RequirementLevel: Recommended
5933 // Stability: Development
5934 //
5935 // Examples: "fp_44709d6fcb"
5936 GenAIOpenAIResponseSystemFingerprintKey = attribute.Key("gen_ai.openai.response.system_fingerprint")
5937
5938 // GenAIOperationNameKey is the attribute Key conforming to the
5939 // "gen_ai.operation.name" semantic conventions. It represents the name of the
5940 // operation being performed.
5941 //
5942 // Type: Enum
5943 // RequirementLevel: Recommended
5944 // Stability: Development
5945 //
5946 // Examples:
5947 // Note: If one of the predefined values applies, but specific system uses a
5948 // different name it's RECOMMENDED to document it in the semantic conventions
5949 // for specific GenAI system and use system-specific name in the
5950 // instrumentation. If a different name is not documented, instrumentation
5951 // libraries SHOULD use applicable predefined value.
5952 GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
5953
5954 // GenAIOutputTypeKey is the attribute Key conforming to the
5955 // "gen_ai.output.type" semantic conventions. It represents the represents the
5956 // content type requested by the client.
5957 //
5958 // Type: Enum
5959 // RequirementLevel: Recommended
5960 // Stability: Development
5961 //
5962 // Examples:
5963 // Note: This attribute SHOULD be used when the client requests output of a
5964 // specific type. The model may return zero or more outputs of this type.
5965 // This attribute specifies the output modality and not the actual output
5966 // format. For example, if an image is requested, the actual output could be a
5967 // URL pointing to an image file.
5968 // Additional output format details may be recorded in the future in the
5969 // `gen_ai.output.{type}.*` attributes.
5970 GenAIOutputTypeKey = attribute.Key("gen_ai.output.type")
5971
5972 // GenAIRequestChoiceCountKey is the attribute Key conforming to the
5973 // "gen_ai.request.choice.count" semantic conventions. It represents the target
5974 // number of candidate completions to return.
5975 //
5976 // Type: int
5977 // RequirementLevel: Recommended
5978 // Stability: Development
5979 //
5980 // Examples: 3
5981 GenAIRequestChoiceCountKey = attribute.Key("gen_ai.request.choice.count")
5982
5983 // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the
5984 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
5985 // encoding formats requested in an embeddings operation, if specified.
5986 //
5987 // Type: string[]
5988 // RequirementLevel: Recommended
5989 // Stability: Development
5990 //
5991 // Examples: "base64"], ["float", "binary"
5992 // Note: In some GenAI systems the encoding formats are called embedding types.
5993 // Also, some GenAI systems only accept a single format per request.
5994 GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats")
5995
5996 // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
5997 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
5998 // frequency penalty setting for the GenAI request.
5999 //
6000 // Type: double
6001 // RequirementLevel: Recommended
6002 // Stability: Development
6003 //
6004 // Examples: 0.1
6005 GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
6006
6007 // GenAIRequestMaxTokensKey is the attribute Key conforming to the
6008 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
6009 // number of tokens the model generates for a request.
6010 //
6011 // Type: int
6012 // RequirementLevel: Recommended
6013 // Stability: Development
6014 //
6015 // Examples: 100
6016 GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
6017
6018 // GenAIRequestModelKey is the attribute Key conforming to the
6019 // "gen_ai.request.model" semantic conventions. It represents the name of the
6020 // GenAI model a request is being made to.
6021 //
6022 // Type: string
6023 // RequirementLevel: Recommended
6024 // Stability: Development
6025 //
6026 // Examples: gpt-4
6027 GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
6028
6029 // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
6030 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
6031 // presence penalty setting for the GenAI request.
6032 //
6033 // Type: double
6034 // RequirementLevel: Recommended
6035 // Stability: Development
6036 //
6037 // Examples: 0.1
6038 GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
6039
6040 // GenAIRequestSeedKey is the attribute Key conforming to the
6041 // "gen_ai.request.seed" semantic conventions. It represents the requests with
6042 // same seed value more likely to return same result.
6043 //
6044 // Type: int
6045 // RequirementLevel: Recommended
6046 // Stability: Development
6047 //
6048 // Examples: 100
6049 GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed")
6050
6051 // GenAIRequestStopSequencesKey is the attribute Key conforming to the
6052 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
6053 // of sequences that the model will use to stop generating further tokens.
6054 //
6055 // Type: string[]
6056 // RequirementLevel: Recommended
6057 // Stability: Development
6058 //
6059 // Examples: "forest", "lived"
6060 GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
6061
6062 // GenAIRequestTemperatureKey is the attribute Key conforming to the
6063 // "gen_ai.request.temperature" semantic conventions. It represents the
6064 // temperature setting for the GenAI request.
6065 //
6066 // Type: double
6067 // RequirementLevel: Recommended
6068 // Stability: Development
6069 //
6070 // Examples: 0.0
6071 GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
6072
6073 // GenAIRequestTopKKey is the attribute Key conforming to the
6074 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
6075 // setting for the GenAI request.
6076 //
6077 // Type: double
6078 // RequirementLevel: Recommended
6079 // Stability: Development
6080 //
6081 // Examples: 1.0
6082 GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
6083
6084 // GenAIRequestTopPKey is the attribute Key conforming to the
6085 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
6086 // setting for the GenAI request.
6087 //
6088 // Type: double
6089 // RequirementLevel: Recommended
6090 // Stability: Development
6091 //
6092 // Examples: 1.0
6093 GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
6094
6095 // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
6096 // "gen_ai.response.finish_reasons" semantic conventions. It represents the
6097 // array of reasons the model stopped generating tokens, corresponding to each
6098 // generation received.
6099 //
6100 // Type: string[]
6101 // RequirementLevel: Recommended
6102 // Stability: Development
6103 //
6104 // Examples: "stop"], ["stop", "length"
6105 GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
6106
6107 // GenAIResponseIDKey is the attribute Key conforming to the
6108 // "gen_ai.response.id" semantic conventions. It represents the unique
6109 // identifier for the completion.
6110 //
6111 // Type: string
6112 // RequirementLevel: Recommended
6113 // Stability: Development
6114 //
6115 // Examples: "chatcmpl-123"
6116 GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
6117
6118 // GenAIResponseModelKey is the attribute Key conforming to the
6119 // "gen_ai.response.model" semantic conventions. It represents the name of the
6120 // model that generated the response.
6121 //
6122 // Type: string
6123 // RequirementLevel: Recommended
6124 // Stability: Development
6125 //
6126 // Examples: "gpt-4-0613"
6127 GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
6128
6129 // GenAISystemKey is the attribute Key conforming to the "gen_ai.system"
6130 // semantic conventions. It represents the Generative AI product as identified
6131 // by the client or server instrumentation.
6132 //
6133 // Type: Enum
6134 // RequirementLevel: Recommended
6135 // Stability: Development
6136 //
6137 // Examples: openai
6138 // Note: The `gen_ai.system` describes a family of GenAI models with specific
6139 // model identified
6140 // by `gen_ai.request.model` and `gen_ai.response.model` attributes.
6141 //
6142 // The actual GenAI product may differ from the one identified by the client.
6143 // Multiple systems, including Azure OpenAI and Gemini, are accessible by OpenAI
6144 // client
6145 // libraries. In such cases, the `gen_ai.system` is set to `openai` based on the
6146 // instrumentation's best knowledge, instead of the actual system. The
6147 // `server.address`
6148 // attribute may help identify the actual system in use for `openai`.
6149 //
6150 // For custom model, a custom friendly name SHOULD be used.
6151 // If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER`
6152 // .
6153 GenAISystemKey = attribute.Key("gen_ai.system")
6154
6155 // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
6156 // semantic conventions. It represents the type of token being counted.
6157 //
6158 // Type: Enum
6159 // RequirementLevel: Recommended
6160 // Stability: Development
6161 //
6162 // Examples: "input", "output"
6163 GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
6164
6165 // GenAIToolCallIDKey is the attribute Key conforming to the
6166 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
6167 // identifier.
6168 //
6169 // Type: string
6170 // RequirementLevel: Recommended
6171 // Stability: Development
6172 //
6173 // Examples: "call_mszuSIzqtI65i1wAUOE8w5H4"
6174 GenAIToolCallIDKey = attribute.Key("gen_ai.tool.call.id")
6175
6176 // GenAIToolDescriptionKey is the attribute Key conforming to the
6177 // "gen_ai.tool.description" semantic conventions. It represents the tool
6178 // description.
6179 //
6180 // Type: string
6181 // RequirementLevel: Recommended
6182 // Stability: Development
6183 //
6184 // Examples: "Multiply two numbers"
6185 GenAIToolDescriptionKey = attribute.Key("gen_ai.tool.description")
6186
6187 // GenAIToolNameKey is the attribute Key conforming to the "gen_ai.tool.name"
6188 // semantic conventions. It represents the name of the tool utilized by the
6189 // agent.
6190 //
6191 // Type: string
6192 // RequirementLevel: Recommended
6193 // Stability: Development
6194 //
6195 // Examples: "Flights"
6196 GenAIToolNameKey = attribute.Key("gen_ai.tool.name")
6197
6198 // GenAIToolTypeKey is the attribute Key conforming to the "gen_ai.tool.type"
6199 // semantic conventions. It represents the type of the tool utilized by the
6200 // agent.
6201 //
6202 // Type: string
6203 // RequirementLevel: Recommended
6204 // Stability: Development
6205 //
6206 // Examples: "function", "extension", "datastore"
6207 // Note: Extension: A tool executed on the agent-side to directly call external
6208 // APIs, bridging the gap between the agent and real-world systems.
6209 // Agent-side operations involve actions that are performed by the agent on the
6210 // server or within the agent's controlled environment.
6211 // Function: A tool executed on the client-side, where the agent generates
6212 // parameters for a predefined function, and the client executes the logic.
6213 // Client-side operations are actions taken on the user's end or within the
6214 // client application.
6215 // Datastore: A tool used by the agent to access and query structured or
6216 // unstructured external data for retrieval-augmented tasks or knowledge
6217 // updates.
6218 GenAIToolTypeKey = attribute.Key("gen_ai.tool.type")
6219
6220 // GenAIUsageInputTokensKey is the attribute Key conforming to the
6221 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
6222 // tokens used in the GenAI input (prompt).
6223 //
6224 // Type: int
6225 // RequirementLevel: Recommended
6226 // Stability: Development
6227 //
6228 // Examples: 100
6229 GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
6230
6231 // GenAIUsageOutputTokensKey is the attribute Key conforming to the
6232 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
6233 // of tokens used in the GenAI response (completion).
6234 //
6235 // Type: int
6236 // RequirementLevel: Recommended
6237 // Stability: Development
6238 //
6239 // Examples: 180
6240 GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
6241 )
6242
6243 // GenAIAgentDescription returns an attribute KeyValue conforming to the
6244 // "gen_ai.agent.description" semantic conventions. It represents the free-form
6245 // description of the GenAI agent provided by the application.
6246 func GenAIAgentDescription(val string) attribute.KeyValue {
6247 return GenAIAgentDescriptionKey.String(val)
6248 }
6249
6250 // GenAIAgentID returns an attribute KeyValue conforming to the "gen_ai.agent.id"
6251 // semantic conventions. It represents the unique identifier of the GenAI agent.
6252 func GenAIAgentID(val string) attribute.KeyValue {
6253 return GenAIAgentIDKey.String(val)
6254 }
6255
6256 // GenAIAgentName returns an attribute KeyValue conforming to the
6257 // "gen_ai.agent.name" semantic conventions. It represents the human-readable
6258 // name of the GenAI agent provided by the application.
6259 func GenAIAgentName(val string) attribute.KeyValue {
6260 return GenAIAgentNameKey.String(val)
6261 }
6262
6263 // GenAIConversationID returns an attribute KeyValue conforming to the
6264 // "gen_ai.conversation.id" semantic conventions. It represents the unique
6265 // identifier for a conversation (session, thread), used to store and correlate
6266 // messages within this conversation.
6267 func GenAIConversationID(val string) attribute.KeyValue {
6268 return GenAIConversationIDKey.String(val)
6269 }
6270
6271 // GenAIDataSourceID returns an attribute KeyValue conforming to the
6272 // "gen_ai.data_source.id" semantic conventions. It represents the data source
6273 // identifier.
6274 func GenAIDataSourceID(val string) attribute.KeyValue {
6275 return GenAIDataSourceIDKey.String(val)
6276 }
6277
6278 // GenAIOpenAIResponseServiceTier returns an attribute KeyValue conforming to the
6279 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
6280 // service tier used for the response.
6281 func GenAIOpenAIResponseServiceTier(val string) attribute.KeyValue {
6282 return GenAIOpenAIResponseServiceTierKey.String(val)
6283 }
6284
6285 // GenAIOpenAIResponseSystemFingerprint returns an attribute KeyValue conforming
6286 // to the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
6287 // represents a fingerprint to track any eventual change in the Generative AI
6288 // environment.
6289 func GenAIOpenAIResponseSystemFingerprint(val string) attribute.KeyValue {
6290 return GenAIOpenAIResponseSystemFingerprintKey.String(val)
6291 }
6292
6293 // GenAIRequestChoiceCount returns an attribute KeyValue conforming to the
6294 // "gen_ai.request.choice.count" semantic conventions. It represents the target
6295 // number of candidate completions to return.
6296 func GenAIRequestChoiceCount(val int) attribute.KeyValue {
6297 return GenAIRequestChoiceCountKey.Int(val)
6298 }
6299
6300 // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the
6301 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
6302 // encoding formats requested in an embeddings operation, if specified.
6303 func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue {
6304 return GenAIRequestEncodingFormatsKey.StringSlice(val)
6305 }
6306
6307 // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
6308 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
6309 // frequency penalty setting for the GenAI request.
6310 func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
6311 return GenAIRequestFrequencyPenaltyKey.Float64(val)
6312 }
6313
6314 // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
6315 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
6316 // number of tokens the model generates for a request.
6317 func GenAIRequestMaxTokens(val int) attribute.KeyValue {
6318 return GenAIRequestMaxTokensKey.Int(val)
6319 }
6320
6321 // GenAIRequestModel returns an attribute KeyValue conforming to the
6322 // "gen_ai.request.model" semantic conventions. It represents the name of the
6323 // GenAI model a request is being made to.
6324 func GenAIRequestModel(val string) attribute.KeyValue {
6325 return GenAIRequestModelKey.String(val)
6326 }
6327
6328 // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
6329 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
6330 // presence penalty setting for the GenAI request.
6331 func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
6332 return GenAIRequestPresencePenaltyKey.Float64(val)
6333 }
6334
6335 // GenAIRequestSeed returns an attribute KeyValue conforming to the
6336 // "gen_ai.request.seed" semantic conventions. It represents the requests with
6337 // same seed value more likely to return same result.
6338 func GenAIRequestSeed(val int) attribute.KeyValue {
6339 return GenAIRequestSeedKey.Int(val)
6340 }
6341
6342 // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
6343 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
6344 // of sequences that the model will use to stop generating further tokens.
6345 func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
6346 return GenAIRequestStopSequencesKey.StringSlice(val)
6347 }
6348
6349 // GenAIRequestTemperature returns an attribute KeyValue conforming to the
6350 // "gen_ai.request.temperature" semantic conventions. It represents the
6351 // temperature setting for the GenAI request.
6352 func GenAIRequestTemperature(val float64) attribute.KeyValue {
6353 return GenAIRequestTemperatureKey.Float64(val)
6354 }
6355
6356 // GenAIRequestTopK returns an attribute KeyValue conforming to the
6357 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
6358 // setting for the GenAI request.
6359 func GenAIRequestTopK(val float64) attribute.KeyValue {
6360 return GenAIRequestTopKKey.Float64(val)
6361 }
6362
6363 // GenAIRequestTopP returns an attribute KeyValue conforming to the
6364 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
6365 // setting for the GenAI request.
6366 func GenAIRequestTopP(val float64) attribute.KeyValue {
6367 return GenAIRequestTopPKey.Float64(val)
6368 }
6369
6370 // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
6371 // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
6372 // of reasons the model stopped generating tokens, corresponding to each
6373 // generation received.
6374 func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
6375 return GenAIResponseFinishReasonsKey.StringSlice(val)
6376 }
6377
6378 // GenAIResponseID returns an attribute KeyValue conforming to the
6379 // "gen_ai.response.id" semantic conventions. It represents the unique identifier
6380 // for the completion.
6381 func GenAIResponseID(val string) attribute.KeyValue {
6382 return GenAIResponseIDKey.String(val)
6383 }
6384
6385 // GenAIResponseModel returns an attribute KeyValue conforming to the
6386 // "gen_ai.response.model" semantic conventions. It represents the name of the
6387 // model that generated the response.
6388 func GenAIResponseModel(val string) attribute.KeyValue {
6389 return GenAIResponseModelKey.String(val)
6390 }
6391
6392 // GenAIToolCallID returns an attribute KeyValue conforming to the
6393 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
6394 // identifier.
6395 func GenAIToolCallID(val string) attribute.KeyValue {
6396 return GenAIToolCallIDKey.String(val)
6397 }
6398
6399 // GenAIToolDescription returns an attribute KeyValue conforming to the
6400 // "gen_ai.tool.description" semantic conventions. It represents the tool
6401 // description.
6402 func GenAIToolDescription(val string) attribute.KeyValue {
6403 return GenAIToolDescriptionKey.String(val)
6404 }
6405
6406 // GenAIToolName returns an attribute KeyValue conforming to the
6407 // "gen_ai.tool.name" semantic conventions. It represents the name of the tool
6408 // utilized by the agent.
6409 func GenAIToolName(val string) attribute.KeyValue {
6410 return GenAIToolNameKey.String(val)
6411 }
6412
6413 // GenAIToolType returns an attribute KeyValue conforming to the
6414 // "gen_ai.tool.type" semantic conventions. It represents the type of the tool
6415 // utilized by the agent.
6416 func GenAIToolType(val string) attribute.KeyValue {
6417 return GenAIToolTypeKey.String(val)
6418 }
6419
6420 // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
6421 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
6422 // tokens used in the GenAI input (prompt).
6423 func GenAIUsageInputTokens(val int) attribute.KeyValue {
6424 return GenAIUsageInputTokensKey.Int(val)
6425 }
6426
6427 // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
6428 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
6429 // tokens used in the GenAI response (completion).
6430 func GenAIUsageOutputTokens(val int) attribute.KeyValue {
6431 return GenAIUsageOutputTokensKey.Int(val)
6432 }
6433
6434 // Enum values for gen_ai.openai.request.service_tier
6435 var (
6436 // The system will utilize scale tier credits until they are exhausted.
6437 // Stability: development
6438 GenAIOpenAIRequestServiceTierAuto = GenAIOpenAIRequestServiceTierKey.String("auto")
6439 // The system will utilize the default scale tier.
6440 // Stability: development
6441 GenAIOpenAIRequestServiceTierDefault = GenAIOpenAIRequestServiceTierKey.String("default")
6442 )
6443
6444 // Enum values for gen_ai.operation.name
6445 var (
6446 // Chat completion operation such as [OpenAI Chat API]
6447 // Stability: development
6448 //
6449 // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
6450 GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
6451 // Multimodal content generation operation such as [Gemini Generate Content]
6452 // Stability: development
6453 //
6454 // [Gemini Generate Content]: https://ai.google.dev/api/generate-content
6455 GenAIOperationNameGenerateContent = GenAIOperationNameKey.String("generate_content")
6456 // Text completions operation such as [OpenAI Completions API (Legacy)]
6457 // Stability: development
6458 //
6459 // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
6460 GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
6461 // Embeddings operation such as [OpenAI Create embeddings API]
6462 // Stability: development
6463 //
6464 // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create
6465 GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings")
6466 // Create GenAI agent
6467 // Stability: development
6468 GenAIOperationNameCreateAgent = GenAIOperationNameKey.String("create_agent")
6469 // Invoke GenAI agent
6470 // Stability: development
6471 GenAIOperationNameInvokeAgent = GenAIOperationNameKey.String("invoke_agent")
6472 // Execute a tool
6473 // Stability: development
6474 GenAIOperationNameExecuteTool = GenAIOperationNameKey.String("execute_tool")
6475 )
6476
6477 // Enum values for gen_ai.output.type
6478 var (
6479 // Plain text
6480 // Stability: development
6481 GenAIOutputTypeText = GenAIOutputTypeKey.String("text")
6482 // JSON object with known or unknown schema
6483 // Stability: development
6484 GenAIOutputTypeJSON = GenAIOutputTypeKey.String("json")
6485 // Image
6486 // Stability: development
6487 GenAIOutputTypeImage = GenAIOutputTypeKey.String("image")
6488 // Speech
6489 // Stability: development
6490 GenAIOutputTypeSpeech = GenAIOutputTypeKey.String("speech")
6491 )
6492
6493 // Enum values for gen_ai.system
6494 var (
6495 // OpenAI
6496 // Stability: development
6497 GenAISystemOpenAI = GenAISystemKey.String("openai")
6498 // Any Google generative AI endpoint
6499 // Stability: development
6500 GenAISystemGCPGenAI = GenAISystemKey.String("gcp.gen_ai")
6501 // Vertex AI
6502 // Stability: development
6503 GenAISystemGCPVertexAI = GenAISystemKey.String("gcp.vertex_ai")
6504 // Gemini
6505 // Stability: development
6506 GenAISystemGCPGemini = GenAISystemKey.String("gcp.gemini")
6507 // Anthropic
6508 // Stability: development
6509 GenAISystemAnthropic = GenAISystemKey.String("anthropic")
6510 // Cohere
6511 // Stability: development
6512 GenAISystemCohere = GenAISystemKey.String("cohere")
6513 // Azure AI Inference
6514 // Stability: development
6515 GenAISystemAzureAIInference = GenAISystemKey.String("azure.ai.inference")
6516 // Azure OpenAI
6517 // Stability: development
6518 GenAISystemAzureAIOpenAI = GenAISystemKey.String("azure.ai.openai")
6519 // IBM Watsonx AI
6520 // Stability: development
6521 GenAISystemIBMWatsonxAI = GenAISystemKey.String("ibm.watsonx.ai")
6522 // AWS Bedrock
6523 // Stability: development
6524 GenAISystemAWSBedrock = GenAISystemKey.String("aws.bedrock")
6525 // Perplexity
6526 // Stability: development
6527 GenAISystemPerplexity = GenAISystemKey.String("perplexity")
6528 // xAI
6529 // Stability: development
6530 GenAISystemXai = GenAISystemKey.String("xai")
6531 // DeepSeek
6532 // Stability: development
6533 GenAISystemDeepseek = GenAISystemKey.String("deepseek")
6534 // Groq
6535 // Stability: development
6536 GenAISystemGroq = GenAISystemKey.String("groq")
6537 // Mistral AI
6538 // Stability: development
6539 GenAISystemMistralAI = GenAISystemKey.String("mistral_ai")
6540 )
6541
6542 // Enum values for gen_ai.token.type
6543 var (
6544 // Input tokens (prompt, input, etc.)
6545 // Stability: development
6546 GenAITokenTypeInput = GenAITokenTypeKey.String("input")
6547 // Output tokens (completion, response, etc.)
6548 // Stability: development
6549 GenAITokenTypeOutput = GenAITokenTypeKey.String("output")
6550 )
6551
6552 // Namespace: geo
6553 const (
6554 // GeoContinentCodeKey is the attribute Key conforming to the
6555 // "geo.continent.code" semantic conventions. It represents the two-letter code
6556 // representing continent’s name.
6557 //
6558 // Type: Enum
6559 // RequirementLevel: Recommended
6560 // Stability: Development
6561 //
6562 // Examples:
6563 GeoContinentCodeKey = attribute.Key("geo.continent.code")
6564
6565 // GeoCountryISOCodeKey is the attribute Key conforming to the
6566 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
6567 // Country Code ([ISO 3166-1 alpha2]).
6568 //
6569 // Type: string
6570 // RequirementLevel: Recommended
6571 // Stability: Development
6572 //
6573 // Examples: "CA"
6574 //
6575 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
6576 GeoCountryISOCodeKey = attribute.Key("geo.country.iso_code")
6577
6578 // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name"
6579 // semantic conventions. It represents the locality name. Represents the name of
6580 // a city, town, village, or similar populated place.
6581 //
6582 // Type: string
6583 // RequirementLevel: Recommended
6584 // Stability: Development
6585 //
6586 // Examples: "Montreal", "Berlin"
6587 GeoLocalityNameKey = attribute.Key("geo.locality.name")
6588
6589 // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat"
6590 // semantic conventions. It represents the latitude of the geo location in
6591 // [WGS84].
6592 //
6593 // Type: double
6594 // RequirementLevel: Recommended
6595 // Stability: Development
6596 //
6597 // Examples: 45.505918
6598 //
6599 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6600 GeoLocationLatKey = attribute.Key("geo.location.lat")
6601
6602 // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon"
6603 // semantic conventions. It represents the longitude of the geo location in
6604 // [WGS84].
6605 //
6606 // Type: double
6607 // RequirementLevel: Recommended
6608 // Stability: Development
6609 //
6610 // Examples: -73.61483
6611 //
6612 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6613 GeoLocationLonKey = attribute.Key("geo.location.lon")
6614
6615 // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code"
6616 // semantic conventions. It represents the postal code associated with the
6617 // location. Values appropriate for this field may also be known as a postcode
6618 // or ZIP code and will vary widely from country to country.
6619 //
6620 // Type: string
6621 // RequirementLevel: Recommended
6622 // Stability: Development
6623 //
6624 // Examples: "94040"
6625 GeoPostalCodeKey = attribute.Key("geo.postal_code")
6626
6627 // GeoRegionISOCodeKey is the attribute Key conforming to the
6628 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
6629 // ([ISO 3166-2]).
6630 //
6631 // Type: string
6632 // RequirementLevel: Recommended
6633 // Stability: Development
6634 //
6635 // Examples: "CA-QC"
6636 //
6637 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
6638 GeoRegionISOCodeKey = attribute.Key("geo.region.iso_code")
6639 )
6640
6641 // GeoCountryISOCode returns an attribute KeyValue conforming to the
6642 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
6643 // Country Code ([ISO 3166-1 alpha2]).
6644 //
6645 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
6646 func GeoCountryISOCode(val string) attribute.KeyValue {
6647 return GeoCountryISOCodeKey.String(val)
6648 }
6649
6650 // GeoLocalityName returns an attribute KeyValue conforming to the
6651 // "geo.locality.name" semantic conventions. It represents the locality name.
6652 // Represents the name of a city, town, village, or similar populated place.
6653 func GeoLocalityName(val string) attribute.KeyValue {
6654 return GeoLocalityNameKey.String(val)
6655 }
6656
6657 // GeoLocationLat returns an attribute KeyValue conforming to the
6658 // "geo.location.lat" semantic conventions. It represents the latitude of the geo
6659 // location in [WGS84].
6660 //
6661 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6662 func GeoLocationLat(val float64) attribute.KeyValue {
6663 return GeoLocationLatKey.Float64(val)
6664 }
6665
6666 // GeoLocationLon returns an attribute KeyValue conforming to the
6667 // "geo.location.lon" semantic conventions. It represents the longitude of the
6668 // geo location in [WGS84].
6669 //
6670 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6671 func GeoLocationLon(val float64) attribute.KeyValue {
6672 return GeoLocationLonKey.Float64(val)
6673 }
6674
6675 // GeoPostalCode returns an attribute KeyValue conforming to the
6676 // "geo.postal_code" semantic conventions. It represents the postal code
6677 // associated with the location. Values appropriate for this field may also be
6678 // known as a postcode or ZIP code and will vary widely from country to country.
6679 func GeoPostalCode(val string) attribute.KeyValue {
6680 return GeoPostalCodeKey.String(val)
6681 }
6682
6683 // GeoRegionISOCode returns an attribute KeyValue conforming to the
6684 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
6685 // ([ISO 3166-2]).
6686 //
6687 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
6688 func GeoRegionISOCode(val string) attribute.KeyValue {
6689 return GeoRegionISOCodeKey.String(val)
6690 }
6691
6692 // Enum values for geo.continent.code
6693 var (
6694 // Africa
6695 // Stability: development
6696 GeoContinentCodeAf = GeoContinentCodeKey.String("AF")
6697 // Antarctica
6698 // Stability: development
6699 GeoContinentCodeAn = GeoContinentCodeKey.String("AN")
6700 // Asia
6701 // Stability: development
6702 GeoContinentCodeAs = GeoContinentCodeKey.String("AS")
6703 // Europe
6704 // Stability: development
6705 GeoContinentCodeEu = GeoContinentCodeKey.String("EU")
6706 // North America
6707 // Stability: development
6708 GeoContinentCodeNa = GeoContinentCodeKey.String("NA")
6709 // Oceania
6710 // Stability: development
6711 GeoContinentCodeOc = GeoContinentCodeKey.String("OC")
6712 // South America
6713 // Stability: development
6714 GeoContinentCodeSa = GeoContinentCodeKey.String("SA")
6715 )
6716
6717 // Namespace: go
6718 const (
6719 // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
6720 // semantic conventions. It represents the type of memory.
6721 //
6722 // Type: Enum
6723 // RequirementLevel: Recommended
6724 // Stability: Development
6725 //
6726 // Examples: "other", "stack"
6727 GoMemoryTypeKey = attribute.Key("go.memory.type")
6728 )
6729
6730 // Enum values for go.memory.type
6731 var (
6732 // Memory allocated from the heap that is reserved for stack space, whether or
6733 // not it is currently in-use.
6734 // Stability: development
6735 GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
6736 // Memory used by the Go runtime, excluding other categories of memory usage
6737 // described in this enumeration.
6738 // Stability: development
6739 GoMemoryTypeOther = GoMemoryTypeKey.String("other")
6740 )
6741
6742 // Namespace: graphql
6743 const (
6744 // GraphQLDocumentKey is the attribute Key conforming to the "graphql.document"
6745 // semantic conventions. It represents the GraphQL document being executed.
6746 //
6747 // Type: string
6748 // RequirementLevel: Recommended
6749 // Stability: Development
6750 //
6751 // Examples: query findBookById { bookById(id: ?) { name } }
6752 // Note: The value may be sanitized to exclude sensitive information.
6753 GraphQLDocumentKey = attribute.Key("graphql.document")
6754
6755 // GraphQLOperationNameKey is the attribute Key conforming to the
6756 // "graphql.operation.name" semantic conventions. It represents the name of the
6757 // operation being executed.
6758 //
6759 // Type: string
6760 // RequirementLevel: Recommended
6761 // Stability: Development
6762 //
6763 // Examples: findBookById
6764 GraphQLOperationNameKey = attribute.Key("graphql.operation.name")
6765
6766 // GraphQLOperationTypeKey is the attribute Key conforming to the
6767 // "graphql.operation.type" semantic conventions. It represents the type of the
6768 // operation being executed.
6769 //
6770 // Type: Enum
6771 // RequirementLevel: Recommended
6772 // Stability: Development
6773 //
6774 // Examples: "query", "mutation", "subscription"
6775 GraphQLOperationTypeKey = attribute.Key("graphql.operation.type")
6776 )
6777
6778 // GraphQLDocument returns an attribute KeyValue conforming to the
6779 // "graphql.document" semantic conventions. It represents the GraphQL document
6780 // being executed.
6781 func GraphQLDocument(val string) attribute.KeyValue {
6782 return GraphQLDocumentKey.String(val)
6783 }
6784
6785 // GraphQLOperationName returns an attribute KeyValue conforming to the
6786 // "graphql.operation.name" semantic conventions. It represents the name of the
6787 // operation being executed.
6788 func GraphQLOperationName(val string) attribute.KeyValue {
6789 return GraphQLOperationNameKey.String(val)
6790 }
6791
6792 // Enum values for graphql.operation.type
6793 var (
6794 // GraphQL query
6795 // Stability: development
6796 GraphQLOperationTypeQuery = GraphQLOperationTypeKey.String("query")
6797 // GraphQL mutation
6798 // Stability: development
6799 GraphQLOperationTypeMutation = GraphQLOperationTypeKey.String("mutation")
6800 // GraphQL subscription
6801 // Stability: development
6802 GraphQLOperationTypeSubscription = GraphQLOperationTypeKey.String("subscription")
6803 )
6804
6805 // Namespace: heroku
6806 const (
6807 // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
6808 // semantic conventions. It represents the unique identifier for the
6809 // application.
6810 //
6811 // Type: string
6812 // RequirementLevel: Recommended
6813 // Stability: Development
6814 //
6815 // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
6816 HerokuAppIDKey = attribute.Key("heroku.app.id")
6817
6818 // HerokuReleaseCommitKey is the attribute Key conforming to the
6819 // "heroku.release.commit" semantic conventions. It represents the commit hash
6820 // for the current release.
6821 //
6822 // Type: string
6823 // RequirementLevel: Recommended
6824 // Stability: Development
6825 //
6826 // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
6827 HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
6828
6829 // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
6830 // "heroku.release.creation_timestamp" semantic conventions. It represents the
6831 // time and date the release was created.
6832 //
6833 // Type: string
6834 // RequirementLevel: Recommended
6835 // Stability: Development
6836 //
6837 // Examples: "2022-10-23T18:00:42Z"
6838 HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
6839 )
6840
6841 // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
6842 // semantic conventions. It represents the unique identifier for the application.
6843 func HerokuAppID(val string) attribute.KeyValue {
6844 return HerokuAppIDKey.String(val)
6845 }
6846
6847 // HerokuReleaseCommit returns an attribute KeyValue conforming to the
6848 // "heroku.release.commit" semantic conventions. It represents the commit hash
6849 // for the current release.
6850 func HerokuReleaseCommit(val string) attribute.KeyValue {
6851 return HerokuReleaseCommitKey.String(val)
6852 }
6853
6854 // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
6855 // "heroku.release.creation_timestamp" semantic conventions. It represents the
6856 // time and date the release was created.
6857 func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
6858 return HerokuReleaseCreationTimestampKey.String(val)
6859 }
6860
6861 // Namespace: host
6862 const (
6863 // HostArchKey is the attribute Key conforming to the "host.arch" semantic
6864 // conventions. It represents the CPU architecture the host system is running
6865 // on.
6866 //
6867 // Type: Enum
6868 // RequirementLevel: Recommended
6869 // Stability: Development
6870 //
6871 // Examples:
6872 HostArchKey = attribute.Key("host.arch")
6873
6874 // HostCPUCacheL2SizeKey is the attribute Key conforming to the
6875 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
6876 // level 2 memory cache available to the processor (in Bytes).
6877 //
6878 // Type: int
6879 // RequirementLevel: Recommended
6880 // Stability: Development
6881 //
6882 // Examples: 12288000
6883 HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
6884
6885 // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
6886 // semantic conventions. It represents the family or generation of the CPU.
6887 //
6888 // Type: string
6889 // RequirementLevel: Recommended
6890 // Stability: Development
6891 //
6892 // Examples: "6", "PA-RISC 1.1e"
6893 HostCPUFamilyKey = attribute.Key("host.cpu.family")
6894
6895 // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
6896 // semantic conventions. It represents the model identifier. It provides more
6897 // granular information about the CPU, distinguishing it from other CPUs within
6898 // the same family.
6899 //
6900 // Type: string
6901 // RequirementLevel: Recommended
6902 // Stability: Development
6903 //
6904 // Examples: "6", "9000/778/B180L"
6905 HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
6906
6907 // HostCPUModelNameKey is the attribute Key conforming to the
6908 // "host.cpu.model.name" semantic conventions. It represents the model
6909 // designation of the processor.
6910 //
6911 // Type: string
6912 // RequirementLevel: Recommended
6913 // Stability: Development
6914 //
6915 // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
6916 HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
6917
6918 // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
6919 // semantic conventions. It represents the stepping or core revisions.
6920 //
6921 // Type: string
6922 // RequirementLevel: Recommended
6923 // Stability: Development
6924 //
6925 // Examples: "1", "r1p1"
6926 HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
6927
6928 // HostCPUVendorIDKey is the attribute Key conforming to the
6929 // "host.cpu.vendor.id" semantic conventions. It represents the processor
6930 // manufacturer identifier. A maximum 12-character string.
6931 //
6932 // Type: string
6933 // RequirementLevel: Recommended
6934 // Stability: Development
6935 //
6936 // Examples: "GenuineIntel"
6937 // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
6938 // registers. Writing these to memory in this order results in a 12-character
6939 // string.
6940 //
6941 // [CPUID]: https://wiki.osdev.org/CPUID
6942 HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
6943
6944 // HostIDKey is the attribute Key conforming to the "host.id" semantic
6945 // conventions. It represents the unique host ID. For Cloud, this must be the
6946 // instance_id assigned by the cloud provider. For non-containerized systems,
6947 // this should be the `machine-id`. See the table below for the sources to use
6948 // to determine the `machine-id` based on operating system.
6949 //
6950 // Type: string
6951 // RequirementLevel: Recommended
6952 // Stability: Development
6953 //
6954 // Examples: "fdbf79e8af94cb7f9e8df36789187052"
6955 HostIDKey = attribute.Key("host.id")
6956
6957 // HostImageIDKey is the attribute Key conforming to the "host.image.id"
6958 // semantic conventions. It represents the VM image ID or host OS image ID. For
6959 // Cloud, this value is from the provider.
6960 //
6961 // Type: string
6962 // RequirementLevel: Recommended
6963 // Stability: Development
6964 //
6965 // Examples: "ami-07b06b442921831e5"
6966 HostImageIDKey = attribute.Key("host.image.id")
6967
6968 // HostImageNameKey is the attribute Key conforming to the "host.image.name"
6969 // semantic conventions. It represents the name of the VM image or OS install
6970 // the host was instantiated from.
6971 //
6972 // Type: string
6973 // RequirementLevel: Recommended
6974 // Stability: Development
6975 //
6976 // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
6977 HostImageNameKey = attribute.Key("host.image.name")
6978
6979 // HostImageVersionKey is the attribute Key conforming to the
6980 // "host.image.version" semantic conventions. It represents the version string
6981 // of the VM image or host OS as defined in [Version Attributes].
6982 //
6983 // Type: string
6984 // RequirementLevel: Recommended
6985 // Stability: Development
6986 //
6987 // Examples: "0.1"
6988 //
6989 // [Version Attributes]: /docs/resource/README.md#version-attributes
6990 HostImageVersionKey = attribute.Key("host.image.version")
6991
6992 // HostIPKey is the attribute Key conforming to the "host.ip" semantic
6993 // conventions. It represents the available IP addresses of the host, excluding
6994 // loopback interfaces.
6995 //
6996 // Type: string[]
6997 // RequirementLevel: Recommended
6998 // Stability: Development
6999 //
7000 // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
7001 // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
7002 // addresses MUST be specified in the [RFC 5952] format.
7003 //
7004 // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
7005 HostIPKey = attribute.Key("host.ip")
7006
7007 // HostMacKey is the attribute Key conforming to the "host.mac" semantic
7008 // conventions. It represents the available MAC addresses of the host, excluding
7009 // loopback interfaces.
7010 //
7011 // Type: string[]
7012 // RequirementLevel: Recommended
7013 // Stability: Development
7014 //
7015 // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
7016 // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
7017 // hyphen-separated octets in uppercase hexadecimal form from most to least
7018 // significant.
7019 //
7020 // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
7021 HostMacKey = attribute.Key("host.mac")
7022
7023 // HostNameKey is the attribute Key conforming to the "host.name" semantic
7024 // conventions. It represents the name of the host. On Unix systems, it may
7025 // contain what the hostname command returns, or the fully qualified hostname,
7026 // or another name specified by the user.
7027 //
7028 // Type: string
7029 // RequirementLevel: Recommended
7030 // Stability: Development
7031 //
7032 // Examples: "opentelemetry-test"
7033 HostNameKey = attribute.Key("host.name")
7034
7035 // HostTypeKey is the attribute Key conforming to the "host.type" semantic
7036 // conventions. It represents the type of host. For Cloud, this must be the
7037 // machine type.
7038 //
7039 // Type: string
7040 // RequirementLevel: Recommended
7041 // Stability: Development
7042 //
7043 // Examples: "n1-standard-1"
7044 HostTypeKey = attribute.Key("host.type")
7045 )
7046
7047 // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
7048 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
7049 // level 2 memory cache available to the processor (in Bytes).
7050 func HostCPUCacheL2Size(val int) attribute.KeyValue {
7051 return HostCPUCacheL2SizeKey.Int(val)
7052 }
7053
7054 // HostCPUFamily returns an attribute KeyValue conforming to the
7055 // "host.cpu.family" semantic conventions. It represents the family or generation
7056 // of the CPU.
7057 func HostCPUFamily(val string) attribute.KeyValue {
7058 return HostCPUFamilyKey.String(val)
7059 }
7060
7061 // HostCPUModelID returns an attribute KeyValue conforming to the
7062 // "host.cpu.model.id" semantic conventions. It represents the model identifier.
7063 // It provides more granular information about the CPU, distinguishing it from
7064 // other CPUs within the same family.
7065 func HostCPUModelID(val string) attribute.KeyValue {
7066 return HostCPUModelIDKey.String(val)
7067 }
7068
7069 // HostCPUModelName returns an attribute KeyValue conforming to the
7070 // "host.cpu.model.name" semantic conventions. It represents the model
7071 // designation of the processor.
7072 func HostCPUModelName(val string) attribute.KeyValue {
7073 return HostCPUModelNameKey.String(val)
7074 }
7075
7076 // HostCPUStepping returns an attribute KeyValue conforming to the
7077 // "host.cpu.stepping" semantic conventions. It represents the stepping or core
7078 // revisions.
7079 func HostCPUStepping(val string) attribute.KeyValue {
7080 return HostCPUSteppingKey.String(val)
7081 }
7082
7083 // HostCPUVendorID returns an attribute KeyValue conforming to the
7084 // "host.cpu.vendor.id" semantic conventions. It represents the processor
7085 // manufacturer identifier. A maximum 12-character string.
7086 func HostCPUVendorID(val string) attribute.KeyValue {
7087 return HostCPUVendorIDKey.String(val)
7088 }
7089
7090 // HostID returns an attribute KeyValue conforming to the "host.id" semantic
7091 // conventions. It represents the unique host ID. For Cloud, this must be the
7092 // instance_id assigned by the cloud provider. For non-containerized systems,
7093 // this should be the `machine-id`. See the table below for the sources to use to
7094 // determine the `machine-id` based on operating system.
7095 func HostID(val string) attribute.KeyValue {
7096 return HostIDKey.String(val)
7097 }
7098
7099 // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
7100 // semantic conventions. It represents the VM image ID or host OS image ID. For
7101 // Cloud, this value is from the provider.
7102 func HostImageID(val string) attribute.KeyValue {
7103 return HostImageIDKey.String(val)
7104 }
7105
7106 // HostImageName returns an attribute KeyValue conforming to the
7107 // "host.image.name" semantic conventions. It represents the name of the VM image
7108 // or OS install the host was instantiated from.
7109 func HostImageName(val string) attribute.KeyValue {
7110 return HostImageNameKey.String(val)
7111 }
7112
7113 // HostImageVersion returns an attribute KeyValue conforming to the
7114 // "host.image.version" semantic conventions. It represents the version string of
7115 // the VM image or host OS as defined in [Version Attributes].
7116 //
7117 // [Version Attributes]: /docs/resource/README.md#version-attributes
7118 func HostImageVersion(val string) attribute.KeyValue {
7119 return HostImageVersionKey.String(val)
7120 }
7121
7122 // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
7123 // conventions. It represents the available IP addresses of the host, excluding
7124 // loopback interfaces.
7125 func HostIP(val ...string) attribute.KeyValue {
7126 return HostIPKey.StringSlice(val)
7127 }
7128
7129 // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
7130 // conventions. It represents the available MAC addresses of the host, excluding
7131 // loopback interfaces.
7132 func HostMac(val ...string) attribute.KeyValue {
7133 return HostMacKey.StringSlice(val)
7134 }
7135
7136 // HostName returns an attribute KeyValue conforming to the "host.name" semantic
7137 // conventions. It represents the name of the host. On Unix systems, it may
7138 // contain what the hostname command returns, or the fully qualified hostname, or
7139 // another name specified by the user.
7140 func HostName(val string) attribute.KeyValue {
7141 return HostNameKey.String(val)
7142 }
7143
7144 // HostType returns an attribute KeyValue conforming to the "host.type" semantic
7145 // conventions. It represents the type of host. For Cloud, this must be the
7146 // machine type.
7147 func HostType(val string) attribute.KeyValue {
7148 return HostTypeKey.String(val)
7149 }
7150
7151 // Enum values for host.arch
7152 var (
7153 // AMD64
7154 // Stability: development
7155 HostArchAMD64 = HostArchKey.String("amd64")
7156 // ARM32
7157 // Stability: development
7158 HostArchARM32 = HostArchKey.String("arm32")
7159 // ARM64
7160 // Stability: development
7161 HostArchARM64 = HostArchKey.String("arm64")
7162 // Itanium
7163 // Stability: development
7164 HostArchIA64 = HostArchKey.String("ia64")
7165 // 32-bit PowerPC
7166 // Stability: development
7167 HostArchPPC32 = HostArchKey.String("ppc32")
7168 // 64-bit PowerPC
7169 // Stability: development
7170 HostArchPPC64 = HostArchKey.String("ppc64")
7171 // IBM z/Architecture
7172 // Stability: development
7173 HostArchS390x = HostArchKey.String("s390x")
7174 // 32-bit x86
7175 // Stability: development
7176 HostArchX86 = HostArchKey.String("x86")
7177 )
7178
7179 // Namespace: http
7180 const (
7181 // HTTPConnectionStateKey is the attribute Key conforming to the
7182 // "http.connection.state" semantic conventions. It represents the state of the
7183 // HTTP connection in the HTTP connection pool.
7184 //
7185 // Type: Enum
7186 // RequirementLevel: Recommended
7187 // Stability: Development
7188 //
7189 // Examples: "active", "idle"
7190 HTTPConnectionStateKey = attribute.Key("http.connection.state")
7191
7192 // HTTPRequestBodySizeKey is the attribute Key conforming to the
7193 // "http.request.body.size" semantic conventions. It represents the size of the
7194 // request payload body in bytes. This is the number of bytes transferred
7195 // excluding headers and is often, but not always, present as the
7196 // [Content-Length] header. For requests using transport encoding, this should
7197 // be the compressed size.
7198 //
7199 // Type: int
7200 // RequirementLevel: Recommended
7201 // Stability: Development
7202 //
7203 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7204 HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
7205
7206 // HTTPRequestMethodKey is the attribute Key conforming to the
7207 // "http.request.method" semantic conventions. It represents the HTTP request
7208 // method.
7209 //
7210 // Type: Enum
7211 // RequirementLevel: Recommended
7212 // Stability: Stable
7213 //
7214 // Examples: "GET", "POST", "HEAD"
7215 // Note: HTTP request method value SHOULD be "known" to the instrumentation.
7216 // By default, this convention defines "known" methods as the ones listed in
7217 // [RFC9110]
7218 // and the PATCH method defined in [RFC5789].
7219 //
7220 // If the HTTP request method is not known to instrumentation, it MUST set the
7221 // `http.request.method` attribute to `_OTHER`.
7222 //
7223 // If the HTTP instrumentation could end up converting valid HTTP request
7224 // methods to `_OTHER`, then it MUST provide a way to override
7225 // the list of known HTTP methods. If this override is done via environment
7226 // variable, then the environment variable MUST be named
7227 // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
7228 // case-sensitive known HTTP methods
7229 // (this list MUST be a full override of the default known method, it is not a
7230 // list of known methods in addition to the defaults).
7231 //
7232 // HTTP method names are case-sensitive and `http.request.method` attribute
7233 // value MUST match a known HTTP method name exactly.
7234 // Instrumentations for specific web frameworks that consider HTTP methods to be
7235 // case insensitive, SHOULD populate a canonical equivalent.
7236 // Tracing instrumentations that do so, MUST also set
7237 // `http.request.method_original` to the original value.
7238 //
7239 // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
7240 // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
7241 HTTPRequestMethodKey = attribute.Key("http.request.method")
7242
7243 // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
7244 // "http.request.method_original" semantic conventions. It represents the
7245 // original HTTP method sent by the client in the request line.
7246 //
7247 // Type: string
7248 // RequirementLevel: Recommended
7249 // Stability: Stable
7250 //
7251 // Examples: "GeT", "ACL", "foo"
7252 HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
7253
7254 // HTTPRequestResendCountKey is the attribute Key conforming to the
7255 // "http.request.resend_count" semantic conventions. It represents the ordinal
7256 // number of request resending attempt (for any reason, including redirects).
7257 //
7258 // Type: int
7259 // RequirementLevel: Recommended
7260 // Stability: Stable
7261 //
7262 // Note: The resend count SHOULD be updated each time an HTTP request gets
7263 // resent by the client, regardless of what was the cause of the resending (e.g.
7264 // redirection, authorization failure, 503 Server Unavailable, network issues,
7265 // or any other).
7266 HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
7267
7268 // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
7269 // semantic conventions. It represents the total size of the request in bytes.
7270 // This should be the total number of bytes sent over the wire, including the
7271 // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
7272 // body if any.
7273 //
7274 // Type: int
7275 // RequirementLevel: Recommended
7276 // Stability: Development
7277 HTTPRequestSizeKey = attribute.Key("http.request.size")
7278
7279 // HTTPResponseBodySizeKey is the attribute Key conforming to the
7280 // "http.response.body.size" semantic conventions. It represents the size of the
7281 // response payload body in bytes. This is the number of bytes transferred
7282 // excluding headers and is often, but not always, present as the
7283 // [Content-Length] header. For requests using transport encoding, this should
7284 // be the compressed size.
7285 //
7286 // Type: int
7287 // RequirementLevel: Recommended
7288 // Stability: Development
7289 //
7290 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7291 HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
7292
7293 // HTTPResponseSizeKey is the attribute Key conforming to the
7294 // "http.response.size" semantic conventions. It represents the total size of
7295 // the response in bytes. This should be the total number of bytes sent over the
7296 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
7297 // headers, and response body and trailers if any.
7298 //
7299 // Type: int
7300 // RequirementLevel: Recommended
7301 // Stability: Development
7302 HTTPResponseSizeKey = attribute.Key("http.response.size")
7303
7304 // HTTPResponseStatusCodeKey is the attribute Key conforming to the
7305 // "http.response.status_code" semantic conventions. It represents the
7306 // [HTTP response status code].
7307 //
7308 // Type: int
7309 // RequirementLevel: Recommended
7310 // Stability: Stable
7311 //
7312 // Examples: 200
7313 //
7314 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
7315 HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
7316
7317 // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
7318 // conventions. It represents the matched route, that is, the path template in
7319 // the format used by the respective server framework.
7320 //
7321 // Type: string
7322 // RequirementLevel: Recommended
7323 // Stability: Stable
7324 //
7325 // Examples: "/users/:userID?", "{controller}/{action}/{id?}"
7326 // Note: MUST NOT be populated when this is not supported by the HTTP server
7327 // framework as the route attribute should have low-cardinality and the URI path
7328 // can NOT substitute it.
7329 // SHOULD include the [application root] if there is one.
7330 //
7331 // [application root]: /docs/http/http-spans.md#http-server-definitions
7332 HTTPRouteKey = attribute.Key("http.route")
7333 )
7334
7335 // HTTPRequestBodySize returns an attribute KeyValue conforming to the
7336 // "http.request.body.size" semantic conventions. It represents the size of the
7337 // request payload body in bytes. This is the number of bytes transferred
7338 // excluding headers and is often, but not always, present as the
7339 // [Content-Length] header. For requests using transport encoding, this should be
7340 // the compressed size.
7341 //
7342 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7343 func HTTPRequestBodySize(val int) attribute.KeyValue {
7344 return HTTPRequestBodySizeKey.Int(val)
7345 }
7346
7347 // HTTPRequestHeader returns an attribute KeyValue conforming to the
7348 // "http.request.header" semantic conventions. It represents the HTTP request
7349 // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
7350 // being the header values.
7351 func HTTPRequestHeader(key string, val ...string) attribute.KeyValue {
7352 return attribute.StringSlice("http.request.header."+key, val)
7353 }
7354
7355 // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
7356 // "http.request.method_original" semantic conventions. It represents the
7357 // original HTTP method sent by the client in the request line.
7358 func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
7359 return HTTPRequestMethodOriginalKey.String(val)
7360 }
7361
7362 // HTTPRequestResendCount returns an attribute KeyValue conforming to the
7363 // "http.request.resend_count" semantic conventions. It represents the ordinal
7364 // number of request resending attempt (for any reason, including redirects).
7365 func HTTPRequestResendCount(val int) attribute.KeyValue {
7366 return HTTPRequestResendCountKey.Int(val)
7367 }
7368
7369 // HTTPRequestSize returns an attribute KeyValue conforming to the
7370 // "http.request.size" semantic conventions. It represents the total size of the
7371 // request in bytes. This should be the total number of bytes sent over the wire,
7372 // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
7373 // and request body if any.
7374 func HTTPRequestSize(val int) attribute.KeyValue {
7375 return HTTPRequestSizeKey.Int(val)
7376 }
7377
7378 // HTTPResponseBodySize returns an attribute KeyValue conforming to the
7379 // "http.response.body.size" semantic conventions. It represents the size of the
7380 // response payload body in bytes. This is the number of bytes transferred
7381 // excluding headers and is often, but not always, present as the
7382 // [Content-Length] header. For requests using transport encoding, this should be
7383 // the compressed size.
7384 //
7385 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7386 func HTTPResponseBodySize(val int) attribute.KeyValue {
7387 return HTTPResponseBodySizeKey.Int(val)
7388 }
7389
7390 // HTTPResponseHeader returns an attribute KeyValue conforming to the
7391 // "http.response.header" semantic conventions. It represents the HTTP response
7392 // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
7393 // being the header values.
7394 func HTTPResponseHeader(key string, val ...string) attribute.KeyValue {
7395 return attribute.StringSlice("http.response.header."+key, val)
7396 }
7397
7398 // HTTPResponseSize returns an attribute KeyValue conforming to the
7399 // "http.response.size" semantic conventions. It represents the total size of the
7400 // response in bytes. This should be the total number of bytes sent over the
7401 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
7402 // headers, and response body and trailers if any.
7403 func HTTPResponseSize(val int) attribute.KeyValue {
7404 return HTTPResponseSizeKey.Int(val)
7405 }
7406
7407 // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
7408 // "http.response.status_code" semantic conventions. It represents the
7409 // [HTTP response status code].
7410 //
7411 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
7412 func HTTPResponseStatusCode(val int) attribute.KeyValue {
7413 return HTTPResponseStatusCodeKey.Int(val)
7414 }
7415
7416 // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
7417 // semantic conventions. It represents the matched route, that is, the path
7418 // template in the format used by the respective server framework.
7419 func HTTPRoute(val string) attribute.KeyValue {
7420 return HTTPRouteKey.String(val)
7421 }
7422
7423 // Enum values for http.connection.state
7424 var (
7425 // active state.
7426 // Stability: development
7427 HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
7428 // idle state.
7429 // Stability: development
7430 HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
7431 )
7432
7433 // Enum values for http.request.method
7434 var (
7435 // CONNECT method.
7436 // Stability: stable
7437 HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
7438 // DELETE method.
7439 // Stability: stable
7440 HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
7441 // GET method.
7442 // Stability: stable
7443 HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
7444 // HEAD method.
7445 // Stability: stable
7446 HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
7447 // OPTIONS method.
7448 // Stability: stable
7449 HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
7450 // PATCH method.
7451 // Stability: stable
7452 HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
7453 // POST method.
7454 // Stability: stable
7455 HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
7456 // PUT method.
7457 // Stability: stable
7458 HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
7459 // TRACE method.
7460 // Stability: stable
7461 HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
7462 // Any HTTP method that the instrumentation has no prior knowledge of.
7463 // Stability: stable
7464 HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
7465 )
7466
7467 // Namespace: hw
7468 const (
7469 // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
7470 // It represents an identifier for the hardware component, unique within the
7471 // monitored host.
7472 //
7473 // Type: string
7474 // RequirementLevel: Recommended
7475 // Stability: Development
7476 //
7477 // Examples: "win32battery_battery_testsysa33_1"
7478 HwIDKey = attribute.Key("hw.id")
7479
7480 // HwNameKey is the attribute Key conforming to the "hw.name" semantic
7481 // conventions. It represents an easily-recognizable name for the hardware
7482 // component.
7483 //
7484 // Type: string
7485 // RequirementLevel: Recommended
7486 // Stability: Development
7487 //
7488 // Examples: "eth0"
7489 HwNameKey = attribute.Key("hw.name")
7490
7491 // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
7492 // conventions. It represents the unique identifier of the parent component
7493 // (typically the `hw.id` attribute of the enclosure, or disk controller).
7494 //
7495 // Type: string
7496 // RequirementLevel: Recommended
7497 // Stability: Development
7498 //
7499 // Examples: "dellStorage_perc_0"
7500 HwParentKey = attribute.Key("hw.parent")
7501
7502 // HwStateKey is the attribute Key conforming to the "hw.state" semantic
7503 // conventions. It represents the current state of the component.
7504 //
7505 // Type: Enum
7506 // RequirementLevel: Recommended
7507 // Stability: Development
7508 //
7509 // Examples:
7510 HwStateKey = attribute.Key("hw.state")
7511
7512 // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
7513 // conventions. It represents the type of the component.
7514 //
7515 // Type: Enum
7516 // RequirementLevel: Recommended
7517 // Stability: Development
7518 //
7519 // Examples:
7520 // Note: Describes the category of the hardware component for which `hw.state`
7521 // is being reported. For example, `hw.type=temperature` along with
7522 // `hw.state=degraded` would indicate that the temperature of the hardware
7523 // component has been reported as `degraded`.
7524 HwTypeKey = attribute.Key("hw.type")
7525 )
7526
7527 // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
7528 // conventions. It represents an identifier for the hardware component, unique
7529 // within the monitored host.
7530 func HwID(val string) attribute.KeyValue {
7531 return HwIDKey.String(val)
7532 }
7533
7534 // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
7535 // conventions. It represents an easily-recognizable name for the hardware
7536 // component.
7537 func HwName(val string) attribute.KeyValue {
7538 return HwNameKey.String(val)
7539 }
7540
7541 // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
7542 // conventions. It represents the unique identifier of the parent component
7543 // (typically the `hw.id` attribute of the enclosure, or disk controller).
7544 func HwParent(val string) attribute.KeyValue {
7545 return HwParentKey.String(val)
7546 }
7547
7548 // Enum values for hw.state
7549 var (
7550 // Ok
7551 // Stability: development
7552 HwStateOk = HwStateKey.String("ok")
7553 // Degraded
7554 // Stability: development
7555 HwStateDegraded = HwStateKey.String("degraded")
7556 // Failed
7557 // Stability: development
7558 HwStateFailed = HwStateKey.String("failed")
7559 )
7560
7561 // Enum values for hw.type
7562 var (
7563 // Battery
7564 // Stability: development
7565 HwTypeBattery = HwTypeKey.String("battery")
7566 // CPU
7567 // Stability: development
7568 HwTypeCPU = HwTypeKey.String("cpu")
7569 // Disk controller
7570 // Stability: development
7571 HwTypeDiskController = HwTypeKey.String("disk_controller")
7572 // Enclosure
7573 // Stability: development
7574 HwTypeEnclosure = HwTypeKey.String("enclosure")
7575 // Fan
7576 // Stability: development
7577 HwTypeFan = HwTypeKey.String("fan")
7578 // GPU
7579 // Stability: development
7580 HwTypeGpu = HwTypeKey.String("gpu")
7581 // Logical disk
7582 // Stability: development
7583 HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
7584 // Memory
7585 // Stability: development
7586 HwTypeMemory = HwTypeKey.String("memory")
7587 // Network
7588 // Stability: development
7589 HwTypeNetwork = HwTypeKey.String("network")
7590 // Physical disk
7591 // Stability: development
7592 HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
7593 // Power supply
7594 // Stability: development
7595 HwTypePowerSupply = HwTypeKey.String("power_supply")
7596 // Tape drive
7597 // Stability: development
7598 HwTypeTapeDrive = HwTypeKey.String("tape_drive")
7599 // Temperature
7600 // Stability: development
7601 HwTypeTemperature = HwTypeKey.String("temperature")
7602 // Voltage
7603 // Stability: development
7604 HwTypeVoltage = HwTypeKey.String("voltage")
7605 )
7606
7607 // Namespace: ios
7608 const (
7609 // IOSAppStateKey is the attribute Key conforming to the "ios.app.state"
7610 // semantic conventions. It represents the this attribute represents the state
7611 // of the application.
7612 //
7613 // Type: Enum
7614 // RequirementLevel: Recommended
7615 // Stability: Development
7616 //
7617 // Examples:
7618 // Note: The iOS lifecycle states are defined in the
7619 // [UIApplicationDelegate documentation], and from which the `OS terminology`
7620 // column values are derived.
7621 //
7622 // [UIApplicationDelegate documentation]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate
7623 IOSAppStateKey = attribute.Key("ios.app.state")
7624 )
7625
7626 // Enum values for ios.app.state
7627 var (
7628 // The app has become `active`. Associated with UIKit notification
7629 // `applicationDidBecomeActive`.
7630 //
7631 // Stability: development
7632 IOSAppStateActive = IOSAppStateKey.String("active")
7633 // The app is now `inactive`. Associated with UIKit notification
7634 // `applicationWillResignActive`.
7635 //
7636 // Stability: development
7637 IOSAppStateInactive = IOSAppStateKey.String("inactive")
7638 // The app is now in the background. This value is associated with UIKit
7639 // notification `applicationDidEnterBackground`.
7640 //
7641 // Stability: development
7642 IOSAppStateBackground = IOSAppStateKey.String("background")
7643 // The app is now in the foreground. This value is associated with UIKit
7644 // notification `applicationWillEnterForeground`.
7645 //
7646 // Stability: development
7647 IOSAppStateForeground = IOSAppStateKey.String("foreground")
7648 // The app is about to terminate. Associated with UIKit notification
7649 // `applicationWillTerminate`.
7650 //
7651 // Stability: development
7652 IOSAppStateTerminate = IOSAppStateKey.String("terminate")
7653 )
7654
7655 // Namespace: k8s
7656 const (
7657 // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
7658 // semantic conventions. It represents the name of the cluster.
7659 //
7660 // Type: string
7661 // RequirementLevel: Recommended
7662 // Stability: Development
7663 //
7664 // Examples: "opentelemetry-cluster"
7665 K8SClusterNameKey = attribute.Key("k8s.cluster.name")
7666
7667 // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
7668 // semantic conventions. It represents a pseudo-ID for the cluster, set to the
7669 // UID of the `kube-system` namespace.
7670 //
7671 // Type: string
7672 // RequirementLevel: Recommended
7673 // Stability: Development
7674 //
7675 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
7676 // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
7677 // added, we will recommend collecting the `k8s.cluster.uid` through the
7678 // official APIs. In the meantime, we are able to use the `uid` of the
7679 // `kube-system` namespace as a proxy for cluster ID. Read on for the
7680 // rationale.
7681 //
7682 // Every object created in a K8s cluster is assigned a distinct UID. The
7683 // `kube-system` namespace is used by Kubernetes itself and will exist
7684 // for the lifetime of the cluster. Using the `uid` of the `kube-system`
7685 // namespace is a reasonable proxy for the K8s ClusterID as it will only
7686 // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
7687 // UUIDs as standardized by
7688 // [ISO/IEC 9834-8 and ITU-T X.667].
7689 // Which states:
7690 //
7691 // > If generated according to one of the mechanisms defined in Rec.
7692 // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
7693 // > different from all other UUIDs generated before 3603 A.D., or is
7694 // > extremely likely to be different (depending on the mechanism chosen).
7695 //
7696 // Therefore, UIDs between clusters should be extremely unlikely to
7697 // conflict.
7698 //
7699 // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
7700 K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
7701
7702 // K8SContainerNameKey is the attribute Key conforming to the
7703 // "k8s.container.name" semantic conventions. It represents the name of the
7704 // Container from Pod specification, must be unique within a Pod. Container
7705 // runtime usually uses different globally unique name (`container.name`).
7706 //
7707 // Type: string
7708 // RequirementLevel: Recommended
7709 // Stability: Development
7710 //
7711 // Examples: "redis"
7712 K8SContainerNameKey = attribute.Key("k8s.container.name")
7713
7714 // K8SContainerRestartCountKey is the attribute Key conforming to the
7715 // "k8s.container.restart_count" semantic conventions. It represents the number
7716 // of times the container was restarted. This attribute can be used to identify
7717 // a particular container (running or stopped) within a container spec.
7718 //
7719 // Type: int
7720 // RequirementLevel: Recommended
7721 // Stability: Development
7722 //
7723 // Examples:
7724 K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
7725
7726 // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
7727 // the "k8s.container.status.last_terminated_reason" semantic conventions. It
7728 // represents the last terminated reason of the Container.
7729 //
7730 // Type: string
7731 // RequirementLevel: Recommended
7732 // Stability: Development
7733 //
7734 // Examples: "Evicted", "Error"
7735 K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
7736
7737 // K8SContainerStatusReasonKey is the attribute Key conforming to the
7738 // "k8s.container.status.reason" semantic conventions. It represents the reason
7739 // for the container state. Corresponds to the `reason` field of the:
7740 // [K8s ContainerStateWaiting] or [K8s ContainerStateTerminated].
7741 //
7742 // Type: Enum
7743 // RequirementLevel: Recommended
7744 // Stability: Development
7745 //
7746 // Examples: "ContainerCreating", "CrashLoopBackOff",
7747 // "CreateContainerConfigError", "ErrImagePull", "ImagePullBackOff",
7748 // "OOMKilled", "Completed", "Error", "ContainerCannotRun"
7749 //
7750 // [K8s ContainerStateWaiting]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstatewaiting-v1-core
7751 // [K8s ContainerStateTerminated]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstateterminated-v1-core
7752 K8SContainerStatusReasonKey = attribute.Key("k8s.container.status.reason")
7753
7754 // K8SContainerStatusStateKey is the attribute Key conforming to the
7755 // "k8s.container.status.state" semantic conventions. It represents the state of
7756 // the container. [K8s ContainerState].
7757 //
7758 // Type: Enum
7759 // RequirementLevel: Recommended
7760 // Stability: Development
7761 //
7762 // Examples: "terminated", "running", "waiting"
7763 //
7764 // [K8s ContainerState]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstate-v1-core
7765 K8SContainerStatusStateKey = attribute.Key("k8s.container.status.state")
7766
7767 // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
7768 // semantic conventions. It represents the name of the CronJob.
7769 //
7770 // Type: string
7771 // RequirementLevel: Recommended
7772 // Stability: Development
7773 //
7774 // Examples: "opentelemetry"
7775 K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
7776
7777 // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
7778 // semantic conventions. It represents the UID of the CronJob.
7779 //
7780 // Type: string
7781 // RequirementLevel: Recommended
7782 // Stability: Development
7783 //
7784 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7785 K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
7786
7787 // K8SDaemonSetNameKey is the attribute Key conforming to the
7788 // "k8s.daemonset.name" semantic conventions. It represents the name of the
7789 // DaemonSet.
7790 //
7791 // Type: string
7792 // RequirementLevel: Recommended
7793 // Stability: Development
7794 //
7795 // Examples: "opentelemetry"
7796 K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
7797
7798 // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
7799 // semantic conventions. It represents the UID of the DaemonSet.
7800 //
7801 // Type: string
7802 // RequirementLevel: Recommended
7803 // Stability: Development
7804 //
7805 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7806 K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
7807
7808 // K8SDeploymentNameKey is the attribute Key conforming to the
7809 // "k8s.deployment.name" semantic conventions. It represents the name of the
7810 // Deployment.
7811 //
7812 // Type: string
7813 // RequirementLevel: Recommended
7814 // Stability: Development
7815 //
7816 // Examples: "opentelemetry"
7817 K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
7818
7819 // K8SDeploymentUIDKey is the attribute Key conforming to the
7820 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
7821 // Deployment.
7822 //
7823 // Type: string
7824 // RequirementLevel: Recommended
7825 // Stability: Development
7826 //
7827 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7828 K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
7829
7830 // K8SHPAMetricTypeKey is the attribute Key conforming to the
7831 // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
7832 // source for the horizontal pod autoscaler.
7833 //
7834 // Type: string
7835 // RequirementLevel: Recommended
7836 // Stability: Development
7837 //
7838 // Examples: "Resource", "ContainerResource"
7839 // Note: This attribute reflects the `type` field of spec.metrics[] in the HPA.
7840 K8SHPAMetricTypeKey = attribute.Key("k8s.hpa.metric.type")
7841
7842 // K8SHPANameKey is the attribute Key conforming to the "k8s.hpa.name" semantic
7843 // conventions. It represents the name of the horizontal pod autoscaler.
7844 //
7845 // Type: string
7846 // RequirementLevel: Recommended
7847 // Stability: Development
7848 //
7849 // Examples: "opentelemetry"
7850 K8SHPANameKey = attribute.Key("k8s.hpa.name")
7851
7852 // K8SHPAScaletargetrefAPIVersionKey is the attribute Key conforming to the
7853 // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
7854 // API version of the target resource to scale for the HorizontalPodAutoscaler.
7855 //
7856 // Type: string
7857 // RequirementLevel: Recommended
7858 // Stability: Development
7859 //
7860 // Examples: "apps/v1", "autoscaling/v2"
7861 // Note: This maps to the `apiVersion` field in the `scaleTargetRef` of the HPA
7862 // spec.
7863 K8SHPAScaletargetrefAPIVersionKey = attribute.Key("k8s.hpa.scaletargetref.api_version")
7864
7865 // K8SHPAScaletargetrefKindKey is the attribute Key conforming to the
7866 // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
7867 // the target resource to scale for the HorizontalPodAutoscaler.
7868 //
7869 // Type: string
7870 // RequirementLevel: Recommended
7871 // Stability: Development
7872 //
7873 // Examples: "Deployment", "StatefulSet"
7874 // Note: This maps to the `kind` field in the `scaleTargetRef` of the HPA spec.
7875 K8SHPAScaletargetrefKindKey = attribute.Key("k8s.hpa.scaletargetref.kind")
7876
7877 // K8SHPAScaletargetrefNameKey is the attribute Key conforming to the
7878 // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
7879 // the target resource to scale for the HorizontalPodAutoscaler.
7880 //
7881 // Type: string
7882 // RequirementLevel: Recommended
7883 // Stability: Development
7884 //
7885 // Examples: "my-deployment", "my-statefulset"
7886 // Note: This maps to the `name` field in the `scaleTargetRef` of the HPA spec.
7887 K8SHPAScaletargetrefNameKey = attribute.Key("k8s.hpa.scaletargetref.name")
7888
7889 // K8SHPAUIDKey is the attribute Key conforming to the "k8s.hpa.uid" semantic
7890 // conventions. It represents the UID of the horizontal pod autoscaler.
7891 //
7892 // Type: string
7893 // RequirementLevel: Recommended
7894 // Stability: Development
7895 //
7896 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7897 K8SHPAUIDKey = attribute.Key("k8s.hpa.uid")
7898
7899 // K8SHugepageSizeKey is the attribute Key conforming to the "k8s.hugepage.size"
7900 // semantic conventions. It represents the size (identifier) of the K8s huge
7901 // page.
7902 //
7903 // Type: string
7904 // RequirementLevel: Recommended
7905 // Stability: Development
7906 //
7907 // Examples: "2Mi"
7908 K8SHugepageSizeKey = attribute.Key("k8s.hugepage.size")
7909
7910 // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
7911 // conventions. It represents the name of the Job.
7912 //
7913 // Type: string
7914 // RequirementLevel: Recommended
7915 // Stability: Development
7916 //
7917 // Examples: "opentelemetry"
7918 K8SJobNameKey = attribute.Key("k8s.job.name")
7919
7920 // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
7921 // conventions. It represents the UID of the Job.
7922 //
7923 // Type: string
7924 // RequirementLevel: Recommended
7925 // Stability: Development
7926 //
7927 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7928 K8SJobUIDKey = attribute.Key("k8s.job.uid")
7929
7930 // K8SNamespaceNameKey is the attribute Key conforming to the
7931 // "k8s.namespace.name" semantic conventions. It represents the name of the
7932 // namespace that the pod is running in.
7933 //
7934 // Type: string
7935 // RequirementLevel: Recommended
7936 // Stability: Development
7937 //
7938 // Examples: "default"
7939 K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
7940
7941 // K8SNamespacePhaseKey is the attribute Key conforming to the
7942 // "k8s.namespace.phase" semantic conventions. It represents the phase of the
7943 // K8s namespace.
7944 //
7945 // Type: Enum
7946 // RequirementLevel: Recommended
7947 // Stability: Development
7948 //
7949 // Examples: "active", "terminating"
7950 // Note: This attribute aligns with the `phase` field of the
7951 // [K8s NamespaceStatus]
7952 //
7953 // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core
7954 K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase")
7955
7956 // K8SNodeConditionStatusKey is the attribute Key conforming to the
7957 // "k8s.node.condition.status" semantic conventions. It represents the status of
7958 // the condition, one of True, False, Unknown.
7959 //
7960 // Type: Enum
7961 // RequirementLevel: Recommended
7962 // Stability: Development
7963 //
7964 // Examples: "true", "false", "unknown"
7965 // Note: This attribute aligns with the `status` field of the
7966 // [NodeCondition]
7967 //
7968 // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
7969 K8SNodeConditionStatusKey = attribute.Key("k8s.node.condition.status")
7970
7971 // K8SNodeConditionTypeKey is the attribute Key conforming to the
7972 // "k8s.node.condition.type" semantic conventions. It represents the condition
7973 // type of a K8s Node.
7974 //
7975 // Type: Enum
7976 // RequirementLevel: Recommended
7977 // Stability: Development
7978 //
7979 // Examples: "Ready", "DiskPressure"
7980 // Note: K8s Node conditions as described
7981 // by [K8s documentation].
7982 //
7983 // This attribute aligns with the `type` field of the
7984 // [NodeCondition]
7985 //
7986 // The set of possible values is not limited to those listed here. Managed
7987 // Kubernetes environments,
7988 // or custom controllers MAY introduce additional node condition types.
7989 // When this occurs, the exact value as reported by the Kubernetes API SHOULD be
7990 // used.
7991 //
7992 // [K8s documentation]: https://v1-32.docs.kubernetes.io/docs/reference/node/node-status/#condition
7993 // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
7994 K8SNodeConditionTypeKey = attribute.Key("k8s.node.condition.type")
7995
7996 // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
7997 // semantic conventions. It represents the name of the Node.
7998 //
7999 // Type: string
8000 // RequirementLevel: Recommended
8001 // Stability: Development
8002 //
8003 // Examples: "node-1"
8004 K8SNodeNameKey = attribute.Key("k8s.node.name")
8005
8006 // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
8007 // conventions. It represents the UID of the Node.
8008 //
8009 // Type: string
8010 // RequirementLevel: Recommended
8011 // Stability: Development
8012 //
8013 // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
8014 K8SNodeUIDKey = attribute.Key("k8s.node.uid")
8015
8016 // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
8017 // conventions. It represents the name of the Pod.
8018 //
8019 // Type: string
8020 // RequirementLevel: Recommended
8021 // Stability: Development
8022 //
8023 // Examples: "opentelemetry-pod-autoconf"
8024 K8SPodNameKey = attribute.Key("k8s.pod.name")
8025
8026 // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
8027 // conventions. It represents the UID of the Pod.
8028 //
8029 // Type: string
8030 // RequirementLevel: Recommended
8031 // Stability: Development
8032 //
8033 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8034 K8SPodUIDKey = attribute.Key("k8s.pod.uid")
8035
8036 // K8SReplicaSetNameKey is the attribute Key conforming to the
8037 // "k8s.replicaset.name" semantic conventions. It represents the name of the
8038 // ReplicaSet.
8039 //
8040 // Type: string
8041 // RequirementLevel: Recommended
8042 // Stability: Development
8043 //
8044 // Examples: "opentelemetry"
8045 K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
8046
8047 // K8SReplicaSetUIDKey is the attribute Key conforming to the
8048 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
8049 // ReplicaSet.
8050 //
8051 // Type: string
8052 // RequirementLevel: Recommended
8053 // Stability: Development
8054 //
8055 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8056 K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
8057
8058 // K8SReplicationControllerNameKey is the attribute Key conforming to the
8059 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
8060 // of the replication controller.
8061 //
8062 // Type: string
8063 // RequirementLevel: Recommended
8064 // Stability: Development
8065 //
8066 // Examples: "opentelemetry"
8067 K8SReplicationControllerNameKey = attribute.Key("k8s.replicationcontroller.name")
8068
8069 // K8SReplicationControllerUIDKey is the attribute Key conforming to the
8070 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID
8071 // of the replication controller.
8072 //
8073 // Type: string
8074 // RequirementLevel: Recommended
8075 // Stability: Development
8076 //
8077 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8078 K8SReplicationControllerUIDKey = attribute.Key("k8s.replicationcontroller.uid")
8079
8080 // K8SResourceQuotaNameKey is the attribute Key conforming to the
8081 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
8082 // resource quota.
8083 //
8084 // Type: string
8085 // RequirementLevel: Recommended
8086 // Stability: Development
8087 //
8088 // Examples: "opentelemetry"
8089 K8SResourceQuotaNameKey = attribute.Key("k8s.resourcequota.name")
8090
8091 // K8SResourceQuotaResourceNameKey is the attribute Key conforming to the
8092 // "k8s.resourcequota.resource_name" semantic conventions. It represents the
8093 // name of the K8s resource a resource quota defines.
8094 //
8095 // Type: string
8096 // RequirementLevel: Recommended
8097 // Stability: Development
8098 //
8099 // Examples: "count/replicationcontrollers"
8100 // Note: The value for this attribute can be either the full
8101 // `count/<resource>[.<group>]` string (e.g., count/deployments.apps,
8102 // count/pods), or, for certain core Kubernetes resources, just the resource
8103 // name (e.g., pods, services, configmaps). Both forms are supported by
8104 // Kubernetes for object count quotas. See
8105 // [Kubernetes Resource Quotas documentation] for more details.
8106 //
8107 // [Kubernetes Resource Quotas documentation]: https://kubernetes.io/docs/concepts/policy/resource-quotas/#object-count-quota
8108 K8SResourceQuotaResourceNameKey = attribute.Key("k8s.resourcequota.resource_name")
8109
8110 // K8SResourceQuotaUIDKey is the attribute Key conforming to the
8111 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
8112 // resource quota.
8113 //
8114 // Type: string
8115 // RequirementLevel: Recommended
8116 // Stability: Development
8117 //
8118 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8119 K8SResourceQuotaUIDKey = attribute.Key("k8s.resourcequota.uid")
8120
8121 // K8SStatefulSetNameKey is the attribute Key conforming to the
8122 // "k8s.statefulset.name" semantic conventions. It represents the name of the
8123 // StatefulSet.
8124 //
8125 // Type: string
8126 // RequirementLevel: Recommended
8127 // Stability: Development
8128 //
8129 // Examples: "opentelemetry"
8130 K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
8131
8132 // K8SStatefulSetUIDKey is the attribute Key conforming to the
8133 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
8134 // StatefulSet.
8135 //
8136 // Type: string
8137 // RequirementLevel: Recommended
8138 // Stability: Development
8139 //
8140 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8141 K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
8142
8143 // K8SStorageclassNameKey is the attribute Key conforming to the
8144 // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
8145 // [StorageClass] object.
8146 //
8147 // Type: string
8148 // RequirementLevel: Recommended
8149 // Stability: Development
8150 //
8151 // Examples: "gold.storageclass.storage.k8s.io"
8152 //
8153 // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
8154 K8SStorageclassNameKey = attribute.Key("k8s.storageclass.name")
8155
8156 // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
8157 // semantic conventions. It represents the name of the K8s volume.
8158 //
8159 // Type: string
8160 // RequirementLevel: Recommended
8161 // Stability: Development
8162 //
8163 // Examples: "volume0"
8164 K8SVolumeNameKey = attribute.Key("k8s.volume.name")
8165
8166 // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
8167 // semantic conventions. It represents the type of the K8s volume.
8168 //
8169 // Type: Enum
8170 // RequirementLevel: Recommended
8171 // Stability: Development
8172 //
8173 // Examples: "emptyDir", "persistentVolumeClaim"
8174 K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
8175 )
8176
8177 // K8SClusterName returns an attribute KeyValue conforming to the
8178 // "k8s.cluster.name" semantic conventions. It represents the name of the
8179 // cluster.
8180 func K8SClusterName(val string) attribute.KeyValue {
8181 return K8SClusterNameKey.String(val)
8182 }
8183
8184 // K8SClusterUID returns an attribute KeyValue conforming to the
8185 // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
8186 // cluster, set to the UID of the `kube-system` namespace.
8187 func K8SClusterUID(val string) attribute.KeyValue {
8188 return K8SClusterUIDKey.String(val)
8189 }
8190
8191 // K8SContainerName returns an attribute KeyValue conforming to the
8192 // "k8s.container.name" semantic conventions. It represents the name of the
8193 // Container from Pod specification, must be unique within a Pod. Container
8194 // runtime usually uses different globally unique name (`container.name`).
8195 func K8SContainerName(val string) attribute.KeyValue {
8196 return K8SContainerNameKey.String(val)
8197 }
8198
8199 // K8SContainerRestartCount returns an attribute KeyValue conforming to the
8200 // "k8s.container.restart_count" semantic conventions. It represents the number
8201 // of times the container was restarted. This attribute can be used to identify a
8202 // particular container (running or stopped) within a container spec.
8203 func K8SContainerRestartCount(val int) attribute.KeyValue {
8204 return K8SContainerRestartCountKey.Int(val)
8205 }
8206
8207 // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
8208 // conforming to the "k8s.container.status.last_terminated_reason" semantic
8209 // conventions. It represents the last terminated reason of the Container.
8210 func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
8211 return K8SContainerStatusLastTerminatedReasonKey.String(val)
8212 }
8213
8214 // K8SCronJobAnnotation returns an attribute KeyValue conforming to the
8215 // "k8s.cronjob.annotation" semantic conventions. It represents the cronjob
8216 // annotation placed on the CronJob, the `<key>` being the annotation name, the
8217 // value being the annotation value.
8218 func K8SCronJobAnnotation(key string, val string) attribute.KeyValue {
8219 return attribute.String("k8s.cronjob.annotation."+key, val)
8220 }
8221
8222 // K8SCronJobLabel returns an attribute KeyValue conforming to the
8223 // "k8s.cronjob.label" semantic conventions. It represents the label placed on
8224 // the CronJob, the `<key>` being the label name, the value being the label
8225 // value.
8226 func K8SCronJobLabel(key string, val string) attribute.KeyValue {
8227 return attribute.String("k8s.cronjob.label."+key, val)
8228 }
8229
8230 // K8SCronJobName returns an attribute KeyValue conforming to the
8231 // "k8s.cronjob.name" semantic conventions. It represents the name of the
8232 // CronJob.
8233 func K8SCronJobName(val string) attribute.KeyValue {
8234 return K8SCronJobNameKey.String(val)
8235 }
8236
8237 // K8SCronJobUID returns an attribute KeyValue conforming to the
8238 // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
8239 func K8SCronJobUID(val string) attribute.KeyValue {
8240 return K8SCronJobUIDKey.String(val)
8241 }
8242
8243 // K8SDaemonSetAnnotation returns an attribute KeyValue conforming to the
8244 // "k8s.daemonset.annotation" semantic conventions. It represents the annotation
8245 // placed on the DaemonSet, the `<key>` being the annotation name, the value
8246 // being the annotation value, even if the value is empty.
8247 func K8SDaemonSetAnnotation(key string, val string) attribute.KeyValue {
8248 return attribute.String("k8s.daemonset.annotation."+key, val)
8249 }
8250
8251 // K8SDaemonSetLabel returns an attribute KeyValue conforming to the
8252 // "k8s.daemonset.label" semantic conventions. It represents the label placed on
8253 // the DaemonSet, the `<key>` being the label name, the value being the label
8254 // value, even if the value is empty.
8255 func K8SDaemonSetLabel(key string, val string) attribute.KeyValue {
8256 return attribute.String("k8s.daemonset.label."+key, val)
8257 }
8258
8259 // K8SDaemonSetName returns an attribute KeyValue conforming to the
8260 // "k8s.daemonset.name" semantic conventions. It represents the name of the
8261 // DaemonSet.
8262 func K8SDaemonSetName(val string) attribute.KeyValue {
8263 return K8SDaemonSetNameKey.String(val)
8264 }
8265
8266 // K8SDaemonSetUID returns an attribute KeyValue conforming to the
8267 // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
8268 // DaemonSet.
8269 func K8SDaemonSetUID(val string) attribute.KeyValue {
8270 return K8SDaemonSetUIDKey.String(val)
8271 }
8272
8273 // K8SDeploymentAnnotation returns an attribute KeyValue conforming to the
8274 // "k8s.deployment.annotation" semantic conventions. It represents the annotation
8275 // placed on the Deployment, the `<key>` being the annotation name, the value
8276 // being the annotation value, even if the value is empty.
8277 func K8SDeploymentAnnotation(key string, val string) attribute.KeyValue {
8278 return attribute.String("k8s.deployment.annotation."+key, val)
8279 }
8280
8281 // K8SDeploymentLabel returns an attribute KeyValue conforming to the
8282 // "k8s.deployment.label" semantic conventions. It represents the label placed on
8283 // the Deployment, the `<key>` being the label name, the value being the label
8284 // value, even if the value is empty.
8285 func K8SDeploymentLabel(key string, val string) attribute.KeyValue {
8286 return attribute.String("k8s.deployment.label."+key, val)
8287 }
8288
8289 // K8SDeploymentName returns an attribute KeyValue conforming to the
8290 // "k8s.deployment.name" semantic conventions. It represents the name of the
8291 // Deployment.
8292 func K8SDeploymentName(val string) attribute.KeyValue {
8293 return K8SDeploymentNameKey.String(val)
8294 }
8295
8296 // K8SDeploymentUID returns an attribute KeyValue conforming to the
8297 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
8298 // Deployment.
8299 func K8SDeploymentUID(val string) attribute.KeyValue {
8300 return K8SDeploymentUIDKey.String(val)
8301 }
8302
8303 // K8SHPAMetricType returns an attribute KeyValue conforming to the
8304 // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
8305 // source for the horizontal pod autoscaler.
8306 func K8SHPAMetricType(val string) attribute.KeyValue {
8307 return K8SHPAMetricTypeKey.String(val)
8308 }
8309
8310 // K8SHPAName returns an attribute KeyValue conforming to the "k8s.hpa.name"
8311 // semantic conventions. It represents the name of the horizontal pod autoscaler.
8312 func K8SHPAName(val string) attribute.KeyValue {
8313 return K8SHPANameKey.String(val)
8314 }
8315
8316 // K8SHPAScaletargetrefAPIVersion returns an attribute KeyValue conforming to the
8317 // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
8318 // API version of the target resource to scale for the HorizontalPodAutoscaler.
8319 func K8SHPAScaletargetrefAPIVersion(val string) attribute.KeyValue {
8320 return K8SHPAScaletargetrefAPIVersionKey.String(val)
8321 }
8322
8323 // K8SHPAScaletargetrefKind returns an attribute KeyValue conforming to the
8324 // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
8325 // the target resource to scale for the HorizontalPodAutoscaler.
8326 func K8SHPAScaletargetrefKind(val string) attribute.KeyValue {
8327 return K8SHPAScaletargetrefKindKey.String(val)
8328 }
8329
8330 // K8SHPAScaletargetrefName returns an attribute KeyValue conforming to the
8331 // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
8332 // the target resource to scale for the HorizontalPodAutoscaler.
8333 func K8SHPAScaletargetrefName(val string) attribute.KeyValue {
8334 return K8SHPAScaletargetrefNameKey.String(val)
8335 }
8336
8337 // K8SHPAUID returns an attribute KeyValue conforming to the "k8s.hpa.uid"
8338 // semantic conventions. It represents the UID of the horizontal pod autoscaler.
8339 func K8SHPAUID(val string) attribute.KeyValue {
8340 return K8SHPAUIDKey.String(val)
8341 }
8342
8343 // K8SHugepageSize returns an attribute KeyValue conforming to the
8344 // "k8s.hugepage.size" semantic conventions. It represents the size (identifier)
8345 // of the K8s huge page.
8346 func K8SHugepageSize(val string) attribute.KeyValue {
8347 return K8SHugepageSizeKey.String(val)
8348 }
8349
8350 // K8SJobAnnotation returns an attribute KeyValue conforming to the
8351 // "k8s.job.annotation" semantic conventions. It represents the annotation placed
8352 // on the Job, the `<key>` being the annotation name, the value being the
8353 // annotation value, even if the value is empty.
8354 func K8SJobAnnotation(key string, val string) attribute.KeyValue {
8355 return attribute.String("k8s.job.annotation."+key, val)
8356 }
8357
8358 // K8SJobLabel returns an attribute KeyValue conforming to the "k8s.job.label"
8359 // semantic conventions. It represents the label placed on the Job, the `<key>`
8360 // being the label name, the value being the label value, even if the value is
8361 // empty.
8362 func K8SJobLabel(key string, val string) attribute.KeyValue {
8363 return attribute.String("k8s.job.label."+key, val)
8364 }
8365
8366 // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
8367 // semantic conventions. It represents the name of the Job.
8368 func K8SJobName(val string) attribute.KeyValue {
8369 return K8SJobNameKey.String(val)
8370 }
8371
8372 // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
8373 // semantic conventions. It represents the UID of the Job.
8374 func K8SJobUID(val string) attribute.KeyValue {
8375 return K8SJobUIDKey.String(val)
8376 }
8377
8378 // K8SNamespaceAnnotation returns an attribute KeyValue conforming to the
8379 // "k8s.namespace.annotation" semantic conventions. It represents the annotation
8380 // placed on the Namespace, the `<key>` being the annotation name, the value
8381 // being the annotation value, even if the value is empty.
8382 func K8SNamespaceAnnotation(key string, val string) attribute.KeyValue {
8383 return attribute.String("k8s.namespace.annotation."+key, val)
8384 }
8385
8386 // K8SNamespaceLabel returns an attribute KeyValue conforming to the
8387 // "k8s.namespace.label" semantic conventions. It represents the label placed on
8388 // the Namespace, the `<key>` being the label name, the value being the label
8389 // value, even if the value is empty.
8390 func K8SNamespaceLabel(key string, val string) attribute.KeyValue {
8391 return attribute.String("k8s.namespace.label."+key, val)
8392 }
8393
8394 // K8SNamespaceName returns an attribute KeyValue conforming to the
8395 // "k8s.namespace.name" semantic conventions. It represents the name of the
8396 // namespace that the pod is running in.
8397 func K8SNamespaceName(val string) attribute.KeyValue {
8398 return K8SNamespaceNameKey.String(val)
8399 }
8400
8401 // K8SNodeAnnotation returns an attribute KeyValue conforming to the
8402 // "k8s.node.annotation" semantic conventions. It represents the annotation
8403 // placed on the Node, the `<key>` being the annotation name, the value being the
8404 // annotation value, even if the value is empty.
8405 func K8SNodeAnnotation(key string, val string) attribute.KeyValue {
8406 return attribute.String("k8s.node.annotation."+key, val)
8407 }
8408
8409 // K8SNodeLabel returns an attribute KeyValue conforming to the "k8s.node.label"
8410 // semantic conventions. It represents the label placed on the Node, the `<key>`
8411 // being the label name, the value being the label value, even if the value is
8412 // empty.
8413 func K8SNodeLabel(key string, val string) attribute.KeyValue {
8414 return attribute.String("k8s.node.label."+key, val)
8415 }
8416
8417 // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
8418 // semantic conventions. It represents the name of the Node.
8419 func K8SNodeName(val string) attribute.KeyValue {
8420 return K8SNodeNameKey.String(val)
8421 }
8422
8423 // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
8424 // semantic conventions. It represents the UID of the Node.
8425 func K8SNodeUID(val string) attribute.KeyValue {
8426 return K8SNodeUIDKey.String(val)
8427 }
8428
8429 // K8SPodAnnotation returns an attribute KeyValue conforming to the
8430 // "k8s.pod.annotation" semantic conventions. It represents the annotation placed
8431 // on the Pod, the `<key>` being the annotation name, the value being the
8432 // annotation value.
8433 func K8SPodAnnotation(key string, val string) attribute.KeyValue {
8434 return attribute.String("k8s.pod.annotation."+key, val)
8435 }
8436
8437 // K8SPodLabel returns an attribute KeyValue conforming to the "k8s.pod.label"
8438 // semantic conventions. It represents the label placed on the Pod, the `<key>`
8439 // being the label name, the value being the label value.
8440 func K8SPodLabel(key string, val string) attribute.KeyValue {
8441 return attribute.String("k8s.pod.label."+key, val)
8442 }
8443
8444 // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
8445 // semantic conventions. It represents the name of the Pod.
8446 func K8SPodName(val string) attribute.KeyValue {
8447 return K8SPodNameKey.String(val)
8448 }
8449
8450 // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
8451 // semantic conventions. It represents the UID of the Pod.
8452 func K8SPodUID(val string) attribute.KeyValue {
8453 return K8SPodUIDKey.String(val)
8454 }
8455
8456 // K8SReplicaSetAnnotation returns an attribute KeyValue conforming to the
8457 // "k8s.replicaset.annotation" semantic conventions. It represents the annotation
8458 // placed on the ReplicaSet, the `<key>` being the annotation name, the value
8459 // being the annotation value, even if the value is empty.
8460 func K8SReplicaSetAnnotation(key string, val string) attribute.KeyValue {
8461 return attribute.String("k8s.replicaset.annotation."+key, val)
8462 }
8463
8464 // K8SReplicaSetLabel returns an attribute KeyValue conforming to the
8465 // "k8s.replicaset.label" semantic conventions. It represents the label placed on
8466 // the ReplicaSet, the `<key>` being the label name, the value being the label
8467 // value, even if the value is empty.
8468 func K8SReplicaSetLabel(key string, val string) attribute.KeyValue {
8469 return attribute.String("k8s.replicaset.label."+key, val)
8470 }
8471
8472 // K8SReplicaSetName returns an attribute KeyValue conforming to the
8473 // "k8s.replicaset.name" semantic conventions. It represents the name of the
8474 // ReplicaSet.
8475 func K8SReplicaSetName(val string) attribute.KeyValue {
8476 return K8SReplicaSetNameKey.String(val)
8477 }
8478
8479 // K8SReplicaSetUID returns an attribute KeyValue conforming to the
8480 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
8481 // ReplicaSet.
8482 func K8SReplicaSetUID(val string) attribute.KeyValue {
8483 return K8SReplicaSetUIDKey.String(val)
8484 }
8485
8486 // K8SReplicationControllerName returns an attribute KeyValue conforming to the
8487 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
8488 // of the replication controller.
8489 func K8SReplicationControllerName(val string) attribute.KeyValue {
8490 return K8SReplicationControllerNameKey.String(val)
8491 }
8492
8493 // K8SReplicationControllerUID returns an attribute KeyValue conforming to the
8494 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID of
8495 // the replication controller.
8496 func K8SReplicationControllerUID(val string) attribute.KeyValue {
8497 return K8SReplicationControllerUIDKey.String(val)
8498 }
8499
8500 // K8SResourceQuotaName returns an attribute KeyValue conforming to the
8501 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
8502 // resource quota.
8503 func K8SResourceQuotaName(val string) attribute.KeyValue {
8504 return K8SResourceQuotaNameKey.String(val)
8505 }
8506
8507 // K8SResourceQuotaResourceName returns an attribute KeyValue conforming to the
8508 // "k8s.resourcequota.resource_name" semantic conventions. It represents the name
8509 // of the K8s resource a resource quota defines.
8510 func K8SResourceQuotaResourceName(val string) attribute.KeyValue {
8511 return K8SResourceQuotaResourceNameKey.String(val)
8512 }
8513
8514 // K8SResourceQuotaUID returns an attribute KeyValue conforming to the
8515 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
8516 // resource quota.
8517 func K8SResourceQuotaUID(val string) attribute.KeyValue {
8518 return K8SResourceQuotaUIDKey.String(val)
8519 }
8520
8521 // K8SStatefulSetAnnotation returns an attribute KeyValue conforming to the
8522 // "k8s.statefulset.annotation" semantic conventions. It represents the
8523 // annotation placed on the StatefulSet, the `<key>` being the annotation name,
8524 // the value being the annotation value, even if the value is empty.
8525 func K8SStatefulSetAnnotation(key string, val string) attribute.KeyValue {
8526 return attribute.String("k8s.statefulset.annotation."+key, val)
8527 }
8528
8529 // K8SStatefulSetLabel returns an attribute KeyValue conforming to the
8530 // "k8s.statefulset.label" semantic conventions. It represents the label placed
8531 // on the StatefulSet, the `<key>` being the label name, the value being the
8532 // label value, even if the value is empty.
8533 func K8SStatefulSetLabel(key string, val string) attribute.KeyValue {
8534 return attribute.String("k8s.statefulset.label."+key, val)
8535 }
8536
8537 // K8SStatefulSetName returns an attribute KeyValue conforming to the
8538 // "k8s.statefulset.name" semantic conventions. It represents the name of the
8539 // StatefulSet.
8540 func K8SStatefulSetName(val string) attribute.KeyValue {
8541 return K8SStatefulSetNameKey.String(val)
8542 }
8543
8544 // K8SStatefulSetUID returns an attribute KeyValue conforming to the
8545 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
8546 // StatefulSet.
8547 func K8SStatefulSetUID(val string) attribute.KeyValue {
8548 return K8SStatefulSetUIDKey.String(val)
8549 }
8550
8551 // K8SStorageclassName returns an attribute KeyValue conforming to the
8552 // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
8553 // [StorageClass] object.
8554 //
8555 // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
8556 func K8SStorageclassName(val string) attribute.KeyValue {
8557 return K8SStorageclassNameKey.String(val)
8558 }
8559
8560 // K8SVolumeName returns an attribute KeyValue conforming to the
8561 // "k8s.volume.name" semantic conventions. It represents the name of the K8s
8562 // volume.
8563 func K8SVolumeName(val string) attribute.KeyValue {
8564 return K8SVolumeNameKey.String(val)
8565 }
8566
8567 // Enum values for k8s.container.status.reason
8568 var (
8569 // The container is being created.
8570 // Stability: development
8571 K8SContainerStatusReasonContainerCreating = K8SContainerStatusReasonKey.String("ContainerCreating")
8572 // The container is in a crash loop back off state.
8573 // Stability: development
8574 K8SContainerStatusReasonCrashLoopBackOff = K8SContainerStatusReasonKey.String("CrashLoopBackOff")
8575 // There was an error creating the container configuration.
8576 // Stability: development
8577 K8SContainerStatusReasonCreateContainerConfigError = K8SContainerStatusReasonKey.String("CreateContainerConfigError")
8578 // There was an error pulling the container image.
8579 // Stability: development
8580 K8SContainerStatusReasonErrImagePull = K8SContainerStatusReasonKey.String("ErrImagePull")
8581 // The container image pull is in back off state.
8582 // Stability: development
8583 K8SContainerStatusReasonImagePullBackOff = K8SContainerStatusReasonKey.String("ImagePullBackOff")
8584 // The container was killed due to out of memory.
8585 // Stability: development
8586 K8SContainerStatusReasonOomKilled = K8SContainerStatusReasonKey.String("OOMKilled")
8587 // The container has completed execution.
8588 // Stability: development
8589 K8SContainerStatusReasonCompleted = K8SContainerStatusReasonKey.String("Completed")
8590 // There was an error with the container.
8591 // Stability: development
8592 K8SContainerStatusReasonError = K8SContainerStatusReasonKey.String("Error")
8593 // The container cannot run.
8594 // Stability: development
8595 K8SContainerStatusReasonContainerCannotRun = K8SContainerStatusReasonKey.String("ContainerCannotRun")
8596 )
8597
8598 // Enum values for k8s.container.status.state
8599 var (
8600 // The container has terminated.
8601 // Stability: development
8602 K8SContainerStatusStateTerminated = K8SContainerStatusStateKey.String("terminated")
8603 // The container is running.
8604 // Stability: development
8605 K8SContainerStatusStateRunning = K8SContainerStatusStateKey.String("running")
8606 // The container is waiting.
8607 // Stability: development
8608 K8SContainerStatusStateWaiting = K8SContainerStatusStateKey.String("waiting")
8609 )
8610
8611 // Enum values for k8s.namespace.phase
8612 var (
8613 // Active namespace phase as described by [K8s API]
8614 // Stability: development
8615 //
8616 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
8617 K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active")
8618 // Terminating namespace phase as described by [K8s API]
8619 // Stability: development
8620 //
8621 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
8622 K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating")
8623 )
8624
8625 // Enum values for k8s.node.condition.status
8626 var (
8627 // condition_true
8628 // Stability: development
8629 K8SNodeConditionStatusConditionTrue = K8SNodeConditionStatusKey.String("true")
8630 // condition_false
8631 // Stability: development
8632 K8SNodeConditionStatusConditionFalse = K8SNodeConditionStatusKey.String("false")
8633 // condition_unknown
8634 // Stability: development
8635 K8SNodeConditionStatusConditionUnknown = K8SNodeConditionStatusKey.String("unknown")
8636 )
8637
8638 // Enum values for k8s.node.condition.type
8639 var (
8640 // The node is healthy and ready to accept pods
8641 // Stability: development
8642 K8SNodeConditionTypeReady = K8SNodeConditionTypeKey.String("Ready")
8643 // Pressure exists on the disk size—that is, if the disk capacity is low
8644 // Stability: development
8645 K8SNodeConditionTypeDiskPressure = K8SNodeConditionTypeKey.String("DiskPressure")
8646 // Pressure exists on the node memory—that is, if the node memory is low
8647 // Stability: development
8648 K8SNodeConditionTypeMemoryPressure = K8SNodeConditionTypeKey.String("MemoryPressure")
8649 // Pressure exists on the processes—that is, if there are too many processes
8650 // on the node
8651 // Stability: development
8652 K8SNodeConditionTypePIDPressure = K8SNodeConditionTypeKey.String("PIDPressure")
8653 // The network for the node is not correctly configured
8654 // Stability: development
8655 K8SNodeConditionTypeNetworkUnavailable = K8SNodeConditionTypeKey.String("NetworkUnavailable")
8656 )
8657
8658 // Enum values for k8s.volume.type
8659 var (
8660 // A [persistentVolumeClaim] volume
8661 // Stability: development
8662 //
8663 // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
8664 K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
8665 // A [configMap] volume
8666 // Stability: development
8667 //
8668 // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
8669 K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
8670 // A [downwardAPI] volume
8671 // Stability: development
8672 //
8673 // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
8674 K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
8675 // An [emptyDir] volume
8676 // Stability: development
8677 //
8678 // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
8679 K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
8680 // A [secret] volume
8681 // Stability: development
8682 //
8683 // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
8684 K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
8685 // A [local] volume
8686 // Stability: development
8687 //
8688 // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local
8689 K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
8690 )
8691
8692 // Namespace: linux
8693 const (
8694 // LinuxMemorySlabStateKey is the attribute Key conforming to the
8695 // "linux.memory.slab.state" semantic conventions. It represents the Linux Slab
8696 // memory state.
8697 //
8698 // Type: Enum
8699 // RequirementLevel: Recommended
8700 // Stability: Development
8701 //
8702 // Examples: "reclaimable", "unreclaimable"
8703 LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state")
8704 )
8705
8706 // Enum values for linux.memory.slab.state
8707 var (
8708 // reclaimable
8709 // Stability: development
8710 LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable")
8711 // unreclaimable
8712 // Stability: development
8713 LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable")
8714 )
8715
8716 // Namespace: log
8717 const (
8718 // LogFileNameKey is the attribute Key conforming to the "log.file.name"
8719 // semantic conventions. It represents the basename of the file.
8720 //
8721 // Type: string
8722 // RequirementLevel: Recommended
8723 // Stability: Development
8724 //
8725 // Examples: "audit.log"
8726 LogFileNameKey = attribute.Key("log.file.name")
8727
8728 // LogFileNameResolvedKey is the attribute Key conforming to the
8729 // "log.file.name_resolved" semantic conventions. It represents the basename of
8730 // the file, with symlinks resolved.
8731 //
8732 // Type: string
8733 // RequirementLevel: Recommended
8734 // Stability: Development
8735 //
8736 // Examples: "uuid.log"
8737 LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
8738
8739 // LogFilePathKey is the attribute Key conforming to the "log.file.path"
8740 // semantic conventions. It represents the full path to the file.
8741 //
8742 // Type: string
8743 // RequirementLevel: Recommended
8744 // Stability: Development
8745 //
8746 // Examples: "/var/log/mysql/audit.log"
8747 LogFilePathKey = attribute.Key("log.file.path")
8748
8749 // LogFilePathResolvedKey is the attribute Key conforming to the
8750 // "log.file.path_resolved" semantic conventions. It represents the full path to
8751 // the file, with symlinks resolved.
8752 //
8753 // Type: string
8754 // RequirementLevel: Recommended
8755 // Stability: Development
8756 //
8757 // Examples: "/var/lib/docker/uuid.log"
8758 LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
8759
8760 // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
8761 // conventions. It represents the stream associated with the log. See below for
8762 // a list of well-known values.
8763 //
8764 // Type: Enum
8765 // RequirementLevel: Recommended
8766 // Stability: Development
8767 //
8768 // Examples:
8769 LogIostreamKey = attribute.Key("log.iostream")
8770
8771 // LogRecordOriginalKey is the attribute Key conforming to the
8772 // "log.record.original" semantic conventions. It represents the complete
8773 // original Log Record.
8774 //
8775 // Type: string
8776 // RequirementLevel: Recommended
8777 // Stability: Development
8778 //
8779 // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
8780 // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
8781 // Note: This value MAY be added when processing a Log Record which was
8782 // originally transmitted as a string or equivalent data type AND the Body field
8783 // of the Log Record does not contain the same value. (e.g. a syslog or a log
8784 // record read from a file.)
8785 LogRecordOriginalKey = attribute.Key("log.record.original")
8786
8787 // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
8788 // semantic conventions. It represents a unique identifier for the Log Record.
8789 //
8790 // Type: string
8791 // RequirementLevel: Recommended
8792 // Stability: Development
8793 //
8794 // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
8795 // Note: If an id is provided, other log records with the same id will be
8796 // considered duplicates and can be removed safely. This means, that two
8797 // distinguishable log records MUST have different values.
8798 // The id MAY be an
8799 // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
8800 // identifiers (e.g. UUID) may be used as needed.
8801 //
8802 // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
8803 LogRecordUIDKey = attribute.Key("log.record.uid")
8804 )
8805
8806 // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
8807 // semantic conventions. It represents the basename of the file.
8808 func LogFileName(val string) attribute.KeyValue {
8809 return LogFileNameKey.String(val)
8810 }
8811
8812 // LogFileNameResolved returns an attribute KeyValue conforming to the
8813 // "log.file.name_resolved" semantic conventions. It represents the basename of
8814 // the file, with symlinks resolved.
8815 func LogFileNameResolved(val string) attribute.KeyValue {
8816 return LogFileNameResolvedKey.String(val)
8817 }
8818
8819 // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
8820 // semantic conventions. It represents the full path to the file.
8821 func LogFilePath(val string) attribute.KeyValue {
8822 return LogFilePathKey.String(val)
8823 }
8824
8825 // LogFilePathResolved returns an attribute KeyValue conforming to the
8826 // "log.file.path_resolved" semantic conventions. It represents the full path to
8827 // the file, with symlinks resolved.
8828 func LogFilePathResolved(val string) attribute.KeyValue {
8829 return LogFilePathResolvedKey.String(val)
8830 }
8831
8832 // LogRecordOriginal returns an attribute KeyValue conforming to the
8833 // "log.record.original" semantic conventions. It represents the complete
8834 // original Log Record.
8835 func LogRecordOriginal(val string) attribute.KeyValue {
8836 return LogRecordOriginalKey.String(val)
8837 }
8838
8839 // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
8840 // semantic conventions. It represents a unique identifier for the Log Record.
8841 func LogRecordUID(val string) attribute.KeyValue {
8842 return LogRecordUIDKey.String(val)
8843 }
8844
8845 // Enum values for log.iostream
8846 var (
8847 // Logs from stdout stream
8848 // Stability: development
8849 LogIostreamStdout = LogIostreamKey.String("stdout")
8850 // Events from stderr stream
8851 // Stability: development
8852 LogIostreamStderr = LogIostreamKey.String("stderr")
8853 )
8854
8855 // Namespace: mainframe
8856 const (
8857 // MainframeLparNameKey is the attribute Key conforming to the
8858 // "mainframe.lpar.name" semantic conventions. It represents the name of the
8859 // logical partition that hosts a systems with a mainframe operating system.
8860 //
8861 // Type: string
8862 // RequirementLevel: Recommended
8863 // Stability: Development
8864 //
8865 // Examples: "LPAR01"
8866 MainframeLparNameKey = attribute.Key("mainframe.lpar.name")
8867 )
8868
8869 // MainframeLparName returns an attribute KeyValue conforming to the
8870 // "mainframe.lpar.name" semantic conventions. It represents the name of the
8871 // logical partition that hosts a systems with a mainframe operating system.
8872 func MainframeLparName(val string) attribute.KeyValue {
8873 return MainframeLparNameKey.String(val)
8874 }
8875
8876 // Namespace: messaging
8877 const (
8878 // MessagingBatchMessageCountKey is the attribute Key conforming to the
8879 // "messaging.batch.message_count" semantic conventions. It represents the
8880 // number of messages sent, received, or processed in the scope of the batching
8881 // operation.
8882 //
8883 // Type: int
8884 // RequirementLevel: Recommended
8885 // Stability: Development
8886 //
8887 // Examples: 0, 1, 2
8888 // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
8889 // spans that operate with a single message. When a messaging client library
8890 // supports both batch and single-message API for the same operation,
8891 // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
8892 // and SHOULD NOT use it for single-message APIs.
8893 MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
8894
8895 // MessagingClientIDKey is the attribute Key conforming to the
8896 // "messaging.client.id" semantic conventions. It represents a unique identifier
8897 // for the client that consumes or produces a message.
8898 //
8899 // Type: string
8900 // RequirementLevel: Recommended
8901 // Stability: Development
8902 //
8903 // Examples: "client-5", "myhost@8742@s8083jm"
8904 MessagingClientIDKey = attribute.Key("messaging.client.id")
8905
8906 // MessagingConsumerGroupNameKey is the attribute Key conforming to the
8907 // "messaging.consumer.group.name" semantic conventions. It represents the name
8908 // of the consumer group with which a consumer is associated.
8909 //
8910 // Type: string
8911 // RequirementLevel: Recommended
8912 // Stability: Development
8913 //
8914 // Examples: "my-group", "indexer"
8915 // Note: Semantic conventions for individual messaging systems SHOULD document
8916 // whether `messaging.consumer.group.name` is applicable and what it means in
8917 // the context of that system.
8918 MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
8919
8920 // MessagingDestinationAnonymousKey is the attribute Key conforming to the
8921 // "messaging.destination.anonymous" semantic conventions. It represents a
8922 // boolean that is true if the message destination is anonymous (could be
8923 // unnamed or have auto-generated name).
8924 //
8925 // Type: boolean
8926 // RequirementLevel: Recommended
8927 // Stability: Development
8928 //
8929 // Examples:
8930 MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
8931
8932 // MessagingDestinationNameKey is the attribute Key conforming to the
8933 // "messaging.destination.name" semantic conventions. It represents the message
8934 // destination name.
8935 //
8936 // Type: string
8937 // RequirementLevel: Recommended
8938 // Stability: Development
8939 //
8940 // Examples: "MyQueue", "MyTopic"
8941 // Note: Destination name SHOULD uniquely identify a specific queue, topic or
8942 // other entity within the broker. If
8943 // the broker doesn't have such notion, the destination name SHOULD uniquely
8944 // identify the broker.
8945 MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
8946
8947 // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
8948 // "messaging.destination.partition.id" semantic conventions. It represents the
8949 // identifier of the partition messages are sent to or received from, unique
8950 // within the `messaging.destination.name`.
8951 //
8952 // Type: string
8953 // RequirementLevel: Recommended
8954 // Stability: Development
8955 //
8956 // Examples: 1
8957 MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
8958
8959 // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
8960 // the "messaging.destination.subscription.name" semantic conventions. It
8961 // represents the name of the destination subscription from which a message is
8962 // consumed.
8963 //
8964 // Type: string
8965 // RequirementLevel: Recommended
8966 // Stability: Development
8967 //
8968 // Examples: "subscription-a"
8969 // Note: Semantic conventions for individual messaging systems SHOULD document
8970 // whether `messaging.destination.subscription.name` is applicable and what it
8971 // means in the context of that system.
8972 MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
8973
8974 // MessagingDestinationTemplateKey is the attribute Key conforming to the
8975 // "messaging.destination.template" semantic conventions. It represents the low
8976 // cardinality representation of the messaging destination name.
8977 //
8978 // Type: string
8979 // RequirementLevel: Recommended
8980 // Stability: Development
8981 //
8982 // Examples: "/customers/{customerId}"
8983 // Note: Destination names could be constructed from templates. An example would
8984 // be a destination name involving a user name or product id. Although the
8985 // destination name in this case is of high cardinality, the underlying template
8986 // is of low cardinality and can be effectively used for grouping and
8987 // aggregation.
8988 MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
8989
8990 // MessagingDestinationTemporaryKey is the attribute Key conforming to the
8991 // "messaging.destination.temporary" semantic conventions. It represents a
8992 // boolean that is true if the message destination is temporary and might not
8993 // exist anymore after messages are processed.
8994 //
8995 // Type: boolean
8996 // RequirementLevel: Recommended
8997 // Stability: Development
8998 //
8999 // Examples:
9000 MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
9001
9002 // MessagingEventHubsMessageEnqueuedTimeKey is the attribute Key conforming to
9003 // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
9004 // represents the UTC epoch seconds at which the message has been accepted and
9005 // stored in the entity.
9006 //
9007 // Type: int
9008 // RequirementLevel: Recommended
9009 // Stability: Development
9010 MessagingEventHubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
9011
9012 // MessagingGCPPubSubMessageAckDeadlineKey is the attribute Key conforming to
9013 // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
9014 // represents the ack deadline in seconds set for the modify ack deadline
9015 // request.
9016 //
9017 // Type: int
9018 // RequirementLevel: Recommended
9019 // Stability: Development
9020 MessagingGCPPubSubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
9021
9022 // MessagingGCPPubSubMessageAckIDKey is the attribute Key conforming to the
9023 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
9024 // ack id for a given message.
9025 //
9026 // Type: string
9027 // RequirementLevel: Recommended
9028 // Stability: Development
9029 //
9030 // Examples: ack_id
9031 MessagingGCPPubSubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
9032
9033 // MessagingGCPPubSubMessageDeliveryAttemptKey is the attribute Key conforming
9034 // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
9035 // It represents the delivery attempt for a given message.
9036 //
9037 // Type: int
9038 // RequirementLevel: Recommended
9039 // Stability: Development
9040 MessagingGCPPubSubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
9041
9042 // MessagingGCPPubSubMessageOrderingKeyKey is the attribute Key conforming to
9043 // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
9044 // represents the ordering key for a given message. If the attribute is not
9045 // present, the message does not have an ordering key.
9046 //
9047 // Type: string
9048 // RequirementLevel: Recommended
9049 // Stability: Development
9050 //
9051 // Examples: ordering_key
9052 MessagingGCPPubSubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
9053
9054 // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
9055 // "messaging.kafka.message.key" semantic conventions. It represents the message
9056 // keys in Kafka are used for grouping alike messages to ensure they're
9057 // processed on the same partition. They differ from `messaging.message.id` in
9058 // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
9059 //
9060 // Type: string
9061 // RequirementLevel: Recommended
9062 // Stability: Development
9063 //
9064 // Examples: myKey
9065 // Note: If the key type is not string, it's string representation has to be
9066 // supplied for the attribute. If the key has no unambiguous, canonical string
9067 // form, don't include its value.
9068 MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
9069
9070 // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
9071 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
9072 // boolean that is true if the message is a tombstone.
9073 //
9074 // Type: boolean
9075 // RequirementLevel: Recommended
9076 // Stability: Development
9077 //
9078 // Examples:
9079 MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
9080
9081 // MessagingKafkaOffsetKey is the attribute Key conforming to the
9082 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
9083 // record in the corresponding Kafka partition.
9084 //
9085 // Type: int
9086 // RequirementLevel: Recommended
9087 // Stability: Development
9088 MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
9089
9090 // MessagingMessageBodySizeKey is the attribute Key conforming to the
9091 // "messaging.message.body.size" semantic conventions. It represents the size of
9092 // the message body in bytes.
9093 //
9094 // Type: int
9095 // RequirementLevel: Recommended
9096 // Stability: Development
9097 //
9098 // Note: This can refer to both the compressed or uncompressed body size. If
9099 // both sizes are known, the uncompressed
9100 // body size should be used.
9101 MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
9102
9103 // MessagingMessageConversationIDKey is the attribute Key conforming to the
9104 // "messaging.message.conversation_id" semantic conventions. It represents the
9105 // conversation ID identifying the conversation to which the message belongs,
9106 // represented as a string. Sometimes called "Correlation ID".
9107 //
9108 // Type: string
9109 // RequirementLevel: Recommended
9110 // Stability: Development
9111 //
9112 // Examples: MyConversationId
9113 MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
9114
9115 // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
9116 // "messaging.message.envelope.size" semantic conventions. It represents the
9117 // size of the message body and metadata in bytes.
9118 //
9119 // Type: int
9120 // RequirementLevel: Recommended
9121 // Stability: Development
9122 //
9123 // Note: This can refer to both the compressed or uncompressed size. If both
9124 // sizes are known, the uncompressed
9125 // size should be used.
9126 MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
9127
9128 // MessagingMessageIDKey is the attribute Key conforming to the
9129 // "messaging.message.id" semantic conventions. It represents a value used by
9130 // the messaging system as an identifier for the message, represented as a
9131 // string.
9132 //
9133 // Type: string
9134 // RequirementLevel: Recommended
9135 // Stability: Development
9136 //
9137 // Examples: 452a7c7c7c7048c2f887f61572b18fc2
9138 MessagingMessageIDKey = attribute.Key("messaging.message.id")
9139
9140 // MessagingOperationNameKey is the attribute Key conforming to the
9141 // "messaging.operation.name" semantic conventions. It represents the
9142 // system-specific name of the messaging operation.
9143 //
9144 // Type: string
9145 // RequirementLevel: Recommended
9146 // Stability: Development
9147 //
9148 // Examples: "ack", "nack", "send"
9149 MessagingOperationNameKey = attribute.Key("messaging.operation.name")
9150
9151 // MessagingOperationTypeKey is the attribute Key conforming to the
9152 // "messaging.operation.type" semantic conventions. It represents a string
9153 // identifying the type of the messaging operation.
9154 //
9155 // Type: Enum
9156 // RequirementLevel: Recommended
9157 // Stability: Development
9158 //
9159 // Examples:
9160 // Note: If a custom value is used, it MUST be of low cardinality.
9161 MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
9162
9163 // MessagingRabbitMQDestinationRoutingKeyKey is the attribute Key conforming to
9164 // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
9165 // represents the rabbitMQ message routing key.
9166 //
9167 // Type: string
9168 // RequirementLevel: Recommended
9169 // Stability: Development
9170 //
9171 // Examples: myKey
9172 MessagingRabbitMQDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
9173
9174 // MessagingRabbitMQMessageDeliveryTagKey is the attribute Key conforming to the
9175 // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
9176 // the rabbitMQ message delivery tag.
9177 //
9178 // Type: int
9179 // RequirementLevel: Recommended
9180 // Stability: Development
9181 MessagingRabbitMQMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
9182
9183 // MessagingRocketMQConsumptionModelKey is the attribute Key conforming to the
9184 // "messaging.rocketmq.consumption_model" semantic conventions. It represents
9185 // the model of message consumption. This only applies to consumer spans.
9186 //
9187 // Type: Enum
9188 // RequirementLevel: Recommended
9189 // Stability: Development
9190 //
9191 // Examples:
9192 MessagingRocketMQConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
9193
9194 // MessagingRocketMQMessageDelayTimeLevelKey is the attribute Key conforming to
9195 // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
9196 // represents the delay time level for delay message, which determines the
9197 // message delay time.
9198 //
9199 // Type: int
9200 // RequirementLevel: Recommended
9201 // Stability: Development
9202 MessagingRocketMQMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
9203
9204 // MessagingRocketMQMessageDeliveryTimestampKey is the attribute Key conforming
9205 // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
9206 // It represents the timestamp in milliseconds that the delay message is
9207 // expected to be delivered to consumer.
9208 //
9209 // Type: int
9210 // RequirementLevel: Recommended
9211 // Stability: Development
9212 MessagingRocketMQMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
9213
9214 // MessagingRocketMQMessageGroupKey is the attribute Key conforming to the
9215 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
9216 // is essential for FIFO message. Messages that belong to the same message group
9217 // are always processed one by one within the same consumer group.
9218 //
9219 // Type: string
9220 // RequirementLevel: Recommended
9221 // Stability: Development
9222 //
9223 // Examples: myMessageGroup
9224 MessagingRocketMQMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
9225
9226 // MessagingRocketMQMessageKeysKey is the attribute Key conforming to the
9227 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
9228 // key(s) of message, another way to mark message besides message id.
9229 //
9230 // Type: string[]
9231 // RequirementLevel: Recommended
9232 // Stability: Development
9233 //
9234 // Examples: "keyA", "keyB"
9235 MessagingRocketMQMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
9236
9237 // MessagingRocketMQMessageTagKey is the attribute Key conforming to the
9238 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
9239 // secondary classifier of message besides topic.
9240 //
9241 // Type: string
9242 // RequirementLevel: Recommended
9243 // Stability: Development
9244 //
9245 // Examples: tagA
9246 MessagingRocketMQMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
9247
9248 // MessagingRocketMQMessageTypeKey is the attribute Key conforming to the
9249 // "messaging.rocketmq.message.type" semantic conventions. It represents the
9250 // type of message.
9251 //
9252 // Type: Enum
9253 // RequirementLevel: Recommended
9254 // Stability: Development
9255 //
9256 // Examples:
9257 MessagingRocketMQMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
9258
9259 // MessagingRocketMQNamespaceKey is the attribute Key conforming to the
9260 // "messaging.rocketmq.namespace" semantic conventions. It represents the
9261 // namespace of RocketMQ resources, resources in different namespaces are
9262 // individual.
9263 //
9264 // Type: string
9265 // RequirementLevel: Recommended
9266 // Stability: Development
9267 //
9268 // Examples: myNamespace
9269 MessagingRocketMQNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
9270
9271 // MessagingServiceBusDispositionStatusKey is the attribute Key conforming to
9272 // the "messaging.servicebus.disposition_status" semantic conventions. It
9273 // represents the describes the [settlement type].
9274 //
9275 // Type: Enum
9276 // RequirementLevel: Recommended
9277 // Stability: Development
9278 //
9279 // Examples:
9280 //
9281 // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
9282 MessagingServiceBusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
9283
9284 // MessagingServiceBusMessageDeliveryCountKey is the attribute Key conforming to
9285 // the "messaging.servicebus.message.delivery_count" semantic conventions. It
9286 // represents the number of deliveries that have been attempted for this
9287 // message.
9288 //
9289 // Type: int
9290 // RequirementLevel: Recommended
9291 // Stability: Development
9292 MessagingServiceBusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
9293
9294 // MessagingServiceBusMessageEnqueuedTimeKey is the attribute Key conforming to
9295 // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
9296 // represents the UTC epoch seconds at which the message has been accepted and
9297 // stored in the entity.
9298 //
9299 // Type: int
9300 // RequirementLevel: Recommended
9301 // Stability: Development
9302 MessagingServiceBusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
9303
9304 // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
9305 // semantic conventions. It represents the messaging system as identified by the
9306 // client instrumentation.
9307 //
9308 // Type: Enum
9309 // RequirementLevel: Recommended
9310 // Stability: Development
9311 //
9312 // Examples:
9313 // Note: The actual messaging system may differ from the one known by the
9314 // client. For example, when using Kafka client libraries to communicate with
9315 // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
9316 // instrumentation's best knowledge.
9317 MessagingSystemKey = attribute.Key("messaging.system")
9318 )
9319
9320 // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
9321 // "messaging.batch.message_count" semantic conventions. It represents the number
9322 // of messages sent, received, or processed in the scope of the batching
9323 // operation.
9324 func MessagingBatchMessageCount(val int) attribute.KeyValue {
9325 return MessagingBatchMessageCountKey.Int(val)
9326 }
9327
9328 // MessagingClientID returns an attribute KeyValue conforming to the
9329 // "messaging.client.id" semantic conventions. It represents a unique identifier
9330 // for the client that consumes or produces a message.
9331 func MessagingClientID(val string) attribute.KeyValue {
9332 return MessagingClientIDKey.String(val)
9333 }
9334
9335 // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
9336 // "messaging.consumer.group.name" semantic conventions. It represents the name
9337 // of the consumer group with which a consumer is associated.
9338 func MessagingConsumerGroupName(val string) attribute.KeyValue {
9339 return MessagingConsumerGroupNameKey.String(val)
9340 }
9341
9342 // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
9343 // "messaging.destination.anonymous" semantic conventions. It represents a
9344 // boolean that is true if the message destination is anonymous (could be unnamed
9345 // or have auto-generated name).
9346 func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
9347 return MessagingDestinationAnonymousKey.Bool(val)
9348 }
9349
9350 // MessagingDestinationName returns an attribute KeyValue conforming to the
9351 // "messaging.destination.name" semantic conventions. It represents the message
9352 // destination name.
9353 func MessagingDestinationName(val string) attribute.KeyValue {
9354 return MessagingDestinationNameKey.String(val)
9355 }
9356
9357 // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
9358 // the "messaging.destination.partition.id" semantic conventions. It represents
9359 // the identifier of the partition messages are sent to or received from, unique
9360 // within the `messaging.destination.name`.
9361 func MessagingDestinationPartitionID(val string) attribute.KeyValue {
9362 return MessagingDestinationPartitionIDKey.String(val)
9363 }
9364
9365 // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
9366 // to the "messaging.destination.subscription.name" semantic conventions. It
9367 // represents the name of the destination subscription from which a message is
9368 // consumed.
9369 func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
9370 return MessagingDestinationSubscriptionNameKey.String(val)
9371 }
9372
9373 // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
9374 // "messaging.destination.template" semantic conventions. It represents the low
9375 // cardinality representation of the messaging destination name.
9376 func MessagingDestinationTemplate(val string) attribute.KeyValue {
9377 return MessagingDestinationTemplateKey.String(val)
9378 }
9379
9380 // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
9381 // "messaging.destination.temporary" semantic conventions. It represents a
9382 // boolean that is true if the message destination is temporary and might not
9383 // exist anymore after messages are processed.
9384 func MessagingDestinationTemporary(val bool) attribute.KeyValue {
9385 return MessagingDestinationTemporaryKey.Bool(val)
9386 }
9387
9388 // MessagingEventHubsMessageEnqueuedTime returns an attribute KeyValue conforming
9389 // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
9390 // represents the UTC epoch seconds at which the message has been accepted and
9391 // stored in the entity.
9392 func MessagingEventHubsMessageEnqueuedTime(val int) attribute.KeyValue {
9393 return MessagingEventHubsMessageEnqueuedTimeKey.Int(val)
9394 }
9395
9396 // MessagingGCPPubSubMessageAckDeadline returns an attribute KeyValue conforming
9397 // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
9398 // represents the ack deadline in seconds set for the modify ack deadline
9399 // request.
9400 func MessagingGCPPubSubMessageAckDeadline(val int) attribute.KeyValue {
9401 return MessagingGCPPubSubMessageAckDeadlineKey.Int(val)
9402 }
9403
9404 // MessagingGCPPubSubMessageAckID returns an attribute KeyValue conforming to the
9405 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
9406 // ack id for a given message.
9407 func MessagingGCPPubSubMessageAckID(val string) attribute.KeyValue {
9408 return MessagingGCPPubSubMessageAckIDKey.String(val)
9409 }
9410
9411 // MessagingGCPPubSubMessageDeliveryAttempt returns an attribute KeyValue
9412 // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
9413 // conventions. It represents the delivery attempt for a given message.
9414 func MessagingGCPPubSubMessageDeliveryAttempt(val int) attribute.KeyValue {
9415 return MessagingGCPPubSubMessageDeliveryAttemptKey.Int(val)
9416 }
9417
9418 // MessagingGCPPubSubMessageOrderingKey returns an attribute KeyValue conforming
9419 // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
9420 // represents the ordering key for a given message. If the attribute is not
9421 // present, the message does not have an ordering key.
9422 func MessagingGCPPubSubMessageOrderingKey(val string) attribute.KeyValue {
9423 return MessagingGCPPubSubMessageOrderingKeyKey.String(val)
9424 }
9425
9426 // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
9427 // "messaging.kafka.message.key" semantic conventions. It represents the message
9428 // keys in Kafka are used for grouping alike messages to ensure they're processed
9429 // on the same partition. They differ from `messaging.message.id` in that they're
9430 // not unique. If the key is `null`, the attribute MUST NOT be set.
9431 func MessagingKafkaMessageKey(val string) attribute.KeyValue {
9432 return MessagingKafkaMessageKeyKey.String(val)
9433 }
9434
9435 // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
9436 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
9437 // boolean that is true if the message is a tombstone.
9438 func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
9439 return MessagingKafkaMessageTombstoneKey.Bool(val)
9440 }
9441
9442 // MessagingKafkaOffset returns an attribute KeyValue conforming to the
9443 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
9444 // record in the corresponding Kafka partition.
9445 func MessagingKafkaOffset(val int) attribute.KeyValue {
9446 return MessagingKafkaOffsetKey.Int(val)
9447 }
9448
9449 // MessagingMessageBodySize returns an attribute KeyValue conforming to the
9450 // "messaging.message.body.size" semantic conventions. It represents the size of
9451 // the message body in bytes.
9452 func MessagingMessageBodySize(val int) attribute.KeyValue {
9453 return MessagingMessageBodySizeKey.Int(val)
9454 }
9455
9456 // MessagingMessageConversationID returns an attribute KeyValue conforming to the
9457 // "messaging.message.conversation_id" semantic conventions. It represents the
9458 // conversation ID identifying the conversation to which the message belongs,
9459 // represented as a string. Sometimes called "Correlation ID".
9460 func MessagingMessageConversationID(val string) attribute.KeyValue {
9461 return MessagingMessageConversationIDKey.String(val)
9462 }
9463
9464 // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
9465 // "messaging.message.envelope.size" semantic conventions. It represents the size
9466 // of the message body and metadata in bytes.
9467 func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
9468 return MessagingMessageEnvelopeSizeKey.Int(val)
9469 }
9470
9471 // MessagingMessageID returns an attribute KeyValue conforming to the
9472 // "messaging.message.id" semantic conventions. It represents a value used by the
9473 // messaging system as an identifier for the message, represented as a string.
9474 func MessagingMessageID(val string) attribute.KeyValue {
9475 return MessagingMessageIDKey.String(val)
9476 }
9477
9478 // MessagingOperationName returns an attribute KeyValue conforming to the
9479 // "messaging.operation.name" semantic conventions. It represents the
9480 // system-specific name of the messaging operation.
9481 func MessagingOperationName(val string) attribute.KeyValue {
9482 return MessagingOperationNameKey.String(val)
9483 }
9484
9485 // MessagingRabbitMQDestinationRoutingKey returns an attribute KeyValue
9486 // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
9487 // conventions. It represents the rabbitMQ message routing key.
9488 func MessagingRabbitMQDestinationRoutingKey(val string) attribute.KeyValue {
9489 return MessagingRabbitMQDestinationRoutingKeyKey.String(val)
9490 }
9491
9492 // MessagingRabbitMQMessageDeliveryTag returns an attribute KeyValue conforming
9493 // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
9494 // represents the rabbitMQ message delivery tag.
9495 func MessagingRabbitMQMessageDeliveryTag(val int) attribute.KeyValue {
9496 return MessagingRabbitMQMessageDeliveryTagKey.Int(val)
9497 }
9498
9499 // MessagingRocketMQMessageDelayTimeLevel returns an attribute KeyValue
9500 // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
9501 // conventions. It represents the delay time level for delay message, which
9502 // determines the message delay time.
9503 func MessagingRocketMQMessageDelayTimeLevel(val int) attribute.KeyValue {
9504 return MessagingRocketMQMessageDelayTimeLevelKey.Int(val)
9505 }
9506
9507 // MessagingRocketMQMessageDeliveryTimestamp returns an attribute KeyValue
9508 // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
9509 // conventions. It represents the timestamp in milliseconds that the delay
9510 // message is expected to be delivered to consumer.
9511 func MessagingRocketMQMessageDeliveryTimestamp(val int) attribute.KeyValue {
9512 return MessagingRocketMQMessageDeliveryTimestampKey.Int(val)
9513 }
9514
9515 // MessagingRocketMQMessageGroup returns an attribute KeyValue conforming to the
9516 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
9517 // is essential for FIFO message. Messages that belong to the same message group
9518 // are always processed one by one within the same consumer group.
9519 func MessagingRocketMQMessageGroup(val string) attribute.KeyValue {
9520 return MessagingRocketMQMessageGroupKey.String(val)
9521 }
9522
9523 // MessagingRocketMQMessageKeys returns an attribute KeyValue conforming to the
9524 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
9525 // key(s) of message, another way to mark message besides message id.
9526 func MessagingRocketMQMessageKeys(val ...string) attribute.KeyValue {
9527 return MessagingRocketMQMessageKeysKey.StringSlice(val)
9528 }
9529
9530 // MessagingRocketMQMessageTag returns an attribute KeyValue conforming to the
9531 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
9532 // secondary classifier of message besides topic.
9533 func MessagingRocketMQMessageTag(val string) attribute.KeyValue {
9534 return MessagingRocketMQMessageTagKey.String(val)
9535 }
9536
9537 // MessagingRocketMQNamespace returns an attribute KeyValue conforming to the
9538 // "messaging.rocketmq.namespace" semantic conventions. It represents the
9539 // namespace of RocketMQ resources, resources in different namespaces are
9540 // individual.
9541 func MessagingRocketMQNamespace(val string) attribute.KeyValue {
9542 return MessagingRocketMQNamespaceKey.String(val)
9543 }
9544
9545 // MessagingServiceBusMessageDeliveryCount returns an attribute KeyValue
9546 // conforming to the "messaging.servicebus.message.delivery_count" semantic
9547 // conventions. It represents the number of deliveries that have been attempted
9548 // for this message.
9549 func MessagingServiceBusMessageDeliveryCount(val int) attribute.KeyValue {
9550 return MessagingServiceBusMessageDeliveryCountKey.Int(val)
9551 }
9552
9553 // MessagingServiceBusMessageEnqueuedTime returns an attribute KeyValue
9554 // conforming to the "messaging.servicebus.message.enqueued_time" semantic
9555 // conventions. It represents the UTC epoch seconds at which the message has been
9556 // accepted and stored in the entity.
9557 func MessagingServiceBusMessageEnqueuedTime(val int) attribute.KeyValue {
9558 return MessagingServiceBusMessageEnqueuedTimeKey.Int(val)
9559 }
9560
9561 // Enum values for messaging.operation.type
9562 var (
9563 // A message is created. "Create" spans always refer to a single message and are
9564 // used to provide a unique creation context for messages in batch sending
9565 // scenarios.
9566 //
9567 // Stability: development
9568 MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
9569 // One or more messages are provided for sending to an intermediary. If a single
9570 // message is sent, the context of the "Send" span can be used as the creation
9571 // context and no "Create" span needs to be created.
9572 //
9573 // Stability: development
9574 MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
9575 // One or more messages are requested by a consumer. This operation refers to
9576 // pull-based scenarios, where consumers explicitly call methods of messaging
9577 // SDKs to receive messages.
9578 //
9579 // Stability: development
9580 MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
9581 // One or more messages are processed by a consumer.
9582 //
9583 // Stability: development
9584 MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
9585 // One or more messages are settled.
9586 //
9587 // Stability: development
9588 MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
9589 )
9590
9591 // Enum values for messaging.rocketmq.consumption_model
9592 var (
9593 // Clustering consumption model
9594 // Stability: development
9595 MessagingRocketMQConsumptionModelClustering = MessagingRocketMQConsumptionModelKey.String("clustering")
9596 // Broadcasting consumption model
9597 // Stability: development
9598 MessagingRocketMQConsumptionModelBroadcasting = MessagingRocketMQConsumptionModelKey.String("broadcasting")
9599 )
9600
9601 // Enum values for messaging.rocketmq.message.type
9602 var (
9603 // Normal message
9604 // Stability: development
9605 MessagingRocketMQMessageTypeNormal = MessagingRocketMQMessageTypeKey.String("normal")
9606 // FIFO message
9607 // Stability: development
9608 MessagingRocketMQMessageTypeFifo = MessagingRocketMQMessageTypeKey.String("fifo")
9609 // Delay message
9610 // Stability: development
9611 MessagingRocketMQMessageTypeDelay = MessagingRocketMQMessageTypeKey.String("delay")
9612 // Transaction message
9613 // Stability: development
9614 MessagingRocketMQMessageTypeTransaction = MessagingRocketMQMessageTypeKey.String("transaction")
9615 )
9616
9617 // Enum values for messaging.servicebus.disposition_status
9618 var (
9619 // Message is completed
9620 // Stability: development
9621 MessagingServiceBusDispositionStatusComplete = MessagingServiceBusDispositionStatusKey.String("complete")
9622 // Message is abandoned
9623 // Stability: development
9624 MessagingServiceBusDispositionStatusAbandon = MessagingServiceBusDispositionStatusKey.String("abandon")
9625 // Message is sent to dead letter queue
9626 // Stability: development
9627 MessagingServiceBusDispositionStatusDeadLetter = MessagingServiceBusDispositionStatusKey.String("dead_letter")
9628 // Message is deferred
9629 // Stability: development
9630 MessagingServiceBusDispositionStatusDefer = MessagingServiceBusDispositionStatusKey.String("defer")
9631 )
9632
9633 // Enum values for messaging.system
9634 var (
9635 // Apache ActiveMQ
9636 // Stability: development
9637 MessagingSystemActiveMQ = MessagingSystemKey.String("activemq")
9638 // Amazon Simple Queue Service (SQS)
9639 // Stability: development
9640 MessagingSystemAWSSQS = MessagingSystemKey.String("aws_sqs")
9641 // Azure Event Grid
9642 // Stability: development
9643 MessagingSystemEventGrid = MessagingSystemKey.String("eventgrid")
9644 // Azure Event Hubs
9645 // Stability: development
9646 MessagingSystemEventHubs = MessagingSystemKey.String("eventhubs")
9647 // Azure Service Bus
9648 // Stability: development
9649 MessagingSystemServiceBus = MessagingSystemKey.String("servicebus")
9650 // Google Cloud Pub/Sub
9651 // Stability: development
9652 MessagingSystemGCPPubSub = MessagingSystemKey.String("gcp_pubsub")
9653 // Java Message Service
9654 // Stability: development
9655 MessagingSystemJMS = MessagingSystemKey.String("jms")
9656 // Apache Kafka
9657 // Stability: development
9658 MessagingSystemKafka = MessagingSystemKey.String("kafka")
9659 // RabbitMQ
9660 // Stability: development
9661 MessagingSystemRabbitMQ = MessagingSystemKey.String("rabbitmq")
9662 // Apache RocketMQ
9663 // Stability: development
9664 MessagingSystemRocketMQ = MessagingSystemKey.String("rocketmq")
9665 // Apache Pulsar
9666 // Stability: development
9667 MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
9668 )
9669
9670 // Namespace: network
9671 const (
9672 // NetworkCarrierICCKey is the attribute Key conforming to the
9673 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
9674 // alpha-2 2-character country code associated with the mobile carrier network.
9675 //
9676 // Type: string
9677 // RequirementLevel: Recommended
9678 // Stability: Development
9679 //
9680 // Examples: DE
9681 NetworkCarrierICCKey = attribute.Key("network.carrier.icc")
9682
9683 // NetworkCarrierMCCKey is the attribute Key conforming to the
9684 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
9685 // country code.
9686 //
9687 // Type: string
9688 // RequirementLevel: Recommended
9689 // Stability: Development
9690 //
9691 // Examples: 310
9692 NetworkCarrierMCCKey = attribute.Key("network.carrier.mcc")
9693
9694 // NetworkCarrierMNCKey is the attribute Key conforming to the
9695 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
9696 // network code.
9697 //
9698 // Type: string
9699 // RequirementLevel: Recommended
9700 // Stability: Development
9701 //
9702 // Examples: 001
9703 NetworkCarrierMNCKey = attribute.Key("network.carrier.mnc")
9704
9705 // NetworkCarrierNameKey is the attribute Key conforming to the
9706 // "network.carrier.name" semantic conventions. It represents the name of the
9707 // mobile carrier.
9708 //
9709 // Type: string
9710 // RequirementLevel: Recommended
9711 // Stability: Development
9712 //
9713 // Examples: sprint
9714 NetworkCarrierNameKey = attribute.Key("network.carrier.name")
9715
9716 // NetworkConnectionStateKey is the attribute Key conforming to the
9717 // "network.connection.state" semantic conventions. It represents the state of
9718 // network connection.
9719 //
9720 // Type: Enum
9721 // RequirementLevel: Recommended
9722 // Stability: Development
9723 //
9724 // Examples: "close_wait"
9725 // Note: Connection states are defined as part of the [rfc9293]
9726 //
9727 // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2
9728 NetworkConnectionStateKey = attribute.Key("network.connection.state")
9729
9730 // NetworkConnectionSubtypeKey is the attribute Key conforming to the
9731 // "network.connection.subtype" semantic conventions. It represents the this
9732 // describes more details regarding the connection.type. It may be the type of
9733 // cell technology connection, but it could be used for describing details about
9734 // a wifi connection.
9735 //
9736 // Type: Enum
9737 // RequirementLevel: Recommended
9738 // Stability: Development
9739 //
9740 // Examples: LTE
9741 NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
9742
9743 // NetworkConnectionTypeKey is the attribute Key conforming to the
9744 // "network.connection.type" semantic conventions. It represents the internet
9745 // connection type.
9746 //
9747 // Type: Enum
9748 // RequirementLevel: Recommended
9749 // Stability: Development
9750 //
9751 // Examples: wifi
9752 NetworkConnectionTypeKey = attribute.Key("network.connection.type")
9753
9754 // NetworkInterfaceNameKey is the attribute Key conforming to the
9755 // "network.interface.name" semantic conventions. It represents the network
9756 // interface name.
9757 //
9758 // Type: string
9759 // RequirementLevel: Recommended
9760 // Stability: Development
9761 //
9762 // Examples: "lo", "eth0"
9763 NetworkInterfaceNameKey = attribute.Key("network.interface.name")
9764
9765 // NetworkIODirectionKey is the attribute Key conforming to the
9766 // "network.io.direction" semantic conventions. It represents the network IO
9767 // operation direction.
9768 //
9769 // Type: Enum
9770 // RequirementLevel: Recommended
9771 // Stability: Development
9772 //
9773 // Examples: "transmit"
9774 NetworkIODirectionKey = attribute.Key("network.io.direction")
9775
9776 // NetworkLocalAddressKey is the attribute Key conforming to the
9777 // "network.local.address" semantic conventions. It represents the local address
9778 // of the network connection - IP address or Unix domain socket name.
9779 //
9780 // Type: string
9781 // RequirementLevel: Recommended
9782 // Stability: Stable
9783 //
9784 // Examples: "10.1.2.80", "/tmp/my.sock"
9785 NetworkLocalAddressKey = attribute.Key("network.local.address")
9786
9787 // NetworkLocalPortKey is the attribute Key conforming to the
9788 // "network.local.port" semantic conventions. It represents the local port
9789 // number of the network connection.
9790 //
9791 // Type: int
9792 // RequirementLevel: Recommended
9793 // Stability: Stable
9794 //
9795 // Examples: 65123
9796 NetworkLocalPortKey = attribute.Key("network.local.port")
9797
9798 // NetworkPeerAddressKey is the attribute Key conforming to the
9799 // "network.peer.address" semantic conventions. It represents the peer address
9800 // of the network connection - IP address or Unix domain socket name.
9801 //
9802 // Type: string
9803 // RequirementLevel: Recommended
9804 // Stability: Stable
9805 //
9806 // Examples: "10.1.2.80", "/tmp/my.sock"
9807 NetworkPeerAddressKey = attribute.Key("network.peer.address")
9808
9809 // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
9810 // semantic conventions. It represents the peer port number of the network
9811 // connection.
9812 //
9813 // Type: int
9814 // RequirementLevel: Recommended
9815 // Stability: Stable
9816 //
9817 // Examples: 65123
9818 NetworkPeerPortKey = attribute.Key("network.peer.port")
9819
9820 // NetworkProtocolNameKey is the attribute Key conforming to the
9821 // "network.protocol.name" semantic conventions. It represents the
9822 // [OSI application layer] or non-OSI equivalent.
9823 //
9824 // Type: string
9825 // RequirementLevel: Recommended
9826 // Stability: Stable
9827 //
9828 // Examples: "amqp", "http", "mqtt"
9829 // Note: The value SHOULD be normalized to lowercase.
9830 //
9831 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
9832 NetworkProtocolNameKey = attribute.Key("network.protocol.name")
9833
9834 // NetworkProtocolVersionKey is the attribute Key conforming to the
9835 // "network.protocol.version" semantic conventions. It represents the actual
9836 // version of the protocol used for network communication.
9837 //
9838 // Type: string
9839 // RequirementLevel: Recommended
9840 // Stability: Stable
9841 //
9842 // Examples: "1.1", "2"
9843 // Note: If protocol version is subject to negotiation (for example using [ALPN]
9844 // ), this attribute SHOULD be set to the negotiated version. If the actual
9845 // protocol version is not known, this attribute SHOULD NOT be set.
9846 //
9847 // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
9848 NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
9849
9850 // NetworkTransportKey is the attribute Key conforming to the
9851 // "network.transport" semantic conventions. It represents the
9852 // [OSI transport layer] or [inter-process communication method].
9853 //
9854 // Type: Enum
9855 // RequirementLevel: Recommended
9856 // Stability: Stable
9857 //
9858 // Examples: "tcp", "udp"
9859 // Note: The value SHOULD be normalized to lowercase.
9860 //
9861 // Consider always setting the transport when setting a port number, since
9862 // a port number is ambiguous without knowing the transport. For example
9863 // different processes could be listening on TCP port 12345 and UDP port 12345.
9864 //
9865 // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer
9866 // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
9867 NetworkTransportKey = attribute.Key("network.transport")
9868
9869 // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
9870 // conventions. It represents the [OSI network layer] or non-OSI equivalent.
9871 //
9872 // Type: Enum
9873 // RequirementLevel: Recommended
9874 // Stability: Stable
9875 //
9876 // Examples: "ipv4", "ipv6"
9877 // Note: The value SHOULD be normalized to lowercase.
9878 //
9879 // [OSI network layer]: https://wikipedia.org/wiki/Network_layer
9880 NetworkTypeKey = attribute.Key("network.type")
9881 )
9882
9883 // NetworkCarrierICC returns an attribute KeyValue conforming to the
9884 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
9885 // alpha-2 2-character country code associated with the mobile carrier network.
9886 func NetworkCarrierICC(val string) attribute.KeyValue {
9887 return NetworkCarrierICCKey.String(val)
9888 }
9889
9890 // NetworkCarrierMCC returns an attribute KeyValue conforming to the
9891 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
9892 // country code.
9893 func NetworkCarrierMCC(val string) attribute.KeyValue {
9894 return NetworkCarrierMCCKey.String(val)
9895 }
9896
9897 // NetworkCarrierMNC returns an attribute KeyValue conforming to the
9898 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
9899 // network code.
9900 func NetworkCarrierMNC(val string) attribute.KeyValue {
9901 return NetworkCarrierMNCKey.String(val)
9902 }
9903
9904 // NetworkCarrierName returns an attribute KeyValue conforming to the
9905 // "network.carrier.name" semantic conventions. It represents the name of the
9906 // mobile carrier.
9907 func NetworkCarrierName(val string) attribute.KeyValue {
9908 return NetworkCarrierNameKey.String(val)
9909 }
9910
9911 // NetworkInterfaceName returns an attribute KeyValue conforming to the
9912 // "network.interface.name" semantic conventions. It represents the network
9913 // interface name.
9914 func NetworkInterfaceName(val string) attribute.KeyValue {
9915 return NetworkInterfaceNameKey.String(val)
9916 }
9917
9918 // NetworkLocalAddress returns an attribute KeyValue conforming to the
9919 // "network.local.address" semantic conventions. It represents the local address
9920 // of the network connection - IP address or Unix domain socket name.
9921 func NetworkLocalAddress(val string) attribute.KeyValue {
9922 return NetworkLocalAddressKey.String(val)
9923 }
9924
9925 // NetworkLocalPort returns an attribute KeyValue conforming to the
9926 // "network.local.port" semantic conventions. It represents the local port number
9927 // of the network connection.
9928 func NetworkLocalPort(val int) attribute.KeyValue {
9929 return NetworkLocalPortKey.Int(val)
9930 }
9931
9932 // NetworkPeerAddress returns an attribute KeyValue conforming to the
9933 // "network.peer.address" semantic conventions. It represents the peer address of
9934 // the network connection - IP address or Unix domain socket name.
9935 func NetworkPeerAddress(val string) attribute.KeyValue {
9936 return NetworkPeerAddressKey.String(val)
9937 }
9938
9939 // NetworkPeerPort returns an attribute KeyValue conforming to the
9940 // "network.peer.port" semantic conventions. It represents the peer port number
9941 // of the network connection.
9942 func NetworkPeerPort(val int) attribute.KeyValue {
9943 return NetworkPeerPortKey.Int(val)
9944 }
9945
9946 // NetworkProtocolName returns an attribute KeyValue conforming to the
9947 // "network.protocol.name" semantic conventions. It represents the
9948 // [OSI application layer] or non-OSI equivalent.
9949 //
9950 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
9951 func NetworkProtocolName(val string) attribute.KeyValue {
9952 return NetworkProtocolNameKey.String(val)
9953 }
9954
9955 // NetworkProtocolVersion returns an attribute KeyValue conforming to the
9956 // "network.protocol.version" semantic conventions. It represents the actual
9957 // version of the protocol used for network communication.
9958 func NetworkProtocolVersion(val string) attribute.KeyValue {
9959 return NetworkProtocolVersionKey.String(val)
9960 }
9961
9962 // Enum values for network.connection.state
9963 var (
9964 // closed
9965 // Stability: development
9966 NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed")
9967 // close_wait
9968 // Stability: development
9969 NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait")
9970 // closing
9971 // Stability: development
9972 NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing")
9973 // established
9974 // Stability: development
9975 NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established")
9976 // fin_wait_1
9977 // Stability: development
9978 NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1")
9979 // fin_wait_2
9980 // Stability: development
9981 NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2")
9982 // last_ack
9983 // Stability: development
9984 NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack")
9985 // listen
9986 // Stability: development
9987 NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen")
9988 // syn_received
9989 // Stability: development
9990 NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received")
9991 // syn_sent
9992 // Stability: development
9993 NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent")
9994 // time_wait
9995 // Stability: development
9996 NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait")
9997 )
9998
9999 // Enum values for network.connection.subtype
10000 var (
10001 // GPRS
10002 // Stability: development
10003 NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
10004 // EDGE
10005 // Stability: development
10006 NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
10007 // UMTS
10008 // Stability: development
10009 NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
10010 // CDMA
10011 // Stability: development
10012 NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
10013 // EVDO Rel. 0
10014 // Stability: development
10015 NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
10016 // EVDO Rev. A
10017 // Stability: development
10018 NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
10019 // CDMA2000 1XRTT
10020 // Stability: development
10021 NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
10022 // HSDPA
10023 // Stability: development
10024 NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
10025 // HSUPA
10026 // Stability: development
10027 NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
10028 // HSPA
10029 // Stability: development
10030 NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
10031 // IDEN
10032 // Stability: development
10033 NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
10034 // EVDO Rev. B
10035 // Stability: development
10036 NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
10037 // LTE
10038 // Stability: development
10039 NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
10040 // EHRPD
10041 // Stability: development
10042 NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
10043 // HSPAP
10044 // Stability: development
10045 NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
10046 // GSM
10047 // Stability: development
10048 NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
10049 // TD-SCDMA
10050 // Stability: development
10051 NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
10052 // IWLAN
10053 // Stability: development
10054 NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
10055 // 5G NR (New Radio)
10056 // Stability: development
10057 NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
10058 // 5G NRNSA (New Radio Non-Standalone)
10059 // Stability: development
10060 NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
10061 // LTE CA
10062 // Stability: development
10063 NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
10064 )
10065
10066 // Enum values for network.connection.type
10067 var (
10068 // wifi
10069 // Stability: development
10070 NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
10071 // wired
10072 // Stability: development
10073 NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
10074 // cell
10075 // Stability: development
10076 NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
10077 // unavailable
10078 // Stability: development
10079 NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
10080 // unknown
10081 // Stability: development
10082 NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
10083 )
10084
10085 // Enum values for network.io.direction
10086 var (
10087 // transmit
10088 // Stability: development
10089 NetworkIODirectionTransmit = NetworkIODirectionKey.String("transmit")
10090 // receive
10091 // Stability: development
10092 NetworkIODirectionReceive = NetworkIODirectionKey.String("receive")
10093 )
10094
10095 // Enum values for network.transport
10096 var (
10097 // TCP
10098 // Stability: stable
10099 NetworkTransportTCP = NetworkTransportKey.String("tcp")
10100 // UDP
10101 // Stability: stable
10102 NetworkTransportUDP = NetworkTransportKey.String("udp")
10103 // Named or anonymous pipe.
10104 // Stability: stable
10105 NetworkTransportPipe = NetworkTransportKey.String("pipe")
10106 // Unix domain socket
10107 // Stability: stable
10108 NetworkTransportUnix = NetworkTransportKey.String("unix")
10109 // QUIC
10110 // Stability: stable
10111 NetworkTransportQUIC = NetworkTransportKey.String("quic")
10112 )
10113
10114 // Enum values for network.type
10115 var (
10116 // IPv4
10117 // Stability: stable
10118 NetworkTypeIPv4 = NetworkTypeKey.String("ipv4")
10119 // IPv6
10120 // Stability: stable
10121 NetworkTypeIPv6 = NetworkTypeKey.String("ipv6")
10122 )
10123
10124 // Namespace: oci
10125 const (
10126 // OCIManifestDigestKey is the attribute Key conforming to the
10127 // "oci.manifest.digest" semantic conventions. It represents the digest of the
10128 // OCI image manifest. For container images specifically is the digest by which
10129 // the container image is known.
10130 //
10131 // Type: string
10132 // RequirementLevel: Recommended
10133 // Stability: Development
10134 //
10135 // Examples:
10136 // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
10137 // Note: Follows [OCI Image Manifest Specification], and specifically the
10138 // [Digest property].
10139 // An example can be found in [Example Image Manifest].
10140 //
10141 // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
10142 // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
10143 // [Example Image Manifest]: https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest
10144 OCIManifestDigestKey = attribute.Key("oci.manifest.digest")
10145 )
10146
10147 // OCIManifestDigest returns an attribute KeyValue conforming to the
10148 // "oci.manifest.digest" semantic conventions. It represents the digest of the
10149 // OCI image manifest. For container images specifically is the digest by which
10150 // the container image is known.
10151 func OCIManifestDigest(val string) attribute.KeyValue {
10152 return OCIManifestDigestKey.String(val)
10153 }
10154
10155 // Namespace: opentracing
10156 const (
10157 // OpenTracingRefTypeKey is the attribute Key conforming to the
10158 // "opentracing.ref_type" semantic conventions. It represents the parent-child
10159 // Reference type.
10160 //
10161 // Type: Enum
10162 // RequirementLevel: Recommended
10163 // Stability: Development
10164 //
10165 // Examples:
10166 // Note: The causal relationship between a child Span and a parent Span.
10167 OpenTracingRefTypeKey = attribute.Key("opentracing.ref_type")
10168 )
10169
10170 // Enum values for opentracing.ref_type
10171 var (
10172 // The parent Span depends on the child Span in some capacity
10173 // Stability: development
10174 OpenTracingRefTypeChildOf = OpenTracingRefTypeKey.String("child_of")
10175 // The parent Span doesn't depend in any way on the result of the child Span
10176 // Stability: development
10177 OpenTracingRefTypeFollowsFrom = OpenTracingRefTypeKey.String("follows_from")
10178 )
10179
10180 // Namespace: os
10181 const (
10182 // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
10183 // conventions. It represents the unique identifier for a particular build or
10184 // compilation of the operating system.
10185 //
10186 // Type: string
10187 // RequirementLevel: Recommended
10188 // Stability: Development
10189 //
10190 // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
10191 OSBuildIDKey = attribute.Key("os.build_id")
10192
10193 // OSDescriptionKey is the attribute Key conforming to the "os.description"
10194 // semantic conventions. It represents the human readable (not intended to be
10195 // parsed) OS version information, like e.g. reported by `ver` or
10196 // `lsb_release -a` commands.
10197 //
10198 // Type: string
10199 // RequirementLevel: Recommended
10200 // Stability: Development
10201 //
10202 // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
10203 OSDescriptionKey = attribute.Key("os.description")
10204
10205 // OSNameKey is the attribute Key conforming to the "os.name" semantic
10206 // conventions. It represents the human readable operating system name.
10207 //
10208 // Type: string
10209 // RequirementLevel: Recommended
10210 // Stability: Development
10211 //
10212 // Examples: "iOS", "Android", "Ubuntu"
10213 OSNameKey = attribute.Key("os.name")
10214
10215 // OSTypeKey is the attribute Key conforming to the "os.type" semantic
10216 // conventions. It represents the operating system type.
10217 //
10218 // Type: Enum
10219 // RequirementLevel: Recommended
10220 // Stability: Development
10221 //
10222 // Examples:
10223 OSTypeKey = attribute.Key("os.type")
10224
10225 // OSVersionKey is the attribute Key conforming to the "os.version" semantic
10226 // conventions. It represents the version string of the operating system as
10227 // defined in [Version Attributes].
10228 //
10229 // Type: string
10230 // RequirementLevel: Recommended
10231 // Stability: Development
10232 //
10233 // Examples: "14.2.1", "18.04.1"
10234 //
10235 // [Version Attributes]: /docs/resource/README.md#version-attributes
10236 OSVersionKey = attribute.Key("os.version")
10237 )
10238
10239 // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
10240 // semantic conventions. It represents the unique identifier for a particular
10241 // build or compilation of the operating system.
10242 func OSBuildID(val string) attribute.KeyValue {
10243 return OSBuildIDKey.String(val)
10244 }
10245
10246 // OSDescription returns an attribute KeyValue conforming to the "os.description"
10247 // semantic conventions. It represents the human readable (not intended to be
10248 // parsed) OS version information, like e.g. reported by `ver` or
10249 // `lsb_release -a` commands.
10250 func OSDescription(val string) attribute.KeyValue {
10251 return OSDescriptionKey.String(val)
10252 }
10253
10254 // OSName returns an attribute KeyValue conforming to the "os.name" semantic
10255 // conventions. It represents the human readable operating system name.
10256 func OSName(val string) attribute.KeyValue {
10257 return OSNameKey.String(val)
10258 }
10259
10260 // OSVersion returns an attribute KeyValue conforming to the "os.version"
10261 // semantic conventions. It represents the version string of the operating system
10262 // as defined in [Version Attributes].
10263 //
10264 // [Version Attributes]: /docs/resource/README.md#version-attributes
10265 func OSVersion(val string) attribute.KeyValue {
10266 return OSVersionKey.String(val)
10267 }
10268
10269 // Enum values for os.type
10270 var (
10271 // Microsoft Windows
10272 // Stability: development
10273 OSTypeWindows = OSTypeKey.String("windows")
10274 // Linux
10275 // Stability: development
10276 OSTypeLinux = OSTypeKey.String("linux")
10277 // Apple Darwin
10278 // Stability: development
10279 OSTypeDarwin = OSTypeKey.String("darwin")
10280 // FreeBSD
10281 // Stability: development
10282 OSTypeFreeBSD = OSTypeKey.String("freebsd")
10283 // NetBSD
10284 // Stability: development
10285 OSTypeNetBSD = OSTypeKey.String("netbsd")
10286 // OpenBSD
10287 // Stability: development
10288 OSTypeOpenBSD = OSTypeKey.String("openbsd")
10289 // DragonFly BSD
10290 // Stability: development
10291 OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
10292 // HP-UX (Hewlett Packard Unix)
10293 // Stability: development
10294 OSTypeHPUX = OSTypeKey.String("hpux")
10295 // AIX (Advanced Interactive eXecutive)
10296 // Stability: development
10297 OSTypeAIX = OSTypeKey.String("aix")
10298 // SunOS, Oracle Solaris
10299 // Stability: development
10300 OSTypeSolaris = OSTypeKey.String("solaris")
10301 // IBM z/OS
10302 // Stability: development
10303 OSTypeZOS = OSTypeKey.String("zos")
10304 )
10305
10306 // Namespace: otel
10307 const (
10308 // OTelComponentNameKey is the attribute Key conforming to the
10309 // "otel.component.name" semantic conventions. It represents a name uniquely
10310 // identifying the instance of the OpenTelemetry component within its containing
10311 // SDK instance.
10312 //
10313 // Type: string
10314 // RequirementLevel: Recommended
10315 // Stability: Development
10316 //
10317 // Examples: "otlp_grpc_span_exporter/0", "custom-name"
10318 // Note: Implementations SHOULD ensure a low cardinality for this attribute,
10319 // even across application or SDK restarts.
10320 // E.g. implementations MUST NOT use UUIDs as values for this attribute.
10321 //
10322 // Implementations MAY achieve these goals by following a
10323 // `<otel.component.type>/<instance-counter>` pattern, e.g.
10324 // `batching_span_processor/0`.
10325 // Hereby `otel.component.type` refers to the corresponding attribute value of
10326 // the component.
10327 //
10328 // The value of `instance-counter` MAY be automatically assigned by the
10329 // component and uniqueness within the enclosing SDK instance MUST be
10330 // guaranteed.
10331 // For example, `<instance-counter>` MAY be implemented by using a monotonically
10332 // increasing counter (starting with `0`), which is incremented every time an
10333 // instance of the given component type is started.
10334 //
10335 // With this implementation, for example the first Batching Span Processor would
10336 // have `batching_span_processor/0`
10337 // as `otel.component.name`, the second one `batching_span_processor/1` and so
10338 // on.
10339 // These values will therefore be reused in the case of an application restart.
10340 OTelComponentNameKey = attribute.Key("otel.component.name")
10341
10342 // OTelComponentTypeKey is the attribute Key conforming to the
10343 // "otel.component.type" semantic conventions. It represents a name identifying
10344 // the type of the OpenTelemetry component.
10345 //
10346 // Type: Enum
10347 // RequirementLevel: Recommended
10348 // Stability: Development
10349 //
10350 // Examples: "batching_span_processor", "com.example.MySpanExporter"
10351 // Note: If none of the standardized values apply, implementations SHOULD use
10352 // the language-defined name of the type.
10353 // E.g. for Java the fully qualified classname SHOULD be used in this case.
10354 OTelComponentTypeKey = attribute.Key("otel.component.type")
10355
10356 // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
10357 // semantic conventions. It represents the name of the instrumentation scope - (
10358 // `InstrumentationScope.Name` in OTLP).
10359 //
10360 // Type: string
10361 // RequirementLevel: Recommended
10362 // Stability: Stable
10363 //
10364 // Examples: "io.opentelemetry.contrib.mongodb"
10365 OTelScopeNameKey = attribute.Key("otel.scope.name")
10366
10367 // OTelScopeVersionKey is the attribute Key conforming to the
10368 // "otel.scope.version" semantic conventions. It represents the version of the
10369 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
10370 //
10371 // Type: string
10372 // RequirementLevel: Recommended
10373 // Stability: Stable
10374 //
10375 // Examples: "1.0.0"
10376 OTelScopeVersionKey = attribute.Key("otel.scope.version")
10377
10378 // OTelSpanParentOriginKey is the attribute Key conforming to the
10379 // "otel.span.parent.origin" semantic conventions. It represents the determines
10380 // whether the span has a parent span, and if so,
10381 // [whether it is a remote parent].
10382 //
10383 // Type: Enum
10384 // RequirementLevel: Recommended
10385 // Stability: Development
10386 //
10387 // Examples:
10388 //
10389 // [whether it is a remote parent]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
10390 OTelSpanParentOriginKey = attribute.Key("otel.span.parent.origin")
10391
10392 // OTelSpanSamplingResultKey is the attribute Key conforming to the
10393 // "otel.span.sampling_result" semantic conventions. It represents the result
10394 // value of the sampler for this span.
10395 //
10396 // Type: Enum
10397 // RequirementLevel: Recommended
10398 // Stability: Development
10399 //
10400 // Examples:
10401 OTelSpanSamplingResultKey = attribute.Key("otel.span.sampling_result")
10402
10403 // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
10404 // semantic conventions. It represents the name of the code, either "OK" or
10405 // "ERROR". MUST NOT be set if the status code is UNSET.
10406 //
10407 // Type: Enum
10408 // RequirementLevel: Recommended
10409 // Stability: Stable
10410 //
10411 // Examples:
10412 OTelStatusCodeKey = attribute.Key("otel.status_code")
10413
10414 // OTelStatusDescriptionKey is the attribute Key conforming to the
10415 // "otel.status_description" semantic conventions. It represents the description
10416 // of the Status if it has a value, otherwise not set.
10417 //
10418 // Type: string
10419 // RequirementLevel: Recommended
10420 // Stability: Stable
10421 //
10422 // Examples: "resource not found"
10423 OTelStatusDescriptionKey = attribute.Key("otel.status_description")
10424 )
10425
10426 // OTelComponentName returns an attribute KeyValue conforming to the
10427 // "otel.component.name" semantic conventions. It represents a name uniquely
10428 // identifying the instance of the OpenTelemetry component within its containing
10429 // SDK instance.
10430 func OTelComponentName(val string) attribute.KeyValue {
10431 return OTelComponentNameKey.String(val)
10432 }
10433
10434 // OTelScopeName returns an attribute KeyValue conforming to the
10435 // "otel.scope.name" semantic conventions. It represents the name of the
10436 // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
10437 func OTelScopeName(val string) attribute.KeyValue {
10438 return OTelScopeNameKey.String(val)
10439 }
10440
10441 // OTelScopeVersion returns an attribute KeyValue conforming to the
10442 // "otel.scope.version" semantic conventions. It represents the version of the
10443 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
10444 func OTelScopeVersion(val string) attribute.KeyValue {
10445 return OTelScopeVersionKey.String(val)
10446 }
10447
10448 // OTelStatusDescription returns an attribute KeyValue conforming to the
10449 // "otel.status_description" semantic conventions. It represents the description
10450 // of the Status if it has a value, otherwise not set.
10451 func OTelStatusDescription(val string) attribute.KeyValue {
10452 return OTelStatusDescriptionKey.String(val)
10453 }
10454
10455 // Enum values for otel.component.type
10456 var (
10457 // The builtin SDK batching span processor
10458 //
10459 // Stability: development
10460 OTelComponentTypeBatchingSpanProcessor = OTelComponentTypeKey.String("batching_span_processor")
10461 // The builtin SDK simple span processor
10462 //
10463 // Stability: development
10464 OTelComponentTypeSimpleSpanProcessor = OTelComponentTypeKey.String("simple_span_processor")
10465 // The builtin SDK batching log record processor
10466 //
10467 // Stability: development
10468 OTelComponentTypeBatchingLogProcessor = OTelComponentTypeKey.String("batching_log_processor")
10469 // The builtin SDK simple log record processor
10470 //
10471 // Stability: development
10472 OTelComponentTypeSimpleLogProcessor = OTelComponentTypeKey.String("simple_log_processor")
10473 // OTLP span exporter over gRPC with protobuf serialization
10474 //
10475 // Stability: development
10476 OTelComponentTypeOtlpGRPCSpanExporter = OTelComponentTypeKey.String("otlp_grpc_span_exporter")
10477 // OTLP span exporter over HTTP with protobuf serialization
10478 //
10479 // Stability: development
10480 OTelComponentTypeOtlpHTTPSpanExporter = OTelComponentTypeKey.String("otlp_http_span_exporter")
10481 // OTLP span exporter over HTTP with JSON serialization
10482 //
10483 // Stability: development
10484 OTelComponentTypeOtlpHTTPJSONSpanExporter = OTelComponentTypeKey.String("otlp_http_json_span_exporter")
10485 // Zipkin span exporter over HTTP
10486 //
10487 // Stability: development
10488 OTelComponentTypeZipkinHTTPSpanExporter = OTelComponentTypeKey.String("zipkin_http_span_exporter")
10489 // OTLP log record exporter over gRPC with protobuf serialization
10490 //
10491 // Stability: development
10492 OTelComponentTypeOtlpGRPCLogExporter = OTelComponentTypeKey.String("otlp_grpc_log_exporter")
10493 // OTLP log record exporter over HTTP with protobuf serialization
10494 //
10495 // Stability: development
10496 OTelComponentTypeOtlpHTTPLogExporter = OTelComponentTypeKey.String("otlp_http_log_exporter")
10497 // OTLP log record exporter over HTTP with JSON serialization
10498 //
10499 // Stability: development
10500 OTelComponentTypeOtlpHTTPJSONLogExporter = OTelComponentTypeKey.String("otlp_http_json_log_exporter")
10501 // The builtin SDK periodically exporting metric reader
10502 //
10503 // Stability: development
10504 OTelComponentTypePeriodicMetricReader = OTelComponentTypeKey.String("periodic_metric_reader")
10505 // OTLP metric exporter over gRPC with protobuf serialization
10506 //
10507 // Stability: development
10508 OTelComponentTypeOtlpGRPCMetricExporter = OTelComponentTypeKey.String("otlp_grpc_metric_exporter")
10509 // OTLP metric exporter over HTTP with protobuf serialization
10510 //
10511 // Stability: development
10512 OTelComponentTypeOtlpHTTPMetricExporter = OTelComponentTypeKey.String("otlp_http_metric_exporter")
10513 // OTLP metric exporter over HTTP with JSON serialization
10514 //
10515 // Stability: development
10516 OTelComponentTypeOtlpHTTPJSONMetricExporter = OTelComponentTypeKey.String("otlp_http_json_metric_exporter")
10517 // Prometheus metric exporter over HTTP with the default text-based format
10518 //
10519 // Stability: development
10520 OTelComponentTypePrometheusHTTPTextMetricExporter = OTelComponentTypeKey.String("prometheus_http_text_metric_exporter")
10521 )
10522
10523 // Enum values for otel.span.parent.origin
10524 var (
10525 // The span does not have a parent, it is a root span
10526 // Stability: development
10527 OTelSpanParentOriginNone = OTelSpanParentOriginKey.String("none")
10528 // The span has a parent and the parent's span context [isRemote()] is false
10529 // Stability: development
10530 //
10531 // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
10532 OTelSpanParentOriginLocal = OTelSpanParentOriginKey.String("local")
10533 // The span has a parent and the parent's span context [isRemote()] is true
10534 // Stability: development
10535 //
10536 // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
10537 OTelSpanParentOriginRemote = OTelSpanParentOriginKey.String("remote")
10538 )
10539
10540 // Enum values for otel.span.sampling_result
10541 var (
10542 // The span is not sampled and not recording
10543 // Stability: development
10544 OTelSpanSamplingResultDrop = OTelSpanSamplingResultKey.String("DROP")
10545 // The span is not sampled, but recording
10546 // Stability: development
10547 OTelSpanSamplingResultRecordOnly = OTelSpanSamplingResultKey.String("RECORD_ONLY")
10548 // The span is sampled and recording
10549 // Stability: development
10550 OTelSpanSamplingResultRecordAndSample = OTelSpanSamplingResultKey.String("RECORD_AND_SAMPLE")
10551 )
10552
10553 // Enum values for otel.status_code
10554 var (
10555 // The operation has been validated by an Application developer or Operator to
10556 // have completed successfully.
10557 // Stability: stable
10558 OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
10559 // The operation contains an error.
10560 // Stability: stable
10561 OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
10562 )
10563
10564 // Namespace: peer
10565 const (
10566 // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic
10567 // conventions. It represents the [`service.name`] of the remote service. SHOULD
10568 // be equal to the actual `service.name` resource attribute of the remote
10569 // service if any.
10570 //
10571 // Type: string
10572 // RequirementLevel: Recommended
10573 // Stability: Development
10574 //
10575 // Examples: AuthTokenCache
10576 //
10577 // [`service.name`]: /docs/resource/README.md#service
10578 PeerServiceKey = attribute.Key("peer.service")
10579 )
10580
10581 // PeerService returns an attribute KeyValue conforming to the "peer.service"
10582 // semantic conventions. It represents the [`service.name`] of the remote
10583 // service. SHOULD be equal to the actual `service.name` resource attribute of
10584 // the remote service if any.
10585 //
10586 // [`service.name`]: /docs/resource/README.md#service
10587 func PeerService(val string) attribute.KeyValue {
10588 return PeerServiceKey.String(val)
10589 }
10590
10591 // Namespace: process
10592 const (
10593 // ProcessArgsCountKey is the attribute Key conforming to the
10594 // "process.args_count" semantic conventions. It represents the length of the
10595 // process.command_args array.
10596 //
10597 // Type: int
10598 // RequirementLevel: Recommended
10599 // Stability: Development
10600 //
10601 // Examples: 4
10602 // Note: This field can be useful for querying or performing bucket analysis on
10603 // how many arguments were provided to start a process. More arguments may be an
10604 // indication of suspicious activity.
10605 ProcessArgsCountKey = attribute.Key("process.args_count")
10606
10607 // ProcessCommandKey is the attribute Key conforming to the "process.command"
10608 // semantic conventions. It represents the command used to launch the process
10609 // (i.e. the command name). On Linux based systems, can be set to the zeroth
10610 // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
10611 // extracted from `GetCommandLineW`.
10612 //
10613 // Type: string
10614 // RequirementLevel: Recommended
10615 // Stability: Development
10616 //
10617 // Examples: "cmd/otelcol"
10618 ProcessCommandKey = attribute.Key("process.command")
10619
10620 // ProcessCommandArgsKey is the attribute Key conforming to the
10621 // "process.command_args" semantic conventions. It represents the all the
10622 // command arguments (including the command/executable itself) as received by
10623 // the process. On Linux-based systems (and some other Unixoid systems
10624 // supporting procfs), can be set according to the list of null-delimited
10625 // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
10626 // would be the full argv vector passed to `main`. SHOULD NOT be collected by
10627 // default unless there is sanitization that excludes sensitive data.
10628 //
10629 // Type: string[]
10630 // RequirementLevel: Recommended
10631 // Stability: Development
10632 //
10633 // Examples: "cmd/otecol", "--config=config.yaml"
10634 ProcessCommandArgsKey = attribute.Key("process.command_args")
10635
10636 // ProcessCommandLineKey is the attribute Key conforming to the
10637 // "process.command_line" semantic conventions. It represents the full command
10638 // used to launch the process as a single string representing the full command.
10639 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
10640 // you have to assemble it just for monitoring; use `process.command_args`
10641 // instead. SHOULD NOT be collected by default unless there is sanitization that
10642 // excludes sensitive data.
10643 //
10644 // Type: string
10645 // RequirementLevel: Recommended
10646 // Stability: Development
10647 //
10648 // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
10649 ProcessCommandLineKey = attribute.Key("process.command_line")
10650
10651 // ProcessContextSwitchTypeKey is the attribute Key conforming to the
10652 // "process.context_switch_type" semantic conventions. It represents the
10653 // specifies whether the context switches for this data point were voluntary or
10654 // involuntary.
10655 //
10656 // Type: Enum
10657 // RequirementLevel: Recommended
10658 // Stability: Development
10659 //
10660 // Examples:
10661 ProcessContextSwitchTypeKey = attribute.Key("process.context_switch_type")
10662
10663 // ProcessCreationTimeKey is the attribute Key conforming to the
10664 // "process.creation.time" semantic conventions. It represents the date and time
10665 // the process was created, in ISO 8601 format.
10666 //
10667 // Type: string
10668 // RequirementLevel: Recommended
10669 // Stability: Development
10670 //
10671 // Examples: "2023-11-21T09:25:34.853Z"
10672 ProcessCreationTimeKey = attribute.Key("process.creation.time")
10673
10674 // ProcessExecutableBuildIDGNUKey is the attribute Key conforming to the
10675 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
10676 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
10677 //
10678 // Type: string
10679 // RequirementLevel: Recommended
10680 // Stability: Development
10681 //
10682 // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
10683 ProcessExecutableBuildIDGNUKey = attribute.Key("process.executable.build_id.gnu")
10684
10685 // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the
10686 // "process.executable.build_id.go" semantic conventions. It represents the Go
10687 // build ID as retrieved by `go tool buildid <go executable>`.
10688 //
10689 // Type: string
10690 // RequirementLevel: Recommended
10691 // Stability: Development
10692 //
10693 // Examples:
10694 // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
10695 ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
10696
10697 // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the
10698 // "process.executable.build_id.htlhash" semantic conventions. It represents the
10699 // profiling specific build ID for executables. See the OTel specification for
10700 // Profiles for more information.
10701 //
10702 // Type: string
10703 // RequirementLevel: Recommended
10704 // Stability: Development
10705 //
10706 // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
10707 ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash")
10708
10709 // ProcessExecutableNameKey is the attribute Key conforming to the
10710 // "process.executable.name" semantic conventions. It represents the name of the
10711 // process executable. On Linux based systems, this SHOULD be set to the base
10712 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to
10713 // the base name of `GetProcessImageFileNameW`.
10714 //
10715 // Type: string
10716 // RequirementLevel: Recommended
10717 // Stability: Development
10718 //
10719 // Examples: "otelcol"
10720 ProcessExecutableNameKey = attribute.Key("process.executable.name")
10721
10722 // ProcessExecutablePathKey is the attribute Key conforming to the
10723 // "process.executable.path" semantic conventions. It represents the full path
10724 // to the process executable. On Linux based systems, can be set to the target
10725 // of `proc/[pid]/exe`. On Windows, can be set to the result of
10726 // `GetProcessImageFileNameW`.
10727 //
10728 // Type: string
10729 // RequirementLevel: Recommended
10730 // Stability: Development
10731 //
10732 // Examples: "/usr/bin/cmd/otelcol"
10733 ProcessExecutablePathKey = attribute.Key("process.executable.path")
10734
10735 // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
10736 // semantic conventions. It represents the exit code of the process.
10737 //
10738 // Type: int
10739 // RequirementLevel: Recommended
10740 // Stability: Development
10741 //
10742 // Examples: 127
10743 ProcessExitCodeKey = attribute.Key("process.exit.code")
10744
10745 // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
10746 // semantic conventions. It represents the date and time the process exited, in
10747 // ISO 8601 format.
10748 //
10749 // Type: string
10750 // RequirementLevel: Recommended
10751 // Stability: Development
10752 //
10753 // Examples: "2023-11-21T09:26:12.315Z"
10754 ProcessExitTimeKey = attribute.Key("process.exit.time")
10755
10756 // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
10757 // "process.group_leader.pid" semantic conventions. It represents the PID of the
10758 // process's group leader. This is also the process group ID (PGID) of the
10759 // process.
10760 //
10761 // Type: int
10762 // RequirementLevel: Recommended
10763 // Stability: Development
10764 //
10765 // Examples: 23
10766 ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
10767
10768 // ProcessInteractiveKey is the attribute Key conforming to the
10769 // "process.interactive" semantic conventions. It represents the whether the
10770 // process is connected to an interactive shell.
10771 //
10772 // Type: boolean
10773 // RequirementLevel: Recommended
10774 // Stability: Development
10775 //
10776 // Examples:
10777 ProcessInteractiveKey = attribute.Key("process.interactive")
10778
10779 // ProcessLinuxCgroupKey is the attribute Key conforming to the
10780 // "process.linux.cgroup" semantic conventions. It represents the control group
10781 // associated with the process.
10782 //
10783 // Type: string
10784 // RequirementLevel: Recommended
10785 // Stability: Development
10786 //
10787 // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope",
10788 // "0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"
10789 // Note: Control groups (cgroups) are a kernel feature used to organize and
10790 // manage process resources. This attribute provides the path(s) to the
10791 // cgroup(s) associated with the process, which should match the contents of the
10792 // [/proc/[PID]/cgroup] file.
10793 //
10794 // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html
10795 ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup")
10796
10797 // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
10798 // semantic conventions. It represents the username of the user that owns the
10799 // process.
10800 //
10801 // Type: string
10802 // RequirementLevel: Recommended
10803 // Stability: Development
10804 //
10805 // Examples: "root"
10806 ProcessOwnerKey = attribute.Key("process.owner")
10807
10808 // ProcessPagingFaultTypeKey is the attribute Key conforming to the
10809 // "process.paging.fault_type" semantic conventions. It represents the type of
10810 // page fault for this data point. Type `major` is for major/hard page faults,
10811 // and `minor` is for minor/soft page faults.
10812 //
10813 // Type: Enum
10814 // RequirementLevel: Recommended
10815 // Stability: Development
10816 //
10817 // Examples:
10818 ProcessPagingFaultTypeKey = attribute.Key("process.paging.fault_type")
10819
10820 // ProcessParentPIDKey is the attribute Key conforming to the
10821 // "process.parent_pid" semantic conventions. It represents the parent Process
10822 // identifier (PPID).
10823 //
10824 // Type: int
10825 // RequirementLevel: Recommended
10826 // Stability: Development
10827 //
10828 // Examples: 111
10829 ProcessParentPIDKey = attribute.Key("process.parent_pid")
10830
10831 // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
10832 // conventions. It represents the process identifier (PID).
10833 //
10834 // Type: int
10835 // RequirementLevel: Recommended
10836 // Stability: Development
10837 //
10838 // Examples: 1234
10839 ProcessPIDKey = attribute.Key("process.pid")
10840
10841 // ProcessRealUserIDKey is the attribute Key conforming to the
10842 // "process.real_user.id" semantic conventions. It represents the real user ID
10843 // (RUID) of the process.
10844 //
10845 // Type: int
10846 // RequirementLevel: Recommended
10847 // Stability: Development
10848 //
10849 // Examples: 1000
10850 ProcessRealUserIDKey = attribute.Key("process.real_user.id")
10851
10852 // ProcessRealUserNameKey is the attribute Key conforming to the
10853 // "process.real_user.name" semantic conventions. It represents the username of
10854 // the real user of the process.
10855 //
10856 // Type: string
10857 // RequirementLevel: Recommended
10858 // Stability: Development
10859 //
10860 // Examples: "operator"
10861 ProcessRealUserNameKey = attribute.Key("process.real_user.name")
10862
10863 // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
10864 // "process.runtime.description" semantic conventions. It represents an
10865 // additional description about the runtime of the process, for example a
10866 // specific vendor customization of the runtime environment.
10867 //
10868 // Type: string
10869 // RequirementLevel: Recommended
10870 // Stability: Development
10871 //
10872 // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
10873 ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
10874
10875 // ProcessRuntimeNameKey is the attribute Key conforming to the
10876 // "process.runtime.name" semantic conventions. It represents the name of the
10877 // runtime of this process.
10878 //
10879 // Type: string
10880 // RequirementLevel: Recommended
10881 // Stability: Development
10882 //
10883 // Examples: "OpenJDK Runtime Environment"
10884 ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
10885
10886 // ProcessRuntimeVersionKey is the attribute Key conforming to the
10887 // "process.runtime.version" semantic conventions. It represents the version of
10888 // the runtime of this process, as returned by the runtime without modification.
10889 //
10890 // Type: string
10891 // RequirementLevel: Recommended
10892 // Stability: Development
10893 //
10894 // Examples: 14.0.2
10895 ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
10896
10897 // ProcessSavedUserIDKey is the attribute Key conforming to the
10898 // "process.saved_user.id" semantic conventions. It represents the saved user ID
10899 // (SUID) of the process.
10900 //
10901 // Type: int
10902 // RequirementLevel: Recommended
10903 // Stability: Development
10904 //
10905 // Examples: 1002
10906 ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
10907
10908 // ProcessSavedUserNameKey is the attribute Key conforming to the
10909 // "process.saved_user.name" semantic conventions. It represents the username of
10910 // the saved user.
10911 //
10912 // Type: string
10913 // RequirementLevel: Recommended
10914 // Stability: Development
10915 //
10916 // Examples: "operator"
10917 ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
10918
10919 // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
10920 // "process.session_leader.pid" semantic conventions. It represents the PID of
10921 // the process's session leader. This is also the session ID (SID) of the
10922 // process.
10923 //
10924 // Type: int
10925 // RequirementLevel: Recommended
10926 // Stability: Development
10927 //
10928 // Examples: 14
10929 ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
10930
10931 // ProcessTitleKey is the attribute Key conforming to the "process.title"
10932 // semantic conventions. It represents the process title (proctitle).
10933 //
10934 // Type: string
10935 // RequirementLevel: Recommended
10936 // Stability: Development
10937 //
10938 // Examples: "cat /etc/hostname", "xfce4-session", "bash"
10939 // Note: In many Unix-like systems, process title (proctitle), is the string
10940 // that represents the name or command line of a running process, displayed by
10941 // system monitoring tools like ps, top, and htop.
10942 ProcessTitleKey = attribute.Key("process.title")
10943
10944 // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
10945 // semantic conventions. It represents the effective user ID (EUID) of the
10946 // process.
10947 //
10948 // Type: int
10949 // RequirementLevel: Recommended
10950 // Stability: Development
10951 //
10952 // Examples: 1001
10953 ProcessUserIDKey = attribute.Key("process.user.id")
10954
10955 // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
10956 // semantic conventions. It represents the username of the effective user of the
10957 // process.
10958 //
10959 // Type: string
10960 // RequirementLevel: Recommended
10961 // Stability: Development
10962 //
10963 // Examples: "root"
10964 ProcessUserNameKey = attribute.Key("process.user.name")
10965
10966 // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
10967 // conventions. It represents the virtual process identifier.
10968 //
10969 // Type: int
10970 // RequirementLevel: Recommended
10971 // Stability: Development
10972 //
10973 // Examples: 12
10974 // Note: The process ID within a PID namespace. This is not necessarily unique
10975 // across all processes on the host but it is unique within the process
10976 // namespace that the process exists within.
10977 ProcessVpidKey = attribute.Key("process.vpid")
10978
10979 // ProcessWorkingDirectoryKey is the attribute Key conforming to the
10980 // "process.working_directory" semantic conventions. It represents the working
10981 // directory of the process.
10982 //
10983 // Type: string
10984 // RequirementLevel: Recommended
10985 // Stability: Development
10986 //
10987 // Examples: "/root"
10988 ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
10989 )
10990
10991 // ProcessArgsCount returns an attribute KeyValue conforming to the
10992 // "process.args_count" semantic conventions. It represents the length of the
10993 // process.command_args array.
10994 func ProcessArgsCount(val int) attribute.KeyValue {
10995 return ProcessArgsCountKey.Int(val)
10996 }
10997
10998 // ProcessCommand returns an attribute KeyValue conforming to the
10999 // "process.command" semantic conventions. It represents the command used to
11000 // launch the process (i.e. the command name). On Linux based systems, can be set
11001 // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
11002 // first parameter extracted from `GetCommandLineW`.
11003 func ProcessCommand(val string) attribute.KeyValue {
11004 return ProcessCommandKey.String(val)
11005 }
11006
11007 // ProcessCommandArgs returns an attribute KeyValue conforming to the
11008 // "process.command_args" semantic conventions. It represents the all the command
11009 // arguments (including the command/executable itself) as received by the
11010 // process. On Linux-based systems (and some other Unixoid systems supporting
11011 // procfs), can be set according to the list of null-delimited strings extracted
11012 // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
11013 // argv vector passed to `main`. SHOULD NOT be collected by default unless there
11014 // is sanitization that excludes sensitive data.
11015 func ProcessCommandArgs(val ...string) attribute.KeyValue {
11016 return ProcessCommandArgsKey.StringSlice(val)
11017 }
11018
11019 // ProcessCommandLine returns an attribute KeyValue conforming to the
11020 // "process.command_line" semantic conventions. It represents the full command
11021 // used to launch the process as a single string representing the full command.
11022 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
11023 // you have to assemble it just for monitoring; use `process.command_args`
11024 // instead. SHOULD NOT be collected by default unless there is sanitization that
11025 // excludes sensitive data.
11026 func ProcessCommandLine(val string) attribute.KeyValue {
11027 return ProcessCommandLineKey.String(val)
11028 }
11029
11030 // ProcessCreationTime returns an attribute KeyValue conforming to the
11031 // "process.creation.time" semantic conventions. It represents the date and time
11032 // the process was created, in ISO 8601 format.
11033 func ProcessCreationTime(val string) attribute.KeyValue {
11034 return ProcessCreationTimeKey.String(val)
11035 }
11036
11037 // ProcessEnvironmentVariable returns an attribute KeyValue conforming to the
11038 // "process.environment_variable" semantic conventions. It represents the process
11039 // environment variables, `<key>` being the environment variable name, the value
11040 // being the environment variable value.
11041 func ProcessEnvironmentVariable(key string, val string) attribute.KeyValue {
11042 return attribute.String("process.environment_variable."+key, val)
11043 }
11044
11045 // ProcessExecutableBuildIDGNU returns an attribute KeyValue conforming to the
11046 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
11047 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
11048 func ProcessExecutableBuildIDGNU(val string) attribute.KeyValue {
11049 return ProcessExecutableBuildIDGNUKey.String(val)
11050 }
11051
11052 // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the
11053 // "process.executable.build_id.go" semantic conventions. It represents the Go
11054 // build ID as retrieved by `go tool buildid <go executable>`.
11055 func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
11056 return ProcessExecutableBuildIDGoKey.String(val)
11057 }
11058
11059 // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to
11060 // the "process.executable.build_id.htlhash" semantic conventions. It represents
11061 // the profiling specific build ID for executables. See the OTel specification
11062 // for Profiles for more information.
11063 func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue {
11064 return ProcessExecutableBuildIDHtlhashKey.String(val)
11065 }
11066
11067 // ProcessExecutableName returns an attribute KeyValue conforming to the
11068 // "process.executable.name" semantic conventions. It represents the name of the
11069 // process executable. On Linux based systems, this SHOULD be set to the base
11070 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the
11071 // base name of `GetProcessImageFileNameW`.
11072 func ProcessExecutableName(val string) attribute.KeyValue {
11073 return ProcessExecutableNameKey.String(val)
11074 }
11075
11076 // ProcessExecutablePath returns an attribute KeyValue conforming to the
11077 // "process.executable.path" semantic conventions. It represents the full path to
11078 // the process executable. On Linux based systems, can be set to the target of
11079 // `proc/[pid]/exe`. On Windows, can be set to the result of
11080 // `GetProcessImageFileNameW`.
11081 func ProcessExecutablePath(val string) attribute.KeyValue {
11082 return ProcessExecutablePathKey.String(val)
11083 }
11084
11085 // ProcessExitCode returns an attribute KeyValue conforming to the
11086 // "process.exit.code" semantic conventions. It represents the exit code of the
11087 // process.
11088 func ProcessExitCode(val int) attribute.KeyValue {
11089 return ProcessExitCodeKey.Int(val)
11090 }
11091
11092 // ProcessExitTime returns an attribute KeyValue conforming to the
11093 // "process.exit.time" semantic conventions. It represents the date and time the
11094 // process exited, in ISO 8601 format.
11095 func ProcessExitTime(val string) attribute.KeyValue {
11096 return ProcessExitTimeKey.String(val)
11097 }
11098
11099 // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
11100 // "process.group_leader.pid" semantic conventions. It represents the PID of the
11101 // process's group leader. This is also the process group ID (PGID) of the
11102 // process.
11103 func ProcessGroupLeaderPID(val int) attribute.KeyValue {
11104 return ProcessGroupLeaderPIDKey.Int(val)
11105 }
11106
11107 // ProcessInteractive returns an attribute KeyValue conforming to the
11108 // "process.interactive" semantic conventions. It represents the whether the
11109 // process is connected to an interactive shell.
11110 func ProcessInteractive(val bool) attribute.KeyValue {
11111 return ProcessInteractiveKey.Bool(val)
11112 }
11113
11114 // ProcessLinuxCgroup returns an attribute KeyValue conforming to the
11115 // "process.linux.cgroup" semantic conventions. It represents the control group
11116 // associated with the process.
11117 func ProcessLinuxCgroup(val string) attribute.KeyValue {
11118 return ProcessLinuxCgroupKey.String(val)
11119 }
11120
11121 // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
11122 // semantic conventions. It represents the username of the user that owns the
11123 // process.
11124 func ProcessOwner(val string) attribute.KeyValue {
11125 return ProcessOwnerKey.String(val)
11126 }
11127
11128 // ProcessParentPID returns an attribute KeyValue conforming to the
11129 // "process.parent_pid" semantic conventions. It represents the parent Process
11130 // identifier (PPID).
11131 func ProcessParentPID(val int) attribute.KeyValue {
11132 return ProcessParentPIDKey.Int(val)
11133 }
11134
11135 // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
11136 // semantic conventions. It represents the process identifier (PID).
11137 func ProcessPID(val int) attribute.KeyValue {
11138 return ProcessPIDKey.Int(val)
11139 }
11140
11141 // ProcessRealUserID returns an attribute KeyValue conforming to the
11142 // "process.real_user.id" semantic conventions. It represents the real user ID
11143 // (RUID) of the process.
11144 func ProcessRealUserID(val int) attribute.KeyValue {
11145 return ProcessRealUserIDKey.Int(val)
11146 }
11147
11148 // ProcessRealUserName returns an attribute KeyValue conforming to the
11149 // "process.real_user.name" semantic conventions. It represents the username of
11150 // the real user of the process.
11151 func ProcessRealUserName(val string) attribute.KeyValue {
11152 return ProcessRealUserNameKey.String(val)
11153 }
11154
11155 // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
11156 // "process.runtime.description" semantic conventions. It represents an
11157 // additional description about the runtime of the process, for example a
11158 // specific vendor customization of the runtime environment.
11159 func ProcessRuntimeDescription(val string) attribute.KeyValue {
11160 return ProcessRuntimeDescriptionKey.String(val)
11161 }
11162
11163 // ProcessRuntimeName returns an attribute KeyValue conforming to the
11164 // "process.runtime.name" semantic conventions. It represents the name of the
11165 // runtime of this process.
11166 func ProcessRuntimeName(val string) attribute.KeyValue {
11167 return ProcessRuntimeNameKey.String(val)
11168 }
11169
11170 // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
11171 // "process.runtime.version" semantic conventions. It represents the version of
11172 // the runtime of this process, as returned by the runtime without modification.
11173 func ProcessRuntimeVersion(val string) attribute.KeyValue {
11174 return ProcessRuntimeVersionKey.String(val)
11175 }
11176
11177 // ProcessSavedUserID returns an attribute KeyValue conforming to the
11178 // "process.saved_user.id" semantic conventions. It represents the saved user ID
11179 // (SUID) of the process.
11180 func ProcessSavedUserID(val int) attribute.KeyValue {
11181 return ProcessSavedUserIDKey.Int(val)
11182 }
11183
11184 // ProcessSavedUserName returns an attribute KeyValue conforming to the
11185 // "process.saved_user.name" semantic conventions. It represents the username of
11186 // the saved user.
11187 func ProcessSavedUserName(val string) attribute.KeyValue {
11188 return ProcessSavedUserNameKey.String(val)
11189 }
11190
11191 // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
11192 // "process.session_leader.pid" semantic conventions. It represents the PID of
11193 // the process's session leader. This is also the session ID (SID) of the
11194 // process.
11195 func ProcessSessionLeaderPID(val int) attribute.KeyValue {
11196 return ProcessSessionLeaderPIDKey.Int(val)
11197 }
11198
11199 // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
11200 // semantic conventions. It represents the process title (proctitle).
11201 func ProcessTitle(val string) attribute.KeyValue {
11202 return ProcessTitleKey.String(val)
11203 }
11204
11205 // ProcessUserID returns an attribute KeyValue conforming to the
11206 // "process.user.id" semantic conventions. It represents the effective user ID
11207 // (EUID) of the process.
11208 func ProcessUserID(val int) attribute.KeyValue {
11209 return ProcessUserIDKey.Int(val)
11210 }
11211
11212 // ProcessUserName returns an attribute KeyValue conforming to the
11213 // "process.user.name" semantic conventions. It represents the username of the
11214 // effective user of the process.
11215 func ProcessUserName(val string) attribute.KeyValue {
11216 return ProcessUserNameKey.String(val)
11217 }
11218
11219 // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
11220 // semantic conventions. It represents the virtual process identifier.
11221 func ProcessVpid(val int) attribute.KeyValue {
11222 return ProcessVpidKey.Int(val)
11223 }
11224
11225 // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
11226 // "process.working_directory" semantic conventions. It represents the working
11227 // directory of the process.
11228 func ProcessWorkingDirectory(val string) attribute.KeyValue {
11229 return ProcessWorkingDirectoryKey.String(val)
11230 }
11231
11232 // Enum values for process.context_switch_type
11233 var (
11234 // voluntary
11235 // Stability: development
11236 ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
11237 // involuntary
11238 // Stability: development
11239 ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
11240 )
11241
11242 // Enum values for process.paging.fault_type
11243 var (
11244 // major
11245 // Stability: development
11246 ProcessPagingFaultTypeMajor = ProcessPagingFaultTypeKey.String("major")
11247 // minor
11248 // Stability: development
11249 ProcessPagingFaultTypeMinor = ProcessPagingFaultTypeKey.String("minor")
11250 )
11251
11252 // Namespace: profile
11253 const (
11254 // ProfileFrameTypeKey is the attribute Key conforming to the
11255 // "profile.frame.type" semantic conventions. It represents the describes the
11256 // interpreter or compiler of a single frame.
11257 //
11258 // Type: Enum
11259 // RequirementLevel: Recommended
11260 // Stability: Development
11261 //
11262 // Examples: "cpython"
11263 ProfileFrameTypeKey = attribute.Key("profile.frame.type")
11264 )
11265
11266 // Enum values for profile.frame.type
11267 var (
11268 // [.NET]
11269 //
11270 // Stability: development
11271 //
11272 // [.NET]: https://wikipedia.org/wiki/.NET
11273 ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
11274 // [JVM]
11275 //
11276 // Stability: development
11277 //
11278 // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
11279 ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
11280 // [Kernel]
11281 //
11282 // Stability: development
11283 //
11284 // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
11285 ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
11286 // Can be one of but not limited to [C], [C++], [Go] or [Rust]. If possible, a
11287 // more precise value MUST be used.
11288 //
11289 // Stability: development
11290 //
11291 // [C]: https://wikipedia.org/wiki/C_(programming_language)
11292 // [C++]: https://wikipedia.org/wiki/C%2B%2B
11293 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
11294 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
11295 ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
11296 // [Perl]
11297 //
11298 // Stability: development
11299 //
11300 // [Perl]: https://wikipedia.org/wiki/Perl
11301 ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
11302 // [PHP]
11303 //
11304 // Stability: development
11305 //
11306 // [PHP]: https://wikipedia.org/wiki/PHP
11307 ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
11308 // [Python]
11309 //
11310 // Stability: development
11311 //
11312 // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
11313 ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
11314 // [Ruby]
11315 //
11316 // Stability: development
11317 //
11318 // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
11319 ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
11320 // [V8JS]
11321 //
11322 // Stability: development
11323 //
11324 // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
11325 ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
11326 // [Erlang]
11327 //
11328 // Stability: development
11329 //
11330 // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)
11331 ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam")
11332 // [Go],
11333 //
11334 // Stability: development
11335 //
11336 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
11337 ProfileFrameTypeGo = ProfileFrameTypeKey.String("go")
11338 // [Rust]
11339 //
11340 // Stability: development
11341 //
11342 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
11343 ProfileFrameTypeRust = ProfileFrameTypeKey.String("rust")
11344 )
11345
11346 // Namespace: rpc
11347 const (
11348 // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the
11349 // "rpc.connect_rpc.error_code" semantic conventions. It represents the
11350 // [error codes] of the Connect request. Error codes are always string values.
11351 //
11352 // Type: Enum
11353 // RequirementLevel: Recommended
11354 // Stability: Development
11355 //
11356 // Examples:
11357 //
11358 // [error codes]: https://connectrpc.com//docs/protocol/#error-codes
11359 RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code")
11360
11361 // RPCGRPCStatusCodeKey is the attribute Key conforming to the
11362 // "rpc.grpc.status_code" semantic conventions. It represents the
11363 // [numeric status code] of the gRPC request.
11364 //
11365 // Type: Enum
11366 // RequirementLevel: Recommended
11367 // Stability: Development
11368 //
11369 // Examples:
11370 //
11371 // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md
11372 RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")
11373
11374 // RPCJSONRPCErrorCodeKey is the attribute Key conforming to the
11375 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
11376 // property of response if it is an error response.
11377 //
11378 // Type: int
11379 // RequirementLevel: Recommended
11380 // Stability: Development
11381 //
11382 // Examples: -32700, 100
11383 RPCJSONRPCErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code")
11384
11385 // RPCJSONRPCErrorMessageKey is the attribute Key conforming to the
11386 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
11387 // `error.message` property of response if it is an error response.
11388 //
11389 // Type: string
11390 // RequirementLevel: Recommended
11391 // Stability: Development
11392 //
11393 // Examples: "Parse error", "User already exists"
11394 RPCJSONRPCErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message")
11395
11396 // RPCJSONRPCRequestIDKey is the attribute Key conforming to the
11397 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id`
11398 // property of request or response. Since protocol allows id to be int, string,
11399 // `null` or missing (for notifications), value is expected to be cast to string
11400 // for simplicity. Use empty string in case of `null` value. Omit entirely if
11401 // this is a notification.
11402 //
11403 // Type: string
11404 // RequirementLevel: Recommended
11405 // Stability: Development
11406 //
11407 // Examples: "10", "request-7", ""
11408 RPCJSONRPCRequestIDKey = attribute.Key("rpc.jsonrpc.request_id")
11409
11410 // RPCJSONRPCVersionKey is the attribute Key conforming to the
11411 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol
11412 // version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0
11413 // doesn't specify this, the value can be omitted.
11414 //
11415 // Type: string
11416 // RequirementLevel: Recommended
11417 // Stability: Development
11418 //
11419 // Examples: "2.0", "1.0"
11420 RPCJSONRPCVersionKey = attribute.Key("rpc.jsonrpc.version")
11421
11422 // RPCMessageCompressedSizeKey is the attribute Key conforming to the
11423 // "rpc.message.compressed_size" semantic conventions. It represents the
11424 // compressed size of the message in bytes.
11425 //
11426 // Type: int
11427 // RequirementLevel: Recommended
11428 // Stability: Development
11429 //
11430 // Examples:
11431 RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size")
11432
11433 // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id"
11434 // semantic conventions. It MUST be calculated as two different counters
11435 // starting from `1` one for sent messages and one for received message..
11436 //
11437 // Type: int
11438 // RequirementLevel: Recommended
11439 // Stability: Development
11440 //
11441 // Examples:
11442 // Note: This way we guarantee that the values will be consistent between
11443 // different implementations.
11444 RPCMessageIDKey = attribute.Key("rpc.message.id")
11445
11446 // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type"
11447 // semantic conventions. It represents the whether this is a received or sent
11448 // message.
11449 //
11450 // Type: Enum
11451 // RequirementLevel: Recommended
11452 // Stability: Development
11453 //
11454 // Examples:
11455 RPCMessageTypeKey = attribute.Key("rpc.message.type")
11456
11457 // RPCMessageUncompressedSizeKey is the attribute Key conforming to the
11458 // "rpc.message.uncompressed_size" semantic conventions. It represents the
11459 // uncompressed size of the message in bytes.
11460 //
11461 // Type: int
11462 // RequirementLevel: Recommended
11463 // Stability: Development
11464 //
11465 // Examples:
11466 RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size")
11467
11468 // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
11469 // conventions. It represents the name of the (logical) method being called,
11470 // must be equal to the $method part in the span name.
11471 //
11472 // Type: string
11473 // RequirementLevel: Recommended
11474 // Stability: Development
11475 //
11476 // Examples: exampleMethod
11477 // Note: This is the logical name of the method from the RPC interface
11478 // perspective, which can be different from the name of any implementing
11479 // method/function. The `code.function.name` attribute may be used to store the
11480 // latter (e.g., method actually executing the call on the server side, RPC
11481 // client stub method on the client side).
11482 RPCMethodKey = attribute.Key("rpc.method")
11483
11484 // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic
11485 // conventions. It represents the full (logical) name of the service being
11486 // called, including its package name, if applicable.
11487 //
11488 // Type: string
11489 // RequirementLevel: Recommended
11490 // Stability: Development
11491 //
11492 // Examples: myservice.EchoService
11493 // Note: This is the logical name of the service from the RPC interface
11494 // perspective, which can be different from the name of any implementing class.
11495 // The `code.namespace` attribute may be used to store the latter (despite the
11496 // attribute name, it may include a class name; e.g., class with method actually
11497 // executing the call on the server side, RPC client stub class on the client
11498 // side).
11499 RPCServiceKey = attribute.Key("rpc.service")
11500
11501 // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic
11502 // conventions. It represents a string identifying the remoting system. See
11503 // below for a list of well-known identifiers.
11504 //
11505 // Type: Enum
11506 // RequirementLevel: Recommended
11507 // Stability: Development
11508 //
11509 // Examples:
11510 RPCSystemKey = attribute.Key("rpc.system")
11511 )
11512
11513 // RPCConnectRPCRequestMetadata returns an attribute KeyValue conforming to the
11514 // "rpc.connect_rpc.request.metadata" semantic conventions. It represents the
11515 // connect request metadata, `<key>` being the normalized Connect Metadata key
11516 // (lowercase), the value being the metadata values.
11517 func RPCConnectRPCRequestMetadata(key string, val ...string) attribute.KeyValue {
11518 return attribute.StringSlice("rpc.connect_rpc.request.metadata."+key, val)
11519 }
11520
11521 // RPCConnectRPCResponseMetadata returns an attribute KeyValue conforming to the
11522 // "rpc.connect_rpc.response.metadata" semantic conventions. It represents the
11523 // connect response metadata, `<key>` being the normalized Connect Metadata key
11524 // (lowercase), the value being the metadata values.
11525 func RPCConnectRPCResponseMetadata(key string, val ...string) attribute.KeyValue {
11526 return attribute.StringSlice("rpc.connect_rpc.response.metadata."+key, val)
11527 }
11528
11529 // RPCGRPCRequestMetadata returns an attribute KeyValue conforming to the
11530 // "rpc.grpc.request.metadata" semantic conventions. It represents the gRPC
11531 // request metadata, `<key>` being the normalized gRPC Metadata key (lowercase),
11532 // the value being the metadata values.
11533 func RPCGRPCRequestMetadata(key string, val ...string) attribute.KeyValue {
11534 return attribute.StringSlice("rpc.grpc.request.metadata."+key, val)
11535 }
11536
11537 // RPCGRPCResponseMetadata returns an attribute KeyValue conforming to the
11538 // "rpc.grpc.response.metadata" semantic conventions. It represents the gRPC
11539 // response metadata, `<key>` being the normalized gRPC Metadata key (lowercase),
11540 // the value being the metadata values.
11541 func RPCGRPCResponseMetadata(key string, val ...string) attribute.KeyValue {
11542 return attribute.StringSlice("rpc.grpc.response.metadata."+key, val)
11543 }
11544
11545 // RPCJSONRPCErrorCode returns an attribute KeyValue conforming to the
11546 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
11547 // property of response if it is an error response.
11548 func RPCJSONRPCErrorCode(val int) attribute.KeyValue {
11549 return RPCJSONRPCErrorCodeKey.Int(val)
11550 }
11551
11552 // RPCJSONRPCErrorMessage returns an attribute KeyValue conforming to the
11553 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
11554 // `error.message` property of response if it is an error response.
11555 func RPCJSONRPCErrorMessage(val string) attribute.KeyValue {
11556 return RPCJSONRPCErrorMessageKey.String(val)
11557 }
11558
11559 // RPCJSONRPCRequestID returns an attribute KeyValue conforming to the
11560 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property
11561 // of request or response. Since protocol allows id to be int, string, `null` or
11562 // missing (for notifications), value is expected to be cast to string for
11563 // simplicity. Use empty string in case of `null` value. Omit entirely if this is
11564 // a notification.
11565 func RPCJSONRPCRequestID(val string) attribute.KeyValue {
11566 return RPCJSONRPCRequestIDKey.String(val)
11567 }
11568
11569 // RPCJSONRPCVersion returns an attribute KeyValue conforming to the
11570 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol version
11571 // as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't
11572 // specify this, the value can be omitted.
11573 func RPCJSONRPCVersion(val string) attribute.KeyValue {
11574 return RPCJSONRPCVersionKey.String(val)
11575 }
11576
11577 // RPCMessageCompressedSize returns an attribute KeyValue conforming to the
11578 // "rpc.message.compressed_size" semantic conventions. It represents the
11579 // compressed size of the message in bytes.
11580 func RPCMessageCompressedSize(val int) attribute.KeyValue {
11581 return RPCMessageCompressedSizeKey.Int(val)
11582 }
11583
11584 // RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id"
11585 // semantic conventions. It MUST be calculated as two different counters starting
11586 // from `1` one for sent messages and one for received message..
11587 func RPCMessageID(val int) attribute.KeyValue {
11588 return RPCMessageIDKey.Int(val)
11589 }
11590
11591 // RPCMessageUncompressedSize returns an attribute KeyValue conforming to the
11592 // "rpc.message.uncompressed_size" semantic conventions. It represents the
11593 // uncompressed size of the message in bytes.
11594 func RPCMessageUncompressedSize(val int) attribute.KeyValue {
11595 return RPCMessageUncompressedSizeKey.Int(val)
11596 }
11597
11598 // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
11599 // semantic conventions. It represents the name of the (logical) method being
11600 // called, must be equal to the $method part in the span name.
11601 func RPCMethod(val string) attribute.KeyValue {
11602 return RPCMethodKey.String(val)
11603 }
11604
11605 // RPCService returns an attribute KeyValue conforming to the "rpc.service"
11606 // semantic conventions. It represents the full (logical) name of the service
11607 // being called, including its package name, if applicable.
11608 func RPCService(val string) attribute.KeyValue {
11609 return RPCServiceKey.String(val)
11610 }
11611
11612 // Enum values for rpc.connect_rpc.error_code
11613 var (
11614 // cancelled
11615 // Stability: development
11616 RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled")
11617 // unknown
11618 // Stability: development
11619 RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown")
11620 // invalid_argument
11621 // Stability: development
11622 RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument")
11623 // deadline_exceeded
11624 // Stability: development
11625 RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded")
11626 // not_found
11627 // Stability: development
11628 RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found")
11629 // already_exists
11630 // Stability: development
11631 RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists")
11632 // permission_denied
11633 // Stability: development
11634 RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied")
11635 // resource_exhausted
11636 // Stability: development
11637 RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted")
11638 // failed_precondition
11639 // Stability: development
11640 RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition")
11641 // aborted
11642 // Stability: development
11643 RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted")
11644 // out_of_range
11645 // Stability: development
11646 RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range")
11647 // unimplemented
11648 // Stability: development
11649 RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented")
11650 // internal
11651 // Stability: development
11652 RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal")
11653 // unavailable
11654 // Stability: development
11655 RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable")
11656 // data_loss
11657 // Stability: development
11658 RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss")
11659 // unauthenticated
11660 // Stability: development
11661 RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated")
11662 )
11663
11664 // Enum values for rpc.grpc.status_code
11665 var (
11666 // OK
11667 // Stability: development
11668 RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0)
11669 // CANCELLED
11670 // Stability: development
11671 RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1)
11672 // UNKNOWN
11673 // Stability: development
11674 RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2)
11675 // INVALID_ARGUMENT
11676 // Stability: development
11677 RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3)
11678 // DEADLINE_EXCEEDED
11679 // Stability: development
11680 RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4)
11681 // NOT_FOUND
11682 // Stability: development
11683 RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5)
11684 // ALREADY_EXISTS
11685 // Stability: development
11686 RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6)
11687 // PERMISSION_DENIED
11688 // Stability: development
11689 RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7)
11690 // RESOURCE_EXHAUSTED
11691 // Stability: development
11692 RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8)
11693 // FAILED_PRECONDITION
11694 // Stability: development
11695 RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9)
11696 // ABORTED
11697 // Stability: development
11698 RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10)
11699 // OUT_OF_RANGE
11700 // Stability: development
11701 RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11)
11702 // UNIMPLEMENTED
11703 // Stability: development
11704 RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12)
11705 // INTERNAL
11706 // Stability: development
11707 RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13)
11708 // UNAVAILABLE
11709 // Stability: development
11710 RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14)
11711 // DATA_LOSS
11712 // Stability: development
11713 RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15)
11714 // UNAUTHENTICATED
11715 // Stability: development
11716 RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16)
11717 )
11718
11719 // Enum values for rpc.message.type
11720 var (
11721 // sent
11722 // Stability: development
11723 RPCMessageTypeSent = RPCMessageTypeKey.String("SENT")
11724 // received
11725 // Stability: development
11726 RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")
11727 )
11728
11729 // Enum values for rpc.system
11730 var (
11731 // gRPC
11732 // Stability: development
11733 RPCSystemGRPC = RPCSystemKey.String("grpc")
11734 // Java RMI
11735 // Stability: development
11736 RPCSystemJavaRmi = RPCSystemKey.String("java_rmi")
11737 // .NET WCF
11738 // Stability: development
11739 RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf")
11740 // Apache Dubbo
11741 // Stability: development
11742 RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo")
11743 // Connect RPC
11744 // Stability: development
11745 RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc")
11746 )
11747
11748 // Namespace: security_rule
11749 const (
11750 // SecurityRuleCategoryKey is the attribute Key conforming to the
11751 // "security_rule.category" semantic conventions. It represents a categorization
11752 // value keyword used by the entity using the rule for detection of this event.
11753 //
11754 // Type: string
11755 // RequirementLevel: Recommended
11756 // Stability: Development
11757 //
11758 // Examples: "Attempted Information Leak"
11759 SecurityRuleCategoryKey = attribute.Key("security_rule.category")
11760
11761 // SecurityRuleDescriptionKey is the attribute Key conforming to the
11762 // "security_rule.description" semantic conventions. It represents the
11763 // description of the rule generating the event.
11764 //
11765 // Type: string
11766 // RequirementLevel: Recommended
11767 // Stability: Development
11768 //
11769 // Examples: "Block requests to public DNS over HTTPS / TLS protocols"
11770 SecurityRuleDescriptionKey = attribute.Key("security_rule.description")
11771
11772 // SecurityRuleLicenseKey is the attribute Key conforming to the
11773 // "security_rule.license" semantic conventions. It represents the name of the
11774 // license under which the rule used to generate this event is made available.
11775 //
11776 // Type: string
11777 // RequirementLevel: Recommended
11778 // Stability: Development
11779 //
11780 // Examples: "Apache 2.0"
11781 SecurityRuleLicenseKey = attribute.Key("security_rule.license")
11782
11783 // SecurityRuleNameKey is the attribute Key conforming to the
11784 // "security_rule.name" semantic conventions. It represents the name of the rule
11785 // or signature generating the event.
11786 //
11787 // Type: string
11788 // RequirementLevel: Recommended
11789 // Stability: Development
11790 //
11791 // Examples: "BLOCK_DNS_over_TLS"
11792 SecurityRuleNameKey = attribute.Key("security_rule.name")
11793
11794 // SecurityRuleReferenceKey is the attribute Key conforming to the
11795 // "security_rule.reference" semantic conventions. It represents the reference
11796 // URL to additional information about the rule used to generate this event.
11797 //
11798 // Type: string
11799 // RequirementLevel: Recommended
11800 // Stability: Development
11801 //
11802 // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS"
11803 // Note: The URL can point to the vendor’s documentation about the rule. If
11804 // that’s not available, it can also be a link to a more general page
11805 // describing this type of alert.
11806 SecurityRuleReferenceKey = attribute.Key("security_rule.reference")
11807
11808 // SecurityRuleRulesetNameKey is the attribute Key conforming to the
11809 // "security_rule.ruleset.name" semantic conventions. It represents the name of
11810 // the ruleset, policy, group, or parent category in which the rule used to
11811 // generate this event is a member.
11812 //
11813 // Type: string
11814 // RequirementLevel: Recommended
11815 // Stability: Development
11816 //
11817 // Examples: "Standard_Protocol_Filters"
11818 SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name")
11819
11820 // SecurityRuleUUIDKey is the attribute Key conforming to the
11821 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
11822 // unique within the scope of a set or group of agents, observers, or other
11823 // entities using the rule for detection of this event.
11824 //
11825 // Type: string
11826 // RequirementLevel: Recommended
11827 // Stability: Development
11828 //
11829 // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011"
11830 SecurityRuleUUIDKey = attribute.Key("security_rule.uuid")
11831
11832 // SecurityRuleVersionKey is the attribute Key conforming to the
11833 // "security_rule.version" semantic conventions. It represents the version /
11834 // revision of the rule being used for analysis.
11835 //
11836 // Type: string
11837 // RequirementLevel: Recommended
11838 // Stability: Development
11839 //
11840 // Examples: "1.0.0"
11841 SecurityRuleVersionKey = attribute.Key("security_rule.version")
11842 )
11843
11844 // SecurityRuleCategory returns an attribute KeyValue conforming to the
11845 // "security_rule.category" semantic conventions. It represents a categorization
11846 // value keyword used by the entity using the rule for detection of this event.
11847 func SecurityRuleCategory(val string) attribute.KeyValue {
11848 return SecurityRuleCategoryKey.String(val)
11849 }
11850
11851 // SecurityRuleDescription returns an attribute KeyValue conforming to the
11852 // "security_rule.description" semantic conventions. It represents the
11853 // description of the rule generating the event.
11854 func SecurityRuleDescription(val string) attribute.KeyValue {
11855 return SecurityRuleDescriptionKey.String(val)
11856 }
11857
11858 // SecurityRuleLicense returns an attribute KeyValue conforming to the
11859 // "security_rule.license" semantic conventions. It represents the name of the
11860 // license under which the rule used to generate this event is made available.
11861 func SecurityRuleLicense(val string) attribute.KeyValue {
11862 return SecurityRuleLicenseKey.String(val)
11863 }
11864
11865 // SecurityRuleName returns an attribute KeyValue conforming to the
11866 // "security_rule.name" semantic conventions. It represents the name of the rule
11867 // or signature generating the event.
11868 func SecurityRuleName(val string) attribute.KeyValue {
11869 return SecurityRuleNameKey.String(val)
11870 }
11871
11872 // SecurityRuleReference returns an attribute KeyValue conforming to the
11873 // "security_rule.reference" semantic conventions. It represents the reference
11874 // URL to additional information about the rule used to generate this event.
11875 func SecurityRuleReference(val string) attribute.KeyValue {
11876 return SecurityRuleReferenceKey.String(val)
11877 }
11878
11879 // SecurityRuleRulesetName returns an attribute KeyValue conforming to the
11880 // "security_rule.ruleset.name" semantic conventions. It represents the name of
11881 // the ruleset, policy, group, or parent category in which the rule used to
11882 // generate this event is a member.
11883 func SecurityRuleRulesetName(val string) attribute.KeyValue {
11884 return SecurityRuleRulesetNameKey.String(val)
11885 }
11886
11887 // SecurityRuleUUID returns an attribute KeyValue conforming to the
11888 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
11889 // unique within the scope of a set or group of agents, observers, or other
11890 // entities using the rule for detection of this event.
11891 func SecurityRuleUUID(val string) attribute.KeyValue {
11892 return SecurityRuleUUIDKey.String(val)
11893 }
11894
11895 // SecurityRuleVersion returns an attribute KeyValue conforming to the
11896 // "security_rule.version" semantic conventions. It represents the version /
11897 // revision of the rule being used for analysis.
11898 func SecurityRuleVersion(val string) attribute.KeyValue {
11899 return SecurityRuleVersionKey.String(val)
11900 }
11901
11902 // Namespace: server
11903 const (
11904 // ServerAddressKey is the attribute Key conforming to the "server.address"
11905 // semantic conventions. It represents the server domain name if available
11906 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
11907 //
11908 // Type: string
11909 // RequirementLevel: Recommended
11910 // Stability: Stable
11911 //
11912 // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
11913 // Note: When observed from the client side, and when communicating through an
11914 // intermediary, `server.address` SHOULD represent the server address behind any
11915 // intermediaries, for example proxies, if it's available.
11916 ServerAddressKey = attribute.Key("server.address")
11917
11918 // ServerPortKey is the attribute Key conforming to the "server.port" semantic
11919 // conventions. It represents the server port number.
11920 //
11921 // Type: int
11922 // RequirementLevel: Recommended
11923 // Stability: Stable
11924 //
11925 // Examples: 80, 8080, 443
11926 // Note: When observed from the client side, and when communicating through an
11927 // intermediary, `server.port` SHOULD represent the server port behind any
11928 // intermediaries, for example proxies, if it's available.
11929 ServerPortKey = attribute.Key("server.port")
11930 )
11931
11932 // ServerAddress returns an attribute KeyValue conforming to the "server.address"
11933 // semantic conventions. It represents the server domain name if available
11934 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
11935 func ServerAddress(val string) attribute.KeyValue {
11936 return ServerAddressKey.String(val)
11937 }
11938
11939 // ServerPort returns an attribute KeyValue conforming to the "server.port"
11940 // semantic conventions. It represents the server port number.
11941 func ServerPort(val int) attribute.KeyValue {
11942 return ServerPortKey.Int(val)
11943 }
11944
11945 // Namespace: service
11946 const (
11947 // ServiceInstanceIDKey is the attribute Key conforming to the
11948 // "service.instance.id" semantic conventions. It represents the string ID of
11949 // the service instance.
11950 //
11951 // Type: string
11952 // RequirementLevel: Recommended
11953 // Stability: Development
11954 //
11955 // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
11956 // Note: MUST be unique for each instance of the same
11957 // `service.namespace,service.name` pair (in other words
11958 // `service.namespace,service.name,service.instance.id` triplet MUST be globally
11959 // unique). The ID helps to
11960 // distinguish instances of the same service that exist at the same time (e.g.
11961 // instances of a horizontally scaled
11962 // service).
11963 //
11964 // Implementations, such as SDKs, are recommended to generate a random Version 1
11965 // or Version 4 [RFC
11966 // 4122] UUID, but are free to use an inherent unique ID as
11967 // the source of
11968 // this value if stability is desirable. In that case, the ID SHOULD be used as
11969 // source of a UUID Version 5 and
11970 // SHOULD use the following UUID as the namespace:
11971 // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
11972 //
11973 // UUIDs are typically recommended, as only an opaque value for the purposes of
11974 // identifying a service instance is
11975 // needed. Similar to what can be seen in the man page for the
11976 // [`/etc/machine-id`] file, the underlying
11977 // data, such as pod name and namespace should be treated as confidential, being
11978 // the user's choice to expose it
11979 // or not via another resource attribute.
11980 //
11981 // For applications running behind an application server (like unicorn), we do
11982 // not recommend using one identifier
11983 // for all processes participating in the application. Instead, it's recommended
11984 // each division (e.g. a worker
11985 // thread in unicorn) to have its own instance.id.
11986 //
11987 // It's not recommended for a Collector to set `service.instance.id` if it can't
11988 // unambiguously determine the
11989 // service instance that is generating that telemetry. For instance, creating an
11990 // UUID based on `pod.name` will
11991 // likely be wrong, as the Collector might not know from which container within
11992 // that pod the telemetry originated.
11993 // However, Collectors can set the `service.instance.id` if they can
11994 // unambiguously determine the service instance
11995 // for that telemetry. This is typically the case for scraping receivers, as
11996 // they know the target address and
11997 // port.
11998 //
11999 // [RFC
12000 // 4122]: https://www.ietf.org/rfc/rfc4122.txt
12001 // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html
12002 ServiceInstanceIDKey = attribute.Key("service.instance.id")
12003
12004 // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
12005 // conventions. It represents the logical name of the service.
12006 //
12007 // Type: string
12008 // RequirementLevel: Recommended
12009 // Stability: Stable
12010 //
12011 // Examples: "shoppingcart"
12012 // Note: MUST be the same for all instances of horizontally scaled services. If
12013 // the value was not specified, SDKs MUST fallback to `unknown_service:`
12014 // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
12015 // If `process.executable.name` is not available, the value MUST be set to
12016 // `unknown_service`.
12017 //
12018 // [`process.executable.name`]: process.md
12019 ServiceNameKey = attribute.Key("service.name")
12020
12021 // ServiceNamespaceKey is the attribute Key conforming to the
12022 // "service.namespace" semantic conventions. It represents a namespace for
12023 // `service.name`.
12024 //
12025 // Type: string
12026 // RequirementLevel: Recommended
12027 // Stability: Development
12028 //
12029 // Examples: "Shop"
12030 // Note: A string value having a meaning that helps to distinguish a group of
12031 // services, for example the team name that owns a group of services.
12032 // `service.name` is expected to be unique within the same namespace. If
12033 // `service.namespace` is not specified in the Resource then `service.name` is
12034 // expected to be unique for all services that have no explicit namespace
12035 // defined (so the empty/unspecified namespace is simply one more valid
12036 // namespace). Zero-length namespace string is assumed equal to unspecified
12037 // namespace.
12038 ServiceNamespaceKey = attribute.Key("service.namespace")
12039
12040 // ServiceVersionKey is the attribute Key conforming to the "service.version"
12041 // semantic conventions. It represents the version string of the service API or
12042 // implementation. The format is not defined by these conventions.
12043 //
12044 // Type: string
12045 // RequirementLevel: Recommended
12046 // Stability: Stable
12047 //
12048 // Examples: "2.0.0", "a01dbef8a"
12049 ServiceVersionKey = attribute.Key("service.version")
12050 )
12051
12052 // ServiceInstanceID returns an attribute KeyValue conforming to the
12053 // "service.instance.id" semantic conventions. It represents the string ID of the
12054 // service instance.
12055 func ServiceInstanceID(val string) attribute.KeyValue {
12056 return ServiceInstanceIDKey.String(val)
12057 }
12058
12059 // ServiceName returns an attribute KeyValue conforming to the "service.name"
12060 // semantic conventions. It represents the logical name of the service.
12061 func ServiceName(val string) attribute.KeyValue {
12062 return ServiceNameKey.String(val)
12063 }
12064
12065 // ServiceNamespace returns an attribute KeyValue conforming to the
12066 // "service.namespace" semantic conventions. It represents a namespace for
12067 // `service.name`.
12068 func ServiceNamespace(val string) attribute.KeyValue {
12069 return ServiceNamespaceKey.String(val)
12070 }
12071
12072 // ServiceVersion returns an attribute KeyValue conforming to the
12073 // "service.version" semantic conventions. It represents the version string of
12074 // the service API or implementation. The format is not defined by these
12075 // conventions.
12076 func ServiceVersion(val string) attribute.KeyValue {
12077 return ServiceVersionKey.String(val)
12078 }
12079
12080 // Namespace: session
12081 const (
12082 // SessionIDKey is the attribute Key conforming to the "session.id" semantic
12083 // conventions. It represents a unique id to identify a session.
12084 //
12085 // Type: string
12086 // RequirementLevel: Recommended
12087 // Stability: Development
12088 //
12089 // Examples: 00112233-4455-6677-8899-aabbccddeeff
12090 SessionIDKey = attribute.Key("session.id")
12091
12092 // SessionPreviousIDKey is the attribute Key conforming to the
12093 // "session.previous_id" semantic conventions. It represents the previous
12094 // `session.id` for this user, when known.
12095 //
12096 // Type: string
12097 // RequirementLevel: Recommended
12098 // Stability: Development
12099 //
12100 // Examples: 00112233-4455-6677-8899-aabbccddeeff
12101 SessionPreviousIDKey = attribute.Key("session.previous_id")
12102 )
12103
12104 // SessionID returns an attribute KeyValue conforming to the "session.id"
12105 // semantic conventions. It represents a unique id to identify a session.
12106 func SessionID(val string) attribute.KeyValue {
12107 return SessionIDKey.String(val)
12108 }
12109
12110 // SessionPreviousID returns an attribute KeyValue conforming to the
12111 // "session.previous_id" semantic conventions. It represents the previous
12112 // `session.id` for this user, when known.
12113 func SessionPreviousID(val string) attribute.KeyValue {
12114 return SessionPreviousIDKey.String(val)
12115 }
12116
12117 // Namespace: signalr
12118 const (
12119 // SignalRConnectionStatusKey is the attribute Key conforming to the
12120 // "signalr.connection.status" semantic conventions. It represents the signalR
12121 // HTTP connection closure status.
12122 //
12123 // Type: Enum
12124 // RequirementLevel: Recommended
12125 // Stability: Stable
12126 //
12127 // Examples: "app_shutdown", "timeout"
12128 SignalRConnectionStatusKey = attribute.Key("signalr.connection.status")
12129
12130 // SignalRTransportKey is the attribute Key conforming to the
12131 // "signalr.transport" semantic conventions. It represents the
12132 // [SignalR transport type].
12133 //
12134 // Type: Enum
12135 // RequirementLevel: Recommended
12136 // Stability: Stable
12137 //
12138 // Examples: "web_sockets", "long_polling"
12139 //
12140 // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
12141 SignalRTransportKey = attribute.Key("signalr.transport")
12142 )
12143
12144 // Enum values for signalr.connection.status
12145 var (
12146 // The connection was closed normally.
12147 // Stability: stable
12148 SignalRConnectionStatusNormalClosure = SignalRConnectionStatusKey.String("normal_closure")
12149 // The connection was closed due to a timeout.
12150 // Stability: stable
12151 SignalRConnectionStatusTimeout = SignalRConnectionStatusKey.String("timeout")
12152 // The connection was closed because the app is shutting down.
12153 // Stability: stable
12154 SignalRConnectionStatusAppShutdown = SignalRConnectionStatusKey.String("app_shutdown")
12155 )
12156
12157 // Enum values for signalr.transport
12158 var (
12159 // ServerSentEvents protocol
12160 // Stability: stable
12161 SignalRTransportServerSentEvents = SignalRTransportKey.String("server_sent_events")
12162 // LongPolling protocol
12163 // Stability: stable
12164 SignalRTransportLongPolling = SignalRTransportKey.String("long_polling")
12165 // WebSockets protocol
12166 // Stability: stable
12167 SignalRTransportWebSockets = SignalRTransportKey.String("web_sockets")
12168 )
12169
12170 // Namespace: source
12171 const (
12172 // SourceAddressKey is the attribute Key conforming to the "source.address"
12173 // semantic conventions. It represents the source address - domain name if
12174 // available without reverse DNS lookup; otherwise, IP address or Unix domain
12175 // socket name.
12176 //
12177 // Type: string
12178 // RequirementLevel: Recommended
12179 // Stability: Development
12180 //
12181 // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
12182 // Note: When observed from the destination side, and when communicating through
12183 // an intermediary, `source.address` SHOULD represent the source address behind
12184 // any intermediaries, for example proxies, if it's available.
12185 SourceAddressKey = attribute.Key("source.address")
12186
12187 // SourcePortKey is the attribute Key conforming to the "source.port" semantic
12188 // conventions. It represents the source port number.
12189 //
12190 // Type: int
12191 // RequirementLevel: Recommended
12192 // Stability: Development
12193 //
12194 // Examples: 3389, 2888
12195 SourcePortKey = attribute.Key("source.port")
12196 )
12197
12198 // SourceAddress returns an attribute KeyValue conforming to the "source.address"
12199 // semantic conventions. It represents the source address - domain name if
12200 // available without reverse DNS lookup; otherwise, IP address or Unix domain
12201 // socket name.
12202 func SourceAddress(val string) attribute.KeyValue {
12203 return SourceAddressKey.String(val)
12204 }
12205
12206 // SourcePort returns an attribute KeyValue conforming to the "source.port"
12207 // semantic conventions. It represents the source port number.
12208 func SourcePort(val int) attribute.KeyValue {
12209 return SourcePortKey.Int(val)
12210 }
12211
12212 // Namespace: system
12213 const (
12214 // SystemCPULogicalNumberKey is the attribute Key conforming to the
12215 // "system.cpu.logical_number" semantic conventions. It represents the
12216 // deprecated, use `cpu.logical_number` instead.
12217 //
12218 // Type: int
12219 // RequirementLevel: Recommended
12220 // Stability: Development
12221 //
12222 // Examples: 1
12223 SystemCPULogicalNumberKey = attribute.Key("system.cpu.logical_number")
12224
12225 // SystemDeviceKey is the attribute Key conforming to the "system.device"
12226 // semantic conventions. It represents the device identifier.
12227 //
12228 // Type: string
12229 // RequirementLevel: Recommended
12230 // Stability: Development
12231 //
12232 // Examples: "(identifier)"
12233 SystemDeviceKey = attribute.Key("system.device")
12234
12235 // SystemFilesystemModeKey is the attribute Key conforming to the
12236 // "system.filesystem.mode" semantic conventions. It represents the filesystem
12237 // mode.
12238 //
12239 // Type: string
12240 // RequirementLevel: Recommended
12241 // Stability: Development
12242 //
12243 // Examples: "rw, ro"
12244 SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
12245
12246 // SystemFilesystemMountpointKey is the attribute Key conforming to the
12247 // "system.filesystem.mountpoint" semantic conventions. It represents the
12248 // filesystem mount path.
12249 //
12250 // Type: string
12251 // RequirementLevel: Recommended
12252 // Stability: Development
12253 //
12254 // Examples: "/mnt/data"
12255 SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
12256
12257 // SystemFilesystemStateKey is the attribute Key conforming to the
12258 // "system.filesystem.state" semantic conventions. It represents the filesystem
12259 // state.
12260 //
12261 // Type: Enum
12262 // RequirementLevel: Recommended
12263 // Stability: Development
12264 //
12265 // Examples: "used"
12266 SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
12267
12268 // SystemFilesystemTypeKey is the attribute Key conforming to the
12269 // "system.filesystem.type" semantic conventions. It represents the filesystem
12270 // type.
12271 //
12272 // Type: Enum
12273 // RequirementLevel: Recommended
12274 // Stability: Development
12275 //
12276 // Examples: "ext4"
12277 SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
12278
12279 // SystemMemoryStateKey is the attribute Key conforming to the
12280 // "system.memory.state" semantic conventions. It represents the memory state.
12281 //
12282 // Type: Enum
12283 // RequirementLevel: Recommended
12284 // Stability: Development
12285 //
12286 // Examples: "free", "cached"
12287 SystemMemoryStateKey = attribute.Key("system.memory.state")
12288
12289 // SystemPagingDirectionKey is the attribute Key conforming to the
12290 // "system.paging.direction" semantic conventions. It represents the paging
12291 // access direction.
12292 //
12293 // Type: Enum
12294 // RequirementLevel: Recommended
12295 // Stability: Development
12296 //
12297 // Examples: "in"
12298 SystemPagingDirectionKey = attribute.Key("system.paging.direction")
12299
12300 // SystemPagingStateKey is the attribute Key conforming to the
12301 // "system.paging.state" semantic conventions. It represents the memory paging
12302 // state.
12303 //
12304 // Type: Enum
12305 // RequirementLevel: Recommended
12306 // Stability: Development
12307 //
12308 // Examples: "free"
12309 SystemPagingStateKey = attribute.Key("system.paging.state")
12310
12311 // SystemPagingTypeKey is the attribute Key conforming to the
12312 // "system.paging.type" semantic conventions. It represents the memory paging
12313 // type.
12314 //
12315 // Type: Enum
12316 // RequirementLevel: Recommended
12317 // Stability: Development
12318 //
12319 // Examples: "minor"
12320 SystemPagingTypeKey = attribute.Key("system.paging.type")
12321
12322 // SystemProcessStatusKey is the attribute Key conforming to the
12323 // "system.process.status" semantic conventions. It represents the process
12324 // state, e.g., [Linux Process State Codes].
12325 //
12326 // Type: Enum
12327 // RequirementLevel: Recommended
12328 // Stability: Development
12329 //
12330 // Examples: "running"
12331 //
12332 // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
12333 SystemProcessStatusKey = attribute.Key("system.process.status")
12334 )
12335
12336 // SystemCPULogicalNumber returns an attribute KeyValue conforming to the
12337 // "system.cpu.logical_number" semantic conventions. It represents the
12338 // deprecated, use `cpu.logical_number` instead.
12339 func SystemCPULogicalNumber(val int) attribute.KeyValue {
12340 return SystemCPULogicalNumberKey.Int(val)
12341 }
12342
12343 // SystemDevice returns an attribute KeyValue conforming to the "system.device"
12344 // semantic conventions. It represents the device identifier.
12345 func SystemDevice(val string) attribute.KeyValue {
12346 return SystemDeviceKey.String(val)
12347 }
12348
12349 // SystemFilesystemMode returns an attribute KeyValue conforming to the
12350 // "system.filesystem.mode" semantic conventions. It represents the filesystem
12351 // mode.
12352 func SystemFilesystemMode(val string) attribute.KeyValue {
12353 return SystemFilesystemModeKey.String(val)
12354 }
12355
12356 // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
12357 // "system.filesystem.mountpoint" semantic conventions. It represents the
12358 // filesystem mount path.
12359 func SystemFilesystemMountpoint(val string) attribute.KeyValue {
12360 return SystemFilesystemMountpointKey.String(val)
12361 }
12362
12363 // Enum values for system.filesystem.state
12364 var (
12365 // used
12366 // Stability: development
12367 SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
12368 // free
12369 // Stability: development
12370 SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
12371 // reserved
12372 // Stability: development
12373 SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
12374 )
12375
12376 // Enum values for system.filesystem.type
12377 var (
12378 // fat32
12379 // Stability: development
12380 SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
12381 // exfat
12382 // Stability: development
12383 SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
12384 // ntfs
12385 // Stability: development
12386 SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
12387 // refs
12388 // Stability: development
12389 SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
12390 // hfsplus
12391 // Stability: development
12392 SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
12393 // ext4
12394 // Stability: development
12395 SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
12396 )
12397
12398 // Enum values for system.memory.state
12399 var (
12400 // used
12401 // Stability: development
12402 SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
12403 // free
12404 // Stability: development
12405 SystemMemoryStateFree = SystemMemoryStateKey.String("free")
12406 // buffers
12407 // Stability: development
12408 SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
12409 // cached
12410 // Stability: development
12411 SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
12412 )
12413
12414 // Enum values for system.paging.direction
12415 var (
12416 // in
12417 // Stability: development
12418 SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
12419 // out
12420 // Stability: development
12421 SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
12422 )
12423
12424 // Enum values for system.paging.state
12425 var (
12426 // used
12427 // Stability: development
12428 SystemPagingStateUsed = SystemPagingStateKey.String("used")
12429 // free
12430 // Stability: development
12431 SystemPagingStateFree = SystemPagingStateKey.String("free")
12432 )
12433
12434 // Enum values for system.paging.type
12435 var (
12436 // major
12437 // Stability: development
12438 SystemPagingTypeMajor = SystemPagingTypeKey.String("major")
12439 // minor
12440 // Stability: development
12441 SystemPagingTypeMinor = SystemPagingTypeKey.String("minor")
12442 )
12443
12444 // Enum values for system.process.status
12445 var (
12446 // running
12447 // Stability: development
12448 SystemProcessStatusRunning = SystemProcessStatusKey.String("running")
12449 // sleeping
12450 // Stability: development
12451 SystemProcessStatusSleeping = SystemProcessStatusKey.String("sleeping")
12452 // stopped
12453 // Stability: development
12454 SystemProcessStatusStopped = SystemProcessStatusKey.String("stopped")
12455 // defunct
12456 // Stability: development
12457 SystemProcessStatusDefunct = SystemProcessStatusKey.String("defunct")
12458 )
12459
12460 // Namespace: telemetry
12461 const (
12462 // TelemetryDistroNameKey is the attribute Key conforming to the
12463 // "telemetry.distro.name" semantic conventions. It represents the name of the
12464 // auto instrumentation agent or distribution, if used.
12465 //
12466 // Type: string
12467 // RequirementLevel: Recommended
12468 // Stability: Development
12469 //
12470 // Examples: "parts-unlimited-java"
12471 // Note: Official auto instrumentation agents and distributions SHOULD set the
12472 // `telemetry.distro.name` attribute to
12473 // a string starting with `opentelemetry-`, e.g.
12474 // `opentelemetry-java-instrumentation`.
12475 TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
12476
12477 // TelemetryDistroVersionKey is the attribute Key conforming to the
12478 // "telemetry.distro.version" semantic conventions. It represents the version
12479 // string of the auto instrumentation agent or distribution, if used.
12480 //
12481 // Type: string
12482 // RequirementLevel: Recommended
12483 // Stability: Development
12484 //
12485 // Examples: "1.2.3"
12486 TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
12487
12488 // TelemetrySDKLanguageKey is the attribute Key conforming to the
12489 // "telemetry.sdk.language" semantic conventions. It represents the language of
12490 // the telemetry SDK.
12491 //
12492 // Type: Enum
12493 // RequirementLevel: Recommended
12494 // Stability: Stable
12495 //
12496 // Examples:
12497 TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
12498
12499 // TelemetrySDKNameKey is the attribute Key conforming to the
12500 // "telemetry.sdk.name" semantic conventions. It represents the name of the
12501 // telemetry SDK as defined above.
12502 //
12503 // Type: string
12504 // RequirementLevel: Recommended
12505 // Stability: Stable
12506 //
12507 // Examples: "opentelemetry"
12508 // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
12509 // `opentelemetry`.
12510 // If another SDK, like a fork or a vendor-provided implementation, is used,
12511 // this SDK MUST set the
12512 // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
12513 // this SDK's main entry point
12514 // or another suitable identifier depending on the language.
12515 // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
12516 // All custom identifiers SHOULD be stable across different versions of an
12517 // implementation.
12518 TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
12519
12520 // TelemetrySDKVersionKey is the attribute Key conforming to the
12521 // "telemetry.sdk.version" semantic conventions. It represents the version
12522 // string of the telemetry SDK.
12523 //
12524 // Type: string
12525 // RequirementLevel: Recommended
12526 // Stability: Stable
12527 //
12528 // Examples: "1.2.3"
12529 TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
12530 )
12531
12532 // TelemetryDistroName returns an attribute KeyValue conforming to the
12533 // "telemetry.distro.name" semantic conventions. It represents the name of the
12534 // auto instrumentation agent or distribution, if used.
12535 func TelemetryDistroName(val string) attribute.KeyValue {
12536 return TelemetryDistroNameKey.String(val)
12537 }
12538
12539 // TelemetryDistroVersion returns an attribute KeyValue conforming to the
12540 // "telemetry.distro.version" semantic conventions. It represents the version
12541 // string of the auto instrumentation agent or distribution, if used.
12542 func TelemetryDistroVersion(val string) attribute.KeyValue {
12543 return TelemetryDistroVersionKey.String(val)
12544 }
12545
12546 // TelemetrySDKName returns an attribute KeyValue conforming to the
12547 // "telemetry.sdk.name" semantic conventions. It represents the name of the
12548 // telemetry SDK as defined above.
12549 func TelemetrySDKName(val string) attribute.KeyValue {
12550 return TelemetrySDKNameKey.String(val)
12551 }
12552
12553 // TelemetrySDKVersion returns an attribute KeyValue conforming to the
12554 // "telemetry.sdk.version" semantic conventions. It represents the version string
12555 // of the telemetry SDK.
12556 func TelemetrySDKVersion(val string) attribute.KeyValue {
12557 return TelemetrySDKVersionKey.String(val)
12558 }
12559
12560 // Enum values for telemetry.sdk.language
12561 var (
12562 // cpp
12563 // Stability: stable
12564 TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
12565 // dotnet
12566 // Stability: stable
12567 TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
12568 // erlang
12569 // Stability: stable
12570 TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
12571 // go
12572 // Stability: stable
12573 TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
12574 // java
12575 // Stability: stable
12576 TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
12577 // nodejs
12578 // Stability: stable
12579 TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
12580 // php
12581 // Stability: stable
12582 TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
12583 // python
12584 // Stability: stable
12585 TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
12586 // ruby
12587 // Stability: stable
12588 TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
12589 // rust
12590 // Stability: stable
12591 TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
12592 // swift
12593 // Stability: stable
12594 TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
12595 // webjs
12596 // Stability: stable
12597 TelemetrySDKLanguageWebJS = TelemetrySDKLanguageKey.String("webjs")
12598 )
12599
12600 // Namespace: test
12601 const (
12602 // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
12603 // semantic conventions. It represents the fully qualified human readable name
12604 // of the [test case].
12605 //
12606 // Type: string
12607 // RequirementLevel: Recommended
12608 // Stability: Development
12609 //
12610 // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
12611 // "ExampleTestCase1_test1"
12612 //
12613 // [test case]: https://wikipedia.org/wiki/Test_case
12614 TestCaseNameKey = attribute.Key("test.case.name")
12615
12616 // TestCaseResultStatusKey is the attribute Key conforming to the
12617 // "test.case.result.status" semantic conventions. It represents the status of
12618 // the actual test case result from test execution.
12619 //
12620 // Type: Enum
12621 // RequirementLevel: Recommended
12622 // Stability: Development
12623 //
12624 // Examples: "pass", "fail"
12625 TestCaseResultStatusKey = attribute.Key("test.case.result.status")
12626
12627 // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
12628 // semantic conventions. It represents the human readable name of a [test suite]
12629 // .
12630 //
12631 // Type: string
12632 // RequirementLevel: Recommended
12633 // Stability: Development
12634 //
12635 // Examples: "TestSuite1"
12636 //
12637 // [test suite]: https://wikipedia.org/wiki/Test_suite
12638 TestSuiteNameKey = attribute.Key("test.suite.name")
12639
12640 // TestSuiteRunStatusKey is the attribute Key conforming to the
12641 // "test.suite.run.status" semantic conventions. It represents the status of the
12642 // test suite run.
12643 //
12644 // Type: Enum
12645 // RequirementLevel: Recommended
12646 // Stability: Development
12647 //
12648 // Examples: "success", "failure", "skipped", "aborted", "timed_out",
12649 // "in_progress"
12650 TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
12651 )
12652
12653 // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
12654 // semantic conventions. It represents the fully qualified human readable name of
12655 // the [test case].
12656 //
12657 // [test case]: https://wikipedia.org/wiki/Test_case
12658 func TestCaseName(val string) attribute.KeyValue {
12659 return TestCaseNameKey.String(val)
12660 }
12661
12662 // TestSuiteName returns an attribute KeyValue conforming to the
12663 // "test.suite.name" semantic conventions. It represents the human readable name
12664 // of a [test suite].
12665 //
12666 // [test suite]: https://wikipedia.org/wiki/Test_suite
12667 func TestSuiteName(val string) attribute.KeyValue {
12668 return TestSuiteNameKey.String(val)
12669 }
12670
12671 // Enum values for test.case.result.status
12672 var (
12673 // pass
12674 // Stability: development
12675 TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
12676 // fail
12677 // Stability: development
12678 TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
12679 )
12680
12681 // Enum values for test.suite.run.status
12682 var (
12683 // success
12684 // Stability: development
12685 TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
12686 // failure
12687 // Stability: development
12688 TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
12689 // skipped
12690 // Stability: development
12691 TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
12692 // aborted
12693 // Stability: development
12694 TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
12695 // timed_out
12696 // Stability: development
12697 TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
12698 // in_progress
12699 // Stability: development
12700 TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
12701 )
12702
12703 // Namespace: thread
12704 const (
12705 // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
12706 // conventions. It represents the current "managed" thread ID (as opposed to OS
12707 // thread ID).
12708 //
12709 // Type: int
12710 // RequirementLevel: Recommended
12711 // Stability: Development
12712 ThreadIDKey = attribute.Key("thread.id")
12713
12714 // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
12715 // conventions. It represents the current thread name.
12716 //
12717 // Type: string
12718 // RequirementLevel: Recommended
12719 // Stability: Development
12720 //
12721 // Examples: main
12722 ThreadNameKey = attribute.Key("thread.name")
12723 )
12724
12725 // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
12726 // conventions. It represents the current "managed" thread ID (as opposed to OS
12727 // thread ID).
12728 func ThreadID(val int) attribute.KeyValue {
12729 return ThreadIDKey.Int(val)
12730 }
12731
12732 // ThreadName returns an attribute KeyValue conforming to the "thread.name"
12733 // semantic conventions. It represents the current thread name.
12734 func ThreadName(val string) attribute.KeyValue {
12735 return ThreadNameKey.String(val)
12736 }
12737
12738 // Namespace: tls
12739 const (
12740 // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
12741 // conventions. It represents the string indicating the [cipher] used during the
12742 // current connection.
12743 //
12744 // Type: string
12745 // RequirementLevel: Recommended
12746 // Stability: Development
12747 //
12748 // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
12749 // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
12750 // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
12751 // of the [registered TLS Cipher Suits].
12752 //
12753 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
12754 // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
12755 TLSCipherKey = attribute.Key("tls.cipher")
12756
12757 // TLSClientCertificateKey is the attribute Key conforming to the
12758 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
12759 // stand-alone certificate offered by the client. This is usually
12760 // mutually-exclusive of `client.certificate_chain` since this value also exists
12761 // in that list.
12762 //
12763 // Type: string
12764 // RequirementLevel: Recommended
12765 // Stability: Development
12766 //
12767 // Examples: "MII..."
12768 TLSClientCertificateKey = attribute.Key("tls.client.certificate")
12769
12770 // TLSClientCertificateChainKey is the attribute Key conforming to the
12771 // "tls.client.certificate_chain" semantic conventions. It represents the array
12772 // of PEM-encoded certificates that make up the certificate chain offered by the
12773 // client. This is usually mutually-exclusive of `client.certificate` since that
12774 // value should be the first certificate in the chain.
12775 //
12776 // Type: string[]
12777 // RequirementLevel: Recommended
12778 // Stability: Development
12779 //
12780 // Examples: "MII...", "MI..."
12781 TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
12782
12783 // TLSClientHashMd5Key is the attribute Key conforming to the
12784 // "tls.client.hash.md5" semantic conventions. It represents the certificate
12785 // fingerprint using the MD5 digest of DER-encoded version of certificate
12786 // offered by the client. For consistency with other hash values, this value
12787 // should be formatted as an uppercase hash.
12788 //
12789 // Type: string
12790 // RequirementLevel: Recommended
12791 // Stability: Development
12792 //
12793 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
12794 TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
12795
12796 // TLSClientHashSha1Key is the attribute Key conforming to the
12797 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
12798 // fingerprint using the SHA1 digest of DER-encoded version of certificate
12799 // offered by the client. For consistency with other hash values, this value
12800 // should be formatted as an uppercase hash.
12801 //
12802 // Type: string
12803 // RequirementLevel: Recommended
12804 // Stability: Development
12805 //
12806 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
12807 TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
12808
12809 // TLSClientHashSha256Key is the attribute Key conforming to the
12810 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
12811 // fingerprint using the SHA256 digest of DER-encoded version of certificate
12812 // offered by the client. For consistency with other hash values, this value
12813 // should be formatted as an uppercase hash.
12814 //
12815 // Type: string
12816 // RequirementLevel: Recommended
12817 // Stability: Development
12818 //
12819 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
12820 TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
12821
12822 // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
12823 // semantic conventions. It represents the distinguished name of [subject] of
12824 // the issuer of the x.509 certificate presented by the client.
12825 //
12826 // Type: string
12827 // RequirementLevel: Recommended
12828 // Stability: Development
12829 //
12830 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
12831 //
12832 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
12833 TLSClientIssuerKey = attribute.Key("tls.client.issuer")
12834
12835 // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
12836 // semantic conventions. It represents a hash that identifies clients based on
12837 // how they perform an SSL/TLS handshake.
12838 //
12839 // Type: string
12840 // RequirementLevel: Recommended
12841 // Stability: Development
12842 //
12843 // Examples: "d4e5b18d6b55c71272893221c96ba240"
12844 TLSClientJa3Key = attribute.Key("tls.client.ja3")
12845
12846 // TLSClientNotAfterKey is the attribute Key conforming to the
12847 // "tls.client.not_after" semantic conventions. It represents the date/Time
12848 // indicating when client certificate is no longer considered valid.
12849 //
12850 // Type: string
12851 // RequirementLevel: Recommended
12852 // Stability: Development
12853 //
12854 // Examples: "2021-01-01T00:00:00.000Z"
12855 TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
12856
12857 // TLSClientNotBeforeKey is the attribute Key conforming to the
12858 // "tls.client.not_before" semantic conventions. It represents the date/Time
12859 // indicating when client certificate is first considered valid.
12860 //
12861 // Type: string
12862 // RequirementLevel: Recommended
12863 // Stability: Development
12864 //
12865 // Examples: "1970-01-01T00:00:00.000Z"
12866 TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
12867
12868 // TLSClientSubjectKey is the attribute Key conforming to the
12869 // "tls.client.subject" semantic conventions. It represents the distinguished
12870 // name of subject of the x.509 certificate presented by the client.
12871 //
12872 // Type: string
12873 // RequirementLevel: Recommended
12874 // Stability: Development
12875 //
12876 // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
12877 TLSClientSubjectKey = attribute.Key("tls.client.subject")
12878
12879 // TLSClientSupportedCiphersKey is the attribute Key conforming to the
12880 // "tls.client.supported_ciphers" semantic conventions. It represents the array
12881 // of ciphers offered by the client during the client hello.
12882 //
12883 // Type: string[]
12884 // RequirementLevel: Recommended
12885 // Stability: Development
12886 //
12887 // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
12888 // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
12889 TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
12890
12891 // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
12892 // conventions. It represents the string indicating the curve used for the given
12893 // cipher, when applicable.
12894 //
12895 // Type: string
12896 // RequirementLevel: Recommended
12897 // Stability: Development
12898 //
12899 // Examples: "secp256r1"
12900 TLSCurveKey = attribute.Key("tls.curve")
12901
12902 // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
12903 // semantic conventions. It represents the boolean flag indicating if the TLS
12904 // negotiation was successful and transitioned to an encrypted tunnel.
12905 //
12906 // Type: boolean
12907 // RequirementLevel: Recommended
12908 // Stability: Development
12909 //
12910 // Examples: true
12911 TLSEstablishedKey = attribute.Key("tls.established")
12912
12913 // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
12914 // semantic conventions. It represents the string indicating the protocol being
12915 // tunneled. Per the values in the [IANA registry], this string should be lower
12916 // case.
12917 //
12918 // Type: string
12919 // RequirementLevel: Recommended
12920 // Stability: Development
12921 //
12922 // Examples: "http/1.1"
12923 //
12924 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
12925 TLSNextProtocolKey = attribute.Key("tls.next_protocol")
12926
12927 // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
12928 // semantic conventions. It represents the normalized lowercase protocol name
12929 // parsed from original string of the negotiated [SSL/TLS protocol version].
12930 //
12931 // Type: Enum
12932 // RequirementLevel: Recommended
12933 // Stability: Development
12934 //
12935 // Examples:
12936 //
12937 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
12938 TLSProtocolNameKey = attribute.Key("tls.protocol.name")
12939
12940 // TLSProtocolVersionKey is the attribute Key conforming to the
12941 // "tls.protocol.version" semantic conventions. It represents the numeric part
12942 // of the version parsed from the original string of the negotiated
12943 // [SSL/TLS protocol version].
12944 //
12945 // Type: string
12946 // RequirementLevel: Recommended
12947 // Stability: Development
12948 //
12949 // Examples: "1.2", "3"
12950 //
12951 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
12952 TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
12953
12954 // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
12955 // conventions. It represents the boolean flag indicating if this TLS connection
12956 // was resumed from an existing TLS negotiation.
12957 //
12958 // Type: boolean
12959 // RequirementLevel: Recommended
12960 // Stability: Development
12961 //
12962 // Examples: true
12963 TLSResumedKey = attribute.Key("tls.resumed")
12964
12965 // TLSServerCertificateKey is the attribute Key conforming to the
12966 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
12967 // stand-alone certificate offered by the server. This is usually
12968 // mutually-exclusive of `server.certificate_chain` since this value also exists
12969 // in that list.
12970 //
12971 // Type: string
12972 // RequirementLevel: Recommended
12973 // Stability: Development
12974 //
12975 // Examples: "MII..."
12976 TLSServerCertificateKey = attribute.Key("tls.server.certificate")
12977
12978 // TLSServerCertificateChainKey is the attribute Key conforming to the
12979 // "tls.server.certificate_chain" semantic conventions. It represents the array
12980 // of PEM-encoded certificates that make up the certificate chain offered by the
12981 // server. This is usually mutually-exclusive of `server.certificate` since that
12982 // value should be the first certificate in the chain.
12983 //
12984 // Type: string[]
12985 // RequirementLevel: Recommended
12986 // Stability: Development
12987 //
12988 // Examples: "MII...", "MI..."
12989 TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
12990
12991 // TLSServerHashMd5Key is the attribute Key conforming to the
12992 // "tls.server.hash.md5" semantic conventions. It represents the certificate
12993 // fingerprint using the MD5 digest of DER-encoded version of certificate
12994 // offered by the server. For consistency with other hash values, this value
12995 // should be formatted as an uppercase hash.
12996 //
12997 // Type: string
12998 // RequirementLevel: Recommended
12999 // Stability: Development
13000 //
13001 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
13002 TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
13003
13004 // TLSServerHashSha1Key is the attribute Key conforming to the
13005 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
13006 // fingerprint using the SHA1 digest of DER-encoded version of certificate
13007 // offered by the server. For consistency with other hash values, this value
13008 // should be formatted as an uppercase hash.
13009 //
13010 // Type: string
13011 // RequirementLevel: Recommended
13012 // Stability: Development
13013 //
13014 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
13015 TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
13016
13017 // TLSServerHashSha256Key is the attribute Key conforming to the
13018 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
13019 // fingerprint using the SHA256 digest of DER-encoded version of certificate
13020 // offered by the server. For consistency with other hash values, this value
13021 // should be formatted as an uppercase hash.
13022 //
13023 // Type: string
13024 // RequirementLevel: Recommended
13025 // Stability: Development
13026 //
13027 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
13028 TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
13029
13030 // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
13031 // semantic conventions. It represents the distinguished name of [subject] of
13032 // the issuer of the x.509 certificate presented by the client.
13033 //
13034 // Type: string
13035 // RequirementLevel: Recommended
13036 // Stability: Development
13037 //
13038 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
13039 //
13040 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
13041 TLSServerIssuerKey = attribute.Key("tls.server.issuer")
13042
13043 // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
13044 // semantic conventions. It represents a hash that identifies servers based on
13045 // how they perform an SSL/TLS handshake.
13046 //
13047 // Type: string
13048 // RequirementLevel: Recommended
13049 // Stability: Development
13050 //
13051 // Examples: "d4e5b18d6b55c71272893221c96ba240"
13052 TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
13053
13054 // TLSServerNotAfterKey is the attribute Key conforming to the
13055 // "tls.server.not_after" semantic conventions. It represents the date/Time
13056 // indicating when server certificate is no longer considered valid.
13057 //
13058 // Type: string
13059 // RequirementLevel: Recommended
13060 // Stability: Development
13061 //
13062 // Examples: "2021-01-01T00:00:00.000Z"
13063 TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
13064
13065 // TLSServerNotBeforeKey is the attribute Key conforming to the
13066 // "tls.server.not_before" semantic conventions. It represents the date/Time
13067 // indicating when server certificate is first considered valid.
13068 //
13069 // Type: string
13070 // RequirementLevel: Recommended
13071 // Stability: Development
13072 //
13073 // Examples: "1970-01-01T00:00:00.000Z"
13074 TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
13075
13076 // TLSServerSubjectKey is the attribute Key conforming to the
13077 // "tls.server.subject" semantic conventions. It represents the distinguished
13078 // name of subject of the x.509 certificate presented by the server.
13079 //
13080 // Type: string
13081 // RequirementLevel: Recommended
13082 // Stability: Development
13083 //
13084 // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
13085 TLSServerSubjectKey = attribute.Key("tls.server.subject")
13086 )
13087
13088 // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
13089 // semantic conventions. It represents the string indicating the [cipher] used
13090 // during the current connection.
13091 //
13092 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
13093 func TLSCipher(val string) attribute.KeyValue {
13094 return TLSCipherKey.String(val)
13095 }
13096
13097 // TLSClientCertificate returns an attribute KeyValue conforming to the
13098 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
13099 // stand-alone certificate offered by the client. This is usually
13100 // mutually-exclusive of `client.certificate_chain` since this value also exists
13101 // in that list.
13102 func TLSClientCertificate(val string) attribute.KeyValue {
13103 return TLSClientCertificateKey.String(val)
13104 }
13105
13106 // TLSClientCertificateChain returns an attribute KeyValue conforming to the
13107 // "tls.client.certificate_chain" semantic conventions. It represents the array
13108 // of PEM-encoded certificates that make up the certificate chain offered by the
13109 // client. This is usually mutually-exclusive of `client.certificate` since that
13110 // value should be the first certificate in the chain.
13111 func TLSClientCertificateChain(val ...string) attribute.KeyValue {
13112 return TLSClientCertificateChainKey.StringSlice(val)
13113 }
13114
13115 // TLSClientHashMd5 returns an attribute KeyValue conforming to the
13116 // "tls.client.hash.md5" semantic conventions. It represents the certificate
13117 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
13118 // by the client. For consistency with other hash values, this value should be
13119 // formatted as an uppercase hash.
13120 func TLSClientHashMd5(val string) attribute.KeyValue {
13121 return TLSClientHashMd5Key.String(val)
13122 }
13123
13124 // TLSClientHashSha1 returns an attribute KeyValue conforming to the
13125 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
13126 // fingerprint using the SHA1 digest of DER-encoded version of certificate
13127 // offered by the client. For consistency with other hash values, this value
13128 // should be formatted as an uppercase hash.
13129 func TLSClientHashSha1(val string) attribute.KeyValue {
13130 return TLSClientHashSha1Key.String(val)
13131 }
13132
13133 // TLSClientHashSha256 returns an attribute KeyValue conforming to the
13134 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
13135 // fingerprint using the SHA256 digest of DER-encoded version of certificate
13136 // offered by the client. For consistency with other hash values, this value
13137 // should be formatted as an uppercase hash.
13138 func TLSClientHashSha256(val string) attribute.KeyValue {
13139 return TLSClientHashSha256Key.String(val)
13140 }
13141
13142 // TLSClientIssuer returns an attribute KeyValue conforming to the
13143 // "tls.client.issuer" semantic conventions. It represents the distinguished name
13144 // of [subject] of the issuer of the x.509 certificate presented by the client.
13145 //
13146 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
13147 func TLSClientIssuer(val string) attribute.KeyValue {
13148 return TLSClientIssuerKey.String(val)
13149 }
13150
13151 // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
13152 // semantic conventions. It represents a hash that identifies clients based on
13153 // how they perform an SSL/TLS handshake.
13154 func TLSClientJa3(val string) attribute.KeyValue {
13155 return TLSClientJa3Key.String(val)
13156 }
13157
13158 // TLSClientNotAfter returns an attribute KeyValue conforming to the
13159 // "tls.client.not_after" semantic conventions. It represents the date/Time
13160 // indicating when client certificate is no longer considered valid.
13161 func TLSClientNotAfter(val string) attribute.KeyValue {
13162 return TLSClientNotAfterKey.String(val)
13163 }
13164
13165 // TLSClientNotBefore returns an attribute KeyValue conforming to the
13166 // "tls.client.not_before" semantic conventions. It represents the date/Time
13167 // indicating when client certificate is first considered valid.
13168 func TLSClientNotBefore(val string) attribute.KeyValue {
13169 return TLSClientNotBeforeKey.String(val)
13170 }
13171
13172 // TLSClientSubject returns an attribute KeyValue conforming to the
13173 // "tls.client.subject" semantic conventions. It represents the distinguished
13174 // name of subject of the x.509 certificate presented by the client.
13175 func TLSClientSubject(val string) attribute.KeyValue {
13176 return TLSClientSubjectKey.String(val)
13177 }
13178
13179 // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
13180 // "tls.client.supported_ciphers" semantic conventions. It represents the array
13181 // of ciphers offered by the client during the client hello.
13182 func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
13183 return TLSClientSupportedCiphersKey.StringSlice(val)
13184 }
13185
13186 // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
13187 // conventions. It represents the string indicating the curve used for the given
13188 // cipher, when applicable.
13189 func TLSCurve(val string) attribute.KeyValue {
13190 return TLSCurveKey.String(val)
13191 }
13192
13193 // TLSEstablished returns an attribute KeyValue conforming to the
13194 // "tls.established" semantic conventions. It represents the boolean flag
13195 // indicating if the TLS negotiation was successful and transitioned to an
13196 // encrypted tunnel.
13197 func TLSEstablished(val bool) attribute.KeyValue {
13198 return TLSEstablishedKey.Bool(val)
13199 }
13200
13201 // TLSNextProtocol returns an attribute KeyValue conforming to the
13202 // "tls.next_protocol" semantic conventions. It represents the string indicating
13203 // the protocol being tunneled. Per the values in the [IANA registry], this
13204 // string should be lower case.
13205 //
13206 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
13207 func TLSNextProtocol(val string) attribute.KeyValue {
13208 return TLSNextProtocolKey.String(val)
13209 }
13210
13211 // TLSProtocolVersion returns an attribute KeyValue conforming to the
13212 // "tls.protocol.version" semantic conventions. It represents the numeric part of
13213 // the version parsed from the original string of the negotiated
13214 // [SSL/TLS protocol version].
13215 //
13216 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
13217 func TLSProtocolVersion(val string) attribute.KeyValue {
13218 return TLSProtocolVersionKey.String(val)
13219 }
13220
13221 // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
13222 // semantic conventions. It represents the boolean flag indicating if this TLS
13223 // connection was resumed from an existing TLS negotiation.
13224 func TLSResumed(val bool) attribute.KeyValue {
13225 return TLSResumedKey.Bool(val)
13226 }
13227
13228 // TLSServerCertificate returns an attribute KeyValue conforming to the
13229 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
13230 // stand-alone certificate offered by the server. This is usually
13231 // mutually-exclusive of `server.certificate_chain` since this value also exists
13232 // in that list.
13233 func TLSServerCertificate(val string) attribute.KeyValue {
13234 return TLSServerCertificateKey.String(val)
13235 }
13236
13237 // TLSServerCertificateChain returns an attribute KeyValue conforming to the
13238 // "tls.server.certificate_chain" semantic conventions. It represents the array
13239 // of PEM-encoded certificates that make up the certificate chain offered by the
13240 // server. This is usually mutually-exclusive of `server.certificate` since that
13241 // value should be the first certificate in the chain.
13242 func TLSServerCertificateChain(val ...string) attribute.KeyValue {
13243 return TLSServerCertificateChainKey.StringSlice(val)
13244 }
13245
13246 // TLSServerHashMd5 returns an attribute KeyValue conforming to the
13247 // "tls.server.hash.md5" semantic conventions. It represents the certificate
13248 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
13249 // by the server. For consistency with other hash values, this value should be
13250 // formatted as an uppercase hash.
13251 func TLSServerHashMd5(val string) attribute.KeyValue {
13252 return TLSServerHashMd5Key.String(val)
13253 }
13254
13255 // TLSServerHashSha1 returns an attribute KeyValue conforming to the
13256 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
13257 // fingerprint using the SHA1 digest of DER-encoded version of certificate
13258 // offered by the server. For consistency with other hash values, this value
13259 // should be formatted as an uppercase hash.
13260 func TLSServerHashSha1(val string) attribute.KeyValue {
13261 return TLSServerHashSha1Key.String(val)
13262 }
13263
13264 // TLSServerHashSha256 returns an attribute KeyValue conforming to the
13265 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
13266 // fingerprint using the SHA256 digest of DER-encoded version of certificate
13267 // offered by the server. For consistency with other hash values, this value
13268 // should be formatted as an uppercase hash.
13269 func TLSServerHashSha256(val string) attribute.KeyValue {
13270 return TLSServerHashSha256Key.String(val)
13271 }
13272
13273 // TLSServerIssuer returns an attribute KeyValue conforming to the
13274 // "tls.server.issuer" semantic conventions. It represents the distinguished name
13275 // of [subject] of the issuer of the x.509 certificate presented by the client.
13276 //
13277 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
13278 func TLSServerIssuer(val string) attribute.KeyValue {
13279 return TLSServerIssuerKey.String(val)
13280 }
13281
13282 // TLSServerJa3s returns an attribute KeyValue conforming to the
13283 // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
13284 // servers based on how they perform an SSL/TLS handshake.
13285 func TLSServerJa3s(val string) attribute.KeyValue {
13286 return TLSServerJa3sKey.String(val)
13287 }
13288
13289 // TLSServerNotAfter returns an attribute KeyValue conforming to the
13290 // "tls.server.not_after" semantic conventions. It represents the date/Time
13291 // indicating when server certificate is no longer considered valid.
13292 func TLSServerNotAfter(val string) attribute.KeyValue {
13293 return TLSServerNotAfterKey.String(val)
13294 }
13295
13296 // TLSServerNotBefore returns an attribute KeyValue conforming to the
13297 // "tls.server.not_before" semantic conventions. It represents the date/Time
13298 // indicating when server certificate is first considered valid.
13299 func TLSServerNotBefore(val string) attribute.KeyValue {
13300 return TLSServerNotBeforeKey.String(val)
13301 }
13302
13303 // TLSServerSubject returns an attribute KeyValue conforming to the
13304 // "tls.server.subject" semantic conventions. It represents the distinguished
13305 // name of subject of the x.509 certificate presented by the server.
13306 func TLSServerSubject(val string) attribute.KeyValue {
13307 return TLSServerSubjectKey.String(val)
13308 }
13309
13310 // Enum values for tls.protocol.name
13311 var (
13312 // ssl
13313 // Stability: development
13314 TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
13315 // tls
13316 // Stability: development
13317 TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
13318 )
13319
13320 // Namespace: url
13321 const (
13322 // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
13323 // conventions. It represents the domain extracted from the `url.full`, such as
13324 // "opentelemetry.io".
13325 //
13326 // Type: string
13327 // RequirementLevel: Recommended
13328 // Stability: Development
13329 //
13330 // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
13331 // "[1080:0:0:0:8:800:200C:417A]"
13332 // Note: In some cases a URL may refer to an IP and/or port directly, without a
13333 // domain name. In this case, the IP address would go to the domain field. If
13334 // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
13335 // and `]` characters should also be captured in the domain field.
13336 //
13337 // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
13338 URLDomainKey = attribute.Key("url.domain")
13339
13340 // URLExtensionKey is the attribute Key conforming to the "url.extension"
13341 // semantic conventions. It represents the file extension extracted from the
13342 // `url.full`, excluding the leading dot.
13343 //
13344 // Type: string
13345 // RequirementLevel: Recommended
13346 // Stability: Development
13347 //
13348 // Examples: "png", "gz"
13349 // Note: The file extension is only set if it exists, as not every url has a
13350 // file extension. When the file name has multiple extensions `example.tar.gz`,
13351 // only the last one should be captured `gz`, not `tar.gz`.
13352 URLExtensionKey = attribute.Key("url.extension")
13353
13354 // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
13355 // conventions. It represents the [URI fragment] component.
13356 //
13357 // Type: string
13358 // RequirementLevel: Recommended
13359 // Stability: Stable
13360 //
13361 // Examples: "SemConv"
13362 //
13363 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
13364 URLFragmentKey = attribute.Key("url.fragment")
13365
13366 // URLFullKey is the attribute Key conforming to the "url.full" semantic
13367 // conventions. It represents the absolute URL describing a network resource
13368 // according to [RFC3986].
13369 //
13370 // Type: string
13371 // RequirementLevel: Recommended
13372 // Stability: Stable
13373 //
13374 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
13375 // Note: For network calls, URL usually has
13376 // `scheme://host[:port][path][?query][#fragment]` format, where the fragment
13377 // is not transmitted over HTTP, but if it is known, it SHOULD be included
13378 // nevertheless.
13379 //
13380 // `url.full` MUST NOT contain credentials passed via URL in form of
13381 // `https://username:[email protected]/`.
13382 // In such case username and password SHOULD be redacted and attribute's value
13383 // SHOULD be `https://REDACTED:[email protected]/`.
13384 //
13385 // `url.full` SHOULD capture the absolute URL when it is available (or can be
13386 // reconstructed).
13387 //
13388 // Sensitive content provided in `url.full` SHOULD be scrubbed when
13389 // instrumentations can identify it.
13390 //
13391 //
13392 // Query string values for the following keys SHOULD be redacted by default and
13393 // replaced by the
13394 // value `REDACTED`:
13395 //
13396 // - [`AWSAccessKeyId`]
13397 // - [`Signature`]
13398 // - [`sig`]
13399 // - [`X-Goog-Signature`]
13400 //
13401 // This list is subject to change over time.
13402 //
13403 // When a query string value is redacted, the query string key SHOULD still be
13404 // preserved, e.g.
13405 // `https://www.example.com/path?color=blue&sig=REDACTED`.
13406 //
13407 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
13408 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
13409 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
13410 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
13411 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
13412 URLFullKey = attribute.Key("url.full")
13413
13414 // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
13415 // conventions. It represents the unmodified original URL as seen in the event
13416 // source.
13417 //
13418 // Type: string
13419 // RequirementLevel: Recommended
13420 // Stability: Development
13421 //
13422 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
13423 // "search?q=OpenTelemetry"
13424 // Note: In network monitoring, the observed URL may be a full URL, whereas in
13425 // access logs, the URL is often just represented as a path. This field is meant
13426 // to represent the URL as it was observed, complete or not.
13427 // `url.original` might contain credentials passed via URL in form of
13428 // `https://username:[email protected]/`. In such case password and
13429 // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
13430 URLOriginalKey = attribute.Key("url.original")
13431
13432 // URLPathKey is the attribute Key conforming to the "url.path" semantic
13433 // conventions. It represents the [URI path] component.
13434 //
13435 // Type: string
13436 // RequirementLevel: Recommended
13437 // Stability: Stable
13438 //
13439 // Examples: "/search"
13440 // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
13441 // instrumentations can identify it.
13442 //
13443 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
13444 URLPathKey = attribute.Key("url.path")
13445
13446 // URLPortKey is the attribute Key conforming to the "url.port" semantic
13447 // conventions. It represents the port extracted from the `url.full`.
13448 //
13449 // Type: int
13450 // RequirementLevel: Recommended
13451 // Stability: Development
13452 //
13453 // Examples: 443
13454 URLPortKey = attribute.Key("url.port")
13455
13456 // URLQueryKey is the attribute Key conforming to the "url.query" semantic
13457 // conventions. It represents the [URI query] component.
13458 //
13459 // Type: string
13460 // RequirementLevel: Recommended
13461 // Stability: Stable
13462 //
13463 // Examples: "q=OpenTelemetry"
13464 // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
13465 // instrumentations can identify it.
13466 //
13467 //
13468 // Query string values for the following keys SHOULD be redacted by default and
13469 // replaced by the value `REDACTED`:
13470 //
13471 // - [`AWSAccessKeyId`]
13472 // - [`Signature`]
13473 // - [`sig`]
13474 // - [`X-Goog-Signature`]
13475 //
13476 // This list is subject to change over time.
13477 //
13478 // When a query string value is redacted, the query string key SHOULD still be
13479 // preserved, e.g.
13480 // `q=OpenTelemetry&sig=REDACTED`.
13481 //
13482 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
13483 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
13484 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
13485 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
13486 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
13487 URLQueryKey = attribute.Key("url.query")
13488
13489 // URLRegisteredDomainKey is the attribute Key conforming to the
13490 // "url.registered_domain" semantic conventions. It represents the highest
13491 // registered url domain, stripped of the subdomain.
13492 //
13493 // Type: string
13494 // RequirementLevel: Recommended
13495 // Stability: Development
13496 //
13497 // Examples: "example.com", "foo.co.uk"
13498 // Note: This value can be determined precisely with the [public suffix list].
13499 // For example, the registered domain for `foo.example.com` is `example.com`.
13500 // Trying to approximate this by simply taking the last two labels will not work
13501 // well for TLDs such as `co.uk`.
13502 //
13503 // [public suffix list]: https://publicsuffix.org/
13504 URLRegisteredDomainKey = attribute.Key("url.registered_domain")
13505
13506 // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
13507 // conventions. It represents the [URI scheme] component identifying the used
13508 // protocol.
13509 //
13510 // Type: string
13511 // RequirementLevel: Recommended
13512 // Stability: Stable
13513 //
13514 // Examples: "https", "ftp", "telnet"
13515 //
13516 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
13517 URLSchemeKey = attribute.Key("url.scheme")
13518
13519 // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
13520 // semantic conventions. It represents the subdomain portion of a fully
13521 // qualified domain name includes all of the names except the host name under
13522 // the registered_domain. In a partially qualified domain, or if the
13523 // qualification level of the full name cannot be determined, subdomain contains
13524 // all of the names below the registered domain.
13525 //
13526 // Type: string
13527 // RequirementLevel: Recommended
13528 // Stability: Development
13529 //
13530 // Examples: "east", "sub2.sub1"
13531 // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
13532 // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
13533 // subdomain field should contain `sub2.sub1`, with no trailing period.
13534 URLSubdomainKey = attribute.Key("url.subdomain")
13535
13536 // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
13537 // conventions. It represents the low-cardinality template of an
13538 // [absolute path reference].
13539 //
13540 // Type: string
13541 // RequirementLevel: Recommended
13542 // Stability: Development
13543 //
13544 // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
13545 //
13546 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
13547 URLTemplateKey = attribute.Key("url.template")
13548
13549 // URLTopLevelDomainKey is the attribute Key conforming to the
13550 // "url.top_level_domain" semantic conventions. It represents the effective top
13551 // level domain (eTLD), also known as the domain suffix, is the last part of the
13552 // domain name. For example, the top level domain for example.com is `com`.
13553 //
13554 // Type: string
13555 // RequirementLevel: Recommended
13556 // Stability: Development
13557 //
13558 // Examples: "com", "co.uk"
13559 // Note: This value can be determined precisely with the [public suffix list].
13560 //
13561 // [public suffix list]: https://publicsuffix.org/
13562 URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
13563 )
13564
13565 // URLDomain returns an attribute KeyValue conforming to the "url.domain"
13566 // semantic conventions. It represents the domain extracted from the `url.full`,
13567 // such as "opentelemetry.io".
13568 func URLDomain(val string) attribute.KeyValue {
13569 return URLDomainKey.String(val)
13570 }
13571
13572 // URLExtension returns an attribute KeyValue conforming to the "url.extension"
13573 // semantic conventions. It represents the file extension extracted from the
13574 // `url.full`, excluding the leading dot.
13575 func URLExtension(val string) attribute.KeyValue {
13576 return URLExtensionKey.String(val)
13577 }
13578
13579 // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
13580 // semantic conventions. It represents the [URI fragment] component.
13581 //
13582 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
13583 func URLFragment(val string) attribute.KeyValue {
13584 return URLFragmentKey.String(val)
13585 }
13586
13587 // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
13588 // conventions. It represents the absolute URL describing a network resource
13589 // according to [RFC3986].
13590 //
13591 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
13592 func URLFull(val string) attribute.KeyValue {
13593 return URLFullKey.String(val)
13594 }
13595
13596 // URLOriginal returns an attribute KeyValue conforming to the "url.original"
13597 // semantic conventions. It represents the unmodified original URL as seen in the
13598 // event source.
13599 func URLOriginal(val string) attribute.KeyValue {
13600 return URLOriginalKey.String(val)
13601 }
13602
13603 // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
13604 // conventions. It represents the [URI path] component.
13605 //
13606 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
13607 func URLPath(val string) attribute.KeyValue {
13608 return URLPathKey.String(val)
13609 }
13610
13611 // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
13612 // conventions. It represents the port extracted from the `url.full`.
13613 func URLPort(val int) attribute.KeyValue {
13614 return URLPortKey.Int(val)
13615 }
13616
13617 // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
13618 // conventions. It represents the [URI query] component.
13619 //
13620 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
13621 func URLQuery(val string) attribute.KeyValue {
13622 return URLQueryKey.String(val)
13623 }
13624
13625 // URLRegisteredDomain returns an attribute KeyValue conforming to the
13626 // "url.registered_domain" semantic conventions. It represents the highest
13627 // registered url domain, stripped of the subdomain.
13628 func URLRegisteredDomain(val string) attribute.KeyValue {
13629 return URLRegisteredDomainKey.String(val)
13630 }
13631
13632 // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
13633 // semantic conventions. It represents the [URI scheme] component identifying the
13634 // used protocol.
13635 //
13636 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
13637 func URLScheme(val string) attribute.KeyValue {
13638 return URLSchemeKey.String(val)
13639 }
13640
13641 // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
13642 // semantic conventions. It represents the subdomain portion of a fully qualified
13643 // domain name includes all of the names except the host name under the
13644 // registered_domain. In a partially qualified domain, or if the qualification
13645 // level of the full name cannot be determined, subdomain contains all of the
13646 // names below the registered domain.
13647 func URLSubdomain(val string) attribute.KeyValue {
13648 return URLSubdomainKey.String(val)
13649 }
13650
13651 // URLTemplate returns an attribute KeyValue conforming to the "url.template"
13652 // semantic conventions. It represents the low-cardinality template of an
13653 // [absolute path reference].
13654 //
13655 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
13656 func URLTemplate(val string) attribute.KeyValue {
13657 return URLTemplateKey.String(val)
13658 }
13659
13660 // URLTopLevelDomain returns an attribute KeyValue conforming to the
13661 // "url.top_level_domain" semantic conventions. It represents the effective top
13662 // level domain (eTLD), also known as the domain suffix, is the last part of the
13663 // domain name. For example, the top level domain for example.com is `com`.
13664 func URLTopLevelDomain(val string) attribute.KeyValue {
13665 return URLTopLevelDomainKey.String(val)
13666 }
13667
13668 // Namespace: user
13669 const (
13670 // UserEmailKey is the attribute Key conforming to the "user.email" semantic
13671 // conventions. It represents the user email address.
13672 //
13673 // Type: string
13674 // RequirementLevel: Recommended
13675 // Stability: Development
13676 //
13677 // Examples: "[email protected]"
13678 UserEmailKey = attribute.Key("user.email")
13679
13680 // UserFullNameKey is the attribute Key conforming to the "user.full_name"
13681 // semantic conventions. It represents the user's full name.
13682 //
13683 // Type: string
13684 // RequirementLevel: Recommended
13685 // Stability: Development
13686 //
13687 // Examples: "Albert Einstein"
13688 UserFullNameKey = attribute.Key("user.full_name")
13689
13690 // UserHashKey is the attribute Key conforming to the "user.hash" semantic
13691 // conventions. It represents the unique user hash to correlate information for
13692 // a user in anonymized form.
13693 //
13694 // Type: string
13695 // RequirementLevel: Recommended
13696 // Stability: Development
13697 //
13698 // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
13699 // Note: Useful if `user.id` or `user.name` contain confidential information and
13700 // cannot be used.
13701 UserHashKey = attribute.Key("user.hash")
13702
13703 // UserIDKey is the attribute Key conforming to the "user.id" semantic
13704 // conventions. It represents the unique identifier of the user.
13705 //
13706 // Type: string
13707 // RequirementLevel: Recommended
13708 // Stability: Development
13709 //
13710 // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
13711 UserIDKey = attribute.Key("user.id")
13712
13713 // UserNameKey is the attribute Key conforming to the "user.name" semantic
13714 // conventions. It represents the short name or login/username of the user.
13715 //
13716 // Type: string
13717 // RequirementLevel: Recommended
13718 // Stability: Development
13719 //
13720 // Examples: "a.einstein"
13721 UserNameKey = attribute.Key("user.name")
13722
13723 // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
13724 // conventions. It represents the array of user roles at the time of the event.
13725 //
13726 // Type: string[]
13727 // RequirementLevel: Recommended
13728 // Stability: Development
13729 //
13730 // Examples: "admin", "reporting_user"
13731 UserRolesKey = attribute.Key("user.roles")
13732 )
13733
13734 // UserEmail returns an attribute KeyValue conforming to the "user.email"
13735 // semantic conventions. It represents the user email address.
13736 func UserEmail(val string) attribute.KeyValue {
13737 return UserEmailKey.String(val)
13738 }
13739
13740 // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
13741 // semantic conventions. It represents the user's full name.
13742 func UserFullName(val string) attribute.KeyValue {
13743 return UserFullNameKey.String(val)
13744 }
13745
13746 // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
13747 // conventions. It represents the unique user hash to correlate information for a
13748 // user in anonymized form.
13749 func UserHash(val string) attribute.KeyValue {
13750 return UserHashKey.String(val)
13751 }
13752
13753 // UserID returns an attribute KeyValue conforming to the "user.id" semantic
13754 // conventions. It represents the unique identifier of the user.
13755 func UserID(val string) attribute.KeyValue {
13756 return UserIDKey.String(val)
13757 }
13758
13759 // UserName returns an attribute KeyValue conforming to the "user.name" semantic
13760 // conventions. It represents the short name or login/username of the user.
13761 func UserName(val string) attribute.KeyValue {
13762 return UserNameKey.String(val)
13763 }
13764
13765 // UserRoles returns an attribute KeyValue conforming to the "user.roles"
13766 // semantic conventions. It represents the array of user roles at the time of the
13767 // event.
13768 func UserRoles(val ...string) attribute.KeyValue {
13769 return UserRolesKey.StringSlice(val)
13770 }
13771
13772 // Namespace: user_agent
13773 const (
13774 // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
13775 // semantic conventions. It represents the name of the user-agent extracted from
13776 // original. Usually refers to the browser's name.
13777 //
13778 // Type: string
13779 // RequirementLevel: Recommended
13780 // Stability: Development
13781 //
13782 // Examples: "Safari", "YourApp"
13783 // Note: [Example] of extracting browser's name from original string. In the
13784 // case of using a user-agent for non-browser products, such as microservices
13785 // with multiple names/versions inside the `user_agent.original`, the most
13786 // significant name SHOULD be selected. In such a scenario it should align with
13787 // `user_agent.version`
13788 //
13789 // [Example]: https://www.whatsmyua.info
13790 UserAgentNameKey = attribute.Key("user_agent.name")
13791
13792 // UserAgentOriginalKey is the attribute Key conforming to the
13793 // "user_agent.original" semantic conventions. It represents the value of the
13794 // [HTTP User-Agent] header sent by the client.
13795 //
13796 // Type: string
13797 // RequirementLevel: Recommended
13798 // Stability: Stable
13799 //
13800 // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
13801 // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
13802 // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
13803 // grpc-java-okhttp/1.27.2"
13804 //
13805 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
13806 UserAgentOriginalKey = attribute.Key("user_agent.original")
13807
13808 // UserAgentOSNameKey is the attribute Key conforming to the
13809 // "user_agent.os.name" semantic conventions. It represents the human readable
13810 // operating system name.
13811 //
13812 // Type: string
13813 // RequirementLevel: Recommended
13814 // Stability: Development
13815 //
13816 // Examples: "iOS", "Android", "Ubuntu"
13817 // Note: For mapping user agent strings to OS names, libraries such as
13818 // [ua-parser] can be utilized.
13819 //
13820 // [ua-parser]: https://github.com/ua-parser
13821 UserAgentOSNameKey = attribute.Key("user_agent.os.name")
13822
13823 // UserAgentOSVersionKey is the attribute Key conforming to the
13824 // "user_agent.os.version" semantic conventions. It represents the version
13825 // string of the operating system as defined in [Version Attributes].
13826 //
13827 // Type: string
13828 // RequirementLevel: Recommended
13829 // Stability: Development
13830 //
13831 // Examples: "14.2.1", "18.04.1"
13832 // Note: For mapping user agent strings to OS versions, libraries such as
13833 // [ua-parser] can be utilized.
13834 //
13835 // [Version Attributes]: /docs/resource/README.md#version-attributes
13836 // [ua-parser]: https://github.com/ua-parser
13837 UserAgentOSVersionKey = attribute.Key("user_agent.os.version")
13838
13839 // UserAgentSyntheticTypeKey is the attribute Key conforming to the
13840 // "user_agent.synthetic.type" semantic conventions. It represents the specifies
13841 // the category of synthetic traffic, such as tests or bots.
13842 //
13843 // Type: Enum
13844 // RequirementLevel: Recommended
13845 // Stability: Development
13846 //
13847 // Examples:
13848 // Note: This attribute MAY be derived from the contents of the
13849 // `user_agent.original` attribute. Components that populate the attribute are
13850 // responsible for determining what they consider to be synthetic bot or test
13851 // traffic. This attribute can either be set for self-identification purposes,
13852 // or on telemetry detected to be generated as a result of a synthetic request.
13853 // This attribute is useful for distinguishing between genuine client traffic
13854 // and synthetic traffic generated by bots or tests.
13855 UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type")
13856
13857 // UserAgentVersionKey is the attribute Key conforming to the
13858 // "user_agent.version" semantic conventions. It represents the version of the
13859 // user-agent extracted from original. Usually refers to the browser's version.
13860 //
13861 // Type: string
13862 // RequirementLevel: Recommended
13863 // Stability: Development
13864 //
13865 // Examples: "14.1.2", "1.0.0"
13866 // Note: [Example] of extracting browser's version from original string. In the
13867 // case of using a user-agent for non-browser products, such as microservices
13868 // with multiple names/versions inside the `user_agent.original`, the most
13869 // significant version SHOULD be selected. In such a scenario it should align
13870 // with `user_agent.name`
13871 //
13872 // [Example]: https://www.whatsmyua.info
13873 UserAgentVersionKey = attribute.Key("user_agent.version")
13874 )
13875
13876 // UserAgentName returns an attribute KeyValue conforming to the
13877 // "user_agent.name" semantic conventions. It represents the name of the
13878 // user-agent extracted from original. Usually refers to the browser's name.
13879 func UserAgentName(val string) attribute.KeyValue {
13880 return UserAgentNameKey.String(val)
13881 }
13882
13883 // UserAgentOriginal returns an attribute KeyValue conforming to the
13884 // "user_agent.original" semantic conventions. It represents the value of the
13885 // [HTTP User-Agent] header sent by the client.
13886 //
13887 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
13888 func UserAgentOriginal(val string) attribute.KeyValue {
13889 return UserAgentOriginalKey.String(val)
13890 }
13891
13892 // UserAgentOSName returns an attribute KeyValue conforming to the
13893 // "user_agent.os.name" semantic conventions. It represents the human readable
13894 // operating system name.
13895 func UserAgentOSName(val string) attribute.KeyValue {
13896 return UserAgentOSNameKey.String(val)
13897 }
13898
13899 // UserAgentOSVersion returns an attribute KeyValue conforming to the
13900 // "user_agent.os.version" semantic conventions. It represents the version string
13901 // of the operating system as defined in [Version Attributes].
13902 //
13903 // [Version Attributes]: /docs/resource/README.md#version-attributes
13904 func UserAgentOSVersion(val string) attribute.KeyValue {
13905 return UserAgentOSVersionKey.String(val)
13906 }
13907
13908 // UserAgentVersion returns an attribute KeyValue conforming to the
13909 // "user_agent.version" semantic conventions. It represents the version of the
13910 // user-agent extracted from original. Usually refers to the browser's version.
13911 func UserAgentVersion(val string) attribute.KeyValue {
13912 return UserAgentVersionKey.String(val)
13913 }
13914
13915 // Enum values for user_agent.synthetic.type
13916 var (
13917 // Bot source.
13918 // Stability: development
13919 UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot")
13920 // Synthetic test source.
13921 // Stability: development
13922 UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test")
13923 )
13924
13925 // Namespace: vcs
13926 const (
13927 // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id"
13928 // semantic conventions. It represents the ID of the change (pull request/merge
13929 // request/changelist) if applicable. This is usually a unique (within
13930 // repository) identifier generated by the VCS system.
13931 //
13932 // Type: string
13933 // RequirementLevel: Recommended
13934 // Stability: Development
13935 //
13936 // Examples: "123"
13937 VCSChangeIDKey = attribute.Key("vcs.change.id")
13938
13939 // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state"
13940 // semantic conventions. It represents the state of the change (pull
13941 // request/merge request/changelist).
13942 //
13943 // Type: Enum
13944 // RequirementLevel: Recommended
13945 // Stability: Development
13946 //
13947 // Examples: "open", "closed", "merged"
13948 VCSChangeStateKey = attribute.Key("vcs.change.state")
13949
13950 // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title"
13951 // semantic conventions. It represents the human readable title of the change
13952 // (pull request/merge request/changelist). This title is often a brief summary
13953 // of the change and may get merged in to a ref as the commit summary.
13954 //
13955 // Type: string
13956 // RequirementLevel: Recommended
13957 // Stability: Development
13958 //
13959 // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
13960 // dependency"
13961 VCSChangeTitleKey = attribute.Key("vcs.change.title")
13962
13963 // VCSLineChangeTypeKey is the attribute Key conforming to the
13964 // "vcs.line_change.type" semantic conventions. It represents the type of line
13965 // change being measured on a branch or change.
13966 //
13967 // Type: Enum
13968 // RequirementLevel: Recommended
13969 // Stability: Development
13970 //
13971 // Examples: "added", "removed"
13972 VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type")
13973
13974 // VCSOwnerNameKey is the attribute Key conforming to the "vcs.owner.name"
13975 // semantic conventions. It represents the group owner within the version
13976 // control system.
13977 //
13978 // Type: string
13979 // RequirementLevel: Recommended
13980 // Stability: Development
13981 //
13982 // Examples: "my-org", "myteam", "business-unit"
13983 VCSOwnerNameKey = attribute.Key("vcs.owner.name")
13984
13985 // VCSProviderNameKey is the attribute Key conforming to the "vcs.provider.name"
13986 // semantic conventions. It represents the name of the version control system
13987 // provider.
13988 //
13989 // Type: Enum
13990 // RequirementLevel: Recommended
13991 // Stability: Development
13992 //
13993 // Examples: "github", "gitlab", "gitea", "bitbucket"
13994 VCSProviderNameKey = attribute.Key("vcs.provider.name")
13995
13996 // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name"
13997 // semantic conventions. It represents the name of the [reference] such as
13998 // **branch** or **tag** in the repository.
13999 //
14000 // Type: string
14001 // RequirementLevel: Recommended
14002 // Stability: Development
14003 //
14004 // Examples: "my-feature-branch", "tag-1-test"
14005 // Note: `base` refers to the starting point of a change. For example, `main`
14006 // would be the base reference of type branch if you've created a new
14007 // reference of type branch from it and created new commits.
14008 //
14009 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14010 VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name")
14011
14012 // VCSRefBaseRevisionKey is the attribute Key conforming to the
14013 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
14014 // literally [revised version], The revision most often refers to a commit
14015 // object in Git, or a revision number in SVN.
14016 //
14017 // Type: string
14018 // RequirementLevel: Recommended
14019 // Stability: Development
14020 //
14021 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
14022 // "main", "123", "HEAD"
14023 // Note: `base` refers to the starting point of a change. For example, `main`
14024 // would be the base reference of type branch if you've created a new
14025 // reference of type branch from it and created new commits. The
14026 // revision can be a full [hash value (see
14027 // glossary)],
14028 // of the recorded change to a ref within a repository pointing to a
14029 // commit [commit] object. It does
14030 // not necessarily have to be a hash; it can simply define a [revision
14031 // number]
14032 // which is an integer that is monotonically increasing. In cases where
14033 // it is identical to the `ref.base.name`, it SHOULD still be included.
14034 // It is up to the implementer to decide which value to set as the
14035 // revision based on the VCS system and situational context.
14036 //
14037 // [revised version]: https://www.merriam-webster.com/dictionary/revision
14038 // [hash value (see
14039 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
14040 // [commit]: https://git-scm.com/docs/git-commit
14041 // [revision
14042 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
14043 VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision")
14044
14045 // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type"
14046 // semantic conventions. It represents the type of the [reference] in the
14047 // repository.
14048 //
14049 // Type: Enum
14050 // RequirementLevel: Recommended
14051 // Stability: Development
14052 //
14053 // Examples: "branch", "tag"
14054 // Note: `base` refers to the starting point of a change. For example, `main`
14055 // would be the base reference of type branch if you've created a new
14056 // reference of type branch from it and created new commits.
14057 //
14058 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14059 VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type")
14060
14061 // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name"
14062 // semantic conventions. It represents the name of the [reference] such as
14063 // **branch** or **tag** in the repository.
14064 //
14065 // Type: string
14066 // RequirementLevel: Recommended
14067 // Stability: Development
14068 //
14069 // Examples: "my-feature-branch", "tag-1-test"
14070 // Note: `head` refers to where you are right now; the current reference at a
14071 // given time.
14072 //
14073 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14074 VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name")
14075
14076 // VCSRefHeadRevisionKey is the attribute Key conforming to the
14077 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
14078 // literally [revised version], The revision most often refers to a commit
14079 // object in Git, or a revision number in SVN.
14080 //
14081 // Type: string
14082 // RequirementLevel: Recommended
14083 // Stability: Development
14084 //
14085 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
14086 // "main", "123", "HEAD"
14087 // Note: `head` refers to where you are right now; the current reference at a
14088 // given time.The revision can be a full [hash value (see
14089 // glossary)],
14090 // of the recorded change to a ref within a repository pointing to a
14091 // commit [commit] object. It does
14092 // not necessarily have to be a hash; it can simply define a [revision
14093 // number]
14094 // which is an integer that is monotonically increasing. In cases where
14095 // it is identical to the `ref.head.name`, it SHOULD still be included.
14096 // It is up to the implementer to decide which value to set as the
14097 // revision based on the VCS system and situational context.
14098 //
14099 // [revised version]: https://www.merriam-webster.com/dictionary/revision
14100 // [hash value (see
14101 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
14102 // [commit]: https://git-scm.com/docs/git-commit
14103 // [revision
14104 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
14105 VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision")
14106
14107 // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type"
14108 // semantic conventions. It represents the type of the [reference] in the
14109 // repository.
14110 //
14111 // Type: Enum
14112 // RequirementLevel: Recommended
14113 // Stability: Development
14114 //
14115 // Examples: "branch", "tag"
14116 // Note: `head` refers to where you are right now; the current reference at a
14117 // given time.
14118 //
14119 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14120 VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type")
14121
14122 // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic
14123 // conventions. It represents the type of the [reference] in the repository.
14124 //
14125 // Type: Enum
14126 // RequirementLevel: Recommended
14127 // Stability: Development
14128 //
14129 // Examples: "branch", "tag"
14130 //
14131 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14132 VCSRefTypeKey = attribute.Key("vcs.ref.type")
14133
14134 // VCSRepositoryNameKey is the attribute Key conforming to the
14135 // "vcs.repository.name" semantic conventions. It represents the human readable
14136 // name of the repository. It SHOULD NOT include any additional identifier like
14137 // Group/SubGroup in GitLab or organization in GitHub.
14138 //
14139 // Type: string
14140 // RequirementLevel: Recommended
14141 // Stability: Development
14142 //
14143 // Examples: "semantic-conventions", "my-cool-repo"
14144 // Note: Due to it only being the name, it can clash with forks of the same
14145 // repository if collecting telemetry across multiple orgs or groups in
14146 // the same backends.
14147 VCSRepositoryNameKey = attribute.Key("vcs.repository.name")
14148
14149 // VCSRepositoryURLFullKey is the attribute Key conforming to the
14150 // "vcs.repository.url.full" semantic conventions. It represents the
14151 // [canonical URL] of the repository providing the complete HTTP(S) address in
14152 // order to locate and identify the repository through a browser.
14153 //
14154 // Type: string
14155 // RequirementLevel: Recommended
14156 // Stability: Development
14157 //
14158 // Examples:
14159 // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
14160 // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
14161 // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include
14162 // the `.git` extension.
14163 //
14164 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
14165 VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
14166
14167 // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the
14168 // "vcs.revision_delta.direction" semantic conventions. It represents the type
14169 // of revision comparison.
14170 //
14171 // Type: Enum
14172 // RequirementLevel: Recommended
14173 // Stability: Development
14174 //
14175 // Examples: "ahead", "behind"
14176 VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction")
14177 )
14178
14179 // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id"
14180 // semantic conventions. It represents the ID of the change (pull request/merge
14181 // request/changelist) if applicable. This is usually a unique (within
14182 // repository) identifier generated by the VCS system.
14183 func VCSChangeID(val string) attribute.KeyValue {
14184 return VCSChangeIDKey.String(val)
14185 }
14186
14187 // VCSChangeTitle returns an attribute KeyValue conforming to the
14188 // "vcs.change.title" semantic conventions. It represents the human readable
14189 // title of the change (pull request/merge request/changelist). This title is
14190 // often a brief summary of the change and may get merged in to a ref as the
14191 // commit summary.
14192 func VCSChangeTitle(val string) attribute.KeyValue {
14193 return VCSChangeTitleKey.String(val)
14194 }
14195
14196 // VCSOwnerName returns an attribute KeyValue conforming to the "vcs.owner.name"
14197 // semantic conventions. It represents the group owner within the version control
14198 // system.
14199 func VCSOwnerName(val string) attribute.KeyValue {
14200 return VCSOwnerNameKey.String(val)
14201 }
14202
14203 // VCSRefBaseName returns an attribute KeyValue conforming to the
14204 // "vcs.ref.base.name" semantic conventions. It represents the name of the
14205 // [reference] such as **branch** or **tag** in the repository.
14206 //
14207 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14208 func VCSRefBaseName(val string) attribute.KeyValue {
14209 return VCSRefBaseNameKey.String(val)
14210 }
14211
14212 // VCSRefBaseRevision returns an attribute KeyValue conforming to the
14213 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
14214 // literally [revised version], The revision most often refers to a commit object
14215 // in Git, or a revision number in SVN.
14216 //
14217 // [revised version]: https://www.merriam-webster.com/dictionary/revision
14218 func VCSRefBaseRevision(val string) attribute.KeyValue {
14219 return VCSRefBaseRevisionKey.String(val)
14220 }
14221
14222 // VCSRefHeadName returns an attribute KeyValue conforming to the
14223 // "vcs.ref.head.name" semantic conventions. It represents the name of the
14224 // [reference] such as **branch** or **tag** in the repository.
14225 //
14226 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14227 func VCSRefHeadName(val string) attribute.KeyValue {
14228 return VCSRefHeadNameKey.String(val)
14229 }
14230
14231 // VCSRefHeadRevision returns an attribute KeyValue conforming to the
14232 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
14233 // literally [revised version], The revision most often refers to a commit object
14234 // in Git, or a revision number in SVN.
14235 //
14236 // [revised version]: https://www.merriam-webster.com/dictionary/revision
14237 func VCSRefHeadRevision(val string) attribute.KeyValue {
14238 return VCSRefHeadRevisionKey.String(val)
14239 }
14240
14241 // VCSRepositoryName returns an attribute KeyValue conforming to the
14242 // "vcs.repository.name" semantic conventions. It represents the human readable
14243 // name of the repository. It SHOULD NOT include any additional identifier like
14244 // Group/SubGroup in GitLab or organization in GitHub.
14245 func VCSRepositoryName(val string) attribute.KeyValue {
14246 return VCSRepositoryNameKey.String(val)
14247 }
14248
14249 // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
14250 // "vcs.repository.url.full" semantic conventions. It represents the
14251 // [canonical URL] of the repository providing the complete HTTP(S) address in
14252 // order to locate and identify the repository through a browser.
14253 //
14254 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
14255 func VCSRepositoryURLFull(val string) attribute.KeyValue {
14256 return VCSRepositoryURLFullKey.String(val)
14257 }
14258
14259 // Enum values for vcs.change.state
14260 var (
14261 // Open means the change is currently active and under review. It hasn't been
14262 // merged into the target branch yet, and it's still possible to make changes or
14263 // add comments.
14264 // Stability: development
14265 VCSChangeStateOpen = VCSChangeStateKey.String("open")
14266 // WIP (work-in-progress, draft) means the change is still in progress and not
14267 // yet ready for a full review. It might still undergo significant changes.
14268 // Stability: development
14269 VCSChangeStateWip = VCSChangeStateKey.String("wip")
14270 // Closed means the merge request has been closed without merging. This can
14271 // happen for various reasons, such as the changes being deemed unnecessary, the
14272 // issue being resolved in another way, or the author deciding to withdraw the
14273 // request.
14274 // Stability: development
14275 VCSChangeStateClosed = VCSChangeStateKey.String("closed")
14276 // Merged indicates that the change has been successfully integrated into the
14277 // target codebase.
14278 // Stability: development
14279 VCSChangeStateMerged = VCSChangeStateKey.String("merged")
14280 )
14281
14282 // Enum values for vcs.line_change.type
14283 var (
14284 // How many lines were added.
14285 // Stability: development
14286 VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added")
14287 // How many lines were removed.
14288 // Stability: development
14289 VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed")
14290 )
14291
14292 // Enum values for vcs.provider.name
14293 var (
14294 // [GitHub]
14295 // Stability: development
14296 //
14297 // [GitHub]: https://github.com
14298 VCSProviderNameGithub = VCSProviderNameKey.String("github")
14299 // [GitLab]
14300 // Stability: development
14301 //
14302 // [GitLab]: https://gitlab.com
14303 VCSProviderNameGitlab = VCSProviderNameKey.String("gitlab")
14304 // [Gitea]
14305 // Stability: development
14306 //
14307 // [Gitea]: https://gitea.io
14308 VCSProviderNameGitea = VCSProviderNameKey.String("gitea")
14309 // [Bitbucket]
14310 // Stability: development
14311 //
14312 // [Bitbucket]: https://bitbucket.org
14313 VCSProviderNameBitbucket = VCSProviderNameKey.String("bitbucket")
14314 )
14315
14316 // Enum values for vcs.ref.base.type
14317 var (
14318 // [branch]
14319 // Stability: development
14320 //
14321 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
14322 VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch")
14323 // [tag]
14324 // Stability: development
14325 //
14326 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
14327 VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag")
14328 )
14329
14330 // Enum values for vcs.ref.head.type
14331 var (
14332 // [branch]
14333 // Stability: development
14334 //
14335 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
14336 VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch")
14337 // [tag]
14338 // Stability: development
14339 //
14340 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
14341 VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag")
14342 )
14343
14344 // Enum values for vcs.ref.type
14345 var (
14346 // [branch]
14347 // Stability: development
14348 //
14349 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
14350 VCSRefTypeBranch = VCSRefTypeKey.String("branch")
14351 // [tag]
14352 // Stability: development
14353 //
14354 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
14355 VCSRefTypeTag = VCSRefTypeKey.String("tag")
14356 )
14357
14358 // Enum values for vcs.revision_delta.direction
14359 var (
14360 // How many revisions the change is behind the target ref.
14361 // Stability: development
14362 VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind")
14363 // How many revisions the change is ahead of the target ref.
14364 // Stability: development
14365 VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead")
14366 )
14367
14368 // Namespace: webengine
14369 const (
14370 // WebEngineDescriptionKey is the attribute Key conforming to the
14371 // "webengine.description" semantic conventions. It represents the additional
14372 // description of the web engine (e.g. detailed version and edition
14373 // information).
14374 //
14375 // Type: string
14376 // RequirementLevel: Recommended
14377 // Stability: Development
14378 //
14379 // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
14380 // 2.2.2.Final"
14381 WebEngineDescriptionKey = attribute.Key("webengine.description")
14382
14383 // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
14384 // semantic conventions. It represents the name of the web engine.
14385 //
14386 // Type: string
14387 // RequirementLevel: Recommended
14388 // Stability: Development
14389 //
14390 // Examples: "WildFly"
14391 WebEngineNameKey = attribute.Key("webengine.name")
14392
14393 // WebEngineVersionKey is the attribute Key conforming to the
14394 // "webengine.version" semantic conventions. It represents the version of the
14395 // web engine.
14396 //
14397 // Type: string
14398 // RequirementLevel: Recommended
14399 // Stability: Development
14400 //
14401 // Examples: "21.0.0"
14402 WebEngineVersionKey = attribute.Key("webengine.version")
14403 )
14404
14405 // WebEngineDescription returns an attribute KeyValue conforming to the
14406 // "webengine.description" semantic conventions. It represents the additional
14407 // description of the web engine (e.g. detailed version and edition information).
14408 func WebEngineDescription(val string) attribute.KeyValue {
14409 return WebEngineDescriptionKey.String(val)
14410 }
14411
14412 // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
14413 // semantic conventions. It represents the name of the web engine.
14414 func WebEngineName(val string) attribute.KeyValue {
14415 return WebEngineNameKey.String(val)
14416 }
14417
14418 // WebEngineVersion returns an attribute KeyValue conforming to the
14419 // "webengine.version" semantic conventions. It represents the version of the web
14420 // engine.
14421 func WebEngineVersion(val string) attribute.KeyValue {
14422 return WebEngineVersionKey.String(val)
14423 }
14424
14425 // Namespace: zos
14426 const (
14427 // ZOSSmfIDKey is the attribute Key conforming to the "zos.smf.id" semantic
14428 // conventions. It represents the System Management Facility (SMF) Identifier
14429 // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
14430 // and is used for system and performance analysis.
14431 //
14432 // Type: string
14433 // RequirementLevel: Recommended
14434 // Stability: Development
14435 //
14436 // Examples: "SYS1"
14437 ZOSSmfIDKey = attribute.Key("zos.smf.id")
14438
14439 // ZOSSysplexNameKey is the attribute Key conforming to the "zos.sysplex.name"
14440 // semantic conventions. It represents the name of the SYSPLEX to which the z/OS
14441 // system belongs too.
14442 //
14443 // Type: string
14444 // RequirementLevel: Recommended
14445 // Stability: Development
14446 //
14447 // Examples: "SYSPLEX1"
14448 ZOSSysplexNameKey = attribute.Key("zos.sysplex.name")
14449 )
14450
14451 // ZOSSmfID returns an attribute KeyValue conforming to the "zos.smf.id" semantic
14452 // conventions. It represents the System Management Facility (SMF) Identifier
14453 // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
14454 // and is used for system and performance analysis.
14455 func ZOSSmfID(val string) attribute.KeyValue {
14456 return ZOSSmfIDKey.String(val)
14457 }
14458
14459 // ZOSSysplexName returns an attribute KeyValue conforming to the
14460 // "zos.sysplex.name" semantic conventions. It represents the name of the SYSPLEX
14461 // to which the z/OS system belongs too.
14462 func ZOSSysplexName(val string) attribute.KeyValue {
14463 return ZOSSysplexNameKey.String(val)
14464 }