Debian Codegraph @

semconv/v1.34.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.34.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: az
1537 const (
1538 // AzNamespaceKey is the attribute Key conforming to the "az.namespace" semantic
1539 // conventions. It represents the [Azure Resource Provider Namespace] as
1540 // recognized by the client.
1541 //
1542 // Type: string
1543 // RequirementLevel: Recommended
1544 // Stability: Development
1545 //
1546 // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus"
1547 //
1548 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1549 AzNamespaceKey = attribute.Key("az.namespace")
1550
1551 // AzServiceRequestIDKey is the attribute Key conforming to the
1552 // "az.service_request_id" semantic conventions. It represents the unique
1553 // identifier of the service request. It's generated by the Azure service and
1554 // returned with the response.
1555 //
1556 // Type: string
1557 // RequirementLevel: Recommended
1558 // Stability: Development
1559 //
1560 // Examples: "00000000-0000-0000-0000-000000000000"
1561 AzServiceRequestIDKey = attribute.Key("az.service_request_id")
1562 )
1563
1564 // AzNamespace returns an attribute KeyValue conforming to the "az.namespace"
1565 // semantic conventions. It represents the [Azure Resource Provider Namespace] as
1566 // recognized by the client.
1567 //
1568 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1569 func AzNamespace(val string) attribute.KeyValue {
1570 return AzNamespaceKey.String(val)
1571 }
1572
1573 // AzServiceRequestID returns an attribute KeyValue conforming to the
1574 // "az.service_request_id" semantic conventions. It represents the unique
1575 // identifier of the service request. It's generated by the Azure service and
1576 // returned with the response.
1577 func AzServiceRequestID(val string) attribute.KeyValue {
1578 return AzServiceRequestIDKey.String(val)
1579 }
1580
1581 // Namespace: azure
1582 const (
1583 // AzureClientIDKey is the attribute Key conforming to the "azure.client.id"
1584 // semantic conventions. It represents the unique identifier of the client
1585 // instance.
1586 //
1587 // Type: string
1588 // RequirementLevel: Recommended
1589 // Stability: Development
1590 //
1591 // Examples: "3ba4827d-4422-483f-b59f-85b74211c11d", "storage-client-1"
1592 AzureClientIDKey = attribute.Key("azure.client.id")
1593
1594 // AzureCosmosDBConnectionModeKey is the attribute Key conforming to the
1595 // "azure.cosmosdb.connection.mode" semantic conventions. It represents the
1596 // cosmos client connection mode.
1597 //
1598 // Type: Enum
1599 // RequirementLevel: Recommended
1600 // Stability: Development
1601 //
1602 // Examples:
1603 AzureCosmosDBConnectionModeKey = attribute.Key("azure.cosmosdb.connection.mode")
1604
1605 // AzureCosmosDBConsistencyLevelKey is the attribute Key conforming to the
1606 // "azure.cosmosdb.consistency.level" semantic conventions. It represents the
1607 // account or request [consistency level].
1608 //
1609 // Type: Enum
1610 // RequirementLevel: Recommended
1611 // Stability: Development
1612 //
1613 // Examples: "Eventual", "ConsistentPrefix", "BoundedStaleness", "Strong",
1614 // "Session"
1615 //
1616 // [consistency level]: https://learn.microsoft.com/azure/cosmos-db/consistency-levels
1617 AzureCosmosDBConsistencyLevelKey = attribute.Key("azure.cosmosdb.consistency.level")
1618
1619 // AzureCosmosDBOperationContactedRegionsKey is the attribute Key conforming to
1620 // the "azure.cosmosdb.operation.contacted_regions" semantic conventions. It
1621 // represents the list of regions contacted during operation in the order that
1622 // they were contacted. If there is more than one region listed, it indicates
1623 // that the operation was performed on multiple regions i.e. cross-regional
1624 // call.
1625 //
1626 // Type: string[]
1627 // RequirementLevel: Recommended
1628 // Stability: Development
1629 //
1630 // Examples: "North Central US", "Australia East", "Australia Southeast"
1631 // Note: Region name matches the format of `displayName` in [Azure Location API]
1632 //
1633 // [Azure Location API]: https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location
1634 AzureCosmosDBOperationContactedRegionsKey = attribute.Key("azure.cosmosdb.operation.contacted_regions")
1635
1636 // AzureCosmosDBOperationRequestChargeKey is the attribute Key conforming to the
1637 // "azure.cosmosdb.operation.request_charge" semantic conventions. It represents
1638 // the number of request units consumed by the operation.
1639 //
1640 // Type: double
1641 // RequirementLevel: Recommended
1642 // Stability: Development
1643 //
1644 // Examples: 46.18, 1.0
1645 AzureCosmosDBOperationRequestChargeKey = attribute.Key("azure.cosmosdb.operation.request_charge")
1646
1647 // AzureCosmosDBRequestBodySizeKey is the attribute Key conforming to the
1648 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1649 // request payload size in bytes.
1650 //
1651 // Type: int
1652 // RequirementLevel: Recommended
1653 // Stability: Development
1654 //
1655 // Examples:
1656 AzureCosmosDBRequestBodySizeKey = attribute.Key("azure.cosmosdb.request.body.size")
1657
1658 // AzureCosmosDBResponseSubStatusCodeKey is the attribute Key conforming to the
1659 // "azure.cosmosdb.response.sub_status_code" semantic conventions. It represents
1660 // the cosmos DB sub status code.
1661 //
1662 // Type: int
1663 // RequirementLevel: Recommended
1664 // Stability: Development
1665 //
1666 // Examples: 1000, 1002
1667 AzureCosmosDBResponseSubStatusCodeKey = attribute.Key("azure.cosmosdb.response.sub_status_code")
1668 )
1669
1670 // AzureClientID returns an attribute KeyValue conforming to the
1671 // "azure.client.id" semantic conventions. It represents the unique identifier of
1672 // the client instance.
1673 func AzureClientID(val string) attribute.KeyValue {
1674 return AzureClientIDKey.String(val)
1675 }
1676
1677 // AzureCosmosDBOperationContactedRegions returns an attribute KeyValue
1678 // conforming to the "azure.cosmosdb.operation.contacted_regions" semantic
1679 // conventions. It represents the list of regions contacted during operation in
1680 // the order that they were contacted. If there is more than one region listed,
1681 // it indicates that the operation was performed on multiple regions i.e.
1682 // cross-regional call.
1683 func AzureCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue {
1684 return AzureCosmosDBOperationContactedRegionsKey.StringSlice(val)
1685 }
1686
1687 // AzureCosmosDBOperationRequestCharge returns an attribute KeyValue conforming
1688 // to the "azure.cosmosdb.operation.request_charge" semantic conventions. It
1689 // represents the number of request units consumed by the operation.
1690 func AzureCosmosDBOperationRequestCharge(val float64) attribute.KeyValue {
1691 return AzureCosmosDBOperationRequestChargeKey.Float64(val)
1692 }
1693
1694 // AzureCosmosDBRequestBodySize returns an attribute KeyValue conforming to the
1695 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1696 // request payload size in bytes.
1697 func AzureCosmosDBRequestBodySize(val int) attribute.KeyValue {
1698 return AzureCosmosDBRequestBodySizeKey.Int(val)
1699 }
1700
1701 // AzureCosmosDBResponseSubStatusCode returns an attribute KeyValue conforming to
1702 // the "azure.cosmosdb.response.sub_status_code" semantic conventions. It
1703 // represents the cosmos DB sub status code.
1704 func AzureCosmosDBResponseSubStatusCode(val int) attribute.KeyValue {
1705 return AzureCosmosDBResponseSubStatusCodeKey.Int(val)
1706 }
1707
1708 // Enum values for azure.cosmosdb.connection.mode
1709 var (
1710 // Gateway (HTTP) connection.
1711 // Stability: development
1712 AzureCosmosDBConnectionModeGateway = AzureCosmosDBConnectionModeKey.String("gateway")
1713 // Direct connection.
1714 // Stability: development
1715 AzureCosmosDBConnectionModeDirect = AzureCosmosDBConnectionModeKey.String("direct")
1716 )
1717
1718 // Enum values for azure.cosmosdb.consistency.level
1719 var (
1720 // strong
1721 // Stability: development
1722 AzureCosmosDBConsistencyLevelStrong = AzureCosmosDBConsistencyLevelKey.String("Strong")
1723 // bounded_staleness
1724 // Stability: development
1725 AzureCosmosDBConsistencyLevelBoundedStaleness = AzureCosmosDBConsistencyLevelKey.String("BoundedStaleness")
1726 // session
1727 // Stability: development
1728 AzureCosmosDBConsistencyLevelSession = AzureCosmosDBConsistencyLevelKey.String("Session")
1729 // eventual
1730 // Stability: development
1731 AzureCosmosDBConsistencyLevelEventual = AzureCosmosDBConsistencyLevelKey.String("Eventual")
1732 // consistent_prefix
1733 // Stability: development
1734 AzureCosmosDBConsistencyLevelConsistentPrefix = AzureCosmosDBConsistencyLevelKey.String("ConsistentPrefix")
1735 )
1736
1737 // Namespace: browser
1738 const (
1739 // BrowserBrandsKey is the attribute Key conforming to the "browser.brands"
1740 // semantic conventions. It represents the array of brand name and version
1741 // separated by a space.
1742 //
1743 // Type: string[]
1744 // RequirementLevel: Recommended
1745 // Stability: Development
1746 //
1747 // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99"
1748 // Note: This value is intended to be taken from the [UA client hints API] (
1749 // `navigator.userAgentData.brands`).
1750 //
1751 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1752 BrowserBrandsKey = attribute.Key("browser.brands")
1753
1754 // BrowserLanguageKey is the attribute Key conforming to the "browser.language"
1755 // semantic conventions. It represents the preferred language of the user using
1756 // the browser.
1757 //
1758 // Type: string
1759 // RequirementLevel: Recommended
1760 // Stability: Development
1761 //
1762 // Examples: "en", "en-US", "fr", "fr-FR"
1763 // Note: This value is intended to be taken from the Navigator API
1764 // `navigator.language`.
1765 BrowserLanguageKey = attribute.Key("browser.language")
1766
1767 // BrowserMobileKey is the attribute Key conforming to the "browser.mobile"
1768 // semantic conventions. It represents a boolean that is true if the browser is
1769 // running on a mobile device.
1770 //
1771 // Type: boolean
1772 // RequirementLevel: Recommended
1773 // Stability: Development
1774 //
1775 // Examples:
1776 // Note: This value is intended to be taken from the [UA client hints API] (
1777 // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be
1778 // left unset.
1779 //
1780 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1781 BrowserMobileKey = attribute.Key("browser.mobile")
1782
1783 // BrowserPlatformKey is the attribute Key conforming to the "browser.platform"
1784 // semantic conventions. It represents the platform on which the browser is
1785 // running.
1786 //
1787 // Type: string
1788 // RequirementLevel: Recommended
1789 // Stability: Development
1790 //
1791 // Examples: "Windows", "macOS", "Android"
1792 // Note: This value is intended to be taken from the [UA client hints API] (
1793 // `navigator.userAgentData.platform`). If unavailable, the legacy
1794 // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD
1795 // be left unset in order for the values to be consistent.
1796 // The list of possible values is defined in the
1797 // [W3C User-Agent Client Hints specification]. Note that some (but not all) of
1798 // these values can overlap with values in the
1799 // [`os.type` and `os.name` attributes]. However, for consistency, the values in
1800 // the `browser.platform` attribute should capture the exact value that the user
1801 // agent provides.
1802 //
1803 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1804 // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform
1805 // [`os.type` and `os.name` attributes]: ./os.md
1806 BrowserPlatformKey = attribute.Key("browser.platform")
1807 )
1808
1809 // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands"
1810 // semantic conventions. It represents the array of brand name and version
1811 // separated by a space.
1812 func BrowserBrands(val ...string) attribute.KeyValue {
1813 return BrowserBrandsKey.StringSlice(val)
1814 }
1815
1816 // BrowserLanguage returns an attribute KeyValue conforming to the
1817 // "browser.language" semantic conventions. It represents the preferred language
1818 // of the user using the browser.
1819 func BrowserLanguage(val string) attribute.KeyValue {
1820 return BrowserLanguageKey.String(val)
1821 }
1822
1823 // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile"
1824 // semantic conventions. It represents a boolean that is true if the browser is
1825 // running on a mobile device.
1826 func BrowserMobile(val bool) attribute.KeyValue {
1827 return BrowserMobileKey.Bool(val)
1828 }
1829
1830 // BrowserPlatform returns an attribute KeyValue conforming to the
1831 // "browser.platform" semantic conventions. It represents the platform on which
1832 // the browser is running.
1833 func BrowserPlatform(val string) attribute.KeyValue {
1834 return BrowserPlatformKey.String(val)
1835 }
1836
1837 // Namespace: cassandra
1838 const (
1839 // CassandraConsistencyLevelKey is the attribute Key conforming to the
1840 // "cassandra.consistency.level" semantic conventions. It represents the
1841 // consistency level of the query. Based on consistency values from [CQL].
1842 //
1843 // Type: Enum
1844 // RequirementLevel: Recommended
1845 // Stability: Development
1846 //
1847 // Examples:
1848 //
1849 // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
1850 CassandraConsistencyLevelKey = attribute.Key("cassandra.consistency.level")
1851
1852 // CassandraCoordinatorDCKey is the attribute Key conforming to the
1853 // "cassandra.coordinator.dc" semantic conventions. It represents the data
1854 // center of the coordinating node for a query.
1855 //
1856 // Type: string
1857 // RequirementLevel: Recommended
1858 // Stability: Development
1859 //
1860 // Examples: us-west-2
1861 CassandraCoordinatorDCKey = attribute.Key("cassandra.coordinator.dc")
1862
1863 // CassandraCoordinatorIDKey is the attribute Key conforming to the
1864 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1865 // coordinating node for a query.
1866 //
1867 // Type: string
1868 // RequirementLevel: Recommended
1869 // Stability: Development
1870 //
1871 // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af
1872 CassandraCoordinatorIDKey = attribute.Key("cassandra.coordinator.id")
1873
1874 // CassandraPageSizeKey is the attribute Key conforming to the
1875 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1876 // for paging, i.e. how many rows will be returned at once.
1877 //
1878 // Type: int
1879 // RequirementLevel: Recommended
1880 // Stability: Development
1881 //
1882 // Examples: 5000
1883 CassandraPageSizeKey = attribute.Key("cassandra.page.size")
1884
1885 // CassandraQueryIdempotentKey is the attribute Key conforming to the
1886 // "cassandra.query.idempotent" semantic conventions. It represents the whether
1887 // or not the query is idempotent.
1888 //
1889 // Type: boolean
1890 // RequirementLevel: Recommended
1891 // Stability: Development
1892 //
1893 // Examples:
1894 CassandraQueryIdempotentKey = attribute.Key("cassandra.query.idempotent")
1895
1896 // CassandraSpeculativeExecutionCountKey is the attribute Key conforming to the
1897 // "cassandra.speculative_execution.count" semantic conventions. It represents
1898 // the number of times a query was speculatively executed. Not set or `0` if the
1899 // query was not executed speculatively.
1900 //
1901 // Type: int
1902 // RequirementLevel: Recommended
1903 // Stability: Development
1904 //
1905 // Examples: 0, 2
1906 CassandraSpeculativeExecutionCountKey = attribute.Key("cassandra.speculative_execution.count")
1907 )
1908
1909 // CassandraCoordinatorDC returns an attribute KeyValue conforming to the
1910 // "cassandra.coordinator.dc" semantic conventions. It represents the data center
1911 // of the coordinating node for a query.
1912 func CassandraCoordinatorDC(val string) attribute.KeyValue {
1913 return CassandraCoordinatorDCKey.String(val)
1914 }
1915
1916 // CassandraCoordinatorID returns an attribute KeyValue conforming to the
1917 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1918 // coordinating node for a query.
1919 func CassandraCoordinatorID(val string) attribute.KeyValue {
1920 return CassandraCoordinatorIDKey.String(val)
1921 }
1922
1923 // CassandraPageSize returns an attribute KeyValue conforming to the
1924 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1925 // for paging, i.e. how many rows will be returned at once.
1926 func CassandraPageSize(val int) attribute.KeyValue {
1927 return CassandraPageSizeKey.Int(val)
1928 }
1929
1930 // CassandraQueryIdempotent returns an attribute KeyValue conforming to the
1931 // "cassandra.query.idempotent" semantic conventions. It represents the whether
1932 // or not the query is idempotent.
1933 func CassandraQueryIdempotent(val bool) attribute.KeyValue {
1934 return CassandraQueryIdempotentKey.Bool(val)
1935 }
1936
1937 // CassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to
1938 // the "cassandra.speculative_execution.count" semantic conventions. It
1939 // represents the number of times a query was speculatively executed. Not set or
1940 // `0` if the query was not executed speculatively.
1941 func CassandraSpeculativeExecutionCount(val int) attribute.KeyValue {
1942 return CassandraSpeculativeExecutionCountKey.Int(val)
1943 }
1944
1945 // Enum values for cassandra.consistency.level
1946 var (
1947 // all
1948 // Stability: development
1949 CassandraConsistencyLevelAll = CassandraConsistencyLevelKey.String("all")
1950 // each_quorum
1951 // Stability: development
1952 CassandraConsistencyLevelEachQuorum = CassandraConsistencyLevelKey.String("each_quorum")
1953 // quorum
1954 // Stability: development
1955 CassandraConsistencyLevelQuorum = CassandraConsistencyLevelKey.String("quorum")
1956 // local_quorum
1957 // Stability: development
1958 CassandraConsistencyLevelLocalQuorum = CassandraConsistencyLevelKey.String("local_quorum")
1959 // one
1960 // Stability: development
1961 CassandraConsistencyLevelOne = CassandraConsistencyLevelKey.String("one")
1962 // two
1963 // Stability: development
1964 CassandraConsistencyLevelTwo = CassandraConsistencyLevelKey.String("two")
1965 // three
1966 // Stability: development
1967 CassandraConsistencyLevelThree = CassandraConsistencyLevelKey.String("three")
1968 // local_one
1969 // Stability: development
1970 CassandraConsistencyLevelLocalOne = CassandraConsistencyLevelKey.String("local_one")
1971 // any
1972 // Stability: development
1973 CassandraConsistencyLevelAny = CassandraConsistencyLevelKey.String("any")
1974 // serial
1975 // Stability: development
1976 CassandraConsistencyLevelSerial = CassandraConsistencyLevelKey.String("serial")
1977 // local_serial
1978 // Stability: development
1979 CassandraConsistencyLevelLocalSerial = CassandraConsistencyLevelKey.String("local_serial")
1980 )
1981
1982 // Namespace: cicd
1983 const (
1984 // CICDPipelineActionNameKey is the attribute Key conforming to the
1985 // "cicd.pipeline.action.name" semantic conventions. It represents the kind of
1986 // action a pipeline run is performing.
1987 //
1988 // Type: Enum
1989 // RequirementLevel: Recommended
1990 // Stability: Development
1991 //
1992 // Examples: "BUILD", "RUN", "SYNC"
1993 CICDPipelineActionNameKey = attribute.Key("cicd.pipeline.action.name")
1994
1995 // CICDPipelineNameKey is the attribute Key conforming to the
1996 // "cicd.pipeline.name" semantic conventions. It represents the human readable
1997 // name of the pipeline within a CI/CD system.
1998 //
1999 // Type: string
2000 // RequirementLevel: Recommended
2001 // Stability: Development
2002 //
2003 // Examples: "Build and Test", "Lint", "Deploy Go Project",
2004 // "deploy_to_environment"
2005 CICDPipelineNameKey = attribute.Key("cicd.pipeline.name")
2006
2007 // CICDPipelineResultKey is the attribute Key conforming to the
2008 // "cicd.pipeline.result" semantic conventions. It represents the result of a
2009 // pipeline run.
2010 //
2011 // Type: Enum
2012 // RequirementLevel: Recommended
2013 // Stability: Development
2014 //
2015 // Examples: "success", "failure", "timeout", "skipped"
2016 CICDPipelineResultKey = attribute.Key("cicd.pipeline.result")
2017
2018 // CICDPipelineRunIDKey is the attribute Key conforming to the
2019 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
2020 // identifier of a pipeline run within a CI/CD system.
2021 //
2022 // Type: string
2023 // RequirementLevel: Recommended
2024 // Stability: Development
2025 //
2026 // Examples: "120912"
2027 CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id")
2028
2029 // CICDPipelineRunStateKey is the attribute Key conforming to the
2030 // "cicd.pipeline.run.state" semantic conventions. It represents the pipeline
2031 // run goes through these states during its lifecycle.
2032 //
2033 // Type: Enum
2034 // RequirementLevel: Recommended
2035 // Stability: Development
2036 //
2037 // Examples: "pending", "executing", "finalizing"
2038 CICDPipelineRunStateKey = attribute.Key("cicd.pipeline.run.state")
2039
2040 // CICDPipelineRunURLFullKey is the attribute Key conforming to the
2041 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
2042 // the pipeline run, providing the complete address in order to locate and
2043 // identify the pipeline run.
2044 //
2045 // Type: string
2046 // RequirementLevel: Recommended
2047 // Stability: Development
2048 //
2049 // Examples:
2050 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075"
2051 //
2052 // [URL]: https://wikipedia.org/wiki/URL
2053 CICDPipelineRunURLFullKey = attribute.Key("cicd.pipeline.run.url.full")
2054
2055 // CICDPipelineTaskNameKey is the attribute Key conforming to the
2056 // "cicd.pipeline.task.name" semantic conventions. It represents the human
2057 // readable name of a task within a pipeline. Task here most closely aligns with
2058 // a [computing process] in a pipeline. Other terms for tasks include commands,
2059 // steps, and procedures.
2060 //
2061 // Type: string
2062 // RequirementLevel: Recommended
2063 // Stability: Development
2064 //
2065 // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary"
2066 //
2067 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
2068 CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name")
2069
2070 // CICDPipelineTaskRunIDKey is the attribute Key conforming to the
2071 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
2072 // identifier of a task run within a pipeline.
2073 //
2074 // Type: string
2075 // RequirementLevel: Recommended
2076 // Stability: Development
2077 //
2078 // Examples: "12097"
2079 CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id")
2080
2081 // CICDPipelineTaskRunResultKey is the attribute Key conforming to the
2082 // "cicd.pipeline.task.run.result" semantic conventions. It represents the
2083 // result of a task run.
2084 //
2085 // Type: Enum
2086 // RequirementLevel: Recommended
2087 // Stability: Development
2088 //
2089 // Examples: "success", "failure", "timeout", "skipped"
2090 CICDPipelineTaskRunResultKey = attribute.Key("cicd.pipeline.task.run.result")
2091
2092 // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the
2093 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
2094 // [URL] of the pipeline task run, providing the complete address in order to
2095 // locate and identify the pipeline task run.
2096 //
2097 // Type: string
2098 // RequirementLevel: Recommended
2099 // Stability: Development
2100 //
2101 // Examples:
2102 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"
2103 //
2104 // [URL]: https://wikipedia.org/wiki/URL
2105 CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full")
2106
2107 // CICDPipelineTaskTypeKey is the attribute Key conforming to the
2108 // "cicd.pipeline.task.type" semantic conventions. It represents the type of the
2109 // task within a pipeline.
2110 //
2111 // Type: Enum
2112 // RequirementLevel: Recommended
2113 // Stability: Development
2114 //
2115 // Examples: "build", "test", "deploy"
2116 CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type")
2117
2118 // CICDSystemComponentKey is the attribute Key conforming to the
2119 // "cicd.system.component" semantic conventions. It represents the name of a
2120 // component of the CICD system.
2121 //
2122 // Type: string
2123 // RequirementLevel: Recommended
2124 // Stability: Development
2125 //
2126 // Examples: "controller", "scheduler", "agent"
2127 CICDSystemComponentKey = attribute.Key("cicd.system.component")
2128
2129 // CICDWorkerIDKey is the attribute Key conforming to the "cicd.worker.id"
2130 // semantic conventions. It represents the unique identifier of a worker within
2131 // a CICD system.
2132 //
2133 // Type: string
2134 // RequirementLevel: Recommended
2135 // Stability: Development
2136 //
2137 // Examples: "abc123", "10.0.1.2", "controller"
2138 CICDWorkerIDKey = attribute.Key("cicd.worker.id")
2139
2140 // CICDWorkerNameKey is the attribute Key conforming to the "cicd.worker.name"
2141 // semantic conventions. It represents the name of a worker within a CICD
2142 // system.
2143 //
2144 // Type: string
2145 // RequirementLevel: Recommended
2146 // Stability: Development
2147 //
2148 // Examples: "agent-abc", "controller", "Ubuntu LTS"
2149 CICDWorkerNameKey = attribute.Key("cicd.worker.name")
2150
2151 // CICDWorkerStateKey is the attribute Key conforming to the "cicd.worker.state"
2152 // semantic conventions. It represents the state of a CICD worker / agent.
2153 //
2154 // Type: Enum
2155 // RequirementLevel: Recommended
2156 // Stability: Development
2157 //
2158 // Examples: "idle", "busy", "down"
2159 CICDWorkerStateKey = attribute.Key("cicd.worker.state")
2160
2161 // CICDWorkerURLFullKey is the attribute Key conforming to the
2162 // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
2163 // worker, providing the complete address in order to locate and identify the
2164 // worker.
2165 //
2166 // Type: string
2167 // RequirementLevel: Recommended
2168 // Stability: Development
2169 //
2170 // Examples: "https://cicd.example.org/worker/abc123"
2171 //
2172 // [URL]: https://wikipedia.org/wiki/URL
2173 CICDWorkerURLFullKey = attribute.Key("cicd.worker.url.full")
2174 )
2175
2176 // CICDPipelineName returns an attribute KeyValue conforming to the
2177 // "cicd.pipeline.name" semantic conventions. It represents the human readable
2178 // name of the pipeline within a CI/CD system.
2179 func CICDPipelineName(val string) attribute.KeyValue {
2180 return CICDPipelineNameKey.String(val)
2181 }
2182
2183 // CICDPipelineRunID returns an attribute KeyValue conforming to the
2184 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
2185 // identifier of a pipeline run within a CI/CD system.
2186 func CICDPipelineRunID(val string) attribute.KeyValue {
2187 return CICDPipelineRunIDKey.String(val)
2188 }
2189
2190 // CICDPipelineRunURLFull returns an attribute KeyValue conforming to the
2191 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
2192 // the pipeline run, providing the complete address in order to locate and
2193 // identify the pipeline run.
2194 //
2195 // [URL]: https://wikipedia.org/wiki/URL
2196 func CICDPipelineRunURLFull(val string) attribute.KeyValue {
2197 return CICDPipelineRunURLFullKey.String(val)
2198 }
2199
2200 // CICDPipelineTaskName returns an attribute KeyValue conforming to the
2201 // "cicd.pipeline.task.name" semantic conventions. It represents the human
2202 // readable name of a task within a pipeline. Task here most closely aligns with
2203 // a [computing process] in a pipeline. Other terms for tasks include commands,
2204 // steps, and procedures.
2205 //
2206 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
2207 func CICDPipelineTaskName(val string) attribute.KeyValue {
2208 return CICDPipelineTaskNameKey.String(val)
2209 }
2210
2211 // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the
2212 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
2213 // identifier of a task run within a pipeline.
2214 func CICDPipelineTaskRunID(val string) attribute.KeyValue {
2215 return CICDPipelineTaskRunIDKey.String(val)
2216 }
2217
2218 // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the
2219 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
2220 // [URL] of the pipeline task run, providing the complete address in order to
2221 // locate and identify the pipeline task run.
2222 //
2223 // [URL]: https://wikipedia.org/wiki/URL
2224 func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue {
2225 return CICDPipelineTaskRunURLFullKey.String(val)
2226 }
2227
2228 // CICDSystemComponent returns an attribute KeyValue conforming to the
2229 // "cicd.system.component" semantic conventions. It represents the name of a
2230 // component of the CICD system.
2231 func CICDSystemComponent(val string) attribute.KeyValue {
2232 return CICDSystemComponentKey.String(val)
2233 }
2234
2235 // CICDWorkerID returns an attribute KeyValue conforming to the "cicd.worker.id"
2236 // semantic conventions. It represents the unique identifier of a worker within a
2237 // CICD system.
2238 func CICDWorkerID(val string) attribute.KeyValue {
2239 return CICDWorkerIDKey.String(val)
2240 }
2241
2242 // CICDWorkerName returns an attribute KeyValue conforming to the
2243 // "cicd.worker.name" semantic conventions. It represents the name of a worker
2244 // within a CICD system.
2245 func CICDWorkerName(val string) attribute.KeyValue {
2246 return CICDWorkerNameKey.String(val)
2247 }
2248
2249 // CICDWorkerURLFull returns an attribute KeyValue conforming to the
2250 // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
2251 // worker, providing the complete address in order to locate and identify the
2252 // worker.
2253 //
2254 // [URL]: https://wikipedia.org/wiki/URL
2255 func CICDWorkerURLFull(val string) attribute.KeyValue {
2256 return CICDWorkerURLFullKey.String(val)
2257 }
2258
2259 // Enum values for cicd.pipeline.action.name
2260 var (
2261 // The pipeline run is executing a build.
2262 // Stability: development
2263 CICDPipelineActionNameBuild = CICDPipelineActionNameKey.String("BUILD")
2264 // The pipeline run is executing.
2265 // Stability: development
2266 CICDPipelineActionNameRun = CICDPipelineActionNameKey.String("RUN")
2267 // The pipeline run is executing a sync.
2268 // Stability: development
2269 CICDPipelineActionNameSync = CICDPipelineActionNameKey.String("SYNC")
2270 )
2271
2272 // Enum values for cicd.pipeline.result
2273 var (
2274 // The pipeline run finished successfully.
2275 // Stability: development
2276 CICDPipelineResultSuccess = CICDPipelineResultKey.String("success")
2277 // The pipeline run did not finish successfully, eg. due to a compile error or a
2278 // failing test. Such failures are usually detected by non-zero exit codes of
2279 // the tools executed in the pipeline run.
2280 // Stability: development
2281 CICDPipelineResultFailure = CICDPipelineResultKey.String("failure")
2282 // The pipeline run failed due to an error in the CICD system, eg. due to the
2283 // worker being killed.
2284 // Stability: development
2285 CICDPipelineResultError = CICDPipelineResultKey.String("error")
2286 // A timeout caused the pipeline run to be interrupted.
2287 // Stability: development
2288 CICDPipelineResultTimeout = CICDPipelineResultKey.String("timeout")
2289 // The pipeline run was cancelled, eg. by a user manually cancelling the
2290 // pipeline run.
2291 // Stability: development
2292 CICDPipelineResultCancellation = CICDPipelineResultKey.String("cancellation")
2293 // The pipeline run was skipped, eg. due to a precondition not being met.
2294 // Stability: development
2295 CICDPipelineResultSkip = CICDPipelineResultKey.String("skip")
2296 )
2297
2298 // Enum values for cicd.pipeline.run.state
2299 var (
2300 // The run pending state spans from the event triggering the pipeline run until
2301 // the execution of the run starts (eg. time spent in a queue, provisioning
2302 // agents, creating run resources).
2303 //
2304 // Stability: development
2305 CICDPipelineRunStatePending = CICDPipelineRunStateKey.String("pending")
2306 // The executing state spans the execution of any run tasks (eg. build, test).
2307 // Stability: development
2308 CICDPipelineRunStateExecuting = CICDPipelineRunStateKey.String("executing")
2309 // The finalizing state spans from when the run has finished executing (eg.
2310 // cleanup of run resources).
2311 // Stability: development
2312 CICDPipelineRunStateFinalizing = CICDPipelineRunStateKey.String("finalizing")
2313 )
2314
2315 // Enum values for cicd.pipeline.task.run.result
2316 var (
2317 // The task run finished successfully.
2318 // Stability: development
2319 CICDPipelineTaskRunResultSuccess = CICDPipelineTaskRunResultKey.String("success")
2320 // The task run did not finish successfully, eg. due to a compile error or a
2321 // failing test. Such failures are usually detected by non-zero exit codes of
2322 // the tools executed in the task run.
2323 // Stability: development
2324 CICDPipelineTaskRunResultFailure = CICDPipelineTaskRunResultKey.String("failure")
2325 // The task run failed due to an error in the CICD system, eg. due to the worker
2326 // being killed.
2327 // Stability: development
2328 CICDPipelineTaskRunResultError = CICDPipelineTaskRunResultKey.String("error")
2329 // A timeout caused the task run to be interrupted.
2330 // Stability: development
2331 CICDPipelineTaskRunResultTimeout = CICDPipelineTaskRunResultKey.String("timeout")
2332 // The task run was cancelled, eg. by a user manually cancelling the task run.
2333 // Stability: development
2334 CICDPipelineTaskRunResultCancellation = CICDPipelineTaskRunResultKey.String("cancellation")
2335 // The task run was skipped, eg. due to a precondition not being met.
2336 // Stability: development
2337 CICDPipelineTaskRunResultSkip = CICDPipelineTaskRunResultKey.String("skip")
2338 )
2339
2340 // Enum values for cicd.pipeline.task.type
2341 var (
2342 // build
2343 // Stability: development
2344 CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build")
2345 // test
2346 // Stability: development
2347 CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test")
2348 // deploy
2349 // Stability: development
2350 CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy")
2351 )
2352
2353 // Enum values for cicd.worker.state
2354 var (
2355 // The worker is not performing work for the CICD system. It is available to the
2356 // CICD system to perform work on (online / idle).
2357 // Stability: development
2358 CICDWorkerStateAvailable = CICDWorkerStateKey.String("available")
2359 // The worker is performing work for the CICD system.
2360 // Stability: development
2361 CICDWorkerStateBusy = CICDWorkerStateKey.String("busy")
2362 // The worker is not available to the CICD system (disconnected / down).
2363 // Stability: development
2364 CICDWorkerStateOffline = CICDWorkerStateKey.String("offline")
2365 )
2366
2367 // Namespace: client
2368 const (
2369 // ClientAddressKey is the attribute Key conforming to the "client.address"
2370 // semantic conventions. It represents the client address - domain name if
2371 // available without reverse DNS lookup; otherwise, IP address or Unix domain
2372 // socket name.
2373 //
2374 // Type: string
2375 // RequirementLevel: Recommended
2376 // Stability: Stable
2377 //
2378 // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock"
2379 // Note: When observed from the server side, and when communicating through an
2380 // intermediary, `client.address` SHOULD represent the client address behind any
2381 // intermediaries, for example proxies, if it's available.
2382 ClientAddressKey = attribute.Key("client.address")
2383
2384 // ClientPortKey is the attribute Key conforming to the "client.port" semantic
2385 // conventions. It represents the client port number.
2386 //
2387 // Type: int
2388 // RequirementLevel: Recommended
2389 // Stability: Stable
2390 //
2391 // Examples: 65123
2392 // Note: When observed from the server side, and when communicating through an
2393 // intermediary, `client.port` SHOULD represent the client port behind any
2394 // intermediaries, for example proxies, if it's available.
2395 ClientPortKey = attribute.Key("client.port")
2396 )
2397
2398 // ClientAddress returns an attribute KeyValue conforming to the "client.address"
2399 // semantic conventions. It represents the client address - domain name if
2400 // available without reverse DNS lookup; otherwise, IP address or Unix domain
2401 // socket name.
2402 func ClientAddress(val string) attribute.KeyValue {
2403 return ClientAddressKey.String(val)
2404 }
2405
2406 // ClientPort returns an attribute KeyValue conforming to the "client.port"
2407 // semantic conventions. It represents the client port number.
2408 func ClientPort(val int) attribute.KeyValue {
2409 return ClientPortKey.Int(val)
2410 }
2411
2412 // Namespace: cloud
2413 const (
2414 // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id"
2415 // semantic conventions. It represents the cloud account ID the resource is
2416 // assigned to.
2417 //
2418 // Type: string
2419 // RequirementLevel: Recommended
2420 // Stability: Development
2421 //
2422 // Examples: "111111111111", "opentelemetry"
2423 CloudAccountIDKey = attribute.Key("cloud.account.id")
2424
2425 // CloudAvailabilityZoneKey is the attribute Key conforming to the
2426 // "cloud.availability_zone" semantic conventions. It represents the cloud
2427 // regions often have multiple, isolated locations known as zones to increase
2428 // availability. Availability zone represents the zone where the resource is
2429 // running.
2430 //
2431 // Type: string
2432 // RequirementLevel: Recommended
2433 // Stability: Development
2434 //
2435 // Examples: "us-east-1c"
2436 // Note: Availability zones are called "zones" on Alibaba Cloud and Google
2437 // Cloud.
2438 CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
2439
2440 // CloudPlatformKey is the attribute Key conforming to the "cloud.platform"
2441 // semantic conventions. It represents the cloud platform in use.
2442 //
2443 // Type: Enum
2444 // RequirementLevel: Recommended
2445 // Stability: Development
2446 //
2447 // Examples:
2448 // Note: The prefix of the service SHOULD match the one specified in
2449 // `cloud.provider`.
2450 CloudPlatformKey = attribute.Key("cloud.platform")
2451
2452 // CloudProviderKey is the attribute Key conforming to the "cloud.provider"
2453 // semantic conventions. It represents the name of the cloud provider.
2454 //
2455 // Type: Enum
2456 // RequirementLevel: Recommended
2457 // Stability: Development
2458 //
2459 // Examples:
2460 CloudProviderKey = attribute.Key("cloud.provider")
2461
2462 // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic
2463 // conventions. It represents the geographical region within a cloud provider.
2464 // When associated with a resource, this attribute specifies the region where
2465 // the resource operates. When calling services or APIs deployed on a cloud,
2466 // this attribute identifies the region where the called destination is
2467 // deployed.
2468 //
2469 // Type: string
2470 // RequirementLevel: Recommended
2471 // Stability: Development
2472 //
2473 // Examples: "us-central1", "us-east-1"
2474 // Note: Refer to your provider's docs to see the available regions, for example
2475 // [Alibaba Cloud regions], [AWS regions], [Azure regions],
2476 // [Google Cloud regions], or [Tencent Cloud regions].
2477 //
2478 // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm
2479 // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/
2480 // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/
2481 // [Google Cloud regions]: https://cloud.google.com/about/locations
2482 // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091
2483 CloudRegionKey = attribute.Key("cloud.region")
2484
2485 // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id"
2486 // semantic conventions. It represents the cloud provider-specific native
2487 // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a
2488 // [fully qualified resource ID] on Azure, a [full resource name] on GCP).
2489 //
2490 // Type: string
2491 // RequirementLevel: Recommended
2492 // Stability: Development
2493 //
2494 // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",
2495 // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID",
2496 // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>
2497 // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>"
2498 // Note: On some cloud providers, it may not be possible to determine the full
2499 // ID at startup,
2500 // so it may be necessary to set `cloud.resource_id` as a span attribute
2501 // instead.
2502 //
2503 // The exact value to use for `cloud.resource_id` depends on the cloud provider.
2504 // The following well-known definitions MUST be used if you set this attribute
2505 // and they apply:
2506 //
2507 // - **AWS Lambda:** The function [ARN].
2508 // Take care not to use the "invoked ARN" directly but replace any
2509 // [alias suffix]
2510 // with the resolved function version, as the same runtime instance may be
2511 // invocable with
2512 // multiple different aliases.
2513 // - **GCP:** The [URI of the resource]
2514 // - **Azure:** The [Fully Qualified Resource ID] of the invoked function,
2515 // *not* the function app, having the form
2516 //
2517 // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`
2518 // .
2519 // This means that a span attribute MUST be used, as an Azure function app
2520 // can host multiple functions that would usually share
2521 // a TracerProvider.
2522 //
2523 //
2524 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2525 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2526 // [full resource name]: https://google.aip.dev/122#full-resource-names
2527 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2528 // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
2529 // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names
2530 // [Fully Qualified Resource ID]: https://docs.microsoft.com/rest/api/resources/resources/get-by-id
2531 CloudResourceIDKey = attribute.Key("cloud.resource_id")
2532 )
2533
2534 // CloudAccountID returns an attribute KeyValue conforming to the
2535 // "cloud.account.id" semantic conventions. It represents the cloud account ID
2536 // the resource is assigned to.
2537 func CloudAccountID(val string) attribute.KeyValue {
2538 return CloudAccountIDKey.String(val)
2539 }
2540
2541 // CloudAvailabilityZone returns an attribute KeyValue conforming to the
2542 // "cloud.availability_zone" semantic conventions. It represents the cloud
2543 // regions often have multiple, isolated locations known as zones to increase
2544 // availability. Availability zone represents the zone where the resource is
2545 // running.
2546 func CloudAvailabilityZone(val string) attribute.KeyValue {
2547 return CloudAvailabilityZoneKey.String(val)
2548 }
2549
2550 // CloudRegion returns an attribute KeyValue conforming to the "cloud.region"
2551 // semantic conventions. It represents the geographical region within a cloud
2552 // provider. When associated with a resource, this attribute specifies the region
2553 // where the resource operates. When calling services or APIs deployed on a
2554 // cloud, this attribute identifies the region where the called destination is
2555 // deployed.
2556 func CloudRegion(val string) attribute.KeyValue {
2557 return CloudRegionKey.String(val)
2558 }
2559
2560 // CloudResourceID returns an attribute KeyValue conforming to the
2561 // "cloud.resource_id" semantic conventions. It represents the cloud
2562 // provider-specific native identifier of the monitored cloud resource (e.g. an
2563 // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name]
2564 // on GCP).
2565 //
2566 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2567 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2568 // [full resource name]: https://google.aip.dev/122#full-resource-names
2569 func CloudResourceID(val string) attribute.KeyValue {
2570 return CloudResourceIDKey.String(val)
2571 }
2572
2573 // Enum values for cloud.platform
2574 var (
2575 // Alibaba Cloud Elastic Compute Service
2576 // Stability: development
2577 CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
2578 // Alibaba Cloud Function Compute
2579 // Stability: development
2580 CloudPlatformAlibabaCloudFC = CloudPlatformKey.String("alibaba_cloud_fc")
2581 // Red Hat OpenShift on Alibaba Cloud
2582 // Stability: development
2583 CloudPlatformAlibabaCloudOpenShift = CloudPlatformKey.String("alibaba_cloud_openshift")
2584 // AWS Elastic Compute Cloud
2585 // Stability: development
2586 CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
2587 // AWS Elastic Container Service
2588 // Stability: development
2589 CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
2590 // AWS Elastic Kubernetes Service
2591 // Stability: development
2592 CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
2593 // AWS Lambda
2594 // Stability: development
2595 CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
2596 // AWS Elastic Beanstalk
2597 // Stability: development
2598 CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
2599 // AWS App Runner
2600 // Stability: development
2601 CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
2602 // Red Hat OpenShift on AWS (ROSA)
2603 // Stability: development
2604 CloudPlatformAWSOpenShift = CloudPlatformKey.String("aws_openshift")
2605 // Azure Virtual Machines
2606 // Stability: development
2607 CloudPlatformAzureVM = CloudPlatformKey.String("azure_vm")
2608 // Azure Container Apps
2609 // Stability: development
2610 CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure_container_apps")
2611 // Azure Container Instances
2612 // Stability: development
2613 CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure_container_instances")
2614 // Azure Kubernetes Service
2615 // Stability: development
2616 CloudPlatformAzureAKS = CloudPlatformKey.String("azure_aks")
2617 // Azure Functions
2618 // Stability: development
2619 CloudPlatformAzureFunctions = CloudPlatformKey.String("azure_functions")
2620 // Azure App Service
2621 // Stability: development
2622 CloudPlatformAzureAppService = CloudPlatformKey.String("azure_app_service")
2623 // Azure Red Hat OpenShift
2624 // Stability: development
2625 CloudPlatformAzureOpenShift = CloudPlatformKey.String("azure_openshift")
2626 // Google Bare Metal Solution (BMS)
2627 // Stability: development
2628 CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
2629 // Google Cloud Compute Engine (GCE)
2630 // Stability: development
2631 CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
2632 // Google Cloud Run
2633 // Stability: development
2634 CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
2635 // Google Cloud Kubernetes Engine (GKE)
2636 // Stability: development
2637 CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
2638 // Google Cloud Functions (GCF)
2639 // Stability: development
2640 CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
2641 // Google Cloud App Engine (GAE)
2642 // Stability: development
2643 CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
2644 // Red Hat OpenShift on Google Cloud
2645 // Stability: development
2646 CloudPlatformGCPOpenShift = CloudPlatformKey.String("gcp_openshift")
2647 // Red Hat OpenShift on IBM Cloud
2648 // Stability: development
2649 CloudPlatformIBMCloudOpenShift = CloudPlatformKey.String("ibm_cloud_openshift")
2650 // Compute on Oracle Cloud Infrastructure (OCI)
2651 // Stability: development
2652 CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute")
2653 // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI)
2654 // Stability: development
2655 CloudPlatformOracleCloudOKE = CloudPlatformKey.String("oracle_cloud_oke")
2656 // Tencent Cloud Cloud Virtual Machine (CVM)
2657 // Stability: development
2658 CloudPlatformTencentCloudCVM = CloudPlatformKey.String("tencent_cloud_cvm")
2659 // Tencent Cloud Elastic Kubernetes Service (EKS)
2660 // Stability: development
2661 CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
2662 // Tencent Cloud Serverless Cloud Function (SCF)
2663 // Stability: development
2664 CloudPlatformTencentCloudSCF = CloudPlatformKey.String("tencent_cloud_scf")
2665 )
2666
2667 // Enum values for cloud.provider
2668 var (
2669 // Alibaba Cloud
2670 // Stability: development
2671 CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
2672 // Amazon Web Services
2673 // Stability: development
2674 CloudProviderAWS = CloudProviderKey.String("aws")
2675 // Microsoft Azure
2676 // Stability: development
2677 CloudProviderAzure = CloudProviderKey.String("azure")
2678 // Google Cloud Platform
2679 // Stability: development
2680 CloudProviderGCP = CloudProviderKey.String("gcp")
2681 // Heroku Platform as a Service
2682 // Stability: development
2683 CloudProviderHeroku = CloudProviderKey.String("heroku")
2684 // IBM Cloud
2685 // Stability: development
2686 CloudProviderIBMCloud = CloudProviderKey.String("ibm_cloud")
2687 // Oracle Cloud Infrastructure (OCI)
2688 // Stability: development
2689 CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud")
2690 // Tencent Cloud
2691 // Stability: development
2692 CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
2693 )
2694
2695 // Namespace: cloudevents
2696 const (
2697 // CloudEventsEventIDKey is the attribute Key conforming to the
2698 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2699 // uniquely identifies the event.
2700 //
2701 // Type: string
2702 // RequirementLevel: Recommended
2703 // Stability: Development
2704 //
2705 // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
2706 //
2707 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2708 CloudEventsEventIDKey = attribute.Key("cloudevents.event_id")
2709
2710 // CloudEventsEventSourceKey is the attribute Key conforming to the
2711 // "cloudevents.event_source" semantic conventions. It represents the [source]
2712 // identifies the context in which an event happened.
2713 //
2714 // Type: string
2715 // RequirementLevel: Recommended
2716 // Stability: Development
2717 //
2718 // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
2719 // "my-service"
2720 //
2721 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2722 CloudEventsEventSourceKey = attribute.Key("cloudevents.event_source")
2723
2724 // CloudEventsEventSpecVersionKey is the attribute Key conforming to the
2725 // "cloudevents.event_spec_version" semantic conventions. It represents the
2726 // [version of the CloudEvents specification] which the event uses.
2727 //
2728 // Type: string
2729 // RequirementLevel: Recommended
2730 // Stability: Development
2731 //
2732 // Examples: 1.0
2733 //
2734 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2735 CloudEventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
2736
2737 // CloudEventsEventSubjectKey is the attribute Key conforming to the
2738 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2739 // of the event in the context of the event producer (identified by source).
2740 //
2741 // Type: string
2742 // RequirementLevel: Recommended
2743 // Stability: Development
2744 //
2745 // Examples: mynewfile.jpg
2746 //
2747 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2748 CloudEventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
2749
2750 // CloudEventsEventTypeKey is the attribute Key conforming to the
2751 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2752 // contains a value describing the type of event related to the originating
2753 // occurrence.
2754 //
2755 // Type: string
2756 // RequirementLevel: Recommended
2757 // Stability: Development
2758 //
2759 // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
2760 //
2761 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2762 CloudEventsEventTypeKey = attribute.Key("cloudevents.event_type")
2763 )
2764
2765 // CloudEventsEventID returns an attribute KeyValue conforming to the
2766 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2767 // uniquely identifies the event.
2768 //
2769 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2770 func CloudEventsEventID(val string) attribute.KeyValue {
2771 return CloudEventsEventIDKey.String(val)
2772 }
2773
2774 // CloudEventsEventSource returns an attribute KeyValue conforming to the
2775 // "cloudevents.event_source" semantic conventions. It represents the [source]
2776 // identifies the context in which an event happened.
2777 //
2778 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2779 func CloudEventsEventSource(val string) attribute.KeyValue {
2780 return CloudEventsEventSourceKey.String(val)
2781 }
2782
2783 // CloudEventsEventSpecVersion returns an attribute KeyValue conforming to the
2784 // "cloudevents.event_spec_version" semantic conventions. It represents the
2785 // [version of the CloudEvents specification] which the event uses.
2786 //
2787 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2788 func CloudEventsEventSpecVersion(val string) attribute.KeyValue {
2789 return CloudEventsEventSpecVersionKey.String(val)
2790 }
2791
2792 // CloudEventsEventSubject returns an attribute KeyValue conforming to the
2793 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2794 // of the event in the context of the event producer (identified by source).
2795 //
2796 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2797 func CloudEventsEventSubject(val string) attribute.KeyValue {
2798 return CloudEventsEventSubjectKey.String(val)
2799 }
2800
2801 // CloudEventsEventType returns an attribute KeyValue conforming to the
2802 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2803 // contains a value describing the type of event related to the originating
2804 // occurrence.
2805 //
2806 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2807 func CloudEventsEventType(val string) attribute.KeyValue {
2808 return CloudEventsEventTypeKey.String(val)
2809 }
2810
2811 // Namespace: cloudfoundry
2812 const (
2813 // CloudFoundryAppIDKey is the attribute Key conforming to the
2814 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2815 // application.
2816 //
2817 // Type: string
2818 // RequirementLevel: Recommended
2819 // Stability: Development
2820 //
2821 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2822 // Note: Application instrumentation should use the value from environment
2823 // variable `VCAP_APPLICATION.application_id`. This is the same value as
2824 // reported by `cf app <app-name> --guid`.
2825 CloudFoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
2826
2827 // CloudFoundryAppInstanceIDKey is the attribute Key conforming to the
2828 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2829 // of the application instance. 0 when just one instance is active.
2830 //
2831 // Type: string
2832 // RequirementLevel: Recommended
2833 // Stability: Development
2834 //
2835 // Examples: "0", "1"
2836 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2837 // .
2838 // It is used for logs and metrics emitted by CloudFoundry. It is
2839 // supposed to contain the application instance index for applications
2840 // deployed on the runtime.
2841 //
2842 // Application instrumentation should use the value from environment
2843 // variable `CF_INSTANCE_INDEX`.
2844 //
2845 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2846 CloudFoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
2847
2848 // CloudFoundryAppNameKey is the attribute Key conforming to the
2849 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2850 // application.
2851 //
2852 // Type: string
2853 // RequirementLevel: Recommended
2854 // Stability: Development
2855 //
2856 // Examples: "my-app-name"
2857 // Note: Application instrumentation should use the value from environment
2858 // variable `VCAP_APPLICATION.application_name`. This is the same value
2859 // as reported by `cf apps`.
2860 CloudFoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
2861
2862 // CloudFoundryOrgIDKey is the attribute Key conforming to the
2863 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
2864 // CloudFoundry org the application is running in.
2865 //
2866 // Type: string
2867 // RequirementLevel: Recommended
2868 // Stability: Development
2869 //
2870 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2871 // Note: Application instrumentation should use the value from environment
2872 // variable `VCAP_APPLICATION.org_id`. This is the same value as
2873 // reported by `cf org <org-name> --guid`.
2874 CloudFoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
2875
2876 // CloudFoundryOrgNameKey is the attribute Key conforming to the
2877 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
2878 // CloudFoundry organization the app is running in.
2879 //
2880 // Type: string
2881 // RequirementLevel: Recommended
2882 // Stability: Development
2883 //
2884 // Examples: "my-org-name"
2885 // Note: Application instrumentation should use the value from environment
2886 // variable `VCAP_APPLICATION.org_name`. This is the same value as
2887 // reported by `cf orgs`.
2888 CloudFoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
2889
2890 // CloudFoundryProcessIDKey is the attribute Key conforming to the
2891 // "cloudfoundry.process.id" semantic conventions. It represents the UID
2892 // identifying the process.
2893 //
2894 // Type: string
2895 // RequirementLevel: Recommended
2896 // Stability: Development
2897 //
2898 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2899 // Note: Application instrumentation should use the value from environment
2900 // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
2901 // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
2902 // For system components, this could be the actual PID.
2903 CloudFoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
2904
2905 // CloudFoundryProcessTypeKey is the attribute Key conforming to the
2906 // "cloudfoundry.process.type" semantic conventions. It represents the type of
2907 // process.
2908 //
2909 // Type: string
2910 // RequirementLevel: Recommended
2911 // Stability: Development
2912 //
2913 // Examples: "web"
2914 // Note: CloudFoundry applications can consist of multiple jobs. Usually the
2915 // main process will be of type `web`. There can be additional background
2916 // tasks or side-cars with different process types.
2917 CloudFoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
2918
2919 // CloudFoundrySpaceIDKey is the attribute Key conforming to the
2920 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
2921 // CloudFoundry space the application is running in.
2922 //
2923 // Type: string
2924 // RequirementLevel: Recommended
2925 // Stability: Development
2926 //
2927 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2928 // Note: Application instrumentation should use the value from environment
2929 // variable `VCAP_APPLICATION.space_id`. This is the same value as
2930 // reported by `cf space <space-name> --guid`.
2931 CloudFoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
2932
2933 // CloudFoundrySpaceNameKey is the attribute Key conforming to the
2934 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
2935 // CloudFoundry space the application is running in.
2936 //
2937 // Type: string
2938 // RequirementLevel: Recommended
2939 // Stability: Development
2940 //
2941 // Examples: "my-space-name"
2942 // Note: Application instrumentation should use the value from environment
2943 // variable `VCAP_APPLICATION.space_name`. This is the same value as
2944 // reported by `cf spaces`.
2945 CloudFoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
2946
2947 // CloudFoundrySystemIDKey is the attribute Key conforming to the
2948 // "cloudfoundry.system.id" semantic conventions. It represents a guid or
2949 // another name describing the event source.
2950 //
2951 // Type: string
2952 // RequirementLevel: Recommended
2953 // Stability: Development
2954 //
2955 // Examples: "cf/gorouter"
2956 // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
2957 // It is used for logs and metrics emitted by CloudFoundry. It is
2958 // supposed to contain the component name, e.g. "gorouter", for
2959 // CloudFoundry components.
2960 //
2961 // When system components are instrumented, values from the
2962 // [Bosh spec]
2963 // should be used. The `system.id` should be set to
2964 // `spec.deployment/spec.name`.
2965 //
2966 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2967 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2968 CloudFoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
2969
2970 // CloudFoundrySystemInstanceIDKey is the attribute Key conforming to the
2971 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
2972 // describing the concrete instance of the event source.
2973 //
2974 // Type: string
2975 // RequirementLevel: Recommended
2976 // Stability: Development
2977 //
2978 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2979 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2980 // .
2981 // It is used for logs and metrics emitted by CloudFoundry. It is
2982 // supposed to contain the vm id for CloudFoundry components.
2983 //
2984 // When system components are instrumented, values from the
2985 // [Bosh spec]
2986 // should be used. The `system.instance.id` should be set to `spec.id`.
2987 //
2988 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2989 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
2990 CloudFoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
2991 )
2992
2993 // CloudFoundryAppID returns an attribute KeyValue conforming to the
2994 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2995 // application.
2996 func CloudFoundryAppID(val string) attribute.KeyValue {
2997 return CloudFoundryAppIDKey.String(val)
2998 }
2999
3000 // CloudFoundryAppInstanceID returns an attribute KeyValue conforming to the
3001 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
3002 // of the application instance. 0 when just one instance is active.
3003 func CloudFoundryAppInstanceID(val string) attribute.KeyValue {
3004 return CloudFoundryAppInstanceIDKey.String(val)
3005 }
3006
3007 // CloudFoundryAppName returns an attribute KeyValue conforming to the
3008 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
3009 // application.
3010 func CloudFoundryAppName(val string) attribute.KeyValue {
3011 return CloudFoundryAppNameKey.String(val)
3012 }
3013
3014 // CloudFoundryOrgID returns an attribute KeyValue conforming to the
3015 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
3016 // CloudFoundry org the application is running in.
3017 func CloudFoundryOrgID(val string) attribute.KeyValue {
3018 return CloudFoundryOrgIDKey.String(val)
3019 }
3020
3021 // CloudFoundryOrgName returns an attribute KeyValue conforming to the
3022 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
3023 // CloudFoundry organization the app is running in.
3024 func CloudFoundryOrgName(val string) attribute.KeyValue {
3025 return CloudFoundryOrgNameKey.String(val)
3026 }
3027
3028 // CloudFoundryProcessID returns an attribute KeyValue conforming to the
3029 // "cloudfoundry.process.id" semantic conventions. It represents the UID
3030 // identifying the process.
3031 func CloudFoundryProcessID(val string) attribute.KeyValue {
3032 return CloudFoundryProcessIDKey.String(val)
3033 }
3034
3035 // CloudFoundryProcessType returns an attribute KeyValue conforming to the
3036 // "cloudfoundry.process.type" semantic conventions. It represents the type of
3037 // process.
3038 func CloudFoundryProcessType(val string) attribute.KeyValue {
3039 return CloudFoundryProcessTypeKey.String(val)
3040 }
3041
3042 // CloudFoundrySpaceID returns an attribute KeyValue conforming to the
3043 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
3044 // CloudFoundry space the application is running in.
3045 func CloudFoundrySpaceID(val string) attribute.KeyValue {
3046 return CloudFoundrySpaceIDKey.String(val)
3047 }
3048
3049 // CloudFoundrySpaceName returns an attribute KeyValue conforming to the
3050 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
3051 // CloudFoundry space the application is running in.
3052 func CloudFoundrySpaceName(val string) attribute.KeyValue {
3053 return CloudFoundrySpaceNameKey.String(val)
3054 }
3055
3056 // CloudFoundrySystemID returns an attribute KeyValue conforming to the
3057 // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
3058 // name describing the event source.
3059 func CloudFoundrySystemID(val string) attribute.KeyValue {
3060 return CloudFoundrySystemIDKey.String(val)
3061 }
3062
3063 // CloudFoundrySystemInstanceID returns an attribute KeyValue conforming to the
3064 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
3065 // describing the concrete instance of the event source.
3066 func CloudFoundrySystemInstanceID(val string) attribute.KeyValue {
3067 return CloudFoundrySystemInstanceIDKey.String(val)
3068 }
3069
3070 // Namespace: code
3071 const (
3072 // CodeColumnNumberKey is the attribute Key conforming to the
3073 // "code.column.number" semantic conventions. It represents the column number in
3074 // `code.file.path` best representing the operation. It SHOULD point within the
3075 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3076 // the Profile signal since the data is already captured in 'message Line'. This
3077 // constraint is imposed to prevent redundancy and maintain data integrity.
3078 //
3079 // Type: int
3080 // RequirementLevel: Recommended
3081 // Stability: Stable
3082 CodeColumnNumberKey = attribute.Key("code.column.number")
3083
3084 // CodeFilePathKey is the attribute Key conforming to the "code.file.path"
3085 // semantic conventions. It represents the source code file name that identifies
3086 // the code unit as uniquely as possible (preferably an absolute file path).
3087 // This attribute MUST NOT be used on the Profile signal since the data is
3088 // already captured in 'message Function'. This constraint is imposed to prevent
3089 // redundancy and maintain data integrity.
3090 //
3091 // Type: string
3092 // RequirementLevel: Recommended
3093 // Stability: Stable
3094 //
3095 // Examples: /usr/local/MyApplication/content_root/app/index.php
3096 CodeFilePathKey = attribute.Key("code.file.path")
3097
3098 // CodeFunctionNameKey is the attribute Key conforming to the
3099 // "code.function.name" semantic conventions. It represents the method or
3100 // function fully-qualified name without arguments. The value should fit the
3101 // natural representation of the language runtime, which is also likely the same
3102 // used within `code.stacktrace` attribute value. This attribute MUST NOT be
3103 // used on the Profile signal since the data is already captured in 'message
3104 // Function'. This constraint is imposed to prevent redundancy and maintain data
3105 // integrity.
3106 //
3107 // Type: string
3108 // RequirementLevel: Recommended
3109 // Stability: Stable
3110 //
3111 // Examples: "com.example.MyHttpService.serveRequest",
3112 // "GuzzleHttp\Client::transfer", "fopen"
3113 // Note: Values and format depends on each language runtime, thus it is
3114 // impossible to provide an exhaustive list of examples.
3115 // The values are usually the same (or prefixes of) the ones found in native
3116 // stack trace representation stored in
3117 // `code.stacktrace` without information on arguments.
3118 //
3119 // Examples:
3120 //
3121 // - Java method: `com.example.MyHttpService.serveRequest`
3122 // - Java anonymous class method: `com.mycompany.Main$1.myMethod`
3123 // - Java lambda method:
3124 // `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod`
3125 // - PHP function: `GuzzleHttp\Client::transfer`
3126 // - Go function: `github.com/my/repo/pkg.foo.func5`
3127 // - Elixir: `OpenTelemetry.Ctx.new`
3128 // - Erlang: `opentelemetry_ctx:new`
3129 // - Rust: `playground::my_module::my_cool_func`
3130 // - C function: `fopen`
3131 CodeFunctionNameKey = attribute.Key("code.function.name")
3132
3133 // CodeLineNumberKey is the attribute Key conforming to the "code.line.number"
3134 // semantic conventions. It represents the line number in `code.file.path` best
3135 // representing the operation. It SHOULD point within the code unit named in
3136 // `code.function.name`. This attribute MUST NOT be used on the Profile signal
3137 // since the data is already captured in 'message Line'. This constraint is
3138 // imposed to prevent redundancy and maintain data integrity.
3139 //
3140 // Type: int
3141 // RequirementLevel: Recommended
3142 // Stability: Stable
3143 CodeLineNumberKey = attribute.Key("code.line.number")
3144
3145 // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
3146 // semantic conventions. It represents a stacktrace as a string in the natural
3147 // representation for the language runtime. The representation is identical to
3148 // [`exception.stacktrace`]. This attribute MUST NOT be used on the Profile
3149 // signal since the data is already captured in 'message Location'. This
3150 // constraint is imposed to prevent redundancy and maintain data integrity.
3151 //
3152 // Type: string
3153 // RequirementLevel: Recommended
3154 // Stability: Stable
3155 //
3156 // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
3157 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
3158 // com.example.GenerateTrace.main(GenerateTrace.java:5)
3159 //
3160 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
3161 CodeStacktraceKey = attribute.Key("code.stacktrace")
3162 )
3163
3164 // CodeColumnNumber returns an attribute KeyValue conforming to the
3165 // "code.column.number" semantic conventions. It represents the column number in
3166 // `code.file.path` best representing the operation. It SHOULD point within the
3167 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3168 // the Profile signal since the data is already captured in 'message Line'. This
3169 // constraint is imposed to prevent redundancy and maintain data integrity.
3170 func CodeColumnNumber(val int) attribute.KeyValue {
3171 return CodeColumnNumberKey.Int(val)
3172 }
3173
3174 // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path"
3175 // semantic conventions. It represents the source code file name that identifies
3176 // the code unit as uniquely as possible (preferably an absolute file path). This
3177 // attribute MUST NOT be used on the Profile signal since the data is already
3178 // captured in 'message Function'. This constraint is imposed to prevent
3179 // redundancy and maintain data integrity.
3180 func CodeFilePath(val string) attribute.KeyValue {
3181 return CodeFilePathKey.String(val)
3182 }
3183
3184 // CodeFunctionName returns an attribute KeyValue conforming to the
3185 // "code.function.name" semantic conventions. It represents the method or
3186 // function fully-qualified name without arguments. The value should fit the
3187 // natural representation of the language runtime, which is also likely the same
3188 // used within `code.stacktrace` attribute value. This attribute MUST NOT be used
3189 // on the Profile signal since the data is already captured in 'message
3190 // Function'. This constraint is imposed to prevent redundancy and maintain data
3191 // integrity.
3192 func CodeFunctionName(val string) attribute.KeyValue {
3193 return CodeFunctionNameKey.String(val)
3194 }
3195
3196 // CodeLineNumber returns an attribute KeyValue conforming to the
3197 // "code.line.number" semantic conventions. It represents the line number in
3198 // `code.file.path` best representing the operation. It SHOULD point within the
3199 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3200 // the Profile signal since the data is already captured in 'message Line'. This
3201 // constraint is imposed to prevent redundancy and maintain data integrity.
3202 func CodeLineNumber(val int) attribute.KeyValue {
3203 return CodeLineNumberKey.Int(val)
3204 }
3205
3206 // CodeStacktrace returns an attribute KeyValue conforming to the
3207 // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
3208 // in the natural representation for the language runtime. The representation is
3209 // identical to [`exception.stacktrace`]. This attribute MUST NOT be used on the
3210 // Profile signal since the data is already captured in 'message Location'. This
3211 // constraint is imposed to prevent redundancy and maintain data integrity.
3212 //
3213 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
3214 func CodeStacktrace(val string) attribute.KeyValue {
3215 return CodeStacktraceKey.String(val)
3216 }
3217
3218 // Namespace: container
3219 const (
3220 // ContainerCommandKey is the attribute Key conforming to the
3221 // "container.command" semantic conventions. It represents the command used to
3222 // run the container (i.e. the command name).
3223 //
3224 // Type: string
3225 // RequirementLevel: Recommended
3226 // Stability: Development
3227 //
3228 // Examples: "otelcontribcol"
3229 // Note: If using embedded credentials or sensitive data, it is recommended to
3230 // remove them to prevent potential leakage.
3231 ContainerCommandKey = attribute.Key("container.command")
3232
3233 // ContainerCommandArgsKey is the attribute Key conforming to the
3234 // "container.command_args" semantic conventions. It represents the all the
3235 // command arguments (including the command/executable itself) run by the
3236 // container.
3237 //
3238 // Type: string[]
3239 // RequirementLevel: Recommended
3240 // Stability: Development
3241 //
3242 // Examples: "otelcontribcol", "--config", "config.yaml"
3243 ContainerCommandArgsKey = attribute.Key("container.command_args")
3244
3245 // ContainerCommandLineKey is the attribute Key conforming to the
3246 // "container.command_line" semantic conventions. It represents the full command
3247 // run by the container as a single string representing the full command.
3248 //
3249 // Type: string
3250 // RequirementLevel: Recommended
3251 // Stability: Development
3252 //
3253 // Examples: "otelcontribcol --config config.yaml"
3254 ContainerCommandLineKey = attribute.Key("container.command_line")
3255
3256 // ContainerCSIPluginNameKey is the attribute Key conforming to the
3257 // "container.csi.plugin.name" semantic conventions. It represents the name of
3258 // the CSI ([Container Storage Interface]) plugin used by the volume.
3259 //
3260 // Type: string
3261 // RequirementLevel: Recommended
3262 // Stability: Development
3263 //
3264 // Examples: "pd.csi.storage.gke.io"
3265 // Note: This can sometimes be referred to as a "driver" in CSI implementations.
3266 // This should represent the `name` field of the GetPluginInfo RPC.
3267 //
3268 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3269 ContainerCSIPluginNameKey = attribute.Key("container.csi.plugin.name")
3270
3271 // ContainerCSIVolumeIDKey is the attribute Key conforming to the
3272 // "container.csi.volume.id" semantic conventions. It represents the unique
3273 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3274 //
3275 // Type: string
3276 // RequirementLevel: Recommended
3277 // Stability: Development
3278 //
3279 // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
3280 // Note: This can sometimes be referred to as a "volume handle" in CSI
3281 // implementations. This should represent the `Volume.volume_id` field in CSI
3282 // spec.
3283 //
3284 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3285 ContainerCSIVolumeIDKey = attribute.Key("container.csi.volume.id")
3286
3287 // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
3288 // conventions. It represents the container ID. Usually a UUID, as for example
3289 // used to [identify Docker containers]. The UUID might be abbreviated.
3290 //
3291 // Type: string
3292 // RequirementLevel: Recommended
3293 // Stability: Development
3294 //
3295 // Examples: "a3bf90e006b2"
3296 //
3297 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3298 ContainerIDKey = attribute.Key("container.id")
3299
3300 // ContainerImageIDKey is the attribute Key conforming to the
3301 // "container.image.id" semantic conventions. It represents the runtime specific
3302 // image identifier. Usually a hash algorithm followed by a UUID.
3303 //
3304 // Type: string
3305 // RequirementLevel: Recommended
3306 // Stability: Development
3307 //
3308 // Examples:
3309 // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
3310 // Note: Docker defines a sha256 of the image id; `container.image.id`
3311 // corresponds to the `Image` field from the Docker container inspect [API]
3312 // endpoint.
3313 // K8s defines a link to the container registry repository with digest
3314 // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
3315 // .
3316 // The ID is assigned by the container runtime and can vary in different
3317 // environments. Consider using `oci.manifest.digest` if it is important to
3318 // identify the same image in different environments/runtimes.
3319 //
3320 // [API]: https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect
3321 ContainerImageIDKey = attribute.Key("container.image.id")
3322
3323 // ContainerImageNameKey is the attribute Key conforming to the
3324 // "container.image.name" semantic conventions. It represents the name of the
3325 // image the container was built on.
3326 //
3327 // Type: string
3328 // RequirementLevel: Recommended
3329 // Stability: Development
3330 //
3331 // Examples: "gcr.io/opentelemetry/operator"
3332 ContainerImageNameKey = attribute.Key("container.image.name")
3333
3334 // ContainerImageRepoDigestsKey is the attribute Key conforming to the
3335 // "container.image.repo_digests" semantic conventions. It represents the repo
3336 // digests of the container image as provided by the container runtime.
3337 //
3338 // Type: string[]
3339 // RequirementLevel: Recommended
3340 // Stability: Development
3341 //
3342 // Examples:
3343 // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
3344 // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
3345 // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
3346 //
3347 // [Docker]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
3348 // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
3349 ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
3350
3351 // ContainerImageTagsKey is the attribute Key conforming to the
3352 // "container.image.tags" semantic conventions. It represents the container
3353 // image tags. An example can be found in [Docker Image Inspect]. Should be only
3354 // the `<tag>` section of the full name for example from
3355 // `registry.example.com/my-org/my-image:<tag>`.
3356 //
3357 // Type: string[]
3358 // RequirementLevel: Recommended
3359 // Stability: Development
3360 //
3361 // Examples: "v1.27.1", "3.5.7-0"
3362 //
3363 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
3364 ContainerImageTagsKey = attribute.Key("container.image.tags")
3365
3366 // ContainerNameKey is the attribute Key conforming to the "container.name"
3367 // semantic conventions. It represents the container name used by container
3368 // runtime.
3369 //
3370 // Type: string
3371 // RequirementLevel: Recommended
3372 // Stability: Development
3373 //
3374 // Examples: "opentelemetry-autoconf"
3375 ContainerNameKey = attribute.Key("container.name")
3376
3377 // ContainerRuntimeKey is the attribute Key conforming to the
3378 // "container.runtime" semantic conventions. It represents the container runtime
3379 // managing this container.
3380 //
3381 // Type: string
3382 // RequirementLevel: Recommended
3383 // Stability: Development
3384 //
3385 // Examples: "docker", "containerd", "rkt"
3386 ContainerRuntimeKey = attribute.Key("container.runtime")
3387 )
3388
3389 // ContainerCommand returns an attribute KeyValue conforming to the
3390 // "container.command" semantic conventions. It represents the command used to
3391 // run the container (i.e. the command name).
3392 func ContainerCommand(val string) attribute.KeyValue {
3393 return ContainerCommandKey.String(val)
3394 }
3395
3396 // ContainerCommandArgs returns an attribute KeyValue conforming to the
3397 // "container.command_args" semantic conventions. It represents the all the
3398 // command arguments (including the command/executable itself) run by the
3399 // container.
3400 func ContainerCommandArgs(val ...string) attribute.KeyValue {
3401 return ContainerCommandArgsKey.StringSlice(val)
3402 }
3403
3404 // ContainerCommandLine returns an attribute KeyValue conforming to the
3405 // "container.command_line" semantic conventions. It represents the full command
3406 // run by the container as a single string representing the full command.
3407 func ContainerCommandLine(val string) attribute.KeyValue {
3408 return ContainerCommandLineKey.String(val)
3409 }
3410
3411 // ContainerCSIPluginName returns an attribute KeyValue conforming to the
3412 // "container.csi.plugin.name" semantic conventions. It represents the name of
3413 // the CSI ([Container Storage Interface]) plugin used by the volume.
3414 //
3415 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3416 func ContainerCSIPluginName(val string) attribute.KeyValue {
3417 return ContainerCSIPluginNameKey.String(val)
3418 }
3419
3420 // ContainerCSIVolumeID returns an attribute KeyValue conforming to the
3421 // "container.csi.volume.id" semantic conventions. It represents the unique
3422 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3423 //
3424 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3425 func ContainerCSIVolumeID(val string) attribute.KeyValue {
3426 return ContainerCSIVolumeIDKey.String(val)
3427 }
3428
3429 // ContainerID returns an attribute KeyValue conforming to the "container.id"
3430 // semantic conventions. It represents the container ID. Usually a UUID, as for
3431 // example used to [identify Docker containers]. The UUID might be abbreviated.
3432 //
3433 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3434 func ContainerID(val string) attribute.KeyValue {
3435 return ContainerIDKey.String(val)
3436 }
3437
3438 // ContainerImageID returns an attribute KeyValue conforming to the
3439 // "container.image.id" semantic conventions. It represents the runtime specific
3440 // image identifier. Usually a hash algorithm followed by a UUID.
3441 func ContainerImageID(val string) attribute.KeyValue {
3442 return ContainerImageIDKey.String(val)
3443 }
3444
3445 // ContainerImageName returns an attribute KeyValue conforming to the
3446 // "container.image.name" semantic conventions. It represents the name of the
3447 // image the container was built on.
3448 func ContainerImageName(val string) attribute.KeyValue {
3449 return ContainerImageNameKey.String(val)
3450 }
3451
3452 // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
3453 // "container.image.repo_digests" semantic conventions. It represents the repo
3454 // digests of the container image as provided by the container runtime.
3455 func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
3456 return ContainerImageRepoDigestsKey.StringSlice(val)
3457 }
3458
3459 // ContainerImageTags returns an attribute KeyValue conforming to the
3460 // "container.image.tags" semantic conventions. It represents the container image
3461 // tags. An example can be found in [Docker Image Inspect]. Should be only the
3462 // `<tag>` section of the full name for example from
3463 // `registry.example.com/my-org/my-image:<tag>`.
3464 //
3465 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
3466 func ContainerImageTags(val ...string) attribute.KeyValue {
3467 return ContainerImageTagsKey.StringSlice(val)
3468 }
3469
3470 // ContainerLabel returns an attribute KeyValue conforming to the
3471 // "container.label" semantic conventions. It represents the container labels,
3472 // `<key>` being the label name, the value being the label value.
3473 func ContainerLabel(key string, val string) attribute.KeyValue {
3474 return attribute.String("container.label."+key, val)
3475 }
3476
3477 // ContainerName returns an attribute KeyValue conforming to the "container.name"
3478 // semantic conventions. It represents the container name used by container
3479 // runtime.
3480 func ContainerName(val string) attribute.KeyValue {
3481 return ContainerNameKey.String(val)
3482 }
3483
3484 // ContainerRuntime returns an attribute KeyValue conforming to the
3485 // "container.runtime" semantic conventions. It represents the container runtime
3486 // managing this container.
3487 func ContainerRuntime(val string) attribute.KeyValue {
3488 return ContainerRuntimeKey.String(val)
3489 }
3490
3491 // Namespace: cpu
3492 const (
3493 // CPULogicalNumberKey is the attribute Key conforming to the
3494 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3495 // number [0..n-1].
3496 //
3497 // Type: int
3498 // RequirementLevel: Recommended
3499 // Stability: Development
3500 //
3501 // Examples: 1
3502 CPULogicalNumberKey = attribute.Key("cpu.logical_number")
3503
3504 // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
3505 // conventions. It represents the mode of the CPU.
3506 //
3507 // Type: Enum
3508 // RequirementLevel: Recommended
3509 // Stability: Development
3510 //
3511 // Examples: "user", "system"
3512 CPUModeKey = attribute.Key("cpu.mode")
3513 )
3514
3515 // CPULogicalNumber returns an attribute KeyValue conforming to the
3516 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3517 // number [0..n-1].
3518 func CPULogicalNumber(val int) attribute.KeyValue {
3519 return CPULogicalNumberKey.Int(val)
3520 }
3521
3522 // Enum values for cpu.mode
3523 var (
3524 // user
3525 // Stability: development
3526 CPUModeUser = CPUModeKey.String("user")
3527 // system
3528 // Stability: development
3529 CPUModeSystem = CPUModeKey.String("system")
3530 // nice
3531 // Stability: development
3532 CPUModeNice = CPUModeKey.String("nice")
3533 // idle
3534 // Stability: development
3535 CPUModeIdle = CPUModeKey.String("idle")
3536 // iowait
3537 // Stability: development
3538 CPUModeIOWait = CPUModeKey.String("iowait")
3539 // interrupt
3540 // Stability: development
3541 CPUModeInterrupt = CPUModeKey.String("interrupt")
3542 // steal
3543 // Stability: development
3544 CPUModeSteal = CPUModeKey.String("steal")
3545 // kernel
3546 // Stability: development
3547 CPUModeKernel = CPUModeKey.String("kernel")
3548 )
3549
3550 // Namespace: db
3551 const (
3552 // DBClientConnectionPoolNameKey is the attribute Key conforming to the
3553 // "db.client.connection.pool.name" semantic conventions. It represents the name
3554 // of the connection pool; unique within the instrumented application. In case
3555 // the connection pool implementation doesn't provide a name, instrumentation
3556 // SHOULD use a combination of parameters that would make the name unique, for
3557 // example, combining attributes `server.address`, `server.port`, and
3558 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3559 // Instrumentations that generate connection pool name following different
3560 // patterns SHOULD document it.
3561 //
3562 // Type: string
3563 // RequirementLevel: Recommended
3564 // Stability: Development
3565 //
3566 // Examples: "myDataSource"
3567 DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
3568
3569 // DBClientConnectionStateKey is the attribute Key conforming to the
3570 // "db.client.connection.state" semantic conventions. It represents the state of
3571 // a connection in the pool.
3572 //
3573 // Type: Enum
3574 // RequirementLevel: Recommended
3575 // Stability: Development
3576 //
3577 // Examples: "idle"
3578 DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
3579
3580 // DBCollectionNameKey is the attribute Key conforming to the
3581 // "db.collection.name" semantic conventions. It represents the name of a
3582 // collection (table, container) within the database.
3583 //
3584 // Type: string
3585 // RequirementLevel: Recommended
3586 // Stability: Stable
3587 //
3588 // Examples: "public.users", "customers"
3589 // Note: It is RECOMMENDED to capture the value as provided by the application
3590 // without attempting to do any case normalization.
3591 //
3592 // The collection name SHOULD NOT be extracted from `db.query.text`,
3593 // when the database system supports query text with multiple collections
3594 // in non-batch operations.
3595 //
3596 // For batch operations, if the individual operations are known to have the same
3597 // collection name then that collection name SHOULD be used.
3598 DBCollectionNameKey = attribute.Key("db.collection.name")
3599
3600 // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
3601 // conventions. It represents the name of the database, fully qualified within
3602 // the server address and port.
3603 //
3604 // Type: string
3605 // RequirementLevel: Recommended
3606 // Stability: Stable
3607 //
3608 // Examples: "customers", "test.users"
3609 // Note: If a database system has multiple namespace components, they SHOULD be
3610 // concatenated from the most general to the most specific namespace component,
3611 // using `|` as a separator between the components. Any missing components (and
3612 // their associated separators) SHOULD be omitted.
3613 // Semantic conventions for individual database systems SHOULD document what
3614 // `db.namespace` means in the context of that system.
3615 // It is RECOMMENDED to capture the value as provided by the application without
3616 // attempting to do any case normalization.
3617 DBNamespaceKey = attribute.Key("db.namespace")
3618
3619 // DBOperationBatchSizeKey is the attribute Key conforming to the
3620 // "db.operation.batch.size" semantic conventions. It represents the number of
3621 // queries included in a batch operation.
3622 //
3623 // Type: int
3624 // RequirementLevel: Recommended
3625 // Stability: Stable
3626 //
3627 // Examples: 2, 3, 4
3628 // Note: Operations are only considered batches when they contain two or more
3629 // operations, and so `db.operation.batch.size` SHOULD never be `1`.
3630 DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
3631
3632 // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
3633 // semantic conventions. It represents the name of the operation or command
3634 // being executed.
3635 //
3636 // Type: string
3637 // RequirementLevel: Recommended
3638 // Stability: Stable
3639 //
3640 // Examples: "findAndModify", "HMSET", "SELECT"
3641 // Note: It is RECOMMENDED to capture the value as provided by the application
3642 // without attempting to do any case normalization.
3643 //
3644 // The operation name SHOULD NOT be extracted from `db.query.text`,
3645 // when the database system supports query text with multiple operations
3646 // in non-batch operations.
3647 //
3648 // If spaces can occur in the operation name, multiple consecutive spaces
3649 // SHOULD be normalized to a single space.
3650 //
3651 // For batch operations, if the individual operations are known to have the same
3652 // operation name
3653 // then that operation name SHOULD be used prepended by `BATCH `,
3654 // otherwise `db.operation.name` SHOULD be `BATCH` or some other database
3655 // system specific term if more applicable.
3656 DBOperationNameKey = attribute.Key("db.operation.name")
3657
3658 // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary"
3659 // semantic conventions. It represents the low cardinality summary of a database
3660 // query.
3661 //
3662 // Type: string
3663 // RequirementLevel: Recommended
3664 // Stability: Stable
3665 //
3666 // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get
3667 // user by id"
3668 // Note: The query summary describes a class of database queries and is useful
3669 // as a grouping key, especially when analyzing telemetry for database
3670 // calls involving complex queries.
3671 //
3672 // Summary may be available to the instrumentation through
3673 // instrumentation hooks or other means. If it is not available,
3674 // instrumentations
3675 // that support query parsing SHOULD generate a summary following
3676 // [Generating query summary]
3677 // section.
3678 //
3679 // [Generating query summary]: /docs/database/database-spans.md#generating-a-summary-of-the-query
3680 DBQuerySummaryKey = attribute.Key("db.query.summary")
3681
3682 // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
3683 // semantic conventions. It represents the database query being executed.
3684 //
3685 // Type: string
3686 // RequirementLevel: Recommended
3687 // Stability: Stable
3688 //
3689 // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?"
3690 // Note: For sanitization see [Sanitization of `db.query.text`].
3691 // For batch operations, if the individual operations are known to have the same
3692 // query text then that query text SHOULD be used, otherwise all of the
3693 // individual query texts SHOULD be concatenated with separator `; ` or some
3694 // other database system specific separator if more applicable.
3695 // Parameterized query text SHOULD NOT be sanitized. Even though parameterized
3696 // query text can potentially have sensitive data, by using a parameterized
3697 // query the user is giving a strong signal that any sensitive data will be
3698 // passed as parameter values, and the benefit to observability of capturing the
3699 // static part of the query text by default outweighs the risk.
3700 //
3701 // [Sanitization of `db.query.text`]: /docs/database/database-spans.md#sanitization-of-dbquerytext
3702 DBQueryTextKey = attribute.Key("db.query.text")
3703
3704 // DBResponseReturnedRowsKey is the attribute Key conforming to the
3705 // "db.response.returned_rows" semantic conventions. It represents the number of
3706 // rows returned by the operation.
3707 //
3708 // Type: int
3709 // RequirementLevel: Recommended
3710 // Stability: Development
3711 //
3712 // Examples: 10, 30, 1000
3713 DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows")
3714
3715 // DBResponseStatusCodeKey is the attribute Key conforming to the
3716 // "db.response.status_code" semantic conventions. It represents the database
3717 // response status code.
3718 //
3719 // Type: string
3720 // RequirementLevel: Recommended
3721 // Stability: Stable
3722 //
3723 // Examples: "102", "ORA-17002", "08P01", "404"
3724 // Note: The status code returned by the database. Usually it represents an
3725 // error code, but may also represent partial success, warning, or differentiate
3726 // between various types of successful outcomes.
3727 // Semantic conventions for individual database systems SHOULD document what
3728 // `db.response.status_code` means in the context of that system.
3729 DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
3730
3731 // DBStoredProcedureNameKey is the attribute Key conforming to the
3732 // "db.stored_procedure.name" semantic conventions. It represents the name of a
3733 // stored procedure within the database.
3734 //
3735 // Type: string
3736 // RequirementLevel: Recommended
3737 // Stability: Stable
3738 //
3739 // Examples: "GetCustomer"
3740 // Note: It is RECOMMENDED to capture the value as provided by the application
3741 // without attempting to do any case normalization.
3742 //
3743 // For batch operations, if the individual operations are known to have the same
3744 // stored procedure name then that stored procedure name SHOULD be used.
3745 DBStoredProcedureNameKey = attribute.Key("db.stored_procedure.name")
3746
3747 // DBSystemNameKey is the attribute Key conforming to the "db.system.name"
3748 // semantic conventions. It represents the database management system (DBMS)
3749 // product as identified by the client instrumentation.
3750 //
3751 // Type: Enum
3752 // RequirementLevel: Recommended
3753 // Stability: Stable
3754 //
3755 // Examples:
3756 // Note: The actual DBMS may differ from the one identified by the client. For
3757 // example, when using PostgreSQL client libraries to connect to a CockroachDB,
3758 // the `db.system.name` is set to `postgresql` based on the instrumentation's
3759 // best knowledge.
3760 DBSystemNameKey = attribute.Key("db.system.name")
3761 )
3762
3763 // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
3764 // "db.client.connection.pool.name" semantic conventions. It represents the name
3765 // of the connection pool; unique within the instrumented application. In case
3766 // the connection pool implementation doesn't provide a name, instrumentation
3767 // SHOULD use a combination of parameters that would make the name unique, for
3768 // example, combining attributes `server.address`, `server.port`, and
3769 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3770 // Instrumentations that generate connection pool name following different
3771 // patterns SHOULD document it.
3772 func DBClientConnectionPoolName(val string) attribute.KeyValue {
3773 return DBClientConnectionPoolNameKey.String(val)
3774 }
3775
3776 // DBCollectionName returns an attribute KeyValue conforming to the
3777 // "db.collection.name" semantic conventions. It represents the name of a
3778 // collection (table, container) within the database.
3779 func DBCollectionName(val string) attribute.KeyValue {
3780 return DBCollectionNameKey.String(val)
3781 }
3782
3783 // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
3784 // semantic conventions. It represents the name of the database, fully qualified
3785 // within the server address and port.
3786 func DBNamespace(val string) attribute.KeyValue {
3787 return DBNamespaceKey.String(val)
3788 }
3789
3790 // DBOperationBatchSize returns an attribute KeyValue conforming to the
3791 // "db.operation.batch.size" semantic conventions. It represents the number of
3792 // queries included in a batch operation.
3793 func DBOperationBatchSize(val int) attribute.KeyValue {
3794 return DBOperationBatchSizeKey.Int(val)
3795 }
3796
3797 // DBOperationName returns an attribute KeyValue conforming to the
3798 // "db.operation.name" semantic conventions. It represents the name of the
3799 // operation or command being executed.
3800 func DBOperationName(val string) attribute.KeyValue {
3801 return DBOperationNameKey.String(val)
3802 }
3803
3804 // DBOperationParameter returns an attribute KeyValue conforming to the
3805 // "db.operation.parameter" semantic conventions. It represents a database
3806 // operation parameter, with `<key>` being the parameter name, and the attribute
3807 // value being a string representation of the parameter value.
3808 func DBOperationParameter(key string, val string) attribute.KeyValue {
3809 return attribute.String("db.operation.parameter."+key, val)
3810 }
3811
3812 // DBQueryParameter returns an attribute KeyValue conforming to the
3813 // "db.query.parameter" semantic conventions. It represents a database query
3814 // parameter, with `<key>` being the parameter name, and the attribute value
3815 // being a string representation of the parameter value.
3816 func DBQueryParameter(key string, val string) attribute.KeyValue {
3817 return attribute.String("db.query.parameter."+key, val)
3818 }
3819
3820 // DBQuerySummary returns an attribute KeyValue conforming to the
3821 // "db.query.summary" semantic conventions. It represents the low cardinality
3822 // summary of a database query.
3823 func DBQuerySummary(val string) attribute.KeyValue {
3824 return DBQuerySummaryKey.String(val)
3825 }
3826
3827 // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
3828 // semantic conventions. It represents the database query being executed.
3829 func DBQueryText(val string) attribute.KeyValue {
3830 return DBQueryTextKey.String(val)
3831 }
3832
3833 // DBResponseReturnedRows returns an attribute KeyValue conforming to the
3834 // "db.response.returned_rows" semantic conventions. It represents the number of
3835 // rows returned by the operation.
3836 func DBResponseReturnedRows(val int) attribute.KeyValue {
3837 return DBResponseReturnedRowsKey.Int(val)
3838 }
3839
3840 // DBResponseStatusCode returns an attribute KeyValue conforming to the
3841 // "db.response.status_code" semantic conventions. It represents the database
3842 // response status code.
3843 func DBResponseStatusCode(val string) attribute.KeyValue {
3844 return DBResponseStatusCodeKey.String(val)
3845 }
3846
3847 // DBStoredProcedureName returns an attribute KeyValue conforming to the
3848 // "db.stored_procedure.name" semantic conventions. It represents the name of a
3849 // stored procedure within the database.
3850 func DBStoredProcedureName(val string) attribute.KeyValue {
3851 return DBStoredProcedureNameKey.String(val)
3852 }
3853
3854 // Enum values for db.client.connection.state
3855 var (
3856 // idle
3857 // Stability: development
3858 DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
3859 // used
3860 // Stability: development
3861 DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
3862 )
3863
3864 // Enum values for db.system.name
3865 var (
3866 // Some other SQL database. Fallback only.
3867 // Stability: development
3868 DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql")
3869 // [Adabas (Adaptable Database System)]
3870 // Stability: development
3871 //
3872 // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas
3873 DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas")
3874 // [Actian Ingres]
3875 // Stability: development
3876 //
3877 // [Actian Ingres]: https://www.actian.com/databases/ingres/
3878 DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres")
3879 // [Amazon DynamoDB]
3880 // Stability: development
3881 //
3882 // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/
3883 DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb")
3884 // [Amazon Redshift]
3885 // Stability: development
3886 //
3887 // [Amazon Redshift]: https://aws.amazon.com/redshift/
3888 DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift")
3889 // [Azure Cosmos DB]
3890 // Stability: development
3891 //
3892 // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db
3893 DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb")
3894 // [InterSystems Caché]
3895 // Stability: development
3896 //
3897 // [InterSystems Caché]: https://www.intersystems.com/products/cache/
3898 DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache")
3899 // [Apache Cassandra]
3900 // Stability: development
3901 //
3902 // [Apache Cassandra]: https://cassandra.apache.org/
3903 DBSystemNameCassandra = DBSystemNameKey.String("cassandra")
3904 // [ClickHouse]
3905 // Stability: development
3906 //
3907 // [ClickHouse]: https://clickhouse.com/
3908 DBSystemNameClickHouse = DBSystemNameKey.String("clickhouse")
3909 // [CockroachDB]
3910 // Stability: development
3911 //
3912 // [CockroachDB]: https://www.cockroachlabs.com/
3913 DBSystemNameCockroachDB = DBSystemNameKey.String("cockroachdb")
3914 // [Couchbase]
3915 // Stability: development
3916 //
3917 // [Couchbase]: https://www.couchbase.com/
3918 DBSystemNameCouchbase = DBSystemNameKey.String("couchbase")
3919 // [Apache CouchDB]
3920 // Stability: development
3921 //
3922 // [Apache CouchDB]: https://couchdb.apache.org/
3923 DBSystemNameCouchDB = DBSystemNameKey.String("couchdb")
3924 // [Apache Derby]
3925 // Stability: development
3926 //
3927 // [Apache Derby]: https://db.apache.org/derby/
3928 DBSystemNameDerby = DBSystemNameKey.String("derby")
3929 // [Elasticsearch]
3930 // Stability: development
3931 //
3932 // [Elasticsearch]: https://www.elastic.co/elasticsearch
3933 DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch")
3934 // [Firebird]
3935 // Stability: development
3936 //
3937 // [Firebird]: https://www.firebirdsql.org/
3938 DBSystemNameFirebirdSQL = DBSystemNameKey.String("firebirdsql")
3939 // [Google Cloud Spanner]
3940 // Stability: development
3941 //
3942 // [Google Cloud Spanner]: https://cloud.google.com/spanner
3943 DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner")
3944 // [Apache Geode]
3945 // Stability: development
3946 //
3947 // [Apache Geode]: https://geode.apache.org/
3948 DBSystemNameGeode = DBSystemNameKey.String("geode")
3949 // [H2 Database]
3950 // Stability: development
3951 //
3952 // [H2 Database]: https://h2database.com/
3953 DBSystemNameH2database = DBSystemNameKey.String("h2database")
3954 // [Apache HBase]
3955 // Stability: development
3956 //
3957 // [Apache HBase]: https://hbase.apache.org/
3958 DBSystemNameHBase = DBSystemNameKey.String("hbase")
3959 // [Apache Hive]
3960 // Stability: development
3961 //
3962 // [Apache Hive]: https://hive.apache.org/
3963 DBSystemNameHive = DBSystemNameKey.String("hive")
3964 // [HyperSQL Database]
3965 // Stability: development
3966 //
3967 // [HyperSQL Database]: https://hsqldb.org/
3968 DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb")
3969 // [IBM Db2]
3970 // Stability: development
3971 //
3972 // [IBM Db2]: https://www.ibm.com/db2
3973 DBSystemNameIBMDB2 = DBSystemNameKey.String("ibm.db2")
3974 // [IBM Informix]
3975 // Stability: development
3976 //
3977 // [IBM Informix]: https://www.ibm.com/products/informix
3978 DBSystemNameIBMInformix = DBSystemNameKey.String("ibm.informix")
3979 // [IBM Netezza]
3980 // Stability: development
3981 //
3982 // [IBM Netezza]: https://www.ibm.com/products/netezza
3983 DBSystemNameIBMNetezza = DBSystemNameKey.String("ibm.netezza")
3984 // [InfluxDB]
3985 // Stability: development
3986 //
3987 // [InfluxDB]: https://www.influxdata.com/
3988 DBSystemNameInfluxDB = DBSystemNameKey.String("influxdb")
3989 // [Instant]
3990 // Stability: development
3991 //
3992 // [Instant]: https://www.instantdb.com/
3993 DBSystemNameInstantDB = DBSystemNameKey.String("instantdb")
3994 // [MariaDB]
3995 // Stability: stable
3996 //
3997 // [MariaDB]: https://mariadb.org/
3998 DBSystemNameMariaDB = DBSystemNameKey.String("mariadb")
3999 // [Memcached]
4000 // Stability: development
4001 //
4002 // [Memcached]: https://memcached.org/
4003 DBSystemNameMemcached = DBSystemNameKey.String("memcached")
4004 // [MongoDB]
4005 // Stability: development
4006 //
4007 // [MongoDB]: https://www.mongodb.com/
4008 DBSystemNameMongoDB = DBSystemNameKey.String("mongodb")
4009 // [Microsoft SQL Server]
4010 // Stability: stable
4011 //
4012 // [Microsoft SQL Server]: https://www.microsoft.com/sql-server
4013 DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server")
4014 // [MySQL]
4015 // Stability: stable
4016 //
4017 // [MySQL]: https://www.mysql.com/
4018 DBSystemNameMySQL = DBSystemNameKey.String("mysql")
4019 // [Neo4j]
4020 // Stability: development
4021 //
4022 // [Neo4j]: https://neo4j.com/
4023 DBSystemNameNeo4j = DBSystemNameKey.String("neo4j")
4024 // [OpenSearch]
4025 // Stability: development
4026 //
4027 // [OpenSearch]: https://opensearch.org/
4028 DBSystemNameOpenSearch = DBSystemNameKey.String("opensearch")
4029 // [Oracle Database]
4030 // Stability: development
4031 //
4032 // [Oracle Database]: https://www.oracle.com/database/
4033 DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db")
4034 // [PostgreSQL]
4035 // Stability: stable
4036 //
4037 // [PostgreSQL]: https://www.postgresql.org/
4038 DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql")
4039 // [Redis]
4040 // Stability: development
4041 //
4042 // [Redis]: https://redis.io/
4043 DBSystemNameRedis = DBSystemNameKey.String("redis")
4044 // [SAP HANA]
4045 // Stability: development
4046 //
4047 // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html
4048 DBSystemNameSAPHANA = DBSystemNameKey.String("sap.hana")
4049 // [SAP MaxDB]
4050 // Stability: development
4051 //
4052 // [SAP MaxDB]: https://maxdb.sap.com/
4053 DBSystemNameSAPMaxDB = DBSystemNameKey.String("sap.maxdb")
4054 // [SQLite]
4055 // Stability: development
4056 //
4057 // [SQLite]: https://www.sqlite.org/
4058 DBSystemNameSQLite = DBSystemNameKey.String("sqlite")
4059 // [Teradata]
4060 // Stability: development
4061 //
4062 // [Teradata]: https://www.teradata.com/
4063 DBSystemNameTeradata = DBSystemNameKey.String("teradata")
4064 // [Trino]
4065 // Stability: development
4066 //
4067 // [Trino]: https://trino.io/
4068 DBSystemNameTrino = DBSystemNameKey.String("trino")
4069 )
4070
4071 // Namespace: deployment
4072 const (
4073 // DeploymentEnvironmentNameKey is the attribute Key conforming to the
4074 // "deployment.environment.name" semantic conventions. It represents the name of
4075 // the [deployment environment] (aka deployment tier).
4076 //
4077 // Type: string
4078 // RequirementLevel: Recommended
4079 // Stability: Development
4080 //
4081 // Examples: "staging", "production"
4082 // Note: `deployment.environment.name` does not affect the uniqueness
4083 // constraints defined through
4084 // the `service.namespace`, `service.name` and `service.instance.id` resource
4085 // attributes.
4086 // This implies that resources carrying the following attribute combinations
4087 // MUST be
4088 // considered to be identifying the same service:
4089 //
4090 // - `service.name=frontend`, `deployment.environment.name=production`
4091 // - `service.name=frontend`, `deployment.environment.name=staging`.
4092 //
4093 //
4094 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
4095 DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
4096
4097 // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
4098 // semantic conventions. It represents the id of the deployment.
4099 //
4100 // Type: string
4101 // RequirementLevel: Recommended
4102 // Stability: Development
4103 //
4104 // Examples: "1208"
4105 DeploymentIDKey = attribute.Key("deployment.id")
4106
4107 // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
4108 // semantic conventions. It represents the name of the deployment.
4109 //
4110 // Type: string
4111 // RequirementLevel: Recommended
4112 // Stability: Development
4113 //
4114 // Examples: "deploy my app", "deploy-frontend"
4115 DeploymentNameKey = attribute.Key("deployment.name")
4116
4117 // DeploymentStatusKey is the attribute Key conforming to the
4118 // "deployment.status" semantic conventions. It represents the status of the
4119 // deployment.
4120 //
4121 // Type: Enum
4122 // RequirementLevel: Recommended
4123 // Stability: Development
4124 //
4125 // Examples:
4126 DeploymentStatusKey = attribute.Key("deployment.status")
4127 )
4128
4129 // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
4130 // "deployment.environment.name" semantic conventions. It represents the name of
4131 // the [deployment environment] (aka deployment tier).
4132 //
4133 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
4134 func DeploymentEnvironmentName(val string) attribute.KeyValue {
4135 return DeploymentEnvironmentNameKey.String(val)
4136 }
4137
4138 // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
4139 // semantic conventions. It represents the id of the deployment.
4140 func DeploymentID(val string) attribute.KeyValue {
4141 return DeploymentIDKey.String(val)
4142 }
4143
4144 // DeploymentName returns an attribute KeyValue conforming to the
4145 // "deployment.name" semantic conventions. It represents the name of the
4146 // deployment.
4147 func DeploymentName(val string) attribute.KeyValue {
4148 return DeploymentNameKey.String(val)
4149 }
4150
4151 // Enum values for deployment.status
4152 var (
4153 // failed
4154 // Stability: development
4155 DeploymentStatusFailed = DeploymentStatusKey.String("failed")
4156 // succeeded
4157 // Stability: development
4158 DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
4159 )
4160
4161 // Namespace: destination
4162 const (
4163 // DestinationAddressKey is the attribute Key conforming to the
4164 // "destination.address" semantic conventions. It represents the destination
4165 // address - domain name if available without reverse DNS lookup; otherwise, IP
4166 // address or Unix domain socket name.
4167 //
4168 // Type: string
4169 // RequirementLevel: Recommended
4170 // Stability: Development
4171 //
4172 // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
4173 // Note: When observed from the source side, and when communicating through an
4174 // intermediary, `destination.address` SHOULD represent the destination address
4175 // behind any intermediaries, for example proxies, if it's available.
4176 DestinationAddressKey = attribute.Key("destination.address")
4177
4178 // DestinationPortKey is the attribute Key conforming to the "destination.port"
4179 // semantic conventions. It represents the destination port number.
4180 //
4181 // Type: int
4182 // RequirementLevel: Recommended
4183 // Stability: Development
4184 //
4185 // Examples: 3389, 2888
4186 DestinationPortKey = attribute.Key("destination.port")
4187 )
4188
4189 // DestinationAddress returns an attribute KeyValue conforming to the
4190 // "destination.address" semantic conventions. It represents the destination
4191 // address - domain name if available without reverse DNS lookup; otherwise, IP
4192 // address or Unix domain socket name.
4193 func DestinationAddress(val string) attribute.KeyValue {
4194 return DestinationAddressKey.String(val)
4195 }
4196
4197 // DestinationPort returns an attribute KeyValue conforming to the
4198 // "destination.port" semantic conventions. It represents the destination port
4199 // number.
4200 func DestinationPort(val int) attribute.KeyValue {
4201 return DestinationPortKey.Int(val)
4202 }
4203
4204 // Namespace: device
4205 const (
4206 // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
4207 // conventions. It represents a unique identifier representing the device.
4208 //
4209 // Type: string
4210 // RequirementLevel: Recommended
4211 // Stability: Development
4212 //
4213 // Examples: "123456789012345", "01:23:45:67:89:AB"
4214 // Note: Its value SHOULD be identical for all apps on a device and it SHOULD
4215 // NOT change if an app is uninstalled and re-installed.
4216 // However, it might be resettable by the user for all apps on a device.
4217 // Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) MAY be
4218 // used as values.
4219 //
4220 // More information about Android identifier best practices can be found [here]
4221 // .
4222 //
4223 // > [!WARNING]> This attribute may contain sensitive (PII) information. Caution
4224 // > should be taken when storing personal data or anything which can identify a
4225 // > user. GDPR and data protection laws may apply,
4226 // > ensure you do your own due diligence.> Due to these reasons, this
4227 // > identifier is not recommended for consumer applications and will likely
4228 // > result in rejection from both Google Play and App Store.
4229 // > However, it may be appropriate for specific enterprise scenarios, such as
4230 // > kiosk devices or enterprise-managed devices, with appropriate compliance
4231 // > clearance.
4232 // > Any instrumentation providing this identifier MUST implement it as an
4233 // > opt-in feature.> See [`app.installation.id`]> for a more
4234 // > privacy-preserving alternative.
4235 //
4236 // [here]: https://developer.android.com/training/articles/user-data-ids
4237 // [`app.installation.id`]: /docs/registry/attributes/app.md#app-installation-id
4238 DeviceIDKey = attribute.Key("device.id")
4239
4240 // DeviceManufacturerKey is the attribute Key conforming to the
4241 // "device.manufacturer" semantic conventions. It represents the name of the
4242 // device manufacturer.
4243 //
4244 // Type: string
4245 // RequirementLevel: Recommended
4246 // Stability: Development
4247 //
4248 // Examples: "Apple", "Samsung"
4249 // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
4250 // hardcode the value `Apple`.
4251 //
4252 // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
4253 DeviceManufacturerKey = attribute.Key("device.manufacturer")
4254
4255 // DeviceModelIdentifierKey is the attribute Key conforming to the
4256 // "device.model.identifier" semantic conventions. It represents the model
4257 // identifier for the device.
4258 //
4259 // Type: string
4260 // RequirementLevel: Recommended
4261 // Stability: Development
4262 //
4263 // Examples: "iPhone3,4", "SM-G920F"
4264 // Note: It's recommended this value represents a machine-readable version of
4265 // the model identifier rather than the market or consumer-friendly name of the
4266 // device.
4267 DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
4268
4269 // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
4270 // semantic conventions. It represents the marketing name for the device model.
4271 //
4272 // Type: string
4273 // RequirementLevel: Recommended
4274 // Stability: Development
4275 //
4276 // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
4277 // Note: It's recommended this value represents a human-readable version of the
4278 // device model rather than a machine-readable alternative.
4279 DeviceModelNameKey = attribute.Key("device.model.name")
4280 )
4281
4282 // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
4283 // conventions. It represents a unique identifier representing the device.
4284 func DeviceID(val string) attribute.KeyValue {
4285 return DeviceIDKey.String(val)
4286 }
4287
4288 // DeviceManufacturer returns an attribute KeyValue conforming to the
4289 // "device.manufacturer" semantic conventions. It represents the name of the
4290 // device manufacturer.
4291 func DeviceManufacturer(val string) attribute.KeyValue {
4292 return DeviceManufacturerKey.String(val)
4293 }
4294
4295 // DeviceModelIdentifier returns an attribute KeyValue conforming to the
4296 // "device.model.identifier" semantic conventions. It represents the model
4297 // identifier for the device.
4298 func DeviceModelIdentifier(val string) attribute.KeyValue {
4299 return DeviceModelIdentifierKey.String(val)
4300 }
4301
4302 // DeviceModelName returns an attribute KeyValue conforming to the
4303 // "device.model.name" semantic conventions. It represents the marketing name for
4304 // the device model.
4305 func DeviceModelName(val string) attribute.KeyValue {
4306 return DeviceModelNameKey.String(val)
4307 }
4308
4309 // Namespace: disk
4310 const (
4311 // DiskIODirectionKey is the attribute Key conforming to the "disk.io.direction"
4312 // semantic conventions. It represents the disk IO operation direction.
4313 //
4314 // Type: Enum
4315 // RequirementLevel: Recommended
4316 // Stability: Development
4317 //
4318 // Examples: "read"
4319 DiskIODirectionKey = attribute.Key("disk.io.direction")
4320 )
4321
4322 // Enum values for disk.io.direction
4323 var (
4324 // read
4325 // Stability: development
4326 DiskIODirectionRead = DiskIODirectionKey.String("read")
4327 // write
4328 // Stability: development
4329 DiskIODirectionWrite = DiskIODirectionKey.String("write")
4330 )
4331
4332 // Namespace: dns
4333 const (
4334 // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
4335 // semantic conventions. It represents the name being queried.
4336 //
4337 // Type: string
4338 // RequirementLevel: Recommended
4339 // Stability: Development
4340 //
4341 // Examples: "www.example.com", "opentelemetry.io"
4342 // Note: If the name field contains non-printable characters (below 32 or above
4343 // 126), those characters should be represented as escaped base 10 integers
4344 // (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns,
4345 // and line feeds should be converted to \t, \r, and \n respectively.
4346 DNSQuestionNameKey = attribute.Key("dns.question.name")
4347 )
4348
4349 // DNSQuestionName returns an attribute KeyValue conforming to the
4350 // "dns.question.name" semantic conventions. It represents the name being
4351 // queried.
4352 func DNSQuestionName(val string) attribute.KeyValue {
4353 return DNSQuestionNameKey.String(val)
4354 }
4355
4356 // Namespace: elasticsearch
4357 const (
4358 // ElasticsearchNodeNameKey is the attribute Key conforming to the
4359 // "elasticsearch.node.name" semantic conventions. It represents the represents
4360 // the human-readable identifier of the node/instance to which a request was
4361 // routed.
4362 //
4363 // Type: string
4364 // RequirementLevel: Recommended
4365 // Stability: Development
4366 //
4367 // Examples: "instance-0000000001"
4368 ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name")
4369 )
4370
4371 // ElasticsearchNodeName returns an attribute KeyValue conforming to the
4372 // "elasticsearch.node.name" semantic conventions. It represents the represents
4373 // the human-readable identifier of the node/instance to which a request was
4374 // routed.
4375 func ElasticsearchNodeName(val string) attribute.KeyValue {
4376 return ElasticsearchNodeNameKey.String(val)
4377 }
4378
4379 // Namespace: enduser
4380 const (
4381 // EnduserIDKey is the attribute Key conforming to the "enduser.id" semantic
4382 // conventions. It represents the unique identifier of an end user in the
4383 // system. It maybe a username, email address, or other identifier.
4384 //
4385 // Type: string
4386 // RequirementLevel: Recommended
4387 // Stability: Development
4388 //
4389 // Examples: "username"
4390 // Note: Unique identifier of an end user in the system.
4391 //
4392 // > [!Warning]
4393 // > This field contains sensitive (PII) information.
4394 EnduserIDKey = attribute.Key("enduser.id")
4395
4396 // EnduserPseudoIDKey is the attribute Key conforming to the "enduser.pseudo.id"
4397 // semantic conventions. It represents the pseudonymous identifier of an end
4398 // user. This identifier should be a random value that is not directly linked or
4399 // associated with the end user's actual identity.
4400 //
4401 // Type: string
4402 // RequirementLevel: Recommended
4403 // Stability: Development
4404 //
4405 // Examples: "QdH5CAWJgqVT4rOr0qtumf"
4406 // Note: Pseudonymous identifier of an end user.
4407 //
4408 // > [!Warning]
4409 // > This field contains sensitive (linkable PII) information.
4410 EnduserPseudoIDKey = attribute.Key("enduser.pseudo.id")
4411 )
4412
4413 // EnduserID returns an attribute KeyValue conforming to the "enduser.id"
4414 // semantic conventions. It represents the unique identifier of an end user in
4415 // the system. It maybe a username, email address, or other identifier.
4416 func EnduserID(val string) attribute.KeyValue {
4417 return EnduserIDKey.String(val)
4418 }
4419
4420 // EnduserPseudoID returns an attribute KeyValue conforming to the
4421 // "enduser.pseudo.id" semantic conventions. It represents the pseudonymous
4422 // identifier of an end user. This identifier should be a random value that is
4423 // not directly linked or associated with the end user's actual identity.
4424 func EnduserPseudoID(val string) attribute.KeyValue {
4425 return EnduserPseudoIDKey.String(val)
4426 }
4427
4428 // Namespace: error
4429 const (
4430 // ErrorMessageKey is the attribute Key conforming to the "error.message"
4431 // semantic conventions. It represents a message providing more detail about an
4432 // error in human-readable form.
4433 //
4434 // Type: string
4435 // RequirementLevel: Recommended
4436 // Stability: Development
4437 //
4438 // Examples: "Unexpected input type: string", "The user has exceeded their
4439 // storage quota"
4440 // Note: `error.message` should provide additional context and detail about an
4441 // error.
4442 // It is NOT RECOMMENDED to duplicate the value of `error.type` in
4443 // `error.message`.
4444 // It is also NOT RECOMMENDED to duplicate the value of `exception.message` in
4445 // `error.message`.
4446 //
4447 // `error.message` is NOT RECOMMENDED for metrics or spans due to its unbounded
4448 // cardinality and overlap with span status.
4449 ErrorMessageKey = attribute.Key("error.message")
4450
4451 // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
4452 // conventions. It represents the describes a class of error the operation ended
4453 // with.
4454 //
4455 // Type: Enum
4456 // RequirementLevel: Recommended
4457 // Stability: Stable
4458 //
4459 // Examples: "timeout", "java.net.UnknownHostException",
4460 // "server_certificate_invalid", "500"
4461 // Note: The `error.type` SHOULD be predictable, and SHOULD have low
4462 // cardinality.
4463 //
4464 // When `error.type` is set to a type (e.g., an exception type), its
4465 // canonical class name identifying the type within the artifact SHOULD be used.
4466 //
4467 // Instrumentations SHOULD document the list of errors they report.
4468 //
4469 // The cardinality of `error.type` within one instrumentation library SHOULD be
4470 // low.
4471 // Telemetry consumers that aggregate data from multiple instrumentation
4472 // libraries and applications
4473 // should be prepared for `error.type` to have high cardinality at query time
4474 // when no
4475 // additional filters are applied.
4476 //
4477 // If the operation has completed successfully, instrumentations SHOULD NOT set
4478 // `error.type`.
4479 //
4480 // If a specific domain defines its own set of error identifiers (such as HTTP
4481 // or gRPC status codes),
4482 // it's RECOMMENDED to:
4483 //
4484 // - Use a domain-specific attribute
4485 // - Set `error.type` to capture all errors, regardless of whether they are
4486 // defined within the domain-specific set or not.
4487 ErrorTypeKey = attribute.Key("error.type")
4488 )
4489
4490 // ErrorMessage returns an attribute KeyValue conforming to the "error.message"
4491 // semantic conventions. It represents a message providing more detail about an
4492 // error in human-readable form.
4493 func ErrorMessage(val string) attribute.KeyValue {
4494 return ErrorMessageKey.String(val)
4495 }
4496
4497 // Enum values for error.type
4498 var (
4499 // A fallback error value to be used when the instrumentation doesn't define a
4500 // custom value.
4501 //
4502 // Stability: stable
4503 ErrorTypeOther = ErrorTypeKey.String("_OTHER")
4504 )
4505
4506 // Namespace: exception
4507 const (
4508 // ExceptionMessageKey is the attribute Key conforming to the
4509 // "exception.message" semantic conventions. It represents the exception
4510 // message.
4511 //
4512 // Type: string
4513 // RequirementLevel: Recommended
4514 // Stability: Stable
4515 //
4516 // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
4517 ExceptionMessageKey = attribute.Key("exception.message")
4518
4519 // ExceptionStacktraceKey is the attribute Key conforming to the
4520 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4521 // string in the natural representation for the language runtime. The
4522 // representation is to be determined and documented by each language SIG.
4523 //
4524 // Type: string
4525 // RequirementLevel: Recommended
4526 // Stability: Stable
4527 //
4528 // Examples: Exception in thread "main" java.lang.RuntimeException: Test
4529 // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
4530 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
4531 // com.example.GenerateTrace.main(GenerateTrace.java:5)
4532 ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
4533
4534 // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
4535 // semantic conventions. It represents the type of the exception (its
4536 // fully-qualified class name, if applicable). The dynamic type of the exception
4537 // should be preferred over the static type in languages that support it.
4538 //
4539 // Type: string
4540 // RequirementLevel: Recommended
4541 // Stability: Stable
4542 //
4543 // Examples: "java.net.ConnectException", "OSError"
4544 ExceptionTypeKey = attribute.Key("exception.type")
4545 )
4546
4547 // ExceptionMessage returns an attribute KeyValue conforming to the
4548 // "exception.message" semantic conventions. It represents the exception message.
4549 func ExceptionMessage(val string) attribute.KeyValue {
4550 return ExceptionMessageKey.String(val)
4551 }
4552
4553 // ExceptionStacktrace returns an attribute KeyValue conforming to the
4554 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4555 // string in the natural representation for the language runtime. The
4556 // representation is to be determined and documented by each language SIG.
4557 func ExceptionStacktrace(val string) attribute.KeyValue {
4558 return ExceptionStacktraceKey.String(val)
4559 }
4560
4561 // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
4562 // semantic conventions. It represents the type of the exception (its
4563 // fully-qualified class name, if applicable). The dynamic type of the exception
4564 // should be preferred over the static type in languages that support it.
4565 func ExceptionType(val string) attribute.KeyValue {
4566 return ExceptionTypeKey.String(val)
4567 }
4568
4569 // Namespace: faas
4570 const (
4571 // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
4572 // semantic conventions. It represents a boolean that is true if the serverless
4573 // function is executed for the first time (aka cold-start).
4574 //
4575 // Type: boolean
4576 // RequirementLevel: Recommended
4577 // Stability: Development
4578 //
4579 // Examples:
4580 FaaSColdstartKey = attribute.Key("faas.coldstart")
4581
4582 // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
4583 // conventions. It represents a string containing the schedule period as
4584 // [Cron Expression].
4585 //
4586 // Type: string
4587 // RequirementLevel: Recommended
4588 // Stability: Development
4589 //
4590 // Examples: 0/5 * * * ? *
4591 //
4592 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4593 FaaSCronKey = attribute.Key("faas.cron")
4594
4595 // FaaSDocumentCollectionKey is the attribute Key conforming to the
4596 // "faas.document.collection" semantic conventions. It represents the name of
4597 // the source on which the triggering operation was performed. For example, in
4598 // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
4599 // database name.
4600 //
4601 // Type: string
4602 // RequirementLevel: Recommended
4603 // Stability: Development
4604 //
4605 // Examples: "myBucketName", "myDbName"
4606 FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
4607
4608 // FaaSDocumentNameKey is the attribute Key conforming to the
4609 // "faas.document.name" semantic conventions. It represents the document
4610 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4611 // the name of the file, and in Cosmos DB the table name.
4612 //
4613 // Type: string
4614 // RequirementLevel: Recommended
4615 // Stability: Development
4616 //
4617 // Examples: "myFile.txt", "myTableName"
4618 FaaSDocumentNameKey = attribute.Key("faas.document.name")
4619
4620 // FaaSDocumentOperationKey is the attribute Key conforming to the
4621 // "faas.document.operation" semantic conventions. It represents the describes
4622 // the type of the operation that was performed on the data.
4623 //
4624 // Type: Enum
4625 // RequirementLevel: Recommended
4626 // Stability: Development
4627 //
4628 // Examples:
4629 FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
4630
4631 // FaaSDocumentTimeKey is the attribute Key conforming to the
4632 // "faas.document.time" semantic conventions. It represents a string containing
4633 // the time when the data was accessed in the [ISO 8601] format expressed in
4634 // [UTC].
4635 //
4636 // Type: string
4637 // RequirementLevel: Recommended
4638 // Stability: Development
4639 //
4640 // Examples: 2020-01-23T13:47:06Z
4641 //
4642 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4643 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4644 FaaSDocumentTimeKey = attribute.Key("faas.document.time")
4645
4646 // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
4647 // semantic conventions. It represents the execution environment ID as a string,
4648 // that will be potentially reused for other invocations to the same
4649 // function/function version.
4650 //
4651 // Type: string
4652 // RequirementLevel: Recommended
4653 // Stability: Development
4654 //
4655 // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
4656 // Note: - **AWS Lambda:** Use the (full) log stream name.
4657 FaaSInstanceKey = attribute.Key("faas.instance")
4658
4659 // FaaSInvocationIDKey is the attribute Key conforming to the
4660 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4661 // the current function invocation.
4662 //
4663 // Type: string
4664 // RequirementLevel: Recommended
4665 // Stability: Development
4666 //
4667 // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
4668 FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
4669
4670 // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
4671 // semantic conventions. It represents the name of the invoked function.
4672 //
4673 // Type: string
4674 // RequirementLevel: Recommended
4675 // Stability: Development
4676 //
4677 // Examples: my-function
4678 // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
4679 // function.
4680 FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
4681
4682 // FaaSInvokedProviderKey is the attribute Key conforming to the
4683 // "faas.invoked_provider" semantic conventions. It represents the cloud
4684 // provider of the invoked function.
4685 //
4686 // Type: Enum
4687 // RequirementLevel: Recommended
4688 // Stability: Development
4689 //
4690 // Examples:
4691 // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
4692 // invoked function.
4693 FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
4694
4695 // FaaSInvokedRegionKey is the attribute Key conforming to the
4696 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4697 // the invoked function.
4698 //
4699 // Type: string
4700 // RequirementLevel: Recommended
4701 // Stability: Development
4702 //
4703 // Examples: eu-central-1
4704 // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
4705 // function.
4706 FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
4707
4708 // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
4709 // semantic conventions. It represents the amount of memory available to the
4710 // serverless function converted to Bytes.
4711 //
4712 // Type: int
4713 // RequirementLevel: Recommended
4714 // Stability: Development
4715 //
4716 // Note: It's recommended to set this attribute since e.g. too little memory can
4717 // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
4718 // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
4719 // information (which must be multiplied by 1,048,576).
4720 FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
4721
4722 // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
4723 // conventions. It represents the name of the single function that this runtime
4724 // instance executes.
4725 //
4726 // Type: string
4727 // RequirementLevel: Recommended
4728 // Stability: Development
4729 //
4730 // Examples: "my-function", "myazurefunctionapp/some-function-name"
4731 // Note: This is the name of the function as configured/deployed on the FaaS
4732 // platform and is usually different from the name of the callback
4733 // function (which may be stored in the
4734 // [`code.namespace`/`code.function.name`]
4735 // span attributes).
4736 //
4737 // For some cloud providers, the above definition is ambiguous. The following
4738 // definition of function name MUST be used for this attribute
4739 // (and consequently the span name) for the listed cloud providers/products:
4740 //
4741 // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
4742 // followed by a forward slash followed by the function name (this form
4743 // can also be seen in the resource JSON for the function).
4744 // This means that a span attribute MUST be used, as an Azure function
4745 // app can host multiple functions that would usually share
4746 // a TracerProvider (see also the `cloud.resource_id` attribute).
4747 //
4748 //
4749 // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes
4750 FaaSNameKey = attribute.Key("faas.name")
4751
4752 // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
4753 // conventions. It represents a string containing the function invocation time
4754 // in the [ISO 8601] format expressed in [UTC].
4755 //
4756 // Type: string
4757 // RequirementLevel: Recommended
4758 // Stability: Development
4759 //
4760 // Examples: 2020-01-23T13:47:06Z
4761 //
4762 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4763 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4764 FaaSTimeKey = attribute.Key("faas.time")
4765
4766 // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
4767 // conventions. It represents the type of the trigger which caused this function
4768 // invocation.
4769 //
4770 // Type: Enum
4771 // RequirementLevel: Recommended
4772 // Stability: Development
4773 //
4774 // Examples:
4775 FaaSTriggerKey = attribute.Key("faas.trigger")
4776
4777 // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
4778 // conventions. It represents the immutable version of the function being
4779 // executed.
4780 //
4781 // Type: string
4782 // RequirementLevel: Recommended
4783 // Stability: Development
4784 //
4785 // Examples: "26", "pinkfroid-00002"
4786 // Note: Depending on the cloud provider and platform, use:
4787 //
4788 // - **AWS Lambda:** The [function version]
4789 // (an integer represented as a decimal string).
4790 // - **Google Cloud Run (Services):** The [revision]
4791 // (i.e., the function name plus the revision suffix).
4792 // - **Google Cloud Functions:** The value of the
4793 // [`K_REVISION` environment variable].
4794 // - **Azure Functions:** Not applicable. Do not set this attribute.
4795 //
4796 //
4797 // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
4798 // [revision]: https://cloud.google.com/run/docs/managing/revisions
4799 // [`K_REVISION` environment variable]: https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically
4800 FaaSVersionKey = attribute.Key("faas.version")
4801 )
4802
4803 // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
4804 // semantic conventions. It represents a boolean that is true if the serverless
4805 // function is executed for the first time (aka cold-start).
4806 func FaaSColdstart(val bool) attribute.KeyValue {
4807 return FaaSColdstartKey.Bool(val)
4808 }
4809
4810 // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
4811 // conventions. It represents a string containing the schedule period as
4812 // [Cron Expression].
4813 //
4814 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4815 func FaaSCron(val string) attribute.KeyValue {
4816 return FaaSCronKey.String(val)
4817 }
4818
4819 // FaaSDocumentCollection returns an attribute KeyValue conforming to the
4820 // "faas.document.collection" semantic conventions. It represents the name of the
4821 // source on which the triggering operation was performed. For example, in Cloud
4822 // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
4823 // name.
4824 func FaaSDocumentCollection(val string) attribute.KeyValue {
4825 return FaaSDocumentCollectionKey.String(val)
4826 }
4827
4828 // FaaSDocumentName returns an attribute KeyValue conforming to the
4829 // "faas.document.name" semantic conventions. It represents the document
4830 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4831 // the name of the file, and in Cosmos DB the table name.
4832 func FaaSDocumentName(val string) attribute.KeyValue {
4833 return FaaSDocumentNameKey.String(val)
4834 }
4835
4836 // FaaSDocumentTime returns an attribute KeyValue conforming to the
4837 // "faas.document.time" semantic conventions. It represents a string containing
4838 // the time when the data was accessed in the [ISO 8601] format expressed in
4839 // [UTC].
4840 //
4841 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4842 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4843 func FaaSDocumentTime(val string) attribute.KeyValue {
4844 return FaaSDocumentTimeKey.String(val)
4845 }
4846
4847 // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
4848 // semantic conventions. It represents the execution environment ID as a string,
4849 // that will be potentially reused for other invocations to the same
4850 // function/function version.
4851 func FaaSInstance(val string) attribute.KeyValue {
4852 return FaaSInstanceKey.String(val)
4853 }
4854
4855 // FaaSInvocationID returns an attribute KeyValue conforming to the
4856 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4857 // the current function invocation.
4858 func FaaSInvocationID(val string) attribute.KeyValue {
4859 return FaaSInvocationIDKey.String(val)
4860 }
4861
4862 // FaaSInvokedName returns an attribute KeyValue conforming to the
4863 // "faas.invoked_name" semantic conventions. It represents the name of the
4864 // invoked function.
4865 func FaaSInvokedName(val string) attribute.KeyValue {
4866 return FaaSInvokedNameKey.String(val)
4867 }
4868
4869 // FaaSInvokedRegion returns an attribute KeyValue conforming to the
4870 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4871 // the invoked function.
4872 func FaaSInvokedRegion(val string) attribute.KeyValue {
4873 return FaaSInvokedRegionKey.String(val)
4874 }
4875
4876 // FaaSMaxMemory returns an attribute KeyValue conforming to the
4877 // "faas.max_memory" semantic conventions. It represents the amount of memory
4878 // available to the serverless function converted to Bytes.
4879 func FaaSMaxMemory(val int) attribute.KeyValue {
4880 return FaaSMaxMemoryKey.Int(val)
4881 }
4882
4883 // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
4884 // conventions. It represents the name of the single function that this runtime
4885 // instance executes.
4886 func FaaSName(val string) attribute.KeyValue {
4887 return FaaSNameKey.String(val)
4888 }
4889
4890 // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
4891 // conventions. It represents a string containing the function invocation time in
4892 // the [ISO 8601] format expressed in [UTC].
4893 //
4894 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4895 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4896 func FaaSTime(val string) attribute.KeyValue {
4897 return FaaSTimeKey.String(val)
4898 }
4899
4900 // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
4901 // semantic conventions. It represents the immutable version of the function
4902 // being executed.
4903 func FaaSVersion(val string) attribute.KeyValue {
4904 return FaaSVersionKey.String(val)
4905 }
4906
4907 // Enum values for faas.document.operation
4908 var (
4909 // When a new object is created.
4910 // Stability: development
4911 FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
4912 // When an object is modified.
4913 // Stability: development
4914 FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
4915 // When an object is deleted.
4916 // Stability: development
4917 FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
4918 )
4919
4920 // Enum values for faas.invoked_provider
4921 var (
4922 // Alibaba Cloud
4923 // Stability: development
4924 FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
4925 // Amazon Web Services
4926 // Stability: development
4927 FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
4928 // Microsoft Azure
4929 // Stability: development
4930 FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
4931 // Google Cloud Platform
4932 // Stability: development
4933 FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
4934 // Tencent Cloud
4935 // Stability: development
4936 FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
4937 )
4938
4939 // Enum values for faas.trigger
4940 var (
4941 // A response to some data source operation such as a database or filesystem
4942 // read/write
4943 // Stability: development
4944 FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
4945 // To provide an answer to an inbound HTTP request
4946 // Stability: development
4947 FaaSTriggerHTTP = FaaSTriggerKey.String("http")
4948 // A function is set to be executed when messages are sent to a messaging system
4949 // Stability: development
4950 FaaSTriggerPubSub = FaaSTriggerKey.String("pubsub")
4951 // A function is scheduled to be executed regularly
4952 // Stability: development
4953 FaaSTriggerTimer = FaaSTriggerKey.String("timer")
4954 // If none of the others apply
4955 // Stability: development
4956 FaaSTriggerOther = FaaSTriggerKey.String("other")
4957 )
4958
4959 // Namespace: feature_flag
4960 const (
4961 // FeatureFlagContextIDKey is the attribute Key conforming to the
4962 // "feature_flag.context.id" semantic conventions. It represents the unique
4963 // identifier for the flag evaluation context. For example, the targeting key.
4964 //
4965 // Type: string
4966 // RequirementLevel: Recommended
4967 // Stability: Development
4968 //
4969 // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db"
4970 FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id")
4971
4972 // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
4973 // semantic conventions. It represents the lookup key of the feature flag.
4974 //
4975 // Type: string
4976 // RequirementLevel: Recommended
4977 // Stability: Development
4978 //
4979 // Examples: "logo-color"
4980 FeatureFlagKeyKey = attribute.Key("feature_flag.key")
4981
4982 // FeatureFlagProviderNameKey is the attribute Key conforming to the
4983 // "feature_flag.provider.name" semantic conventions. It represents the
4984 // identifies the feature flag provider.
4985 //
4986 // Type: string
4987 // RequirementLevel: Recommended
4988 // Stability: Development
4989 //
4990 // Examples: "Flag Manager"
4991 FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider.name")
4992
4993 // FeatureFlagResultReasonKey is the attribute Key conforming to the
4994 // "feature_flag.result.reason" semantic conventions. It represents the reason
4995 // code which shows how a feature flag value was determined.
4996 //
4997 // Type: Enum
4998 // RequirementLevel: Recommended
4999 // Stability: Development
5000 //
5001 // Examples: "static", "targeting_match", "error", "default"
5002 FeatureFlagResultReasonKey = attribute.Key("feature_flag.result.reason")
5003
5004 // FeatureFlagResultValueKey is the attribute Key conforming to the
5005 // "feature_flag.result.value" semantic conventions. It represents the evaluated
5006 // value of the feature flag.
5007 //
5008 // Type: any
5009 // RequirementLevel: Recommended
5010 // Stability: Development
5011 //
5012 // Examples: "#ff0000", true, 3
5013 // Note: With some feature flag providers, feature flag results can be quite
5014 // large or contain private or sensitive details.
5015 // Because of this, `feature_flag.result.variant` is often the preferred
5016 // attribute if it is available.
5017 //
5018 // It may be desirable to redact or otherwise limit the size and scope of
5019 // `feature_flag.result.value` if possible.
5020 // Because the evaluated flag value is unstructured and may be any type, it is
5021 // left to the instrumentation author to determine how best to achieve this.
5022 FeatureFlagResultValueKey = attribute.Key("feature_flag.result.value")
5023
5024 // FeatureFlagResultVariantKey is the attribute Key conforming to the
5025 // "feature_flag.result.variant" semantic conventions. It represents a semantic
5026 // identifier for an evaluated flag value.
5027 //
5028 // Type: string
5029 // RequirementLevel: Recommended
5030 // Stability: Development
5031 //
5032 // Examples: "red", "true", "on"
5033 // Note: A semantic identifier, commonly referred to as a variant, provides a
5034 // means
5035 // for referring to a value without including the value itself. This can
5036 // provide additional context for understanding the meaning behind a value.
5037 // For example, the variant `red` maybe be used for the value `#c05543`.
5038 FeatureFlagResultVariantKey = attribute.Key("feature_flag.result.variant")
5039
5040 // FeatureFlagSetIDKey is the attribute Key conforming to the
5041 // "feature_flag.set.id" semantic conventions. It represents the identifier of
5042 // the [flag set] to which the feature flag belongs.
5043 //
5044 // Type: string
5045 // RequirementLevel: Recommended
5046 // Stability: Development
5047 //
5048 // Examples: "proj-1", "ab98sgs", "service1/dev"
5049 //
5050 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
5051 FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id")
5052
5053 // FeatureFlagVersionKey is the attribute Key conforming to the
5054 // "feature_flag.version" semantic conventions. It represents the version of the
5055 // ruleset used during the evaluation. This may be any stable value which
5056 // uniquely identifies the ruleset.
5057 //
5058 // Type: string
5059 // RequirementLevel: Recommended
5060 // Stability: Development
5061 //
5062 // Examples: "1", "01ABCDEF"
5063 FeatureFlagVersionKey = attribute.Key("feature_flag.version")
5064 )
5065
5066 // FeatureFlagContextID returns an attribute KeyValue conforming to the
5067 // "feature_flag.context.id" semantic conventions. It represents the unique
5068 // identifier for the flag evaluation context. For example, the targeting key.
5069 func FeatureFlagContextID(val string) attribute.KeyValue {
5070 return FeatureFlagContextIDKey.String(val)
5071 }
5072
5073 // FeatureFlagKey returns an attribute KeyValue conforming to the
5074 // "feature_flag.key" semantic conventions. It represents the lookup key of the
5075 // feature flag.
5076 func FeatureFlagKey(val string) attribute.KeyValue {
5077 return FeatureFlagKeyKey.String(val)
5078 }
5079
5080 // FeatureFlagProviderName returns an attribute KeyValue conforming to the
5081 // "feature_flag.provider.name" semantic conventions. It represents the
5082 // identifies the feature flag provider.
5083 func FeatureFlagProviderName(val string) attribute.KeyValue {
5084 return FeatureFlagProviderNameKey.String(val)
5085 }
5086
5087 // FeatureFlagResultVariant returns an attribute KeyValue conforming to the
5088 // "feature_flag.result.variant" semantic conventions. It represents a semantic
5089 // identifier for an evaluated flag value.
5090 func FeatureFlagResultVariant(val string) attribute.KeyValue {
5091 return FeatureFlagResultVariantKey.String(val)
5092 }
5093
5094 // FeatureFlagSetID returns an attribute KeyValue conforming to the
5095 // "feature_flag.set.id" semantic conventions. It represents the identifier of
5096 // the [flag set] to which the feature flag belongs.
5097 //
5098 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
5099 func FeatureFlagSetID(val string) attribute.KeyValue {
5100 return FeatureFlagSetIDKey.String(val)
5101 }
5102
5103 // FeatureFlagVersion returns an attribute KeyValue conforming to the
5104 // "feature_flag.version" semantic conventions. It represents the version of the
5105 // ruleset used during the evaluation. This may be any stable value which
5106 // uniquely identifies the ruleset.
5107 func FeatureFlagVersion(val string) attribute.KeyValue {
5108 return FeatureFlagVersionKey.String(val)
5109 }
5110
5111 // Enum values for feature_flag.result.reason
5112 var (
5113 // The resolved value is static (no dynamic evaluation).
5114 // Stability: development
5115 FeatureFlagResultReasonStatic = FeatureFlagResultReasonKey.String("static")
5116 // The resolved value fell back to a pre-configured value (no dynamic evaluation
5117 // occurred or dynamic evaluation yielded no result).
5118 // Stability: development
5119 FeatureFlagResultReasonDefault = FeatureFlagResultReasonKey.String("default")
5120 // The resolved value was the result of a dynamic evaluation, such as a rule or
5121 // specific user-targeting.
5122 // Stability: development
5123 FeatureFlagResultReasonTargetingMatch = FeatureFlagResultReasonKey.String("targeting_match")
5124 // The resolved value was the result of pseudorandom assignment.
5125 // Stability: development
5126 FeatureFlagResultReasonSplit = FeatureFlagResultReasonKey.String("split")
5127 // The resolved value was retrieved from cache.
5128 // Stability: development
5129 FeatureFlagResultReasonCached = FeatureFlagResultReasonKey.String("cached")
5130 // The resolved value was the result of the flag being disabled in the
5131 // management system.
5132 // Stability: development
5133 FeatureFlagResultReasonDisabled = FeatureFlagResultReasonKey.String("disabled")
5134 // The reason for the resolved value could not be determined.
5135 // Stability: development
5136 FeatureFlagResultReasonUnknown = FeatureFlagResultReasonKey.String("unknown")
5137 // The resolved value is non-authoritative or possibly out of date
5138 // Stability: development
5139 FeatureFlagResultReasonStale = FeatureFlagResultReasonKey.String("stale")
5140 // The resolved value was the result of an error.
5141 // Stability: development
5142 FeatureFlagResultReasonError = FeatureFlagResultReasonKey.String("error")
5143 )
5144
5145 // Namespace: file
5146 const (
5147 // FileAccessedKey is the attribute Key conforming to the "file.accessed"
5148 // semantic conventions. It represents the time when the file was last accessed,
5149 // in ISO 8601 format.
5150 //
5151 // Type: string
5152 // RequirementLevel: Recommended
5153 // Stability: Development
5154 //
5155 // Examples: "2021-01-01T12:00:00Z"
5156 // Note: This attribute might not be supported by some file systems — NFS,
5157 // FAT32, in embedded OS, etc.
5158 FileAccessedKey = attribute.Key("file.accessed")
5159
5160 // FileAttributesKey is the attribute Key conforming to the "file.attributes"
5161 // semantic conventions. It represents the array of file attributes.
5162 //
5163 // Type: string[]
5164 // RequirementLevel: Recommended
5165 // Stability: Development
5166 //
5167 // Examples: "readonly", "hidden"
5168 // Note: Attributes names depend on the OS or file system. Here’s a
5169 // non-exhaustive list of values expected for this attribute: `archive`,
5170 // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
5171 // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
5172 // `write`.
5173 FileAttributesKey = attribute.Key("file.attributes")
5174
5175 // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
5176 // conventions. It represents the time when the file attributes or metadata was
5177 // last changed, in ISO 8601 format.
5178 //
5179 // Type: string
5180 // RequirementLevel: Recommended
5181 // Stability: Development
5182 //
5183 // Examples: "2021-01-01T12:00:00Z"
5184 // Note: `file.changed` captures the time when any of the file's properties or
5185 // attributes (including the content) are changed, while `file.modified`
5186 // captures the timestamp when the file content is modified.
5187 FileChangedKey = attribute.Key("file.changed")
5188
5189 // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
5190 // conventions. It represents the time when the file was created, in ISO 8601
5191 // format.
5192 //
5193 // Type: string
5194 // RequirementLevel: Recommended
5195 // Stability: Development
5196 //
5197 // Examples: "2021-01-01T12:00:00Z"
5198 // Note: This attribute might not be supported by some file systems — NFS,
5199 // FAT32, in embedded OS, etc.
5200 FileCreatedKey = attribute.Key("file.created")
5201
5202 // FileDirectoryKey is the attribute Key conforming to the "file.directory"
5203 // semantic conventions. It represents the directory where the file is located.
5204 // It should include the drive letter, when appropriate.
5205 //
5206 // Type: string
5207 // RequirementLevel: Recommended
5208 // Stability: Development
5209 //
5210 // Examples: "/home/user", "C:\Program Files\MyApp"
5211 FileDirectoryKey = attribute.Key("file.directory")
5212
5213 // FileExtensionKey is the attribute Key conforming to the "file.extension"
5214 // semantic conventions. It represents the file extension, excluding the leading
5215 // dot.
5216 //
5217 // Type: string
5218 // RequirementLevel: Recommended
5219 // Stability: Development
5220 //
5221 // Examples: "png", "gz"
5222 // Note: When the file name has multiple extensions (example.tar.gz), only the
5223 // last one should be captured ("gz", not "tar.gz").
5224 FileExtensionKey = attribute.Key("file.extension")
5225
5226 // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
5227 // semantic conventions. It represents the name of the fork. A fork is
5228 // additional data associated with a filesystem object.
5229 //
5230 // Type: string
5231 // RequirementLevel: Recommended
5232 // Stability: Development
5233 //
5234 // Examples: "Zone.Identifer"
5235 // Note: On Linux, a resource fork is used to store additional data with a
5236 // filesystem object. A file always has at least one fork for the data portion,
5237 // and additional forks may exist.
5238 // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
5239 // data stream for a file is just called $DATA. Zone.Identifier is commonly used
5240 // by Windows to track contents downloaded from the Internet. An ADS is
5241 // typically of the form: C:\path\to\filename.extension:some_fork_name, and
5242 // some_fork_name is the value that should populate `fork_name`.
5243 // `filename.extension` should populate `file.name`, and `extension` should
5244 // populate `file.extension`. The full path, `file.path`, will include the fork
5245 // name.
5246 FileForkNameKey = attribute.Key("file.fork_name")
5247
5248 // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
5249 // semantic conventions. It represents the primary Group ID (GID) of the file.
5250 //
5251 // Type: string
5252 // RequirementLevel: Recommended
5253 // Stability: Development
5254 //
5255 // Examples: "1000"
5256 FileGroupIDKey = attribute.Key("file.group.id")
5257
5258 // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
5259 // semantic conventions. It represents the primary group name of the file.
5260 //
5261 // Type: string
5262 // RequirementLevel: Recommended
5263 // Stability: Development
5264 //
5265 // Examples: "users"
5266 FileGroupNameKey = attribute.Key("file.group.name")
5267
5268 // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
5269 // conventions. It represents the inode representing the file in the filesystem.
5270 //
5271 // Type: string
5272 // RequirementLevel: Recommended
5273 // Stability: Development
5274 //
5275 // Examples: "256383"
5276 FileInodeKey = attribute.Key("file.inode")
5277
5278 // FileModeKey is the attribute Key conforming to the "file.mode" semantic
5279 // conventions. It represents the mode of the file in octal representation.
5280 //
5281 // Type: string
5282 // RequirementLevel: Recommended
5283 // Stability: Development
5284 //
5285 // Examples: "0640"
5286 FileModeKey = attribute.Key("file.mode")
5287
5288 // FileModifiedKey is the attribute Key conforming to the "file.modified"
5289 // semantic conventions. It represents the time when the file content was last
5290 // modified, in ISO 8601 format.
5291 //
5292 // Type: string
5293 // RequirementLevel: Recommended
5294 // Stability: Development
5295 //
5296 // Examples: "2021-01-01T12:00:00Z"
5297 FileModifiedKey = attribute.Key("file.modified")
5298
5299 // FileNameKey is the attribute Key conforming to the "file.name" semantic
5300 // conventions. It represents the name of the file including the extension,
5301 // without the directory.
5302 //
5303 // Type: string
5304 // RequirementLevel: Recommended
5305 // Stability: Development
5306 //
5307 // Examples: "example.png"
5308 FileNameKey = attribute.Key("file.name")
5309
5310 // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
5311 // semantic conventions. It represents the user ID (UID) or security identifier
5312 // (SID) of the file owner.
5313 //
5314 // Type: string
5315 // RequirementLevel: Recommended
5316 // Stability: Development
5317 //
5318 // Examples: "1000"
5319 FileOwnerIDKey = attribute.Key("file.owner.id")
5320
5321 // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
5322 // semantic conventions. It represents the username of the file owner.
5323 //
5324 // Type: string
5325 // RequirementLevel: Recommended
5326 // Stability: Development
5327 //
5328 // Examples: "root"
5329 FileOwnerNameKey = attribute.Key("file.owner.name")
5330
5331 // FilePathKey is the attribute Key conforming to the "file.path" semantic
5332 // conventions. It represents the full path to the file, including the file
5333 // name. It should include the drive letter, when appropriate.
5334 //
5335 // Type: string
5336 // RequirementLevel: Recommended
5337 // Stability: Development
5338 //
5339 // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
5340 FilePathKey = attribute.Key("file.path")
5341
5342 // FileSizeKey is the attribute Key conforming to the "file.size" semantic
5343 // conventions. It represents the file size in bytes.
5344 //
5345 // Type: int
5346 // RequirementLevel: Recommended
5347 // Stability: Development
5348 //
5349 // Examples:
5350 FileSizeKey = attribute.Key("file.size")
5351
5352 // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
5353 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5354 // to the target of a symbolic link.
5355 //
5356 // Type: string
5357 // RequirementLevel: Recommended
5358 // Stability: Development
5359 //
5360 // Examples: "/usr/bin/python3"
5361 // Note: This attribute is only applicable to symbolic links.
5362 FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
5363 )
5364
5365 // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
5366 // semantic conventions. It represents the time when the file was last accessed,
5367 // in ISO 8601 format.
5368 func FileAccessed(val string) attribute.KeyValue {
5369 return FileAccessedKey.String(val)
5370 }
5371
5372 // FileAttributes returns an attribute KeyValue conforming to the
5373 // "file.attributes" semantic conventions. It represents the array of file
5374 // attributes.
5375 func FileAttributes(val ...string) attribute.KeyValue {
5376 return FileAttributesKey.StringSlice(val)
5377 }
5378
5379 // FileChanged returns an attribute KeyValue conforming to the "file.changed"
5380 // semantic conventions. It represents the time when the file attributes or
5381 // metadata was last changed, in ISO 8601 format.
5382 func FileChanged(val string) attribute.KeyValue {
5383 return FileChangedKey.String(val)
5384 }
5385
5386 // FileCreated returns an attribute KeyValue conforming to the "file.created"
5387 // semantic conventions. It represents the time when the file was created, in ISO
5388 // 8601 format.
5389 func FileCreated(val string) attribute.KeyValue {
5390 return FileCreatedKey.String(val)
5391 }
5392
5393 // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
5394 // semantic conventions. It represents the directory where the file is located.
5395 // It should include the drive letter, when appropriate.
5396 func FileDirectory(val string) attribute.KeyValue {
5397 return FileDirectoryKey.String(val)
5398 }
5399
5400 // FileExtension returns an attribute KeyValue conforming to the "file.extension"
5401 // semantic conventions. It represents the file extension, excluding the leading
5402 // dot.
5403 func FileExtension(val string) attribute.KeyValue {
5404 return FileExtensionKey.String(val)
5405 }
5406
5407 // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
5408 // semantic conventions. It represents the name of the fork. A fork is additional
5409 // data associated with a filesystem object.
5410 func FileForkName(val string) attribute.KeyValue {
5411 return FileForkNameKey.String(val)
5412 }
5413
5414 // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
5415 // semantic conventions. It represents the primary Group ID (GID) of the file.
5416 func FileGroupID(val string) attribute.KeyValue {
5417 return FileGroupIDKey.String(val)
5418 }
5419
5420 // FileGroupName returns an attribute KeyValue conforming to the
5421 // "file.group.name" semantic conventions. It represents the primary group name
5422 // of the file.
5423 func FileGroupName(val string) attribute.KeyValue {
5424 return FileGroupNameKey.String(val)
5425 }
5426
5427 // FileInode returns an attribute KeyValue conforming to the "file.inode"
5428 // semantic conventions. It represents the inode representing the file in the
5429 // filesystem.
5430 func FileInode(val string) attribute.KeyValue {
5431 return FileInodeKey.String(val)
5432 }
5433
5434 // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
5435 // conventions. It represents the mode of the file in octal representation.
5436 func FileMode(val string) attribute.KeyValue {
5437 return FileModeKey.String(val)
5438 }
5439
5440 // FileModified returns an attribute KeyValue conforming to the "file.modified"
5441 // semantic conventions. It represents the time when the file content was last
5442 // modified, in ISO 8601 format.
5443 func FileModified(val string) attribute.KeyValue {
5444 return FileModifiedKey.String(val)
5445 }
5446
5447 // FileName returns an attribute KeyValue conforming to the "file.name" semantic
5448 // conventions. It represents the name of the file including the extension,
5449 // without the directory.
5450 func FileName(val string) attribute.KeyValue {
5451 return FileNameKey.String(val)
5452 }
5453
5454 // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
5455 // semantic conventions. It represents the user ID (UID) or security identifier
5456 // (SID) of the file owner.
5457 func FileOwnerID(val string) attribute.KeyValue {
5458 return FileOwnerIDKey.String(val)
5459 }
5460
5461 // FileOwnerName returns an attribute KeyValue conforming to the
5462 // "file.owner.name" semantic conventions. It represents the username of the file
5463 // owner.
5464 func FileOwnerName(val string) attribute.KeyValue {
5465 return FileOwnerNameKey.String(val)
5466 }
5467
5468 // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
5469 // conventions. It represents the full path to the file, including the file name.
5470 // It should include the drive letter, when appropriate.
5471 func FilePath(val string) attribute.KeyValue {
5472 return FilePathKey.String(val)
5473 }
5474
5475 // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
5476 // conventions. It represents the file size in bytes.
5477 func FileSize(val int) attribute.KeyValue {
5478 return FileSizeKey.Int(val)
5479 }
5480
5481 // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
5482 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5483 // to the target of a symbolic link.
5484 func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
5485 return FileSymbolicLinkTargetPathKey.String(val)
5486 }
5487
5488 // Namespace: gcp
5489 const (
5490 // GCPAppHubApplicationContainerKey is the attribute Key conforming to the
5491 // "gcp.apphub.application.container" semantic conventions. It represents the
5492 // container within GCP where the AppHub application is defined.
5493 //
5494 // Type: string
5495 // RequirementLevel: Recommended
5496 // Stability: Development
5497 //
5498 // Examples: "projects/my-container-project"
5499 GCPAppHubApplicationContainerKey = attribute.Key("gcp.apphub.application.container")
5500
5501 // GCPAppHubApplicationIDKey is the attribute Key conforming to the
5502 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5503 // the application as configured in AppHub.
5504 //
5505 // Type: string
5506 // RequirementLevel: Recommended
5507 // Stability: Development
5508 //
5509 // Examples: "my-application"
5510 GCPAppHubApplicationIDKey = attribute.Key("gcp.apphub.application.id")
5511
5512 // GCPAppHubApplicationLocationKey is the attribute Key conforming to the
5513 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5514 // zone or region where the application is defined.
5515 //
5516 // Type: string
5517 // RequirementLevel: Recommended
5518 // Stability: Development
5519 //
5520 // Examples: "us-central1"
5521 GCPAppHubApplicationLocationKey = attribute.Key("gcp.apphub.application.location")
5522
5523 // GCPAppHubServiceCriticalityTypeKey is the attribute Key conforming to the
5524 // "gcp.apphub.service.criticality_type" semantic conventions. It represents the
5525 // criticality of a service indicates its importance to the business.
5526 //
5527 // Type: Enum
5528 // RequirementLevel: Recommended
5529 // Stability: Development
5530 //
5531 // Examples:
5532 // Note: [See AppHub type enum]
5533 //
5534 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5535 GCPAppHubServiceCriticalityTypeKey = attribute.Key("gcp.apphub.service.criticality_type")
5536
5537 // GCPAppHubServiceEnvironmentTypeKey is the attribute Key conforming to the
5538 // "gcp.apphub.service.environment_type" semantic conventions. It represents the
5539 // environment of a service is the stage of a software lifecycle.
5540 //
5541 // Type: Enum
5542 // RequirementLevel: Recommended
5543 // Stability: Development
5544 //
5545 // Examples:
5546 // Note: [See AppHub environment type]
5547 //
5548 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5549 GCPAppHubServiceEnvironmentTypeKey = attribute.Key("gcp.apphub.service.environment_type")
5550
5551 // GCPAppHubServiceIDKey is the attribute Key conforming to the
5552 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5553 // service as configured in AppHub.
5554 //
5555 // Type: string
5556 // RequirementLevel: Recommended
5557 // Stability: Development
5558 //
5559 // Examples: "my-service"
5560 GCPAppHubServiceIDKey = attribute.Key("gcp.apphub.service.id")
5561
5562 // GCPAppHubWorkloadCriticalityTypeKey is the attribute Key conforming to the
5563 // "gcp.apphub.workload.criticality_type" semantic conventions. It represents
5564 // the criticality of a workload indicates its importance to the business.
5565 //
5566 // Type: Enum
5567 // RequirementLevel: Recommended
5568 // Stability: Development
5569 //
5570 // Examples:
5571 // Note: [See AppHub type enum]
5572 //
5573 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5574 GCPAppHubWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub.workload.criticality_type")
5575
5576 // GCPAppHubWorkloadEnvironmentTypeKey is the attribute Key conforming to the
5577 // "gcp.apphub.workload.environment_type" semantic conventions. It represents
5578 // the environment of a workload is the stage of a software lifecycle.
5579 //
5580 // Type: Enum
5581 // RequirementLevel: Recommended
5582 // Stability: Development
5583 //
5584 // Examples:
5585 // Note: [See AppHub environment type]
5586 //
5587 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5588 GCPAppHubWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub.workload.environment_type")
5589
5590 // GCPAppHubWorkloadIDKey is the attribute Key conforming to the
5591 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5592 // workload as configured in AppHub.
5593 //
5594 // Type: string
5595 // RequirementLevel: Recommended
5596 // Stability: Development
5597 //
5598 // Examples: "my-workload"
5599 GCPAppHubWorkloadIDKey = attribute.Key("gcp.apphub.workload.id")
5600
5601 // GCPClientServiceKey is the attribute Key conforming to the
5602 // "gcp.client.service" semantic conventions. It represents the identifies the
5603 // Google Cloud service for which the official client library is intended.
5604 //
5605 // Type: string
5606 // RequirementLevel: Recommended
5607 // Stability: Development
5608 //
5609 // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
5610 // Note: Intended to be a stable identifier for Google Cloud client libraries
5611 // that is uniform across implementation languages. The value should be derived
5612 // from the canonical service domain for the service; for example,
5613 // 'foo.googleapis.com' should result in a value of 'foo'.
5614 GCPClientServiceKey = attribute.Key("gcp.client.service")
5615
5616 // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
5617 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
5618 // the Cloud Run [execution] being run for the Job, as set by the
5619 // [`CLOUD_RUN_EXECUTION`] environment variable.
5620 //
5621 // Type: string
5622 // RequirementLevel: Recommended
5623 // Stability: Development
5624 //
5625 // Examples: "job-name-xxxx", "sample-job-mdw84"
5626 //
5627 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5628 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5629 GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
5630
5631 // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
5632 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5633 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5634 // environment variable.
5635 //
5636 // Type: int
5637 // RequirementLevel: Recommended
5638 // Stability: Development
5639 //
5640 // Examples: 0, 1
5641 //
5642 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5643 GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
5644
5645 // GCPGCEInstanceHostnameKey is the attribute Key conforming to the
5646 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5647 // of a GCE instance. This is the full value of the default or [custom hostname]
5648 // .
5649 //
5650 // Type: string
5651 // RequirementLevel: Recommended
5652 // Stability: Development
5653 //
5654 // Examples: "my-host1234.example.com",
5655 // "sample-vm.us-west1-b.c.my-project.internal"
5656 //
5657 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5658 GCPGCEInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
5659
5660 // GCPGCEInstanceNameKey is the attribute Key conforming to the
5661 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5662 // of a GCE instance. This is the value provided by `host.name`, the visible
5663 // name of the instance in the Cloud Console UI, and the prefix for the default
5664 // hostname of the instance as defined by the [default internal DNS name].
5665 //
5666 // Type: string
5667 // RequirementLevel: Recommended
5668 // Stability: Development
5669 //
5670 // Examples: "instance-1", "my-vm-name"
5671 //
5672 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5673 GCPGCEInstanceNameKey = attribute.Key("gcp.gce.instance.name")
5674 )
5675
5676 // GCPAppHubApplicationContainer returns an attribute KeyValue conforming to the
5677 // "gcp.apphub.application.container" semantic conventions. It represents the
5678 // container within GCP where the AppHub application is defined.
5679 func GCPAppHubApplicationContainer(val string) attribute.KeyValue {
5680 return GCPAppHubApplicationContainerKey.String(val)
5681 }
5682
5683 // GCPAppHubApplicationID returns an attribute KeyValue conforming to the
5684 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5685 // the application as configured in AppHub.
5686 func GCPAppHubApplicationID(val string) attribute.KeyValue {
5687 return GCPAppHubApplicationIDKey.String(val)
5688 }
5689
5690 // GCPAppHubApplicationLocation returns an attribute KeyValue conforming to the
5691 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5692 // zone or region where the application is defined.
5693 func GCPAppHubApplicationLocation(val string) attribute.KeyValue {
5694 return GCPAppHubApplicationLocationKey.String(val)
5695 }
5696
5697 // GCPAppHubServiceID returns an attribute KeyValue conforming to the
5698 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5699 // service as configured in AppHub.
5700 func GCPAppHubServiceID(val string) attribute.KeyValue {
5701 return GCPAppHubServiceIDKey.String(val)
5702 }
5703
5704 // GCPAppHubWorkloadID returns an attribute KeyValue conforming to the
5705 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5706 // workload as configured in AppHub.
5707 func GCPAppHubWorkloadID(val string) attribute.KeyValue {
5708 return GCPAppHubWorkloadIDKey.String(val)
5709 }
5710
5711 // GCPClientService returns an attribute KeyValue conforming to the
5712 // "gcp.client.service" semantic conventions. It represents the identifies the
5713 // Google Cloud service for which the official client library is intended.
5714 func GCPClientService(val string) attribute.KeyValue {
5715 return GCPClientServiceKey.String(val)
5716 }
5717
5718 // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
5719 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
5720 // the Cloud Run [execution] being run for the Job, as set by the
5721 // [`CLOUD_RUN_EXECUTION`] environment variable.
5722 //
5723 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5724 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5725 func GCPCloudRunJobExecution(val string) attribute.KeyValue {
5726 return GCPCloudRunJobExecutionKey.String(val)
5727 }
5728
5729 // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
5730 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5731 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5732 // environment variable.
5733 //
5734 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5735 func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
5736 return GCPCloudRunJobTaskIndexKey.Int(val)
5737 }
5738
5739 // GCPGCEInstanceHostname returns an attribute KeyValue conforming to the
5740 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5741 // of a GCE instance. This is the full value of the default or [custom hostname]
5742 // .
5743 //
5744 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5745 func GCPGCEInstanceHostname(val string) attribute.KeyValue {
5746 return GCPGCEInstanceHostnameKey.String(val)
5747 }
5748
5749 // GCPGCEInstanceName returns an attribute KeyValue conforming to the
5750 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5751 // of a GCE instance. This is the value provided by `host.name`, the visible name
5752 // of the instance in the Cloud Console UI, and the prefix for the default
5753 // hostname of the instance as defined by the [default internal DNS name].
5754 //
5755 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5756 func GCPGCEInstanceName(val string) attribute.KeyValue {
5757 return GCPGCEInstanceNameKey.String(val)
5758 }
5759
5760 // Enum values for gcp.apphub.service.criticality_type
5761 var (
5762 // Mission critical service.
5763 // Stability: development
5764 GCPAppHubServiceCriticalityTypeMissionCritical = GCPAppHubServiceCriticalityTypeKey.String("MISSION_CRITICAL")
5765 // High impact.
5766 // Stability: development
5767 GCPAppHubServiceCriticalityTypeHigh = GCPAppHubServiceCriticalityTypeKey.String("HIGH")
5768 // Medium impact.
5769 // Stability: development
5770 GCPAppHubServiceCriticalityTypeMedium = GCPAppHubServiceCriticalityTypeKey.String("MEDIUM")
5771 // Low impact.
5772 // Stability: development
5773 GCPAppHubServiceCriticalityTypeLow = GCPAppHubServiceCriticalityTypeKey.String("LOW")
5774 )
5775
5776 // Enum values for gcp.apphub.service.environment_type
5777 var (
5778 // Production environment.
5779 // Stability: development
5780 GCPAppHubServiceEnvironmentTypeProduction = GCPAppHubServiceEnvironmentTypeKey.String("PRODUCTION")
5781 // Staging environment.
5782 // Stability: development
5783 GCPAppHubServiceEnvironmentTypeStaging = GCPAppHubServiceEnvironmentTypeKey.String("STAGING")
5784 // Test environment.
5785 // Stability: development
5786 GCPAppHubServiceEnvironmentTypeTest = GCPAppHubServiceEnvironmentTypeKey.String("TEST")
5787 // Development environment.
5788 // Stability: development
5789 GCPAppHubServiceEnvironmentTypeDevelopment = GCPAppHubServiceEnvironmentTypeKey.String("DEVELOPMENT")
5790 )
5791
5792 // Enum values for gcp.apphub.workload.criticality_type
5793 var (
5794 // Mission critical service.
5795 // Stability: development
5796 GCPAppHubWorkloadCriticalityTypeMissionCritical = GCPAppHubWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
5797 // High impact.
5798 // Stability: development
5799 GCPAppHubWorkloadCriticalityTypeHigh = GCPAppHubWorkloadCriticalityTypeKey.String("HIGH")
5800 // Medium impact.
5801 // Stability: development
5802 GCPAppHubWorkloadCriticalityTypeMedium = GCPAppHubWorkloadCriticalityTypeKey.String("MEDIUM")
5803 // Low impact.
5804 // Stability: development
5805 GCPAppHubWorkloadCriticalityTypeLow = GCPAppHubWorkloadCriticalityTypeKey.String("LOW")
5806 )
5807
5808 // Enum values for gcp.apphub.workload.environment_type
5809 var (
5810 // Production environment.
5811 // Stability: development
5812 GCPAppHubWorkloadEnvironmentTypeProduction = GCPAppHubWorkloadEnvironmentTypeKey.String("PRODUCTION")
5813 // Staging environment.
5814 // Stability: development
5815 GCPAppHubWorkloadEnvironmentTypeStaging = GCPAppHubWorkloadEnvironmentTypeKey.String("STAGING")
5816 // Test environment.
5817 // Stability: development
5818 GCPAppHubWorkloadEnvironmentTypeTest = GCPAppHubWorkloadEnvironmentTypeKey.String("TEST")
5819 // Development environment.
5820 // Stability: development
5821 GCPAppHubWorkloadEnvironmentTypeDevelopment = GCPAppHubWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
5822 )
5823
5824 // Namespace: gen_ai
5825 const (
5826 // GenAIAgentDescriptionKey is the attribute Key conforming to the
5827 // "gen_ai.agent.description" semantic conventions. It represents the free-form
5828 // description of the GenAI agent provided by the application.
5829 //
5830 // Type: string
5831 // RequirementLevel: Recommended
5832 // Stability: Development
5833 //
5834 // Examples: "Helps with math problems", "Generates fiction stories"
5835 GenAIAgentDescriptionKey = attribute.Key("gen_ai.agent.description")
5836
5837 // GenAIAgentIDKey is the attribute Key conforming to the "gen_ai.agent.id"
5838 // semantic conventions. It represents the unique identifier of the GenAI agent.
5839 //
5840 // Type: string
5841 // RequirementLevel: Recommended
5842 // Stability: Development
5843 //
5844 // Examples: "asst_5j66UpCpwteGg4YSxUnt7lPY"
5845 GenAIAgentIDKey = attribute.Key("gen_ai.agent.id")
5846
5847 // GenAIAgentNameKey is the attribute Key conforming to the "gen_ai.agent.name"
5848 // semantic conventions. It represents the human-readable name of the GenAI
5849 // agent provided by the application.
5850 //
5851 // Type: string
5852 // RequirementLevel: Recommended
5853 // Stability: Development
5854 //
5855 // Examples: "Math Tutor", "Fiction Writer"
5856 GenAIAgentNameKey = attribute.Key("gen_ai.agent.name")
5857
5858 // GenAIConversationIDKey is the attribute Key conforming to the
5859 // "gen_ai.conversation.id" semantic conventions. It represents the unique
5860 // identifier for a conversation (session, thread), used to store and correlate
5861 // messages within this conversation.
5862 //
5863 // Type: string
5864 // RequirementLevel: Recommended
5865 // Stability: Development
5866 //
5867 // Examples: "conv_5j66UpCpwteGg4YSxUnt7lPY"
5868 GenAIConversationIDKey = attribute.Key("gen_ai.conversation.id")
5869
5870 // GenAIDataSourceIDKey is the attribute Key conforming to the
5871 // "gen_ai.data_source.id" semantic conventions. It represents the data source
5872 // identifier.
5873 //
5874 // Type: string
5875 // RequirementLevel: Recommended
5876 // Stability: Development
5877 //
5878 // Examples: "H7STPQYOND"
5879 // Note: Data sources are used by AI agents and RAG applications to store
5880 // grounding data. A data source may be an external database, object store,
5881 // document collection, website, or any other storage system used by the GenAI
5882 // agent or application. The `gen_ai.data_source.id` SHOULD match the identifier
5883 // used by the GenAI system rather than a name specific to the external storage,
5884 // such as a database or object store. Semantic conventions referencing
5885 // `gen_ai.data_source.id` MAY also leverage additional attributes, such as
5886 // `db.*`, to further identify and describe the data source.
5887 GenAIDataSourceIDKey = attribute.Key("gen_ai.data_source.id")
5888
5889 // GenAIOpenAIRequestServiceTierKey is the attribute Key conforming to the
5890 // "gen_ai.openai.request.service_tier" semantic conventions. It represents the
5891 // service tier requested. May be a specific tier, default, or auto.
5892 //
5893 // Type: Enum
5894 // RequirementLevel: Recommended
5895 // Stability: Development
5896 //
5897 // Examples: "auto", "default"
5898 GenAIOpenAIRequestServiceTierKey = attribute.Key("gen_ai.openai.request.service_tier")
5899
5900 // GenAIOpenAIResponseServiceTierKey is the attribute Key conforming to the
5901 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
5902 // service tier used for the response.
5903 //
5904 // Type: string
5905 // RequirementLevel: Recommended
5906 // Stability: Development
5907 //
5908 // Examples: "scale", "default"
5909 GenAIOpenAIResponseServiceTierKey = attribute.Key("gen_ai.openai.response.service_tier")
5910
5911 // GenAIOpenAIResponseSystemFingerprintKey is the attribute Key conforming to
5912 // the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
5913 // represents a fingerprint to track any eventual change in the Generative AI
5914 // environment.
5915 //
5916 // Type: string
5917 // RequirementLevel: Recommended
5918 // Stability: Development
5919 //
5920 // Examples: "fp_44709d6fcb"
5921 GenAIOpenAIResponseSystemFingerprintKey = attribute.Key("gen_ai.openai.response.system_fingerprint")
5922
5923 // GenAIOperationNameKey is the attribute Key conforming to the
5924 // "gen_ai.operation.name" semantic conventions. It represents the name of the
5925 // operation being performed.
5926 //
5927 // Type: Enum
5928 // RequirementLevel: Recommended
5929 // Stability: Development
5930 //
5931 // Examples:
5932 // Note: If one of the predefined values applies, but specific system uses a
5933 // different name it's RECOMMENDED to document it in the semantic conventions
5934 // for specific GenAI system and use system-specific name in the
5935 // instrumentation. If a different name is not documented, instrumentation
5936 // libraries SHOULD use applicable predefined value.
5937 GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
5938
5939 // GenAIOutputTypeKey is the attribute Key conforming to the
5940 // "gen_ai.output.type" semantic conventions. It represents the represents the
5941 // content type requested by the client.
5942 //
5943 // Type: Enum
5944 // RequirementLevel: Recommended
5945 // Stability: Development
5946 //
5947 // Examples:
5948 // Note: This attribute SHOULD be used when the client requests output of a
5949 // specific type. The model may return zero or more outputs of this type.
5950 // This attribute specifies the output modality and not the actual output
5951 // format. For example, if an image is requested, the actual output could be a
5952 // URL pointing to an image file.
5953 // Additional output format details may be recorded in the future in the
5954 // `gen_ai.output.{type}.*` attributes.
5955 GenAIOutputTypeKey = attribute.Key("gen_ai.output.type")
5956
5957 // GenAIRequestChoiceCountKey is the attribute Key conforming to the
5958 // "gen_ai.request.choice.count" semantic conventions. It represents the target
5959 // number of candidate completions to return.
5960 //
5961 // Type: int
5962 // RequirementLevel: Recommended
5963 // Stability: Development
5964 //
5965 // Examples: 3
5966 GenAIRequestChoiceCountKey = attribute.Key("gen_ai.request.choice.count")
5967
5968 // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the
5969 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
5970 // encoding formats requested in an embeddings operation, if specified.
5971 //
5972 // Type: string[]
5973 // RequirementLevel: Recommended
5974 // Stability: Development
5975 //
5976 // Examples: "base64"], ["float", "binary"
5977 // Note: In some GenAI systems the encoding formats are called embedding types.
5978 // Also, some GenAI systems only accept a single format per request.
5979 GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats")
5980
5981 // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
5982 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
5983 // frequency penalty setting for the GenAI request.
5984 //
5985 // Type: double
5986 // RequirementLevel: Recommended
5987 // Stability: Development
5988 //
5989 // Examples: 0.1
5990 GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
5991
5992 // GenAIRequestMaxTokensKey is the attribute Key conforming to the
5993 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
5994 // number of tokens the model generates for a request.
5995 //
5996 // Type: int
5997 // RequirementLevel: Recommended
5998 // Stability: Development
5999 //
6000 // Examples: 100
6001 GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
6002
6003 // GenAIRequestModelKey is the attribute Key conforming to the
6004 // "gen_ai.request.model" semantic conventions. It represents the name of the
6005 // GenAI model a request is being made to.
6006 //
6007 // Type: string
6008 // RequirementLevel: Recommended
6009 // Stability: Development
6010 //
6011 // Examples: gpt-4
6012 GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
6013
6014 // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
6015 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
6016 // presence penalty setting for the GenAI request.
6017 //
6018 // Type: double
6019 // RequirementLevel: Recommended
6020 // Stability: Development
6021 //
6022 // Examples: 0.1
6023 GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
6024
6025 // GenAIRequestSeedKey is the attribute Key conforming to the
6026 // "gen_ai.request.seed" semantic conventions. It represents the requests with
6027 // same seed value more likely to return same result.
6028 //
6029 // Type: int
6030 // RequirementLevel: Recommended
6031 // Stability: Development
6032 //
6033 // Examples: 100
6034 GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed")
6035
6036 // GenAIRequestStopSequencesKey is the attribute Key conforming to the
6037 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
6038 // of sequences that the model will use to stop generating further tokens.
6039 //
6040 // Type: string[]
6041 // RequirementLevel: Recommended
6042 // Stability: Development
6043 //
6044 // Examples: "forest", "lived"
6045 GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
6046
6047 // GenAIRequestTemperatureKey is the attribute Key conforming to the
6048 // "gen_ai.request.temperature" semantic conventions. It represents the
6049 // temperature setting for the GenAI request.
6050 //
6051 // Type: double
6052 // RequirementLevel: Recommended
6053 // Stability: Development
6054 //
6055 // Examples: 0.0
6056 GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
6057
6058 // GenAIRequestTopKKey is the attribute Key conforming to the
6059 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
6060 // setting for the GenAI request.
6061 //
6062 // Type: double
6063 // RequirementLevel: Recommended
6064 // Stability: Development
6065 //
6066 // Examples: 1.0
6067 GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
6068
6069 // GenAIRequestTopPKey is the attribute Key conforming to the
6070 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
6071 // setting for the GenAI request.
6072 //
6073 // Type: double
6074 // RequirementLevel: Recommended
6075 // Stability: Development
6076 //
6077 // Examples: 1.0
6078 GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
6079
6080 // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
6081 // "gen_ai.response.finish_reasons" semantic conventions. It represents the
6082 // array of reasons the model stopped generating tokens, corresponding to each
6083 // generation received.
6084 //
6085 // Type: string[]
6086 // RequirementLevel: Recommended
6087 // Stability: Development
6088 //
6089 // Examples: "stop"], ["stop", "length"
6090 GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
6091
6092 // GenAIResponseIDKey is the attribute Key conforming to the
6093 // "gen_ai.response.id" semantic conventions. It represents the unique
6094 // identifier for the completion.
6095 //
6096 // Type: string
6097 // RequirementLevel: Recommended
6098 // Stability: Development
6099 //
6100 // Examples: "chatcmpl-123"
6101 GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
6102
6103 // GenAIResponseModelKey is the attribute Key conforming to the
6104 // "gen_ai.response.model" semantic conventions. It represents the name of the
6105 // model that generated the response.
6106 //
6107 // Type: string
6108 // RequirementLevel: Recommended
6109 // Stability: Development
6110 //
6111 // Examples: "gpt-4-0613"
6112 GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
6113
6114 // GenAISystemKey is the attribute Key conforming to the "gen_ai.system"
6115 // semantic conventions. It represents the Generative AI product as identified
6116 // by the client or server instrumentation.
6117 //
6118 // Type: Enum
6119 // RequirementLevel: Recommended
6120 // Stability: Development
6121 //
6122 // Examples: openai
6123 // Note: The `gen_ai.system` describes a family of GenAI models with specific
6124 // model identified
6125 // by `gen_ai.request.model` and `gen_ai.response.model` attributes.
6126 //
6127 // The actual GenAI product may differ from the one identified by the client.
6128 // Multiple systems, including Azure OpenAI and Gemini, are accessible by OpenAI
6129 // client
6130 // libraries. In such cases, the `gen_ai.system` is set to `openai` based on the
6131 // instrumentation's best knowledge, instead of the actual system. The
6132 // `server.address`
6133 // attribute may help identify the actual system in use for `openai`.
6134 //
6135 // For custom model, a custom friendly name SHOULD be used.
6136 // If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER`
6137 // .
6138 GenAISystemKey = attribute.Key("gen_ai.system")
6139
6140 // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
6141 // semantic conventions. It represents the type of token being counted.
6142 //
6143 // Type: Enum
6144 // RequirementLevel: Recommended
6145 // Stability: Development
6146 //
6147 // Examples: "input", "output"
6148 GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
6149
6150 // GenAIToolCallIDKey is the attribute Key conforming to the
6151 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
6152 // identifier.
6153 //
6154 // Type: string
6155 // RequirementLevel: Recommended
6156 // Stability: Development
6157 //
6158 // Examples: "call_mszuSIzqtI65i1wAUOE8w5H4"
6159 GenAIToolCallIDKey = attribute.Key("gen_ai.tool.call.id")
6160
6161 // GenAIToolDescriptionKey is the attribute Key conforming to the
6162 // "gen_ai.tool.description" semantic conventions. It represents the tool
6163 // description.
6164 //
6165 // Type: string
6166 // RequirementLevel: Recommended
6167 // Stability: Development
6168 //
6169 // Examples: "Multiply two numbers"
6170 GenAIToolDescriptionKey = attribute.Key("gen_ai.tool.description")
6171
6172 // GenAIToolNameKey is the attribute Key conforming to the "gen_ai.tool.name"
6173 // semantic conventions. It represents the name of the tool utilized by the
6174 // agent.
6175 //
6176 // Type: string
6177 // RequirementLevel: Recommended
6178 // Stability: Development
6179 //
6180 // Examples: "Flights"
6181 GenAIToolNameKey = attribute.Key("gen_ai.tool.name")
6182
6183 // GenAIToolTypeKey is the attribute Key conforming to the "gen_ai.tool.type"
6184 // semantic conventions. It represents the type of the tool utilized by the
6185 // agent.
6186 //
6187 // Type: string
6188 // RequirementLevel: Recommended
6189 // Stability: Development
6190 //
6191 // Examples: "function", "extension", "datastore"
6192 // Note: Extension: A tool executed on the agent-side to directly call external
6193 // APIs, bridging the gap between the agent and real-world systems.
6194 // Agent-side operations involve actions that are performed by the agent on the
6195 // server or within the agent's controlled environment.
6196 // Function: A tool executed on the client-side, where the agent generates
6197 // parameters for a predefined function, and the client executes the logic.
6198 // Client-side operations are actions taken on the user's end or within the
6199 // client application.
6200 // Datastore: A tool used by the agent to access and query structured or
6201 // unstructured external data for retrieval-augmented tasks or knowledge
6202 // updates.
6203 GenAIToolTypeKey = attribute.Key("gen_ai.tool.type")
6204
6205 // GenAIUsageInputTokensKey is the attribute Key conforming to the
6206 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
6207 // tokens used in the GenAI input (prompt).
6208 //
6209 // Type: int
6210 // RequirementLevel: Recommended
6211 // Stability: Development
6212 //
6213 // Examples: 100
6214 GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
6215
6216 // GenAIUsageOutputTokensKey is the attribute Key conforming to the
6217 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
6218 // of tokens used in the GenAI response (completion).
6219 //
6220 // Type: int
6221 // RequirementLevel: Recommended
6222 // Stability: Development
6223 //
6224 // Examples: 180
6225 GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
6226 )
6227
6228 // GenAIAgentDescription returns an attribute KeyValue conforming to the
6229 // "gen_ai.agent.description" semantic conventions. It represents the free-form
6230 // description of the GenAI agent provided by the application.
6231 func GenAIAgentDescription(val string) attribute.KeyValue {
6232 return GenAIAgentDescriptionKey.String(val)
6233 }
6234
6235 // GenAIAgentID returns an attribute KeyValue conforming to the "gen_ai.agent.id"
6236 // semantic conventions. It represents the unique identifier of the GenAI agent.
6237 func GenAIAgentID(val string) attribute.KeyValue {
6238 return GenAIAgentIDKey.String(val)
6239 }
6240
6241 // GenAIAgentName returns an attribute KeyValue conforming to the
6242 // "gen_ai.agent.name" semantic conventions. It represents the human-readable
6243 // name of the GenAI agent provided by the application.
6244 func GenAIAgentName(val string) attribute.KeyValue {
6245 return GenAIAgentNameKey.String(val)
6246 }
6247
6248 // GenAIConversationID returns an attribute KeyValue conforming to the
6249 // "gen_ai.conversation.id" semantic conventions. It represents the unique
6250 // identifier for a conversation (session, thread), used to store and correlate
6251 // messages within this conversation.
6252 func GenAIConversationID(val string) attribute.KeyValue {
6253 return GenAIConversationIDKey.String(val)
6254 }
6255
6256 // GenAIDataSourceID returns an attribute KeyValue conforming to the
6257 // "gen_ai.data_source.id" semantic conventions. It represents the data source
6258 // identifier.
6259 func GenAIDataSourceID(val string) attribute.KeyValue {
6260 return GenAIDataSourceIDKey.String(val)
6261 }
6262
6263 // GenAIOpenAIResponseServiceTier returns an attribute KeyValue conforming to the
6264 // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
6265 // service tier used for the response.
6266 func GenAIOpenAIResponseServiceTier(val string) attribute.KeyValue {
6267 return GenAIOpenAIResponseServiceTierKey.String(val)
6268 }
6269
6270 // GenAIOpenAIResponseSystemFingerprint returns an attribute KeyValue conforming
6271 // to the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
6272 // represents a fingerprint to track any eventual change in the Generative AI
6273 // environment.
6274 func GenAIOpenAIResponseSystemFingerprint(val string) attribute.KeyValue {
6275 return GenAIOpenAIResponseSystemFingerprintKey.String(val)
6276 }
6277
6278 // GenAIRequestChoiceCount returns an attribute KeyValue conforming to the
6279 // "gen_ai.request.choice.count" semantic conventions. It represents the target
6280 // number of candidate completions to return.
6281 func GenAIRequestChoiceCount(val int) attribute.KeyValue {
6282 return GenAIRequestChoiceCountKey.Int(val)
6283 }
6284
6285 // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the
6286 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
6287 // encoding formats requested in an embeddings operation, if specified.
6288 func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue {
6289 return GenAIRequestEncodingFormatsKey.StringSlice(val)
6290 }
6291
6292 // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
6293 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
6294 // frequency penalty setting for the GenAI request.
6295 func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
6296 return GenAIRequestFrequencyPenaltyKey.Float64(val)
6297 }
6298
6299 // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
6300 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
6301 // number of tokens the model generates for a request.
6302 func GenAIRequestMaxTokens(val int) attribute.KeyValue {
6303 return GenAIRequestMaxTokensKey.Int(val)
6304 }
6305
6306 // GenAIRequestModel returns an attribute KeyValue conforming to the
6307 // "gen_ai.request.model" semantic conventions. It represents the name of the
6308 // GenAI model a request is being made to.
6309 func GenAIRequestModel(val string) attribute.KeyValue {
6310 return GenAIRequestModelKey.String(val)
6311 }
6312
6313 // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
6314 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
6315 // presence penalty setting for the GenAI request.
6316 func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
6317 return GenAIRequestPresencePenaltyKey.Float64(val)
6318 }
6319
6320 // GenAIRequestSeed returns an attribute KeyValue conforming to the
6321 // "gen_ai.request.seed" semantic conventions. It represents the requests with
6322 // same seed value more likely to return same result.
6323 func GenAIRequestSeed(val int) attribute.KeyValue {
6324 return GenAIRequestSeedKey.Int(val)
6325 }
6326
6327 // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
6328 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
6329 // of sequences that the model will use to stop generating further tokens.
6330 func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
6331 return GenAIRequestStopSequencesKey.StringSlice(val)
6332 }
6333
6334 // GenAIRequestTemperature returns an attribute KeyValue conforming to the
6335 // "gen_ai.request.temperature" semantic conventions. It represents the
6336 // temperature setting for the GenAI request.
6337 func GenAIRequestTemperature(val float64) attribute.KeyValue {
6338 return GenAIRequestTemperatureKey.Float64(val)
6339 }
6340
6341 // GenAIRequestTopK returns an attribute KeyValue conforming to the
6342 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
6343 // setting for the GenAI request.
6344 func GenAIRequestTopK(val float64) attribute.KeyValue {
6345 return GenAIRequestTopKKey.Float64(val)
6346 }
6347
6348 // GenAIRequestTopP returns an attribute KeyValue conforming to the
6349 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
6350 // setting for the GenAI request.
6351 func GenAIRequestTopP(val float64) attribute.KeyValue {
6352 return GenAIRequestTopPKey.Float64(val)
6353 }
6354
6355 // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
6356 // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
6357 // of reasons the model stopped generating tokens, corresponding to each
6358 // generation received.
6359 func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
6360 return GenAIResponseFinishReasonsKey.StringSlice(val)
6361 }
6362
6363 // GenAIResponseID returns an attribute KeyValue conforming to the
6364 // "gen_ai.response.id" semantic conventions. It represents the unique identifier
6365 // for the completion.
6366 func GenAIResponseID(val string) attribute.KeyValue {
6367 return GenAIResponseIDKey.String(val)
6368 }
6369
6370 // GenAIResponseModel returns an attribute KeyValue conforming to the
6371 // "gen_ai.response.model" semantic conventions. It represents the name of the
6372 // model that generated the response.
6373 func GenAIResponseModel(val string) attribute.KeyValue {
6374 return GenAIResponseModelKey.String(val)
6375 }
6376
6377 // GenAIToolCallID returns an attribute KeyValue conforming to the
6378 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
6379 // identifier.
6380 func GenAIToolCallID(val string) attribute.KeyValue {
6381 return GenAIToolCallIDKey.String(val)
6382 }
6383
6384 // GenAIToolDescription returns an attribute KeyValue conforming to the
6385 // "gen_ai.tool.description" semantic conventions. It represents the tool
6386 // description.
6387 func GenAIToolDescription(val string) attribute.KeyValue {
6388 return GenAIToolDescriptionKey.String(val)
6389 }
6390
6391 // GenAIToolName returns an attribute KeyValue conforming to the
6392 // "gen_ai.tool.name" semantic conventions. It represents the name of the tool
6393 // utilized by the agent.
6394 func GenAIToolName(val string) attribute.KeyValue {
6395 return GenAIToolNameKey.String(val)
6396 }
6397
6398 // GenAIToolType returns an attribute KeyValue conforming to the
6399 // "gen_ai.tool.type" semantic conventions. It represents the type of the tool
6400 // utilized by the agent.
6401 func GenAIToolType(val string) attribute.KeyValue {
6402 return GenAIToolTypeKey.String(val)
6403 }
6404
6405 // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
6406 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
6407 // tokens used in the GenAI input (prompt).
6408 func GenAIUsageInputTokens(val int) attribute.KeyValue {
6409 return GenAIUsageInputTokensKey.Int(val)
6410 }
6411
6412 // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
6413 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
6414 // tokens used in the GenAI response (completion).
6415 func GenAIUsageOutputTokens(val int) attribute.KeyValue {
6416 return GenAIUsageOutputTokensKey.Int(val)
6417 }
6418
6419 // Enum values for gen_ai.openai.request.service_tier
6420 var (
6421 // The system will utilize scale tier credits until they are exhausted.
6422 // Stability: development
6423 GenAIOpenAIRequestServiceTierAuto = GenAIOpenAIRequestServiceTierKey.String("auto")
6424 // The system will utilize the default scale tier.
6425 // Stability: development
6426 GenAIOpenAIRequestServiceTierDefault = GenAIOpenAIRequestServiceTierKey.String("default")
6427 )
6428
6429 // Enum values for gen_ai.operation.name
6430 var (
6431 // Chat completion operation such as [OpenAI Chat API]
6432 // Stability: development
6433 //
6434 // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
6435 GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
6436 // Multimodal content generation operation such as [Gemini Generate Content]
6437 // Stability: development
6438 //
6439 // [Gemini Generate Content]: https://ai.google.dev/api/generate-content
6440 GenAIOperationNameGenerateContent = GenAIOperationNameKey.String("generate_content")
6441 // Text completions operation such as [OpenAI Completions API (Legacy)]
6442 // Stability: development
6443 //
6444 // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
6445 GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
6446 // Embeddings operation such as [OpenAI Create embeddings API]
6447 // Stability: development
6448 //
6449 // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create
6450 GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings")
6451 // Create GenAI agent
6452 // Stability: development
6453 GenAIOperationNameCreateAgent = GenAIOperationNameKey.String("create_agent")
6454 // Invoke GenAI agent
6455 // Stability: development
6456 GenAIOperationNameInvokeAgent = GenAIOperationNameKey.String("invoke_agent")
6457 // Execute a tool
6458 // Stability: development
6459 GenAIOperationNameExecuteTool = GenAIOperationNameKey.String("execute_tool")
6460 )
6461
6462 // Enum values for gen_ai.output.type
6463 var (
6464 // Plain text
6465 // Stability: development
6466 GenAIOutputTypeText = GenAIOutputTypeKey.String("text")
6467 // JSON object with known or unknown schema
6468 // Stability: development
6469 GenAIOutputTypeJSON = GenAIOutputTypeKey.String("json")
6470 // Image
6471 // Stability: development
6472 GenAIOutputTypeImage = GenAIOutputTypeKey.String("image")
6473 // Speech
6474 // Stability: development
6475 GenAIOutputTypeSpeech = GenAIOutputTypeKey.String("speech")
6476 )
6477
6478 // Enum values for gen_ai.system
6479 var (
6480 // OpenAI
6481 // Stability: development
6482 GenAISystemOpenAI = GenAISystemKey.String("openai")
6483 // Any Google generative AI endpoint
6484 // Stability: development
6485 GenAISystemGCPGenAI = GenAISystemKey.String("gcp.gen_ai")
6486 // Vertex AI
6487 // Stability: development
6488 GenAISystemGCPVertexAI = GenAISystemKey.String("gcp.vertex_ai")
6489 // Gemini
6490 // Stability: development
6491 GenAISystemGCPGemini = GenAISystemKey.String("gcp.gemini")
6492 // Deprecated: Use 'gcp.vertex_ai' instead.
6493 GenAISystemVertexAI = GenAISystemKey.String("vertex_ai")
6494 // Deprecated: Use 'gcp.gemini' instead.
6495 GenAISystemGemini = GenAISystemKey.String("gemini")
6496 // Anthropic
6497 // Stability: development
6498 GenAISystemAnthropic = GenAISystemKey.String("anthropic")
6499 // Cohere
6500 // Stability: development
6501 GenAISystemCohere = GenAISystemKey.String("cohere")
6502 // Azure AI Inference
6503 // Stability: development
6504 GenAISystemAzAIInference = GenAISystemKey.String("az.ai.inference")
6505 // Azure OpenAI
6506 // Stability: development
6507 GenAISystemAzAIOpenAI = GenAISystemKey.String("az.ai.openai")
6508 // IBM Watsonx AI
6509 // Stability: development
6510 GenAISystemIBMWatsonxAI = GenAISystemKey.String("ibm.watsonx.ai")
6511 // AWS Bedrock
6512 // Stability: development
6513 GenAISystemAWSBedrock = GenAISystemKey.String("aws.bedrock")
6514 // Perplexity
6515 // Stability: development
6516 GenAISystemPerplexity = GenAISystemKey.String("perplexity")
6517 // xAI
6518 // Stability: development
6519 GenAISystemXai = GenAISystemKey.String("xai")
6520 // DeepSeek
6521 // Stability: development
6522 GenAISystemDeepseek = GenAISystemKey.String("deepseek")
6523 // Groq
6524 // Stability: development
6525 GenAISystemGroq = GenAISystemKey.String("groq")
6526 // Mistral AI
6527 // Stability: development
6528 GenAISystemMistralAI = GenAISystemKey.String("mistral_ai")
6529 )
6530
6531 // Enum values for gen_ai.token.type
6532 var (
6533 // Input tokens (prompt, input, etc.)
6534 // Stability: development
6535 GenAITokenTypeInput = GenAITokenTypeKey.String("input")
6536 // Deprecated: Replaced by `output`.
6537 GenAITokenTypeCompletion = GenAITokenTypeKey.String("output")
6538 // Output tokens (completion, response, etc.)
6539 // Stability: development
6540 GenAITokenTypeOutput = GenAITokenTypeKey.String("output")
6541 )
6542
6543 // Namespace: geo
6544 const (
6545 // GeoContinentCodeKey is the attribute Key conforming to the
6546 // "geo.continent.code" semantic conventions. It represents the two-letter code
6547 // representing continent’s name.
6548 //
6549 // Type: Enum
6550 // RequirementLevel: Recommended
6551 // Stability: Development
6552 //
6553 // Examples:
6554 GeoContinentCodeKey = attribute.Key("geo.continent.code")
6555
6556 // GeoCountryISOCodeKey is the attribute Key conforming to the
6557 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
6558 // Country Code ([ISO 3166-1 alpha2]).
6559 //
6560 // Type: string
6561 // RequirementLevel: Recommended
6562 // Stability: Development
6563 //
6564 // Examples: "CA"
6565 //
6566 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
6567 GeoCountryISOCodeKey = attribute.Key("geo.country.iso_code")
6568
6569 // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name"
6570 // semantic conventions. It represents the locality name. Represents the name of
6571 // a city, town, village, or similar populated place.
6572 //
6573 // Type: string
6574 // RequirementLevel: Recommended
6575 // Stability: Development
6576 //
6577 // Examples: "Montreal", "Berlin"
6578 GeoLocalityNameKey = attribute.Key("geo.locality.name")
6579
6580 // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat"
6581 // semantic conventions. It represents the latitude of the geo location in
6582 // [WGS84].
6583 //
6584 // Type: double
6585 // RequirementLevel: Recommended
6586 // Stability: Development
6587 //
6588 // Examples: 45.505918
6589 //
6590 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6591 GeoLocationLatKey = attribute.Key("geo.location.lat")
6592
6593 // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon"
6594 // semantic conventions. It represents the longitude of the geo location in
6595 // [WGS84].
6596 //
6597 // Type: double
6598 // RequirementLevel: Recommended
6599 // Stability: Development
6600 //
6601 // Examples: -73.61483
6602 //
6603 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6604 GeoLocationLonKey = attribute.Key("geo.location.lon")
6605
6606 // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code"
6607 // semantic conventions. It represents the postal code associated with the
6608 // location. Values appropriate for this field may also be known as a postcode
6609 // or ZIP code and will vary widely from country to country.
6610 //
6611 // Type: string
6612 // RequirementLevel: Recommended
6613 // Stability: Development
6614 //
6615 // Examples: "94040"
6616 GeoPostalCodeKey = attribute.Key("geo.postal_code")
6617
6618 // GeoRegionISOCodeKey is the attribute Key conforming to the
6619 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
6620 // ([ISO 3166-2]).
6621 //
6622 // Type: string
6623 // RequirementLevel: Recommended
6624 // Stability: Development
6625 //
6626 // Examples: "CA-QC"
6627 //
6628 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
6629 GeoRegionISOCodeKey = attribute.Key("geo.region.iso_code")
6630 )
6631
6632 // GeoCountryISOCode returns an attribute KeyValue conforming to the
6633 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
6634 // Country Code ([ISO 3166-1 alpha2]).
6635 //
6636 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
6637 func GeoCountryISOCode(val string) attribute.KeyValue {
6638 return GeoCountryISOCodeKey.String(val)
6639 }
6640
6641 // GeoLocalityName returns an attribute KeyValue conforming to the
6642 // "geo.locality.name" semantic conventions. It represents the locality name.
6643 // Represents the name of a city, town, village, or similar populated place.
6644 func GeoLocalityName(val string) attribute.KeyValue {
6645 return GeoLocalityNameKey.String(val)
6646 }
6647
6648 // GeoLocationLat returns an attribute KeyValue conforming to the
6649 // "geo.location.lat" semantic conventions. It represents the latitude of the geo
6650 // location in [WGS84].
6651 //
6652 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6653 func GeoLocationLat(val float64) attribute.KeyValue {
6654 return GeoLocationLatKey.Float64(val)
6655 }
6656
6657 // GeoLocationLon returns an attribute KeyValue conforming to the
6658 // "geo.location.lon" semantic conventions. It represents the longitude of the
6659 // geo location in [WGS84].
6660 //
6661 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6662 func GeoLocationLon(val float64) attribute.KeyValue {
6663 return GeoLocationLonKey.Float64(val)
6664 }
6665
6666 // GeoPostalCode returns an attribute KeyValue conforming to the
6667 // "geo.postal_code" semantic conventions. It represents the postal code
6668 // associated with the location. Values appropriate for this field may also be
6669 // known as a postcode or ZIP code and will vary widely from country to country.
6670 func GeoPostalCode(val string) attribute.KeyValue {
6671 return GeoPostalCodeKey.String(val)
6672 }
6673
6674 // GeoRegionISOCode returns an attribute KeyValue conforming to the
6675 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
6676 // ([ISO 3166-2]).
6677 //
6678 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
6679 func GeoRegionISOCode(val string) attribute.KeyValue {
6680 return GeoRegionISOCodeKey.String(val)
6681 }
6682
6683 // Enum values for geo.continent.code
6684 var (
6685 // Africa
6686 // Stability: development
6687 GeoContinentCodeAf = GeoContinentCodeKey.String("AF")
6688 // Antarctica
6689 // Stability: development
6690 GeoContinentCodeAn = GeoContinentCodeKey.String("AN")
6691 // Asia
6692 // Stability: development
6693 GeoContinentCodeAs = GeoContinentCodeKey.String("AS")
6694 // Europe
6695 // Stability: development
6696 GeoContinentCodeEu = GeoContinentCodeKey.String("EU")
6697 // North America
6698 // Stability: development
6699 GeoContinentCodeNa = GeoContinentCodeKey.String("NA")
6700 // Oceania
6701 // Stability: development
6702 GeoContinentCodeOc = GeoContinentCodeKey.String("OC")
6703 // South America
6704 // Stability: development
6705 GeoContinentCodeSa = GeoContinentCodeKey.String("SA")
6706 )
6707
6708 // Namespace: go
6709 const (
6710 // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
6711 // semantic conventions. It represents the type of memory.
6712 //
6713 // Type: Enum
6714 // RequirementLevel: Recommended
6715 // Stability: Development
6716 //
6717 // Examples: "other", "stack"
6718 GoMemoryTypeKey = attribute.Key("go.memory.type")
6719 )
6720
6721 // Enum values for go.memory.type
6722 var (
6723 // Memory allocated from the heap that is reserved for stack space, whether or
6724 // not it is currently in-use.
6725 // Stability: development
6726 GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
6727 // Memory used by the Go runtime, excluding other categories of memory usage
6728 // described in this enumeration.
6729 // Stability: development
6730 GoMemoryTypeOther = GoMemoryTypeKey.String("other")
6731 )
6732
6733 // Namespace: graphql
6734 const (
6735 // GraphQLDocumentKey is the attribute Key conforming to the "graphql.document"
6736 // semantic conventions. It represents the GraphQL document being executed.
6737 //
6738 // Type: string
6739 // RequirementLevel: Recommended
6740 // Stability: Development
6741 //
6742 // Examples: query findBookById { bookById(id: ?) { name } }
6743 // Note: The value may be sanitized to exclude sensitive information.
6744 GraphQLDocumentKey = attribute.Key("graphql.document")
6745
6746 // GraphQLOperationNameKey is the attribute Key conforming to the
6747 // "graphql.operation.name" semantic conventions. It represents the name of the
6748 // operation being executed.
6749 //
6750 // Type: string
6751 // RequirementLevel: Recommended
6752 // Stability: Development
6753 //
6754 // Examples: findBookById
6755 GraphQLOperationNameKey = attribute.Key("graphql.operation.name")
6756
6757 // GraphQLOperationTypeKey is the attribute Key conforming to the
6758 // "graphql.operation.type" semantic conventions. It represents the type of the
6759 // operation being executed.
6760 //
6761 // Type: Enum
6762 // RequirementLevel: Recommended
6763 // Stability: Development
6764 //
6765 // Examples: "query", "mutation", "subscription"
6766 GraphQLOperationTypeKey = attribute.Key("graphql.operation.type")
6767 )
6768
6769 // GraphQLDocument returns an attribute KeyValue conforming to the
6770 // "graphql.document" semantic conventions. It represents the GraphQL document
6771 // being executed.
6772 func GraphQLDocument(val string) attribute.KeyValue {
6773 return GraphQLDocumentKey.String(val)
6774 }
6775
6776 // GraphQLOperationName returns an attribute KeyValue conforming to the
6777 // "graphql.operation.name" semantic conventions. It represents the name of the
6778 // operation being executed.
6779 func GraphQLOperationName(val string) attribute.KeyValue {
6780 return GraphQLOperationNameKey.String(val)
6781 }
6782
6783 // Enum values for graphql.operation.type
6784 var (
6785 // GraphQL query
6786 // Stability: development
6787 GraphQLOperationTypeQuery = GraphQLOperationTypeKey.String("query")
6788 // GraphQL mutation
6789 // Stability: development
6790 GraphQLOperationTypeMutation = GraphQLOperationTypeKey.String("mutation")
6791 // GraphQL subscription
6792 // Stability: development
6793 GraphQLOperationTypeSubscription = GraphQLOperationTypeKey.String("subscription")
6794 )
6795
6796 // Namespace: heroku
6797 const (
6798 // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
6799 // semantic conventions. It represents the unique identifier for the
6800 // application.
6801 //
6802 // Type: string
6803 // RequirementLevel: Recommended
6804 // Stability: Development
6805 //
6806 // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
6807 HerokuAppIDKey = attribute.Key("heroku.app.id")
6808
6809 // HerokuReleaseCommitKey is the attribute Key conforming to the
6810 // "heroku.release.commit" semantic conventions. It represents the commit hash
6811 // for the current release.
6812 //
6813 // Type: string
6814 // RequirementLevel: Recommended
6815 // Stability: Development
6816 //
6817 // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
6818 HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
6819
6820 // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
6821 // "heroku.release.creation_timestamp" semantic conventions. It represents the
6822 // time and date the release was created.
6823 //
6824 // Type: string
6825 // RequirementLevel: Recommended
6826 // Stability: Development
6827 //
6828 // Examples: "2022-10-23T18:00:42Z"
6829 HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
6830 )
6831
6832 // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
6833 // semantic conventions. It represents the unique identifier for the application.
6834 func HerokuAppID(val string) attribute.KeyValue {
6835 return HerokuAppIDKey.String(val)
6836 }
6837
6838 // HerokuReleaseCommit returns an attribute KeyValue conforming to the
6839 // "heroku.release.commit" semantic conventions. It represents the commit hash
6840 // for the current release.
6841 func HerokuReleaseCommit(val string) attribute.KeyValue {
6842 return HerokuReleaseCommitKey.String(val)
6843 }
6844
6845 // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
6846 // "heroku.release.creation_timestamp" semantic conventions. It represents the
6847 // time and date the release was created.
6848 func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
6849 return HerokuReleaseCreationTimestampKey.String(val)
6850 }
6851
6852 // Namespace: host
6853 const (
6854 // HostArchKey is the attribute Key conforming to the "host.arch" semantic
6855 // conventions. It represents the CPU architecture the host system is running
6856 // on.
6857 //
6858 // Type: Enum
6859 // RequirementLevel: Recommended
6860 // Stability: Development
6861 //
6862 // Examples:
6863 HostArchKey = attribute.Key("host.arch")
6864
6865 // HostCPUCacheL2SizeKey is the attribute Key conforming to the
6866 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
6867 // level 2 memory cache available to the processor (in Bytes).
6868 //
6869 // Type: int
6870 // RequirementLevel: Recommended
6871 // Stability: Development
6872 //
6873 // Examples: 12288000
6874 HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
6875
6876 // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
6877 // semantic conventions. It represents the family or generation of the CPU.
6878 //
6879 // Type: string
6880 // RequirementLevel: Recommended
6881 // Stability: Development
6882 //
6883 // Examples: "6", "PA-RISC 1.1e"
6884 HostCPUFamilyKey = attribute.Key("host.cpu.family")
6885
6886 // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
6887 // semantic conventions. It represents the model identifier. It provides more
6888 // granular information about the CPU, distinguishing it from other CPUs within
6889 // the same family.
6890 //
6891 // Type: string
6892 // RequirementLevel: Recommended
6893 // Stability: Development
6894 //
6895 // Examples: "6", "9000/778/B180L"
6896 HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
6897
6898 // HostCPUModelNameKey is the attribute Key conforming to the
6899 // "host.cpu.model.name" semantic conventions. It represents the model
6900 // designation of the processor.
6901 //
6902 // Type: string
6903 // RequirementLevel: Recommended
6904 // Stability: Development
6905 //
6906 // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
6907 HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
6908
6909 // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
6910 // semantic conventions. It represents the stepping or core revisions.
6911 //
6912 // Type: string
6913 // RequirementLevel: Recommended
6914 // Stability: Development
6915 //
6916 // Examples: "1", "r1p1"
6917 HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
6918
6919 // HostCPUVendorIDKey is the attribute Key conforming to the
6920 // "host.cpu.vendor.id" semantic conventions. It represents the processor
6921 // manufacturer identifier. A maximum 12-character string.
6922 //
6923 // Type: string
6924 // RequirementLevel: Recommended
6925 // Stability: Development
6926 //
6927 // Examples: "GenuineIntel"
6928 // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
6929 // registers. Writing these to memory in this order results in a 12-character
6930 // string.
6931 //
6932 // [CPUID]: https://wiki.osdev.org/CPUID
6933 HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
6934
6935 // HostIDKey is the attribute Key conforming to the "host.id" semantic
6936 // conventions. It represents the unique host ID. For Cloud, this must be the
6937 // instance_id assigned by the cloud provider. For non-containerized systems,
6938 // this should be the `machine-id`. See the table below for the sources to use
6939 // to determine the `machine-id` based on operating system.
6940 //
6941 // Type: string
6942 // RequirementLevel: Recommended
6943 // Stability: Development
6944 //
6945 // Examples: "fdbf79e8af94cb7f9e8df36789187052"
6946 HostIDKey = attribute.Key("host.id")
6947
6948 // HostImageIDKey is the attribute Key conforming to the "host.image.id"
6949 // semantic conventions. It represents the VM image ID or host OS image ID. For
6950 // Cloud, this value is from the provider.
6951 //
6952 // Type: string
6953 // RequirementLevel: Recommended
6954 // Stability: Development
6955 //
6956 // Examples: "ami-07b06b442921831e5"
6957 HostImageIDKey = attribute.Key("host.image.id")
6958
6959 // HostImageNameKey is the attribute Key conforming to the "host.image.name"
6960 // semantic conventions. It represents the name of the VM image or OS install
6961 // the host was instantiated from.
6962 //
6963 // Type: string
6964 // RequirementLevel: Recommended
6965 // Stability: Development
6966 //
6967 // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
6968 HostImageNameKey = attribute.Key("host.image.name")
6969
6970 // HostImageVersionKey is the attribute Key conforming to the
6971 // "host.image.version" semantic conventions. It represents the version string
6972 // of the VM image or host OS as defined in [Version Attributes].
6973 //
6974 // Type: string
6975 // RequirementLevel: Recommended
6976 // Stability: Development
6977 //
6978 // Examples: "0.1"
6979 //
6980 // [Version Attributes]: /docs/resource/README.md#version-attributes
6981 HostImageVersionKey = attribute.Key("host.image.version")
6982
6983 // HostIPKey is the attribute Key conforming to the "host.ip" semantic
6984 // conventions. It represents the available IP addresses of the host, excluding
6985 // loopback interfaces.
6986 //
6987 // Type: string[]
6988 // RequirementLevel: Recommended
6989 // Stability: Development
6990 //
6991 // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
6992 // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
6993 // addresses MUST be specified in the [RFC 5952] format.
6994 //
6995 // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
6996 HostIPKey = attribute.Key("host.ip")
6997
6998 // HostMacKey is the attribute Key conforming to the "host.mac" semantic
6999 // conventions. It represents the available MAC addresses of the host, excluding
7000 // loopback interfaces.
7001 //
7002 // Type: string[]
7003 // RequirementLevel: Recommended
7004 // Stability: Development
7005 //
7006 // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
7007 // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
7008 // hyphen-separated octets in uppercase hexadecimal form from most to least
7009 // significant.
7010 //
7011 // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
7012 HostMacKey = attribute.Key("host.mac")
7013
7014 // HostNameKey is the attribute Key conforming to the "host.name" semantic
7015 // conventions. It represents the name of the host. On Unix systems, it may
7016 // contain what the hostname command returns, or the fully qualified hostname,
7017 // or another name specified by the user.
7018 //
7019 // Type: string
7020 // RequirementLevel: Recommended
7021 // Stability: Development
7022 //
7023 // Examples: "opentelemetry-test"
7024 HostNameKey = attribute.Key("host.name")
7025
7026 // HostTypeKey is the attribute Key conforming to the "host.type" semantic
7027 // conventions. It represents the type of host. For Cloud, this must be the
7028 // machine type.
7029 //
7030 // Type: string
7031 // RequirementLevel: Recommended
7032 // Stability: Development
7033 //
7034 // Examples: "n1-standard-1"
7035 HostTypeKey = attribute.Key("host.type")
7036 )
7037
7038 // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
7039 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
7040 // level 2 memory cache available to the processor (in Bytes).
7041 func HostCPUCacheL2Size(val int) attribute.KeyValue {
7042 return HostCPUCacheL2SizeKey.Int(val)
7043 }
7044
7045 // HostCPUFamily returns an attribute KeyValue conforming to the
7046 // "host.cpu.family" semantic conventions. It represents the family or generation
7047 // of the CPU.
7048 func HostCPUFamily(val string) attribute.KeyValue {
7049 return HostCPUFamilyKey.String(val)
7050 }
7051
7052 // HostCPUModelID returns an attribute KeyValue conforming to the
7053 // "host.cpu.model.id" semantic conventions. It represents the model identifier.
7054 // It provides more granular information about the CPU, distinguishing it from
7055 // other CPUs within the same family.
7056 func HostCPUModelID(val string) attribute.KeyValue {
7057 return HostCPUModelIDKey.String(val)
7058 }
7059
7060 // HostCPUModelName returns an attribute KeyValue conforming to the
7061 // "host.cpu.model.name" semantic conventions. It represents the model
7062 // designation of the processor.
7063 func HostCPUModelName(val string) attribute.KeyValue {
7064 return HostCPUModelNameKey.String(val)
7065 }
7066
7067 // HostCPUStepping returns an attribute KeyValue conforming to the
7068 // "host.cpu.stepping" semantic conventions. It represents the stepping or core
7069 // revisions.
7070 func HostCPUStepping(val string) attribute.KeyValue {
7071 return HostCPUSteppingKey.String(val)
7072 }
7073
7074 // HostCPUVendorID returns an attribute KeyValue conforming to the
7075 // "host.cpu.vendor.id" semantic conventions. It represents the processor
7076 // manufacturer identifier. A maximum 12-character string.
7077 func HostCPUVendorID(val string) attribute.KeyValue {
7078 return HostCPUVendorIDKey.String(val)
7079 }
7080
7081 // HostID returns an attribute KeyValue conforming to the "host.id" semantic
7082 // conventions. It represents the unique host ID. For Cloud, this must be the
7083 // instance_id assigned by the cloud provider. For non-containerized systems,
7084 // this should be the `machine-id`. See the table below for the sources to use to
7085 // determine the `machine-id` based on operating system.
7086 func HostID(val string) attribute.KeyValue {
7087 return HostIDKey.String(val)
7088 }
7089
7090 // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
7091 // semantic conventions. It represents the VM image ID or host OS image ID. For
7092 // Cloud, this value is from the provider.
7093 func HostImageID(val string) attribute.KeyValue {
7094 return HostImageIDKey.String(val)
7095 }
7096
7097 // HostImageName returns an attribute KeyValue conforming to the
7098 // "host.image.name" semantic conventions. It represents the name of the VM image
7099 // or OS install the host was instantiated from.
7100 func HostImageName(val string) attribute.KeyValue {
7101 return HostImageNameKey.String(val)
7102 }
7103
7104 // HostImageVersion returns an attribute KeyValue conforming to the
7105 // "host.image.version" semantic conventions. It represents the version string of
7106 // the VM image or host OS as defined in [Version Attributes].
7107 //
7108 // [Version Attributes]: /docs/resource/README.md#version-attributes
7109 func HostImageVersion(val string) attribute.KeyValue {
7110 return HostImageVersionKey.String(val)
7111 }
7112
7113 // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
7114 // conventions. It represents the available IP addresses of the host, excluding
7115 // loopback interfaces.
7116 func HostIP(val ...string) attribute.KeyValue {
7117 return HostIPKey.StringSlice(val)
7118 }
7119
7120 // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
7121 // conventions. It represents the available MAC addresses of the host, excluding
7122 // loopback interfaces.
7123 func HostMac(val ...string) attribute.KeyValue {
7124 return HostMacKey.StringSlice(val)
7125 }
7126
7127 // HostName returns an attribute KeyValue conforming to the "host.name" semantic
7128 // conventions. It represents the name of the host. On Unix systems, it may
7129 // contain what the hostname command returns, or the fully qualified hostname, or
7130 // another name specified by the user.
7131 func HostName(val string) attribute.KeyValue {
7132 return HostNameKey.String(val)
7133 }
7134
7135 // HostType returns an attribute KeyValue conforming to the "host.type" semantic
7136 // conventions. It represents the type of host. For Cloud, this must be the
7137 // machine type.
7138 func HostType(val string) attribute.KeyValue {
7139 return HostTypeKey.String(val)
7140 }
7141
7142 // Enum values for host.arch
7143 var (
7144 // AMD64
7145 // Stability: development
7146 HostArchAMD64 = HostArchKey.String("amd64")
7147 // ARM32
7148 // Stability: development
7149 HostArchARM32 = HostArchKey.String("arm32")
7150 // ARM64
7151 // Stability: development
7152 HostArchARM64 = HostArchKey.String("arm64")
7153 // Itanium
7154 // Stability: development
7155 HostArchIA64 = HostArchKey.String("ia64")
7156 // 32-bit PowerPC
7157 // Stability: development
7158 HostArchPPC32 = HostArchKey.String("ppc32")
7159 // 64-bit PowerPC
7160 // Stability: development
7161 HostArchPPC64 = HostArchKey.String("ppc64")
7162 // IBM z/Architecture
7163 // Stability: development
7164 HostArchS390x = HostArchKey.String("s390x")
7165 // 32-bit x86
7166 // Stability: development
7167 HostArchX86 = HostArchKey.String("x86")
7168 )
7169
7170 // Namespace: http
7171 const (
7172 // HTTPConnectionStateKey is the attribute Key conforming to the
7173 // "http.connection.state" semantic conventions. It represents the state of the
7174 // HTTP connection in the HTTP connection pool.
7175 //
7176 // Type: Enum
7177 // RequirementLevel: Recommended
7178 // Stability: Development
7179 //
7180 // Examples: "active", "idle"
7181 HTTPConnectionStateKey = attribute.Key("http.connection.state")
7182
7183 // HTTPRequestBodySizeKey is the attribute Key conforming to the
7184 // "http.request.body.size" semantic conventions. It represents the size of the
7185 // request payload body in bytes. This is the number of bytes transferred
7186 // excluding headers and is often, but not always, present as the
7187 // [Content-Length] header. For requests using transport encoding, this should
7188 // be the compressed size.
7189 //
7190 // Type: int
7191 // RequirementLevel: Recommended
7192 // Stability: Development
7193 //
7194 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7195 HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
7196
7197 // HTTPRequestMethodKey is the attribute Key conforming to the
7198 // "http.request.method" semantic conventions. It represents the HTTP request
7199 // method.
7200 //
7201 // Type: Enum
7202 // RequirementLevel: Recommended
7203 // Stability: Stable
7204 //
7205 // Examples: "GET", "POST", "HEAD"
7206 // Note: HTTP request method value SHOULD be "known" to the instrumentation.
7207 // By default, this convention defines "known" methods as the ones listed in
7208 // [RFC9110]
7209 // and the PATCH method defined in [RFC5789].
7210 //
7211 // If the HTTP request method is not known to instrumentation, it MUST set the
7212 // `http.request.method` attribute to `_OTHER`.
7213 //
7214 // If the HTTP instrumentation could end up converting valid HTTP request
7215 // methods to `_OTHER`, then it MUST provide a way to override
7216 // the list of known HTTP methods. If this override is done via environment
7217 // variable, then the environment variable MUST be named
7218 // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
7219 // case-sensitive known HTTP methods
7220 // (this list MUST be a full override of the default known method, it is not a
7221 // list of known methods in addition to the defaults).
7222 //
7223 // HTTP method names are case-sensitive and `http.request.method` attribute
7224 // value MUST match a known HTTP method name exactly.
7225 // Instrumentations for specific web frameworks that consider HTTP methods to be
7226 // case insensitive, SHOULD populate a canonical equivalent.
7227 // Tracing instrumentations that do so, MUST also set
7228 // `http.request.method_original` to the original value.
7229 //
7230 // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
7231 // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
7232 HTTPRequestMethodKey = attribute.Key("http.request.method")
7233
7234 // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
7235 // "http.request.method_original" semantic conventions. It represents the
7236 // original HTTP method sent by the client in the request line.
7237 //
7238 // Type: string
7239 // RequirementLevel: Recommended
7240 // Stability: Stable
7241 //
7242 // Examples: "GeT", "ACL", "foo"
7243 HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
7244
7245 // HTTPRequestResendCountKey is the attribute Key conforming to the
7246 // "http.request.resend_count" semantic conventions. It represents the ordinal
7247 // number of request resending attempt (for any reason, including redirects).
7248 //
7249 // Type: int
7250 // RequirementLevel: Recommended
7251 // Stability: Stable
7252 //
7253 // Note: The resend count SHOULD be updated each time an HTTP request gets
7254 // resent by the client, regardless of what was the cause of the resending (e.g.
7255 // redirection, authorization failure, 503 Server Unavailable, network issues,
7256 // or any other).
7257 HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
7258
7259 // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
7260 // semantic conventions. It represents the total size of the request in bytes.
7261 // This should be the total number of bytes sent over the wire, including the
7262 // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
7263 // body if any.
7264 //
7265 // Type: int
7266 // RequirementLevel: Recommended
7267 // Stability: Development
7268 HTTPRequestSizeKey = attribute.Key("http.request.size")
7269
7270 // HTTPResponseBodySizeKey is the attribute Key conforming to the
7271 // "http.response.body.size" semantic conventions. It represents the size of the
7272 // response payload body in bytes. This is the number of bytes transferred
7273 // excluding headers and is often, but not always, present as the
7274 // [Content-Length] header. For requests using transport encoding, this should
7275 // be the compressed size.
7276 //
7277 // Type: int
7278 // RequirementLevel: Recommended
7279 // Stability: Development
7280 //
7281 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7282 HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
7283
7284 // HTTPResponseSizeKey is the attribute Key conforming to the
7285 // "http.response.size" semantic conventions. It represents the total size of
7286 // the response in bytes. This should be the total number of bytes sent over the
7287 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
7288 // headers, and response body and trailers if any.
7289 //
7290 // Type: int
7291 // RequirementLevel: Recommended
7292 // Stability: Development
7293 HTTPResponseSizeKey = attribute.Key("http.response.size")
7294
7295 // HTTPResponseStatusCodeKey is the attribute Key conforming to the
7296 // "http.response.status_code" semantic conventions. It represents the
7297 // [HTTP response status code].
7298 //
7299 // Type: int
7300 // RequirementLevel: Recommended
7301 // Stability: Stable
7302 //
7303 // Examples: 200
7304 //
7305 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
7306 HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
7307
7308 // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
7309 // conventions. It represents the matched route, that is, the path template in
7310 // the format used by the respective server framework.
7311 //
7312 // Type: string
7313 // RequirementLevel: Recommended
7314 // Stability: Stable
7315 //
7316 // Examples: "/users/:userID?", "{controller}/{action}/{id?}"
7317 // Note: MUST NOT be populated when this is not supported by the HTTP server
7318 // framework as the route attribute should have low-cardinality and the URI path
7319 // can NOT substitute it.
7320 // SHOULD include the [application root] if there is one.
7321 //
7322 // [application root]: /docs/http/http-spans.md#http-server-definitions
7323 HTTPRouteKey = attribute.Key("http.route")
7324 )
7325
7326 // HTTPRequestBodySize returns an attribute KeyValue conforming to the
7327 // "http.request.body.size" semantic conventions. It represents the size of the
7328 // request payload body in bytes. This is the number of bytes transferred
7329 // excluding headers and is often, but not always, present as the
7330 // [Content-Length] header. For requests using transport encoding, this should be
7331 // the compressed size.
7332 //
7333 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7334 func HTTPRequestBodySize(val int) attribute.KeyValue {
7335 return HTTPRequestBodySizeKey.Int(val)
7336 }
7337
7338 // HTTPRequestHeader returns an attribute KeyValue conforming to the
7339 // "http.request.header" semantic conventions. It represents the HTTP request
7340 // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
7341 // being the header values.
7342 func HTTPRequestHeader(key string, val ...string) attribute.KeyValue {
7343 return attribute.StringSlice("http.request.header."+key, val)
7344 }
7345
7346 // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
7347 // "http.request.method_original" semantic conventions. It represents the
7348 // original HTTP method sent by the client in the request line.
7349 func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
7350 return HTTPRequestMethodOriginalKey.String(val)
7351 }
7352
7353 // HTTPRequestResendCount returns an attribute KeyValue conforming to the
7354 // "http.request.resend_count" semantic conventions. It represents the ordinal
7355 // number of request resending attempt (for any reason, including redirects).
7356 func HTTPRequestResendCount(val int) attribute.KeyValue {
7357 return HTTPRequestResendCountKey.Int(val)
7358 }
7359
7360 // HTTPRequestSize returns an attribute KeyValue conforming to the
7361 // "http.request.size" semantic conventions. It represents the total size of the
7362 // request in bytes. This should be the total number of bytes sent over the wire,
7363 // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
7364 // and request body if any.
7365 func HTTPRequestSize(val int) attribute.KeyValue {
7366 return HTTPRequestSizeKey.Int(val)
7367 }
7368
7369 // HTTPResponseBodySize returns an attribute KeyValue conforming to the
7370 // "http.response.body.size" semantic conventions. It represents the size of the
7371 // response payload body in bytes. This is the number of bytes transferred
7372 // excluding headers and is often, but not always, present as the
7373 // [Content-Length] header. For requests using transport encoding, this should be
7374 // the compressed size.
7375 //
7376 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7377 func HTTPResponseBodySize(val int) attribute.KeyValue {
7378 return HTTPResponseBodySizeKey.Int(val)
7379 }
7380
7381 // HTTPResponseHeader returns an attribute KeyValue conforming to the
7382 // "http.response.header" semantic conventions. It represents the HTTP response
7383 // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
7384 // being the header values.
7385 func HTTPResponseHeader(key string, val ...string) attribute.KeyValue {
7386 return attribute.StringSlice("http.response.header."+key, val)
7387 }
7388
7389 // HTTPResponseSize returns an attribute KeyValue conforming to the
7390 // "http.response.size" semantic conventions. It represents the total size of the
7391 // response in bytes. This should be the total number of bytes sent over the
7392 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
7393 // headers, and response body and trailers if any.
7394 func HTTPResponseSize(val int) attribute.KeyValue {
7395 return HTTPResponseSizeKey.Int(val)
7396 }
7397
7398 // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
7399 // "http.response.status_code" semantic conventions. It represents the
7400 // [HTTP response status code].
7401 //
7402 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
7403 func HTTPResponseStatusCode(val int) attribute.KeyValue {
7404 return HTTPResponseStatusCodeKey.Int(val)
7405 }
7406
7407 // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
7408 // semantic conventions. It represents the matched route, that is, the path
7409 // template in the format used by the respective server framework.
7410 func HTTPRoute(val string) attribute.KeyValue {
7411 return HTTPRouteKey.String(val)
7412 }
7413
7414 // Enum values for http.connection.state
7415 var (
7416 // active state.
7417 // Stability: development
7418 HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
7419 // idle state.
7420 // Stability: development
7421 HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
7422 )
7423
7424 // Enum values for http.request.method
7425 var (
7426 // CONNECT method.
7427 // Stability: stable
7428 HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
7429 // DELETE method.
7430 // Stability: stable
7431 HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
7432 // GET method.
7433 // Stability: stable
7434 HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
7435 // HEAD method.
7436 // Stability: stable
7437 HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
7438 // OPTIONS method.
7439 // Stability: stable
7440 HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
7441 // PATCH method.
7442 // Stability: stable
7443 HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
7444 // POST method.
7445 // Stability: stable
7446 HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
7447 // PUT method.
7448 // Stability: stable
7449 HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
7450 // TRACE method.
7451 // Stability: stable
7452 HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
7453 // Any HTTP method that the instrumentation has no prior knowledge of.
7454 // Stability: stable
7455 HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
7456 )
7457
7458 // Namespace: hw
7459 const (
7460 // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
7461 // It represents an identifier for the hardware component, unique within the
7462 // monitored host.
7463 //
7464 // Type: string
7465 // RequirementLevel: Recommended
7466 // Stability: Development
7467 //
7468 // Examples: "win32battery_battery_testsysa33_1"
7469 HwIDKey = attribute.Key("hw.id")
7470
7471 // HwNameKey is the attribute Key conforming to the "hw.name" semantic
7472 // conventions. It represents an easily-recognizable name for the hardware
7473 // component.
7474 //
7475 // Type: string
7476 // RequirementLevel: Recommended
7477 // Stability: Development
7478 //
7479 // Examples: "eth0"
7480 HwNameKey = attribute.Key("hw.name")
7481
7482 // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
7483 // conventions. It represents the unique identifier of the parent component
7484 // (typically the `hw.id` attribute of the enclosure, or disk controller).
7485 //
7486 // Type: string
7487 // RequirementLevel: Recommended
7488 // Stability: Development
7489 //
7490 // Examples: "dellStorage_perc_0"
7491 HwParentKey = attribute.Key("hw.parent")
7492
7493 // HwStateKey is the attribute Key conforming to the "hw.state" semantic
7494 // conventions. It represents the current state of the component.
7495 //
7496 // Type: Enum
7497 // RequirementLevel: Recommended
7498 // Stability: Development
7499 //
7500 // Examples:
7501 HwStateKey = attribute.Key("hw.state")
7502
7503 // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
7504 // conventions. It represents the type of the component.
7505 //
7506 // Type: Enum
7507 // RequirementLevel: Recommended
7508 // Stability: Development
7509 //
7510 // Examples:
7511 // Note: Describes the category of the hardware component for which `hw.state`
7512 // is being reported. For example, `hw.type=temperature` along with
7513 // `hw.state=degraded` would indicate that the temperature of the hardware
7514 // component has been reported as `degraded`.
7515 HwTypeKey = attribute.Key("hw.type")
7516 )
7517
7518 // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
7519 // conventions. It represents an identifier for the hardware component, unique
7520 // within the monitored host.
7521 func HwID(val string) attribute.KeyValue {
7522 return HwIDKey.String(val)
7523 }
7524
7525 // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
7526 // conventions. It represents an easily-recognizable name for the hardware
7527 // component.
7528 func HwName(val string) attribute.KeyValue {
7529 return HwNameKey.String(val)
7530 }
7531
7532 // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
7533 // conventions. It represents the unique identifier of the parent component
7534 // (typically the `hw.id` attribute of the enclosure, or disk controller).
7535 func HwParent(val string) attribute.KeyValue {
7536 return HwParentKey.String(val)
7537 }
7538
7539 // Enum values for hw.state
7540 var (
7541 // Ok
7542 // Stability: development
7543 HwStateOk = HwStateKey.String("ok")
7544 // Degraded
7545 // Stability: development
7546 HwStateDegraded = HwStateKey.String("degraded")
7547 // Failed
7548 // Stability: development
7549 HwStateFailed = HwStateKey.String("failed")
7550 )
7551
7552 // Enum values for hw.type
7553 var (
7554 // Battery
7555 // Stability: development
7556 HwTypeBattery = HwTypeKey.String("battery")
7557 // CPU
7558 // Stability: development
7559 HwTypeCPU = HwTypeKey.String("cpu")
7560 // Disk controller
7561 // Stability: development
7562 HwTypeDiskController = HwTypeKey.String("disk_controller")
7563 // Enclosure
7564 // Stability: development
7565 HwTypeEnclosure = HwTypeKey.String("enclosure")
7566 // Fan
7567 // Stability: development
7568 HwTypeFan = HwTypeKey.String("fan")
7569 // GPU
7570 // Stability: development
7571 HwTypeGpu = HwTypeKey.String("gpu")
7572 // Logical disk
7573 // Stability: development
7574 HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
7575 // Memory
7576 // Stability: development
7577 HwTypeMemory = HwTypeKey.String("memory")
7578 // Network
7579 // Stability: development
7580 HwTypeNetwork = HwTypeKey.String("network")
7581 // Physical disk
7582 // Stability: development
7583 HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
7584 // Power supply
7585 // Stability: development
7586 HwTypePowerSupply = HwTypeKey.String("power_supply")
7587 // Tape drive
7588 // Stability: development
7589 HwTypeTapeDrive = HwTypeKey.String("tape_drive")
7590 // Temperature
7591 // Stability: development
7592 HwTypeTemperature = HwTypeKey.String("temperature")
7593 // Voltage
7594 // Stability: development
7595 HwTypeVoltage = HwTypeKey.String("voltage")
7596 )
7597
7598 // Namespace: ios
7599 const (
7600 // IOSAppStateKey is the attribute Key conforming to the "ios.app.state"
7601 // semantic conventions. It represents the this attribute represents the state
7602 // of the application.
7603 //
7604 // Type: Enum
7605 // RequirementLevel: Recommended
7606 // Stability: Development
7607 //
7608 // Examples:
7609 // Note: The iOS lifecycle states are defined in the
7610 // [UIApplicationDelegate documentation], and from which the `OS terminology`
7611 // column values are derived.
7612 //
7613 // [UIApplicationDelegate documentation]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate
7614 IOSAppStateKey = attribute.Key("ios.app.state")
7615 )
7616
7617 // Enum values for ios.app.state
7618 var (
7619 // The app has become `active`. Associated with UIKit notification
7620 // `applicationDidBecomeActive`.
7621 //
7622 // Stability: development
7623 IOSAppStateActive = IOSAppStateKey.String("active")
7624 // The app is now `inactive`. Associated with UIKit notification
7625 // `applicationWillResignActive`.
7626 //
7627 // Stability: development
7628 IOSAppStateInactive = IOSAppStateKey.String("inactive")
7629 // The app is now in the background. This value is associated with UIKit
7630 // notification `applicationDidEnterBackground`.
7631 //
7632 // Stability: development
7633 IOSAppStateBackground = IOSAppStateKey.String("background")
7634 // The app is now in the foreground. This value is associated with UIKit
7635 // notification `applicationWillEnterForeground`.
7636 //
7637 // Stability: development
7638 IOSAppStateForeground = IOSAppStateKey.String("foreground")
7639 // The app is about to terminate. Associated with UIKit notification
7640 // `applicationWillTerminate`.
7641 //
7642 // Stability: development
7643 IOSAppStateTerminate = IOSAppStateKey.String("terminate")
7644 )
7645
7646 // Namespace: k8s
7647 const (
7648 // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
7649 // semantic conventions. It represents the name of the cluster.
7650 //
7651 // Type: string
7652 // RequirementLevel: Recommended
7653 // Stability: Development
7654 //
7655 // Examples: "opentelemetry-cluster"
7656 K8SClusterNameKey = attribute.Key("k8s.cluster.name")
7657
7658 // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
7659 // semantic conventions. It represents a pseudo-ID for the cluster, set to the
7660 // UID of the `kube-system` namespace.
7661 //
7662 // Type: string
7663 // RequirementLevel: Recommended
7664 // Stability: Development
7665 //
7666 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
7667 // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
7668 // added, we will recommend collecting the `k8s.cluster.uid` through the
7669 // official APIs. In the meantime, we are able to use the `uid` of the
7670 // `kube-system` namespace as a proxy for cluster ID. Read on for the
7671 // rationale.
7672 //
7673 // Every object created in a K8s cluster is assigned a distinct UID. The
7674 // `kube-system` namespace is used by Kubernetes itself and will exist
7675 // for the lifetime of the cluster. Using the `uid` of the `kube-system`
7676 // namespace is a reasonable proxy for the K8s ClusterID as it will only
7677 // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
7678 // UUIDs as standardized by
7679 // [ISO/IEC 9834-8 and ITU-T X.667].
7680 // Which states:
7681 //
7682 // > If generated according to one of the mechanisms defined in Rec.
7683 // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
7684 // > different from all other UUIDs generated before 3603 A.D., or is
7685 // > extremely likely to be different (depending on the mechanism chosen).
7686 //
7687 // Therefore, UIDs between clusters should be extremely unlikely to
7688 // conflict.
7689 //
7690 // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
7691 K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
7692
7693 // K8SContainerNameKey is the attribute Key conforming to the
7694 // "k8s.container.name" semantic conventions. It represents the name of the
7695 // Container from Pod specification, must be unique within a Pod. Container
7696 // runtime usually uses different globally unique name (`container.name`).
7697 //
7698 // Type: string
7699 // RequirementLevel: Recommended
7700 // Stability: Development
7701 //
7702 // Examples: "redis"
7703 K8SContainerNameKey = attribute.Key("k8s.container.name")
7704
7705 // K8SContainerRestartCountKey is the attribute Key conforming to the
7706 // "k8s.container.restart_count" semantic conventions. It represents the number
7707 // of times the container was restarted. This attribute can be used to identify
7708 // a particular container (running or stopped) within a container spec.
7709 //
7710 // Type: int
7711 // RequirementLevel: Recommended
7712 // Stability: Development
7713 //
7714 // Examples:
7715 K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
7716
7717 // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
7718 // the "k8s.container.status.last_terminated_reason" semantic conventions. It
7719 // represents the last terminated reason of the Container.
7720 //
7721 // Type: string
7722 // RequirementLevel: Recommended
7723 // Stability: Development
7724 //
7725 // Examples: "Evicted", "Error"
7726 K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
7727
7728 // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
7729 // semantic conventions. It represents the name of the CronJob.
7730 //
7731 // Type: string
7732 // RequirementLevel: Recommended
7733 // Stability: Development
7734 //
7735 // Examples: "opentelemetry"
7736 K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
7737
7738 // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
7739 // semantic conventions. It represents the UID of the CronJob.
7740 //
7741 // Type: string
7742 // RequirementLevel: Recommended
7743 // Stability: Development
7744 //
7745 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7746 K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
7747
7748 // K8SDaemonSetNameKey is the attribute Key conforming to the
7749 // "k8s.daemonset.name" semantic conventions. It represents the name of the
7750 // DaemonSet.
7751 //
7752 // Type: string
7753 // RequirementLevel: Recommended
7754 // Stability: Development
7755 //
7756 // Examples: "opentelemetry"
7757 K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
7758
7759 // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
7760 // semantic conventions. It represents the UID of the DaemonSet.
7761 //
7762 // Type: string
7763 // RequirementLevel: Recommended
7764 // Stability: Development
7765 //
7766 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7767 K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
7768
7769 // K8SDeploymentNameKey is the attribute Key conforming to the
7770 // "k8s.deployment.name" semantic conventions. It represents the name of the
7771 // Deployment.
7772 //
7773 // Type: string
7774 // RequirementLevel: Recommended
7775 // Stability: Development
7776 //
7777 // Examples: "opentelemetry"
7778 K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
7779
7780 // K8SDeploymentUIDKey is the attribute Key conforming to the
7781 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
7782 // Deployment.
7783 //
7784 // Type: string
7785 // RequirementLevel: Recommended
7786 // Stability: Development
7787 //
7788 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7789 K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
7790
7791 // K8SHPANameKey is the attribute Key conforming to the "k8s.hpa.name" semantic
7792 // conventions. It represents the name of the horizontal pod autoscaler.
7793 //
7794 // Type: string
7795 // RequirementLevel: Recommended
7796 // Stability: Development
7797 //
7798 // Examples: "opentelemetry"
7799 K8SHPANameKey = attribute.Key("k8s.hpa.name")
7800
7801 // K8SHPAUIDKey is the attribute Key conforming to the "k8s.hpa.uid" semantic
7802 // conventions. It represents the UID of the horizontal pod autoscaler.
7803 //
7804 // Type: string
7805 // RequirementLevel: Recommended
7806 // Stability: Development
7807 //
7808 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7809 K8SHPAUIDKey = attribute.Key("k8s.hpa.uid")
7810
7811 // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
7812 // conventions. It represents the name of the Job.
7813 //
7814 // Type: string
7815 // RequirementLevel: Recommended
7816 // Stability: Development
7817 //
7818 // Examples: "opentelemetry"
7819 K8SJobNameKey = attribute.Key("k8s.job.name")
7820
7821 // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
7822 // conventions. It represents the UID of the Job.
7823 //
7824 // Type: string
7825 // RequirementLevel: Recommended
7826 // Stability: Development
7827 //
7828 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7829 K8SJobUIDKey = attribute.Key("k8s.job.uid")
7830
7831 // K8SNamespaceNameKey is the attribute Key conforming to the
7832 // "k8s.namespace.name" semantic conventions. It represents the name of the
7833 // namespace that the pod is running in.
7834 //
7835 // Type: string
7836 // RequirementLevel: Recommended
7837 // Stability: Development
7838 //
7839 // Examples: "default"
7840 K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
7841
7842 // K8SNamespacePhaseKey is the attribute Key conforming to the
7843 // "k8s.namespace.phase" semantic conventions. It represents the phase of the
7844 // K8s namespace.
7845 //
7846 // Type: Enum
7847 // RequirementLevel: Recommended
7848 // Stability: Development
7849 //
7850 // Examples: "active", "terminating"
7851 // Note: This attribute aligns with the `phase` field of the
7852 // [K8s NamespaceStatus]
7853 //
7854 // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core
7855 K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase")
7856
7857 // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
7858 // semantic conventions. It represents the name of the Node.
7859 //
7860 // Type: string
7861 // RequirementLevel: Recommended
7862 // Stability: Development
7863 //
7864 // Examples: "node-1"
7865 K8SNodeNameKey = attribute.Key("k8s.node.name")
7866
7867 // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
7868 // conventions. It represents the UID of the Node.
7869 //
7870 // Type: string
7871 // RequirementLevel: Recommended
7872 // Stability: Development
7873 //
7874 // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
7875 K8SNodeUIDKey = attribute.Key("k8s.node.uid")
7876
7877 // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
7878 // conventions. It represents the name of the Pod.
7879 //
7880 // Type: string
7881 // RequirementLevel: Recommended
7882 // Stability: Development
7883 //
7884 // Examples: "opentelemetry-pod-autoconf"
7885 K8SPodNameKey = attribute.Key("k8s.pod.name")
7886
7887 // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
7888 // conventions. It represents the UID of the Pod.
7889 //
7890 // Type: string
7891 // RequirementLevel: Recommended
7892 // Stability: Development
7893 //
7894 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7895 K8SPodUIDKey = attribute.Key("k8s.pod.uid")
7896
7897 // K8SReplicaSetNameKey is the attribute Key conforming to the
7898 // "k8s.replicaset.name" semantic conventions. It represents the name of the
7899 // ReplicaSet.
7900 //
7901 // Type: string
7902 // RequirementLevel: Recommended
7903 // Stability: Development
7904 //
7905 // Examples: "opentelemetry"
7906 K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
7907
7908 // K8SReplicaSetUIDKey is the attribute Key conforming to the
7909 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
7910 // ReplicaSet.
7911 //
7912 // Type: string
7913 // RequirementLevel: Recommended
7914 // Stability: Development
7915 //
7916 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7917 K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
7918
7919 // K8SReplicationControllerNameKey is the attribute Key conforming to the
7920 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
7921 // of the replication controller.
7922 //
7923 // Type: string
7924 // RequirementLevel: Recommended
7925 // Stability: Development
7926 //
7927 // Examples: "opentelemetry"
7928 K8SReplicationControllerNameKey = attribute.Key("k8s.replicationcontroller.name")
7929
7930 // K8SReplicationControllerUIDKey is the attribute Key conforming to the
7931 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID
7932 // of the replication controller.
7933 //
7934 // Type: string
7935 // RequirementLevel: Recommended
7936 // Stability: Development
7937 //
7938 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7939 K8SReplicationControllerUIDKey = attribute.Key("k8s.replicationcontroller.uid")
7940
7941 // K8SResourceQuotaNameKey is the attribute Key conforming to the
7942 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
7943 // resource quota.
7944 //
7945 // Type: string
7946 // RequirementLevel: Recommended
7947 // Stability: Development
7948 //
7949 // Examples: "opentelemetry"
7950 K8SResourceQuotaNameKey = attribute.Key("k8s.resourcequota.name")
7951
7952 // K8SResourceQuotaUIDKey is the attribute Key conforming to the
7953 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
7954 // resource quota.
7955 //
7956 // Type: string
7957 // RequirementLevel: Recommended
7958 // Stability: Development
7959 //
7960 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7961 K8SResourceQuotaUIDKey = attribute.Key("k8s.resourcequota.uid")
7962
7963 // K8SStatefulSetNameKey is the attribute Key conforming to the
7964 // "k8s.statefulset.name" semantic conventions. It represents the name of the
7965 // StatefulSet.
7966 //
7967 // Type: string
7968 // RequirementLevel: Recommended
7969 // Stability: Development
7970 //
7971 // Examples: "opentelemetry"
7972 K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
7973
7974 // K8SStatefulSetUIDKey is the attribute Key conforming to the
7975 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
7976 // StatefulSet.
7977 //
7978 // Type: string
7979 // RequirementLevel: Recommended
7980 // Stability: Development
7981 //
7982 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
7983 K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
7984
7985 // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
7986 // semantic conventions. It represents the name of the K8s volume.
7987 //
7988 // Type: string
7989 // RequirementLevel: Recommended
7990 // Stability: Development
7991 //
7992 // Examples: "volume0"
7993 K8SVolumeNameKey = attribute.Key("k8s.volume.name")
7994
7995 // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
7996 // semantic conventions. It represents the type of the K8s volume.
7997 //
7998 // Type: Enum
7999 // RequirementLevel: Recommended
8000 // Stability: Development
8001 //
8002 // Examples: "emptyDir", "persistentVolumeClaim"
8003 K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
8004 )
8005
8006 // K8SClusterName returns an attribute KeyValue conforming to the
8007 // "k8s.cluster.name" semantic conventions. It represents the name of the
8008 // cluster.
8009 func K8SClusterName(val string) attribute.KeyValue {
8010 return K8SClusterNameKey.String(val)
8011 }
8012
8013 // K8SClusterUID returns an attribute KeyValue conforming to the
8014 // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
8015 // cluster, set to the UID of the `kube-system` namespace.
8016 func K8SClusterUID(val string) attribute.KeyValue {
8017 return K8SClusterUIDKey.String(val)
8018 }
8019
8020 // K8SContainerName returns an attribute KeyValue conforming to the
8021 // "k8s.container.name" semantic conventions. It represents the name of the
8022 // Container from Pod specification, must be unique within a Pod. Container
8023 // runtime usually uses different globally unique name (`container.name`).
8024 func K8SContainerName(val string) attribute.KeyValue {
8025 return K8SContainerNameKey.String(val)
8026 }
8027
8028 // K8SContainerRestartCount returns an attribute KeyValue conforming to the
8029 // "k8s.container.restart_count" semantic conventions. It represents the number
8030 // of times the container was restarted. This attribute can be used to identify a
8031 // particular container (running or stopped) within a container spec.
8032 func K8SContainerRestartCount(val int) attribute.KeyValue {
8033 return K8SContainerRestartCountKey.Int(val)
8034 }
8035
8036 // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
8037 // conforming to the "k8s.container.status.last_terminated_reason" semantic
8038 // conventions. It represents the last terminated reason of the Container.
8039 func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
8040 return K8SContainerStatusLastTerminatedReasonKey.String(val)
8041 }
8042
8043 // K8SCronJobAnnotation returns an attribute KeyValue conforming to the
8044 // "k8s.cronjob.annotation" semantic conventions. It represents the cronjob
8045 // annotation placed on the CronJob, the `<key>` being the annotation name, the
8046 // value being the annotation value.
8047 func K8SCronJobAnnotation(key string, val string) attribute.KeyValue {
8048 return attribute.String("k8s.cronjob.annotation."+key, val)
8049 }
8050
8051 // K8SCronJobLabel returns an attribute KeyValue conforming to the
8052 // "k8s.cronjob.label" semantic conventions. It represents the label placed on
8053 // the CronJob, the `<key>` being the label name, the value being the label
8054 // value.
8055 func K8SCronJobLabel(key string, val string) attribute.KeyValue {
8056 return attribute.String("k8s.cronjob.label."+key, val)
8057 }
8058
8059 // K8SCronJobName returns an attribute KeyValue conforming to the
8060 // "k8s.cronjob.name" semantic conventions. It represents the name of the
8061 // CronJob.
8062 func K8SCronJobName(val string) attribute.KeyValue {
8063 return K8SCronJobNameKey.String(val)
8064 }
8065
8066 // K8SCronJobUID returns an attribute KeyValue conforming to the
8067 // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
8068 func K8SCronJobUID(val string) attribute.KeyValue {
8069 return K8SCronJobUIDKey.String(val)
8070 }
8071
8072 // K8SDaemonSetAnnotation returns an attribute KeyValue conforming to the
8073 // "k8s.daemonset.annotation" semantic conventions. It represents the annotation
8074 // key-value pairs placed on the DaemonSet.
8075 func K8SDaemonSetAnnotation(key string, val string) attribute.KeyValue {
8076 return attribute.String("k8s.daemonset.annotation."+key, val)
8077 }
8078
8079 // K8SDaemonSetLabel returns an attribute KeyValue conforming to the
8080 // "k8s.daemonset.label" semantic conventions. It represents the label key-value
8081 // pairs placed on the DaemonSet.
8082 func K8SDaemonSetLabel(key string, val string) attribute.KeyValue {
8083 return attribute.String("k8s.daemonset.label."+key, val)
8084 }
8085
8086 // K8SDaemonSetName returns an attribute KeyValue conforming to the
8087 // "k8s.daemonset.name" semantic conventions. It represents the name of the
8088 // DaemonSet.
8089 func K8SDaemonSetName(val string) attribute.KeyValue {
8090 return K8SDaemonSetNameKey.String(val)
8091 }
8092
8093 // K8SDaemonSetUID returns an attribute KeyValue conforming to the
8094 // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
8095 // DaemonSet.
8096 func K8SDaemonSetUID(val string) attribute.KeyValue {
8097 return K8SDaemonSetUIDKey.String(val)
8098 }
8099
8100 // K8SDeploymentAnnotation returns an attribute KeyValue conforming to the
8101 // "k8s.deployment.annotation" semantic conventions. It represents the annotation
8102 // key-value pairs placed on the Deployment.
8103 func K8SDeploymentAnnotation(key string, val string) attribute.KeyValue {
8104 return attribute.String("k8s.deployment.annotation."+key, val)
8105 }
8106
8107 // K8SDeploymentLabel returns an attribute KeyValue conforming to the
8108 // "k8s.deployment.label" semantic conventions. It represents the label key-value
8109 // pairs placed on the Deployment.
8110 func K8SDeploymentLabel(key string, val string) attribute.KeyValue {
8111 return attribute.String("k8s.deployment.label."+key, val)
8112 }
8113
8114 // K8SDeploymentName returns an attribute KeyValue conforming to the
8115 // "k8s.deployment.name" semantic conventions. It represents the name of the
8116 // Deployment.
8117 func K8SDeploymentName(val string) attribute.KeyValue {
8118 return K8SDeploymentNameKey.String(val)
8119 }
8120
8121 // K8SDeploymentUID returns an attribute KeyValue conforming to the
8122 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
8123 // Deployment.
8124 func K8SDeploymentUID(val string) attribute.KeyValue {
8125 return K8SDeploymentUIDKey.String(val)
8126 }
8127
8128 // K8SHPAName returns an attribute KeyValue conforming to the "k8s.hpa.name"
8129 // semantic conventions. It represents the name of the horizontal pod autoscaler.
8130 func K8SHPAName(val string) attribute.KeyValue {
8131 return K8SHPANameKey.String(val)
8132 }
8133
8134 // K8SHPAUID returns an attribute KeyValue conforming to the "k8s.hpa.uid"
8135 // semantic conventions. It represents the UID of the horizontal pod autoscaler.
8136 func K8SHPAUID(val string) attribute.KeyValue {
8137 return K8SHPAUIDKey.String(val)
8138 }
8139
8140 // K8SJobAnnotation returns an attribute KeyValue conforming to the
8141 // "k8s.job.annotation" semantic conventions. It represents the annotation
8142 // key-value pairs placed on the Job.
8143 func K8SJobAnnotation(key string, val string) attribute.KeyValue {
8144 return attribute.String("k8s.job.annotation."+key, val)
8145 }
8146
8147 // K8SJobLabel returns an attribute KeyValue conforming to the "k8s.job.label"
8148 // semantic conventions. It represents the label key-value pairs placed on the
8149 // Job.
8150 func K8SJobLabel(key string, val string) attribute.KeyValue {
8151 return attribute.String("k8s.job.label."+key, val)
8152 }
8153
8154 // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
8155 // semantic conventions. It represents the name of the Job.
8156 func K8SJobName(val string) attribute.KeyValue {
8157 return K8SJobNameKey.String(val)
8158 }
8159
8160 // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
8161 // semantic conventions. It represents the UID of the Job.
8162 func K8SJobUID(val string) attribute.KeyValue {
8163 return K8SJobUIDKey.String(val)
8164 }
8165
8166 // K8SNamespaceAnnotation returns an attribute KeyValue conforming to the
8167 // "k8s.namespace.annotation" semantic conventions. It represents the annotation
8168 // key-value pairs placed on the Namespace.
8169 func K8SNamespaceAnnotation(key string, val string) attribute.KeyValue {
8170 return attribute.String("k8s.namespace.annotation."+key, val)
8171 }
8172
8173 // K8SNamespaceLabel returns an attribute KeyValue conforming to the
8174 // "k8s.namespace.label" semantic conventions. It represents the label key-value
8175 // pairs placed on the Namespace.
8176 func K8SNamespaceLabel(key string, val string) attribute.KeyValue {
8177 return attribute.String("k8s.namespace.label."+key, val)
8178 }
8179
8180 // K8SNamespaceName returns an attribute KeyValue conforming to the
8181 // "k8s.namespace.name" semantic conventions. It represents the name of the
8182 // namespace that the pod is running in.
8183 func K8SNamespaceName(val string) attribute.KeyValue {
8184 return K8SNamespaceNameKey.String(val)
8185 }
8186
8187 // K8SNodeAnnotation returns an attribute KeyValue conforming to the
8188 // "k8s.node.annotation" semantic conventions. It represents the annotation
8189 // placed on the Node, the `<key>` being the annotation name, the value being the
8190 // annotation value, even if the value is empty.
8191 func K8SNodeAnnotation(key string, val string) attribute.KeyValue {
8192 return attribute.String("k8s.node.annotation."+key, val)
8193 }
8194
8195 // K8SNodeLabel returns an attribute KeyValue conforming to the "k8s.node.label"
8196 // semantic conventions. It represents the label placed on the Node, the `<key>`
8197 // being the label name, the value being the label value, even if the value is
8198 // empty.
8199 func K8SNodeLabel(key string, val string) attribute.KeyValue {
8200 return attribute.String("k8s.node.label."+key, val)
8201 }
8202
8203 // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
8204 // semantic conventions. It represents the name of the Node.
8205 func K8SNodeName(val string) attribute.KeyValue {
8206 return K8SNodeNameKey.String(val)
8207 }
8208
8209 // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
8210 // semantic conventions. It represents the UID of the Node.
8211 func K8SNodeUID(val string) attribute.KeyValue {
8212 return K8SNodeUIDKey.String(val)
8213 }
8214
8215 // K8SPodAnnotation returns an attribute KeyValue conforming to the
8216 // "k8s.pod.annotation" semantic conventions. It represents the annotation placed
8217 // on the Pod, the `<key>` being the annotation name, the value being the
8218 // annotation value.
8219 func K8SPodAnnotation(key string, val string) attribute.KeyValue {
8220 return attribute.String("k8s.pod.annotation."+key, val)
8221 }
8222
8223 // K8SPodLabel returns an attribute KeyValue conforming to the "k8s.pod.label"
8224 // semantic conventions. It represents the label placed on the Pod, the `<key>`
8225 // being the label name, the value being the label value.
8226 func K8SPodLabel(key string, val string) attribute.KeyValue {
8227 return attribute.String("k8s.pod.label."+key, val)
8228 }
8229
8230 // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
8231 // semantic conventions. It represents the name of the Pod.
8232 func K8SPodName(val string) attribute.KeyValue {
8233 return K8SPodNameKey.String(val)
8234 }
8235
8236 // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
8237 // semantic conventions. It represents the UID of the Pod.
8238 func K8SPodUID(val string) attribute.KeyValue {
8239 return K8SPodUIDKey.String(val)
8240 }
8241
8242 // K8SReplicaSetAnnotation returns an attribute KeyValue conforming to the
8243 // "k8s.replicaset.annotation" semantic conventions. It represents the annotation
8244 // key-value pairs placed on the ReplicaSet.
8245 func K8SReplicaSetAnnotation(key string, val string) attribute.KeyValue {
8246 return attribute.String("k8s.replicaset.annotation."+key, val)
8247 }
8248
8249 // K8SReplicaSetLabel returns an attribute KeyValue conforming to the
8250 // "k8s.replicaset.label" semantic conventions. It represents the label key-value
8251 // pairs placed on the ReplicaSet.
8252 func K8SReplicaSetLabel(key string, val string) attribute.KeyValue {
8253 return attribute.String("k8s.replicaset.label."+key, val)
8254 }
8255
8256 // K8SReplicaSetName returns an attribute KeyValue conforming to the
8257 // "k8s.replicaset.name" semantic conventions. It represents the name of the
8258 // ReplicaSet.
8259 func K8SReplicaSetName(val string) attribute.KeyValue {
8260 return K8SReplicaSetNameKey.String(val)
8261 }
8262
8263 // K8SReplicaSetUID returns an attribute KeyValue conforming to the
8264 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
8265 // ReplicaSet.
8266 func K8SReplicaSetUID(val string) attribute.KeyValue {
8267 return K8SReplicaSetUIDKey.String(val)
8268 }
8269
8270 // K8SReplicationControllerName returns an attribute KeyValue conforming to the
8271 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
8272 // of the replication controller.
8273 func K8SReplicationControllerName(val string) attribute.KeyValue {
8274 return K8SReplicationControllerNameKey.String(val)
8275 }
8276
8277 // K8SReplicationControllerUID returns an attribute KeyValue conforming to the
8278 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID of
8279 // the replication controller.
8280 func K8SReplicationControllerUID(val string) attribute.KeyValue {
8281 return K8SReplicationControllerUIDKey.String(val)
8282 }
8283
8284 // K8SResourceQuotaName returns an attribute KeyValue conforming to the
8285 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
8286 // resource quota.
8287 func K8SResourceQuotaName(val string) attribute.KeyValue {
8288 return K8SResourceQuotaNameKey.String(val)
8289 }
8290
8291 // K8SResourceQuotaUID returns an attribute KeyValue conforming to the
8292 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
8293 // resource quota.
8294 func K8SResourceQuotaUID(val string) attribute.KeyValue {
8295 return K8SResourceQuotaUIDKey.String(val)
8296 }
8297
8298 // K8SStatefulSetAnnotation returns an attribute KeyValue conforming to the
8299 // "k8s.statefulset.annotation" semantic conventions. It represents the
8300 // annotation key-value pairs placed on the StatefulSet.
8301 func K8SStatefulSetAnnotation(key string, val string) attribute.KeyValue {
8302 return attribute.String("k8s.statefulset.annotation."+key, val)
8303 }
8304
8305 // K8SStatefulSetLabel returns an attribute KeyValue conforming to the
8306 // "k8s.statefulset.label" semantic conventions. It represents the label
8307 // key-value pairs placed on the StatefulSet.
8308 func K8SStatefulSetLabel(key string, val string) attribute.KeyValue {
8309 return attribute.String("k8s.statefulset.label."+key, val)
8310 }
8311
8312 // K8SStatefulSetName returns an attribute KeyValue conforming to the
8313 // "k8s.statefulset.name" semantic conventions. It represents the name of the
8314 // StatefulSet.
8315 func K8SStatefulSetName(val string) attribute.KeyValue {
8316 return K8SStatefulSetNameKey.String(val)
8317 }
8318
8319 // K8SStatefulSetUID returns an attribute KeyValue conforming to the
8320 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
8321 // StatefulSet.
8322 func K8SStatefulSetUID(val string) attribute.KeyValue {
8323 return K8SStatefulSetUIDKey.String(val)
8324 }
8325
8326 // K8SVolumeName returns an attribute KeyValue conforming to the
8327 // "k8s.volume.name" semantic conventions. It represents the name of the K8s
8328 // volume.
8329 func K8SVolumeName(val string) attribute.KeyValue {
8330 return K8SVolumeNameKey.String(val)
8331 }
8332
8333 // Enum values for k8s.namespace.phase
8334 var (
8335 // Active namespace phase as described by [K8s API]
8336 // Stability: development
8337 //
8338 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
8339 K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active")
8340 // Terminating namespace phase as described by [K8s API]
8341 // Stability: development
8342 //
8343 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
8344 K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating")
8345 )
8346
8347 // Enum values for k8s.volume.type
8348 var (
8349 // A [persistentVolumeClaim] volume
8350 // Stability: development
8351 //
8352 // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
8353 K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
8354 // A [configMap] volume
8355 // Stability: development
8356 //
8357 // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
8358 K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
8359 // A [downwardAPI] volume
8360 // Stability: development
8361 //
8362 // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
8363 K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
8364 // An [emptyDir] volume
8365 // Stability: development
8366 //
8367 // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
8368 K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
8369 // A [secret] volume
8370 // Stability: development
8371 //
8372 // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
8373 K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
8374 // A [local] volume
8375 // Stability: development
8376 //
8377 // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local
8378 K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
8379 )
8380
8381 // Namespace: linux
8382 const (
8383 // LinuxMemorySlabStateKey is the attribute Key conforming to the
8384 // "linux.memory.slab.state" semantic conventions. It represents the Linux Slab
8385 // memory state.
8386 //
8387 // Type: Enum
8388 // RequirementLevel: Recommended
8389 // Stability: Development
8390 //
8391 // Examples: "reclaimable", "unreclaimable"
8392 LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state")
8393 )
8394
8395 // Enum values for linux.memory.slab.state
8396 var (
8397 // reclaimable
8398 // Stability: development
8399 LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable")
8400 // unreclaimable
8401 // Stability: development
8402 LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable")
8403 )
8404
8405 // Namespace: log
8406 const (
8407 // LogFileNameKey is the attribute Key conforming to the "log.file.name"
8408 // semantic conventions. It represents the basename of the file.
8409 //
8410 // Type: string
8411 // RequirementLevel: Recommended
8412 // Stability: Development
8413 //
8414 // Examples: "audit.log"
8415 LogFileNameKey = attribute.Key("log.file.name")
8416
8417 // LogFileNameResolvedKey is the attribute Key conforming to the
8418 // "log.file.name_resolved" semantic conventions. It represents the basename of
8419 // the file, with symlinks resolved.
8420 //
8421 // Type: string
8422 // RequirementLevel: Recommended
8423 // Stability: Development
8424 //
8425 // Examples: "uuid.log"
8426 LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
8427
8428 // LogFilePathKey is the attribute Key conforming to the "log.file.path"
8429 // semantic conventions. It represents the full path to the file.
8430 //
8431 // Type: string
8432 // RequirementLevel: Recommended
8433 // Stability: Development
8434 //
8435 // Examples: "/var/log/mysql/audit.log"
8436 LogFilePathKey = attribute.Key("log.file.path")
8437
8438 // LogFilePathResolvedKey is the attribute Key conforming to the
8439 // "log.file.path_resolved" semantic conventions. It represents the full path to
8440 // the file, with symlinks resolved.
8441 //
8442 // Type: string
8443 // RequirementLevel: Recommended
8444 // Stability: Development
8445 //
8446 // Examples: "/var/lib/docker/uuid.log"
8447 LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
8448
8449 // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
8450 // conventions. It represents the stream associated with the log. See below for
8451 // a list of well-known values.
8452 //
8453 // Type: Enum
8454 // RequirementLevel: Recommended
8455 // Stability: Development
8456 //
8457 // Examples:
8458 LogIostreamKey = attribute.Key("log.iostream")
8459
8460 // LogRecordOriginalKey is the attribute Key conforming to the
8461 // "log.record.original" semantic conventions. It represents the complete
8462 // original Log Record.
8463 //
8464 // Type: string
8465 // RequirementLevel: Recommended
8466 // Stability: Development
8467 //
8468 // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
8469 // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
8470 // Note: This value MAY be added when processing a Log Record which was
8471 // originally transmitted as a string or equivalent data type AND the Body field
8472 // of the Log Record does not contain the same value. (e.g. a syslog or a log
8473 // record read from a file.)
8474 LogRecordOriginalKey = attribute.Key("log.record.original")
8475
8476 // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
8477 // semantic conventions. It represents a unique identifier for the Log Record.
8478 //
8479 // Type: string
8480 // RequirementLevel: Recommended
8481 // Stability: Development
8482 //
8483 // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
8484 // Note: If an id is provided, other log records with the same id will be
8485 // considered duplicates and can be removed safely. This means, that two
8486 // distinguishable log records MUST have different values.
8487 // The id MAY be an
8488 // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
8489 // identifiers (e.g. UUID) may be used as needed.
8490 //
8491 // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
8492 LogRecordUIDKey = attribute.Key("log.record.uid")
8493 )
8494
8495 // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
8496 // semantic conventions. It represents the basename of the file.
8497 func LogFileName(val string) attribute.KeyValue {
8498 return LogFileNameKey.String(val)
8499 }
8500
8501 // LogFileNameResolved returns an attribute KeyValue conforming to the
8502 // "log.file.name_resolved" semantic conventions. It represents the basename of
8503 // the file, with symlinks resolved.
8504 func LogFileNameResolved(val string) attribute.KeyValue {
8505 return LogFileNameResolvedKey.String(val)
8506 }
8507
8508 // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
8509 // semantic conventions. It represents the full path to the file.
8510 func LogFilePath(val string) attribute.KeyValue {
8511 return LogFilePathKey.String(val)
8512 }
8513
8514 // LogFilePathResolved returns an attribute KeyValue conforming to the
8515 // "log.file.path_resolved" semantic conventions. It represents the full path to
8516 // the file, with symlinks resolved.
8517 func LogFilePathResolved(val string) attribute.KeyValue {
8518 return LogFilePathResolvedKey.String(val)
8519 }
8520
8521 // LogRecordOriginal returns an attribute KeyValue conforming to the
8522 // "log.record.original" semantic conventions. It represents the complete
8523 // original Log Record.
8524 func LogRecordOriginal(val string) attribute.KeyValue {
8525 return LogRecordOriginalKey.String(val)
8526 }
8527
8528 // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
8529 // semantic conventions. It represents a unique identifier for the Log Record.
8530 func LogRecordUID(val string) attribute.KeyValue {
8531 return LogRecordUIDKey.String(val)
8532 }
8533
8534 // Enum values for log.iostream
8535 var (
8536 // Logs from stdout stream
8537 // Stability: development
8538 LogIostreamStdout = LogIostreamKey.String("stdout")
8539 // Events from stderr stream
8540 // Stability: development
8541 LogIostreamStderr = LogIostreamKey.String("stderr")
8542 )
8543
8544 // Namespace: messaging
8545 const (
8546 // MessagingBatchMessageCountKey is the attribute Key conforming to the
8547 // "messaging.batch.message_count" semantic conventions. It represents the
8548 // number of messages sent, received, or processed in the scope of the batching
8549 // operation.
8550 //
8551 // Type: int
8552 // RequirementLevel: Recommended
8553 // Stability: Development
8554 //
8555 // Examples: 0, 1, 2
8556 // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
8557 // spans that operate with a single message. When a messaging client library
8558 // supports both batch and single-message API for the same operation,
8559 // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
8560 // and SHOULD NOT use it for single-message APIs.
8561 MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
8562
8563 // MessagingClientIDKey is the attribute Key conforming to the
8564 // "messaging.client.id" semantic conventions. It represents a unique identifier
8565 // for the client that consumes or produces a message.
8566 //
8567 // Type: string
8568 // RequirementLevel: Recommended
8569 // Stability: Development
8570 //
8571 // Examples: "client-5", "myhost@8742@s8083jm"
8572 MessagingClientIDKey = attribute.Key("messaging.client.id")
8573
8574 // MessagingConsumerGroupNameKey is the attribute Key conforming to the
8575 // "messaging.consumer.group.name" semantic conventions. It represents the name
8576 // of the consumer group with which a consumer is associated.
8577 //
8578 // Type: string
8579 // RequirementLevel: Recommended
8580 // Stability: Development
8581 //
8582 // Examples: "my-group", "indexer"
8583 // Note: Semantic conventions for individual messaging systems SHOULD document
8584 // whether `messaging.consumer.group.name` is applicable and what it means in
8585 // the context of that system.
8586 MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
8587
8588 // MessagingDestinationAnonymousKey is the attribute Key conforming to the
8589 // "messaging.destination.anonymous" semantic conventions. It represents a
8590 // boolean that is true if the message destination is anonymous (could be
8591 // unnamed or have auto-generated name).
8592 //
8593 // Type: boolean
8594 // RequirementLevel: Recommended
8595 // Stability: Development
8596 //
8597 // Examples:
8598 MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
8599
8600 // MessagingDestinationNameKey is the attribute Key conforming to the
8601 // "messaging.destination.name" semantic conventions. It represents the message
8602 // destination name.
8603 //
8604 // Type: string
8605 // RequirementLevel: Recommended
8606 // Stability: Development
8607 //
8608 // Examples: "MyQueue", "MyTopic"
8609 // Note: Destination name SHOULD uniquely identify a specific queue, topic or
8610 // other entity within the broker. If
8611 // the broker doesn't have such notion, the destination name SHOULD uniquely
8612 // identify the broker.
8613 MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
8614
8615 // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
8616 // "messaging.destination.partition.id" semantic conventions. It represents the
8617 // identifier of the partition messages are sent to or received from, unique
8618 // within the `messaging.destination.name`.
8619 //
8620 // Type: string
8621 // RequirementLevel: Recommended
8622 // Stability: Development
8623 //
8624 // Examples: 1
8625 MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
8626
8627 // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
8628 // the "messaging.destination.subscription.name" semantic conventions. It
8629 // represents the name of the destination subscription from which a message is
8630 // consumed.
8631 //
8632 // Type: string
8633 // RequirementLevel: Recommended
8634 // Stability: Development
8635 //
8636 // Examples: "subscription-a"
8637 // Note: Semantic conventions for individual messaging systems SHOULD document
8638 // whether `messaging.destination.subscription.name` is applicable and what it
8639 // means in the context of that system.
8640 MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
8641
8642 // MessagingDestinationTemplateKey is the attribute Key conforming to the
8643 // "messaging.destination.template" semantic conventions. It represents the low
8644 // cardinality representation of the messaging destination name.
8645 //
8646 // Type: string
8647 // RequirementLevel: Recommended
8648 // Stability: Development
8649 //
8650 // Examples: "/customers/{customerId}"
8651 // Note: Destination names could be constructed from templates. An example would
8652 // be a destination name involving a user name or product id. Although the
8653 // destination name in this case is of high cardinality, the underlying template
8654 // is of low cardinality and can be effectively used for grouping and
8655 // aggregation.
8656 MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
8657
8658 // MessagingDestinationTemporaryKey is the attribute Key conforming to the
8659 // "messaging.destination.temporary" semantic conventions. It represents a
8660 // boolean that is true if the message destination is temporary and might not
8661 // exist anymore after messages are processed.
8662 //
8663 // Type: boolean
8664 // RequirementLevel: Recommended
8665 // Stability: Development
8666 //
8667 // Examples:
8668 MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
8669
8670 // MessagingEventHubsMessageEnqueuedTimeKey is the attribute Key conforming to
8671 // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
8672 // represents the UTC epoch seconds at which the message has been accepted and
8673 // stored in the entity.
8674 //
8675 // Type: int
8676 // RequirementLevel: Recommended
8677 // Stability: Development
8678 MessagingEventHubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
8679
8680 // MessagingGCPPubSubMessageAckDeadlineKey is the attribute Key conforming to
8681 // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
8682 // represents the ack deadline in seconds set for the modify ack deadline
8683 // request.
8684 //
8685 // Type: int
8686 // RequirementLevel: Recommended
8687 // Stability: Development
8688 MessagingGCPPubSubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
8689
8690 // MessagingGCPPubSubMessageAckIDKey is the attribute Key conforming to the
8691 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
8692 // ack id for a given message.
8693 //
8694 // Type: string
8695 // RequirementLevel: Recommended
8696 // Stability: Development
8697 //
8698 // Examples: ack_id
8699 MessagingGCPPubSubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
8700
8701 // MessagingGCPPubSubMessageDeliveryAttemptKey is the attribute Key conforming
8702 // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
8703 // It represents the delivery attempt for a given message.
8704 //
8705 // Type: int
8706 // RequirementLevel: Recommended
8707 // Stability: Development
8708 MessagingGCPPubSubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
8709
8710 // MessagingGCPPubSubMessageOrderingKeyKey is the attribute Key conforming to
8711 // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
8712 // represents the ordering key for a given message. If the attribute is not
8713 // present, the message does not have an ordering key.
8714 //
8715 // Type: string
8716 // RequirementLevel: Recommended
8717 // Stability: Development
8718 //
8719 // Examples: ordering_key
8720 MessagingGCPPubSubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
8721
8722 // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
8723 // "messaging.kafka.message.key" semantic conventions. It represents the message
8724 // keys in Kafka are used for grouping alike messages to ensure they're
8725 // processed on the same partition. They differ from `messaging.message.id` in
8726 // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
8727 //
8728 // Type: string
8729 // RequirementLevel: Recommended
8730 // Stability: Development
8731 //
8732 // Examples: myKey
8733 // Note: If the key type is not string, it's string representation has to be
8734 // supplied for the attribute. If the key has no unambiguous, canonical string
8735 // form, don't include its value.
8736 MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
8737
8738 // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
8739 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
8740 // boolean that is true if the message is a tombstone.
8741 //
8742 // Type: boolean
8743 // RequirementLevel: Recommended
8744 // Stability: Development
8745 //
8746 // Examples:
8747 MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
8748
8749 // MessagingKafkaOffsetKey is the attribute Key conforming to the
8750 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
8751 // record in the corresponding Kafka partition.
8752 //
8753 // Type: int
8754 // RequirementLevel: Recommended
8755 // Stability: Development
8756 MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
8757
8758 // MessagingMessageBodySizeKey is the attribute Key conforming to the
8759 // "messaging.message.body.size" semantic conventions. It represents the size of
8760 // the message body in bytes.
8761 //
8762 // Type: int
8763 // RequirementLevel: Recommended
8764 // Stability: Development
8765 //
8766 // Note: This can refer to both the compressed or uncompressed body size. If
8767 // both sizes are known, the uncompressed
8768 // body size should be used.
8769 MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
8770
8771 // MessagingMessageConversationIDKey is the attribute Key conforming to the
8772 // "messaging.message.conversation_id" semantic conventions. It represents the
8773 // conversation ID identifying the conversation to which the message belongs,
8774 // represented as a string. Sometimes called "Correlation ID".
8775 //
8776 // Type: string
8777 // RequirementLevel: Recommended
8778 // Stability: Development
8779 //
8780 // Examples: MyConversationId
8781 MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
8782
8783 // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
8784 // "messaging.message.envelope.size" semantic conventions. It represents the
8785 // size of the message body and metadata in bytes.
8786 //
8787 // Type: int
8788 // RequirementLevel: Recommended
8789 // Stability: Development
8790 //
8791 // Note: This can refer to both the compressed or uncompressed size. If both
8792 // sizes are known, the uncompressed
8793 // size should be used.
8794 MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
8795
8796 // MessagingMessageIDKey is the attribute Key conforming to the
8797 // "messaging.message.id" semantic conventions. It represents a value used by
8798 // the messaging system as an identifier for the message, represented as a
8799 // string.
8800 //
8801 // Type: string
8802 // RequirementLevel: Recommended
8803 // Stability: Development
8804 //
8805 // Examples: 452a7c7c7c7048c2f887f61572b18fc2
8806 MessagingMessageIDKey = attribute.Key("messaging.message.id")
8807
8808 // MessagingOperationNameKey is the attribute Key conforming to the
8809 // "messaging.operation.name" semantic conventions. It represents the
8810 // system-specific name of the messaging operation.
8811 //
8812 // Type: string
8813 // RequirementLevel: Recommended
8814 // Stability: Development
8815 //
8816 // Examples: "ack", "nack", "send"
8817 MessagingOperationNameKey = attribute.Key("messaging.operation.name")
8818
8819 // MessagingOperationTypeKey is the attribute Key conforming to the
8820 // "messaging.operation.type" semantic conventions. It represents a string
8821 // identifying the type of the messaging operation.
8822 //
8823 // Type: Enum
8824 // RequirementLevel: Recommended
8825 // Stability: Development
8826 //
8827 // Examples:
8828 // Note: If a custom value is used, it MUST be of low cardinality.
8829 MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
8830
8831 // MessagingRabbitMQDestinationRoutingKeyKey is the attribute Key conforming to
8832 // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
8833 // represents the rabbitMQ message routing key.
8834 //
8835 // Type: string
8836 // RequirementLevel: Recommended
8837 // Stability: Development
8838 //
8839 // Examples: myKey
8840 MessagingRabbitMQDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
8841
8842 // MessagingRabbitMQMessageDeliveryTagKey is the attribute Key conforming to the
8843 // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
8844 // the rabbitMQ message delivery tag.
8845 //
8846 // Type: int
8847 // RequirementLevel: Recommended
8848 // Stability: Development
8849 MessagingRabbitMQMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
8850
8851 // MessagingRocketMQConsumptionModelKey is the attribute Key conforming to the
8852 // "messaging.rocketmq.consumption_model" semantic conventions. It represents
8853 // the model of message consumption. This only applies to consumer spans.
8854 //
8855 // Type: Enum
8856 // RequirementLevel: Recommended
8857 // Stability: Development
8858 //
8859 // Examples:
8860 MessagingRocketMQConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
8861
8862 // MessagingRocketMQMessageDelayTimeLevelKey is the attribute Key conforming to
8863 // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
8864 // represents the delay time level for delay message, which determines the
8865 // message delay time.
8866 //
8867 // Type: int
8868 // RequirementLevel: Recommended
8869 // Stability: Development
8870 MessagingRocketMQMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
8871
8872 // MessagingRocketMQMessageDeliveryTimestampKey is the attribute Key conforming
8873 // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
8874 // It represents the timestamp in milliseconds that the delay message is
8875 // expected to be delivered to consumer.
8876 //
8877 // Type: int
8878 // RequirementLevel: Recommended
8879 // Stability: Development
8880 MessagingRocketMQMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
8881
8882 // MessagingRocketMQMessageGroupKey is the attribute Key conforming to the
8883 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
8884 // is essential for FIFO message. Messages that belong to the same message group
8885 // are always processed one by one within the same consumer group.
8886 //
8887 // Type: string
8888 // RequirementLevel: Recommended
8889 // Stability: Development
8890 //
8891 // Examples: myMessageGroup
8892 MessagingRocketMQMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
8893
8894 // MessagingRocketMQMessageKeysKey is the attribute Key conforming to the
8895 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
8896 // key(s) of message, another way to mark message besides message id.
8897 //
8898 // Type: string[]
8899 // RequirementLevel: Recommended
8900 // Stability: Development
8901 //
8902 // Examples: "keyA", "keyB"
8903 MessagingRocketMQMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
8904
8905 // MessagingRocketMQMessageTagKey is the attribute Key conforming to the
8906 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
8907 // secondary classifier of message besides topic.
8908 //
8909 // Type: string
8910 // RequirementLevel: Recommended
8911 // Stability: Development
8912 //
8913 // Examples: tagA
8914 MessagingRocketMQMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
8915
8916 // MessagingRocketMQMessageTypeKey is the attribute Key conforming to the
8917 // "messaging.rocketmq.message.type" semantic conventions. It represents the
8918 // type of message.
8919 //
8920 // Type: Enum
8921 // RequirementLevel: Recommended
8922 // Stability: Development
8923 //
8924 // Examples:
8925 MessagingRocketMQMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
8926
8927 // MessagingRocketMQNamespaceKey is the attribute Key conforming to the
8928 // "messaging.rocketmq.namespace" semantic conventions. It represents the
8929 // namespace of RocketMQ resources, resources in different namespaces are
8930 // individual.
8931 //
8932 // Type: string
8933 // RequirementLevel: Recommended
8934 // Stability: Development
8935 //
8936 // Examples: myNamespace
8937 MessagingRocketMQNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
8938
8939 // MessagingServiceBusDispositionStatusKey is the attribute Key conforming to
8940 // the "messaging.servicebus.disposition_status" semantic conventions. It
8941 // represents the describes the [settlement type].
8942 //
8943 // Type: Enum
8944 // RequirementLevel: Recommended
8945 // Stability: Development
8946 //
8947 // Examples:
8948 //
8949 // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
8950 MessagingServiceBusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
8951
8952 // MessagingServiceBusMessageDeliveryCountKey is the attribute Key conforming to
8953 // the "messaging.servicebus.message.delivery_count" semantic conventions. It
8954 // represents the number of deliveries that have been attempted for this
8955 // message.
8956 //
8957 // Type: int
8958 // RequirementLevel: Recommended
8959 // Stability: Development
8960 MessagingServiceBusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
8961
8962 // MessagingServiceBusMessageEnqueuedTimeKey is the attribute Key conforming to
8963 // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
8964 // represents the UTC epoch seconds at which the message has been accepted and
8965 // stored in the entity.
8966 //
8967 // Type: int
8968 // RequirementLevel: Recommended
8969 // Stability: Development
8970 MessagingServiceBusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
8971
8972 // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
8973 // semantic conventions. It represents the messaging system as identified by the
8974 // client instrumentation.
8975 //
8976 // Type: Enum
8977 // RequirementLevel: Recommended
8978 // Stability: Development
8979 //
8980 // Examples:
8981 // Note: The actual messaging system may differ from the one known by the
8982 // client. For example, when using Kafka client libraries to communicate with
8983 // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
8984 // instrumentation's best knowledge.
8985 MessagingSystemKey = attribute.Key("messaging.system")
8986 )
8987
8988 // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
8989 // "messaging.batch.message_count" semantic conventions. It represents the number
8990 // of messages sent, received, or processed in the scope of the batching
8991 // operation.
8992 func MessagingBatchMessageCount(val int) attribute.KeyValue {
8993 return MessagingBatchMessageCountKey.Int(val)
8994 }
8995
8996 // MessagingClientID returns an attribute KeyValue conforming to the
8997 // "messaging.client.id" semantic conventions. It represents a unique identifier
8998 // for the client that consumes or produces a message.
8999 func MessagingClientID(val string) attribute.KeyValue {
9000 return MessagingClientIDKey.String(val)
9001 }
9002
9003 // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
9004 // "messaging.consumer.group.name" semantic conventions. It represents the name
9005 // of the consumer group with which a consumer is associated.
9006 func MessagingConsumerGroupName(val string) attribute.KeyValue {
9007 return MessagingConsumerGroupNameKey.String(val)
9008 }
9009
9010 // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
9011 // "messaging.destination.anonymous" semantic conventions. It represents a
9012 // boolean that is true if the message destination is anonymous (could be unnamed
9013 // or have auto-generated name).
9014 func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
9015 return MessagingDestinationAnonymousKey.Bool(val)
9016 }
9017
9018 // MessagingDestinationName returns an attribute KeyValue conforming to the
9019 // "messaging.destination.name" semantic conventions. It represents the message
9020 // destination name.
9021 func MessagingDestinationName(val string) attribute.KeyValue {
9022 return MessagingDestinationNameKey.String(val)
9023 }
9024
9025 // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
9026 // the "messaging.destination.partition.id" semantic conventions. It represents
9027 // the identifier of the partition messages are sent to or received from, unique
9028 // within the `messaging.destination.name`.
9029 func MessagingDestinationPartitionID(val string) attribute.KeyValue {
9030 return MessagingDestinationPartitionIDKey.String(val)
9031 }
9032
9033 // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
9034 // to the "messaging.destination.subscription.name" semantic conventions. It
9035 // represents the name of the destination subscription from which a message is
9036 // consumed.
9037 func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
9038 return MessagingDestinationSubscriptionNameKey.String(val)
9039 }
9040
9041 // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
9042 // "messaging.destination.template" semantic conventions. It represents the low
9043 // cardinality representation of the messaging destination name.
9044 func MessagingDestinationTemplate(val string) attribute.KeyValue {
9045 return MessagingDestinationTemplateKey.String(val)
9046 }
9047
9048 // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
9049 // "messaging.destination.temporary" semantic conventions. It represents a
9050 // boolean that is true if the message destination is temporary and might not
9051 // exist anymore after messages are processed.
9052 func MessagingDestinationTemporary(val bool) attribute.KeyValue {
9053 return MessagingDestinationTemporaryKey.Bool(val)
9054 }
9055
9056 // MessagingEventHubsMessageEnqueuedTime returns an attribute KeyValue conforming
9057 // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
9058 // represents the UTC epoch seconds at which the message has been accepted and
9059 // stored in the entity.
9060 func MessagingEventHubsMessageEnqueuedTime(val int) attribute.KeyValue {
9061 return MessagingEventHubsMessageEnqueuedTimeKey.Int(val)
9062 }
9063
9064 // MessagingGCPPubSubMessageAckDeadline returns an attribute KeyValue conforming
9065 // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
9066 // represents the ack deadline in seconds set for the modify ack deadline
9067 // request.
9068 func MessagingGCPPubSubMessageAckDeadline(val int) attribute.KeyValue {
9069 return MessagingGCPPubSubMessageAckDeadlineKey.Int(val)
9070 }
9071
9072 // MessagingGCPPubSubMessageAckID returns an attribute KeyValue conforming to the
9073 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
9074 // ack id for a given message.
9075 func MessagingGCPPubSubMessageAckID(val string) attribute.KeyValue {
9076 return MessagingGCPPubSubMessageAckIDKey.String(val)
9077 }
9078
9079 // MessagingGCPPubSubMessageDeliveryAttempt returns an attribute KeyValue
9080 // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
9081 // conventions. It represents the delivery attempt for a given message.
9082 func MessagingGCPPubSubMessageDeliveryAttempt(val int) attribute.KeyValue {
9083 return MessagingGCPPubSubMessageDeliveryAttemptKey.Int(val)
9084 }
9085
9086 // MessagingGCPPubSubMessageOrderingKey returns an attribute KeyValue conforming
9087 // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
9088 // represents the ordering key for a given message. If the attribute is not
9089 // present, the message does not have an ordering key.
9090 func MessagingGCPPubSubMessageOrderingKey(val string) attribute.KeyValue {
9091 return MessagingGCPPubSubMessageOrderingKeyKey.String(val)
9092 }
9093
9094 // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
9095 // "messaging.kafka.message.key" semantic conventions. It represents the message
9096 // keys in Kafka are used for grouping alike messages to ensure they're processed
9097 // on the same partition. They differ from `messaging.message.id` in that they're
9098 // not unique. If the key is `null`, the attribute MUST NOT be set.
9099 func MessagingKafkaMessageKey(val string) attribute.KeyValue {
9100 return MessagingKafkaMessageKeyKey.String(val)
9101 }
9102
9103 // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
9104 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
9105 // boolean that is true if the message is a tombstone.
9106 func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
9107 return MessagingKafkaMessageTombstoneKey.Bool(val)
9108 }
9109
9110 // MessagingKafkaOffset returns an attribute KeyValue conforming to the
9111 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
9112 // record in the corresponding Kafka partition.
9113 func MessagingKafkaOffset(val int) attribute.KeyValue {
9114 return MessagingKafkaOffsetKey.Int(val)
9115 }
9116
9117 // MessagingMessageBodySize returns an attribute KeyValue conforming to the
9118 // "messaging.message.body.size" semantic conventions. It represents the size of
9119 // the message body in bytes.
9120 func MessagingMessageBodySize(val int) attribute.KeyValue {
9121 return MessagingMessageBodySizeKey.Int(val)
9122 }
9123
9124 // MessagingMessageConversationID returns an attribute KeyValue conforming to the
9125 // "messaging.message.conversation_id" semantic conventions. It represents the
9126 // conversation ID identifying the conversation to which the message belongs,
9127 // represented as a string. Sometimes called "Correlation ID".
9128 func MessagingMessageConversationID(val string) attribute.KeyValue {
9129 return MessagingMessageConversationIDKey.String(val)
9130 }
9131
9132 // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
9133 // "messaging.message.envelope.size" semantic conventions. It represents the size
9134 // of the message body and metadata in bytes.
9135 func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
9136 return MessagingMessageEnvelopeSizeKey.Int(val)
9137 }
9138
9139 // MessagingMessageID returns an attribute KeyValue conforming to the
9140 // "messaging.message.id" semantic conventions. It represents a value used by the
9141 // messaging system as an identifier for the message, represented as a string.
9142 func MessagingMessageID(val string) attribute.KeyValue {
9143 return MessagingMessageIDKey.String(val)
9144 }
9145
9146 // MessagingOperationName returns an attribute KeyValue conforming to the
9147 // "messaging.operation.name" semantic conventions. It represents the
9148 // system-specific name of the messaging operation.
9149 func MessagingOperationName(val string) attribute.KeyValue {
9150 return MessagingOperationNameKey.String(val)
9151 }
9152
9153 // MessagingRabbitMQDestinationRoutingKey returns an attribute KeyValue
9154 // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
9155 // conventions. It represents the rabbitMQ message routing key.
9156 func MessagingRabbitMQDestinationRoutingKey(val string) attribute.KeyValue {
9157 return MessagingRabbitMQDestinationRoutingKeyKey.String(val)
9158 }
9159
9160 // MessagingRabbitMQMessageDeliveryTag returns an attribute KeyValue conforming
9161 // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
9162 // represents the rabbitMQ message delivery tag.
9163 func MessagingRabbitMQMessageDeliveryTag(val int) attribute.KeyValue {
9164 return MessagingRabbitMQMessageDeliveryTagKey.Int(val)
9165 }
9166
9167 // MessagingRocketMQMessageDelayTimeLevel returns an attribute KeyValue
9168 // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
9169 // conventions. It represents the delay time level for delay message, which
9170 // determines the message delay time.
9171 func MessagingRocketMQMessageDelayTimeLevel(val int) attribute.KeyValue {
9172 return MessagingRocketMQMessageDelayTimeLevelKey.Int(val)
9173 }
9174
9175 // MessagingRocketMQMessageDeliveryTimestamp returns an attribute KeyValue
9176 // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
9177 // conventions. It represents the timestamp in milliseconds that the delay
9178 // message is expected to be delivered to consumer.
9179 func MessagingRocketMQMessageDeliveryTimestamp(val int) attribute.KeyValue {
9180 return MessagingRocketMQMessageDeliveryTimestampKey.Int(val)
9181 }
9182
9183 // MessagingRocketMQMessageGroup returns an attribute KeyValue conforming to the
9184 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
9185 // is essential for FIFO message. Messages that belong to the same message group
9186 // are always processed one by one within the same consumer group.
9187 func MessagingRocketMQMessageGroup(val string) attribute.KeyValue {
9188 return MessagingRocketMQMessageGroupKey.String(val)
9189 }
9190
9191 // MessagingRocketMQMessageKeys returns an attribute KeyValue conforming to the
9192 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
9193 // key(s) of message, another way to mark message besides message id.
9194 func MessagingRocketMQMessageKeys(val ...string) attribute.KeyValue {
9195 return MessagingRocketMQMessageKeysKey.StringSlice(val)
9196 }
9197
9198 // MessagingRocketMQMessageTag returns an attribute KeyValue conforming to the
9199 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
9200 // secondary classifier of message besides topic.
9201 func MessagingRocketMQMessageTag(val string) attribute.KeyValue {
9202 return MessagingRocketMQMessageTagKey.String(val)
9203 }
9204
9205 // MessagingRocketMQNamespace returns an attribute KeyValue conforming to the
9206 // "messaging.rocketmq.namespace" semantic conventions. It represents the
9207 // namespace of RocketMQ resources, resources in different namespaces are
9208 // individual.
9209 func MessagingRocketMQNamespace(val string) attribute.KeyValue {
9210 return MessagingRocketMQNamespaceKey.String(val)
9211 }
9212
9213 // MessagingServiceBusMessageDeliveryCount returns an attribute KeyValue
9214 // conforming to the "messaging.servicebus.message.delivery_count" semantic
9215 // conventions. It represents the number of deliveries that have been attempted
9216 // for this message.
9217 func MessagingServiceBusMessageDeliveryCount(val int) attribute.KeyValue {
9218 return MessagingServiceBusMessageDeliveryCountKey.Int(val)
9219 }
9220
9221 // MessagingServiceBusMessageEnqueuedTime returns an attribute KeyValue
9222 // conforming to the "messaging.servicebus.message.enqueued_time" semantic
9223 // conventions. It represents the UTC epoch seconds at which the message has been
9224 // accepted and stored in the entity.
9225 func MessagingServiceBusMessageEnqueuedTime(val int) attribute.KeyValue {
9226 return MessagingServiceBusMessageEnqueuedTimeKey.Int(val)
9227 }
9228
9229 // Enum values for messaging.operation.type
9230 var (
9231 // A message is created. "Create" spans always refer to a single message and are
9232 // used to provide a unique creation context for messages in batch sending
9233 // scenarios.
9234 //
9235 // Stability: development
9236 MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
9237 // One or more messages are provided for sending to an intermediary. If a single
9238 // message is sent, the context of the "Send" span can be used as the creation
9239 // context and no "Create" span needs to be created.
9240 //
9241 // Stability: development
9242 MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
9243 // One or more messages are requested by a consumer. This operation refers to
9244 // pull-based scenarios, where consumers explicitly call methods of messaging
9245 // SDKs to receive messages.
9246 //
9247 // Stability: development
9248 MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
9249 // One or more messages are processed by a consumer.
9250 //
9251 // Stability: development
9252 MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
9253 // One or more messages are settled.
9254 //
9255 // Stability: development
9256 MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
9257 // Deprecated: Replaced by `process`.
9258 MessagingOperationTypeDeliver = MessagingOperationTypeKey.String("deliver")
9259 // Deprecated: Replaced by `send`.
9260 MessagingOperationTypePublish = MessagingOperationTypeKey.String("publish")
9261 )
9262
9263 // Enum values for messaging.rocketmq.consumption_model
9264 var (
9265 // Clustering consumption model
9266 // Stability: development
9267 MessagingRocketMQConsumptionModelClustering = MessagingRocketMQConsumptionModelKey.String("clustering")
9268 // Broadcasting consumption model
9269 // Stability: development
9270 MessagingRocketMQConsumptionModelBroadcasting = MessagingRocketMQConsumptionModelKey.String("broadcasting")
9271 )
9272
9273 // Enum values for messaging.rocketmq.message.type
9274 var (
9275 // Normal message
9276 // Stability: development
9277 MessagingRocketMQMessageTypeNormal = MessagingRocketMQMessageTypeKey.String("normal")
9278 // FIFO message
9279 // Stability: development
9280 MessagingRocketMQMessageTypeFifo = MessagingRocketMQMessageTypeKey.String("fifo")
9281 // Delay message
9282 // Stability: development
9283 MessagingRocketMQMessageTypeDelay = MessagingRocketMQMessageTypeKey.String("delay")
9284 // Transaction message
9285 // Stability: development
9286 MessagingRocketMQMessageTypeTransaction = MessagingRocketMQMessageTypeKey.String("transaction")
9287 )
9288
9289 // Enum values for messaging.servicebus.disposition_status
9290 var (
9291 // Message is completed
9292 // Stability: development
9293 MessagingServiceBusDispositionStatusComplete = MessagingServiceBusDispositionStatusKey.String("complete")
9294 // Message is abandoned
9295 // Stability: development
9296 MessagingServiceBusDispositionStatusAbandon = MessagingServiceBusDispositionStatusKey.String("abandon")
9297 // Message is sent to dead letter queue
9298 // Stability: development
9299 MessagingServiceBusDispositionStatusDeadLetter = MessagingServiceBusDispositionStatusKey.String("dead_letter")
9300 // Message is deferred
9301 // Stability: development
9302 MessagingServiceBusDispositionStatusDefer = MessagingServiceBusDispositionStatusKey.String("defer")
9303 )
9304
9305 // Enum values for messaging.system
9306 var (
9307 // Apache ActiveMQ
9308 // Stability: development
9309 MessagingSystemActiveMQ = MessagingSystemKey.String("activemq")
9310 // Amazon Simple Queue Service (SQS)
9311 // Stability: development
9312 MessagingSystemAWSSQS = MessagingSystemKey.String("aws_sqs")
9313 // Azure Event Grid
9314 // Stability: development
9315 MessagingSystemEventGrid = MessagingSystemKey.String("eventgrid")
9316 // Azure Event Hubs
9317 // Stability: development
9318 MessagingSystemEventHubs = MessagingSystemKey.String("eventhubs")
9319 // Azure Service Bus
9320 // Stability: development
9321 MessagingSystemServiceBus = MessagingSystemKey.String("servicebus")
9322 // Google Cloud Pub/Sub
9323 // Stability: development
9324 MessagingSystemGCPPubSub = MessagingSystemKey.String("gcp_pubsub")
9325 // Java Message Service
9326 // Stability: development
9327 MessagingSystemJMS = MessagingSystemKey.String("jms")
9328 // Apache Kafka
9329 // Stability: development
9330 MessagingSystemKafka = MessagingSystemKey.String("kafka")
9331 // RabbitMQ
9332 // Stability: development
9333 MessagingSystemRabbitMQ = MessagingSystemKey.String("rabbitmq")
9334 // Apache RocketMQ
9335 // Stability: development
9336 MessagingSystemRocketMQ = MessagingSystemKey.String("rocketmq")
9337 // Apache Pulsar
9338 // Stability: development
9339 MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
9340 )
9341
9342 // Namespace: network
9343 const (
9344 // NetworkCarrierICCKey is the attribute Key conforming to the
9345 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
9346 // alpha-2 2-character country code associated with the mobile carrier network.
9347 //
9348 // Type: string
9349 // RequirementLevel: Recommended
9350 // Stability: Development
9351 //
9352 // Examples: DE
9353 NetworkCarrierICCKey = attribute.Key("network.carrier.icc")
9354
9355 // NetworkCarrierMCCKey is the attribute Key conforming to the
9356 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
9357 // country code.
9358 //
9359 // Type: string
9360 // RequirementLevel: Recommended
9361 // Stability: Development
9362 //
9363 // Examples: 310
9364 NetworkCarrierMCCKey = attribute.Key("network.carrier.mcc")
9365
9366 // NetworkCarrierMNCKey is the attribute Key conforming to the
9367 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
9368 // network code.
9369 //
9370 // Type: string
9371 // RequirementLevel: Recommended
9372 // Stability: Development
9373 //
9374 // Examples: 001
9375 NetworkCarrierMNCKey = attribute.Key("network.carrier.mnc")
9376
9377 // NetworkCarrierNameKey is the attribute Key conforming to the
9378 // "network.carrier.name" semantic conventions. It represents the name of the
9379 // mobile carrier.
9380 //
9381 // Type: string
9382 // RequirementLevel: Recommended
9383 // Stability: Development
9384 //
9385 // Examples: sprint
9386 NetworkCarrierNameKey = attribute.Key("network.carrier.name")
9387
9388 // NetworkConnectionStateKey is the attribute Key conforming to the
9389 // "network.connection.state" semantic conventions. It represents the state of
9390 // network connection.
9391 //
9392 // Type: Enum
9393 // RequirementLevel: Recommended
9394 // Stability: Development
9395 //
9396 // Examples: "close_wait"
9397 // Note: Connection states are defined as part of the [rfc9293]
9398 //
9399 // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2
9400 NetworkConnectionStateKey = attribute.Key("network.connection.state")
9401
9402 // NetworkConnectionSubtypeKey is the attribute Key conforming to the
9403 // "network.connection.subtype" semantic conventions. It represents the this
9404 // describes more details regarding the connection.type. It may be the type of
9405 // cell technology connection, but it could be used for describing details about
9406 // a wifi connection.
9407 //
9408 // Type: Enum
9409 // RequirementLevel: Recommended
9410 // Stability: Development
9411 //
9412 // Examples: LTE
9413 NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
9414
9415 // NetworkConnectionTypeKey is the attribute Key conforming to the
9416 // "network.connection.type" semantic conventions. It represents the internet
9417 // connection type.
9418 //
9419 // Type: Enum
9420 // RequirementLevel: Recommended
9421 // Stability: Development
9422 //
9423 // Examples: wifi
9424 NetworkConnectionTypeKey = attribute.Key("network.connection.type")
9425
9426 // NetworkInterfaceNameKey is the attribute Key conforming to the
9427 // "network.interface.name" semantic conventions. It represents the network
9428 // interface name.
9429 //
9430 // Type: string
9431 // RequirementLevel: Recommended
9432 // Stability: Development
9433 //
9434 // Examples: "lo", "eth0"
9435 NetworkInterfaceNameKey = attribute.Key("network.interface.name")
9436
9437 // NetworkIODirectionKey is the attribute Key conforming to the
9438 // "network.io.direction" semantic conventions. It represents the network IO
9439 // operation direction.
9440 //
9441 // Type: Enum
9442 // RequirementLevel: Recommended
9443 // Stability: Development
9444 //
9445 // Examples: "transmit"
9446 NetworkIODirectionKey = attribute.Key("network.io.direction")
9447
9448 // NetworkLocalAddressKey is the attribute Key conforming to the
9449 // "network.local.address" semantic conventions. It represents the local address
9450 // of the network connection - IP address or Unix domain socket name.
9451 //
9452 // Type: string
9453 // RequirementLevel: Recommended
9454 // Stability: Stable
9455 //
9456 // Examples: "10.1.2.80", "/tmp/my.sock"
9457 NetworkLocalAddressKey = attribute.Key("network.local.address")
9458
9459 // NetworkLocalPortKey is the attribute Key conforming to the
9460 // "network.local.port" semantic conventions. It represents the local port
9461 // number of the network connection.
9462 //
9463 // Type: int
9464 // RequirementLevel: Recommended
9465 // Stability: Stable
9466 //
9467 // Examples: 65123
9468 NetworkLocalPortKey = attribute.Key("network.local.port")
9469
9470 // NetworkPeerAddressKey is the attribute Key conforming to the
9471 // "network.peer.address" semantic conventions. It represents the peer address
9472 // of the network connection - IP address or Unix domain socket name.
9473 //
9474 // Type: string
9475 // RequirementLevel: Recommended
9476 // Stability: Stable
9477 //
9478 // Examples: "10.1.2.80", "/tmp/my.sock"
9479 NetworkPeerAddressKey = attribute.Key("network.peer.address")
9480
9481 // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
9482 // semantic conventions. It represents the peer port number of the network
9483 // connection.
9484 //
9485 // Type: int
9486 // RequirementLevel: Recommended
9487 // Stability: Stable
9488 //
9489 // Examples: 65123
9490 NetworkPeerPortKey = attribute.Key("network.peer.port")
9491
9492 // NetworkProtocolNameKey is the attribute Key conforming to the
9493 // "network.protocol.name" semantic conventions. It represents the
9494 // [OSI application layer] or non-OSI equivalent.
9495 //
9496 // Type: string
9497 // RequirementLevel: Recommended
9498 // Stability: Stable
9499 //
9500 // Examples: "amqp", "http", "mqtt"
9501 // Note: The value SHOULD be normalized to lowercase.
9502 //
9503 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
9504 NetworkProtocolNameKey = attribute.Key("network.protocol.name")
9505
9506 // NetworkProtocolVersionKey is the attribute Key conforming to the
9507 // "network.protocol.version" semantic conventions. It represents the actual
9508 // version of the protocol used for network communication.
9509 //
9510 // Type: string
9511 // RequirementLevel: Recommended
9512 // Stability: Stable
9513 //
9514 // Examples: "1.1", "2"
9515 // Note: If protocol version is subject to negotiation (for example using [ALPN]
9516 // ), this attribute SHOULD be set to the negotiated version. If the actual
9517 // protocol version is not known, this attribute SHOULD NOT be set.
9518 //
9519 // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
9520 NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
9521
9522 // NetworkTransportKey is the attribute Key conforming to the
9523 // "network.transport" semantic conventions. It represents the
9524 // [OSI transport layer] or [inter-process communication method].
9525 //
9526 // Type: Enum
9527 // RequirementLevel: Recommended
9528 // Stability: Stable
9529 //
9530 // Examples: "tcp", "udp"
9531 // Note: The value SHOULD be normalized to lowercase.
9532 //
9533 // Consider always setting the transport when setting a port number, since
9534 // a port number is ambiguous without knowing the transport. For example
9535 // different processes could be listening on TCP port 12345 and UDP port 12345.
9536 //
9537 // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer
9538 // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
9539 NetworkTransportKey = attribute.Key("network.transport")
9540
9541 // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
9542 // conventions. It represents the [OSI network layer] or non-OSI equivalent.
9543 //
9544 // Type: Enum
9545 // RequirementLevel: Recommended
9546 // Stability: Stable
9547 //
9548 // Examples: "ipv4", "ipv6"
9549 // Note: The value SHOULD be normalized to lowercase.
9550 //
9551 // [OSI network layer]: https://wikipedia.org/wiki/Network_layer
9552 NetworkTypeKey = attribute.Key("network.type")
9553 )
9554
9555 // NetworkCarrierICC returns an attribute KeyValue conforming to the
9556 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
9557 // alpha-2 2-character country code associated with the mobile carrier network.
9558 func NetworkCarrierICC(val string) attribute.KeyValue {
9559 return NetworkCarrierICCKey.String(val)
9560 }
9561
9562 // NetworkCarrierMCC returns an attribute KeyValue conforming to the
9563 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
9564 // country code.
9565 func NetworkCarrierMCC(val string) attribute.KeyValue {
9566 return NetworkCarrierMCCKey.String(val)
9567 }
9568
9569 // NetworkCarrierMNC returns an attribute KeyValue conforming to the
9570 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
9571 // network code.
9572 func NetworkCarrierMNC(val string) attribute.KeyValue {
9573 return NetworkCarrierMNCKey.String(val)
9574 }
9575
9576 // NetworkCarrierName returns an attribute KeyValue conforming to the
9577 // "network.carrier.name" semantic conventions. It represents the name of the
9578 // mobile carrier.
9579 func NetworkCarrierName(val string) attribute.KeyValue {
9580 return NetworkCarrierNameKey.String(val)
9581 }
9582
9583 // NetworkInterfaceName returns an attribute KeyValue conforming to the
9584 // "network.interface.name" semantic conventions. It represents the network
9585 // interface name.
9586 func NetworkInterfaceName(val string) attribute.KeyValue {
9587 return NetworkInterfaceNameKey.String(val)
9588 }
9589
9590 // NetworkLocalAddress returns an attribute KeyValue conforming to the
9591 // "network.local.address" semantic conventions. It represents the local address
9592 // of the network connection - IP address or Unix domain socket name.
9593 func NetworkLocalAddress(val string) attribute.KeyValue {
9594 return NetworkLocalAddressKey.String(val)
9595 }
9596
9597 // NetworkLocalPort returns an attribute KeyValue conforming to the
9598 // "network.local.port" semantic conventions. It represents the local port number
9599 // of the network connection.
9600 func NetworkLocalPort(val int) attribute.KeyValue {
9601 return NetworkLocalPortKey.Int(val)
9602 }
9603
9604 // NetworkPeerAddress returns an attribute KeyValue conforming to the
9605 // "network.peer.address" semantic conventions. It represents the peer address of
9606 // the network connection - IP address or Unix domain socket name.
9607 func NetworkPeerAddress(val string) attribute.KeyValue {
9608 return NetworkPeerAddressKey.String(val)
9609 }
9610
9611 // NetworkPeerPort returns an attribute KeyValue conforming to the
9612 // "network.peer.port" semantic conventions. It represents the peer port number
9613 // of the network connection.
9614 func NetworkPeerPort(val int) attribute.KeyValue {
9615 return NetworkPeerPortKey.Int(val)
9616 }
9617
9618 // NetworkProtocolName returns an attribute KeyValue conforming to the
9619 // "network.protocol.name" semantic conventions. It represents the
9620 // [OSI application layer] or non-OSI equivalent.
9621 //
9622 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
9623 func NetworkProtocolName(val string) attribute.KeyValue {
9624 return NetworkProtocolNameKey.String(val)
9625 }
9626
9627 // NetworkProtocolVersion returns an attribute KeyValue conforming to the
9628 // "network.protocol.version" semantic conventions. It represents the actual
9629 // version of the protocol used for network communication.
9630 func NetworkProtocolVersion(val string) attribute.KeyValue {
9631 return NetworkProtocolVersionKey.String(val)
9632 }
9633
9634 // Enum values for network.connection.state
9635 var (
9636 // closed
9637 // Stability: development
9638 NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed")
9639 // close_wait
9640 // Stability: development
9641 NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait")
9642 // closing
9643 // Stability: development
9644 NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing")
9645 // established
9646 // Stability: development
9647 NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established")
9648 // fin_wait_1
9649 // Stability: development
9650 NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1")
9651 // fin_wait_2
9652 // Stability: development
9653 NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2")
9654 // last_ack
9655 // Stability: development
9656 NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack")
9657 // listen
9658 // Stability: development
9659 NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen")
9660 // syn_received
9661 // Stability: development
9662 NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received")
9663 // syn_sent
9664 // Stability: development
9665 NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent")
9666 // time_wait
9667 // Stability: development
9668 NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait")
9669 )
9670
9671 // Enum values for network.connection.subtype
9672 var (
9673 // GPRS
9674 // Stability: development
9675 NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
9676 // EDGE
9677 // Stability: development
9678 NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
9679 // UMTS
9680 // Stability: development
9681 NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
9682 // CDMA
9683 // Stability: development
9684 NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
9685 // EVDO Rel. 0
9686 // Stability: development
9687 NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
9688 // EVDO Rev. A
9689 // Stability: development
9690 NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
9691 // CDMA2000 1XRTT
9692 // Stability: development
9693 NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
9694 // HSDPA
9695 // Stability: development
9696 NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
9697 // HSUPA
9698 // Stability: development
9699 NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
9700 // HSPA
9701 // Stability: development
9702 NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
9703 // IDEN
9704 // Stability: development
9705 NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
9706 // EVDO Rev. B
9707 // Stability: development
9708 NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
9709 // LTE
9710 // Stability: development
9711 NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
9712 // EHRPD
9713 // Stability: development
9714 NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
9715 // HSPAP
9716 // Stability: development
9717 NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
9718 // GSM
9719 // Stability: development
9720 NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
9721 // TD-SCDMA
9722 // Stability: development
9723 NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
9724 // IWLAN
9725 // Stability: development
9726 NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
9727 // 5G NR (New Radio)
9728 // Stability: development
9729 NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
9730 // 5G NRNSA (New Radio Non-Standalone)
9731 // Stability: development
9732 NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
9733 // LTE CA
9734 // Stability: development
9735 NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
9736 )
9737
9738 // Enum values for network.connection.type
9739 var (
9740 // wifi
9741 // Stability: development
9742 NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
9743 // wired
9744 // Stability: development
9745 NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
9746 // cell
9747 // Stability: development
9748 NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
9749 // unavailable
9750 // Stability: development
9751 NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
9752 // unknown
9753 // Stability: development
9754 NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
9755 )
9756
9757 // Enum values for network.io.direction
9758 var (
9759 // transmit
9760 // Stability: development
9761 NetworkIODirectionTransmit = NetworkIODirectionKey.String("transmit")
9762 // receive
9763 // Stability: development
9764 NetworkIODirectionReceive = NetworkIODirectionKey.String("receive")
9765 )
9766
9767 // Enum values for network.transport
9768 var (
9769 // TCP
9770 // Stability: stable
9771 NetworkTransportTCP = NetworkTransportKey.String("tcp")
9772 // UDP
9773 // Stability: stable
9774 NetworkTransportUDP = NetworkTransportKey.String("udp")
9775 // Named or anonymous pipe.
9776 // Stability: stable
9777 NetworkTransportPipe = NetworkTransportKey.String("pipe")
9778 // Unix domain socket
9779 // Stability: stable
9780 NetworkTransportUnix = NetworkTransportKey.String("unix")
9781 // QUIC
9782 // Stability: stable
9783 NetworkTransportQUIC = NetworkTransportKey.String("quic")
9784 )
9785
9786 // Enum values for network.type
9787 var (
9788 // IPv4
9789 // Stability: stable
9790 NetworkTypeIPv4 = NetworkTypeKey.String("ipv4")
9791 // IPv6
9792 // Stability: stable
9793 NetworkTypeIPv6 = NetworkTypeKey.String("ipv6")
9794 )
9795
9796 // Namespace: oci
9797 const (
9798 // OCIManifestDigestKey is the attribute Key conforming to the
9799 // "oci.manifest.digest" semantic conventions. It represents the digest of the
9800 // OCI image manifest. For container images specifically is the digest by which
9801 // the container image is known.
9802 //
9803 // Type: string
9804 // RequirementLevel: Recommended
9805 // Stability: Development
9806 //
9807 // Examples:
9808 // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
9809 // Note: Follows [OCI Image Manifest Specification], and specifically the
9810 // [Digest property].
9811 // An example can be found in [Example Image Manifest].
9812 //
9813 // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
9814 // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
9815 // [Example Image Manifest]: https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest
9816 OCIManifestDigestKey = attribute.Key("oci.manifest.digest")
9817 )
9818
9819 // OCIManifestDigest returns an attribute KeyValue conforming to the
9820 // "oci.manifest.digest" semantic conventions. It represents the digest of the
9821 // OCI image manifest. For container images specifically is the digest by which
9822 // the container image is known.
9823 func OCIManifestDigest(val string) attribute.KeyValue {
9824 return OCIManifestDigestKey.String(val)
9825 }
9826
9827 // Namespace: opentracing
9828 const (
9829 // OpenTracingRefTypeKey is the attribute Key conforming to the
9830 // "opentracing.ref_type" semantic conventions. It represents the parent-child
9831 // Reference type.
9832 //
9833 // Type: Enum
9834 // RequirementLevel: Recommended
9835 // Stability: Development
9836 //
9837 // Examples:
9838 // Note: The causal relationship between a child Span and a parent Span.
9839 OpenTracingRefTypeKey = attribute.Key("opentracing.ref_type")
9840 )
9841
9842 // Enum values for opentracing.ref_type
9843 var (
9844 // The parent Span depends on the child Span in some capacity
9845 // Stability: development
9846 OpenTracingRefTypeChildOf = OpenTracingRefTypeKey.String("child_of")
9847 // The parent Span doesn't depend in any way on the result of the child Span
9848 // Stability: development
9849 OpenTracingRefTypeFollowsFrom = OpenTracingRefTypeKey.String("follows_from")
9850 )
9851
9852 // Namespace: os
9853 const (
9854 // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
9855 // conventions. It represents the unique identifier for a particular build or
9856 // compilation of the operating system.
9857 //
9858 // Type: string
9859 // RequirementLevel: Recommended
9860 // Stability: Development
9861 //
9862 // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
9863 OSBuildIDKey = attribute.Key("os.build_id")
9864
9865 // OSDescriptionKey is the attribute Key conforming to the "os.description"
9866 // semantic conventions. It represents the human readable (not intended to be
9867 // parsed) OS version information, like e.g. reported by `ver` or
9868 // `lsb_release -a` commands.
9869 //
9870 // Type: string
9871 // RequirementLevel: Recommended
9872 // Stability: Development
9873 //
9874 // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
9875 OSDescriptionKey = attribute.Key("os.description")
9876
9877 // OSNameKey is the attribute Key conforming to the "os.name" semantic
9878 // conventions. It represents the human readable operating system name.
9879 //
9880 // Type: string
9881 // RequirementLevel: Recommended
9882 // Stability: Development
9883 //
9884 // Examples: "iOS", "Android", "Ubuntu"
9885 OSNameKey = attribute.Key("os.name")
9886
9887 // OSTypeKey is the attribute Key conforming to the "os.type" semantic
9888 // conventions. It represents the operating system type.
9889 //
9890 // Type: Enum
9891 // RequirementLevel: Recommended
9892 // Stability: Development
9893 //
9894 // Examples:
9895 OSTypeKey = attribute.Key("os.type")
9896
9897 // OSVersionKey is the attribute Key conforming to the "os.version" semantic
9898 // conventions. It represents the version string of the operating system as
9899 // defined in [Version Attributes].
9900 //
9901 // Type: string
9902 // RequirementLevel: Recommended
9903 // Stability: Development
9904 //
9905 // Examples: "14.2.1", "18.04.1"
9906 //
9907 // [Version Attributes]: /docs/resource/README.md#version-attributes
9908 OSVersionKey = attribute.Key("os.version")
9909 )
9910
9911 // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
9912 // semantic conventions. It represents the unique identifier for a particular
9913 // build or compilation of the operating system.
9914 func OSBuildID(val string) attribute.KeyValue {
9915 return OSBuildIDKey.String(val)
9916 }
9917
9918 // OSDescription returns an attribute KeyValue conforming to the "os.description"
9919 // semantic conventions. It represents the human readable (not intended to be
9920 // parsed) OS version information, like e.g. reported by `ver` or
9921 // `lsb_release -a` commands.
9922 func OSDescription(val string) attribute.KeyValue {
9923 return OSDescriptionKey.String(val)
9924 }
9925
9926 // OSName returns an attribute KeyValue conforming to the "os.name" semantic
9927 // conventions. It represents the human readable operating system name.
9928 func OSName(val string) attribute.KeyValue {
9929 return OSNameKey.String(val)
9930 }
9931
9932 // OSVersion returns an attribute KeyValue conforming to the "os.version"
9933 // semantic conventions. It represents the version string of the operating system
9934 // as defined in [Version Attributes].
9935 //
9936 // [Version Attributes]: /docs/resource/README.md#version-attributes
9937 func OSVersion(val string) attribute.KeyValue {
9938 return OSVersionKey.String(val)
9939 }
9940
9941 // Enum values for os.type
9942 var (
9943 // Microsoft Windows
9944 // Stability: development
9945 OSTypeWindows = OSTypeKey.String("windows")
9946 // Linux
9947 // Stability: development
9948 OSTypeLinux = OSTypeKey.String("linux")
9949 // Apple Darwin
9950 // Stability: development
9951 OSTypeDarwin = OSTypeKey.String("darwin")
9952 // FreeBSD
9953 // Stability: development
9954 OSTypeFreeBSD = OSTypeKey.String("freebsd")
9955 // NetBSD
9956 // Stability: development
9957 OSTypeNetBSD = OSTypeKey.String("netbsd")
9958 // OpenBSD
9959 // Stability: development
9960 OSTypeOpenBSD = OSTypeKey.String("openbsd")
9961 // DragonFly BSD
9962 // Stability: development
9963 OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
9964 // HP-UX (Hewlett Packard Unix)
9965 // Stability: development
9966 OSTypeHPUX = OSTypeKey.String("hpux")
9967 // AIX (Advanced Interactive eXecutive)
9968 // Stability: development
9969 OSTypeAIX = OSTypeKey.String("aix")
9970 // SunOS, Oracle Solaris
9971 // Stability: development
9972 OSTypeSolaris = OSTypeKey.String("solaris")
9973 // IBM z/OS
9974 // Stability: development
9975 OSTypeZOS = OSTypeKey.String("z_os")
9976 )
9977
9978 // Namespace: otel
9979 const (
9980 // OTelComponentNameKey is the attribute Key conforming to the
9981 // "otel.component.name" semantic conventions. It represents a name uniquely
9982 // identifying the instance of the OpenTelemetry component within its containing
9983 // SDK instance.
9984 //
9985 // Type: string
9986 // RequirementLevel: Recommended
9987 // Stability: Development
9988 //
9989 // Examples: "otlp_grpc_span_exporter/0", "custom-name"
9990 // Note: Implementations SHOULD ensure a low cardinality for this attribute,
9991 // even across application or SDK restarts.
9992 // E.g. implementations MUST NOT use UUIDs as values for this attribute.
9993 //
9994 // Implementations MAY achieve these goals by following a
9995 // `<otel.component.type>/<instance-counter>` pattern, e.g.
9996 // `batching_span_processor/0`.
9997 // Hereby `otel.component.type` refers to the corresponding attribute value of
9998 // the component.
9999 //
10000 // The value of `instance-counter` MAY be automatically assigned by the
10001 // component and uniqueness within the enclosing SDK instance MUST be
10002 // guaranteed.
10003 // For example, `<instance-counter>` MAY be implemented by using a monotonically
10004 // increasing counter (starting with `0`), which is incremented every time an
10005 // instance of the given component type is started.
10006 //
10007 // With this implementation, for example the first Batching Span Processor would
10008 // have `batching_span_processor/0`
10009 // as `otel.component.name`, the second one `batching_span_processor/1` and so
10010 // on.
10011 // These values will therefore be reused in the case of an application restart.
10012 OTelComponentNameKey = attribute.Key("otel.component.name")
10013
10014 // OTelComponentTypeKey is the attribute Key conforming to the
10015 // "otel.component.type" semantic conventions. It represents a name identifying
10016 // the type of the OpenTelemetry component.
10017 //
10018 // Type: Enum
10019 // RequirementLevel: Recommended
10020 // Stability: Development
10021 //
10022 // Examples: "batching_span_processor", "com.example.MySpanExporter"
10023 // Note: If none of the standardized values apply, implementations SHOULD use
10024 // the language-defined name of the type.
10025 // E.g. for Java the fully qualified classname SHOULD be used in this case.
10026 OTelComponentTypeKey = attribute.Key("otel.component.type")
10027
10028 // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
10029 // semantic conventions. It represents the name of the instrumentation scope - (
10030 // `InstrumentationScope.Name` in OTLP).
10031 //
10032 // Type: string
10033 // RequirementLevel: Recommended
10034 // Stability: Stable
10035 //
10036 // Examples: "io.opentelemetry.contrib.mongodb"
10037 OTelScopeNameKey = attribute.Key("otel.scope.name")
10038
10039 // OTelScopeVersionKey is the attribute Key conforming to the
10040 // "otel.scope.version" semantic conventions. It represents the version of the
10041 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
10042 //
10043 // Type: string
10044 // RequirementLevel: Recommended
10045 // Stability: Stable
10046 //
10047 // Examples: "1.0.0"
10048 OTelScopeVersionKey = attribute.Key("otel.scope.version")
10049
10050 // OTelSpanSamplingResultKey is the attribute Key conforming to the
10051 // "otel.span.sampling_result" semantic conventions. It represents the result
10052 // value of the sampler for this span.
10053 //
10054 // Type: Enum
10055 // RequirementLevel: Recommended
10056 // Stability: Development
10057 //
10058 // Examples:
10059 OTelSpanSamplingResultKey = attribute.Key("otel.span.sampling_result")
10060
10061 // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
10062 // semantic conventions. It represents the name of the code, either "OK" or
10063 // "ERROR". MUST NOT be set if the status code is UNSET.
10064 //
10065 // Type: Enum
10066 // RequirementLevel: Recommended
10067 // Stability: Stable
10068 //
10069 // Examples:
10070 OTelStatusCodeKey = attribute.Key("otel.status_code")
10071
10072 // OTelStatusDescriptionKey is the attribute Key conforming to the
10073 // "otel.status_description" semantic conventions. It represents the description
10074 // of the Status if it has a value, otherwise not set.
10075 //
10076 // Type: string
10077 // RequirementLevel: Recommended
10078 // Stability: Stable
10079 //
10080 // Examples: "resource not found"
10081 OTelStatusDescriptionKey = attribute.Key("otel.status_description")
10082 )
10083
10084 // OTelComponentName returns an attribute KeyValue conforming to the
10085 // "otel.component.name" semantic conventions. It represents a name uniquely
10086 // identifying the instance of the OpenTelemetry component within its containing
10087 // SDK instance.
10088 func OTelComponentName(val string) attribute.KeyValue {
10089 return OTelComponentNameKey.String(val)
10090 }
10091
10092 // OTelScopeName returns an attribute KeyValue conforming to the
10093 // "otel.scope.name" semantic conventions. It represents the name of the
10094 // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
10095 func OTelScopeName(val string) attribute.KeyValue {
10096 return OTelScopeNameKey.String(val)
10097 }
10098
10099 // OTelScopeVersion returns an attribute KeyValue conforming to the
10100 // "otel.scope.version" semantic conventions. It represents the version of the
10101 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
10102 func OTelScopeVersion(val string) attribute.KeyValue {
10103 return OTelScopeVersionKey.String(val)
10104 }
10105
10106 // OTelStatusDescription returns an attribute KeyValue conforming to the
10107 // "otel.status_description" semantic conventions. It represents the description
10108 // of the Status if it has a value, otherwise not set.
10109 func OTelStatusDescription(val string) attribute.KeyValue {
10110 return OTelStatusDescriptionKey.String(val)
10111 }
10112
10113 // Enum values for otel.component.type
10114 var (
10115 // The builtin SDK batching span processor
10116 //
10117 // Stability: development
10118 OTelComponentTypeBatchingSpanProcessor = OTelComponentTypeKey.String("batching_span_processor")
10119 // The builtin SDK simple span processor
10120 //
10121 // Stability: development
10122 OTelComponentTypeSimpleSpanProcessor = OTelComponentTypeKey.String("simple_span_processor")
10123 // The builtin SDK batching log record processor
10124 //
10125 // Stability: development
10126 OTelComponentTypeBatchingLogProcessor = OTelComponentTypeKey.String("batching_log_processor")
10127 // The builtin SDK simple log record processor
10128 //
10129 // Stability: development
10130 OTelComponentTypeSimpleLogProcessor = OTelComponentTypeKey.String("simple_log_processor")
10131 // OTLP span exporter over gRPC with protobuf serialization
10132 //
10133 // Stability: development
10134 OTelComponentTypeOtlpGRPCSpanExporter = OTelComponentTypeKey.String("otlp_grpc_span_exporter")
10135 // OTLP span exporter over HTTP with protobuf serialization
10136 //
10137 // Stability: development
10138 OTelComponentTypeOtlpHTTPSpanExporter = OTelComponentTypeKey.String("otlp_http_span_exporter")
10139 // OTLP span exporter over HTTP with JSON serialization
10140 //
10141 // Stability: development
10142 OTelComponentTypeOtlpHTTPJSONSpanExporter = OTelComponentTypeKey.String("otlp_http_json_span_exporter")
10143 // OTLP log record exporter over gRPC with protobuf serialization
10144 //
10145 // Stability: development
10146 OTelComponentTypeOtlpGRPCLogExporter = OTelComponentTypeKey.String("otlp_grpc_log_exporter")
10147 // OTLP log record exporter over HTTP with protobuf serialization
10148 //
10149 // Stability: development
10150 OTelComponentTypeOtlpHTTPLogExporter = OTelComponentTypeKey.String("otlp_http_log_exporter")
10151 // OTLP log record exporter over HTTP with JSON serialization
10152 //
10153 // Stability: development
10154 OTelComponentTypeOtlpHTTPJSONLogExporter = OTelComponentTypeKey.String("otlp_http_json_log_exporter")
10155 // The builtin SDK periodically exporting metric reader
10156 //
10157 // Stability: development
10158 OTelComponentTypePeriodicMetricReader = OTelComponentTypeKey.String("periodic_metric_reader")
10159 // OTLP metric exporter over gRPC with protobuf serialization
10160 //
10161 // Stability: development
10162 OTelComponentTypeOtlpGRPCMetricExporter = OTelComponentTypeKey.String("otlp_grpc_metric_exporter")
10163 // OTLP metric exporter over HTTP with protobuf serialization
10164 //
10165 // Stability: development
10166 OTelComponentTypeOtlpHTTPMetricExporter = OTelComponentTypeKey.String("otlp_http_metric_exporter")
10167 // OTLP metric exporter over HTTP with JSON serialization
10168 //
10169 // Stability: development
10170 OTelComponentTypeOtlpHTTPJSONMetricExporter = OTelComponentTypeKey.String("otlp_http_json_metric_exporter")
10171 )
10172
10173 // Enum values for otel.span.sampling_result
10174 var (
10175 // The span is not sampled and not recording
10176 // Stability: development
10177 OTelSpanSamplingResultDrop = OTelSpanSamplingResultKey.String("DROP")
10178 // The span is not sampled, but recording
10179 // Stability: development
10180 OTelSpanSamplingResultRecordOnly = OTelSpanSamplingResultKey.String("RECORD_ONLY")
10181 // The span is sampled and recording
10182 // Stability: development
10183 OTelSpanSamplingResultRecordAndSample = OTelSpanSamplingResultKey.String("RECORD_AND_SAMPLE")
10184 )
10185
10186 // Enum values for otel.status_code
10187 var (
10188 // The operation has been validated by an Application developer or Operator to
10189 // have completed successfully.
10190 // Stability: stable
10191 OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
10192 // The operation contains an error.
10193 // Stability: stable
10194 OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
10195 )
10196
10197 // Namespace: peer
10198 const (
10199 // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic
10200 // conventions. It represents the [`service.name`] of the remote service. SHOULD
10201 // be equal to the actual `service.name` resource attribute of the remote
10202 // service if any.
10203 //
10204 // Type: string
10205 // RequirementLevel: Recommended
10206 // Stability: Development
10207 //
10208 // Examples: AuthTokenCache
10209 //
10210 // [`service.name`]: /docs/resource/README.md#service
10211 PeerServiceKey = attribute.Key("peer.service")
10212 )
10213
10214 // PeerService returns an attribute KeyValue conforming to the "peer.service"
10215 // semantic conventions. It represents the [`service.name`] of the remote
10216 // service. SHOULD be equal to the actual `service.name` resource attribute of
10217 // the remote service if any.
10218 //
10219 // [`service.name`]: /docs/resource/README.md#service
10220 func PeerService(val string) attribute.KeyValue {
10221 return PeerServiceKey.String(val)
10222 }
10223
10224 // Namespace: process
10225 const (
10226 // ProcessArgsCountKey is the attribute Key conforming to the
10227 // "process.args_count" semantic conventions. It represents the length of the
10228 // process.command_args array.
10229 //
10230 // Type: int
10231 // RequirementLevel: Recommended
10232 // Stability: Development
10233 //
10234 // Examples: 4
10235 // Note: This field can be useful for querying or performing bucket analysis on
10236 // how many arguments were provided to start a process. More arguments may be an
10237 // indication of suspicious activity.
10238 ProcessArgsCountKey = attribute.Key("process.args_count")
10239
10240 // ProcessCommandKey is the attribute Key conforming to the "process.command"
10241 // semantic conventions. It represents the command used to launch the process
10242 // (i.e. the command name). On Linux based systems, can be set to the zeroth
10243 // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
10244 // extracted from `GetCommandLineW`.
10245 //
10246 // Type: string
10247 // RequirementLevel: Recommended
10248 // Stability: Development
10249 //
10250 // Examples: "cmd/otelcol"
10251 ProcessCommandKey = attribute.Key("process.command")
10252
10253 // ProcessCommandArgsKey is the attribute Key conforming to the
10254 // "process.command_args" semantic conventions. It represents the all the
10255 // command arguments (including the command/executable itself) as received by
10256 // the process. On Linux-based systems (and some other Unixoid systems
10257 // supporting procfs), can be set according to the list of null-delimited
10258 // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
10259 // would be the full argv vector passed to `main`. SHOULD NOT be collected by
10260 // default unless there is sanitization that excludes sensitive data.
10261 //
10262 // Type: string[]
10263 // RequirementLevel: Recommended
10264 // Stability: Development
10265 //
10266 // Examples: "cmd/otecol", "--config=config.yaml"
10267 ProcessCommandArgsKey = attribute.Key("process.command_args")
10268
10269 // ProcessCommandLineKey is the attribute Key conforming to the
10270 // "process.command_line" semantic conventions. It represents the full command
10271 // used to launch the process as a single string representing the full command.
10272 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
10273 // you have to assemble it just for monitoring; use `process.command_args`
10274 // instead. SHOULD NOT be collected by default unless there is sanitization that
10275 // excludes sensitive data.
10276 //
10277 // Type: string
10278 // RequirementLevel: Recommended
10279 // Stability: Development
10280 //
10281 // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
10282 ProcessCommandLineKey = attribute.Key("process.command_line")
10283
10284 // ProcessContextSwitchTypeKey is the attribute Key conforming to the
10285 // "process.context_switch_type" semantic conventions. It represents the
10286 // specifies whether the context switches for this data point were voluntary or
10287 // involuntary.
10288 //
10289 // Type: Enum
10290 // RequirementLevel: Recommended
10291 // Stability: Development
10292 //
10293 // Examples:
10294 ProcessContextSwitchTypeKey = attribute.Key("process.context_switch_type")
10295
10296 // ProcessCreationTimeKey is the attribute Key conforming to the
10297 // "process.creation.time" semantic conventions. It represents the date and time
10298 // the process was created, in ISO 8601 format.
10299 //
10300 // Type: string
10301 // RequirementLevel: Recommended
10302 // Stability: Development
10303 //
10304 // Examples: "2023-11-21T09:25:34.853Z"
10305 ProcessCreationTimeKey = attribute.Key("process.creation.time")
10306
10307 // ProcessExecutableBuildIDGNUKey is the attribute Key conforming to the
10308 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
10309 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
10310 //
10311 // Type: string
10312 // RequirementLevel: Recommended
10313 // Stability: Development
10314 //
10315 // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
10316 ProcessExecutableBuildIDGNUKey = attribute.Key("process.executable.build_id.gnu")
10317
10318 // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the
10319 // "process.executable.build_id.go" semantic conventions. It represents the Go
10320 // build ID as retrieved by `go tool buildid <go executable>`.
10321 //
10322 // Type: string
10323 // RequirementLevel: Recommended
10324 // Stability: Development
10325 //
10326 // Examples:
10327 // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
10328 ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
10329
10330 // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the
10331 // "process.executable.build_id.htlhash" semantic conventions. It represents the
10332 // profiling specific build ID for executables. See the OTel specification for
10333 // Profiles for more information.
10334 //
10335 // Type: string
10336 // RequirementLevel: Recommended
10337 // Stability: Development
10338 //
10339 // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
10340 ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash")
10341
10342 // ProcessExecutableNameKey is the attribute Key conforming to the
10343 // "process.executable.name" semantic conventions. It represents the name of the
10344 // process executable. On Linux based systems, this SHOULD be set to the base
10345 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to
10346 // the base name of `GetProcessImageFileNameW`.
10347 //
10348 // Type: string
10349 // RequirementLevel: Recommended
10350 // Stability: Development
10351 //
10352 // Examples: "otelcol"
10353 ProcessExecutableNameKey = attribute.Key("process.executable.name")
10354
10355 // ProcessExecutablePathKey is the attribute Key conforming to the
10356 // "process.executable.path" semantic conventions. It represents the full path
10357 // to the process executable. On Linux based systems, can be set to the target
10358 // of `proc/[pid]/exe`. On Windows, can be set to the result of
10359 // `GetProcessImageFileNameW`.
10360 //
10361 // Type: string
10362 // RequirementLevel: Recommended
10363 // Stability: Development
10364 //
10365 // Examples: "/usr/bin/cmd/otelcol"
10366 ProcessExecutablePathKey = attribute.Key("process.executable.path")
10367
10368 // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
10369 // semantic conventions. It represents the exit code of the process.
10370 //
10371 // Type: int
10372 // RequirementLevel: Recommended
10373 // Stability: Development
10374 //
10375 // Examples: 127
10376 ProcessExitCodeKey = attribute.Key("process.exit.code")
10377
10378 // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
10379 // semantic conventions. It represents the date and time the process exited, in
10380 // ISO 8601 format.
10381 //
10382 // Type: string
10383 // RequirementLevel: Recommended
10384 // Stability: Development
10385 //
10386 // Examples: "2023-11-21T09:26:12.315Z"
10387 ProcessExitTimeKey = attribute.Key("process.exit.time")
10388
10389 // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
10390 // "process.group_leader.pid" semantic conventions. It represents the PID of the
10391 // process's group leader. This is also the process group ID (PGID) of the
10392 // process.
10393 //
10394 // Type: int
10395 // RequirementLevel: Recommended
10396 // Stability: Development
10397 //
10398 // Examples: 23
10399 ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
10400
10401 // ProcessInteractiveKey is the attribute Key conforming to the
10402 // "process.interactive" semantic conventions. It represents the whether the
10403 // process is connected to an interactive shell.
10404 //
10405 // Type: boolean
10406 // RequirementLevel: Recommended
10407 // Stability: Development
10408 //
10409 // Examples:
10410 ProcessInteractiveKey = attribute.Key("process.interactive")
10411
10412 // ProcessLinuxCgroupKey is the attribute Key conforming to the
10413 // "process.linux.cgroup" semantic conventions. It represents the control group
10414 // associated with the process.
10415 //
10416 // Type: string
10417 // RequirementLevel: Recommended
10418 // Stability: Development
10419 //
10420 // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope",
10421 // "0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"
10422 // Note: Control groups (cgroups) are a kernel feature used to organize and
10423 // manage process resources. This attribute provides the path(s) to the
10424 // cgroup(s) associated with the process, which should match the contents of the
10425 // [/proc/[PID]/cgroup] file.
10426 //
10427 // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html
10428 ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup")
10429
10430 // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
10431 // semantic conventions. It represents the username of the user that owns the
10432 // process.
10433 //
10434 // Type: string
10435 // RequirementLevel: Recommended
10436 // Stability: Development
10437 //
10438 // Examples: "root"
10439 ProcessOwnerKey = attribute.Key("process.owner")
10440
10441 // ProcessPagingFaultTypeKey is the attribute Key conforming to the
10442 // "process.paging.fault_type" semantic conventions. It represents the type of
10443 // page fault for this data point. Type `major` is for major/hard page faults,
10444 // and `minor` is for minor/soft page faults.
10445 //
10446 // Type: Enum
10447 // RequirementLevel: Recommended
10448 // Stability: Development
10449 //
10450 // Examples:
10451 ProcessPagingFaultTypeKey = attribute.Key("process.paging.fault_type")
10452
10453 // ProcessParentPIDKey is the attribute Key conforming to the
10454 // "process.parent_pid" semantic conventions. It represents the parent Process
10455 // identifier (PPID).
10456 //
10457 // Type: int
10458 // RequirementLevel: Recommended
10459 // Stability: Development
10460 //
10461 // Examples: 111
10462 ProcessParentPIDKey = attribute.Key("process.parent_pid")
10463
10464 // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
10465 // conventions. It represents the process identifier (PID).
10466 //
10467 // Type: int
10468 // RequirementLevel: Recommended
10469 // Stability: Development
10470 //
10471 // Examples: 1234
10472 ProcessPIDKey = attribute.Key("process.pid")
10473
10474 // ProcessRealUserIDKey is the attribute Key conforming to the
10475 // "process.real_user.id" semantic conventions. It represents the real user ID
10476 // (RUID) of the process.
10477 //
10478 // Type: int
10479 // RequirementLevel: Recommended
10480 // Stability: Development
10481 //
10482 // Examples: 1000
10483 ProcessRealUserIDKey = attribute.Key("process.real_user.id")
10484
10485 // ProcessRealUserNameKey is the attribute Key conforming to the
10486 // "process.real_user.name" semantic conventions. It represents the username of
10487 // the real user of the process.
10488 //
10489 // Type: string
10490 // RequirementLevel: Recommended
10491 // Stability: Development
10492 //
10493 // Examples: "operator"
10494 ProcessRealUserNameKey = attribute.Key("process.real_user.name")
10495
10496 // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
10497 // "process.runtime.description" semantic conventions. It represents an
10498 // additional description about the runtime of the process, for example a
10499 // specific vendor customization of the runtime environment.
10500 //
10501 // Type: string
10502 // RequirementLevel: Recommended
10503 // Stability: Development
10504 //
10505 // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
10506 ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
10507
10508 // ProcessRuntimeNameKey is the attribute Key conforming to the
10509 // "process.runtime.name" semantic conventions. It represents the name of the
10510 // runtime of this process.
10511 //
10512 // Type: string
10513 // RequirementLevel: Recommended
10514 // Stability: Development
10515 //
10516 // Examples: "OpenJDK Runtime Environment"
10517 ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
10518
10519 // ProcessRuntimeVersionKey is the attribute Key conforming to the
10520 // "process.runtime.version" semantic conventions. It represents the version of
10521 // the runtime of this process, as returned by the runtime without modification.
10522 //
10523 // Type: string
10524 // RequirementLevel: Recommended
10525 // Stability: Development
10526 //
10527 // Examples: 14.0.2
10528 ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
10529
10530 // ProcessSavedUserIDKey is the attribute Key conforming to the
10531 // "process.saved_user.id" semantic conventions. It represents the saved user ID
10532 // (SUID) of the process.
10533 //
10534 // Type: int
10535 // RequirementLevel: Recommended
10536 // Stability: Development
10537 //
10538 // Examples: 1002
10539 ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
10540
10541 // ProcessSavedUserNameKey is the attribute Key conforming to the
10542 // "process.saved_user.name" semantic conventions. It represents the username of
10543 // the saved user.
10544 //
10545 // Type: string
10546 // RequirementLevel: Recommended
10547 // Stability: Development
10548 //
10549 // Examples: "operator"
10550 ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
10551
10552 // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
10553 // "process.session_leader.pid" semantic conventions. It represents the PID of
10554 // the process's session leader. This is also the session ID (SID) of the
10555 // process.
10556 //
10557 // Type: int
10558 // RequirementLevel: Recommended
10559 // Stability: Development
10560 //
10561 // Examples: 14
10562 ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
10563
10564 // ProcessTitleKey is the attribute Key conforming to the "process.title"
10565 // semantic conventions. It represents the process title (proctitle).
10566 //
10567 // Type: string
10568 // RequirementLevel: Recommended
10569 // Stability: Development
10570 //
10571 // Examples: "cat /etc/hostname", "xfce4-session", "bash"
10572 // Note: In many Unix-like systems, process title (proctitle), is the string
10573 // that represents the name or command line of a running process, displayed by
10574 // system monitoring tools like ps, top, and htop.
10575 ProcessTitleKey = attribute.Key("process.title")
10576
10577 // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
10578 // semantic conventions. It represents the effective user ID (EUID) of the
10579 // process.
10580 //
10581 // Type: int
10582 // RequirementLevel: Recommended
10583 // Stability: Development
10584 //
10585 // Examples: 1001
10586 ProcessUserIDKey = attribute.Key("process.user.id")
10587
10588 // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
10589 // semantic conventions. It represents the username of the effective user of the
10590 // process.
10591 //
10592 // Type: string
10593 // RequirementLevel: Recommended
10594 // Stability: Development
10595 //
10596 // Examples: "root"
10597 ProcessUserNameKey = attribute.Key("process.user.name")
10598
10599 // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
10600 // conventions. It represents the virtual process identifier.
10601 //
10602 // Type: int
10603 // RequirementLevel: Recommended
10604 // Stability: Development
10605 //
10606 // Examples: 12
10607 // Note: The process ID within a PID namespace. This is not necessarily unique
10608 // across all processes on the host but it is unique within the process
10609 // namespace that the process exists within.
10610 ProcessVpidKey = attribute.Key("process.vpid")
10611
10612 // ProcessWorkingDirectoryKey is the attribute Key conforming to the
10613 // "process.working_directory" semantic conventions. It represents the working
10614 // directory of the process.
10615 //
10616 // Type: string
10617 // RequirementLevel: Recommended
10618 // Stability: Development
10619 //
10620 // Examples: "/root"
10621 ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
10622 )
10623
10624 // ProcessArgsCount returns an attribute KeyValue conforming to the
10625 // "process.args_count" semantic conventions. It represents the length of the
10626 // process.command_args array.
10627 func ProcessArgsCount(val int) attribute.KeyValue {
10628 return ProcessArgsCountKey.Int(val)
10629 }
10630
10631 // ProcessCommand returns an attribute KeyValue conforming to the
10632 // "process.command" semantic conventions. It represents the command used to
10633 // launch the process (i.e. the command name). On Linux based systems, can be set
10634 // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
10635 // first parameter extracted from `GetCommandLineW`.
10636 func ProcessCommand(val string) attribute.KeyValue {
10637 return ProcessCommandKey.String(val)
10638 }
10639
10640 // ProcessCommandArgs returns an attribute KeyValue conforming to the
10641 // "process.command_args" semantic conventions. It represents the all the command
10642 // arguments (including the command/executable itself) as received by the
10643 // process. On Linux-based systems (and some other Unixoid systems supporting
10644 // procfs), can be set according to the list of null-delimited strings extracted
10645 // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
10646 // argv vector passed to `main`. SHOULD NOT be collected by default unless there
10647 // is sanitization that excludes sensitive data.
10648 func ProcessCommandArgs(val ...string) attribute.KeyValue {
10649 return ProcessCommandArgsKey.StringSlice(val)
10650 }
10651
10652 // ProcessCommandLine returns an attribute KeyValue conforming to the
10653 // "process.command_line" semantic conventions. It represents the full command
10654 // used to launch the process as a single string representing the full command.
10655 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
10656 // you have to assemble it just for monitoring; use `process.command_args`
10657 // instead. SHOULD NOT be collected by default unless there is sanitization that
10658 // excludes sensitive data.
10659 func ProcessCommandLine(val string) attribute.KeyValue {
10660 return ProcessCommandLineKey.String(val)
10661 }
10662
10663 // ProcessCreationTime returns an attribute KeyValue 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 func ProcessCreationTime(val string) attribute.KeyValue {
10667 return ProcessCreationTimeKey.String(val)
10668 }
10669
10670 // ProcessEnvironmentVariable returns an attribute KeyValue conforming to the
10671 // "process.environment_variable" semantic conventions. It represents the process
10672 // environment variables, <key> being the environment variable name, the value
10673 // being the environment variable value.
10674 func ProcessEnvironmentVariable(key string, val string) attribute.KeyValue {
10675 return attribute.String("process.environment_variable."+key, val)
10676 }
10677
10678 // ProcessExecutableBuildIDGNU returns an attribute KeyValue conforming to the
10679 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
10680 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
10681 func ProcessExecutableBuildIDGNU(val string) attribute.KeyValue {
10682 return ProcessExecutableBuildIDGNUKey.String(val)
10683 }
10684
10685 // ProcessExecutableBuildIDGo returns an attribute KeyValue 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 func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
10689 return ProcessExecutableBuildIDGoKey.String(val)
10690 }
10691
10692 // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to
10693 // the "process.executable.build_id.htlhash" semantic conventions. It represents
10694 // the profiling specific build ID for executables. See the OTel specification
10695 // for Profiles for more information.
10696 func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue {
10697 return ProcessExecutableBuildIDHtlhashKey.String(val)
10698 }
10699
10700 // ProcessExecutableName returns an attribute KeyValue conforming to the
10701 // "process.executable.name" semantic conventions. It represents the name of the
10702 // process executable. On Linux based systems, this SHOULD be set to the base
10703 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the
10704 // base name of `GetProcessImageFileNameW`.
10705 func ProcessExecutableName(val string) attribute.KeyValue {
10706 return ProcessExecutableNameKey.String(val)
10707 }
10708
10709 // ProcessExecutablePath returns an attribute KeyValue conforming to the
10710 // "process.executable.path" semantic conventions. It represents the full path to
10711 // the process executable. On Linux based systems, can be set to the target of
10712 // `proc/[pid]/exe`. On Windows, can be set to the result of
10713 // `GetProcessImageFileNameW`.
10714 func ProcessExecutablePath(val string) attribute.KeyValue {
10715 return ProcessExecutablePathKey.String(val)
10716 }
10717
10718 // ProcessExitCode returns an attribute KeyValue conforming to the
10719 // "process.exit.code" semantic conventions. It represents the exit code of the
10720 // process.
10721 func ProcessExitCode(val int) attribute.KeyValue {
10722 return ProcessExitCodeKey.Int(val)
10723 }
10724
10725 // ProcessExitTime returns an attribute KeyValue conforming to the
10726 // "process.exit.time" semantic conventions. It represents the date and time the
10727 // process exited, in ISO 8601 format.
10728 func ProcessExitTime(val string) attribute.KeyValue {
10729 return ProcessExitTimeKey.String(val)
10730 }
10731
10732 // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
10733 // "process.group_leader.pid" semantic conventions. It represents the PID of the
10734 // process's group leader. This is also the process group ID (PGID) of the
10735 // process.
10736 func ProcessGroupLeaderPID(val int) attribute.KeyValue {
10737 return ProcessGroupLeaderPIDKey.Int(val)
10738 }
10739
10740 // ProcessInteractive returns an attribute KeyValue conforming to the
10741 // "process.interactive" semantic conventions. It represents the whether the
10742 // process is connected to an interactive shell.
10743 func ProcessInteractive(val bool) attribute.KeyValue {
10744 return ProcessInteractiveKey.Bool(val)
10745 }
10746
10747 // ProcessLinuxCgroup returns an attribute KeyValue conforming to the
10748 // "process.linux.cgroup" semantic conventions. It represents the control group
10749 // associated with the process.
10750 func ProcessLinuxCgroup(val string) attribute.KeyValue {
10751 return ProcessLinuxCgroupKey.String(val)
10752 }
10753
10754 // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
10755 // semantic conventions. It represents the username of the user that owns the
10756 // process.
10757 func ProcessOwner(val string) attribute.KeyValue {
10758 return ProcessOwnerKey.String(val)
10759 }
10760
10761 // ProcessParentPID returns an attribute KeyValue conforming to the
10762 // "process.parent_pid" semantic conventions. It represents the parent Process
10763 // identifier (PPID).
10764 func ProcessParentPID(val int) attribute.KeyValue {
10765 return ProcessParentPIDKey.Int(val)
10766 }
10767
10768 // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
10769 // semantic conventions. It represents the process identifier (PID).
10770 func ProcessPID(val int) attribute.KeyValue {
10771 return ProcessPIDKey.Int(val)
10772 }
10773
10774 // ProcessRealUserID returns an attribute KeyValue conforming to the
10775 // "process.real_user.id" semantic conventions. It represents the real user ID
10776 // (RUID) of the process.
10777 func ProcessRealUserID(val int) attribute.KeyValue {
10778 return ProcessRealUserIDKey.Int(val)
10779 }
10780
10781 // ProcessRealUserName returns an attribute KeyValue conforming to the
10782 // "process.real_user.name" semantic conventions. It represents the username of
10783 // the real user of the process.
10784 func ProcessRealUserName(val string) attribute.KeyValue {
10785 return ProcessRealUserNameKey.String(val)
10786 }
10787
10788 // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
10789 // "process.runtime.description" semantic conventions. It represents an
10790 // additional description about the runtime of the process, for example a
10791 // specific vendor customization of the runtime environment.
10792 func ProcessRuntimeDescription(val string) attribute.KeyValue {
10793 return ProcessRuntimeDescriptionKey.String(val)
10794 }
10795
10796 // ProcessRuntimeName returns an attribute KeyValue conforming to the
10797 // "process.runtime.name" semantic conventions. It represents the name of the
10798 // runtime of this process.
10799 func ProcessRuntimeName(val string) attribute.KeyValue {
10800 return ProcessRuntimeNameKey.String(val)
10801 }
10802
10803 // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
10804 // "process.runtime.version" semantic conventions. It represents the version of
10805 // the runtime of this process, as returned by the runtime without modification.
10806 func ProcessRuntimeVersion(val string) attribute.KeyValue {
10807 return ProcessRuntimeVersionKey.String(val)
10808 }
10809
10810 // ProcessSavedUserID returns an attribute KeyValue conforming to the
10811 // "process.saved_user.id" semantic conventions. It represents the saved user ID
10812 // (SUID) of the process.
10813 func ProcessSavedUserID(val int) attribute.KeyValue {
10814 return ProcessSavedUserIDKey.Int(val)
10815 }
10816
10817 // ProcessSavedUserName returns an attribute KeyValue conforming to the
10818 // "process.saved_user.name" semantic conventions. It represents the username of
10819 // the saved user.
10820 func ProcessSavedUserName(val string) attribute.KeyValue {
10821 return ProcessSavedUserNameKey.String(val)
10822 }
10823
10824 // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
10825 // "process.session_leader.pid" semantic conventions. It represents the PID of
10826 // the process's session leader. This is also the session ID (SID) of the
10827 // process.
10828 func ProcessSessionLeaderPID(val int) attribute.KeyValue {
10829 return ProcessSessionLeaderPIDKey.Int(val)
10830 }
10831
10832 // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
10833 // semantic conventions. It represents the process title (proctitle).
10834 func ProcessTitle(val string) attribute.KeyValue {
10835 return ProcessTitleKey.String(val)
10836 }
10837
10838 // ProcessUserID returns an attribute KeyValue conforming to the
10839 // "process.user.id" semantic conventions. It represents the effective user ID
10840 // (EUID) of the process.
10841 func ProcessUserID(val int) attribute.KeyValue {
10842 return ProcessUserIDKey.Int(val)
10843 }
10844
10845 // ProcessUserName returns an attribute KeyValue conforming to the
10846 // "process.user.name" semantic conventions. It represents the username of the
10847 // effective user of the process.
10848 func ProcessUserName(val string) attribute.KeyValue {
10849 return ProcessUserNameKey.String(val)
10850 }
10851
10852 // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
10853 // semantic conventions. It represents the virtual process identifier.
10854 func ProcessVpid(val int) attribute.KeyValue {
10855 return ProcessVpidKey.Int(val)
10856 }
10857
10858 // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
10859 // "process.working_directory" semantic conventions. It represents the working
10860 // directory of the process.
10861 func ProcessWorkingDirectory(val string) attribute.KeyValue {
10862 return ProcessWorkingDirectoryKey.String(val)
10863 }
10864
10865 // Enum values for process.context_switch_type
10866 var (
10867 // voluntary
10868 // Stability: development
10869 ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
10870 // involuntary
10871 // Stability: development
10872 ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
10873 )
10874
10875 // Enum values for process.paging.fault_type
10876 var (
10877 // major
10878 // Stability: development
10879 ProcessPagingFaultTypeMajor = ProcessPagingFaultTypeKey.String("major")
10880 // minor
10881 // Stability: development
10882 ProcessPagingFaultTypeMinor = ProcessPagingFaultTypeKey.String("minor")
10883 )
10884
10885 // Namespace: profile
10886 const (
10887 // ProfileFrameTypeKey is the attribute Key conforming to the
10888 // "profile.frame.type" semantic conventions. It represents the describes the
10889 // interpreter or compiler of a single frame.
10890 //
10891 // Type: Enum
10892 // RequirementLevel: Recommended
10893 // Stability: Development
10894 //
10895 // Examples: "cpython"
10896 ProfileFrameTypeKey = attribute.Key("profile.frame.type")
10897 )
10898
10899 // Enum values for profile.frame.type
10900 var (
10901 // [.NET]
10902 //
10903 // Stability: development
10904 //
10905 // [.NET]: https://wikipedia.org/wiki/.NET
10906 ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
10907 // [JVM]
10908 //
10909 // Stability: development
10910 //
10911 // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
10912 ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
10913 // [Kernel]
10914 //
10915 // Stability: development
10916 //
10917 // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
10918 ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
10919 // Can be one of but not limited to [C], [C++], [Go] or [Rust]. If possible, a
10920 // more precise value MUST be used.
10921 //
10922 // Stability: development
10923 //
10924 // [C]: https://wikipedia.org/wiki/C_(programming_language)
10925 // [C++]: https://wikipedia.org/wiki/C%2B%2B
10926 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
10927 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
10928 ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
10929 // [Perl]
10930 //
10931 // Stability: development
10932 //
10933 // [Perl]: https://wikipedia.org/wiki/Perl
10934 ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
10935 // [PHP]
10936 //
10937 // Stability: development
10938 //
10939 // [PHP]: https://wikipedia.org/wiki/PHP
10940 ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
10941 // [Python]
10942 //
10943 // Stability: development
10944 //
10945 // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
10946 ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
10947 // [Ruby]
10948 //
10949 // Stability: development
10950 //
10951 // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
10952 ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
10953 // [V8JS]
10954 //
10955 // Stability: development
10956 //
10957 // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
10958 ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
10959 // [Erlang]
10960 //
10961 // Stability: development
10962 //
10963 // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)
10964 ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam")
10965 // [Go],
10966 //
10967 // Stability: development
10968 //
10969 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
10970 ProfileFrameTypeGo = ProfileFrameTypeKey.String("go")
10971 // [Rust]
10972 //
10973 // Stability: development
10974 //
10975 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
10976 ProfileFrameTypeRust = ProfileFrameTypeKey.String("rust")
10977 )
10978
10979 // Namespace: rpc
10980 const (
10981 // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the
10982 // "rpc.connect_rpc.error_code" semantic conventions. It represents the
10983 // [error codes] of the Connect request. Error codes are always string values.
10984 //
10985 // Type: Enum
10986 // RequirementLevel: Recommended
10987 // Stability: Development
10988 //
10989 // Examples:
10990 //
10991 // [error codes]: https://connectrpc.com//docs/protocol/#error-codes
10992 RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code")
10993
10994 // RPCGRPCStatusCodeKey is the attribute Key conforming to the
10995 // "rpc.grpc.status_code" semantic conventions. It represents the
10996 // [numeric status code] of the gRPC request.
10997 //
10998 // Type: Enum
10999 // RequirementLevel: Recommended
11000 // Stability: Development
11001 //
11002 // Examples:
11003 //
11004 // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md
11005 RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")
11006
11007 // RPCJSONRPCErrorCodeKey is the attribute Key conforming to the
11008 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
11009 // property of response if it is an error response.
11010 //
11011 // Type: int
11012 // RequirementLevel: Recommended
11013 // Stability: Development
11014 //
11015 // Examples: -32700, 100
11016 RPCJSONRPCErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code")
11017
11018 // RPCJSONRPCErrorMessageKey is the attribute Key conforming to the
11019 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
11020 // `error.message` property of response if it is an error response.
11021 //
11022 // Type: string
11023 // RequirementLevel: Recommended
11024 // Stability: Development
11025 //
11026 // Examples: "Parse error", "User already exists"
11027 RPCJSONRPCErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message")
11028
11029 // RPCJSONRPCRequestIDKey is the attribute Key conforming to the
11030 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id`
11031 // property of request or response. Since protocol allows id to be int, string,
11032 // `null` or missing (for notifications), value is expected to be cast to string
11033 // for simplicity. Use empty string in case of `null` value. Omit entirely if
11034 // this is a notification.
11035 //
11036 // Type: string
11037 // RequirementLevel: Recommended
11038 // Stability: Development
11039 //
11040 // Examples: "10", "request-7", ""
11041 RPCJSONRPCRequestIDKey = attribute.Key("rpc.jsonrpc.request_id")
11042
11043 // RPCJSONRPCVersionKey is the attribute Key conforming to the
11044 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol
11045 // version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0
11046 // doesn't specify this, the value can be omitted.
11047 //
11048 // Type: string
11049 // RequirementLevel: Recommended
11050 // Stability: Development
11051 //
11052 // Examples: "2.0", "1.0"
11053 RPCJSONRPCVersionKey = attribute.Key("rpc.jsonrpc.version")
11054
11055 // RPCMessageCompressedSizeKey is the attribute Key conforming to the
11056 // "rpc.message.compressed_size" semantic conventions. It represents the
11057 // compressed size of the message in bytes.
11058 //
11059 // Type: int
11060 // RequirementLevel: Recommended
11061 // Stability: Development
11062 //
11063 // Examples:
11064 RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size")
11065
11066 // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id"
11067 // semantic conventions. It MUST be calculated as two different counters
11068 // starting from `1` one for sent messages and one for received message..
11069 //
11070 // Type: int
11071 // RequirementLevel: Recommended
11072 // Stability: Development
11073 //
11074 // Examples:
11075 // Note: This way we guarantee that the values will be consistent between
11076 // different implementations.
11077 RPCMessageIDKey = attribute.Key("rpc.message.id")
11078
11079 // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type"
11080 // semantic conventions. It represents the whether this is a received or sent
11081 // message.
11082 //
11083 // Type: Enum
11084 // RequirementLevel: Recommended
11085 // Stability: Development
11086 //
11087 // Examples:
11088 RPCMessageTypeKey = attribute.Key("rpc.message.type")
11089
11090 // RPCMessageUncompressedSizeKey is the attribute Key conforming to the
11091 // "rpc.message.uncompressed_size" semantic conventions. It represents the
11092 // uncompressed size of the message in bytes.
11093 //
11094 // Type: int
11095 // RequirementLevel: Recommended
11096 // Stability: Development
11097 //
11098 // Examples:
11099 RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size")
11100
11101 // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
11102 // conventions. It represents the name of the (logical) method being called,
11103 // must be equal to the $method part in the span name.
11104 //
11105 // Type: string
11106 // RequirementLevel: Recommended
11107 // Stability: Development
11108 //
11109 // Examples: exampleMethod
11110 // Note: This is the logical name of the method from the RPC interface
11111 // perspective, which can be different from the name of any implementing
11112 // method/function. The `code.function.name` attribute may be used to store the
11113 // latter (e.g., method actually executing the call on the server side, RPC
11114 // client stub method on the client side).
11115 RPCMethodKey = attribute.Key("rpc.method")
11116
11117 // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic
11118 // conventions. It represents the full (logical) name of the service being
11119 // called, including its package name, if applicable.
11120 //
11121 // Type: string
11122 // RequirementLevel: Recommended
11123 // Stability: Development
11124 //
11125 // Examples: myservice.EchoService
11126 // Note: This is the logical name of the service from the RPC interface
11127 // perspective, which can be different from the name of any implementing class.
11128 // The `code.namespace` attribute may be used to store the latter (despite the
11129 // attribute name, it may include a class name; e.g., class with method actually
11130 // executing the call on the server side, RPC client stub class on the client
11131 // side).
11132 RPCServiceKey = attribute.Key("rpc.service")
11133
11134 // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic
11135 // conventions. It represents a string identifying the remoting system. See
11136 // below for a list of well-known identifiers.
11137 //
11138 // Type: Enum
11139 // RequirementLevel: Recommended
11140 // Stability: Development
11141 //
11142 // Examples:
11143 RPCSystemKey = attribute.Key("rpc.system")
11144 )
11145
11146 // RPCConnectRPCRequestMetadata returns an attribute KeyValue conforming to the
11147 // "rpc.connect_rpc.request.metadata" semantic conventions. It represents the
11148 // connect request metadata, `<key>` being the normalized Connect Metadata key
11149 // (lowercase), the value being the metadata values.
11150 func RPCConnectRPCRequestMetadata(key string, val ...string) attribute.KeyValue {
11151 return attribute.StringSlice("rpc.connect_rpc.request.metadata."+key, val)
11152 }
11153
11154 // RPCConnectRPCResponseMetadata returns an attribute KeyValue conforming to the
11155 // "rpc.connect_rpc.response.metadata" semantic conventions. It represents the
11156 // connect response metadata, `<key>` being the normalized Connect Metadata key
11157 // (lowercase), the value being the metadata values.
11158 func RPCConnectRPCResponseMetadata(key string, val ...string) attribute.KeyValue {
11159 return attribute.StringSlice("rpc.connect_rpc.response.metadata."+key, val)
11160 }
11161
11162 // RPCGRPCRequestMetadata returns an attribute KeyValue conforming to the
11163 // "rpc.grpc.request.metadata" semantic conventions. It represents the gRPC
11164 // request metadata, `<key>` being the normalized gRPC Metadata key (lowercase),
11165 // the value being the metadata values.
11166 func RPCGRPCRequestMetadata(key string, val ...string) attribute.KeyValue {
11167 return attribute.StringSlice("rpc.grpc.request.metadata."+key, val)
11168 }
11169
11170 // RPCGRPCResponseMetadata returns an attribute KeyValue conforming to the
11171 // "rpc.grpc.response.metadata" semantic conventions. It represents the gRPC
11172 // response metadata, `<key>` being the normalized gRPC Metadata key (lowercase),
11173 // the value being the metadata values.
11174 func RPCGRPCResponseMetadata(key string, val ...string) attribute.KeyValue {
11175 return attribute.StringSlice("rpc.grpc.response.metadata."+key, val)
11176 }
11177
11178 // RPCJSONRPCErrorCode returns an attribute KeyValue conforming to the
11179 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
11180 // property of response if it is an error response.
11181 func RPCJSONRPCErrorCode(val int) attribute.KeyValue {
11182 return RPCJSONRPCErrorCodeKey.Int(val)
11183 }
11184
11185 // RPCJSONRPCErrorMessage returns an attribute KeyValue conforming to the
11186 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
11187 // `error.message` property of response if it is an error response.
11188 func RPCJSONRPCErrorMessage(val string) attribute.KeyValue {
11189 return RPCJSONRPCErrorMessageKey.String(val)
11190 }
11191
11192 // RPCJSONRPCRequestID returns an attribute KeyValue conforming to the
11193 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property
11194 // of request or response. Since protocol allows id to be int, string, `null` or
11195 // missing (for notifications), value is expected to be cast to string for
11196 // simplicity. Use empty string in case of `null` value. Omit entirely if this is
11197 // a notification.
11198 func RPCJSONRPCRequestID(val string) attribute.KeyValue {
11199 return RPCJSONRPCRequestIDKey.String(val)
11200 }
11201
11202 // RPCJSONRPCVersion returns an attribute KeyValue conforming to the
11203 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol version
11204 // as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't
11205 // specify this, the value can be omitted.
11206 func RPCJSONRPCVersion(val string) attribute.KeyValue {
11207 return RPCJSONRPCVersionKey.String(val)
11208 }
11209
11210 // RPCMessageCompressedSize returns an attribute KeyValue conforming to the
11211 // "rpc.message.compressed_size" semantic conventions. It represents the
11212 // compressed size of the message in bytes.
11213 func RPCMessageCompressedSize(val int) attribute.KeyValue {
11214 return RPCMessageCompressedSizeKey.Int(val)
11215 }
11216
11217 // RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id"
11218 // semantic conventions. It MUST be calculated as two different counters starting
11219 // from `1` one for sent messages and one for received message..
11220 func RPCMessageID(val int) attribute.KeyValue {
11221 return RPCMessageIDKey.Int(val)
11222 }
11223
11224 // RPCMessageUncompressedSize returns an attribute KeyValue conforming to the
11225 // "rpc.message.uncompressed_size" semantic conventions. It represents the
11226 // uncompressed size of the message in bytes.
11227 func RPCMessageUncompressedSize(val int) attribute.KeyValue {
11228 return RPCMessageUncompressedSizeKey.Int(val)
11229 }
11230
11231 // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
11232 // semantic conventions. It represents the name of the (logical) method being
11233 // called, must be equal to the $method part in the span name.
11234 func RPCMethod(val string) attribute.KeyValue {
11235 return RPCMethodKey.String(val)
11236 }
11237
11238 // RPCService returns an attribute KeyValue conforming to the "rpc.service"
11239 // semantic conventions. It represents the full (logical) name of the service
11240 // being called, including its package name, if applicable.
11241 func RPCService(val string) attribute.KeyValue {
11242 return RPCServiceKey.String(val)
11243 }
11244
11245 // Enum values for rpc.connect_rpc.error_code
11246 var (
11247 // cancelled
11248 // Stability: development
11249 RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled")
11250 // unknown
11251 // Stability: development
11252 RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown")
11253 // invalid_argument
11254 // Stability: development
11255 RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument")
11256 // deadline_exceeded
11257 // Stability: development
11258 RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded")
11259 // not_found
11260 // Stability: development
11261 RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found")
11262 // already_exists
11263 // Stability: development
11264 RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists")
11265 // permission_denied
11266 // Stability: development
11267 RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied")
11268 // resource_exhausted
11269 // Stability: development
11270 RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted")
11271 // failed_precondition
11272 // Stability: development
11273 RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition")
11274 // aborted
11275 // Stability: development
11276 RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted")
11277 // out_of_range
11278 // Stability: development
11279 RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range")
11280 // unimplemented
11281 // Stability: development
11282 RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented")
11283 // internal
11284 // Stability: development
11285 RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal")
11286 // unavailable
11287 // Stability: development
11288 RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable")
11289 // data_loss
11290 // Stability: development
11291 RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss")
11292 // unauthenticated
11293 // Stability: development
11294 RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated")
11295 )
11296
11297 // Enum values for rpc.grpc.status_code
11298 var (
11299 // OK
11300 // Stability: development
11301 RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0)
11302 // CANCELLED
11303 // Stability: development
11304 RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1)
11305 // UNKNOWN
11306 // Stability: development
11307 RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2)
11308 // INVALID_ARGUMENT
11309 // Stability: development
11310 RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3)
11311 // DEADLINE_EXCEEDED
11312 // Stability: development
11313 RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4)
11314 // NOT_FOUND
11315 // Stability: development
11316 RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5)
11317 // ALREADY_EXISTS
11318 // Stability: development
11319 RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6)
11320 // PERMISSION_DENIED
11321 // Stability: development
11322 RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7)
11323 // RESOURCE_EXHAUSTED
11324 // Stability: development
11325 RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8)
11326 // FAILED_PRECONDITION
11327 // Stability: development
11328 RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9)
11329 // ABORTED
11330 // Stability: development
11331 RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10)
11332 // OUT_OF_RANGE
11333 // Stability: development
11334 RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11)
11335 // UNIMPLEMENTED
11336 // Stability: development
11337 RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12)
11338 // INTERNAL
11339 // Stability: development
11340 RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13)
11341 // UNAVAILABLE
11342 // Stability: development
11343 RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14)
11344 // DATA_LOSS
11345 // Stability: development
11346 RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15)
11347 // UNAUTHENTICATED
11348 // Stability: development
11349 RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16)
11350 )
11351
11352 // Enum values for rpc.message.type
11353 var (
11354 // sent
11355 // Stability: development
11356 RPCMessageTypeSent = RPCMessageTypeKey.String("SENT")
11357 // received
11358 // Stability: development
11359 RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")
11360 )
11361
11362 // Enum values for rpc.system
11363 var (
11364 // gRPC
11365 // Stability: development
11366 RPCSystemGRPC = RPCSystemKey.String("grpc")
11367 // Java RMI
11368 // Stability: development
11369 RPCSystemJavaRmi = RPCSystemKey.String("java_rmi")
11370 // .NET WCF
11371 // Stability: development
11372 RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf")
11373 // Apache Dubbo
11374 // Stability: development
11375 RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo")
11376 // Connect RPC
11377 // Stability: development
11378 RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc")
11379 )
11380
11381 // Namespace: security_rule
11382 const (
11383 // SecurityRuleCategoryKey is the attribute Key conforming to the
11384 // "security_rule.category" semantic conventions. It represents a categorization
11385 // value keyword used by the entity using the rule for detection of this event.
11386 //
11387 // Type: string
11388 // RequirementLevel: Recommended
11389 // Stability: Development
11390 //
11391 // Examples: "Attempted Information Leak"
11392 SecurityRuleCategoryKey = attribute.Key("security_rule.category")
11393
11394 // SecurityRuleDescriptionKey is the attribute Key conforming to the
11395 // "security_rule.description" semantic conventions. It represents the
11396 // description of the rule generating the event.
11397 //
11398 // Type: string
11399 // RequirementLevel: Recommended
11400 // Stability: Development
11401 //
11402 // Examples: "Block requests to public DNS over HTTPS / TLS protocols"
11403 SecurityRuleDescriptionKey = attribute.Key("security_rule.description")
11404
11405 // SecurityRuleLicenseKey is the attribute Key conforming to the
11406 // "security_rule.license" semantic conventions. It represents the name of the
11407 // license under which the rule used to generate this event is made available.
11408 //
11409 // Type: string
11410 // RequirementLevel: Recommended
11411 // Stability: Development
11412 //
11413 // Examples: "Apache 2.0"
11414 SecurityRuleLicenseKey = attribute.Key("security_rule.license")
11415
11416 // SecurityRuleNameKey is the attribute Key conforming to the
11417 // "security_rule.name" semantic conventions. It represents the name of the rule
11418 // or signature generating the event.
11419 //
11420 // Type: string
11421 // RequirementLevel: Recommended
11422 // Stability: Development
11423 //
11424 // Examples: "BLOCK_DNS_over_TLS"
11425 SecurityRuleNameKey = attribute.Key("security_rule.name")
11426
11427 // SecurityRuleReferenceKey is the attribute Key conforming to the
11428 // "security_rule.reference" semantic conventions. It represents the reference
11429 // URL to additional information about the rule used to generate this event.
11430 //
11431 // Type: string
11432 // RequirementLevel: Recommended
11433 // Stability: Development
11434 //
11435 // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS"
11436 // Note: The URL can point to the vendor’s documentation about the rule. If
11437 // that’s not available, it can also be a link to a more general page
11438 // describing this type of alert.
11439 SecurityRuleReferenceKey = attribute.Key("security_rule.reference")
11440
11441 // SecurityRuleRulesetNameKey is the attribute Key conforming to the
11442 // "security_rule.ruleset.name" semantic conventions. It represents the name of
11443 // the ruleset, policy, group, or parent category in which the rule used to
11444 // generate this event is a member.
11445 //
11446 // Type: string
11447 // RequirementLevel: Recommended
11448 // Stability: Development
11449 //
11450 // Examples: "Standard_Protocol_Filters"
11451 SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name")
11452
11453 // SecurityRuleUUIDKey is the attribute Key conforming to the
11454 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
11455 // unique within the scope of a set or group of agents, observers, or other
11456 // entities using the rule for detection of this event.
11457 //
11458 // Type: string
11459 // RequirementLevel: Recommended
11460 // Stability: Development
11461 //
11462 // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011"
11463 SecurityRuleUUIDKey = attribute.Key("security_rule.uuid")
11464
11465 // SecurityRuleVersionKey is the attribute Key conforming to the
11466 // "security_rule.version" semantic conventions. It represents the version /
11467 // revision of the rule being used for analysis.
11468 //
11469 // Type: string
11470 // RequirementLevel: Recommended
11471 // Stability: Development
11472 //
11473 // Examples: "1.0.0"
11474 SecurityRuleVersionKey = attribute.Key("security_rule.version")
11475 )
11476
11477 // SecurityRuleCategory returns an attribute KeyValue conforming to the
11478 // "security_rule.category" semantic conventions. It represents a categorization
11479 // value keyword used by the entity using the rule for detection of this event.
11480 func SecurityRuleCategory(val string) attribute.KeyValue {
11481 return SecurityRuleCategoryKey.String(val)
11482 }
11483
11484 // SecurityRuleDescription returns an attribute KeyValue conforming to the
11485 // "security_rule.description" semantic conventions. It represents the
11486 // description of the rule generating the event.
11487 func SecurityRuleDescription(val string) attribute.KeyValue {
11488 return SecurityRuleDescriptionKey.String(val)
11489 }
11490
11491 // SecurityRuleLicense returns an attribute KeyValue conforming to the
11492 // "security_rule.license" semantic conventions. It represents the name of the
11493 // license under which the rule used to generate this event is made available.
11494 func SecurityRuleLicense(val string) attribute.KeyValue {
11495 return SecurityRuleLicenseKey.String(val)
11496 }
11497
11498 // SecurityRuleName returns an attribute KeyValue conforming to the
11499 // "security_rule.name" semantic conventions. It represents the name of the rule
11500 // or signature generating the event.
11501 func SecurityRuleName(val string) attribute.KeyValue {
11502 return SecurityRuleNameKey.String(val)
11503 }
11504
11505 // SecurityRuleReference returns an attribute KeyValue conforming to the
11506 // "security_rule.reference" semantic conventions. It represents the reference
11507 // URL to additional information about the rule used to generate this event.
11508 func SecurityRuleReference(val string) attribute.KeyValue {
11509 return SecurityRuleReferenceKey.String(val)
11510 }
11511
11512 // SecurityRuleRulesetName returns an attribute KeyValue conforming to the
11513 // "security_rule.ruleset.name" semantic conventions. It represents the name of
11514 // the ruleset, policy, group, or parent category in which the rule used to
11515 // generate this event is a member.
11516 func SecurityRuleRulesetName(val string) attribute.KeyValue {
11517 return SecurityRuleRulesetNameKey.String(val)
11518 }
11519
11520 // SecurityRuleUUID returns an attribute KeyValue conforming to the
11521 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
11522 // unique within the scope of a set or group of agents, observers, or other
11523 // entities using the rule for detection of this event.
11524 func SecurityRuleUUID(val string) attribute.KeyValue {
11525 return SecurityRuleUUIDKey.String(val)
11526 }
11527
11528 // SecurityRuleVersion returns an attribute KeyValue conforming to the
11529 // "security_rule.version" semantic conventions. It represents the version /
11530 // revision of the rule being used for analysis.
11531 func SecurityRuleVersion(val string) attribute.KeyValue {
11532 return SecurityRuleVersionKey.String(val)
11533 }
11534
11535 // Namespace: server
11536 const (
11537 // ServerAddressKey is the attribute Key conforming to the "server.address"
11538 // semantic conventions. It represents the server domain name if available
11539 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
11540 //
11541 // Type: string
11542 // RequirementLevel: Recommended
11543 // Stability: Stable
11544 //
11545 // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
11546 // Note: When observed from the client side, and when communicating through an
11547 // intermediary, `server.address` SHOULD represent the server address behind any
11548 // intermediaries, for example proxies, if it's available.
11549 ServerAddressKey = attribute.Key("server.address")
11550
11551 // ServerPortKey is the attribute Key conforming to the "server.port" semantic
11552 // conventions. It represents the server port number.
11553 //
11554 // Type: int
11555 // RequirementLevel: Recommended
11556 // Stability: Stable
11557 //
11558 // Examples: 80, 8080, 443
11559 // Note: When observed from the client side, and when communicating through an
11560 // intermediary, `server.port` SHOULD represent the server port behind any
11561 // intermediaries, for example proxies, if it's available.
11562 ServerPortKey = attribute.Key("server.port")
11563 )
11564
11565 // ServerAddress returns an attribute KeyValue conforming to the "server.address"
11566 // semantic conventions. It represents the server domain name if available
11567 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
11568 func ServerAddress(val string) attribute.KeyValue {
11569 return ServerAddressKey.String(val)
11570 }
11571
11572 // ServerPort returns an attribute KeyValue conforming to the "server.port"
11573 // semantic conventions. It represents the server port number.
11574 func ServerPort(val int) attribute.KeyValue {
11575 return ServerPortKey.Int(val)
11576 }
11577
11578 // Namespace: service
11579 const (
11580 // ServiceInstanceIDKey is the attribute Key conforming to the
11581 // "service.instance.id" semantic conventions. It represents the string ID of
11582 // the service instance.
11583 //
11584 // Type: string
11585 // RequirementLevel: Recommended
11586 // Stability: Development
11587 //
11588 // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
11589 // Note: MUST be unique for each instance of the same
11590 // `service.namespace,service.name` pair (in other words
11591 // `service.namespace,service.name,service.instance.id` triplet MUST be globally
11592 // unique). The ID helps to
11593 // distinguish instances of the same service that exist at the same time (e.g.
11594 // instances of a horizontally scaled
11595 // service).
11596 //
11597 // Implementations, such as SDKs, are recommended to generate a random Version 1
11598 // or Version 4 [RFC
11599 // 4122] UUID, but are free to use an inherent unique ID as
11600 // the source of
11601 // this value if stability is desirable. In that case, the ID SHOULD be used as
11602 // source of a UUID Version 5 and
11603 // SHOULD use the following UUID as the namespace:
11604 // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
11605 //
11606 // UUIDs are typically recommended, as only an opaque value for the purposes of
11607 // identifying a service instance is
11608 // needed. Similar to what can be seen in the man page for the
11609 // [`/etc/machine-id`] file, the underlying
11610 // data, such as pod name and namespace should be treated as confidential, being
11611 // the user's choice to expose it
11612 // or not via another resource attribute.
11613 //
11614 // For applications running behind an application server (like unicorn), we do
11615 // not recommend using one identifier
11616 // for all processes participating in the application. Instead, it's recommended
11617 // each division (e.g. a worker
11618 // thread in unicorn) to have its own instance.id.
11619 //
11620 // It's not recommended for a Collector to set `service.instance.id` if it can't
11621 // unambiguously determine the
11622 // service instance that is generating that telemetry. For instance, creating an
11623 // UUID based on `pod.name` will
11624 // likely be wrong, as the Collector might not know from which container within
11625 // that pod the telemetry originated.
11626 // However, Collectors can set the `service.instance.id` if they can
11627 // unambiguously determine the service instance
11628 // for that telemetry. This is typically the case for scraping receivers, as
11629 // they know the target address and
11630 // port.
11631 //
11632 // [RFC
11633 // 4122]: https://www.ietf.org/rfc/rfc4122.txt
11634 // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html
11635 ServiceInstanceIDKey = attribute.Key("service.instance.id")
11636
11637 // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
11638 // conventions. It represents the logical name of the service.
11639 //
11640 // Type: string
11641 // RequirementLevel: Recommended
11642 // Stability: Stable
11643 //
11644 // Examples: "shoppingcart"
11645 // Note: MUST be the same for all instances of horizontally scaled services. If
11646 // the value was not specified, SDKs MUST fallback to `unknown_service:`
11647 // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
11648 // If `process.executable.name` is not available, the value MUST be set to
11649 // `unknown_service`.
11650 //
11651 // [`process.executable.name`]: process.md
11652 ServiceNameKey = attribute.Key("service.name")
11653
11654 // ServiceNamespaceKey is the attribute Key conforming to the
11655 // "service.namespace" semantic conventions. It represents a namespace for
11656 // `service.name`.
11657 //
11658 // Type: string
11659 // RequirementLevel: Recommended
11660 // Stability: Development
11661 //
11662 // Examples: "Shop"
11663 // Note: A string value having a meaning that helps to distinguish a group of
11664 // services, for example the team name that owns a group of services.
11665 // `service.name` is expected to be unique within the same namespace. If
11666 // `service.namespace` is not specified in the Resource then `service.name` is
11667 // expected to be unique for all services that have no explicit namespace
11668 // defined (so the empty/unspecified namespace is simply one more valid
11669 // namespace). Zero-length namespace string is assumed equal to unspecified
11670 // namespace.
11671 ServiceNamespaceKey = attribute.Key("service.namespace")
11672
11673 // ServiceVersionKey is the attribute Key conforming to the "service.version"
11674 // semantic conventions. It represents the version string of the service API or
11675 // implementation. The format is not defined by these conventions.
11676 //
11677 // Type: string
11678 // RequirementLevel: Recommended
11679 // Stability: Stable
11680 //
11681 // Examples: "2.0.0", "a01dbef8a"
11682 ServiceVersionKey = attribute.Key("service.version")
11683 )
11684
11685 // ServiceInstanceID returns an attribute KeyValue conforming to the
11686 // "service.instance.id" semantic conventions. It represents the string ID of the
11687 // service instance.
11688 func ServiceInstanceID(val string) attribute.KeyValue {
11689 return ServiceInstanceIDKey.String(val)
11690 }
11691
11692 // ServiceName returns an attribute KeyValue conforming to the "service.name"
11693 // semantic conventions. It represents the logical name of the service.
11694 func ServiceName(val string) attribute.KeyValue {
11695 return ServiceNameKey.String(val)
11696 }
11697
11698 // ServiceNamespace returns an attribute KeyValue conforming to the
11699 // "service.namespace" semantic conventions. It represents a namespace for
11700 // `service.name`.
11701 func ServiceNamespace(val string) attribute.KeyValue {
11702 return ServiceNamespaceKey.String(val)
11703 }
11704
11705 // ServiceVersion returns an attribute KeyValue conforming to the
11706 // "service.version" semantic conventions. It represents the version string of
11707 // the service API or implementation. The format is not defined by these
11708 // conventions.
11709 func ServiceVersion(val string) attribute.KeyValue {
11710 return ServiceVersionKey.String(val)
11711 }
11712
11713 // Namespace: session
11714 const (
11715 // SessionIDKey is the attribute Key conforming to the "session.id" semantic
11716 // conventions. It represents a unique id to identify a session.
11717 //
11718 // Type: string
11719 // RequirementLevel: Recommended
11720 // Stability: Development
11721 //
11722 // Examples: 00112233-4455-6677-8899-aabbccddeeff
11723 SessionIDKey = attribute.Key("session.id")
11724
11725 // SessionPreviousIDKey is the attribute Key conforming to the
11726 // "session.previous_id" semantic conventions. It represents the previous
11727 // `session.id` for this user, when known.
11728 //
11729 // Type: string
11730 // RequirementLevel: Recommended
11731 // Stability: Development
11732 //
11733 // Examples: 00112233-4455-6677-8899-aabbccddeeff
11734 SessionPreviousIDKey = attribute.Key("session.previous_id")
11735 )
11736
11737 // SessionID returns an attribute KeyValue conforming to the "session.id"
11738 // semantic conventions. It represents a unique id to identify a session.
11739 func SessionID(val string) attribute.KeyValue {
11740 return SessionIDKey.String(val)
11741 }
11742
11743 // SessionPreviousID returns an attribute KeyValue conforming to the
11744 // "session.previous_id" semantic conventions. It represents the previous
11745 // `session.id` for this user, when known.
11746 func SessionPreviousID(val string) attribute.KeyValue {
11747 return SessionPreviousIDKey.String(val)
11748 }
11749
11750 // Namespace: signalr
11751 const (
11752 // SignalRConnectionStatusKey is the attribute Key conforming to the
11753 // "signalr.connection.status" semantic conventions. It represents the signalR
11754 // HTTP connection closure status.
11755 //
11756 // Type: Enum
11757 // RequirementLevel: Recommended
11758 // Stability: Stable
11759 //
11760 // Examples: "app_shutdown", "timeout"
11761 SignalRConnectionStatusKey = attribute.Key("signalr.connection.status")
11762
11763 // SignalRTransportKey is the attribute Key conforming to the
11764 // "signalr.transport" semantic conventions. It represents the
11765 // [SignalR transport type].
11766 //
11767 // Type: Enum
11768 // RequirementLevel: Recommended
11769 // Stability: Stable
11770 //
11771 // Examples: "web_sockets", "long_polling"
11772 //
11773 // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
11774 SignalRTransportKey = attribute.Key("signalr.transport")
11775 )
11776
11777 // Enum values for signalr.connection.status
11778 var (
11779 // The connection was closed normally.
11780 // Stability: stable
11781 SignalRConnectionStatusNormalClosure = SignalRConnectionStatusKey.String("normal_closure")
11782 // The connection was closed due to a timeout.
11783 // Stability: stable
11784 SignalRConnectionStatusTimeout = SignalRConnectionStatusKey.String("timeout")
11785 // The connection was closed because the app is shutting down.
11786 // Stability: stable
11787 SignalRConnectionStatusAppShutdown = SignalRConnectionStatusKey.String("app_shutdown")
11788 )
11789
11790 // Enum values for signalr.transport
11791 var (
11792 // ServerSentEvents protocol
11793 // Stability: stable
11794 SignalRTransportServerSentEvents = SignalRTransportKey.String("server_sent_events")
11795 // LongPolling protocol
11796 // Stability: stable
11797 SignalRTransportLongPolling = SignalRTransportKey.String("long_polling")
11798 // WebSockets protocol
11799 // Stability: stable
11800 SignalRTransportWebSockets = SignalRTransportKey.String("web_sockets")
11801 )
11802
11803 // Namespace: source
11804 const (
11805 // SourceAddressKey is the attribute Key conforming to the "source.address"
11806 // semantic conventions. It represents the source address - domain name if
11807 // available without reverse DNS lookup; otherwise, IP address or Unix domain
11808 // socket name.
11809 //
11810 // Type: string
11811 // RequirementLevel: Recommended
11812 // Stability: Development
11813 //
11814 // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
11815 // Note: When observed from the destination side, and when communicating through
11816 // an intermediary, `source.address` SHOULD represent the source address behind
11817 // any intermediaries, for example proxies, if it's available.
11818 SourceAddressKey = attribute.Key("source.address")
11819
11820 // SourcePortKey is the attribute Key conforming to the "source.port" semantic
11821 // conventions. It represents the source port number.
11822 //
11823 // Type: int
11824 // RequirementLevel: Recommended
11825 // Stability: Development
11826 //
11827 // Examples: 3389, 2888
11828 SourcePortKey = attribute.Key("source.port")
11829 )
11830
11831 // SourceAddress returns an attribute KeyValue conforming to the "source.address"
11832 // semantic conventions. It represents the source address - domain name if
11833 // available without reverse DNS lookup; otherwise, IP address or Unix domain
11834 // socket name.
11835 func SourceAddress(val string) attribute.KeyValue {
11836 return SourceAddressKey.String(val)
11837 }
11838
11839 // SourcePort returns an attribute KeyValue conforming to the "source.port"
11840 // semantic conventions. It represents the source port number.
11841 func SourcePort(val int) attribute.KeyValue {
11842 return SourcePortKey.Int(val)
11843 }
11844
11845 // Namespace: system
11846 const (
11847 // SystemCPULogicalNumberKey is the attribute Key conforming to the
11848 // "system.cpu.logical_number" semantic conventions. It represents the
11849 // deprecated, use `cpu.logical_number` instead.
11850 //
11851 // Type: int
11852 // RequirementLevel: Recommended
11853 // Stability: Development
11854 //
11855 // Examples: 1
11856 SystemCPULogicalNumberKey = attribute.Key("system.cpu.logical_number")
11857
11858 // SystemDeviceKey is the attribute Key conforming to the "system.device"
11859 // semantic conventions. It represents the device identifier.
11860 //
11861 // Type: string
11862 // RequirementLevel: Recommended
11863 // Stability: Development
11864 //
11865 // Examples: "(identifier)"
11866 SystemDeviceKey = attribute.Key("system.device")
11867
11868 // SystemFilesystemModeKey is the attribute Key conforming to the
11869 // "system.filesystem.mode" semantic conventions. It represents the filesystem
11870 // mode.
11871 //
11872 // Type: string
11873 // RequirementLevel: Recommended
11874 // Stability: Development
11875 //
11876 // Examples: "rw, ro"
11877 SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
11878
11879 // SystemFilesystemMountpointKey is the attribute Key conforming to the
11880 // "system.filesystem.mountpoint" semantic conventions. It represents the
11881 // filesystem mount path.
11882 //
11883 // Type: string
11884 // RequirementLevel: Recommended
11885 // Stability: Development
11886 //
11887 // Examples: "/mnt/data"
11888 SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
11889
11890 // SystemFilesystemStateKey is the attribute Key conforming to the
11891 // "system.filesystem.state" semantic conventions. It represents the filesystem
11892 // state.
11893 //
11894 // Type: Enum
11895 // RequirementLevel: Recommended
11896 // Stability: Development
11897 //
11898 // Examples: "used"
11899 SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
11900
11901 // SystemFilesystemTypeKey is the attribute Key conforming to the
11902 // "system.filesystem.type" semantic conventions. It represents the filesystem
11903 // type.
11904 //
11905 // Type: Enum
11906 // RequirementLevel: Recommended
11907 // Stability: Development
11908 //
11909 // Examples: "ext4"
11910 SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
11911
11912 // SystemMemoryStateKey is the attribute Key conforming to the
11913 // "system.memory.state" semantic conventions. It represents the memory state.
11914 //
11915 // Type: Enum
11916 // RequirementLevel: Recommended
11917 // Stability: Development
11918 //
11919 // Examples: "free", "cached"
11920 SystemMemoryStateKey = attribute.Key("system.memory.state")
11921
11922 // SystemPagingDirectionKey is the attribute Key conforming to the
11923 // "system.paging.direction" semantic conventions. It represents the paging
11924 // access direction.
11925 //
11926 // Type: Enum
11927 // RequirementLevel: Recommended
11928 // Stability: Development
11929 //
11930 // Examples: "in"
11931 SystemPagingDirectionKey = attribute.Key("system.paging.direction")
11932
11933 // SystemPagingStateKey is the attribute Key conforming to the
11934 // "system.paging.state" semantic conventions. It represents the memory paging
11935 // state.
11936 //
11937 // Type: Enum
11938 // RequirementLevel: Recommended
11939 // Stability: Development
11940 //
11941 // Examples: "free"
11942 SystemPagingStateKey = attribute.Key("system.paging.state")
11943
11944 // SystemPagingTypeKey is the attribute Key conforming to the
11945 // "system.paging.type" semantic conventions. It represents the memory paging
11946 // type.
11947 //
11948 // Type: Enum
11949 // RequirementLevel: Recommended
11950 // Stability: Development
11951 //
11952 // Examples: "minor"
11953 SystemPagingTypeKey = attribute.Key("system.paging.type")
11954
11955 // SystemProcessStatusKey is the attribute Key conforming to the
11956 // "system.process.status" semantic conventions. It represents the process
11957 // state, e.g., [Linux Process State Codes].
11958 //
11959 // Type: Enum
11960 // RequirementLevel: Recommended
11961 // Stability: Development
11962 //
11963 // Examples: "running"
11964 //
11965 // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
11966 SystemProcessStatusKey = attribute.Key("system.process.status")
11967 )
11968
11969 // SystemCPULogicalNumber returns an attribute KeyValue conforming to the
11970 // "system.cpu.logical_number" semantic conventions. It represents the
11971 // deprecated, use `cpu.logical_number` instead.
11972 func SystemCPULogicalNumber(val int) attribute.KeyValue {
11973 return SystemCPULogicalNumberKey.Int(val)
11974 }
11975
11976 // SystemDevice returns an attribute KeyValue conforming to the "system.device"
11977 // semantic conventions. It represents the device identifier.
11978 func SystemDevice(val string) attribute.KeyValue {
11979 return SystemDeviceKey.String(val)
11980 }
11981
11982 // SystemFilesystemMode returns an attribute KeyValue conforming to the
11983 // "system.filesystem.mode" semantic conventions. It represents the filesystem
11984 // mode.
11985 func SystemFilesystemMode(val string) attribute.KeyValue {
11986 return SystemFilesystemModeKey.String(val)
11987 }
11988
11989 // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
11990 // "system.filesystem.mountpoint" semantic conventions. It represents the
11991 // filesystem mount path.
11992 func SystemFilesystemMountpoint(val string) attribute.KeyValue {
11993 return SystemFilesystemMountpointKey.String(val)
11994 }
11995
11996 // Enum values for system.filesystem.state
11997 var (
11998 // used
11999 // Stability: development
12000 SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
12001 // free
12002 // Stability: development
12003 SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
12004 // reserved
12005 // Stability: development
12006 SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
12007 )
12008
12009 // Enum values for system.filesystem.type
12010 var (
12011 // fat32
12012 // Stability: development
12013 SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
12014 // exfat
12015 // Stability: development
12016 SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
12017 // ntfs
12018 // Stability: development
12019 SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
12020 // refs
12021 // Stability: development
12022 SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
12023 // hfsplus
12024 // Stability: development
12025 SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
12026 // ext4
12027 // Stability: development
12028 SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
12029 )
12030
12031 // Enum values for system.memory.state
12032 var (
12033 // used
12034 // Stability: development
12035 SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
12036 // free
12037 // Stability: development
12038 SystemMemoryStateFree = SystemMemoryStateKey.String("free")
12039 // Deprecated: Removed, report shared memory usage with
12040 // `metric.system.memory.shared` metric.
12041 SystemMemoryStateShared = SystemMemoryStateKey.String("shared")
12042 // buffers
12043 // Stability: development
12044 SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
12045 // cached
12046 // Stability: development
12047 SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
12048 )
12049
12050 // Enum values for system.paging.direction
12051 var (
12052 // in
12053 // Stability: development
12054 SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
12055 // out
12056 // Stability: development
12057 SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
12058 )
12059
12060 // Enum values for system.paging.state
12061 var (
12062 // used
12063 // Stability: development
12064 SystemPagingStateUsed = SystemPagingStateKey.String("used")
12065 // free
12066 // Stability: development
12067 SystemPagingStateFree = SystemPagingStateKey.String("free")
12068 )
12069
12070 // Enum values for system.paging.type
12071 var (
12072 // major
12073 // Stability: development
12074 SystemPagingTypeMajor = SystemPagingTypeKey.String("major")
12075 // minor
12076 // Stability: development
12077 SystemPagingTypeMinor = SystemPagingTypeKey.String("minor")
12078 )
12079
12080 // Enum values for system.process.status
12081 var (
12082 // running
12083 // Stability: development
12084 SystemProcessStatusRunning = SystemProcessStatusKey.String("running")
12085 // sleeping
12086 // Stability: development
12087 SystemProcessStatusSleeping = SystemProcessStatusKey.String("sleeping")
12088 // stopped
12089 // Stability: development
12090 SystemProcessStatusStopped = SystemProcessStatusKey.String("stopped")
12091 // defunct
12092 // Stability: development
12093 SystemProcessStatusDefunct = SystemProcessStatusKey.String("defunct")
12094 )
12095
12096 // Namespace: telemetry
12097 const (
12098 // TelemetryDistroNameKey is the attribute Key conforming to the
12099 // "telemetry.distro.name" semantic conventions. It represents the name of the
12100 // auto instrumentation agent or distribution, if used.
12101 //
12102 // Type: string
12103 // RequirementLevel: Recommended
12104 // Stability: Development
12105 //
12106 // Examples: "parts-unlimited-java"
12107 // Note: Official auto instrumentation agents and distributions SHOULD set the
12108 // `telemetry.distro.name` attribute to
12109 // a string starting with `opentelemetry-`, e.g.
12110 // `opentelemetry-java-instrumentation`.
12111 TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
12112
12113 // TelemetryDistroVersionKey is the attribute Key conforming to the
12114 // "telemetry.distro.version" semantic conventions. It represents the version
12115 // string of the auto instrumentation agent or distribution, if used.
12116 //
12117 // Type: string
12118 // RequirementLevel: Recommended
12119 // Stability: Development
12120 //
12121 // Examples: "1.2.3"
12122 TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
12123
12124 // TelemetrySDKLanguageKey is the attribute Key conforming to the
12125 // "telemetry.sdk.language" semantic conventions. It represents the language of
12126 // the telemetry SDK.
12127 //
12128 // Type: Enum
12129 // RequirementLevel: Recommended
12130 // Stability: Stable
12131 //
12132 // Examples:
12133 TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
12134
12135 // TelemetrySDKNameKey is the attribute Key conforming to the
12136 // "telemetry.sdk.name" semantic conventions. It represents the name of the
12137 // telemetry SDK as defined above.
12138 //
12139 // Type: string
12140 // RequirementLevel: Recommended
12141 // Stability: Stable
12142 //
12143 // Examples: "opentelemetry"
12144 // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
12145 // `opentelemetry`.
12146 // If another SDK, like a fork or a vendor-provided implementation, is used,
12147 // this SDK MUST set the
12148 // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
12149 // this SDK's main entry point
12150 // or another suitable identifier depending on the language.
12151 // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
12152 // All custom identifiers SHOULD be stable across different versions of an
12153 // implementation.
12154 TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
12155
12156 // TelemetrySDKVersionKey is the attribute Key conforming to the
12157 // "telemetry.sdk.version" semantic conventions. It represents the version
12158 // string of the telemetry SDK.
12159 //
12160 // Type: string
12161 // RequirementLevel: Recommended
12162 // Stability: Stable
12163 //
12164 // Examples: "1.2.3"
12165 TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
12166 )
12167
12168 // TelemetryDistroName returns an attribute KeyValue conforming to the
12169 // "telemetry.distro.name" semantic conventions. It represents the name of the
12170 // auto instrumentation agent or distribution, if used.
12171 func TelemetryDistroName(val string) attribute.KeyValue {
12172 return TelemetryDistroNameKey.String(val)
12173 }
12174
12175 // TelemetryDistroVersion returns an attribute KeyValue conforming to the
12176 // "telemetry.distro.version" semantic conventions. It represents the version
12177 // string of the auto instrumentation agent or distribution, if used.
12178 func TelemetryDistroVersion(val string) attribute.KeyValue {
12179 return TelemetryDistroVersionKey.String(val)
12180 }
12181
12182 // TelemetrySDKName returns an attribute KeyValue conforming to the
12183 // "telemetry.sdk.name" semantic conventions. It represents the name of the
12184 // telemetry SDK as defined above.
12185 func TelemetrySDKName(val string) attribute.KeyValue {
12186 return TelemetrySDKNameKey.String(val)
12187 }
12188
12189 // TelemetrySDKVersion returns an attribute KeyValue conforming to the
12190 // "telemetry.sdk.version" semantic conventions. It represents the version string
12191 // of the telemetry SDK.
12192 func TelemetrySDKVersion(val string) attribute.KeyValue {
12193 return TelemetrySDKVersionKey.String(val)
12194 }
12195
12196 // Enum values for telemetry.sdk.language
12197 var (
12198 // cpp
12199 // Stability: stable
12200 TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
12201 // dotnet
12202 // Stability: stable
12203 TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
12204 // erlang
12205 // Stability: stable
12206 TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
12207 // go
12208 // Stability: stable
12209 TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
12210 // java
12211 // Stability: stable
12212 TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
12213 // nodejs
12214 // Stability: stable
12215 TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
12216 // php
12217 // Stability: stable
12218 TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
12219 // python
12220 // Stability: stable
12221 TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
12222 // ruby
12223 // Stability: stable
12224 TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
12225 // rust
12226 // Stability: stable
12227 TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
12228 // swift
12229 // Stability: stable
12230 TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
12231 // webjs
12232 // Stability: stable
12233 TelemetrySDKLanguageWebJS = TelemetrySDKLanguageKey.String("webjs")
12234 )
12235
12236 // Namespace: test
12237 const (
12238 // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
12239 // semantic conventions. It represents the fully qualified human readable name
12240 // of the [test case].
12241 //
12242 // Type: string
12243 // RequirementLevel: Recommended
12244 // Stability: Development
12245 //
12246 // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
12247 // "ExampleTestCase1_test1"
12248 //
12249 // [test case]: https://wikipedia.org/wiki/Test_case
12250 TestCaseNameKey = attribute.Key("test.case.name")
12251
12252 // TestCaseResultStatusKey is the attribute Key conforming to the
12253 // "test.case.result.status" semantic conventions. It represents the status of
12254 // the actual test case result from test execution.
12255 //
12256 // Type: Enum
12257 // RequirementLevel: Recommended
12258 // Stability: Development
12259 //
12260 // Examples: "pass", "fail"
12261 TestCaseResultStatusKey = attribute.Key("test.case.result.status")
12262
12263 // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
12264 // semantic conventions. It represents the human readable name of a [test suite]
12265 // .
12266 //
12267 // Type: string
12268 // RequirementLevel: Recommended
12269 // Stability: Development
12270 //
12271 // Examples: "TestSuite1"
12272 //
12273 // [test suite]: https://wikipedia.org/wiki/Test_suite
12274 TestSuiteNameKey = attribute.Key("test.suite.name")
12275
12276 // TestSuiteRunStatusKey is the attribute Key conforming to the
12277 // "test.suite.run.status" semantic conventions. It represents the status of the
12278 // test suite run.
12279 //
12280 // Type: Enum
12281 // RequirementLevel: Recommended
12282 // Stability: Development
12283 //
12284 // Examples: "success", "failure", "skipped", "aborted", "timed_out",
12285 // "in_progress"
12286 TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
12287 )
12288
12289 // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
12290 // semantic conventions. It represents the fully qualified human readable name of
12291 // the [test case].
12292 //
12293 // [test case]: https://wikipedia.org/wiki/Test_case
12294 func TestCaseName(val string) attribute.KeyValue {
12295 return TestCaseNameKey.String(val)
12296 }
12297
12298 // TestSuiteName returns an attribute KeyValue conforming to the
12299 // "test.suite.name" semantic conventions. It represents the human readable name
12300 // of a [test suite].
12301 //
12302 // [test suite]: https://wikipedia.org/wiki/Test_suite
12303 func TestSuiteName(val string) attribute.KeyValue {
12304 return TestSuiteNameKey.String(val)
12305 }
12306
12307 // Enum values for test.case.result.status
12308 var (
12309 // pass
12310 // Stability: development
12311 TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
12312 // fail
12313 // Stability: development
12314 TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
12315 )
12316
12317 // Enum values for test.suite.run.status
12318 var (
12319 // success
12320 // Stability: development
12321 TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
12322 // failure
12323 // Stability: development
12324 TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
12325 // skipped
12326 // Stability: development
12327 TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
12328 // aborted
12329 // Stability: development
12330 TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
12331 // timed_out
12332 // Stability: development
12333 TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
12334 // in_progress
12335 // Stability: development
12336 TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
12337 )
12338
12339 // Namespace: thread
12340 const (
12341 // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
12342 // conventions. It represents the current "managed" thread ID (as opposed to OS
12343 // thread ID).
12344 //
12345 // Type: int
12346 // RequirementLevel: Recommended
12347 // Stability: Development
12348 ThreadIDKey = attribute.Key("thread.id")
12349
12350 // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
12351 // conventions. It represents the current thread name.
12352 //
12353 // Type: string
12354 // RequirementLevel: Recommended
12355 // Stability: Development
12356 //
12357 // Examples: main
12358 ThreadNameKey = attribute.Key("thread.name")
12359 )
12360
12361 // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
12362 // conventions. It represents the current "managed" thread ID (as opposed to OS
12363 // thread ID).
12364 func ThreadID(val int) attribute.KeyValue {
12365 return ThreadIDKey.Int(val)
12366 }
12367
12368 // ThreadName returns an attribute KeyValue conforming to the "thread.name"
12369 // semantic conventions. It represents the current thread name.
12370 func ThreadName(val string) attribute.KeyValue {
12371 return ThreadNameKey.String(val)
12372 }
12373
12374 // Namespace: tls
12375 const (
12376 // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
12377 // conventions. It represents the string indicating the [cipher] used during the
12378 // current connection.
12379 //
12380 // Type: string
12381 // RequirementLevel: Recommended
12382 // Stability: Development
12383 //
12384 // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
12385 // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
12386 // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
12387 // of the [registered TLS Cipher Suits].
12388 //
12389 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
12390 // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
12391 TLSCipherKey = attribute.Key("tls.cipher")
12392
12393 // TLSClientCertificateKey is the attribute Key conforming to the
12394 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
12395 // stand-alone certificate offered by the client. This is usually
12396 // mutually-exclusive of `client.certificate_chain` since this value also exists
12397 // in that list.
12398 //
12399 // Type: string
12400 // RequirementLevel: Recommended
12401 // Stability: Development
12402 //
12403 // Examples: "MII..."
12404 TLSClientCertificateKey = attribute.Key("tls.client.certificate")
12405
12406 // TLSClientCertificateChainKey is the attribute Key conforming to the
12407 // "tls.client.certificate_chain" semantic conventions. It represents the array
12408 // of PEM-encoded certificates that make up the certificate chain offered by the
12409 // client. This is usually mutually-exclusive of `client.certificate` since that
12410 // value should be the first certificate in the chain.
12411 //
12412 // Type: string[]
12413 // RequirementLevel: Recommended
12414 // Stability: Development
12415 //
12416 // Examples: "MII...", "MI..."
12417 TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
12418
12419 // TLSClientHashMd5Key is the attribute Key conforming to the
12420 // "tls.client.hash.md5" semantic conventions. It represents the certificate
12421 // fingerprint using the MD5 digest of DER-encoded version of certificate
12422 // offered by the client. For consistency with other hash values, this value
12423 // should be formatted as an uppercase hash.
12424 //
12425 // Type: string
12426 // RequirementLevel: Recommended
12427 // Stability: Development
12428 //
12429 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
12430 TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
12431
12432 // TLSClientHashSha1Key is the attribute Key conforming to the
12433 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
12434 // fingerprint using the SHA1 digest of DER-encoded version of certificate
12435 // offered by the client. For consistency with other hash values, this value
12436 // should be formatted as an uppercase hash.
12437 //
12438 // Type: string
12439 // RequirementLevel: Recommended
12440 // Stability: Development
12441 //
12442 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
12443 TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
12444
12445 // TLSClientHashSha256Key is the attribute Key conforming to the
12446 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
12447 // fingerprint using the SHA256 digest of DER-encoded version of certificate
12448 // offered by the client. For consistency with other hash values, this value
12449 // should be formatted as an uppercase hash.
12450 //
12451 // Type: string
12452 // RequirementLevel: Recommended
12453 // Stability: Development
12454 //
12455 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
12456 TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
12457
12458 // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
12459 // semantic conventions. It represents the distinguished name of [subject] of
12460 // the issuer of the x.509 certificate presented by the client.
12461 //
12462 // Type: string
12463 // RequirementLevel: Recommended
12464 // Stability: Development
12465 //
12466 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
12467 //
12468 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
12469 TLSClientIssuerKey = attribute.Key("tls.client.issuer")
12470
12471 // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
12472 // semantic conventions. It represents a hash that identifies clients based on
12473 // how they perform an SSL/TLS handshake.
12474 //
12475 // Type: string
12476 // RequirementLevel: Recommended
12477 // Stability: Development
12478 //
12479 // Examples: "d4e5b18d6b55c71272893221c96ba240"
12480 TLSClientJa3Key = attribute.Key("tls.client.ja3")
12481
12482 // TLSClientNotAfterKey is the attribute Key conforming to the
12483 // "tls.client.not_after" semantic conventions. It represents the date/Time
12484 // indicating when client certificate is no longer considered valid.
12485 //
12486 // Type: string
12487 // RequirementLevel: Recommended
12488 // Stability: Development
12489 //
12490 // Examples: "2021-01-01T00:00:00.000Z"
12491 TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
12492
12493 // TLSClientNotBeforeKey is the attribute Key conforming to the
12494 // "tls.client.not_before" semantic conventions. It represents the date/Time
12495 // indicating when client certificate is first considered valid.
12496 //
12497 // Type: string
12498 // RequirementLevel: Recommended
12499 // Stability: Development
12500 //
12501 // Examples: "1970-01-01T00:00:00.000Z"
12502 TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
12503
12504 // TLSClientSubjectKey is the attribute Key conforming to the
12505 // "tls.client.subject" semantic conventions. It represents the distinguished
12506 // name of subject of the x.509 certificate presented by the client.
12507 //
12508 // Type: string
12509 // RequirementLevel: Recommended
12510 // Stability: Development
12511 //
12512 // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
12513 TLSClientSubjectKey = attribute.Key("tls.client.subject")
12514
12515 // TLSClientSupportedCiphersKey is the attribute Key conforming to the
12516 // "tls.client.supported_ciphers" semantic conventions. It represents the array
12517 // of ciphers offered by the client during the client hello.
12518 //
12519 // Type: string[]
12520 // RequirementLevel: Recommended
12521 // Stability: Development
12522 //
12523 // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
12524 // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
12525 TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
12526
12527 // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
12528 // conventions. It represents the string indicating the curve used for the given
12529 // cipher, when applicable.
12530 //
12531 // Type: string
12532 // RequirementLevel: Recommended
12533 // Stability: Development
12534 //
12535 // Examples: "secp256r1"
12536 TLSCurveKey = attribute.Key("tls.curve")
12537
12538 // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
12539 // semantic conventions. It represents the boolean flag indicating if the TLS
12540 // negotiation was successful and transitioned to an encrypted tunnel.
12541 //
12542 // Type: boolean
12543 // RequirementLevel: Recommended
12544 // Stability: Development
12545 //
12546 // Examples: true
12547 TLSEstablishedKey = attribute.Key("tls.established")
12548
12549 // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
12550 // semantic conventions. It represents the string indicating the protocol being
12551 // tunneled. Per the values in the [IANA registry], this string should be lower
12552 // case.
12553 //
12554 // Type: string
12555 // RequirementLevel: Recommended
12556 // Stability: Development
12557 //
12558 // Examples: "http/1.1"
12559 //
12560 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
12561 TLSNextProtocolKey = attribute.Key("tls.next_protocol")
12562
12563 // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
12564 // semantic conventions. It represents the normalized lowercase protocol name
12565 // parsed from original string of the negotiated [SSL/TLS protocol version].
12566 //
12567 // Type: Enum
12568 // RequirementLevel: Recommended
12569 // Stability: Development
12570 //
12571 // Examples:
12572 //
12573 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
12574 TLSProtocolNameKey = attribute.Key("tls.protocol.name")
12575
12576 // TLSProtocolVersionKey is the attribute Key conforming to the
12577 // "tls.protocol.version" semantic conventions. It represents the numeric part
12578 // of the version parsed from the original string of the negotiated
12579 // [SSL/TLS protocol version].
12580 //
12581 // Type: string
12582 // RequirementLevel: Recommended
12583 // Stability: Development
12584 //
12585 // Examples: "1.2", "3"
12586 //
12587 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
12588 TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
12589
12590 // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
12591 // conventions. It represents the boolean flag indicating if this TLS connection
12592 // was resumed from an existing TLS negotiation.
12593 //
12594 // Type: boolean
12595 // RequirementLevel: Recommended
12596 // Stability: Development
12597 //
12598 // Examples: true
12599 TLSResumedKey = attribute.Key("tls.resumed")
12600
12601 // TLSServerCertificateKey is the attribute Key conforming to the
12602 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
12603 // stand-alone certificate offered by the server. This is usually
12604 // mutually-exclusive of `server.certificate_chain` since this value also exists
12605 // in that list.
12606 //
12607 // Type: string
12608 // RequirementLevel: Recommended
12609 // Stability: Development
12610 //
12611 // Examples: "MII..."
12612 TLSServerCertificateKey = attribute.Key("tls.server.certificate")
12613
12614 // TLSServerCertificateChainKey is the attribute Key conforming to the
12615 // "tls.server.certificate_chain" semantic conventions. It represents the array
12616 // of PEM-encoded certificates that make up the certificate chain offered by the
12617 // server. This is usually mutually-exclusive of `server.certificate` since that
12618 // value should be the first certificate in the chain.
12619 //
12620 // Type: string[]
12621 // RequirementLevel: Recommended
12622 // Stability: Development
12623 //
12624 // Examples: "MII...", "MI..."
12625 TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
12626
12627 // TLSServerHashMd5Key is the attribute Key conforming to the
12628 // "tls.server.hash.md5" semantic conventions. It represents the certificate
12629 // fingerprint using the MD5 digest of DER-encoded version of certificate
12630 // offered by the server. For consistency with other hash values, this value
12631 // should be formatted as an uppercase hash.
12632 //
12633 // Type: string
12634 // RequirementLevel: Recommended
12635 // Stability: Development
12636 //
12637 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
12638 TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
12639
12640 // TLSServerHashSha1Key is the attribute Key conforming to the
12641 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
12642 // fingerprint using the SHA1 digest of DER-encoded version of certificate
12643 // offered by the server. For consistency with other hash values, this value
12644 // should be formatted as an uppercase hash.
12645 //
12646 // Type: string
12647 // RequirementLevel: Recommended
12648 // Stability: Development
12649 //
12650 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
12651 TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
12652
12653 // TLSServerHashSha256Key is the attribute Key conforming to the
12654 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
12655 // fingerprint using the SHA256 digest of DER-encoded version of certificate
12656 // offered by the server. For consistency with other hash values, this value
12657 // should be formatted as an uppercase hash.
12658 //
12659 // Type: string
12660 // RequirementLevel: Recommended
12661 // Stability: Development
12662 //
12663 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
12664 TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
12665
12666 // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
12667 // semantic conventions. It represents the distinguished name of [subject] of
12668 // the issuer of the x.509 certificate presented by the client.
12669 //
12670 // Type: string
12671 // RequirementLevel: Recommended
12672 // Stability: Development
12673 //
12674 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
12675 //
12676 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
12677 TLSServerIssuerKey = attribute.Key("tls.server.issuer")
12678
12679 // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
12680 // semantic conventions. It represents a hash that identifies servers based on
12681 // how they perform an SSL/TLS handshake.
12682 //
12683 // Type: string
12684 // RequirementLevel: Recommended
12685 // Stability: Development
12686 //
12687 // Examples: "d4e5b18d6b55c71272893221c96ba240"
12688 TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
12689
12690 // TLSServerNotAfterKey is the attribute Key conforming to the
12691 // "tls.server.not_after" semantic conventions. It represents the date/Time
12692 // indicating when server certificate is no longer considered valid.
12693 //
12694 // Type: string
12695 // RequirementLevel: Recommended
12696 // Stability: Development
12697 //
12698 // Examples: "2021-01-01T00:00:00.000Z"
12699 TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
12700
12701 // TLSServerNotBeforeKey is the attribute Key conforming to the
12702 // "tls.server.not_before" semantic conventions. It represents the date/Time
12703 // indicating when server certificate is first considered valid.
12704 //
12705 // Type: string
12706 // RequirementLevel: Recommended
12707 // Stability: Development
12708 //
12709 // Examples: "1970-01-01T00:00:00.000Z"
12710 TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
12711
12712 // TLSServerSubjectKey is the attribute Key conforming to the
12713 // "tls.server.subject" semantic conventions. It represents the distinguished
12714 // name of subject of the x.509 certificate presented by the server.
12715 //
12716 // Type: string
12717 // RequirementLevel: Recommended
12718 // Stability: Development
12719 //
12720 // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
12721 TLSServerSubjectKey = attribute.Key("tls.server.subject")
12722 )
12723
12724 // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
12725 // semantic conventions. It represents the string indicating the [cipher] used
12726 // during the current connection.
12727 //
12728 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
12729 func TLSCipher(val string) attribute.KeyValue {
12730 return TLSCipherKey.String(val)
12731 }
12732
12733 // TLSClientCertificate returns an attribute KeyValue conforming to the
12734 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
12735 // stand-alone certificate offered by the client. This is usually
12736 // mutually-exclusive of `client.certificate_chain` since this value also exists
12737 // in that list.
12738 func TLSClientCertificate(val string) attribute.KeyValue {
12739 return TLSClientCertificateKey.String(val)
12740 }
12741
12742 // TLSClientCertificateChain returns an attribute KeyValue conforming to the
12743 // "tls.client.certificate_chain" semantic conventions. It represents the array
12744 // of PEM-encoded certificates that make up the certificate chain offered by the
12745 // client. This is usually mutually-exclusive of `client.certificate` since that
12746 // value should be the first certificate in the chain.
12747 func TLSClientCertificateChain(val ...string) attribute.KeyValue {
12748 return TLSClientCertificateChainKey.StringSlice(val)
12749 }
12750
12751 // TLSClientHashMd5 returns an attribute KeyValue conforming to the
12752 // "tls.client.hash.md5" semantic conventions. It represents the certificate
12753 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
12754 // by the client. For consistency with other hash values, this value should be
12755 // formatted as an uppercase hash.
12756 func TLSClientHashMd5(val string) attribute.KeyValue {
12757 return TLSClientHashMd5Key.String(val)
12758 }
12759
12760 // TLSClientHashSha1 returns an attribute KeyValue conforming to the
12761 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
12762 // fingerprint using the SHA1 digest of DER-encoded version of certificate
12763 // offered by the client. For consistency with other hash values, this value
12764 // should be formatted as an uppercase hash.
12765 func TLSClientHashSha1(val string) attribute.KeyValue {
12766 return TLSClientHashSha1Key.String(val)
12767 }
12768
12769 // TLSClientHashSha256 returns an attribute KeyValue conforming to the
12770 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
12771 // fingerprint using the SHA256 digest of DER-encoded version of certificate
12772 // offered by the client. For consistency with other hash values, this value
12773 // should be formatted as an uppercase hash.
12774 func TLSClientHashSha256(val string) attribute.KeyValue {
12775 return TLSClientHashSha256Key.String(val)
12776 }
12777
12778 // TLSClientIssuer returns an attribute KeyValue conforming to the
12779 // "tls.client.issuer" semantic conventions. It represents the distinguished name
12780 // of [subject] of the issuer of the x.509 certificate presented by the client.
12781 //
12782 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
12783 func TLSClientIssuer(val string) attribute.KeyValue {
12784 return TLSClientIssuerKey.String(val)
12785 }
12786
12787 // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
12788 // semantic conventions. It represents a hash that identifies clients based on
12789 // how they perform an SSL/TLS handshake.
12790 func TLSClientJa3(val string) attribute.KeyValue {
12791 return TLSClientJa3Key.String(val)
12792 }
12793
12794 // TLSClientNotAfter returns an attribute KeyValue conforming to the
12795 // "tls.client.not_after" semantic conventions. It represents the date/Time
12796 // indicating when client certificate is no longer considered valid.
12797 func TLSClientNotAfter(val string) attribute.KeyValue {
12798 return TLSClientNotAfterKey.String(val)
12799 }
12800
12801 // TLSClientNotBefore returns an attribute KeyValue conforming to the
12802 // "tls.client.not_before" semantic conventions. It represents the date/Time
12803 // indicating when client certificate is first considered valid.
12804 func TLSClientNotBefore(val string) attribute.KeyValue {
12805 return TLSClientNotBeforeKey.String(val)
12806 }
12807
12808 // TLSClientSubject returns an attribute KeyValue conforming to the
12809 // "tls.client.subject" semantic conventions. It represents the distinguished
12810 // name of subject of the x.509 certificate presented by the client.
12811 func TLSClientSubject(val string) attribute.KeyValue {
12812 return TLSClientSubjectKey.String(val)
12813 }
12814
12815 // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
12816 // "tls.client.supported_ciphers" semantic conventions. It represents the array
12817 // of ciphers offered by the client during the client hello.
12818 func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
12819 return TLSClientSupportedCiphersKey.StringSlice(val)
12820 }
12821
12822 // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
12823 // conventions. It represents the string indicating the curve used for the given
12824 // cipher, when applicable.
12825 func TLSCurve(val string) attribute.KeyValue {
12826 return TLSCurveKey.String(val)
12827 }
12828
12829 // TLSEstablished returns an attribute KeyValue conforming to the
12830 // "tls.established" semantic conventions. It represents the boolean flag
12831 // indicating if the TLS negotiation was successful and transitioned to an
12832 // encrypted tunnel.
12833 func TLSEstablished(val bool) attribute.KeyValue {
12834 return TLSEstablishedKey.Bool(val)
12835 }
12836
12837 // TLSNextProtocol returns an attribute KeyValue conforming to the
12838 // "tls.next_protocol" semantic conventions. It represents the string indicating
12839 // the protocol being tunneled. Per the values in the [IANA registry], this
12840 // string should be lower case.
12841 //
12842 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
12843 func TLSNextProtocol(val string) attribute.KeyValue {
12844 return TLSNextProtocolKey.String(val)
12845 }
12846
12847 // TLSProtocolVersion returns an attribute KeyValue conforming to the
12848 // "tls.protocol.version" semantic conventions. It represents the numeric part of
12849 // the version parsed from the original string of the negotiated
12850 // [SSL/TLS protocol version].
12851 //
12852 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
12853 func TLSProtocolVersion(val string) attribute.KeyValue {
12854 return TLSProtocolVersionKey.String(val)
12855 }
12856
12857 // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
12858 // semantic conventions. It represents the boolean flag indicating if this TLS
12859 // connection was resumed from an existing TLS negotiation.
12860 func TLSResumed(val bool) attribute.KeyValue {
12861 return TLSResumedKey.Bool(val)
12862 }
12863
12864 // TLSServerCertificate returns an attribute KeyValue conforming to the
12865 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
12866 // stand-alone certificate offered by the server. This is usually
12867 // mutually-exclusive of `server.certificate_chain` since this value also exists
12868 // in that list.
12869 func TLSServerCertificate(val string) attribute.KeyValue {
12870 return TLSServerCertificateKey.String(val)
12871 }
12872
12873 // TLSServerCertificateChain returns an attribute KeyValue conforming to the
12874 // "tls.server.certificate_chain" semantic conventions. It represents the array
12875 // of PEM-encoded certificates that make up the certificate chain offered by the
12876 // server. This is usually mutually-exclusive of `server.certificate` since that
12877 // value should be the first certificate in the chain.
12878 func TLSServerCertificateChain(val ...string) attribute.KeyValue {
12879 return TLSServerCertificateChainKey.StringSlice(val)
12880 }
12881
12882 // TLSServerHashMd5 returns an attribute KeyValue conforming to the
12883 // "tls.server.hash.md5" semantic conventions. It represents the certificate
12884 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
12885 // by the server. For consistency with other hash values, this value should be
12886 // formatted as an uppercase hash.
12887 func TLSServerHashMd5(val string) attribute.KeyValue {
12888 return TLSServerHashMd5Key.String(val)
12889 }
12890
12891 // TLSServerHashSha1 returns an attribute KeyValue conforming to the
12892 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
12893 // fingerprint using the SHA1 digest of DER-encoded version of certificate
12894 // offered by the server. For consistency with other hash values, this value
12895 // should be formatted as an uppercase hash.
12896 func TLSServerHashSha1(val string) attribute.KeyValue {
12897 return TLSServerHashSha1Key.String(val)
12898 }
12899
12900 // TLSServerHashSha256 returns an attribute KeyValue conforming to the
12901 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
12902 // fingerprint using the SHA256 digest of DER-encoded version of certificate
12903 // offered by the server. For consistency with other hash values, this value
12904 // should be formatted as an uppercase hash.
12905 func TLSServerHashSha256(val string) attribute.KeyValue {
12906 return TLSServerHashSha256Key.String(val)
12907 }
12908
12909 // TLSServerIssuer returns an attribute KeyValue conforming to the
12910 // "tls.server.issuer" semantic conventions. It represents the distinguished name
12911 // of [subject] of the issuer of the x.509 certificate presented by the client.
12912 //
12913 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
12914 func TLSServerIssuer(val string) attribute.KeyValue {
12915 return TLSServerIssuerKey.String(val)
12916 }
12917
12918 // TLSServerJa3s returns an attribute KeyValue conforming to the
12919 // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
12920 // servers based on how they perform an SSL/TLS handshake.
12921 func TLSServerJa3s(val string) attribute.KeyValue {
12922 return TLSServerJa3sKey.String(val)
12923 }
12924
12925 // TLSServerNotAfter returns an attribute KeyValue conforming to the
12926 // "tls.server.not_after" semantic conventions. It represents the date/Time
12927 // indicating when server certificate is no longer considered valid.
12928 func TLSServerNotAfter(val string) attribute.KeyValue {
12929 return TLSServerNotAfterKey.String(val)
12930 }
12931
12932 // TLSServerNotBefore returns an attribute KeyValue conforming to the
12933 // "tls.server.not_before" semantic conventions. It represents the date/Time
12934 // indicating when server certificate is first considered valid.
12935 func TLSServerNotBefore(val string) attribute.KeyValue {
12936 return TLSServerNotBeforeKey.String(val)
12937 }
12938
12939 // TLSServerSubject returns an attribute KeyValue conforming to the
12940 // "tls.server.subject" semantic conventions. It represents the distinguished
12941 // name of subject of the x.509 certificate presented by the server.
12942 func TLSServerSubject(val string) attribute.KeyValue {
12943 return TLSServerSubjectKey.String(val)
12944 }
12945
12946 // Enum values for tls.protocol.name
12947 var (
12948 // ssl
12949 // Stability: development
12950 TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
12951 // tls
12952 // Stability: development
12953 TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
12954 )
12955
12956 // Namespace: url
12957 const (
12958 // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
12959 // conventions. It represents the domain extracted from the `url.full`, such as
12960 // "opentelemetry.io".
12961 //
12962 // Type: string
12963 // RequirementLevel: Recommended
12964 // Stability: Development
12965 //
12966 // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
12967 // "[1080:0:0:0:8:800:200C:417A]"
12968 // Note: In some cases a URL may refer to an IP and/or port directly, without a
12969 // domain name. In this case, the IP address would go to the domain field. If
12970 // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
12971 // and `]` characters should also be captured in the domain field.
12972 //
12973 // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
12974 URLDomainKey = attribute.Key("url.domain")
12975
12976 // URLExtensionKey is the attribute Key conforming to the "url.extension"
12977 // semantic conventions. It represents the file extension extracted from the
12978 // `url.full`, excluding the leading dot.
12979 //
12980 // Type: string
12981 // RequirementLevel: Recommended
12982 // Stability: Development
12983 //
12984 // Examples: "png", "gz"
12985 // Note: The file extension is only set if it exists, as not every url has a
12986 // file extension. When the file name has multiple extensions `example.tar.gz`,
12987 // only the last one should be captured `gz`, not `tar.gz`.
12988 URLExtensionKey = attribute.Key("url.extension")
12989
12990 // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
12991 // conventions. It represents the [URI fragment] component.
12992 //
12993 // Type: string
12994 // RequirementLevel: Recommended
12995 // Stability: Stable
12996 //
12997 // Examples: "SemConv"
12998 //
12999 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
13000 URLFragmentKey = attribute.Key("url.fragment")
13001
13002 // URLFullKey is the attribute Key conforming to the "url.full" semantic
13003 // conventions. It represents the absolute URL describing a network resource
13004 // according to [RFC3986].
13005 //
13006 // Type: string
13007 // RequirementLevel: Recommended
13008 // Stability: Stable
13009 //
13010 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
13011 // Note: For network calls, URL usually has
13012 // `scheme://host[:port][path][?query][#fragment]` format, where the fragment
13013 // is not transmitted over HTTP, but if it is known, it SHOULD be included
13014 // nevertheless.
13015 //
13016 // `url.full` MUST NOT contain credentials passed via URL in form of
13017 // `https://username:[email protected]/`.
13018 // In such case username and password SHOULD be redacted and attribute's value
13019 // SHOULD be `https://REDACTED:[email protected]/`.
13020 //
13021 // `url.full` SHOULD capture the absolute URL when it is available (or can be
13022 // reconstructed).
13023 //
13024 // Sensitive content provided in `url.full` SHOULD be scrubbed when
13025 // instrumentations can identify it.
13026 //
13027 //
13028 // Query string values for the following keys SHOULD be redacted by default and
13029 // replaced by the
13030 // value `REDACTED`:
13031 //
13032 // - [`AWSAccessKeyId`]
13033 // - [`Signature`]
13034 // - [`sig`]
13035 // - [`X-Goog-Signature`]
13036 //
13037 // This list is subject to change over time.
13038 //
13039 // When a query string value is redacted, the query string key SHOULD still be
13040 // preserved, e.g.
13041 // `https://www.example.com/path?color=blue&sig=REDACTED`.
13042 //
13043 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
13044 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
13045 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
13046 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
13047 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
13048 URLFullKey = attribute.Key("url.full")
13049
13050 // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
13051 // conventions. It represents the unmodified original URL as seen in the event
13052 // source.
13053 //
13054 // Type: string
13055 // RequirementLevel: Recommended
13056 // Stability: Development
13057 //
13058 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
13059 // "search?q=OpenTelemetry"
13060 // Note: In network monitoring, the observed URL may be a full URL, whereas in
13061 // access logs, the URL is often just represented as a path. This field is meant
13062 // to represent the URL as it was observed, complete or not.
13063 // `url.original` might contain credentials passed via URL in form of
13064 // `https://username:[email protected]/`. In such case password and
13065 // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
13066 URLOriginalKey = attribute.Key("url.original")
13067
13068 // URLPathKey is the attribute Key conforming to the "url.path" semantic
13069 // conventions. It represents the [URI path] component.
13070 //
13071 // Type: string
13072 // RequirementLevel: Recommended
13073 // Stability: Stable
13074 //
13075 // Examples: "/search"
13076 // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
13077 // instrumentations can identify it.
13078 //
13079 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
13080 URLPathKey = attribute.Key("url.path")
13081
13082 // URLPortKey is the attribute Key conforming to the "url.port" semantic
13083 // conventions. It represents the port extracted from the `url.full`.
13084 //
13085 // Type: int
13086 // RequirementLevel: Recommended
13087 // Stability: Development
13088 //
13089 // Examples: 443
13090 URLPortKey = attribute.Key("url.port")
13091
13092 // URLQueryKey is the attribute Key conforming to the "url.query" semantic
13093 // conventions. It represents the [URI query] component.
13094 //
13095 // Type: string
13096 // RequirementLevel: Recommended
13097 // Stability: Stable
13098 //
13099 // Examples: "q=OpenTelemetry"
13100 // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
13101 // instrumentations can identify it.
13102 //
13103 //
13104 // Query string values for the following keys SHOULD be redacted by default and
13105 // replaced by the value `REDACTED`:
13106 //
13107 // - [`AWSAccessKeyId`]
13108 // - [`Signature`]
13109 // - [`sig`]
13110 // - [`X-Goog-Signature`]
13111 //
13112 // This list is subject to change over time.
13113 //
13114 // When a query string value is redacted, the query string key SHOULD still be
13115 // preserved, e.g.
13116 // `q=OpenTelemetry&sig=REDACTED`.
13117 //
13118 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
13119 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
13120 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
13121 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
13122 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
13123 URLQueryKey = attribute.Key("url.query")
13124
13125 // URLRegisteredDomainKey is the attribute Key conforming to the
13126 // "url.registered_domain" semantic conventions. It represents the highest
13127 // registered url domain, stripped of the subdomain.
13128 //
13129 // Type: string
13130 // RequirementLevel: Recommended
13131 // Stability: Development
13132 //
13133 // Examples: "example.com", "foo.co.uk"
13134 // Note: This value can be determined precisely with the [public suffix list].
13135 // For example, the registered domain for `foo.example.com` is `example.com`.
13136 // Trying to approximate this by simply taking the last two labels will not work
13137 // well for TLDs such as `co.uk`.
13138 //
13139 // [public suffix list]: https://publicsuffix.org/
13140 URLRegisteredDomainKey = attribute.Key("url.registered_domain")
13141
13142 // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
13143 // conventions. It represents the [URI scheme] component identifying the used
13144 // protocol.
13145 //
13146 // Type: string
13147 // RequirementLevel: Recommended
13148 // Stability: Stable
13149 //
13150 // Examples: "https", "ftp", "telnet"
13151 //
13152 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
13153 URLSchemeKey = attribute.Key("url.scheme")
13154
13155 // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
13156 // semantic conventions. It represents the subdomain portion of a fully
13157 // qualified domain name includes all of the names except the host name under
13158 // the registered_domain. In a partially qualified domain, or if the
13159 // qualification level of the full name cannot be determined, subdomain contains
13160 // all of the names below the registered domain.
13161 //
13162 // Type: string
13163 // RequirementLevel: Recommended
13164 // Stability: Development
13165 //
13166 // Examples: "east", "sub2.sub1"
13167 // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
13168 // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
13169 // subdomain field should contain `sub2.sub1`, with no trailing period.
13170 URLSubdomainKey = attribute.Key("url.subdomain")
13171
13172 // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
13173 // conventions. It represents the low-cardinality template of an
13174 // [absolute path reference].
13175 //
13176 // Type: string
13177 // RequirementLevel: Recommended
13178 // Stability: Development
13179 //
13180 // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
13181 //
13182 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
13183 URLTemplateKey = attribute.Key("url.template")
13184
13185 // URLTopLevelDomainKey is the attribute Key conforming to the
13186 // "url.top_level_domain" semantic conventions. It represents the effective top
13187 // level domain (eTLD), also known as the domain suffix, is the last part of the
13188 // domain name. For example, the top level domain for example.com is `com`.
13189 //
13190 // Type: string
13191 // RequirementLevel: Recommended
13192 // Stability: Development
13193 //
13194 // Examples: "com", "co.uk"
13195 // Note: This value can be determined precisely with the [public suffix list].
13196 //
13197 // [public suffix list]: https://publicsuffix.org/
13198 URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
13199 )
13200
13201 // URLDomain returns an attribute KeyValue conforming to the "url.domain"
13202 // semantic conventions. It represents the domain extracted from the `url.full`,
13203 // such as "opentelemetry.io".
13204 func URLDomain(val string) attribute.KeyValue {
13205 return URLDomainKey.String(val)
13206 }
13207
13208 // URLExtension returns an attribute KeyValue conforming to the "url.extension"
13209 // semantic conventions. It represents the file extension extracted from the
13210 // `url.full`, excluding the leading dot.
13211 func URLExtension(val string) attribute.KeyValue {
13212 return URLExtensionKey.String(val)
13213 }
13214
13215 // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
13216 // semantic conventions. It represents the [URI fragment] component.
13217 //
13218 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
13219 func URLFragment(val string) attribute.KeyValue {
13220 return URLFragmentKey.String(val)
13221 }
13222
13223 // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
13224 // conventions. It represents the absolute URL describing a network resource
13225 // according to [RFC3986].
13226 //
13227 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
13228 func URLFull(val string) attribute.KeyValue {
13229 return URLFullKey.String(val)
13230 }
13231
13232 // URLOriginal returns an attribute KeyValue conforming to the "url.original"
13233 // semantic conventions. It represents the unmodified original URL as seen in the
13234 // event source.
13235 func URLOriginal(val string) attribute.KeyValue {
13236 return URLOriginalKey.String(val)
13237 }
13238
13239 // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
13240 // conventions. It represents the [URI path] component.
13241 //
13242 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
13243 func URLPath(val string) attribute.KeyValue {
13244 return URLPathKey.String(val)
13245 }
13246
13247 // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
13248 // conventions. It represents the port extracted from the `url.full`.
13249 func URLPort(val int) attribute.KeyValue {
13250 return URLPortKey.Int(val)
13251 }
13252
13253 // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
13254 // conventions. It represents the [URI query] component.
13255 //
13256 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
13257 func URLQuery(val string) attribute.KeyValue {
13258 return URLQueryKey.String(val)
13259 }
13260
13261 // URLRegisteredDomain returns an attribute KeyValue conforming to the
13262 // "url.registered_domain" semantic conventions. It represents the highest
13263 // registered url domain, stripped of the subdomain.
13264 func URLRegisteredDomain(val string) attribute.KeyValue {
13265 return URLRegisteredDomainKey.String(val)
13266 }
13267
13268 // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
13269 // semantic conventions. It represents the [URI scheme] component identifying the
13270 // used protocol.
13271 //
13272 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
13273 func URLScheme(val string) attribute.KeyValue {
13274 return URLSchemeKey.String(val)
13275 }
13276
13277 // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
13278 // semantic conventions. It represents the subdomain portion of a fully qualified
13279 // domain name includes all of the names except the host name under the
13280 // registered_domain. In a partially qualified domain, or if the qualification
13281 // level of the full name cannot be determined, subdomain contains all of the
13282 // names below the registered domain.
13283 func URLSubdomain(val string) attribute.KeyValue {
13284 return URLSubdomainKey.String(val)
13285 }
13286
13287 // URLTemplate returns an attribute KeyValue conforming to the "url.template"
13288 // semantic conventions. It represents the low-cardinality template of an
13289 // [absolute path reference].
13290 //
13291 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
13292 func URLTemplate(val string) attribute.KeyValue {
13293 return URLTemplateKey.String(val)
13294 }
13295
13296 // URLTopLevelDomain returns an attribute KeyValue conforming to the
13297 // "url.top_level_domain" semantic conventions. It represents the effective top
13298 // level domain (eTLD), also known as the domain suffix, is the last part of the
13299 // domain name. For example, the top level domain for example.com is `com`.
13300 func URLTopLevelDomain(val string) attribute.KeyValue {
13301 return URLTopLevelDomainKey.String(val)
13302 }
13303
13304 // Namespace: user
13305 const (
13306 // UserEmailKey is the attribute Key conforming to the "user.email" semantic
13307 // conventions. It represents the user email address.
13308 //
13309 // Type: string
13310 // RequirementLevel: Recommended
13311 // Stability: Development
13312 //
13313 // Examples: "[email protected]"
13314 UserEmailKey = attribute.Key("user.email")
13315
13316 // UserFullNameKey is the attribute Key conforming to the "user.full_name"
13317 // semantic conventions. It represents the user's full name.
13318 //
13319 // Type: string
13320 // RequirementLevel: Recommended
13321 // Stability: Development
13322 //
13323 // Examples: "Albert Einstein"
13324 UserFullNameKey = attribute.Key("user.full_name")
13325
13326 // UserHashKey is the attribute Key conforming to the "user.hash" semantic
13327 // conventions. It represents the unique user hash to correlate information for
13328 // a user in anonymized form.
13329 //
13330 // Type: string
13331 // RequirementLevel: Recommended
13332 // Stability: Development
13333 //
13334 // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
13335 // Note: Useful if `user.id` or `user.name` contain confidential information and
13336 // cannot be used.
13337 UserHashKey = attribute.Key("user.hash")
13338
13339 // UserIDKey is the attribute Key conforming to the "user.id" semantic
13340 // conventions. It represents the unique identifier of the user.
13341 //
13342 // Type: string
13343 // RequirementLevel: Recommended
13344 // Stability: Development
13345 //
13346 // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
13347 UserIDKey = attribute.Key("user.id")
13348
13349 // UserNameKey is the attribute Key conforming to the "user.name" semantic
13350 // conventions. It represents the short name or login/username of the user.
13351 //
13352 // Type: string
13353 // RequirementLevel: Recommended
13354 // Stability: Development
13355 //
13356 // Examples: "a.einstein"
13357 UserNameKey = attribute.Key("user.name")
13358
13359 // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
13360 // conventions. It represents the array of user roles at the time of the event.
13361 //
13362 // Type: string[]
13363 // RequirementLevel: Recommended
13364 // Stability: Development
13365 //
13366 // Examples: "admin", "reporting_user"
13367 UserRolesKey = attribute.Key("user.roles")
13368 )
13369
13370 // UserEmail returns an attribute KeyValue conforming to the "user.email"
13371 // semantic conventions. It represents the user email address.
13372 func UserEmail(val string) attribute.KeyValue {
13373 return UserEmailKey.String(val)
13374 }
13375
13376 // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
13377 // semantic conventions. It represents the user's full name.
13378 func UserFullName(val string) attribute.KeyValue {
13379 return UserFullNameKey.String(val)
13380 }
13381
13382 // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
13383 // conventions. It represents the unique user hash to correlate information for a
13384 // user in anonymized form.
13385 func UserHash(val string) attribute.KeyValue {
13386 return UserHashKey.String(val)
13387 }
13388
13389 // UserID returns an attribute KeyValue conforming to the "user.id" semantic
13390 // conventions. It represents the unique identifier of the user.
13391 func UserID(val string) attribute.KeyValue {
13392 return UserIDKey.String(val)
13393 }
13394
13395 // UserName returns an attribute KeyValue conforming to the "user.name" semantic
13396 // conventions. It represents the short name or login/username of the user.
13397 func UserName(val string) attribute.KeyValue {
13398 return UserNameKey.String(val)
13399 }
13400
13401 // UserRoles returns an attribute KeyValue conforming to the "user.roles"
13402 // semantic conventions. It represents the array of user roles at the time of the
13403 // event.
13404 func UserRoles(val ...string) attribute.KeyValue {
13405 return UserRolesKey.StringSlice(val)
13406 }
13407
13408 // Namespace: user_agent
13409 const (
13410 // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
13411 // semantic conventions. It represents the name of the user-agent extracted from
13412 // original. Usually refers to the browser's name.
13413 //
13414 // Type: string
13415 // RequirementLevel: Recommended
13416 // Stability: Development
13417 //
13418 // Examples: "Safari", "YourApp"
13419 // Note: [Example] of extracting browser's name from original string. In the
13420 // case of using a user-agent for non-browser products, such as microservices
13421 // with multiple names/versions inside the `user_agent.original`, the most
13422 // significant name SHOULD be selected. In such a scenario it should align with
13423 // `user_agent.version`
13424 //
13425 // [Example]: https://www.whatsmyua.info
13426 UserAgentNameKey = attribute.Key("user_agent.name")
13427
13428 // UserAgentOriginalKey is the attribute Key conforming to the
13429 // "user_agent.original" semantic conventions. It represents the value of the
13430 // [HTTP User-Agent] header sent by the client.
13431 //
13432 // Type: string
13433 // RequirementLevel: Recommended
13434 // Stability: Stable
13435 //
13436 // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
13437 // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
13438 // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
13439 // grpc-java-okhttp/1.27.2"
13440 //
13441 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
13442 UserAgentOriginalKey = attribute.Key("user_agent.original")
13443
13444 // UserAgentOSNameKey is the attribute Key conforming to the
13445 // "user_agent.os.name" semantic conventions. It represents the human readable
13446 // operating system name.
13447 //
13448 // Type: string
13449 // RequirementLevel: Recommended
13450 // Stability: Development
13451 //
13452 // Examples: "iOS", "Android", "Ubuntu"
13453 // Note: For mapping user agent strings to OS names, libraries such as
13454 // [ua-parser] can be utilized.
13455 //
13456 // [ua-parser]: https://github.com/ua-parser
13457 UserAgentOSNameKey = attribute.Key("user_agent.os.name")
13458
13459 // UserAgentOSVersionKey is the attribute Key conforming to the
13460 // "user_agent.os.version" semantic conventions. It represents the version
13461 // string of the operating system as defined in [Version Attributes].
13462 //
13463 // Type: string
13464 // RequirementLevel: Recommended
13465 // Stability: Development
13466 //
13467 // Examples: "14.2.1", "18.04.1"
13468 // Note: For mapping user agent strings to OS versions, libraries such as
13469 // [ua-parser] can be utilized.
13470 //
13471 // [Version Attributes]: /docs/resource/README.md#version-attributes
13472 // [ua-parser]: https://github.com/ua-parser
13473 UserAgentOSVersionKey = attribute.Key("user_agent.os.version")
13474
13475 // UserAgentSyntheticTypeKey is the attribute Key conforming to the
13476 // "user_agent.synthetic.type" semantic conventions. It represents the specifies
13477 // the category of synthetic traffic, such as tests or bots.
13478 //
13479 // Type: Enum
13480 // RequirementLevel: Recommended
13481 // Stability: Development
13482 //
13483 // Examples:
13484 // Note: This attribute MAY be derived from the contents of the
13485 // `user_agent.original` attribute. Components that populate the attribute are
13486 // responsible for determining what they consider to be synthetic bot or test
13487 // traffic. This attribute can either be set for self-identification purposes,
13488 // or on telemetry detected to be generated as a result of a synthetic request.
13489 // This attribute is useful for distinguishing between genuine client traffic
13490 // and synthetic traffic generated by bots or tests.
13491 UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type")
13492
13493 // UserAgentVersionKey is the attribute Key conforming to the
13494 // "user_agent.version" semantic conventions. It represents the version of the
13495 // user-agent extracted from original. Usually refers to the browser's version.
13496 //
13497 // Type: string
13498 // RequirementLevel: Recommended
13499 // Stability: Development
13500 //
13501 // Examples: "14.1.2", "1.0.0"
13502 // Note: [Example] of extracting browser's version from original string. In the
13503 // case of using a user-agent for non-browser products, such as microservices
13504 // with multiple names/versions inside the `user_agent.original`, the most
13505 // significant version SHOULD be selected. In such a scenario it should align
13506 // with `user_agent.name`
13507 //
13508 // [Example]: https://www.whatsmyua.info
13509 UserAgentVersionKey = attribute.Key("user_agent.version")
13510 )
13511
13512 // UserAgentName returns an attribute KeyValue conforming to the
13513 // "user_agent.name" semantic conventions. It represents the name of the
13514 // user-agent extracted from original. Usually refers to the browser's name.
13515 func UserAgentName(val string) attribute.KeyValue {
13516 return UserAgentNameKey.String(val)
13517 }
13518
13519 // UserAgentOriginal returns an attribute KeyValue conforming to the
13520 // "user_agent.original" semantic conventions. It represents the value of the
13521 // [HTTP User-Agent] header sent by the client.
13522 //
13523 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
13524 func UserAgentOriginal(val string) attribute.KeyValue {
13525 return UserAgentOriginalKey.String(val)
13526 }
13527
13528 // UserAgentOSName returns an attribute KeyValue conforming to the
13529 // "user_agent.os.name" semantic conventions. It represents the human readable
13530 // operating system name.
13531 func UserAgentOSName(val string) attribute.KeyValue {
13532 return UserAgentOSNameKey.String(val)
13533 }
13534
13535 // UserAgentOSVersion returns an attribute KeyValue conforming to the
13536 // "user_agent.os.version" semantic conventions. It represents the version string
13537 // of the operating system as defined in [Version Attributes].
13538 //
13539 // [Version Attributes]: /docs/resource/README.md#version-attributes
13540 func UserAgentOSVersion(val string) attribute.KeyValue {
13541 return UserAgentOSVersionKey.String(val)
13542 }
13543
13544 // UserAgentVersion returns an attribute KeyValue conforming to the
13545 // "user_agent.version" semantic conventions. It represents the version of the
13546 // user-agent extracted from original. Usually refers to the browser's version.
13547 func UserAgentVersion(val string) attribute.KeyValue {
13548 return UserAgentVersionKey.String(val)
13549 }
13550
13551 // Enum values for user_agent.synthetic.type
13552 var (
13553 // Bot source.
13554 // Stability: development
13555 UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot")
13556 // Synthetic test source.
13557 // Stability: development
13558 UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test")
13559 )
13560
13561 // Namespace: vcs
13562 const (
13563 // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id"
13564 // semantic conventions. It represents the ID of the change (pull request/merge
13565 // request/changelist) if applicable. This is usually a unique (within
13566 // repository) identifier generated by the VCS system.
13567 //
13568 // Type: string
13569 // RequirementLevel: Recommended
13570 // Stability: Development
13571 //
13572 // Examples: "123"
13573 VCSChangeIDKey = attribute.Key("vcs.change.id")
13574
13575 // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state"
13576 // semantic conventions. It represents the state of the change (pull
13577 // request/merge request/changelist).
13578 //
13579 // Type: Enum
13580 // RequirementLevel: Recommended
13581 // Stability: Development
13582 //
13583 // Examples: "open", "closed", "merged"
13584 VCSChangeStateKey = attribute.Key("vcs.change.state")
13585
13586 // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title"
13587 // semantic conventions. It represents the human readable title of the change
13588 // (pull request/merge request/changelist). This title is often a brief summary
13589 // of the change and may get merged in to a ref as the commit summary.
13590 //
13591 // Type: string
13592 // RequirementLevel: Recommended
13593 // Stability: Development
13594 //
13595 // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
13596 // dependency"
13597 VCSChangeTitleKey = attribute.Key("vcs.change.title")
13598
13599 // VCSLineChangeTypeKey is the attribute Key conforming to the
13600 // "vcs.line_change.type" semantic conventions. It represents the type of line
13601 // change being measured on a branch or change.
13602 //
13603 // Type: Enum
13604 // RequirementLevel: Recommended
13605 // Stability: Development
13606 //
13607 // Examples: "added", "removed"
13608 VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type")
13609
13610 // VCSOwnerNameKey is the attribute Key conforming to the "vcs.owner.name"
13611 // semantic conventions. It represents the group owner within the version
13612 // control system.
13613 //
13614 // Type: string
13615 // RequirementLevel: Recommended
13616 // Stability: Development
13617 //
13618 // Examples: "my-org", "myteam", "business-unit"
13619 VCSOwnerNameKey = attribute.Key("vcs.owner.name")
13620
13621 // VCSProviderNameKey is the attribute Key conforming to the "vcs.provider.name"
13622 // semantic conventions. It represents the name of the version control system
13623 // provider.
13624 //
13625 // Type: Enum
13626 // RequirementLevel: Recommended
13627 // Stability: Development
13628 //
13629 // Examples: "github", "gitlab", "gitea", "bitbucket"
13630 VCSProviderNameKey = attribute.Key("vcs.provider.name")
13631
13632 // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name"
13633 // semantic conventions. It represents the name of the [reference] such as
13634 // **branch** or **tag** in the repository.
13635 //
13636 // Type: string
13637 // RequirementLevel: Recommended
13638 // Stability: Development
13639 //
13640 // Examples: "my-feature-branch", "tag-1-test"
13641 // Note: `base` refers to the starting point of a change. For example, `main`
13642 // would be the base reference of type branch if you've created a new
13643 // reference of type branch from it and created new commits.
13644 //
13645 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13646 VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name")
13647
13648 // VCSRefBaseRevisionKey is the attribute Key conforming to the
13649 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
13650 // literally [revised version], The revision most often refers to a commit
13651 // object in Git, or a revision number in SVN.
13652 //
13653 // Type: string
13654 // RequirementLevel: Recommended
13655 // Stability: Development
13656 //
13657 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
13658 // "main", "123", "HEAD"
13659 // Note: `base` refers to the starting point of a change. For example, `main`
13660 // would be the base reference of type branch if you've created a new
13661 // reference of type branch from it and created new commits. The
13662 // revision can be a full [hash value (see
13663 // glossary)],
13664 // of the recorded change to a ref within a repository pointing to a
13665 // commit [commit] object. It does
13666 // not necessarily have to be a hash; it can simply define a [revision
13667 // number]
13668 // which is an integer that is monotonically increasing. In cases where
13669 // it is identical to the `ref.base.name`, it SHOULD still be included.
13670 // It is up to the implementer to decide which value to set as the
13671 // revision based on the VCS system and situational context.
13672 //
13673 // [revised version]: https://www.merriam-webster.com/dictionary/revision
13674 // [hash value (see
13675 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
13676 // [commit]: https://git-scm.com/docs/git-commit
13677 // [revision
13678 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
13679 VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision")
13680
13681 // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type"
13682 // semantic conventions. It represents the type of the [reference] in the
13683 // repository.
13684 //
13685 // Type: Enum
13686 // RequirementLevel: Recommended
13687 // Stability: Development
13688 //
13689 // Examples: "branch", "tag"
13690 // Note: `base` refers to the starting point of a change. For example, `main`
13691 // would be the base reference of type branch if you've created a new
13692 // reference of type branch from it and created new commits.
13693 //
13694 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13695 VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type")
13696
13697 // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name"
13698 // semantic conventions. It represents the name of the [reference] such as
13699 // **branch** or **tag** in the repository.
13700 //
13701 // Type: string
13702 // RequirementLevel: Recommended
13703 // Stability: Development
13704 //
13705 // Examples: "my-feature-branch", "tag-1-test"
13706 // Note: `head` refers to where you are right now; the current reference at a
13707 // given time.
13708 //
13709 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13710 VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name")
13711
13712 // VCSRefHeadRevisionKey is the attribute Key conforming to the
13713 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
13714 // literally [revised version], The revision most often refers to a commit
13715 // object in Git, or a revision number in SVN.
13716 //
13717 // Type: string
13718 // RequirementLevel: Recommended
13719 // Stability: Development
13720 //
13721 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
13722 // "main", "123", "HEAD"
13723 // Note: `head` refers to where you are right now; the current reference at a
13724 // given time.The revision can be a full [hash value (see
13725 // glossary)],
13726 // of the recorded change to a ref within a repository pointing to a
13727 // commit [commit] object. It does
13728 // not necessarily have to be a hash; it can simply define a [revision
13729 // number]
13730 // which is an integer that is monotonically increasing. In cases where
13731 // it is identical to the `ref.head.name`, it SHOULD still be included.
13732 // It is up to the implementer to decide which value to set as the
13733 // revision based on the VCS system and situational context.
13734 //
13735 // [revised version]: https://www.merriam-webster.com/dictionary/revision
13736 // [hash value (see
13737 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
13738 // [commit]: https://git-scm.com/docs/git-commit
13739 // [revision
13740 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
13741 VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision")
13742
13743 // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type"
13744 // semantic conventions. It represents the type of the [reference] in the
13745 // repository.
13746 //
13747 // Type: Enum
13748 // RequirementLevel: Recommended
13749 // Stability: Development
13750 //
13751 // Examples: "branch", "tag"
13752 // Note: `head` refers to where you are right now; the current reference at a
13753 // given time.
13754 //
13755 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13756 VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type")
13757
13758 // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic
13759 // conventions. It represents the type of the [reference] in the repository.
13760 //
13761 // Type: Enum
13762 // RequirementLevel: Recommended
13763 // Stability: Development
13764 //
13765 // Examples: "branch", "tag"
13766 //
13767 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13768 VCSRefTypeKey = attribute.Key("vcs.ref.type")
13769
13770 // VCSRepositoryNameKey is the attribute Key conforming to the
13771 // "vcs.repository.name" semantic conventions. It represents the human readable
13772 // name of the repository. It SHOULD NOT include any additional identifier like
13773 // Group/SubGroup in GitLab or organization in GitHub.
13774 //
13775 // Type: string
13776 // RequirementLevel: Recommended
13777 // Stability: Development
13778 //
13779 // Examples: "semantic-conventions", "my-cool-repo"
13780 // Note: Due to it only being the name, it can clash with forks of the same
13781 // repository if collecting telemetry across multiple orgs or groups in
13782 // the same backends.
13783 VCSRepositoryNameKey = attribute.Key("vcs.repository.name")
13784
13785 // VCSRepositoryURLFullKey is the attribute Key conforming to the
13786 // "vcs.repository.url.full" semantic conventions. It represents the
13787 // [canonical URL] of the repository providing the complete HTTP(S) address in
13788 // order to locate and identify the repository through a browser.
13789 //
13790 // Type: string
13791 // RequirementLevel: Recommended
13792 // Stability: Development
13793 //
13794 // Examples:
13795 // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
13796 // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
13797 // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include
13798 // the `.git` extension.
13799 //
13800 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
13801 VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
13802
13803 // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the
13804 // "vcs.revision_delta.direction" semantic conventions. It represents the type
13805 // of revision comparison.
13806 //
13807 // Type: Enum
13808 // RequirementLevel: Recommended
13809 // Stability: Development
13810 //
13811 // Examples: "ahead", "behind"
13812 VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction")
13813 )
13814
13815 // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id"
13816 // semantic conventions. It represents the ID of the change (pull request/merge
13817 // request/changelist) if applicable. This is usually a unique (within
13818 // repository) identifier generated by the VCS system.
13819 func VCSChangeID(val string) attribute.KeyValue {
13820 return VCSChangeIDKey.String(val)
13821 }
13822
13823 // VCSChangeTitle returns an attribute KeyValue conforming to the
13824 // "vcs.change.title" semantic conventions. It represents the human readable
13825 // title of the change (pull request/merge request/changelist). This title is
13826 // often a brief summary of the change and may get merged in to a ref as the
13827 // commit summary.
13828 func VCSChangeTitle(val string) attribute.KeyValue {
13829 return VCSChangeTitleKey.String(val)
13830 }
13831
13832 // VCSOwnerName returns an attribute KeyValue conforming to the "vcs.owner.name"
13833 // semantic conventions. It represents the group owner within the version control
13834 // system.
13835 func VCSOwnerName(val string) attribute.KeyValue {
13836 return VCSOwnerNameKey.String(val)
13837 }
13838
13839 // VCSRefBaseName returns an attribute KeyValue conforming to the
13840 // "vcs.ref.base.name" semantic conventions. It represents the name of the
13841 // [reference] such as **branch** or **tag** in the repository.
13842 //
13843 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13844 func VCSRefBaseName(val string) attribute.KeyValue {
13845 return VCSRefBaseNameKey.String(val)
13846 }
13847
13848 // VCSRefBaseRevision returns an attribute KeyValue conforming to the
13849 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
13850 // literally [revised version], The revision most often refers to a commit object
13851 // in Git, or a revision number in SVN.
13852 //
13853 // [revised version]: https://www.merriam-webster.com/dictionary/revision
13854 func VCSRefBaseRevision(val string) attribute.KeyValue {
13855 return VCSRefBaseRevisionKey.String(val)
13856 }
13857
13858 // VCSRefHeadName returns an attribute KeyValue conforming to the
13859 // "vcs.ref.head.name" semantic conventions. It represents the name of the
13860 // [reference] such as **branch** or **tag** in the repository.
13861 //
13862 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
13863 func VCSRefHeadName(val string) attribute.KeyValue {
13864 return VCSRefHeadNameKey.String(val)
13865 }
13866
13867 // VCSRefHeadRevision returns an attribute KeyValue conforming to the
13868 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
13869 // literally [revised version], The revision most often refers to a commit object
13870 // in Git, or a revision number in SVN.
13871 //
13872 // [revised version]: https://www.merriam-webster.com/dictionary/revision
13873 func VCSRefHeadRevision(val string) attribute.KeyValue {
13874 return VCSRefHeadRevisionKey.String(val)
13875 }
13876
13877 // VCSRepositoryName returns an attribute KeyValue conforming to the
13878 // "vcs.repository.name" semantic conventions. It represents the human readable
13879 // name of the repository. It SHOULD NOT include any additional identifier like
13880 // Group/SubGroup in GitLab or organization in GitHub.
13881 func VCSRepositoryName(val string) attribute.KeyValue {
13882 return VCSRepositoryNameKey.String(val)
13883 }
13884
13885 // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
13886 // "vcs.repository.url.full" semantic conventions. It represents the
13887 // [canonical URL] of the repository providing the complete HTTP(S) address in
13888 // order to locate and identify the repository through a browser.
13889 //
13890 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
13891 func VCSRepositoryURLFull(val string) attribute.KeyValue {
13892 return VCSRepositoryURLFullKey.String(val)
13893 }
13894
13895 // Enum values for vcs.change.state
13896 var (
13897 // Open means the change is currently active and under review. It hasn't been
13898 // merged into the target branch yet, and it's still possible to make changes or
13899 // add comments.
13900 // Stability: development
13901 VCSChangeStateOpen = VCSChangeStateKey.String("open")
13902 // WIP (work-in-progress, draft) means the change is still in progress and not
13903 // yet ready for a full review. It might still undergo significant changes.
13904 // Stability: development
13905 VCSChangeStateWip = VCSChangeStateKey.String("wip")
13906 // Closed means the merge request has been closed without merging. This can
13907 // happen for various reasons, such as the changes being deemed unnecessary, the
13908 // issue being resolved in another way, or the author deciding to withdraw the
13909 // request.
13910 // Stability: development
13911 VCSChangeStateClosed = VCSChangeStateKey.String("closed")
13912 // Merged indicates that the change has been successfully integrated into the
13913 // target codebase.
13914 // Stability: development
13915 VCSChangeStateMerged = VCSChangeStateKey.String("merged")
13916 )
13917
13918 // Enum values for vcs.line_change.type
13919 var (
13920 // How many lines were added.
13921 // Stability: development
13922 VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added")
13923 // How many lines were removed.
13924 // Stability: development
13925 VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed")
13926 )
13927
13928 // Enum values for vcs.provider.name
13929 var (
13930 // [GitHub]
13931 // Stability: development
13932 //
13933 // [GitHub]: https://github.com
13934 VCSProviderNameGithub = VCSProviderNameKey.String("github")
13935 // [GitLab]
13936 // Stability: development
13937 //
13938 // [GitLab]: https://gitlab.com
13939 VCSProviderNameGitlab = VCSProviderNameKey.String("gitlab")
13940 // Deprecated: Replaced by `gitea`.
13941 VCSProviderNameGittea = VCSProviderNameKey.String("gittea")
13942 // [Gitea]
13943 // Stability: development
13944 //
13945 // [Gitea]: https://gitea.io
13946 VCSProviderNameGitea = VCSProviderNameKey.String("gitea")
13947 // [Bitbucket]
13948 // Stability: development
13949 //
13950 // [Bitbucket]: https://bitbucket.org
13951 VCSProviderNameBitbucket = VCSProviderNameKey.String("bitbucket")
13952 )
13953
13954 // Enum values for vcs.ref.base.type
13955 var (
13956 // [branch]
13957 // Stability: development
13958 //
13959 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
13960 VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch")
13961 // [tag]
13962 // Stability: development
13963 //
13964 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
13965 VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag")
13966 )
13967
13968 // Enum values for vcs.ref.head.type
13969 var (
13970 // [branch]
13971 // Stability: development
13972 //
13973 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
13974 VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch")
13975 // [tag]
13976 // Stability: development
13977 //
13978 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
13979 VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag")
13980 )
13981
13982 // Enum values for vcs.ref.type
13983 var (
13984 // [branch]
13985 // Stability: development
13986 //
13987 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
13988 VCSRefTypeBranch = VCSRefTypeKey.String("branch")
13989 // [tag]
13990 // Stability: development
13991 //
13992 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
13993 VCSRefTypeTag = VCSRefTypeKey.String("tag")
13994 )
13995
13996 // Enum values for vcs.revision_delta.direction
13997 var (
13998 // How many revisions the change is behind the target ref.
13999 // Stability: development
14000 VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind")
14001 // How many revisions the change is ahead of the target ref.
14002 // Stability: development
14003 VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead")
14004 )
14005
14006 // Namespace: webengine
14007 const (
14008 // WebEngineDescriptionKey is the attribute Key conforming to the
14009 // "webengine.description" semantic conventions. It represents the additional
14010 // description of the web engine (e.g. detailed version and edition
14011 // information).
14012 //
14013 // Type: string
14014 // RequirementLevel: Recommended
14015 // Stability: Development
14016 //
14017 // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
14018 // 2.2.2.Final"
14019 WebEngineDescriptionKey = attribute.Key("webengine.description")
14020
14021 // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
14022 // semantic conventions. It represents the name of the web engine.
14023 //
14024 // Type: string
14025 // RequirementLevel: Recommended
14026 // Stability: Development
14027 //
14028 // Examples: "WildFly"
14029 WebEngineNameKey = attribute.Key("webengine.name")
14030
14031 // WebEngineVersionKey is the attribute Key conforming to the
14032 // "webengine.version" semantic conventions. It represents the version of the
14033 // web engine.
14034 //
14035 // Type: string
14036 // RequirementLevel: Recommended
14037 // Stability: Development
14038 //
14039 // Examples: "21.0.0"
14040 WebEngineVersionKey = attribute.Key("webengine.version")
14041 )
14042
14043 // WebEngineDescription returns an attribute KeyValue conforming to the
14044 // "webengine.description" semantic conventions. It represents the additional
14045 // description of the web engine (e.g. detailed version and edition information).
14046 func WebEngineDescription(val string) attribute.KeyValue {
14047 return WebEngineDescriptionKey.String(val)
14048 }
14049
14050 // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
14051 // semantic conventions. It represents the name of the web engine.
14052 func WebEngineName(val string) attribute.KeyValue {
14053 return WebEngineNameKey.String(val)
14054 }
14055
14056 // WebEngineVersion returns an attribute KeyValue conforming to the
14057 // "webengine.version" semantic conventions. It represents the version of the web
14058 // engine.
14059 func WebEngineVersion(val string) attribute.KeyValue {
14060 return WebEngineVersionKey.String(val)
14061 }