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.37.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 in the
32 // [Android API levels documentation].
33 //
34 // Type: string
35 // RequirementLevel: Recommended
36 // Stability: Development
37 //
38 // Examples: "33", "32"
39 //
40 // [Android API levels documentation]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
41 AndroidOSAPILevelKey = attribute.Key("android.os.api_level")
42 )
43
44 // AndroidOSAPILevel returns an attribute KeyValue conforming to the
45 // "android.os.api_level" semantic conventions. It represents the uniquely
46 // identifies the framework API revision offered by a version (`os.version`) of
47 // the android operating system. More information can be found in the
48 // [Android API levels documentation].
49 //
50 // [Android API levels documentation]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
51 func AndroidOSAPILevel(val string) attribute.KeyValue {
52 return AndroidOSAPILevelKey.String(val)
53 }
54
55 // Enum values for android.app.state
56 var (
57 // Any time before Activity.onResume() or, if the app has no Activity,
58 // Context.startService() has been called in the app for the first time.
59 //
60 // Stability: development
61 AndroidAppStateCreated = AndroidAppStateKey.String("created")
62 // Any time after Activity.onPause() or, if the app has no Activity,
63 // Context.stopService() has been called when the app was in the foreground
64 // state.
65 //
66 // Stability: development
67 AndroidAppStateBackground = AndroidAppStateKey.String("background")
68 // Any time after Activity.onResume() or, if the app has no Activity,
69 // Context.startService() has been called when the app was in either the created
70 // or background states.
71 //
72 // Stability: development
73 AndroidAppStateForeground = AndroidAppStateKey.String("foreground")
74 )
75
76 // Namespace: app
77 const (
78 // AppBuildIDKey is the attribute Key conforming to the "app.build_id" semantic
79 // conventions. It represents the unique identifier for a particular build or
80 // compilation of the application.
81 //
82 // Type: string
83 // RequirementLevel: Recommended
84 // Stability: Development
85 //
86 // Examples: "6cff0a7e-cefc-4668-96f5-1273d8b334d0",
87 // "9f2b833506aa6973a92fde9733e6271f", "my-app-1.0.0-code-123"
88 AppBuildIDKey = attribute.Key("app.build_id")
89
90 // AppInstallationIDKey is the attribute Key conforming to the
91 // "app.installation.id" semantic conventions. It represents a unique identifier
92 // representing the installation of an application on a specific device.
93 //
94 // Type: string
95 // RequirementLevel: Recommended
96 // Stability: Development
97 //
98 // Examples: "2ab2916d-a51f-4ac8-80ee-45ac31a28092"
99 // Note: Its value SHOULD persist across launches of the same application
100 // installation, including through application upgrades.
101 // It SHOULD change if the application is uninstalled or if all applications of
102 // the vendor are uninstalled.
103 // Additionally, users might be able to reset this value (e.g. by clearing
104 // application data).
105 // If an app is installed multiple times on the same device (e.g. in different
106 // accounts on Android), each `app.installation.id` SHOULD have a different
107 // value.
108 // If multiple OpenTelemetry SDKs are used within the same application, they
109 // SHOULD use the same value for `app.installation.id`.
110 // Hardware IDs (e.g. serial number, IMEI, MAC address) MUST NOT be used as the
111 // `app.installation.id`.
112 //
113 // For iOS, this value SHOULD be equal to the [vendor identifier].
114 //
115 // For Android, examples of `app.installation.id` implementations include:
116 //
117 // - [Firebase Installation ID].
118 // - A globally unique UUID which is persisted across sessions in your
119 // application.
120 // - [App set ID].
121 // - [`Settings.getString(Settings.Secure.ANDROID_ID)`].
122 //
123 // More information about Android identifier best practices can be found in the
124 // [Android user data IDs guide].
125 //
126 // [vendor identifier]: https://developer.apple.com/documentation/uikit/uidevice/identifierforvendor
127 // [Firebase Installation ID]: https://firebase.google.com/docs/projects/manage-installations
128 // [App set ID]: https://developer.android.com/identity/app-set-id
129 // [`Settings.getString(Settings.Secure.ANDROID_ID)`]: https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID
130 // [Android user data IDs guide]: https://developer.android.com/training/articles/user-data-ids
131 AppInstallationIDKey = attribute.Key("app.installation.id")
132
133 // AppJankFrameCountKey is the attribute Key conforming to the
134 // "app.jank.frame_count" semantic conventions. It represents a number of frame
135 // renders that experienced jank.
136 //
137 // Type: int
138 // RequirementLevel: Recommended
139 // Stability: Development
140 //
141 // Examples: 9, 42
142 // Note: Depending on platform limitations, the value provided MAY be
143 // approximation.
144 AppJankFrameCountKey = attribute.Key("app.jank.frame_count")
145
146 // AppJankPeriodKey is the attribute Key conforming to the "app.jank.period"
147 // semantic conventions. It represents the time period, in seconds, for which
148 // this jank is being reported.
149 //
150 // Type: double
151 // RequirementLevel: Recommended
152 // Stability: Development
153 //
154 // Examples: 1.0, 5.0, 10.24
155 AppJankPeriodKey = attribute.Key("app.jank.period")
156
157 // AppJankThresholdKey is the attribute Key conforming to the
158 // "app.jank.threshold" semantic conventions. It represents the minimum
159 // rendering threshold for this jank, in seconds.
160 //
161 // Type: double
162 // RequirementLevel: Recommended
163 // Stability: Development
164 //
165 // Examples: 0.016, 0.7, 1.024
166 AppJankThresholdKey = attribute.Key("app.jank.threshold")
167
168 // AppScreenCoordinateXKey is the attribute Key conforming to the
169 // "app.screen.coordinate.x" semantic conventions. It represents the x
170 // (horizontal) coordinate of a screen coordinate, in screen pixels.
171 //
172 // Type: int
173 // RequirementLevel: Recommended
174 // Stability: Development
175 //
176 // Examples: 0, 131
177 AppScreenCoordinateXKey = attribute.Key("app.screen.coordinate.x")
178
179 // AppScreenCoordinateYKey is the attribute Key conforming to the
180 // "app.screen.coordinate.y" semantic conventions. It represents the y
181 // (vertical) component of a screen coordinate, in screen pixels.
182 //
183 // Type: int
184 // RequirementLevel: Recommended
185 // Stability: Development
186 //
187 // Examples: 12, 99
188 AppScreenCoordinateYKey = attribute.Key("app.screen.coordinate.y")
189
190 // AppWidgetIDKey is the attribute Key conforming to the "app.widget.id"
191 // semantic conventions. It represents an identifier that uniquely
192 // differentiates this widget from other widgets in the same application.
193 //
194 // Type: string
195 // RequirementLevel: Recommended
196 // Stability: Development
197 //
198 // Examples: "f9bc787d-ff05-48ad-90e1-fca1d46130b3", "submit_order_1829"
199 // Note: A widget is an application component, typically an on-screen visual GUI
200 // element.
201 AppWidgetIDKey = attribute.Key("app.widget.id")
202
203 // AppWidgetNameKey is the attribute Key conforming to the "app.widget.name"
204 // semantic conventions. It represents the name of an application widget.
205 //
206 // Type: string
207 // RequirementLevel: Recommended
208 // Stability: Development
209 //
210 // Examples: "submit", "attack", "Clear Cart"
211 // Note: A widget is an application component, typically an on-screen visual GUI
212 // element.
213 AppWidgetNameKey = attribute.Key("app.widget.name")
214 )
215
216 // AppBuildID returns an attribute KeyValue conforming to the "app.build_id"
217 // semantic conventions. It represents the unique identifier for a particular
218 // build or compilation of the application.
219 func AppBuildID(val string) attribute.KeyValue {
220 return AppBuildIDKey.String(val)
221 }
222
223 // AppInstallationID returns an attribute KeyValue conforming to the
224 // "app.installation.id" semantic conventions. It represents a unique identifier
225 // representing the installation of an application on a specific device.
226 func AppInstallationID(val string) attribute.KeyValue {
227 return AppInstallationIDKey.String(val)
228 }
229
230 // AppJankFrameCount returns an attribute KeyValue conforming to the
231 // "app.jank.frame_count" semantic conventions. It represents a number of frame
232 // renders that experienced jank.
233 func AppJankFrameCount(val int) attribute.KeyValue {
234 return AppJankFrameCountKey.Int(val)
235 }
236
237 // AppJankPeriod returns an attribute KeyValue conforming to the
238 // "app.jank.period" semantic conventions. It represents the time period, in
239 // seconds, for which this jank is being reported.
240 func AppJankPeriod(val float64) attribute.KeyValue {
241 return AppJankPeriodKey.Float64(val)
242 }
243
244 // AppJankThreshold returns an attribute KeyValue conforming to the
245 // "app.jank.threshold" semantic conventions. It represents the minimum rendering
246 // threshold for this jank, in seconds.
247 func AppJankThreshold(val float64) attribute.KeyValue {
248 return AppJankThresholdKey.Float64(val)
249 }
250
251 // AppScreenCoordinateX returns an attribute KeyValue conforming to the
252 // "app.screen.coordinate.x" semantic conventions. It represents the x
253 // (horizontal) coordinate of a screen coordinate, in screen pixels.
254 func AppScreenCoordinateX(val int) attribute.KeyValue {
255 return AppScreenCoordinateXKey.Int(val)
256 }
257
258 // AppScreenCoordinateY returns an attribute KeyValue conforming to the
259 // "app.screen.coordinate.y" semantic conventions. It represents the y (vertical)
260 // component of a screen coordinate, in screen pixels.
261 func AppScreenCoordinateY(val int) attribute.KeyValue {
262 return AppScreenCoordinateYKey.Int(val)
263 }
264
265 // AppWidgetID returns an attribute KeyValue conforming to the "app.widget.id"
266 // semantic conventions. It represents an identifier that uniquely differentiates
267 // this widget from other widgets in the same application.
268 func AppWidgetID(val string) attribute.KeyValue {
269 return AppWidgetIDKey.String(val)
270 }
271
272 // AppWidgetName returns an attribute KeyValue conforming to the
273 // "app.widget.name" semantic conventions. It represents the name of an
274 // application widget.
275 func AppWidgetName(val string) attribute.KeyValue {
276 return AppWidgetNameKey.String(val)
277 }
278
279 // Namespace: artifact
280 const (
281 // ArtifactAttestationFilenameKey is the attribute Key conforming to the
282 // "artifact.attestation.filename" semantic conventions. It represents the
283 // provenance filename of the built attestation which directly relates to the
284 // build artifact filename. This filename SHOULD accompany the artifact at
285 // publish time. See the [SLSA Relationship] specification for more information.
286 //
287 // Type: string
288 // RequirementLevel: Recommended
289 // Stability: Development
290 //
291 // Examples: "golang-binary-amd64-v0.1.0.attestation",
292 // "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation",
293 // "file-name-package.tar.gz.intoto.json1"
294 //
295 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
296 ArtifactAttestationFilenameKey = attribute.Key("artifact.attestation.filename")
297
298 // ArtifactAttestationHashKey is the attribute Key conforming to the
299 // "artifact.attestation.hash" semantic conventions. It represents the full
300 // [hash value (see glossary)], of the built attestation. Some envelopes in the
301 // [software attestation space] also refer to this as the **digest**.
302 //
303 // Type: string
304 // RequirementLevel: Recommended
305 // Stability: Development
306 //
307 // Examples: "1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408"
308 //
309 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
310 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
311 ArtifactAttestationHashKey = attribute.Key("artifact.attestation.hash")
312
313 // ArtifactAttestationIDKey is the attribute Key conforming to the
314 // "artifact.attestation.id" semantic conventions. It represents the id of the
315 // build [software attestation].
316 //
317 // Type: string
318 // RequirementLevel: Recommended
319 // Stability: Development
320 //
321 // Examples: "123"
322 //
323 // [software attestation]: https://slsa.dev/attestation-model
324 ArtifactAttestationIDKey = attribute.Key("artifact.attestation.id")
325
326 // ArtifactFilenameKey is the attribute Key conforming to the
327 // "artifact.filename" semantic conventions. It represents the human readable
328 // file name of the artifact, typically generated during build and release
329 // processes. Often includes the package name and version in the file name.
330 //
331 // Type: string
332 // RequirementLevel: Recommended
333 // Stability: Development
334 //
335 // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0",
336 // "release-1.tar.gz", "file-name-package.tar.gz"
337 // Note: This file name can also act as the [Package Name]
338 // in cases where the package ecosystem maps accordingly.
339 // Additionally, the artifact [can be published]
340 // for others, but that is not a guarantee.
341 //
342 // [Package Name]: https://slsa.dev/spec/v1.0/terminology#package-model
343 // [can be published]: https://slsa.dev/spec/v1.0/terminology#software-supply-chain
344 ArtifactFilenameKey = attribute.Key("artifact.filename")
345
346 // ArtifactHashKey is the attribute Key conforming to the "artifact.hash"
347 // semantic conventions. It represents the full [hash value (see glossary)],
348 // often found in checksum.txt on a release of the artifact and used to verify
349 // package integrity.
350 //
351 // Type: string
352 // RequirementLevel: Recommended
353 // Stability: Development
354 //
355 // Examples: "9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9"
356 // Note: The specific algorithm used to create the cryptographic hash value is
357 // not defined. In situations where an artifact has multiple
358 // cryptographic hashes, it is up to the implementer to choose which
359 // hash value to set here; this should be the most secure hash algorithm
360 // that is suitable for the situation and consistent with the
361 // corresponding attestation. The implementer can then provide the other
362 // hash values through an additional set of attribute extensions as they
363 // deem necessary.
364 //
365 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
366 ArtifactHashKey = attribute.Key("artifact.hash")
367
368 // ArtifactPurlKey is the attribute Key conforming to the "artifact.purl"
369 // semantic conventions. It represents the [Package URL] of the
370 // [package artifact] provides a standard way to identify and locate the
371 // packaged artifact.
372 //
373 // Type: string
374 // RequirementLevel: Recommended
375 // Stability: Development
376 //
377 // Examples: "pkg:github/package-url/purl-spec@1209109710924",
378 // "pkg:npm/foo@12.12.3"
379 //
380 // [Package URL]: https://github.com/package-url/purl-spec
381 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
382 ArtifactPurlKey = attribute.Key("artifact.purl")
383
384 // ArtifactVersionKey is the attribute Key conforming to the "artifact.version"
385 // semantic conventions. It represents the version of the artifact.
386 //
387 // Type: string
388 // RequirementLevel: Recommended
389 // Stability: Development
390 //
391 // Examples: "v0.1.0", "1.2.1", "122691-build"
392 ArtifactVersionKey = attribute.Key("artifact.version")
393 )
394
395 // ArtifactAttestationFilename returns an attribute KeyValue conforming to the
396 // "artifact.attestation.filename" semantic conventions. It represents the
397 // provenance filename of the built attestation which directly relates to the
398 // build artifact filename. This filename SHOULD accompany the artifact at
399 // publish time. See the [SLSA Relationship] specification for more information.
400 //
401 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
402 func ArtifactAttestationFilename(val string) attribute.KeyValue {
403 return ArtifactAttestationFilenameKey.String(val)
404 }
405
406 // ArtifactAttestationHash returns an attribute KeyValue conforming to the
407 // "artifact.attestation.hash" semantic conventions. It represents the full
408 // [hash value (see glossary)], of the built attestation. Some envelopes in the
409 // [software attestation space] also refer to this as the **digest**.
410 //
411 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
412 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
413 func ArtifactAttestationHash(val string) attribute.KeyValue {
414 return ArtifactAttestationHashKey.String(val)
415 }
416
417 // ArtifactAttestationID returns an attribute KeyValue conforming to the
418 // "artifact.attestation.id" semantic conventions. It represents the id of the
419 // build [software attestation].
420 //
421 // [software attestation]: https://slsa.dev/attestation-model
422 func ArtifactAttestationID(val string) attribute.KeyValue {
423 return ArtifactAttestationIDKey.String(val)
424 }
425
426 // ArtifactFilename returns an attribute KeyValue conforming to the
427 // "artifact.filename" semantic conventions. It represents the human readable
428 // file name of the artifact, typically generated during build and release
429 // processes. Often includes the package name and version in the file name.
430 func ArtifactFilename(val string) attribute.KeyValue {
431 return ArtifactFilenameKey.String(val)
432 }
433
434 // ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash"
435 // semantic conventions. It represents the full [hash value (see glossary)],
436 // often found in checksum.txt on a release of the artifact and used to verify
437 // package integrity.
438 //
439 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
440 func ArtifactHash(val string) attribute.KeyValue {
441 return ArtifactHashKey.String(val)
442 }
443
444 // ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl"
445 // semantic conventions. It represents the [Package URL] of the
446 // [package artifact] provides a standard way to identify and locate the packaged
447 // artifact.
448 //
449 // [Package URL]: https://github.com/package-url/purl-spec
450 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
451 func ArtifactPurl(val string) attribute.KeyValue {
452 return ArtifactPurlKey.String(val)
453 }
454
455 // ArtifactVersion returns an attribute KeyValue conforming to the
456 // "artifact.version" semantic conventions. It represents the version of the
457 // artifact.
458 func ArtifactVersion(val string) attribute.KeyValue {
459 return ArtifactVersionKey.String(val)
460 }
461
462 // Namespace: aws
463 const (
464 // AWSBedrockGuardrailIDKey is the attribute Key conforming to the
465 // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
466 // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
467 // prevent unwanted behavior from model responses or user messages.
468 //
469 // Type: string
470 // RequirementLevel: Recommended
471 // Stability: Development
472 //
473 // Examples: "sgi5gkybzqak"
474 //
475 // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
476 AWSBedrockGuardrailIDKey = attribute.Key("aws.bedrock.guardrail.id")
477
478 // AWSBedrockKnowledgeBaseIDKey is the attribute Key conforming to the
479 // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the
480 // unique identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a
481 // bank of information that can be queried by models to generate more relevant
482 // responses and augment prompts.
483 //
484 // Type: string
485 // RequirementLevel: Recommended
486 // Stability: Development
487 //
488 // Examples: "XFWUPB9PAW"
489 //
490 // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
491 AWSBedrockKnowledgeBaseIDKey = attribute.Key("aws.bedrock.knowledge_base.id")
492
493 // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the
494 // "aws.dynamodb.attribute_definitions" semantic conventions. It represents the
495 // JSON-serialized value of each item in the `AttributeDefinitions` request
496 // field.
497 //
498 // Type: string[]
499 // RequirementLevel: Recommended
500 // Stability: Development
501 //
502 // Examples: "{ "AttributeName": "string", "AttributeType": "string" }"
503 AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions")
504
505 // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the
506 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the
507 // value of the `AttributesToGet` request parameter.
508 //
509 // Type: string[]
510 // RequirementLevel: Recommended
511 // Stability: Development
512 //
513 // Examples: "lives", "id"
514 AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get")
515
516 // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the
517 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
518 // of the `ConsistentRead` request parameter.
519 //
520 // Type: boolean
521 // RequirementLevel: Recommended
522 // Stability: Development
523 //
524 // Examples:
525 AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read")
526
527 // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the
528 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
529 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
530 //
531 // Type: string[]
532 // RequirementLevel: Recommended
533 // Stability: Development
534 //
535 // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" :
536 // { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits":
537 // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number,
538 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } },
539 // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number,
540 // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName":
541 // "string", "WriteCapacityUnits": number }"
542 AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity")
543
544 // AWSDynamoDBCountKey is the attribute Key conforming to the
545 // "aws.dynamodb.count" semantic conventions. It represents the value of the
546 // `Count` response parameter.
547 //
548 // Type: int
549 // RequirementLevel: Recommended
550 // Stability: Development
551 //
552 // Examples: 10
553 AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count")
554
555 // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the
556 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
557 // value of the `ExclusiveStartTableName` request parameter.
558 //
559 // Type: string
560 // RequirementLevel: Recommended
561 // Stability: Development
562 //
563 // Examples: "Users", "CatsTable"
564 AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table")
565
566 // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to
567 // the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It
568 // represents the JSON-serialized value of each item in the
569 // `GlobalSecondaryIndexUpdates` request field.
570 //
571 // Type: string[]
572 // RequirementLevel: Recommended
573 // Stability: Development
574 //
575 // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ {
576 // "AttributeName": "string", "KeyType": "string" } ], "Projection": {
577 // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" },
578 // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits":
579 // number } }"
580 AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates")
581
582 // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the
583 // "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents
584 // the JSON-serialized value of each item of the `GlobalSecondaryIndexes`
585 // request field.
586 //
587 // Type: string[]
588 // RequirementLevel: Recommended
589 // Stability: Development
590 //
591 // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName":
592 // "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [
593 // "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": {
594 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"
595 AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes")
596
597 // AWSDynamoDBIndexNameKey is the attribute Key conforming to the
598 // "aws.dynamodb.index_name" semantic conventions. It represents the value of
599 // the `IndexName` request parameter.
600 //
601 // Type: string
602 // RequirementLevel: Recommended
603 // Stability: Development
604 //
605 // Examples: "name_to_group"
606 AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name")
607
608 // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the
609 // "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
610 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
611 //
612 // Type: string
613 // RequirementLevel: Recommended
614 // Stability: Development
615 //
616 // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob,
617 // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" :
618 // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S":
619 // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }"
620 AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics")
621
622 // AWSDynamoDBLimitKey is the attribute Key conforming to the
623 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
624 // `Limit` request parameter.
625 //
626 // Type: int
627 // RequirementLevel: Recommended
628 // Stability: Development
629 //
630 // Examples: 10
631 AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit")
632
633 // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the
634 // "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
635 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
636 // field.
637 //
638 // Type: string[]
639 // RequirementLevel: Recommended
640 // Stability: Development
641 //
642 // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes":
643 // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string",
644 // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ],
645 // "ProjectionType": "string" } }"
646 AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes")
647
648 // AWSDynamoDBProjectionKey is the attribute Key conforming to the
649 // "aws.dynamodb.projection" semantic conventions. It represents the value of
650 // the `ProjectionExpression` request parameter.
651 //
652 // Type: string
653 // RequirementLevel: Recommended
654 // Stability: Development
655 //
656 // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems,
657 // ProductReviews"
658 AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection")
659
660 // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the
661 // "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents
662 // the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
663 //
664 // Type: double
665 // RequirementLevel: Recommended
666 // Stability: Development
667 //
668 // Examples: 1.0, 2.0
669 AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity")
670
671 // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the
672 // "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents
673 // the value of the `ProvisionedThroughput.WriteCapacityUnits` request
674 // parameter.
675 //
676 // Type: double
677 // RequirementLevel: Recommended
678 // Stability: Development
679 //
680 // Examples: 1.0, 2.0
681 AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity")
682
683 // AWSDynamoDBScanForwardKey is the attribute Key conforming to the
684 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
685 // the `ScanIndexForward` request parameter.
686 //
687 // Type: boolean
688 // RequirementLevel: Recommended
689 // Stability: Development
690 //
691 // Examples:
692 AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward")
693
694 // AWSDynamoDBScannedCountKey is the attribute Key conforming to the
695 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
696 // the `ScannedCount` response parameter.
697 //
698 // Type: int
699 // RequirementLevel: Recommended
700 // Stability: Development
701 //
702 // Examples: 50
703 AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count")
704
705 // AWSDynamoDBSegmentKey is the attribute Key conforming to the
706 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
707 // `Segment` request parameter.
708 //
709 // Type: int
710 // RequirementLevel: Recommended
711 // Stability: Development
712 //
713 // Examples: 10
714 AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment")
715
716 // AWSDynamoDBSelectKey is the attribute Key conforming to the
717 // "aws.dynamodb.select" semantic conventions. It represents the value of the
718 // `Select` request parameter.
719 //
720 // Type: string
721 // RequirementLevel: Recommended
722 // Stability: Development
723 //
724 // Examples: "ALL_ATTRIBUTES", "COUNT"
725 AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select")
726
727 // AWSDynamoDBTableCountKey is the attribute Key conforming to the
728 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
729 // items in the `TableNames` response parameter.
730 //
731 // Type: int
732 // RequirementLevel: Recommended
733 // Stability: Development
734 //
735 // Examples: 20
736 AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count")
737
738 // AWSDynamoDBTableNamesKey is the attribute Key conforming to the
739 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in
740 // the `RequestItems` object field.
741 //
742 // Type: string[]
743 // RequirementLevel: Recommended
744 // Stability: Development
745 //
746 // Examples: "Users", "Cats"
747 AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names")
748
749 // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the
750 // "aws.dynamodb.total_segments" semantic conventions. It represents the value
751 // of the `TotalSegments` request parameter.
752 //
753 // Type: int
754 // RequirementLevel: Recommended
755 // Stability: Development
756 //
757 // Examples: 100
758 AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments")
759
760 // AWSECSClusterARNKey is the attribute Key conforming to the
761 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
762 // [ECS cluster].
763 //
764 // Type: string
765 // RequirementLevel: Recommended
766 // Stability: Development
767 //
768 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
769 //
770 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
771 AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn")
772
773 // AWSECSContainerARNKey is the attribute Key conforming to the
774 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
775 // Resource Name (ARN) of an [ECS container instance].
776 //
777 // Type: string
778 // RequirementLevel: Recommended
779 // Stability: Development
780 //
781 // Examples:
782 // "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9"
783 //
784 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
785 AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn")
786
787 // AWSECSLaunchtypeKey is the attribute Key conforming to the
788 // "aws.ecs.launchtype" semantic conventions. It represents the [launch type]
789 // for an ECS task.
790 //
791 // Type: Enum
792 // RequirementLevel: Recommended
793 // Stability: Development
794 //
795 // Examples:
796 //
797 // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
798 AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype")
799
800 // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn"
801 // semantic conventions. It represents the ARN of a running [ECS task].
802 //
803 // Type: string
804 // RequirementLevel: Recommended
805 // Stability: Development
806 //
807 // Examples:
808 // "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b",
809 // "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
810 //
811 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
812 AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn")
813
814 // AWSECSTaskFamilyKey is the attribute Key conforming to the
815 // "aws.ecs.task.family" semantic conventions. It represents the family name of
816 // the [ECS task definition] used to create the ECS task.
817 //
818 // Type: string
819 // RequirementLevel: Recommended
820 // Stability: Development
821 //
822 // Examples: "opentelemetry-family"
823 //
824 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
825 AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family")
826
827 // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id"
828 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
829 // be extracted from `task.arn`.
830 //
831 // Type: string
832 // RequirementLevel: Recommended
833 // Stability: Development
834 //
835 // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b",
836 // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
837 AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id")
838
839 // AWSECSTaskRevisionKey is the attribute Key conforming to the
840 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
841 // the task definition used to create the ECS task.
842 //
843 // Type: string
844 // RequirementLevel: Recommended
845 // Stability: Development
846 //
847 // Examples: "8", "26"
848 AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision")
849
850 // AWSEKSClusterARNKey is the attribute Key conforming to the
851 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
852 // cluster.
853 //
854 // Type: string
855 // RequirementLevel: Recommended
856 // Stability: Development
857 //
858 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
859 AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn")
860
861 // AWSExtendedRequestIDKey is the attribute Key conforming to the
862 // "aws.extended_request_id" semantic conventions. It represents the AWS
863 // extended request ID as returned in the response header `x-amz-id-2`.
864 //
865 // Type: string
866 // RequirementLevel: Recommended
867 // Stability: Development
868 //
869 // Examples:
870 // "wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ="
871 AWSExtendedRequestIDKey = attribute.Key("aws.extended_request_id")
872
873 // AWSKinesisStreamNameKey is the attribute Key conforming to the
874 // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
875 // AWS Kinesis [stream] the request refers to. Corresponds to the
876 // `--stream-name` parameter of the Kinesis [describe-stream] operation.
877 //
878 // Type: string
879 // RequirementLevel: Recommended
880 // Stability: Development
881 //
882 // Examples: "some-stream-name"
883 //
884 // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
885 // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
886 AWSKinesisStreamNameKey = attribute.Key("aws.kinesis.stream_name")
887
888 // AWSLambdaInvokedARNKey is the attribute Key conforming to the
889 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
890 // ARN as provided on the `Context` passed to the function (
891 // `Lambda-Runtime-Invoked-Function-Arn` header on the
892 // `/runtime/invocation/next` applicable).
893 //
894 // Type: string
895 // RequirementLevel: Recommended
896 // Stability: Development
897 //
898 // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias"
899 // Note: This may be different from `cloud.resource_id` if an alias is involved.
900 AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn")
901
902 // AWSLambdaResourceMappingIDKey is the attribute Key conforming to the
903 // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
904 // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
905 // function. It's contents are read by Lambda and used to trigger a function.
906 // This isn't available in the lambda execution context or the lambda runtime
907 // environtment. This is going to be populated by the AWS SDK for each language
908 // when that UUID is present. Some of these operations are
909 // Create/Delete/Get/List/Update EventSourceMapping.
910 //
911 // Type: string
912 // RequirementLevel: Recommended
913 // Stability: Development
914 //
915 // Examples: "587ad24b-03b9-4413-8202-bbd56b36e5b7"
916 //
917 // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
918 AWSLambdaResourceMappingIDKey = attribute.Key("aws.lambda.resource_mapping.id")
919
920 // AWSLogGroupARNsKey is the attribute Key conforming to the
921 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
922 // Name(s) (ARN) of the AWS log group(s).
923 //
924 // Type: string[]
925 // RequirementLevel: Recommended
926 // Stability: Development
927 //
928 // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"
929 // Note: See the [log group ARN format documentation].
930 //
931 // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
932 AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns")
933
934 // AWSLogGroupNamesKey is the attribute Key conforming to the
935 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
936 // AWS log group(s) an application is writing to.
937 //
938 // Type: string[]
939 // RequirementLevel: Recommended
940 // Stability: Development
941 //
942 // Examples: "/aws/lambda/my-function", "opentelemetry-service"
943 // Note: Multiple log groups must be supported for cases like multi-container
944 // applications, where a single application has sidecar containers, and each
945 // write to their own log group.
946 AWSLogGroupNamesKey = attribute.Key("aws.log.group.names")
947
948 // AWSLogStreamARNsKey is the attribute Key conforming to the
949 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
950 // AWS log stream(s).
951 //
952 // Type: string[]
953 // RequirementLevel: Recommended
954 // Stability: Development
955 //
956 // Examples:
957 // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
958 // Note: See the [log stream ARN format documentation]. One log group can
959 // contain several log streams, so these ARNs necessarily identify both a log
960 // group and a log stream.
961 //
962 // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
963 AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns")
964
965 // AWSLogStreamNamesKey is the attribute Key conforming to the
966 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
967 // AWS log stream(s) an application is writing to.
968 //
969 // Type: string[]
970 // RequirementLevel: Recommended
971 // Stability: Development
972 //
973 // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
974 AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names")
975
976 // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id"
977 // semantic conventions. It represents the AWS request ID as returned in the
978 // response headers `x-amzn-requestid`, `x-amzn-request-id` or
979 // `x-amz-request-id`.
980 //
981 // Type: string
982 // RequirementLevel: Recommended
983 // Stability: Development
984 //
985 // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ"
986 AWSRequestIDKey = attribute.Key("aws.request_id")
987
988 // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket"
989 // semantic conventions. It represents the S3 bucket name the request refers to.
990 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
991 //
992 // Type: string
993 // RequirementLevel: Recommended
994 // Stability: Development
995 //
996 // Examples: "some-bucket-name"
997 // Note: The `bucket` attribute is applicable to all S3 operations that
998 // reference a bucket, i.e. that require the bucket name as a mandatory
999 // parameter.
1000 // This applies to almost all S3 operations except `list-buckets`.
1001 //
1002 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1003 AWSS3BucketKey = attribute.Key("aws.s3.bucket")
1004
1005 // AWSS3CopySourceKey is the attribute Key conforming to the
1006 // "aws.s3.copy_source" semantic conventions. It represents the source object
1007 // (in the form `bucket`/`key`) for the copy operation.
1008 //
1009 // Type: string
1010 // RequirementLevel: Recommended
1011 // Stability: Development
1012 //
1013 // Examples: "someFile.yml"
1014 // Note: The `copy_source` attribute applies to S3 copy operations and
1015 // corresponds to the `--copy-source` parameter
1016 // of the [copy-object operation within the S3 API].
1017 // This applies in particular to the following operations:
1018 //
1019 // - [copy-object]
1020 // - [upload-part-copy]
1021 //
1022 //
1023 // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
1024 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
1025 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1026 AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source")
1027
1028 // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete"
1029 // semantic conventions. It represents the delete request container that
1030 // specifies the objects to be deleted.
1031 //
1032 // Type: string
1033 // RequirementLevel: Recommended
1034 // Stability: Development
1035 //
1036 // Examples:
1037 // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"
1038 // Note: The `delete` attribute is only applicable to the [delete-object]
1039 // operation.
1040 // The `delete` attribute corresponds to the `--delete` parameter of the
1041 // [delete-objects operation within the S3 API].
1042 //
1043 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
1044 // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html
1045 AWSS3DeleteKey = attribute.Key("aws.s3.delete")
1046
1047 // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic
1048 // conventions. It represents the S3 object key the request refers to.
1049 // Corresponds to the `--key` parameter of the [S3 API] operations.
1050 //
1051 // Type: string
1052 // RequirementLevel: Recommended
1053 // Stability: Development
1054 //
1055 // Examples: "someFile.yml"
1056 // Note: The `key` attribute is applicable to all object-related S3 operations,
1057 // i.e. that require the object key as a mandatory parameter.
1058 // This applies in particular to the following operations:
1059 //
1060 // - [copy-object]
1061 // - [delete-object]
1062 // - [get-object]
1063 // - [head-object]
1064 // - [put-object]
1065 // - [restore-object]
1066 // - [select-object-content]
1067 // - [abort-multipart-upload]
1068 // - [complete-multipart-upload]
1069 // - [create-multipart-upload]
1070 // - [list-parts]
1071 // - [upload-part]
1072 // - [upload-part-copy]
1073 //
1074 //
1075 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1076 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
1077 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
1078 // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html
1079 // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html
1080 // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html
1081 // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html
1082 // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html
1083 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
1084 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
1085 // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html
1086 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
1087 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1088 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1089 AWSS3KeyKey = attribute.Key("aws.s3.key")
1090
1091 // AWSS3PartNumberKey is the attribute Key conforming to the
1092 // "aws.s3.part_number" semantic conventions. It represents the part number of
1093 // the part being uploaded in a multipart-upload operation. This is a positive
1094 // integer between 1 and 10,000.
1095 //
1096 // Type: int
1097 // RequirementLevel: Recommended
1098 // Stability: Development
1099 //
1100 // Examples: 3456
1101 // Note: The `part_number` attribute is only applicable to the [upload-part]
1102 // and [upload-part-copy] operations.
1103 // The `part_number` attribute corresponds to the `--part-number` parameter of
1104 // the
1105 // [upload-part operation within the S3 API].
1106 //
1107 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1108 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1109 // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1110 AWSS3PartNumberKey = attribute.Key("aws.s3.part_number")
1111
1112 // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id"
1113 // semantic conventions. It represents the upload ID that identifies the
1114 // multipart upload.
1115 //
1116 // Type: string
1117 // RequirementLevel: Recommended
1118 // Stability: Development
1119 //
1120 // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ"
1121 // Note: The `upload_id` attribute applies to S3 multipart-upload operations and
1122 // corresponds to the `--upload-id` parameter
1123 // of the [S3 API] multipart operations.
1124 // This applies in particular to the following operations:
1125 //
1126 // - [abort-multipart-upload]
1127 // - [complete-multipart-upload]
1128 // - [list-parts]
1129 // - [upload-part]
1130 // - [upload-part-copy]
1131 //
1132 //
1133 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1134 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
1135 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
1136 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
1137 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1138 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1139 AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id")
1140
1141 // AWSSecretsmanagerSecretARNKey is the attribute Key conforming to the
1142 // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN
1143 // of the Secret stored in the Secrets Mangger.
1144 //
1145 // Type: string
1146 // RequirementLevel: Recommended
1147 // Stability: Development
1148 //
1149 // Examples:
1150 // "arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters"
1151 AWSSecretsmanagerSecretARNKey = attribute.Key("aws.secretsmanager.secret.arn")
1152
1153 // AWSSNSTopicARNKey is the attribute Key conforming to the "aws.sns.topic.arn"
1154 // semantic conventions. It represents the ARN of the AWS SNS Topic. An Amazon
1155 // SNS [topic] is a logical access point that acts as a communication channel.
1156 //
1157 // Type: string
1158 // RequirementLevel: Recommended
1159 // Stability: Development
1160 //
1161 // Examples: "arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE"
1162 //
1163 // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
1164 AWSSNSTopicARNKey = attribute.Key("aws.sns.topic.arn")
1165
1166 // AWSSQSQueueURLKey is the attribute Key conforming to the "aws.sqs.queue.url"
1167 // semantic conventions. It represents the URL of the AWS SQS Queue. It's a
1168 // unique identifier for a queue in Amazon Simple Queue Service (SQS) and is
1169 // used to access the queue and perform actions on it.
1170 //
1171 // Type: string
1172 // RequirementLevel: Recommended
1173 // Stability: Development
1174 //
1175 // Examples: "https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue"
1176 AWSSQSQueueURLKey = attribute.Key("aws.sqs.queue.url")
1177
1178 // AWSStepFunctionsActivityARNKey is the attribute Key conforming to the
1179 // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
1180 // of the AWS Step Functions Activity.
1181 //
1182 // Type: string
1183 // RequirementLevel: Recommended
1184 // Stability: Development
1185 //
1186 // Examples: "arn:aws:states:us-east-1:123456789012:activity:get-greeting"
1187 AWSStepFunctionsActivityARNKey = attribute.Key("aws.step_functions.activity.arn")
1188
1189 // AWSStepFunctionsStateMachineARNKey is the attribute Key conforming to the
1190 // "aws.step_functions.state_machine.arn" semantic conventions. It represents
1191 // the ARN of the AWS Step Functions State Machine.
1192 //
1193 // Type: string
1194 // RequirementLevel: Recommended
1195 // Stability: Development
1196 //
1197 // Examples:
1198 // "arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1"
1199 AWSStepFunctionsStateMachineARNKey = attribute.Key("aws.step_functions.state_machine.arn")
1200 )
1201
1202 // AWSBedrockGuardrailID returns an attribute KeyValue conforming to the
1203 // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
1204 // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
1205 // prevent unwanted behavior from model responses or user messages.
1206 //
1207 // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
1208 func AWSBedrockGuardrailID(val string) attribute.KeyValue {
1209 return AWSBedrockGuardrailIDKey.String(val)
1210 }
1211
1212 // AWSBedrockKnowledgeBaseID returns an attribute KeyValue conforming to the
1213 // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the unique
1214 // identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a bank of
1215 // information that can be queried by models to generate more relevant responses
1216 // and augment prompts.
1217 //
1218 // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
1219 func AWSBedrockKnowledgeBaseID(val string) attribute.KeyValue {
1220 return AWSBedrockKnowledgeBaseIDKey.String(val)
1221 }
1222
1223 // AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to
1224 // the "aws.dynamodb.attribute_definitions" semantic conventions. It represents
1225 // the JSON-serialized value of each item in the `AttributeDefinitions` request
1226 // field.
1227 func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue {
1228 return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val)
1229 }
1230
1231 // AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the
1232 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value
1233 // of the `AttributesToGet` request parameter.
1234 func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue {
1235 return AWSDynamoDBAttributesToGetKey.StringSlice(val)
1236 }
1237
1238 // AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the
1239 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
1240 // of the `ConsistentRead` request parameter.
1241 func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue {
1242 return AWSDynamoDBConsistentReadKey.Bool(val)
1243 }
1244
1245 // AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the
1246 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
1247 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
1248 func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue {
1249 return AWSDynamoDBConsumedCapacityKey.StringSlice(val)
1250 }
1251
1252 // AWSDynamoDBCount returns an attribute KeyValue conforming to the
1253 // "aws.dynamodb.count" semantic conventions. It represents the value of the
1254 // `Count` response parameter.
1255 func AWSDynamoDBCount(val int) attribute.KeyValue {
1256 return AWSDynamoDBCountKey.Int(val)
1257 }
1258
1259 // AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the
1260 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
1261 // value of the `ExclusiveStartTableName` request parameter.
1262 func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue {
1263 return AWSDynamoDBExclusiveStartTableKey.String(val)
1264 }
1265
1266 // AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue
1267 // conforming to the "aws.dynamodb.global_secondary_index_updates" semantic
1268 // conventions. It represents the JSON-serialized value of each item in the
1269 // `GlobalSecondaryIndexUpdates` request field.
1270 func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue {
1271 return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val)
1272 }
1273
1274 // AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to
1275 // the "aws.dynamodb.global_secondary_indexes" semantic conventions. It
1276 // represents the JSON-serialized value of each item of the
1277 // `GlobalSecondaryIndexes` request field.
1278 func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue {
1279 return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val)
1280 }
1281
1282 // AWSDynamoDBIndexName returns an attribute KeyValue conforming to the
1283 // "aws.dynamodb.index_name" semantic conventions. It represents the value of the
1284 // `IndexName` request parameter.
1285 func AWSDynamoDBIndexName(val string) attribute.KeyValue {
1286 return AWSDynamoDBIndexNameKey.String(val)
1287 }
1288
1289 // AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to
1290 // the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
1291 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
1292 func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue {
1293 return AWSDynamoDBItemCollectionMetricsKey.String(val)
1294 }
1295
1296 // AWSDynamoDBLimit returns an attribute KeyValue conforming to the
1297 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
1298 // `Limit` request parameter.
1299 func AWSDynamoDBLimit(val int) attribute.KeyValue {
1300 return AWSDynamoDBLimitKey.Int(val)
1301 }
1302
1303 // AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to
1304 // the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
1305 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
1306 // field.
1307 func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue {
1308 return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val)
1309 }
1310
1311 // AWSDynamoDBProjection returns an attribute KeyValue conforming to the
1312 // "aws.dynamodb.projection" semantic conventions. It represents the value of the
1313 // `ProjectionExpression` request parameter.
1314 func AWSDynamoDBProjection(val string) attribute.KeyValue {
1315 return AWSDynamoDBProjectionKey.String(val)
1316 }
1317
1318 // AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to
1319 // the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It
1320 // represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request
1321 // parameter.
1322 func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue {
1323 return AWSDynamoDBProvisionedReadCapacityKey.Float64(val)
1324 }
1325
1326 // AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming
1327 // to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It
1328 // represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request
1329 // parameter.
1330 func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue {
1331 return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val)
1332 }
1333
1334 // AWSDynamoDBScanForward returns an attribute KeyValue conforming to the
1335 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
1336 // the `ScanIndexForward` request parameter.
1337 func AWSDynamoDBScanForward(val bool) attribute.KeyValue {
1338 return AWSDynamoDBScanForwardKey.Bool(val)
1339 }
1340
1341 // AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the
1342 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
1343 // the `ScannedCount` response parameter.
1344 func AWSDynamoDBScannedCount(val int) attribute.KeyValue {
1345 return AWSDynamoDBScannedCountKey.Int(val)
1346 }
1347
1348 // AWSDynamoDBSegment returns an attribute KeyValue conforming to the
1349 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
1350 // `Segment` request parameter.
1351 func AWSDynamoDBSegment(val int) attribute.KeyValue {
1352 return AWSDynamoDBSegmentKey.Int(val)
1353 }
1354
1355 // AWSDynamoDBSelect returns an attribute KeyValue conforming to the
1356 // "aws.dynamodb.select" semantic conventions. It represents the value of the
1357 // `Select` request parameter.
1358 func AWSDynamoDBSelect(val string) attribute.KeyValue {
1359 return AWSDynamoDBSelectKey.String(val)
1360 }
1361
1362 // AWSDynamoDBTableCount returns an attribute KeyValue conforming to the
1363 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
1364 // items in the `TableNames` response parameter.
1365 func AWSDynamoDBTableCount(val int) attribute.KeyValue {
1366 return AWSDynamoDBTableCountKey.Int(val)
1367 }
1368
1369 // AWSDynamoDBTableNames returns an attribute KeyValue conforming to the
1370 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in the
1371 // `RequestItems` object field.
1372 func AWSDynamoDBTableNames(val ...string) attribute.KeyValue {
1373 return AWSDynamoDBTableNamesKey.StringSlice(val)
1374 }
1375
1376 // AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the
1377 // "aws.dynamodb.total_segments" semantic conventions. It represents the value of
1378 // the `TotalSegments` request parameter.
1379 func AWSDynamoDBTotalSegments(val int) attribute.KeyValue {
1380 return AWSDynamoDBTotalSegmentsKey.Int(val)
1381 }
1382
1383 // AWSECSClusterARN returns an attribute KeyValue conforming to the
1384 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
1385 // [ECS cluster].
1386 //
1387 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
1388 func AWSECSClusterARN(val string) attribute.KeyValue {
1389 return AWSECSClusterARNKey.String(val)
1390 }
1391
1392 // AWSECSContainerARN returns an attribute KeyValue conforming to the
1393 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
1394 // Resource Name (ARN) of an [ECS container instance].
1395 //
1396 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
1397 func AWSECSContainerARN(val string) attribute.KeyValue {
1398 return AWSECSContainerARNKey.String(val)
1399 }
1400
1401 // AWSECSTaskARN returns an attribute KeyValue conforming to the
1402 // "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running
1403 // [ECS task].
1404 //
1405 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
1406 func AWSECSTaskARN(val string) attribute.KeyValue {
1407 return AWSECSTaskARNKey.String(val)
1408 }
1409
1410 // AWSECSTaskFamily returns an attribute KeyValue conforming to the
1411 // "aws.ecs.task.family" semantic conventions. It represents the family name of
1412 // the [ECS task definition] used to create the ECS task.
1413 //
1414 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
1415 func AWSECSTaskFamily(val string) attribute.KeyValue {
1416 return AWSECSTaskFamilyKey.String(val)
1417 }
1418
1419 // AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id"
1420 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
1421 // be extracted from `task.arn`.
1422 func AWSECSTaskID(val string) attribute.KeyValue {
1423 return AWSECSTaskIDKey.String(val)
1424 }
1425
1426 // AWSECSTaskRevision returns an attribute KeyValue conforming to the
1427 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
1428 // the task definition used to create the ECS task.
1429 func AWSECSTaskRevision(val string) attribute.KeyValue {
1430 return AWSECSTaskRevisionKey.String(val)
1431 }
1432
1433 // AWSEKSClusterARN returns an attribute KeyValue conforming to the
1434 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
1435 // cluster.
1436 func AWSEKSClusterARN(val string) attribute.KeyValue {
1437 return AWSEKSClusterARNKey.String(val)
1438 }
1439
1440 // AWSExtendedRequestID returns an attribute KeyValue conforming to the
1441 // "aws.extended_request_id" semantic conventions. It represents the AWS extended
1442 // request ID as returned in the response header `x-amz-id-2`.
1443 func AWSExtendedRequestID(val string) attribute.KeyValue {
1444 return AWSExtendedRequestIDKey.String(val)
1445 }
1446
1447 // AWSKinesisStreamName returns an attribute KeyValue conforming to the
1448 // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
1449 // AWS Kinesis [stream] the request refers to. Corresponds to the `--stream-name`
1450 // parameter of the Kinesis [describe-stream] operation.
1451 //
1452 // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
1453 // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
1454 func AWSKinesisStreamName(val string) attribute.KeyValue {
1455 return AWSKinesisStreamNameKey.String(val)
1456 }
1457
1458 // AWSLambdaInvokedARN returns an attribute KeyValue conforming to the
1459 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
1460 // ARN as provided on the `Context` passed to the function (
1461 // `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next`
1462 // applicable).
1463 func AWSLambdaInvokedARN(val string) attribute.KeyValue {
1464 return AWSLambdaInvokedARNKey.String(val)
1465 }
1466
1467 // AWSLambdaResourceMappingID returns an attribute KeyValue conforming to the
1468 // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
1469 // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
1470 // function. It's contents are read by Lambda and used to trigger a function.
1471 // This isn't available in the lambda execution context or the lambda runtime
1472 // environtment. This is going to be populated by the AWS SDK for each language
1473 // when that UUID is present. Some of these operations are
1474 // Create/Delete/Get/List/Update EventSourceMapping.
1475 //
1476 // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
1477 func AWSLambdaResourceMappingID(val string) attribute.KeyValue {
1478 return AWSLambdaResourceMappingIDKey.String(val)
1479 }
1480
1481 // AWSLogGroupARNs returns an attribute KeyValue conforming to the
1482 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
1483 // Name(s) (ARN) of the AWS log group(s).
1484 func AWSLogGroupARNs(val ...string) attribute.KeyValue {
1485 return AWSLogGroupARNsKey.StringSlice(val)
1486 }
1487
1488 // AWSLogGroupNames returns an attribute KeyValue conforming to the
1489 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
1490 // AWS log group(s) an application is writing to.
1491 func AWSLogGroupNames(val ...string) attribute.KeyValue {
1492 return AWSLogGroupNamesKey.StringSlice(val)
1493 }
1494
1495 // AWSLogStreamARNs returns an attribute KeyValue conforming to the
1496 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
1497 // AWS log stream(s).
1498 func AWSLogStreamARNs(val ...string) attribute.KeyValue {
1499 return AWSLogStreamARNsKey.StringSlice(val)
1500 }
1501
1502 // AWSLogStreamNames returns an attribute KeyValue conforming to the
1503 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
1504 // AWS log stream(s) an application is writing to.
1505 func AWSLogStreamNames(val ...string) attribute.KeyValue {
1506 return AWSLogStreamNamesKey.StringSlice(val)
1507 }
1508
1509 // AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id"
1510 // semantic conventions. It represents the AWS request ID as returned in the
1511 // response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`
1512 // .
1513 func AWSRequestID(val string) attribute.KeyValue {
1514 return AWSRequestIDKey.String(val)
1515 }
1516
1517 // AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket"
1518 // semantic conventions. It represents the S3 bucket name the request refers to.
1519 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
1520 //
1521 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1522 func AWSS3Bucket(val string) attribute.KeyValue {
1523 return AWSS3BucketKey.String(val)
1524 }
1525
1526 // AWSS3CopySource returns an attribute KeyValue conforming to the
1527 // "aws.s3.copy_source" semantic conventions. It represents the source object (in
1528 // the form `bucket`/`key`) for the copy operation.
1529 func AWSS3CopySource(val string) attribute.KeyValue {
1530 return AWSS3CopySourceKey.String(val)
1531 }
1532
1533 // AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete"
1534 // semantic conventions. It represents the delete request container that
1535 // specifies the objects to be deleted.
1536 func AWSS3Delete(val string) attribute.KeyValue {
1537 return AWSS3DeleteKey.String(val)
1538 }
1539
1540 // AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic
1541 // conventions. It represents the S3 object key the request refers to.
1542 // Corresponds to the `--key` parameter of the [S3 API] operations.
1543 //
1544 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1545 func AWSS3Key(val string) attribute.KeyValue {
1546 return AWSS3KeyKey.String(val)
1547 }
1548
1549 // AWSS3PartNumber returns an attribute KeyValue conforming to the
1550 // "aws.s3.part_number" semantic conventions. It represents the part number of
1551 // the part being uploaded in a multipart-upload operation. This is a positive
1552 // integer between 1 and 10,000.
1553 func AWSS3PartNumber(val int) attribute.KeyValue {
1554 return AWSS3PartNumberKey.Int(val)
1555 }
1556
1557 // AWSS3UploadID returns an attribute KeyValue conforming to the
1558 // "aws.s3.upload_id" semantic conventions. It represents the upload ID that
1559 // identifies the multipart upload.
1560 func AWSS3UploadID(val string) attribute.KeyValue {
1561 return AWSS3UploadIDKey.String(val)
1562 }
1563
1564 // AWSSecretsmanagerSecretARN returns an attribute KeyValue conforming to the
1565 // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN of
1566 // the Secret stored in the Secrets Mangger.
1567 func AWSSecretsmanagerSecretARN(val string) attribute.KeyValue {
1568 return AWSSecretsmanagerSecretARNKey.String(val)
1569 }
1570
1571 // AWSSNSTopicARN returns an attribute KeyValue conforming to the
1572 // "aws.sns.topic.arn" semantic conventions. It represents the ARN of the AWS SNS
1573 // Topic. An Amazon SNS [topic] is a logical access point that acts as a
1574 // communication channel.
1575 //
1576 // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
1577 func AWSSNSTopicARN(val string) attribute.KeyValue {
1578 return AWSSNSTopicARNKey.String(val)
1579 }
1580
1581 // AWSSQSQueueURL returns an attribute KeyValue conforming to the
1582 // "aws.sqs.queue.url" semantic conventions. It represents the URL of the AWS SQS
1583 // Queue. It's a unique identifier for a queue in Amazon Simple Queue Service
1584 // (SQS) and is used to access the queue and perform actions on it.
1585 func AWSSQSQueueURL(val string) attribute.KeyValue {
1586 return AWSSQSQueueURLKey.String(val)
1587 }
1588
1589 // AWSStepFunctionsActivityARN returns an attribute KeyValue conforming to the
1590 // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
1591 // of the AWS Step Functions Activity.
1592 func AWSStepFunctionsActivityARN(val string) attribute.KeyValue {
1593 return AWSStepFunctionsActivityARNKey.String(val)
1594 }
1595
1596 // AWSStepFunctionsStateMachineARN returns an attribute KeyValue conforming to
1597 // the "aws.step_functions.state_machine.arn" semantic conventions. It represents
1598 // the ARN of the AWS Step Functions State Machine.
1599 func AWSStepFunctionsStateMachineARN(val string) attribute.KeyValue {
1600 return AWSStepFunctionsStateMachineARNKey.String(val)
1601 }
1602
1603 // Enum values for aws.ecs.launchtype
1604 var (
1605 // Amazon EC2
1606 // Stability: development
1607 AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2")
1608 // Amazon Fargate
1609 // Stability: development
1610 AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate")
1611 )
1612
1613 // Namespace: azure
1614 const (
1615 // AzureClientIDKey is the attribute Key conforming to the "azure.client.id"
1616 // semantic conventions. It represents the unique identifier of the client
1617 // instance.
1618 //
1619 // Type: string
1620 // RequirementLevel: Recommended
1621 // Stability: Development
1622 //
1623 // Examples: "3ba4827d-4422-483f-b59f-85b74211c11d", "storage-client-1"
1624 AzureClientIDKey = attribute.Key("azure.client.id")
1625
1626 // AzureCosmosDBConnectionModeKey is the attribute Key conforming to the
1627 // "azure.cosmosdb.connection.mode" semantic conventions. It represents the
1628 // cosmos client connection mode.
1629 //
1630 // Type: Enum
1631 // RequirementLevel: Recommended
1632 // Stability: Development
1633 //
1634 // Examples:
1635 AzureCosmosDBConnectionModeKey = attribute.Key("azure.cosmosdb.connection.mode")
1636
1637 // AzureCosmosDBConsistencyLevelKey is the attribute Key conforming to the
1638 // "azure.cosmosdb.consistency.level" semantic conventions. It represents the
1639 // account or request [consistency level].
1640 //
1641 // Type: Enum
1642 // RequirementLevel: Recommended
1643 // Stability: Development
1644 //
1645 // Examples: "Eventual", "ConsistentPrefix", "BoundedStaleness", "Strong",
1646 // "Session"
1647 //
1648 // [consistency level]: https://learn.microsoft.com/azure/cosmos-db/consistency-levels
1649 AzureCosmosDBConsistencyLevelKey = attribute.Key("azure.cosmosdb.consistency.level")
1650
1651 // AzureCosmosDBOperationContactedRegionsKey is the attribute Key conforming to
1652 // the "azure.cosmosdb.operation.contacted_regions" semantic conventions. It
1653 // represents the list of regions contacted during operation in the order that
1654 // they were contacted. If there is more than one region listed, it indicates
1655 // that the operation was performed on multiple regions i.e. cross-regional
1656 // call.
1657 //
1658 // Type: string[]
1659 // RequirementLevel: Recommended
1660 // Stability: Development
1661 //
1662 // Examples: "North Central US", "Australia East", "Australia Southeast"
1663 // Note: Region name matches the format of `displayName` in [Azure Location API]
1664 //
1665 // [Azure Location API]: https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location
1666 AzureCosmosDBOperationContactedRegionsKey = attribute.Key("azure.cosmosdb.operation.contacted_regions")
1667
1668 // AzureCosmosDBOperationRequestChargeKey is the attribute Key conforming to the
1669 // "azure.cosmosdb.operation.request_charge" semantic conventions. It represents
1670 // the number of request units consumed by the operation.
1671 //
1672 // Type: double
1673 // RequirementLevel: Recommended
1674 // Stability: Development
1675 //
1676 // Examples: 46.18, 1.0
1677 AzureCosmosDBOperationRequestChargeKey = attribute.Key("azure.cosmosdb.operation.request_charge")
1678
1679 // AzureCosmosDBRequestBodySizeKey is the attribute Key conforming to the
1680 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1681 // request payload size in bytes.
1682 //
1683 // Type: int
1684 // RequirementLevel: Recommended
1685 // Stability: Development
1686 //
1687 // Examples:
1688 AzureCosmosDBRequestBodySizeKey = attribute.Key("azure.cosmosdb.request.body.size")
1689
1690 // AzureCosmosDBResponseSubStatusCodeKey is the attribute Key conforming to the
1691 // "azure.cosmosdb.response.sub_status_code" semantic conventions. It represents
1692 // the cosmos DB sub status code.
1693 //
1694 // Type: int
1695 // RequirementLevel: Recommended
1696 // Stability: Development
1697 //
1698 // Examples: 1000, 1002
1699 AzureCosmosDBResponseSubStatusCodeKey = attribute.Key("azure.cosmosdb.response.sub_status_code")
1700
1701 // AzureResourceProviderNamespaceKey is the attribute Key conforming to the
1702 // "azure.resource_provider.namespace" semantic conventions. It represents the
1703 // [Azure Resource Provider Namespace] as recognized by the client.
1704 //
1705 // Type: string
1706 // RequirementLevel: Recommended
1707 // Stability: Development
1708 //
1709 // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus"
1710 //
1711 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1712 AzureResourceProviderNamespaceKey = attribute.Key("azure.resource_provider.namespace")
1713
1714 // AzureServiceRequestIDKey is the attribute Key conforming to the
1715 // "azure.service.request.id" semantic conventions. It represents the unique
1716 // identifier of the service request. It's generated by the Azure service and
1717 // returned with the response.
1718 //
1719 // Type: string
1720 // RequirementLevel: Recommended
1721 // Stability: Development
1722 //
1723 // Examples: "00000000-0000-0000-0000-000000000000"
1724 AzureServiceRequestIDKey = attribute.Key("azure.service.request.id")
1725 )
1726
1727 // AzureClientID returns an attribute KeyValue conforming to the
1728 // "azure.client.id" semantic conventions. It represents the unique identifier of
1729 // the client instance.
1730 func AzureClientID(val string) attribute.KeyValue {
1731 return AzureClientIDKey.String(val)
1732 }
1733
1734 // AzureCosmosDBOperationContactedRegions returns an attribute KeyValue
1735 // conforming to the "azure.cosmosdb.operation.contacted_regions" semantic
1736 // conventions. It represents the list of regions contacted during operation in
1737 // the order that they were contacted. If there is more than one region listed,
1738 // it indicates that the operation was performed on multiple regions i.e.
1739 // cross-regional call.
1740 func AzureCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue {
1741 return AzureCosmosDBOperationContactedRegionsKey.StringSlice(val)
1742 }
1743
1744 // AzureCosmosDBOperationRequestCharge returns an attribute KeyValue conforming
1745 // to the "azure.cosmosdb.operation.request_charge" semantic conventions. It
1746 // represents the number of request units consumed by the operation.
1747 func AzureCosmosDBOperationRequestCharge(val float64) attribute.KeyValue {
1748 return AzureCosmosDBOperationRequestChargeKey.Float64(val)
1749 }
1750
1751 // AzureCosmosDBRequestBodySize returns an attribute KeyValue conforming to the
1752 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1753 // request payload size in bytes.
1754 func AzureCosmosDBRequestBodySize(val int) attribute.KeyValue {
1755 return AzureCosmosDBRequestBodySizeKey.Int(val)
1756 }
1757
1758 // AzureCosmosDBResponseSubStatusCode returns an attribute KeyValue conforming to
1759 // the "azure.cosmosdb.response.sub_status_code" semantic conventions. It
1760 // represents the cosmos DB sub status code.
1761 func AzureCosmosDBResponseSubStatusCode(val int) attribute.KeyValue {
1762 return AzureCosmosDBResponseSubStatusCodeKey.Int(val)
1763 }
1764
1765 // AzureResourceProviderNamespace returns an attribute KeyValue conforming to the
1766 // "azure.resource_provider.namespace" semantic conventions. It represents the
1767 // [Azure Resource Provider Namespace] as recognized by the client.
1768 //
1769 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1770 func AzureResourceProviderNamespace(val string) attribute.KeyValue {
1771 return AzureResourceProviderNamespaceKey.String(val)
1772 }
1773
1774 // AzureServiceRequestID returns an attribute KeyValue conforming to the
1775 // "azure.service.request.id" semantic conventions. It represents the unique
1776 // identifier of the service request. It's generated by the Azure service and
1777 // returned with the response.
1778 func AzureServiceRequestID(val string) attribute.KeyValue {
1779 return AzureServiceRequestIDKey.String(val)
1780 }
1781
1782 // Enum values for azure.cosmosdb.connection.mode
1783 var (
1784 // Gateway (HTTP) connection.
1785 // Stability: development
1786 AzureCosmosDBConnectionModeGateway = AzureCosmosDBConnectionModeKey.String("gateway")
1787 // Direct connection.
1788 // Stability: development
1789 AzureCosmosDBConnectionModeDirect = AzureCosmosDBConnectionModeKey.String("direct")
1790 )
1791
1792 // Enum values for azure.cosmosdb.consistency.level
1793 var (
1794 // Strong
1795 // Stability: development
1796 AzureCosmosDBConsistencyLevelStrong = AzureCosmosDBConsistencyLevelKey.String("Strong")
1797 // Bounded Staleness
1798 // Stability: development
1799 AzureCosmosDBConsistencyLevelBoundedStaleness = AzureCosmosDBConsistencyLevelKey.String("BoundedStaleness")
1800 // Session
1801 // Stability: development
1802 AzureCosmosDBConsistencyLevelSession = AzureCosmosDBConsistencyLevelKey.String("Session")
1803 // Eventual
1804 // Stability: development
1805 AzureCosmosDBConsistencyLevelEventual = AzureCosmosDBConsistencyLevelKey.String("Eventual")
1806 // Consistent Prefix
1807 // Stability: development
1808 AzureCosmosDBConsistencyLevelConsistentPrefix = AzureCosmosDBConsistencyLevelKey.String("ConsistentPrefix")
1809 )
1810
1811 // Namespace: browser
1812 const (
1813 // BrowserBrandsKey is the attribute Key conforming to the "browser.brands"
1814 // semantic conventions. It represents the array of brand name and version
1815 // separated by a space.
1816 //
1817 // Type: string[]
1818 // RequirementLevel: Recommended
1819 // Stability: Development
1820 //
1821 // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99"
1822 // Note: This value is intended to be taken from the [UA client hints API] (
1823 // `navigator.userAgentData.brands`).
1824 //
1825 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1826 BrowserBrandsKey = attribute.Key("browser.brands")
1827
1828 // BrowserLanguageKey is the attribute Key conforming to the "browser.language"
1829 // semantic conventions. It represents the preferred language of the user using
1830 // the browser.
1831 //
1832 // Type: string
1833 // RequirementLevel: Recommended
1834 // Stability: Development
1835 //
1836 // Examples: "en", "en-US", "fr", "fr-FR"
1837 // Note: This value is intended to be taken from the Navigator API
1838 // `navigator.language`.
1839 BrowserLanguageKey = attribute.Key("browser.language")
1840
1841 // BrowserMobileKey is the attribute Key conforming to the "browser.mobile"
1842 // semantic conventions. It represents a boolean that is true if the browser is
1843 // running on a mobile device.
1844 //
1845 // Type: boolean
1846 // RequirementLevel: Recommended
1847 // Stability: Development
1848 //
1849 // Examples:
1850 // Note: This value is intended to be taken from the [UA client hints API] (
1851 // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be
1852 // left unset.
1853 //
1854 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1855 BrowserMobileKey = attribute.Key("browser.mobile")
1856
1857 // BrowserPlatformKey is the attribute Key conforming to the "browser.platform"
1858 // semantic conventions. It represents the platform on which the browser is
1859 // running.
1860 //
1861 // Type: string
1862 // RequirementLevel: Recommended
1863 // Stability: Development
1864 //
1865 // Examples: "Windows", "macOS", "Android"
1866 // Note: This value is intended to be taken from the [UA client hints API] (
1867 // `navigator.userAgentData.platform`). If unavailable, the legacy
1868 // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD
1869 // be left unset in order for the values to be consistent.
1870 // The list of possible values is defined in the
1871 // [W3C User-Agent Client Hints specification]. Note that some (but not all) of
1872 // these values can overlap with values in the
1873 // [`os.type` and `os.name` attributes]. However, for consistency, the values in
1874 // the `browser.platform` attribute should capture the exact value that the user
1875 // agent provides.
1876 //
1877 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1878 // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform
1879 // [`os.type` and `os.name` attributes]: ./os.md
1880 BrowserPlatformKey = attribute.Key("browser.platform")
1881 )
1882
1883 // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands"
1884 // semantic conventions. It represents the array of brand name and version
1885 // separated by a space.
1886 func BrowserBrands(val ...string) attribute.KeyValue {
1887 return BrowserBrandsKey.StringSlice(val)
1888 }
1889
1890 // BrowserLanguage returns an attribute KeyValue conforming to the
1891 // "browser.language" semantic conventions. It represents the preferred language
1892 // of the user using the browser.
1893 func BrowserLanguage(val string) attribute.KeyValue {
1894 return BrowserLanguageKey.String(val)
1895 }
1896
1897 // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile"
1898 // semantic conventions. It represents a boolean that is true if the browser is
1899 // running on a mobile device.
1900 func BrowserMobile(val bool) attribute.KeyValue {
1901 return BrowserMobileKey.Bool(val)
1902 }
1903
1904 // BrowserPlatform returns an attribute KeyValue conforming to the
1905 // "browser.platform" semantic conventions. It represents the platform on which
1906 // the browser is running.
1907 func BrowserPlatform(val string) attribute.KeyValue {
1908 return BrowserPlatformKey.String(val)
1909 }
1910
1911 // Namespace: cassandra
1912 const (
1913 // CassandraConsistencyLevelKey is the attribute Key conforming to the
1914 // "cassandra.consistency.level" semantic conventions. It represents the
1915 // consistency level of the query. Based on consistency values from [CQL].
1916 //
1917 // Type: Enum
1918 // RequirementLevel: Recommended
1919 // Stability: Development
1920 //
1921 // Examples:
1922 //
1923 // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
1924 CassandraConsistencyLevelKey = attribute.Key("cassandra.consistency.level")
1925
1926 // CassandraCoordinatorDCKey is the attribute Key conforming to the
1927 // "cassandra.coordinator.dc" semantic conventions. It represents the data
1928 // center of the coordinating node for a query.
1929 //
1930 // Type: string
1931 // RequirementLevel: Recommended
1932 // Stability: Development
1933 //
1934 // Examples: us-west-2
1935 CassandraCoordinatorDCKey = attribute.Key("cassandra.coordinator.dc")
1936
1937 // CassandraCoordinatorIDKey is the attribute Key conforming to the
1938 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1939 // coordinating node for a query.
1940 //
1941 // Type: string
1942 // RequirementLevel: Recommended
1943 // Stability: Development
1944 //
1945 // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af
1946 CassandraCoordinatorIDKey = attribute.Key("cassandra.coordinator.id")
1947
1948 // CassandraPageSizeKey is the attribute Key conforming to the
1949 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1950 // for paging, i.e. how many rows will be returned at once.
1951 //
1952 // Type: int
1953 // RequirementLevel: Recommended
1954 // Stability: Development
1955 //
1956 // Examples: 5000
1957 CassandraPageSizeKey = attribute.Key("cassandra.page.size")
1958
1959 // CassandraQueryIdempotentKey is the attribute Key conforming to the
1960 // "cassandra.query.idempotent" semantic conventions. It represents the whether
1961 // or not the query is idempotent.
1962 //
1963 // Type: boolean
1964 // RequirementLevel: Recommended
1965 // Stability: Development
1966 //
1967 // Examples:
1968 CassandraQueryIdempotentKey = attribute.Key("cassandra.query.idempotent")
1969
1970 // CassandraSpeculativeExecutionCountKey is the attribute Key conforming to the
1971 // "cassandra.speculative_execution.count" semantic conventions. It represents
1972 // the number of times a query was speculatively executed. Not set or `0` if the
1973 // query was not executed speculatively.
1974 //
1975 // Type: int
1976 // RequirementLevel: Recommended
1977 // Stability: Development
1978 //
1979 // Examples: 0, 2
1980 CassandraSpeculativeExecutionCountKey = attribute.Key("cassandra.speculative_execution.count")
1981 )
1982
1983 // CassandraCoordinatorDC returns an attribute KeyValue conforming to the
1984 // "cassandra.coordinator.dc" semantic conventions. It represents the data center
1985 // of the coordinating node for a query.
1986 func CassandraCoordinatorDC(val string) attribute.KeyValue {
1987 return CassandraCoordinatorDCKey.String(val)
1988 }
1989
1990 // CassandraCoordinatorID returns an attribute KeyValue conforming to the
1991 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1992 // coordinating node for a query.
1993 func CassandraCoordinatorID(val string) attribute.KeyValue {
1994 return CassandraCoordinatorIDKey.String(val)
1995 }
1996
1997 // CassandraPageSize returns an attribute KeyValue conforming to the
1998 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1999 // for paging, i.e. how many rows will be returned at once.
2000 func CassandraPageSize(val int) attribute.KeyValue {
2001 return CassandraPageSizeKey.Int(val)
2002 }
2003
2004 // CassandraQueryIdempotent returns an attribute KeyValue conforming to the
2005 // "cassandra.query.idempotent" semantic conventions. It represents the whether
2006 // or not the query is idempotent.
2007 func CassandraQueryIdempotent(val bool) attribute.KeyValue {
2008 return CassandraQueryIdempotentKey.Bool(val)
2009 }
2010
2011 // CassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to
2012 // the "cassandra.speculative_execution.count" semantic conventions. It
2013 // represents the number of times a query was speculatively executed. Not set or
2014 // `0` if the query was not executed speculatively.
2015 func CassandraSpeculativeExecutionCount(val int) attribute.KeyValue {
2016 return CassandraSpeculativeExecutionCountKey.Int(val)
2017 }
2018
2019 // Enum values for cassandra.consistency.level
2020 var (
2021 // All
2022 // Stability: development
2023 CassandraConsistencyLevelAll = CassandraConsistencyLevelKey.String("all")
2024 // Each Quorum
2025 // Stability: development
2026 CassandraConsistencyLevelEachQuorum = CassandraConsistencyLevelKey.String("each_quorum")
2027 // Quorum
2028 // Stability: development
2029 CassandraConsistencyLevelQuorum = CassandraConsistencyLevelKey.String("quorum")
2030 // Local Quorum
2031 // Stability: development
2032 CassandraConsistencyLevelLocalQuorum = CassandraConsistencyLevelKey.String("local_quorum")
2033 // One
2034 // Stability: development
2035 CassandraConsistencyLevelOne = CassandraConsistencyLevelKey.String("one")
2036 // Two
2037 // Stability: development
2038 CassandraConsistencyLevelTwo = CassandraConsistencyLevelKey.String("two")
2039 // Three
2040 // Stability: development
2041 CassandraConsistencyLevelThree = CassandraConsistencyLevelKey.String("three")
2042 // Local One
2043 // Stability: development
2044 CassandraConsistencyLevelLocalOne = CassandraConsistencyLevelKey.String("local_one")
2045 // Any
2046 // Stability: development
2047 CassandraConsistencyLevelAny = CassandraConsistencyLevelKey.String("any")
2048 // Serial
2049 // Stability: development
2050 CassandraConsistencyLevelSerial = CassandraConsistencyLevelKey.String("serial")
2051 // Local Serial
2052 // Stability: development
2053 CassandraConsistencyLevelLocalSerial = CassandraConsistencyLevelKey.String("local_serial")
2054 )
2055
2056 // Namespace: cicd
2057 const (
2058 // CICDPipelineActionNameKey is the attribute Key conforming to the
2059 // "cicd.pipeline.action.name" semantic conventions. It represents the kind of
2060 // action a pipeline run is performing.
2061 //
2062 // Type: Enum
2063 // RequirementLevel: Recommended
2064 // Stability: Development
2065 //
2066 // Examples: "BUILD", "RUN", "SYNC"
2067 CICDPipelineActionNameKey = attribute.Key("cicd.pipeline.action.name")
2068
2069 // CICDPipelineNameKey is the attribute Key conforming to the
2070 // "cicd.pipeline.name" semantic conventions. It represents the human readable
2071 // name of the pipeline within a CI/CD system.
2072 //
2073 // Type: string
2074 // RequirementLevel: Recommended
2075 // Stability: Development
2076 //
2077 // Examples: "Build and Test", "Lint", "Deploy Go Project",
2078 // "deploy_to_environment"
2079 CICDPipelineNameKey = attribute.Key("cicd.pipeline.name")
2080
2081 // CICDPipelineResultKey is the attribute Key conforming to the
2082 // "cicd.pipeline.result" semantic conventions. It represents the result of a
2083 // pipeline run.
2084 //
2085 // Type: Enum
2086 // RequirementLevel: Recommended
2087 // Stability: Development
2088 //
2089 // Examples: "success", "failure", "timeout", "skipped"
2090 CICDPipelineResultKey = attribute.Key("cicd.pipeline.result")
2091
2092 // CICDPipelineRunIDKey is the attribute Key conforming to the
2093 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
2094 // identifier of a pipeline run within a CI/CD system.
2095 //
2096 // Type: string
2097 // RequirementLevel: Recommended
2098 // Stability: Development
2099 //
2100 // Examples: "120912"
2101 CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id")
2102
2103 // CICDPipelineRunStateKey is the attribute Key conforming to the
2104 // "cicd.pipeline.run.state" semantic conventions. It represents the pipeline
2105 // run goes through these states during its lifecycle.
2106 //
2107 // Type: Enum
2108 // RequirementLevel: Recommended
2109 // Stability: Development
2110 //
2111 // Examples: "pending", "executing", "finalizing"
2112 CICDPipelineRunStateKey = attribute.Key("cicd.pipeline.run.state")
2113
2114 // CICDPipelineRunURLFullKey is the attribute Key conforming to the
2115 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
2116 // the pipeline run, providing the complete address in order to locate and
2117 // identify the pipeline run.
2118 //
2119 // Type: string
2120 // RequirementLevel: Recommended
2121 // Stability: Development
2122 //
2123 // Examples:
2124 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075"
2125 //
2126 // [URL]: https://wikipedia.org/wiki/URL
2127 CICDPipelineRunURLFullKey = attribute.Key("cicd.pipeline.run.url.full")
2128
2129 // CICDPipelineTaskNameKey is the attribute Key conforming to the
2130 // "cicd.pipeline.task.name" semantic conventions. It represents the human
2131 // readable name of a task within a pipeline. Task here most closely aligns with
2132 // a [computing process] in a pipeline. Other terms for tasks include commands,
2133 // steps, and procedures.
2134 //
2135 // Type: string
2136 // RequirementLevel: Recommended
2137 // Stability: Development
2138 //
2139 // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary"
2140 //
2141 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
2142 CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name")
2143
2144 // CICDPipelineTaskRunIDKey is the attribute Key conforming to the
2145 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
2146 // identifier of a task run within a pipeline.
2147 //
2148 // Type: string
2149 // RequirementLevel: Recommended
2150 // Stability: Development
2151 //
2152 // Examples: "12097"
2153 CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id")
2154
2155 // CICDPipelineTaskRunResultKey is the attribute Key conforming to the
2156 // "cicd.pipeline.task.run.result" semantic conventions. It represents the
2157 // result of a task run.
2158 //
2159 // Type: Enum
2160 // RequirementLevel: Recommended
2161 // Stability: Development
2162 //
2163 // Examples: "success", "failure", "timeout", "skipped"
2164 CICDPipelineTaskRunResultKey = attribute.Key("cicd.pipeline.task.run.result")
2165
2166 // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the
2167 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
2168 // [URL] of the pipeline task run, providing the complete address in order to
2169 // locate and identify the pipeline task run.
2170 //
2171 // Type: string
2172 // RequirementLevel: Recommended
2173 // Stability: Development
2174 //
2175 // Examples:
2176 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"
2177 //
2178 // [URL]: https://wikipedia.org/wiki/URL
2179 CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full")
2180
2181 // CICDPipelineTaskTypeKey is the attribute Key conforming to the
2182 // "cicd.pipeline.task.type" semantic conventions. It represents the type of the
2183 // task within a pipeline.
2184 //
2185 // Type: Enum
2186 // RequirementLevel: Recommended
2187 // Stability: Development
2188 //
2189 // Examples: "build", "test", "deploy"
2190 CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type")
2191
2192 // CICDSystemComponentKey is the attribute Key conforming to the
2193 // "cicd.system.component" semantic conventions. It represents the name of a
2194 // component of the CICD system.
2195 //
2196 // Type: string
2197 // RequirementLevel: Recommended
2198 // Stability: Development
2199 //
2200 // Examples: "controller", "scheduler", "agent"
2201 CICDSystemComponentKey = attribute.Key("cicd.system.component")
2202
2203 // CICDWorkerIDKey is the attribute Key conforming to the "cicd.worker.id"
2204 // semantic conventions. It represents the unique identifier of a worker within
2205 // a CICD system.
2206 //
2207 // Type: string
2208 // RequirementLevel: Recommended
2209 // Stability: Development
2210 //
2211 // Examples: "abc123", "10.0.1.2", "controller"
2212 CICDWorkerIDKey = attribute.Key("cicd.worker.id")
2213
2214 // CICDWorkerNameKey is the attribute Key conforming to the "cicd.worker.name"
2215 // semantic conventions. It represents the name of a worker within a CICD
2216 // system.
2217 //
2218 // Type: string
2219 // RequirementLevel: Recommended
2220 // Stability: Development
2221 //
2222 // Examples: "agent-abc", "controller", "Ubuntu LTS"
2223 CICDWorkerNameKey = attribute.Key("cicd.worker.name")
2224
2225 // CICDWorkerStateKey is the attribute Key conforming to the "cicd.worker.state"
2226 // semantic conventions. It represents the state of a CICD worker / agent.
2227 //
2228 // Type: Enum
2229 // RequirementLevel: Recommended
2230 // Stability: Development
2231 //
2232 // Examples: "idle", "busy", "down"
2233 CICDWorkerStateKey = attribute.Key("cicd.worker.state")
2234
2235 // CICDWorkerURLFullKey is the attribute Key conforming to the
2236 // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
2237 // worker, providing the complete address in order to locate and identify the
2238 // worker.
2239 //
2240 // Type: string
2241 // RequirementLevel: Recommended
2242 // Stability: Development
2243 //
2244 // Examples: "https://cicd.example.org/worker/abc123"
2245 //
2246 // [URL]: https://wikipedia.org/wiki/URL
2247 CICDWorkerURLFullKey = attribute.Key("cicd.worker.url.full")
2248 )
2249
2250 // CICDPipelineName returns an attribute KeyValue conforming to the
2251 // "cicd.pipeline.name" semantic conventions. It represents the human readable
2252 // name of the pipeline within a CI/CD system.
2253 func CICDPipelineName(val string) attribute.KeyValue {
2254 return CICDPipelineNameKey.String(val)
2255 }
2256
2257 // CICDPipelineRunID returns an attribute KeyValue conforming to the
2258 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
2259 // identifier of a pipeline run within a CI/CD system.
2260 func CICDPipelineRunID(val string) attribute.KeyValue {
2261 return CICDPipelineRunIDKey.String(val)
2262 }
2263
2264 // CICDPipelineRunURLFull returns an attribute KeyValue conforming to the
2265 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
2266 // the pipeline run, providing the complete address in order to locate and
2267 // identify the pipeline run.
2268 //
2269 // [URL]: https://wikipedia.org/wiki/URL
2270 func CICDPipelineRunURLFull(val string) attribute.KeyValue {
2271 return CICDPipelineRunURLFullKey.String(val)
2272 }
2273
2274 // CICDPipelineTaskName returns an attribute KeyValue conforming to the
2275 // "cicd.pipeline.task.name" semantic conventions. It represents the human
2276 // readable name of a task within a pipeline. Task here most closely aligns with
2277 // a [computing process] in a pipeline. Other terms for tasks include commands,
2278 // steps, and procedures.
2279 //
2280 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
2281 func CICDPipelineTaskName(val string) attribute.KeyValue {
2282 return CICDPipelineTaskNameKey.String(val)
2283 }
2284
2285 // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the
2286 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
2287 // identifier of a task run within a pipeline.
2288 func CICDPipelineTaskRunID(val string) attribute.KeyValue {
2289 return CICDPipelineTaskRunIDKey.String(val)
2290 }
2291
2292 // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the
2293 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
2294 // [URL] of the pipeline task run, providing the complete address in order to
2295 // locate and identify the pipeline task run.
2296 //
2297 // [URL]: https://wikipedia.org/wiki/URL
2298 func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue {
2299 return CICDPipelineTaskRunURLFullKey.String(val)
2300 }
2301
2302 // CICDSystemComponent returns an attribute KeyValue conforming to the
2303 // "cicd.system.component" semantic conventions. It represents the name of a
2304 // component of the CICD system.
2305 func CICDSystemComponent(val string) attribute.KeyValue {
2306 return CICDSystemComponentKey.String(val)
2307 }
2308
2309 // CICDWorkerID returns an attribute KeyValue conforming to the "cicd.worker.id"
2310 // semantic conventions. It represents the unique identifier of a worker within a
2311 // CICD system.
2312 func CICDWorkerID(val string) attribute.KeyValue {
2313 return CICDWorkerIDKey.String(val)
2314 }
2315
2316 // CICDWorkerName returns an attribute KeyValue conforming to the
2317 // "cicd.worker.name" semantic conventions. It represents the name of a worker
2318 // within a CICD system.
2319 func CICDWorkerName(val string) attribute.KeyValue {
2320 return CICDWorkerNameKey.String(val)
2321 }
2322
2323 // CICDWorkerURLFull returns an attribute KeyValue conforming to the
2324 // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
2325 // worker, providing the complete address in order to locate and identify the
2326 // worker.
2327 //
2328 // [URL]: https://wikipedia.org/wiki/URL
2329 func CICDWorkerURLFull(val string) attribute.KeyValue {
2330 return CICDWorkerURLFullKey.String(val)
2331 }
2332
2333 // Enum values for cicd.pipeline.action.name
2334 var (
2335 // The pipeline run is executing a build.
2336 // Stability: development
2337 CICDPipelineActionNameBuild = CICDPipelineActionNameKey.String("BUILD")
2338 // The pipeline run is executing.
2339 // Stability: development
2340 CICDPipelineActionNameRun = CICDPipelineActionNameKey.String("RUN")
2341 // The pipeline run is executing a sync.
2342 // Stability: development
2343 CICDPipelineActionNameSync = CICDPipelineActionNameKey.String("SYNC")
2344 )
2345
2346 // Enum values for cicd.pipeline.result
2347 var (
2348 // The pipeline run finished successfully.
2349 // Stability: development
2350 CICDPipelineResultSuccess = CICDPipelineResultKey.String("success")
2351 // The pipeline run did not finish successfully, eg. due to a compile error or a
2352 // failing test. Such failures are usually detected by non-zero exit codes of
2353 // the tools executed in the pipeline run.
2354 // Stability: development
2355 CICDPipelineResultFailure = CICDPipelineResultKey.String("failure")
2356 // The pipeline run failed due to an error in the CICD system, eg. due to the
2357 // worker being killed.
2358 // Stability: development
2359 CICDPipelineResultError = CICDPipelineResultKey.String("error")
2360 // A timeout caused the pipeline run to be interrupted.
2361 // Stability: development
2362 CICDPipelineResultTimeout = CICDPipelineResultKey.String("timeout")
2363 // The pipeline run was cancelled, eg. by a user manually cancelling the
2364 // pipeline run.
2365 // Stability: development
2366 CICDPipelineResultCancellation = CICDPipelineResultKey.String("cancellation")
2367 // The pipeline run was skipped, eg. due to a precondition not being met.
2368 // Stability: development
2369 CICDPipelineResultSkip = CICDPipelineResultKey.String("skip")
2370 )
2371
2372 // Enum values for cicd.pipeline.run.state
2373 var (
2374 // The run pending state spans from the event triggering the pipeline run until
2375 // the execution of the run starts (eg. time spent in a queue, provisioning
2376 // agents, creating run resources).
2377 //
2378 // Stability: development
2379 CICDPipelineRunStatePending = CICDPipelineRunStateKey.String("pending")
2380 // The executing state spans the execution of any run tasks (eg. build, test).
2381 // Stability: development
2382 CICDPipelineRunStateExecuting = CICDPipelineRunStateKey.String("executing")
2383 // The finalizing state spans from when the run has finished executing (eg.
2384 // cleanup of run resources).
2385 // Stability: development
2386 CICDPipelineRunStateFinalizing = CICDPipelineRunStateKey.String("finalizing")
2387 )
2388
2389 // Enum values for cicd.pipeline.task.run.result
2390 var (
2391 // The task run finished successfully.
2392 // Stability: development
2393 CICDPipelineTaskRunResultSuccess = CICDPipelineTaskRunResultKey.String("success")
2394 // The task run did not finish successfully, eg. due to a compile error or a
2395 // failing test. Such failures are usually detected by non-zero exit codes of
2396 // the tools executed in the task run.
2397 // Stability: development
2398 CICDPipelineTaskRunResultFailure = CICDPipelineTaskRunResultKey.String("failure")
2399 // The task run failed due to an error in the CICD system, eg. due to the worker
2400 // being killed.
2401 // Stability: development
2402 CICDPipelineTaskRunResultError = CICDPipelineTaskRunResultKey.String("error")
2403 // A timeout caused the task run to be interrupted.
2404 // Stability: development
2405 CICDPipelineTaskRunResultTimeout = CICDPipelineTaskRunResultKey.String("timeout")
2406 // The task run was cancelled, eg. by a user manually cancelling the task run.
2407 // Stability: development
2408 CICDPipelineTaskRunResultCancellation = CICDPipelineTaskRunResultKey.String("cancellation")
2409 // The task run was skipped, eg. due to a precondition not being met.
2410 // Stability: development
2411 CICDPipelineTaskRunResultSkip = CICDPipelineTaskRunResultKey.String("skip")
2412 )
2413
2414 // Enum values for cicd.pipeline.task.type
2415 var (
2416 // build
2417 // Stability: development
2418 CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build")
2419 // test
2420 // Stability: development
2421 CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test")
2422 // deploy
2423 // Stability: development
2424 CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy")
2425 )
2426
2427 // Enum values for cicd.worker.state
2428 var (
2429 // The worker is not performing work for the CICD system. It is available to the
2430 // CICD system to perform work on (online / idle).
2431 // Stability: development
2432 CICDWorkerStateAvailable = CICDWorkerStateKey.String("available")
2433 // The worker is performing work for the CICD system.
2434 // Stability: development
2435 CICDWorkerStateBusy = CICDWorkerStateKey.String("busy")
2436 // The worker is not available to the CICD system (disconnected / down).
2437 // Stability: development
2438 CICDWorkerStateOffline = CICDWorkerStateKey.String("offline")
2439 )
2440
2441 // Namespace: client
2442 const (
2443 // ClientAddressKey is the attribute Key conforming to the "client.address"
2444 // semantic conventions. It represents the client address - domain name if
2445 // available without reverse DNS lookup; otherwise, IP address or Unix domain
2446 // socket name.
2447 //
2448 // Type: string
2449 // RequirementLevel: Recommended
2450 // Stability: Stable
2451 //
2452 // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock"
2453 // Note: When observed from the server side, and when communicating through an
2454 // intermediary, `client.address` SHOULD represent the client address behind any
2455 // intermediaries, for example proxies, if it's available.
2456 ClientAddressKey = attribute.Key("client.address")
2457
2458 // ClientPortKey is the attribute Key conforming to the "client.port" semantic
2459 // conventions. It represents the client port number.
2460 //
2461 // Type: int
2462 // RequirementLevel: Recommended
2463 // Stability: Stable
2464 //
2465 // Examples: 65123
2466 // Note: When observed from the server side, and when communicating through an
2467 // intermediary, `client.port` SHOULD represent the client port behind any
2468 // intermediaries, for example proxies, if it's available.
2469 ClientPortKey = attribute.Key("client.port")
2470 )
2471
2472 // ClientAddress returns an attribute KeyValue conforming to the "client.address"
2473 // semantic conventions. It represents the client address - domain name if
2474 // available without reverse DNS lookup; otherwise, IP address or Unix domain
2475 // socket name.
2476 func ClientAddress(val string) attribute.KeyValue {
2477 return ClientAddressKey.String(val)
2478 }
2479
2480 // ClientPort returns an attribute KeyValue conforming to the "client.port"
2481 // semantic conventions. It represents the client port number.
2482 func ClientPort(val int) attribute.KeyValue {
2483 return ClientPortKey.Int(val)
2484 }
2485
2486 // Namespace: cloud
2487 const (
2488 // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id"
2489 // semantic conventions. It represents the cloud account ID the resource is
2490 // assigned to.
2491 //
2492 // Type: string
2493 // RequirementLevel: Recommended
2494 // Stability: Development
2495 //
2496 // Examples: "111111111111", "opentelemetry"
2497 CloudAccountIDKey = attribute.Key("cloud.account.id")
2498
2499 // CloudAvailabilityZoneKey is the attribute Key conforming to the
2500 // "cloud.availability_zone" semantic conventions. It represents the cloud
2501 // regions often have multiple, isolated locations known as zones to increase
2502 // availability. Availability zone represents the zone where the resource is
2503 // running.
2504 //
2505 // Type: string
2506 // RequirementLevel: Recommended
2507 // Stability: Development
2508 //
2509 // Examples: "us-east-1c"
2510 // Note: Availability zones are called "zones" on Alibaba Cloud and Google
2511 // Cloud.
2512 CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
2513
2514 // CloudPlatformKey is the attribute Key conforming to the "cloud.platform"
2515 // semantic conventions. It represents the cloud platform in use.
2516 //
2517 // Type: Enum
2518 // RequirementLevel: Recommended
2519 // Stability: Development
2520 //
2521 // Examples:
2522 // Note: The prefix of the service SHOULD match the one specified in
2523 // `cloud.provider`.
2524 CloudPlatformKey = attribute.Key("cloud.platform")
2525
2526 // CloudProviderKey is the attribute Key conforming to the "cloud.provider"
2527 // semantic conventions. It represents the name of the cloud provider.
2528 //
2529 // Type: Enum
2530 // RequirementLevel: Recommended
2531 // Stability: Development
2532 //
2533 // Examples:
2534 CloudProviderKey = attribute.Key("cloud.provider")
2535
2536 // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic
2537 // conventions. It represents the geographical region within a cloud provider.
2538 // When associated with a resource, this attribute specifies the region where
2539 // the resource operates. When calling services or APIs deployed on a cloud,
2540 // this attribute identifies the region where the called destination is
2541 // deployed.
2542 //
2543 // Type: string
2544 // RequirementLevel: Recommended
2545 // Stability: Development
2546 //
2547 // Examples: "us-central1", "us-east-1"
2548 // Note: Refer to your provider's docs to see the available regions, for example
2549 // [Alibaba Cloud regions], [AWS regions], [Azure regions],
2550 // [Google Cloud regions], or [Tencent Cloud regions].
2551 //
2552 // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm
2553 // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/
2554 // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/
2555 // [Google Cloud regions]: https://cloud.google.com/about/locations
2556 // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091
2557 CloudRegionKey = attribute.Key("cloud.region")
2558
2559 // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id"
2560 // semantic conventions. It represents the cloud provider-specific native
2561 // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a
2562 // [fully qualified resource ID] on Azure, a [full resource name] on GCP).
2563 //
2564 // Type: string
2565 // RequirementLevel: Recommended
2566 // Stability: Development
2567 //
2568 // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",
2569 // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID",
2570 // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>
2571 // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>"
2572 // Note: On some cloud providers, it may not be possible to determine the full
2573 // ID at startup,
2574 // so it may be necessary to set `cloud.resource_id` as a span attribute
2575 // instead.
2576 //
2577 // The exact value to use for `cloud.resource_id` depends on the cloud provider.
2578 // The following well-known definitions MUST be used if you set this attribute
2579 // and they apply:
2580 //
2581 // - **AWS Lambda:** The function [ARN].
2582 // Take care not to use the "invoked ARN" directly but replace any
2583 // [alias suffix]
2584 // with the resolved function version, as the same runtime instance may be
2585 // invocable with
2586 // multiple different aliases.
2587 // - **GCP:** The [URI of the resource]
2588 // - **Azure:** The [Fully Qualified Resource ID] of the invoked function,
2589 // *not* the function app, having the form
2590 //
2591 // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`
2592 // .
2593 // This means that a span attribute MUST be used, as an Azure function app
2594 // can host multiple functions that would usually share
2595 // a TracerProvider.
2596 //
2597 //
2598 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2599 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2600 // [full resource name]: https://google.aip.dev/122#full-resource-names
2601 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2602 // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
2603 // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names
2604 // [Fully Qualified Resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2605 CloudResourceIDKey = attribute.Key("cloud.resource_id")
2606 )
2607
2608 // CloudAccountID returns an attribute KeyValue conforming to the
2609 // "cloud.account.id" semantic conventions. It represents the cloud account ID
2610 // the resource is assigned to.
2611 func CloudAccountID(val string) attribute.KeyValue {
2612 return CloudAccountIDKey.String(val)
2613 }
2614
2615 // CloudAvailabilityZone returns an attribute KeyValue conforming to the
2616 // "cloud.availability_zone" semantic conventions. It represents the cloud
2617 // regions often have multiple, isolated locations known as zones to increase
2618 // availability. Availability zone represents the zone where the resource is
2619 // running.
2620 func CloudAvailabilityZone(val string) attribute.KeyValue {
2621 return CloudAvailabilityZoneKey.String(val)
2622 }
2623
2624 // CloudRegion returns an attribute KeyValue conforming to the "cloud.region"
2625 // semantic conventions. It represents the geographical region within a cloud
2626 // provider. When associated with a resource, this attribute specifies the region
2627 // where the resource operates. When calling services or APIs deployed on a
2628 // cloud, this attribute identifies the region where the called destination is
2629 // deployed.
2630 func CloudRegion(val string) attribute.KeyValue {
2631 return CloudRegionKey.String(val)
2632 }
2633
2634 // CloudResourceID returns an attribute KeyValue conforming to the
2635 // "cloud.resource_id" semantic conventions. It represents the cloud
2636 // provider-specific native identifier of the monitored cloud resource (e.g. an
2637 // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name]
2638 // on GCP).
2639 //
2640 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2641 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2642 // [full resource name]: https://google.aip.dev/122#full-resource-names
2643 func CloudResourceID(val string) attribute.KeyValue {
2644 return CloudResourceIDKey.String(val)
2645 }
2646
2647 // Enum values for cloud.platform
2648 var (
2649 // Alibaba Cloud Elastic Compute Service
2650 // Stability: development
2651 CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
2652 // Alibaba Cloud Function Compute
2653 // Stability: development
2654 CloudPlatformAlibabaCloudFC = CloudPlatformKey.String("alibaba_cloud_fc")
2655 // Red Hat OpenShift on Alibaba Cloud
2656 // Stability: development
2657 CloudPlatformAlibabaCloudOpenShift = CloudPlatformKey.String("alibaba_cloud_openshift")
2658 // AWS Elastic Compute Cloud
2659 // Stability: development
2660 CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
2661 // AWS Elastic Container Service
2662 // Stability: development
2663 CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
2664 // AWS Elastic Kubernetes Service
2665 // Stability: development
2666 CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
2667 // AWS Lambda
2668 // Stability: development
2669 CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
2670 // AWS Elastic Beanstalk
2671 // Stability: development
2672 CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
2673 // AWS App Runner
2674 // Stability: development
2675 CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
2676 // Red Hat OpenShift on AWS (ROSA)
2677 // Stability: development
2678 CloudPlatformAWSOpenShift = CloudPlatformKey.String("aws_openshift")
2679 // Azure Virtual Machines
2680 // Stability: development
2681 CloudPlatformAzureVM = CloudPlatformKey.String("azure.vm")
2682 // Azure Container Apps
2683 // Stability: development
2684 CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure.container_apps")
2685 // Azure Container Instances
2686 // Stability: development
2687 CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure.container_instances")
2688 // Azure Kubernetes Service
2689 // Stability: development
2690 CloudPlatformAzureAKS = CloudPlatformKey.String("azure.aks")
2691 // Azure Functions
2692 // Stability: development
2693 CloudPlatformAzureFunctions = CloudPlatformKey.String("azure.functions")
2694 // Azure App Service
2695 // Stability: development
2696 CloudPlatformAzureAppService = CloudPlatformKey.String("azure.app_service")
2697 // Azure Red Hat OpenShift
2698 // Stability: development
2699 CloudPlatformAzureOpenShift = CloudPlatformKey.String("azure.openshift")
2700 // Google Bare Metal Solution (BMS)
2701 // Stability: development
2702 CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
2703 // Google Cloud Compute Engine (GCE)
2704 // Stability: development
2705 CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
2706 // Google Cloud Run
2707 // Stability: development
2708 CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
2709 // Google Cloud Kubernetes Engine (GKE)
2710 // Stability: development
2711 CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
2712 // Google Cloud Functions (GCF)
2713 // Stability: development
2714 CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
2715 // Google Cloud App Engine (GAE)
2716 // Stability: development
2717 CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
2718 // Red Hat OpenShift on Google Cloud
2719 // Stability: development
2720 CloudPlatformGCPOpenShift = CloudPlatformKey.String("gcp_openshift")
2721 // Red Hat OpenShift on IBM Cloud
2722 // Stability: development
2723 CloudPlatformIBMCloudOpenShift = CloudPlatformKey.String("ibm_cloud_openshift")
2724 // Compute on Oracle Cloud Infrastructure (OCI)
2725 // Stability: development
2726 CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute")
2727 // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI)
2728 // Stability: development
2729 CloudPlatformOracleCloudOKE = CloudPlatformKey.String("oracle_cloud_oke")
2730 // Tencent Cloud Cloud Virtual Machine (CVM)
2731 // Stability: development
2732 CloudPlatformTencentCloudCVM = CloudPlatformKey.String("tencent_cloud_cvm")
2733 // Tencent Cloud Elastic Kubernetes Service (EKS)
2734 // Stability: development
2735 CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
2736 // Tencent Cloud Serverless Cloud Function (SCF)
2737 // Stability: development
2738 CloudPlatformTencentCloudSCF = CloudPlatformKey.String("tencent_cloud_scf")
2739 )
2740
2741 // Enum values for cloud.provider
2742 var (
2743 // Alibaba Cloud
2744 // Stability: development
2745 CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
2746 // Amazon Web Services
2747 // Stability: development
2748 CloudProviderAWS = CloudProviderKey.String("aws")
2749 // Microsoft Azure
2750 // Stability: development
2751 CloudProviderAzure = CloudProviderKey.String("azure")
2752 // Google Cloud Platform
2753 // Stability: development
2754 CloudProviderGCP = CloudProviderKey.String("gcp")
2755 // Heroku Platform as a Service
2756 // Stability: development
2757 CloudProviderHeroku = CloudProviderKey.String("heroku")
2758 // IBM Cloud
2759 // Stability: development
2760 CloudProviderIBMCloud = CloudProviderKey.String("ibm_cloud")
2761 // Oracle Cloud Infrastructure (OCI)
2762 // Stability: development
2763 CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud")
2764 // Tencent Cloud
2765 // Stability: development
2766 CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
2767 )
2768
2769 // Namespace: cloudevents
2770 const (
2771 // CloudEventsEventIDKey is the attribute Key conforming to the
2772 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2773 // uniquely identifies the event.
2774 //
2775 // Type: string
2776 // RequirementLevel: Recommended
2777 // Stability: Development
2778 //
2779 // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
2780 //
2781 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2782 CloudEventsEventIDKey = attribute.Key("cloudevents.event_id")
2783
2784 // CloudEventsEventSourceKey is the attribute Key conforming to the
2785 // "cloudevents.event_source" semantic conventions. It represents the [source]
2786 // identifies the context in which an event happened.
2787 //
2788 // Type: string
2789 // RequirementLevel: Recommended
2790 // Stability: Development
2791 //
2792 // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
2793 // "my-service"
2794 //
2795 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2796 CloudEventsEventSourceKey = attribute.Key("cloudevents.event_source")
2797
2798 // CloudEventsEventSpecVersionKey is the attribute Key conforming to the
2799 // "cloudevents.event_spec_version" semantic conventions. It represents the
2800 // [version of the CloudEvents specification] which the event uses.
2801 //
2802 // Type: string
2803 // RequirementLevel: Recommended
2804 // Stability: Development
2805 //
2806 // Examples: 1.0
2807 //
2808 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2809 CloudEventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
2810
2811 // CloudEventsEventSubjectKey is the attribute Key conforming to the
2812 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2813 // of the event in the context of the event producer (identified by source).
2814 //
2815 // Type: string
2816 // RequirementLevel: Recommended
2817 // Stability: Development
2818 //
2819 // Examples: mynewfile.jpg
2820 //
2821 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2822 CloudEventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
2823
2824 // CloudEventsEventTypeKey is the attribute Key conforming to the
2825 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2826 // contains a value describing the type of event related to the originating
2827 // occurrence.
2828 //
2829 // Type: string
2830 // RequirementLevel: Recommended
2831 // Stability: Development
2832 //
2833 // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
2834 //
2835 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2836 CloudEventsEventTypeKey = attribute.Key("cloudevents.event_type")
2837 )
2838
2839 // CloudEventsEventID returns an attribute KeyValue conforming to the
2840 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2841 // uniquely identifies the event.
2842 //
2843 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2844 func CloudEventsEventID(val string) attribute.KeyValue {
2845 return CloudEventsEventIDKey.String(val)
2846 }
2847
2848 // CloudEventsEventSource returns an attribute KeyValue conforming to the
2849 // "cloudevents.event_source" semantic conventions. It represents the [source]
2850 // identifies the context in which an event happened.
2851 //
2852 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2853 func CloudEventsEventSource(val string) attribute.KeyValue {
2854 return CloudEventsEventSourceKey.String(val)
2855 }
2856
2857 // CloudEventsEventSpecVersion returns an attribute KeyValue conforming to the
2858 // "cloudevents.event_spec_version" semantic conventions. It represents the
2859 // [version of the CloudEvents specification] which the event uses.
2860 //
2861 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2862 func CloudEventsEventSpecVersion(val string) attribute.KeyValue {
2863 return CloudEventsEventSpecVersionKey.String(val)
2864 }
2865
2866 // CloudEventsEventSubject returns an attribute KeyValue conforming to the
2867 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2868 // of the event in the context of the event producer (identified by source).
2869 //
2870 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2871 func CloudEventsEventSubject(val string) attribute.KeyValue {
2872 return CloudEventsEventSubjectKey.String(val)
2873 }
2874
2875 // CloudEventsEventType returns an attribute KeyValue conforming to the
2876 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2877 // contains a value describing the type of event related to the originating
2878 // occurrence.
2879 //
2880 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2881 func CloudEventsEventType(val string) attribute.KeyValue {
2882 return CloudEventsEventTypeKey.String(val)
2883 }
2884
2885 // Namespace: cloudfoundry
2886 const (
2887 // CloudFoundryAppIDKey is the attribute Key conforming to the
2888 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2889 // application.
2890 //
2891 // Type: string
2892 // RequirementLevel: Recommended
2893 // Stability: Development
2894 //
2895 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2896 // Note: Application instrumentation should use the value from environment
2897 // variable `VCAP_APPLICATION.application_id`. This is the same value as
2898 // reported by `cf app <app-name> --guid`.
2899 CloudFoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
2900
2901 // CloudFoundryAppInstanceIDKey is the attribute Key conforming to the
2902 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2903 // of the application instance. 0 when just one instance is active.
2904 //
2905 // Type: string
2906 // RequirementLevel: Recommended
2907 // Stability: Development
2908 //
2909 // Examples: "0", "1"
2910 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2911 // .
2912 // It is used for logs and metrics emitted by CloudFoundry. It is
2913 // supposed to contain the application instance index for applications
2914 // deployed on the runtime.
2915 //
2916 // Application instrumentation should use the value from environment
2917 // variable `CF_INSTANCE_INDEX`.
2918 //
2919 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2920 CloudFoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
2921
2922 // CloudFoundryAppNameKey is the attribute Key conforming to the
2923 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2924 // application.
2925 //
2926 // Type: string
2927 // RequirementLevel: Recommended
2928 // Stability: Development
2929 //
2930 // Examples: "my-app-name"
2931 // Note: Application instrumentation should use the value from environment
2932 // variable `VCAP_APPLICATION.application_name`. This is the same value
2933 // as reported by `cf apps`.
2934 CloudFoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
2935
2936 // CloudFoundryOrgIDKey is the attribute Key conforming to the
2937 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
2938 // CloudFoundry org the application is running in.
2939 //
2940 // Type: string
2941 // RequirementLevel: Recommended
2942 // Stability: Development
2943 //
2944 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2945 // Note: Application instrumentation should use the value from environment
2946 // variable `VCAP_APPLICATION.org_id`. This is the same value as
2947 // reported by `cf org <org-name> --guid`.
2948 CloudFoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
2949
2950 // CloudFoundryOrgNameKey is the attribute Key conforming to the
2951 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
2952 // CloudFoundry organization the app is running in.
2953 //
2954 // Type: string
2955 // RequirementLevel: Recommended
2956 // Stability: Development
2957 //
2958 // Examples: "my-org-name"
2959 // Note: Application instrumentation should use the value from environment
2960 // variable `VCAP_APPLICATION.org_name`. This is the same value as
2961 // reported by `cf orgs`.
2962 CloudFoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
2963
2964 // CloudFoundryProcessIDKey is the attribute Key conforming to the
2965 // "cloudfoundry.process.id" semantic conventions. It represents the UID
2966 // identifying the process.
2967 //
2968 // Type: string
2969 // RequirementLevel: Recommended
2970 // Stability: Development
2971 //
2972 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2973 // Note: Application instrumentation should use the value from environment
2974 // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
2975 // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
2976 // For system components, this could be the actual PID.
2977 CloudFoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
2978
2979 // CloudFoundryProcessTypeKey is the attribute Key conforming to the
2980 // "cloudfoundry.process.type" semantic conventions. It represents the type of
2981 // process.
2982 //
2983 // Type: string
2984 // RequirementLevel: Recommended
2985 // Stability: Development
2986 //
2987 // Examples: "web"
2988 // Note: CloudFoundry applications can consist of multiple jobs. Usually the
2989 // main process will be of type `web`. There can be additional background
2990 // tasks or side-cars with different process types.
2991 CloudFoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
2992
2993 // CloudFoundrySpaceIDKey is the attribute Key conforming to the
2994 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
2995 // CloudFoundry space the application is running in.
2996 //
2997 // Type: string
2998 // RequirementLevel: Recommended
2999 // Stability: Development
3000 //
3001 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
3002 // Note: Application instrumentation should use the value from environment
3003 // variable `VCAP_APPLICATION.space_id`. This is the same value as
3004 // reported by `cf space <space-name> --guid`.
3005 CloudFoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
3006
3007 // CloudFoundrySpaceNameKey is the attribute Key conforming to the
3008 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
3009 // CloudFoundry space the application is running in.
3010 //
3011 // Type: string
3012 // RequirementLevel: Recommended
3013 // Stability: Development
3014 //
3015 // Examples: "my-space-name"
3016 // Note: Application instrumentation should use the value from environment
3017 // variable `VCAP_APPLICATION.space_name`. This is the same value as
3018 // reported by `cf spaces`.
3019 CloudFoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
3020
3021 // CloudFoundrySystemIDKey is the attribute Key conforming to the
3022 // "cloudfoundry.system.id" semantic conventions. It represents a guid or
3023 // another name describing the event source.
3024 //
3025 // Type: string
3026 // RequirementLevel: Recommended
3027 // Stability: Development
3028 //
3029 // Examples: "cf/gorouter"
3030 // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
3031 // It is used for logs and metrics emitted by CloudFoundry. It is
3032 // supposed to contain the component name, e.g. "gorouter", for
3033 // CloudFoundry components.
3034 //
3035 // When system components are instrumented, values from the
3036 // [Bosh spec]
3037 // should be used. The `system.id` should be set to
3038 // `spec.deployment/spec.name`.
3039 //
3040 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
3041 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
3042 CloudFoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
3043
3044 // CloudFoundrySystemInstanceIDKey is the attribute Key conforming to the
3045 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
3046 // describing the concrete instance of the event source.
3047 //
3048 // Type: string
3049 // RequirementLevel: Recommended
3050 // Stability: Development
3051 //
3052 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
3053 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
3054 // .
3055 // It is used for logs and metrics emitted by CloudFoundry. It is
3056 // supposed to contain the vm id for CloudFoundry components.
3057 //
3058 // When system components are instrumented, values from the
3059 // [Bosh spec]
3060 // should be used. The `system.instance.id` should be set to `spec.id`.
3061 //
3062 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
3063 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
3064 CloudFoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
3065 )
3066
3067 // CloudFoundryAppID returns an attribute KeyValue conforming to the
3068 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
3069 // application.
3070 func CloudFoundryAppID(val string) attribute.KeyValue {
3071 return CloudFoundryAppIDKey.String(val)
3072 }
3073
3074 // CloudFoundryAppInstanceID returns an attribute KeyValue conforming to the
3075 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
3076 // of the application instance. 0 when just one instance is active.
3077 func CloudFoundryAppInstanceID(val string) attribute.KeyValue {
3078 return CloudFoundryAppInstanceIDKey.String(val)
3079 }
3080
3081 // CloudFoundryAppName returns an attribute KeyValue conforming to the
3082 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
3083 // application.
3084 func CloudFoundryAppName(val string) attribute.KeyValue {
3085 return CloudFoundryAppNameKey.String(val)
3086 }
3087
3088 // CloudFoundryOrgID returns an attribute KeyValue conforming to the
3089 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
3090 // CloudFoundry org the application is running in.
3091 func CloudFoundryOrgID(val string) attribute.KeyValue {
3092 return CloudFoundryOrgIDKey.String(val)
3093 }
3094
3095 // CloudFoundryOrgName returns an attribute KeyValue conforming to the
3096 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
3097 // CloudFoundry organization the app is running in.
3098 func CloudFoundryOrgName(val string) attribute.KeyValue {
3099 return CloudFoundryOrgNameKey.String(val)
3100 }
3101
3102 // CloudFoundryProcessID returns an attribute KeyValue conforming to the
3103 // "cloudfoundry.process.id" semantic conventions. It represents the UID
3104 // identifying the process.
3105 func CloudFoundryProcessID(val string) attribute.KeyValue {
3106 return CloudFoundryProcessIDKey.String(val)
3107 }
3108
3109 // CloudFoundryProcessType returns an attribute KeyValue conforming to the
3110 // "cloudfoundry.process.type" semantic conventions. It represents the type of
3111 // process.
3112 func CloudFoundryProcessType(val string) attribute.KeyValue {
3113 return CloudFoundryProcessTypeKey.String(val)
3114 }
3115
3116 // CloudFoundrySpaceID returns an attribute KeyValue conforming to the
3117 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
3118 // CloudFoundry space the application is running in.
3119 func CloudFoundrySpaceID(val string) attribute.KeyValue {
3120 return CloudFoundrySpaceIDKey.String(val)
3121 }
3122
3123 // CloudFoundrySpaceName returns an attribute KeyValue conforming to the
3124 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
3125 // CloudFoundry space the application is running in.
3126 func CloudFoundrySpaceName(val string) attribute.KeyValue {
3127 return CloudFoundrySpaceNameKey.String(val)
3128 }
3129
3130 // CloudFoundrySystemID returns an attribute KeyValue conforming to the
3131 // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
3132 // name describing the event source.
3133 func CloudFoundrySystemID(val string) attribute.KeyValue {
3134 return CloudFoundrySystemIDKey.String(val)
3135 }
3136
3137 // CloudFoundrySystemInstanceID returns an attribute KeyValue conforming to the
3138 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
3139 // describing the concrete instance of the event source.
3140 func CloudFoundrySystemInstanceID(val string) attribute.KeyValue {
3141 return CloudFoundrySystemInstanceIDKey.String(val)
3142 }
3143
3144 // Namespace: code
3145 const (
3146 // CodeColumnNumberKey is the attribute Key conforming to the
3147 // "code.column.number" semantic conventions. It represents the column number in
3148 // `code.file.path` best representing the operation. It SHOULD point within the
3149 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3150 // the Profile signal since the data is already captured in 'message Line'. This
3151 // constraint is imposed to prevent redundancy and maintain data integrity.
3152 //
3153 // Type: int
3154 // RequirementLevel: Recommended
3155 // Stability: Stable
3156 CodeColumnNumberKey = attribute.Key("code.column.number")
3157
3158 // CodeFilePathKey is the attribute Key conforming to the "code.file.path"
3159 // semantic conventions. It represents the source code file name that identifies
3160 // the code unit as uniquely as possible (preferably an absolute file path).
3161 // This attribute MUST NOT be used on the Profile signal since the data is
3162 // already captured in 'message Function'. This constraint is imposed to prevent
3163 // redundancy and maintain data integrity.
3164 //
3165 // Type: string
3166 // RequirementLevel: Recommended
3167 // Stability: Stable
3168 //
3169 // Examples: /usr/local/MyApplication/content_root/app/index.php
3170 CodeFilePathKey = attribute.Key("code.file.path")
3171
3172 // CodeFunctionNameKey is the attribute Key conforming to the
3173 // "code.function.name" semantic conventions. It represents the method or
3174 // function fully-qualified name without arguments. The value should fit the
3175 // natural representation of the language runtime, which is also likely the same
3176 // used within `code.stacktrace` attribute value. This attribute MUST NOT be
3177 // used on the Profile signal since the data is already captured in 'message
3178 // Function'. This constraint is imposed to prevent redundancy and maintain data
3179 // integrity.
3180 //
3181 // Type: string
3182 // RequirementLevel: Recommended
3183 // Stability: Stable
3184 //
3185 // Examples: "com.example.MyHttpService.serveRequest",
3186 // "GuzzleHttp\Client::transfer", "fopen"
3187 // Note: Values and format depends on each language runtime, thus it is
3188 // impossible to provide an exhaustive list of examples.
3189 // The values are usually the same (or prefixes of) the ones found in native
3190 // stack trace representation stored in
3191 // `code.stacktrace` without information on arguments.
3192 //
3193 // Examples:
3194 //
3195 // - Java method: `com.example.MyHttpService.serveRequest`
3196 // - Java anonymous class method: `com.mycompany.Main$1.myMethod`
3197 // - Java lambda method:
3198 // `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod`
3199 // - PHP function: `GuzzleHttp\Client::transfer`
3200 // - Go function: `github.com/my/repo/pkg.foo.func5`
3201 // - Elixir: `OpenTelemetry.Ctx.new`
3202 // - Erlang: `opentelemetry_ctx:new`
3203 // - Rust: `playground::my_module::my_cool_func`
3204 // - C function: `fopen`
3205 CodeFunctionNameKey = attribute.Key("code.function.name")
3206
3207 // CodeLineNumberKey is the attribute Key conforming to the "code.line.number"
3208 // semantic conventions. It represents the line number in `code.file.path` best
3209 // representing the operation. It SHOULD point within the code unit named in
3210 // `code.function.name`. This attribute MUST NOT be used on the Profile signal
3211 // since the data is already captured in 'message Line'. This constraint is
3212 // imposed to prevent redundancy and maintain data integrity.
3213 //
3214 // Type: int
3215 // RequirementLevel: Recommended
3216 // Stability: Stable
3217 CodeLineNumberKey = attribute.Key("code.line.number")
3218
3219 // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
3220 // semantic conventions. It represents a stacktrace as a string in the natural
3221 // representation for the language runtime. The representation is identical to
3222 // [`exception.stacktrace`]. This attribute MUST NOT be used on the Profile
3223 // signal since the data is already captured in 'message Location'. This
3224 // constraint is imposed to prevent redundancy and maintain data integrity.
3225 //
3226 // Type: string
3227 // RequirementLevel: Recommended
3228 // Stability: Stable
3229 //
3230 // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
3231 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
3232 // com.example.GenerateTrace.main(GenerateTrace.java:5)
3233 //
3234 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
3235 CodeStacktraceKey = attribute.Key("code.stacktrace")
3236 )
3237
3238 // CodeColumnNumber returns an attribute KeyValue conforming to the
3239 // "code.column.number" semantic conventions. It represents the column number in
3240 // `code.file.path` best representing the operation. It SHOULD point within the
3241 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3242 // the Profile signal since the data is already captured in 'message Line'. This
3243 // constraint is imposed to prevent redundancy and maintain data integrity.
3244 func CodeColumnNumber(val int) attribute.KeyValue {
3245 return CodeColumnNumberKey.Int(val)
3246 }
3247
3248 // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path"
3249 // semantic conventions. It represents the source code file name that identifies
3250 // the code unit as uniquely as possible (preferably an absolute file path). This
3251 // attribute MUST NOT be used on the Profile signal since the data is already
3252 // captured in 'message Function'. This constraint is imposed to prevent
3253 // redundancy and maintain data integrity.
3254 func CodeFilePath(val string) attribute.KeyValue {
3255 return CodeFilePathKey.String(val)
3256 }
3257
3258 // CodeFunctionName returns an attribute KeyValue conforming to the
3259 // "code.function.name" semantic conventions. It represents the method or
3260 // function fully-qualified name without arguments. The value should fit the
3261 // natural representation of the language runtime, which is also likely the same
3262 // used within `code.stacktrace` attribute value. This attribute MUST NOT be used
3263 // on the Profile signal since the data is already captured in 'message
3264 // Function'. This constraint is imposed to prevent redundancy and maintain data
3265 // integrity.
3266 func CodeFunctionName(val string) attribute.KeyValue {
3267 return CodeFunctionNameKey.String(val)
3268 }
3269
3270 // CodeLineNumber returns an attribute KeyValue conforming to the
3271 // "code.line.number" semantic conventions. It represents the line number in
3272 // `code.file.path` best representing the operation. It SHOULD point within the
3273 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3274 // the Profile signal since the data is already captured in 'message Line'. This
3275 // constraint is imposed to prevent redundancy and maintain data integrity.
3276 func CodeLineNumber(val int) attribute.KeyValue {
3277 return CodeLineNumberKey.Int(val)
3278 }
3279
3280 // CodeStacktrace returns an attribute KeyValue conforming to the
3281 // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
3282 // in the natural representation for the language runtime. The representation is
3283 // identical to [`exception.stacktrace`]. This attribute MUST NOT be used on the
3284 // Profile signal since the data is already captured in 'message Location'. This
3285 // constraint is imposed to prevent redundancy and maintain data integrity.
3286 //
3287 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
3288 func CodeStacktrace(val string) attribute.KeyValue {
3289 return CodeStacktraceKey.String(val)
3290 }
3291
3292 // Namespace: container
3293 const (
3294 // ContainerCommandKey is the attribute Key conforming to the
3295 // "container.command" semantic conventions. It represents the command used to
3296 // run the container (i.e. the command name).
3297 //
3298 // Type: string
3299 // RequirementLevel: Recommended
3300 // Stability: Development
3301 //
3302 // Examples: "otelcontribcol"
3303 // Note: If using embedded credentials or sensitive data, it is recommended to
3304 // remove them to prevent potential leakage.
3305 ContainerCommandKey = attribute.Key("container.command")
3306
3307 // ContainerCommandArgsKey is the attribute Key conforming to the
3308 // "container.command_args" semantic conventions. It represents the all the
3309 // command arguments (including the command/executable itself) run by the
3310 // container.
3311 //
3312 // Type: string[]
3313 // RequirementLevel: Recommended
3314 // Stability: Development
3315 //
3316 // Examples: "otelcontribcol", "--config", "config.yaml"
3317 ContainerCommandArgsKey = attribute.Key("container.command_args")
3318
3319 // ContainerCommandLineKey is the attribute Key conforming to the
3320 // "container.command_line" semantic conventions. It represents the full command
3321 // run by the container as a single string representing the full command.
3322 //
3323 // Type: string
3324 // RequirementLevel: Recommended
3325 // Stability: Development
3326 //
3327 // Examples: "otelcontribcol --config config.yaml"
3328 ContainerCommandLineKey = attribute.Key("container.command_line")
3329
3330 // ContainerCSIPluginNameKey is the attribute Key conforming to the
3331 // "container.csi.plugin.name" semantic conventions. It represents the name of
3332 // the CSI ([Container Storage Interface]) plugin used by the volume.
3333 //
3334 // Type: string
3335 // RequirementLevel: Recommended
3336 // Stability: Development
3337 //
3338 // Examples: "pd.csi.storage.gke.io"
3339 // Note: This can sometimes be referred to as a "driver" in CSI implementations.
3340 // This should represent the `name` field of the GetPluginInfo RPC.
3341 //
3342 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3343 ContainerCSIPluginNameKey = attribute.Key("container.csi.plugin.name")
3344
3345 // ContainerCSIVolumeIDKey is the attribute Key conforming to the
3346 // "container.csi.volume.id" semantic conventions. It represents the unique
3347 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3348 //
3349 // Type: string
3350 // RequirementLevel: Recommended
3351 // Stability: Development
3352 //
3353 // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
3354 // Note: This can sometimes be referred to as a "volume handle" in CSI
3355 // implementations. This should represent the `Volume.volume_id` field in CSI
3356 // spec.
3357 //
3358 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3359 ContainerCSIVolumeIDKey = attribute.Key("container.csi.volume.id")
3360
3361 // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
3362 // conventions. It represents the container ID. Usually a UUID, as for example
3363 // used to [identify Docker containers]. The UUID might be abbreviated.
3364 //
3365 // Type: string
3366 // RequirementLevel: Recommended
3367 // Stability: Development
3368 //
3369 // Examples: "a3bf90e006b2"
3370 //
3371 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3372 ContainerIDKey = attribute.Key("container.id")
3373
3374 // ContainerImageIDKey is the attribute Key conforming to the
3375 // "container.image.id" semantic conventions. It represents the runtime specific
3376 // image identifier. Usually a hash algorithm followed by a UUID.
3377 //
3378 // Type: string
3379 // RequirementLevel: Recommended
3380 // Stability: Development
3381 //
3382 // Examples:
3383 // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
3384 // Note: Docker defines a sha256 of the image id; `container.image.id`
3385 // corresponds to the `Image` field from the Docker container inspect [API]
3386 // endpoint.
3387 // K8s defines a link to the container registry repository with digest
3388 // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
3389 // .
3390 // The ID is assigned by the container runtime and can vary in different
3391 // environments. Consider using `oci.manifest.digest` if it is important to
3392 // identify the same image in different environments/runtimes.
3393 //
3394 // [API]: https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect
3395 ContainerImageIDKey = attribute.Key("container.image.id")
3396
3397 // ContainerImageNameKey is the attribute Key conforming to the
3398 // "container.image.name" semantic conventions. It represents the name of the
3399 // image the container was built on.
3400 //
3401 // Type: string
3402 // RequirementLevel: Recommended
3403 // Stability: Development
3404 //
3405 // Examples: "gcr.io/opentelemetry/operator"
3406 ContainerImageNameKey = attribute.Key("container.image.name")
3407
3408 // ContainerImageRepoDigestsKey is the attribute Key conforming to the
3409 // "container.image.repo_digests" semantic conventions. It represents the repo
3410 // digests of the container image as provided by the container runtime.
3411 //
3412 // Type: string[]
3413 // RequirementLevel: Recommended
3414 // Stability: Development
3415 //
3416 // Examples:
3417 // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
3418 // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
3419 // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
3420 //
3421 // [Docker]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
3422 // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
3423 ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
3424
3425 // ContainerImageTagsKey is the attribute Key conforming to the
3426 // "container.image.tags" semantic conventions. It represents the container
3427 // image tags. An example can be found in [Docker Image Inspect]. Should be only
3428 // the `<tag>` section of the full name for example from
3429 // `registry.example.com/my-org/my-image:<tag>`.
3430 //
3431 // Type: string[]
3432 // RequirementLevel: Recommended
3433 // Stability: Development
3434 //
3435 // Examples: "v1.27.1", "3.5.7-0"
3436 //
3437 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
3438 ContainerImageTagsKey = attribute.Key("container.image.tags")
3439
3440 // ContainerNameKey is the attribute Key conforming to the "container.name"
3441 // semantic conventions. It represents the container name used by container
3442 // runtime.
3443 //
3444 // Type: string
3445 // RequirementLevel: Recommended
3446 // Stability: Development
3447 //
3448 // Examples: "opentelemetry-autoconf"
3449 ContainerNameKey = attribute.Key("container.name")
3450
3451 // ContainerRuntimeDescriptionKey is the attribute Key conforming to the
3452 // "container.runtime.description" semantic conventions. It represents a
3453 // description about the runtime which could include, for example details about
3454 // the CRI/API version being used or other customisations.
3455 //
3456 // Type: string
3457 // RequirementLevel: Recommended
3458 // Stability: Development
3459 //
3460 // Examples: "docker://19.3.1 - CRI: 1.22.0"
3461 ContainerRuntimeDescriptionKey = attribute.Key("container.runtime.description")
3462
3463 // ContainerRuntimeNameKey is the attribute Key conforming to the
3464 // "container.runtime.name" semantic conventions. It represents the container
3465 // runtime managing this container.
3466 //
3467 // Type: string
3468 // RequirementLevel: Recommended
3469 // Stability: Development
3470 //
3471 // Examples: "docker", "containerd", "rkt"
3472 ContainerRuntimeNameKey = attribute.Key("container.runtime.name")
3473
3474 // ContainerRuntimeVersionKey is the attribute Key conforming to the
3475 // "container.runtime.version" semantic conventions. It represents the version
3476 // of the runtime of this process, as returned by the runtime without
3477 // modification.
3478 //
3479 // Type: string
3480 // RequirementLevel: Recommended
3481 // Stability: Development
3482 //
3483 // Examples: 1.0.0
3484 ContainerRuntimeVersionKey = attribute.Key("container.runtime.version")
3485 )
3486
3487 // ContainerCommand returns an attribute KeyValue conforming to the
3488 // "container.command" semantic conventions. It represents the command used to
3489 // run the container (i.e. the command name).
3490 func ContainerCommand(val string) attribute.KeyValue {
3491 return ContainerCommandKey.String(val)
3492 }
3493
3494 // ContainerCommandArgs returns an attribute KeyValue conforming to the
3495 // "container.command_args" semantic conventions. It represents the all the
3496 // command arguments (including the command/executable itself) run by the
3497 // container.
3498 func ContainerCommandArgs(val ...string) attribute.KeyValue {
3499 return ContainerCommandArgsKey.StringSlice(val)
3500 }
3501
3502 // ContainerCommandLine returns an attribute KeyValue conforming to the
3503 // "container.command_line" semantic conventions. It represents the full command
3504 // run by the container as a single string representing the full command.
3505 func ContainerCommandLine(val string) attribute.KeyValue {
3506 return ContainerCommandLineKey.String(val)
3507 }
3508
3509 // ContainerCSIPluginName returns an attribute KeyValue conforming to the
3510 // "container.csi.plugin.name" semantic conventions. It represents the name of
3511 // the CSI ([Container Storage Interface]) plugin used by the volume.
3512 //
3513 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3514 func ContainerCSIPluginName(val string) attribute.KeyValue {
3515 return ContainerCSIPluginNameKey.String(val)
3516 }
3517
3518 // ContainerCSIVolumeID returns an attribute KeyValue conforming to the
3519 // "container.csi.volume.id" semantic conventions. It represents the unique
3520 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3521 //
3522 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3523 func ContainerCSIVolumeID(val string) attribute.KeyValue {
3524 return ContainerCSIVolumeIDKey.String(val)
3525 }
3526
3527 // ContainerID returns an attribute KeyValue conforming to the "container.id"
3528 // semantic conventions. It represents the container ID. Usually a UUID, as for
3529 // example used to [identify Docker containers]. The UUID might be abbreviated.
3530 //
3531 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3532 func ContainerID(val string) attribute.KeyValue {
3533 return ContainerIDKey.String(val)
3534 }
3535
3536 // ContainerImageID returns an attribute KeyValue conforming to the
3537 // "container.image.id" semantic conventions. It represents the runtime specific
3538 // image identifier. Usually a hash algorithm followed by a UUID.
3539 func ContainerImageID(val string) attribute.KeyValue {
3540 return ContainerImageIDKey.String(val)
3541 }
3542
3543 // ContainerImageName returns an attribute KeyValue conforming to the
3544 // "container.image.name" semantic conventions. It represents the name of the
3545 // image the container was built on.
3546 func ContainerImageName(val string) attribute.KeyValue {
3547 return ContainerImageNameKey.String(val)
3548 }
3549
3550 // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
3551 // "container.image.repo_digests" semantic conventions. It represents the repo
3552 // digests of the container image as provided by the container runtime.
3553 func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
3554 return ContainerImageRepoDigestsKey.StringSlice(val)
3555 }
3556
3557 // ContainerImageTags returns an attribute KeyValue conforming to the
3558 // "container.image.tags" semantic conventions. It represents the container image
3559 // tags. An example can be found in [Docker Image Inspect]. Should be only the
3560 // `<tag>` section of the full name for example from
3561 // `registry.example.com/my-org/my-image:<tag>`.
3562 //
3563 // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
3564 func ContainerImageTags(val ...string) attribute.KeyValue {
3565 return ContainerImageTagsKey.StringSlice(val)
3566 }
3567
3568 // ContainerLabel returns an attribute KeyValue conforming to the
3569 // "container.label" semantic conventions. It represents the container labels,
3570 // `<key>` being the label name, the value being the label value.
3571 func ContainerLabel(key string, val string) attribute.KeyValue {
3572 return attribute.String("container.label."+key, val)
3573 }
3574
3575 // ContainerName returns an attribute KeyValue conforming to the "container.name"
3576 // semantic conventions. It represents the container name used by container
3577 // runtime.
3578 func ContainerName(val string) attribute.KeyValue {
3579 return ContainerNameKey.String(val)
3580 }
3581
3582 // ContainerRuntimeDescription returns an attribute KeyValue conforming to the
3583 // "container.runtime.description" semantic conventions. It represents a
3584 // description about the runtime which could include, for example details about
3585 // the CRI/API version being used or other customisations.
3586 func ContainerRuntimeDescription(val string) attribute.KeyValue {
3587 return ContainerRuntimeDescriptionKey.String(val)
3588 }
3589
3590 // ContainerRuntimeName returns an attribute KeyValue conforming to the
3591 // "container.runtime.name" semantic conventions. It represents the container
3592 // runtime managing this container.
3593 func ContainerRuntimeName(val string) attribute.KeyValue {
3594 return ContainerRuntimeNameKey.String(val)
3595 }
3596
3597 // ContainerRuntimeVersion returns an attribute KeyValue conforming to the
3598 // "container.runtime.version" semantic conventions. It represents the version of
3599 // the runtime of this process, as returned by the runtime without modification.
3600 func ContainerRuntimeVersion(val string) attribute.KeyValue {
3601 return ContainerRuntimeVersionKey.String(val)
3602 }
3603
3604 // Namespace: cpu
3605 const (
3606 // CPULogicalNumberKey is the attribute Key conforming to the
3607 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3608 // number [0..n-1].
3609 //
3610 // Type: int
3611 // RequirementLevel: Recommended
3612 // Stability: Development
3613 //
3614 // Examples: 1
3615 CPULogicalNumberKey = attribute.Key("cpu.logical_number")
3616
3617 // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
3618 // conventions. It represents the mode of the CPU.
3619 //
3620 // Type: Enum
3621 // RequirementLevel: Recommended
3622 // Stability: Development
3623 //
3624 // Examples: "user", "system"
3625 CPUModeKey = attribute.Key("cpu.mode")
3626 )
3627
3628 // CPULogicalNumber returns an attribute KeyValue conforming to the
3629 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3630 // number [0..n-1].
3631 func CPULogicalNumber(val int) attribute.KeyValue {
3632 return CPULogicalNumberKey.Int(val)
3633 }
3634
3635 // Enum values for cpu.mode
3636 var (
3637 // User
3638 // Stability: development
3639 CPUModeUser = CPUModeKey.String("user")
3640 // System
3641 // Stability: development
3642 CPUModeSystem = CPUModeKey.String("system")
3643 // Nice
3644 // Stability: development
3645 CPUModeNice = CPUModeKey.String("nice")
3646 // Idle
3647 // Stability: development
3648 CPUModeIdle = CPUModeKey.String("idle")
3649 // IO Wait
3650 // Stability: development
3651 CPUModeIOWait = CPUModeKey.String("iowait")
3652 // Interrupt
3653 // Stability: development
3654 CPUModeInterrupt = CPUModeKey.String("interrupt")
3655 // Steal
3656 // Stability: development
3657 CPUModeSteal = CPUModeKey.String("steal")
3658 // Kernel
3659 // Stability: development
3660 CPUModeKernel = CPUModeKey.String("kernel")
3661 )
3662
3663 // Namespace: db
3664 const (
3665 // DBClientConnectionPoolNameKey is the attribute Key conforming to the
3666 // "db.client.connection.pool.name" semantic conventions. It represents the name
3667 // of the connection pool; unique within the instrumented application. In case
3668 // the connection pool implementation doesn't provide a name, instrumentation
3669 // SHOULD use a combination of parameters that would make the name unique, for
3670 // example, combining attributes `server.address`, `server.port`, and
3671 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3672 // Instrumentations that generate connection pool name following different
3673 // patterns SHOULD document it.
3674 //
3675 // Type: string
3676 // RequirementLevel: Recommended
3677 // Stability: Development
3678 //
3679 // Examples: "myDataSource"
3680 DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
3681
3682 // DBClientConnectionStateKey is the attribute Key conforming to the
3683 // "db.client.connection.state" semantic conventions. It represents the state of
3684 // a connection in the pool.
3685 //
3686 // Type: Enum
3687 // RequirementLevel: Recommended
3688 // Stability: Development
3689 //
3690 // Examples: "idle"
3691 DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
3692
3693 // DBCollectionNameKey is the attribute Key conforming to the
3694 // "db.collection.name" semantic conventions. It represents the name of a
3695 // collection (table, container) within the database.
3696 //
3697 // Type: string
3698 // RequirementLevel: Recommended
3699 // Stability: Stable
3700 //
3701 // Examples: "public.users", "customers"
3702 // Note: It is RECOMMENDED to capture the value as provided by the application
3703 // without attempting to do any case normalization.
3704 //
3705 // The collection name SHOULD NOT be extracted from `db.query.text`,
3706 // when the database system supports query text with multiple collections
3707 // in non-batch operations.
3708 //
3709 // For batch operations, if the individual operations are known to have the same
3710 // collection name then that collection name SHOULD be used.
3711 DBCollectionNameKey = attribute.Key("db.collection.name")
3712
3713 // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
3714 // conventions. It represents the name of the database, fully qualified within
3715 // the server address and port.
3716 //
3717 // Type: string
3718 // RequirementLevel: Recommended
3719 // Stability: Stable
3720 //
3721 // Examples: "customers", "test.users"
3722 // Note: If a database system has multiple namespace components, they SHOULD be
3723 // concatenated from the most general to the most specific namespace component,
3724 // using `|` as a separator between the components. Any missing components (and
3725 // their associated separators) SHOULD be omitted.
3726 // Semantic conventions for individual database systems SHOULD document what
3727 // `db.namespace` means in the context of that system.
3728 // It is RECOMMENDED to capture the value as provided by the application without
3729 // attempting to do any case normalization.
3730 DBNamespaceKey = attribute.Key("db.namespace")
3731
3732 // DBOperationBatchSizeKey is the attribute Key conforming to the
3733 // "db.operation.batch.size" semantic conventions. It represents the number of
3734 // queries included in a batch operation.
3735 //
3736 // Type: int
3737 // RequirementLevel: Recommended
3738 // Stability: Stable
3739 //
3740 // Examples: 2, 3, 4
3741 // Note: Operations are only considered batches when they contain two or more
3742 // operations, and so `db.operation.batch.size` SHOULD never be `1`.
3743 DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
3744
3745 // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
3746 // semantic conventions. It represents the name of the operation or command
3747 // being executed.
3748 //
3749 // Type: string
3750 // RequirementLevel: Recommended
3751 // Stability: Stable
3752 //
3753 // Examples: "findAndModify", "HMSET", "SELECT"
3754 // Note: It is RECOMMENDED to capture the value as provided by the application
3755 // without attempting to do any case normalization.
3756 //
3757 // The operation name SHOULD NOT be extracted from `db.query.text`,
3758 // when the database system supports query text with multiple operations
3759 // in non-batch operations.
3760 //
3761 // If spaces can occur in the operation name, multiple consecutive spaces
3762 // SHOULD be normalized to a single space.
3763 //
3764 // For batch operations, if the individual operations are known to have the same
3765 // operation name
3766 // then that operation name SHOULD be used prepended by `BATCH `,
3767 // otherwise `db.operation.name` SHOULD be `BATCH` or some other database
3768 // system specific term if more applicable.
3769 DBOperationNameKey = attribute.Key("db.operation.name")
3770
3771 // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary"
3772 // semantic conventions. It represents the low cardinality summary of a database
3773 // query.
3774 //
3775 // Type: string
3776 // RequirementLevel: Recommended
3777 // Stability: Stable
3778 //
3779 // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get
3780 // user by id"
3781 // Note: The query summary describes a class of database queries and is useful
3782 // as a grouping key, especially when analyzing telemetry for database
3783 // calls involving complex queries.
3784 //
3785 // Summary may be available to the instrumentation through
3786 // instrumentation hooks or other means. If it is not available,
3787 // instrumentations
3788 // that support query parsing SHOULD generate a summary following
3789 // [Generating query summary]
3790 // section.
3791 //
3792 // [Generating query summary]: /docs/database/database-spans.md#generating-a-summary-of-the-query
3793 DBQuerySummaryKey = attribute.Key("db.query.summary")
3794
3795 // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
3796 // semantic conventions. It represents the database query being executed.
3797 //
3798 // Type: string
3799 // RequirementLevel: Recommended
3800 // Stability: Stable
3801 //
3802 // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?"
3803 // Note: For sanitization see [Sanitization of `db.query.text`].
3804 // For batch operations, if the individual operations are known to have the same
3805 // query text then that query text SHOULD be used, otherwise all of the
3806 // individual query texts SHOULD be concatenated with separator `; ` or some
3807 // other database system specific separator if more applicable.
3808 // Parameterized query text SHOULD NOT be sanitized. Even though parameterized
3809 // query text can potentially have sensitive data, by using a parameterized
3810 // query the user is giving a strong signal that any sensitive data will be
3811 // passed as parameter values, and the benefit to observability of capturing the
3812 // static part of the query text by default outweighs the risk.
3813 //
3814 // [Sanitization of `db.query.text`]: /docs/database/database-spans.md#sanitization-of-dbquerytext
3815 DBQueryTextKey = attribute.Key("db.query.text")
3816
3817 // DBResponseReturnedRowsKey is the attribute Key conforming to the
3818 // "db.response.returned_rows" semantic conventions. It represents the number of
3819 // rows returned by the operation.
3820 //
3821 // Type: int
3822 // RequirementLevel: Recommended
3823 // Stability: Development
3824 //
3825 // Examples: 10, 30, 1000
3826 DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows")
3827
3828 // DBResponseStatusCodeKey is the attribute Key conforming to the
3829 // "db.response.status_code" semantic conventions. It represents the database
3830 // response status code.
3831 //
3832 // Type: string
3833 // RequirementLevel: Recommended
3834 // Stability: Stable
3835 //
3836 // Examples: "102", "ORA-17002", "08P01", "404"
3837 // Note: The status code returned by the database. Usually it represents an
3838 // error code, but may also represent partial success, warning, or differentiate
3839 // between various types of successful outcomes.
3840 // Semantic conventions for individual database systems SHOULD document what
3841 // `db.response.status_code` means in the context of that system.
3842 DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
3843
3844 // DBStoredProcedureNameKey is the attribute Key conforming to the
3845 // "db.stored_procedure.name" semantic conventions. It represents the name of a
3846 // stored procedure within the database.
3847 //
3848 // Type: string
3849 // RequirementLevel: Recommended
3850 // Stability: Stable
3851 //
3852 // Examples: "GetCustomer"
3853 // Note: It is RECOMMENDED to capture the value as provided by the application
3854 // without attempting to do any case normalization.
3855 //
3856 // For batch operations, if the individual operations are known to have the same
3857 // stored procedure name then that stored procedure name SHOULD be used.
3858 DBStoredProcedureNameKey = attribute.Key("db.stored_procedure.name")
3859
3860 // DBSystemNameKey is the attribute Key conforming to the "db.system.name"
3861 // semantic conventions. It represents the database management system (DBMS)
3862 // product as identified by the client instrumentation.
3863 //
3864 // Type: Enum
3865 // RequirementLevel: Recommended
3866 // Stability: Stable
3867 //
3868 // Examples:
3869 // Note: The actual DBMS may differ from the one identified by the client. For
3870 // example, when using PostgreSQL client libraries to connect to a CockroachDB,
3871 // the `db.system.name` is set to `postgresql` based on the instrumentation's
3872 // best knowledge.
3873 DBSystemNameKey = attribute.Key("db.system.name")
3874 )
3875
3876 // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
3877 // "db.client.connection.pool.name" semantic conventions. It represents the name
3878 // of the connection pool; unique within the instrumented application. In case
3879 // the connection pool implementation doesn't provide a name, instrumentation
3880 // SHOULD use a combination of parameters that would make the name unique, for
3881 // example, combining attributes `server.address`, `server.port`, and
3882 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3883 // Instrumentations that generate connection pool name following different
3884 // patterns SHOULD document it.
3885 func DBClientConnectionPoolName(val string) attribute.KeyValue {
3886 return DBClientConnectionPoolNameKey.String(val)
3887 }
3888
3889 // DBCollectionName returns an attribute KeyValue conforming to the
3890 // "db.collection.name" semantic conventions. It represents the name of a
3891 // collection (table, container) within the database.
3892 func DBCollectionName(val string) attribute.KeyValue {
3893 return DBCollectionNameKey.String(val)
3894 }
3895
3896 // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
3897 // semantic conventions. It represents the name of the database, fully qualified
3898 // within the server address and port.
3899 func DBNamespace(val string) attribute.KeyValue {
3900 return DBNamespaceKey.String(val)
3901 }
3902
3903 // DBOperationBatchSize returns an attribute KeyValue conforming to the
3904 // "db.operation.batch.size" semantic conventions. It represents the number of
3905 // queries included in a batch operation.
3906 func DBOperationBatchSize(val int) attribute.KeyValue {
3907 return DBOperationBatchSizeKey.Int(val)
3908 }
3909
3910 // DBOperationName returns an attribute KeyValue conforming to the
3911 // "db.operation.name" semantic conventions. It represents the name of the
3912 // operation or command being executed.
3913 func DBOperationName(val string) attribute.KeyValue {
3914 return DBOperationNameKey.String(val)
3915 }
3916
3917 // DBOperationParameter returns an attribute KeyValue conforming to the
3918 // "db.operation.parameter" semantic conventions. It represents a database
3919 // operation parameter, with `<key>` being the parameter name, and the attribute
3920 // value being a string representation of the parameter value.
3921 func DBOperationParameter(key string, val string) attribute.KeyValue {
3922 return attribute.String("db.operation.parameter."+key, val)
3923 }
3924
3925 // DBQueryParameter returns an attribute KeyValue conforming to the
3926 // "db.query.parameter" semantic conventions. It represents a database query
3927 // parameter, with `<key>` being the parameter name, and the attribute value
3928 // being a string representation of the parameter value.
3929 func DBQueryParameter(key string, val string) attribute.KeyValue {
3930 return attribute.String("db.query.parameter."+key, val)
3931 }
3932
3933 // DBQuerySummary returns an attribute KeyValue conforming to the
3934 // "db.query.summary" semantic conventions. It represents the low cardinality
3935 // summary of a database query.
3936 func DBQuerySummary(val string) attribute.KeyValue {
3937 return DBQuerySummaryKey.String(val)
3938 }
3939
3940 // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
3941 // semantic conventions. It represents the database query being executed.
3942 func DBQueryText(val string) attribute.KeyValue {
3943 return DBQueryTextKey.String(val)
3944 }
3945
3946 // DBResponseReturnedRows returns an attribute KeyValue conforming to the
3947 // "db.response.returned_rows" semantic conventions. It represents the number of
3948 // rows returned by the operation.
3949 func DBResponseReturnedRows(val int) attribute.KeyValue {
3950 return DBResponseReturnedRowsKey.Int(val)
3951 }
3952
3953 // DBResponseStatusCode returns an attribute KeyValue conforming to the
3954 // "db.response.status_code" semantic conventions. It represents the database
3955 // response status code.
3956 func DBResponseStatusCode(val string) attribute.KeyValue {
3957 return DBResponseStatusCodeKey.String(val)
3958 }
3959
3960 // DBStoredProcedureName returns an attribute KeyValue conforming to the
3961 // "db.stored_procedure.name" semantic conventions. It represents the name of a
3962 // stored procedure within the database.
3963 func DBStoredProcedureName(val string) attribute.KeyValue {
3964 return DBStoredProcedureNameKey.String(val)
3965 }
3966
3967 // Enum values for db.client.connection.state
3968 var (
3969 // idle
3970 // Stability: development
3971 DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
3972 // used
3973 // Stability: development
3974 DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
3975 )
3976
3977 // Enum values for db.system.name
3978 var (
3979 // Some other SQL database. Fallback only.
3980 // Stability: development
3981 DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql")
3982 // [Adabas (Adaptable Database System)]
3983 // Stability: development
3984 //
3985 // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas
3986 DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas")
3987 // [Actian Ingres]
3988 // Stability: development
3989 //
3990 // [Actian Ingres]: https://www.actian.com/databases/ingres/
3991 DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres")
3992 // [Amazon DynamoDB]
3993 // Stability: development
3994 //
3995 // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/
3996 DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb")
3997 // [Amazon Redshift]
3998 // Stability: development
3999 //
4000 // [Amazon Redshift]: https://aws.amazon.com/redshift/
4001 DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift")
4002 // [Azure Cosmos DB]
4003 // Stability: development
4004 //
4005 // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db
4006 DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb")
4007 // [InterSystems Caché]
4008 // Stability: development
4009 //
4010 // [InterSystems Caché]: https://www.intersystems.com/products/cache/
4011 DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache")
4012 // [Apache Cassandra]
4013 // Stability: development
4014 //
4015 // [Apache Cassandra]: https://cassandra.apache.org/
4016 DBSystemNameCassandra = DBSystemNameKey.String("cassandra")
4017 // [ClickHouse]
4018 // Stability: development
4019 //
4020 // [ClickHouse]: https://clickhouse.com/
4021 DBSystemNameClickHouse = DBSystemNameKey.String("clickhouse")
4022 // [CockroachDB]
4023 // Stability: development
4024 //
4025 // [CockroachDB]: https://www.cockroachlabs.com/
4026 DBSystemNameCockroachDB = DBSystemNameKey.String("cockroachdb")
4027 // [Couchbase]
4028 // Stability: development
4029 //
4030 // [Couchbase]: https://www.couchbase.com/
4031 DBSystemNameCouchbase = DBSystemNameKey.String("couchbase")
4032 // [Apache CouchDB]
4033 // Stability: development
4034 //
4035 // [Apache CouchDB]: https://couchdb.apache.org/
4036 DBSystemNameCouchDB = DBSystemNameKey.String("couchdb")
4037 // [Apache Derby]
4038 // Stability: development
4039 //
4040 // [Apache Derby]: https://db.apache.org/derby/
4041 DBSystemNameDerby = DBSystemNameKey.String("derby")
4042 // [Elasticsearch]
4043 // Stability: development
4044 //
4045 // [Elasticsearch]: https://www.elastic.co/elasticsearch
4046 DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch")
4047 // [Firebird]
4048 // Stability: development
4049 //
4050 // [Firebird]: https://www.firebirdsql.org/
4051 DBSystemNameFirebirdSQL = DBSystemNameKey.String("firebirdsql")
4052 // [Google Cloud Spanner]
4053 // Stability: development
4054 //
4055 // [Google Cloud Spanner]: https://cloud.google.com/spanner
4056 DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner")
4057 // [Apache Geode]
4058 // Stability: development
4059 //
4060 // [Apache Geode]: https://geode.apache.org/
4061 DBSystemNameGeode = DBSystemNameKey.String("geode")
4062 // [H2 Database]
4063 // Stability: development
4064 //
4065 // [H2 Database]: https://h2database.com/
4066 DBSystemNameH2database = DBSystemNameKey.String("h2database")
4067 // [Apache HBase]
4068 // Stability: development
4069 //
4070 // [Apache HBase]: https://hbase.apache.org/
4071 DBSystemNameHBase = DBSystemNameKey.String("hbase")
4072 // [Apache Hive]
4073 // Stability: development
4074 //
4075 // [Apache Hive]: https://hive.apache.org/
4076 DBSystemNameHive = DBSystemNameKey.String("hive")
4077 // [HyperSQL Database]
4078 // Stability: development
4079 //
4080 // [HyperSQL Database]: https://hsqldb.org/
4081 DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb")
4082 // [IBM Db2]
4083 // Stability: development
4084 //
4085 // [IBM Db2]: https://www.ibm.com/db2
4086 DBSystemNameIBMDB2 = DBSystemNameKey.String("ibm.db2")
4087 // [IBM Informix]
4088 // Stability: development
4089 //
4090 // [IBM Informix]: https://www.ibm.com/products/informix
4091 DBSystemNameIBMInformix = DBSystemNameKey.String("ibm.informix")
4092 // [IBM Netezza]
4093 // Stability: development
4094 //
4095 // [IBM Netezza]: https://www.ibm.com/products/netezza
4096 DBSystemNameIBMNetezza = DBSystemNameKey.String("ibm.netezza")
4097 // [InfluxDB]
4098 // Stability: development
4099 //
4100 // [InfluxDB]: https://www.influxdata.com/
4101 DBSystemNameInfluxDB = DBSystemNameKey.String("influxdb")
4102 // [Instant]
4103 // Stability: development
4104 //
4105 // [Instant]: https://www.instantdb.com/
4106 DBSystemNameInstantDB = DBSystemNameKey.String("instantdb")
4107 // [MariaDB]
4108 // Stability: stable
4109 //
4110 // [MariaDB]: https://mariadb.org/
4111 DBSystemNameMariaDB = DBSystemNameKey.String("mariadb")
4112 // [Memcached]
4113 // Stability: development
4114 //
4115 // [Memcached]: https://memcached.org/
4116 DBSystemNameMemcached = DBSystemNameKey.String("memcached")
4117 // [MongoDB]
4118 // Stability: development
4119 //
4120 // [MongoDB]: https://www.mongodb.com/
4121 DBSystemNameMongoDB = DBSystemNameKey.String("mongodb")
4122 // [Microsoft SQL Server]
4123 // Stability: stable
4124 //
4125 // [Microsoft SQL Server]: https://www.microsoft.com/sql-server
4126 DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server")
4127 // [MySQL]
4128 // Stability: stable
4129 //
4130 // [MySQL]: https://www.mysql.com/
4131 DBSystemNameMySQL = DBSystemNameKey.String("mysql")
4132 // [Neo4j]
4133 // Stability: development
4134 //
4135 // [Neo4j]: https://neo4j.com/
4136 DBSystemNameNeo4j = DBSystemNameKey.String("neo4j")
4137 // [OpenSearch]
4138 // Stability: development
4139 //
4140 // [OpenSearch]: https://opensearch.org/
4141 DBSystemNameOpenSearch = DBSystemNameKey.String("opensearch")
4142 // [Oracle Database]
4143 // Stability: development
4144 //
4145 // [Oracle Database]: https://www.oracle.com/database/
4146 DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db")
4147 // [PostgreSQL]
4148 // Stability: stable
4149 //
4150 // [PostgreSQL]: https://www.postgresql.org/
4151 DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql")
4152 // [Redis]
4153 // Stability: development
4154 //
4155 // [Redis]: https://redis.io/
4156 DBSystemNameRedis = DBSystemNameKey.String("redis")
4157 // [SAP HANA]
4158 // Stability: development
4159 //
4160 // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html
4161 DBSystemNameSAPHANA = DBSystemNameKey.String("sap.hana")
4162 // [SAP MaxDB]
4163 // Stability: development
4164 //
4165 // [SAP MaxDB]: https://maxdb.sap.com/
4166 DBSystemNameSAPMaxDB = DBSystemNameKey.String("sap.maxdb")
4167 // [SQLite]
4168 // Stability: development
4169 //
4170 // [SQLite]: https://www.sqlite.org/
4171 DBSystemNameSQLite = DBSystemNameKey.String("sqlite")
4172 // [Teradata]
4173 // Stability: development
4174 //
4175 // [Teradata]: https://www.teradata.com/
4176 DBSystemNameTeradata = DBSystemNameKey.String("teradata")
4177 // [Trino]
4178 // Stability: development
4179 //
4180 // [Trino]: https://trino.io/
4181 DBSystemNameTrino = DBSystemNameKey.String("trino")
4182 )
4183
4184 // Namespace: deployment
4185 const (
4186 // DeploymentEnvironmentNameKey is the attribute Key conforming to the
4187 // "deployment.environment.name" semantic conventions. It represents the name of
4188 // the [deployment environment] (aka deployment tier).
4189 //
4190 // Type: string
4191 // RequirementLevel: Recommended
4192 // Stability: Development
4193 //
4194 // Examples: "staging", "production"
4195 // Note: `deployment.environment.name` does not affect the uniqueness
4196 // constraints defined through
4197 // the `service.namespace`, `service.name` and `service.instance.id` resource
4198 // attributes.
4199 // This implies that resources carrying the following attribute combinations
4200 // MUST be
4201 // considered to be identifying the same service:
4202 //
4203 // - `service.name=frontend`, `deployment.environment.name=production`
4204 // - `service.name=frontend`, `deployment.environment.name=staging`.
4205 //
4206 //
4207 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
4208 DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
4209
4210 // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
4211 // semantic conventions. It represents the id of the deployment.
4212 //
4213 // Type: string
4214 // RequirementLevel: Recommended
4215 // Stability: Development
4216 //
4217 // Examples: "1208"
4218 DeploymentIDKey = attribute.Key("deployment.id")
4219
4220 // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
4221 // semantic conventions. It represents the name of the deployment.
4222 //
4223 // Type: string
4224 // RequirementLevel: Recommended
4225 // Stability: Development
4226 //
4227 // Examples: "deploy my app", "deploy-frontend"
4228 DeploymentNameKey = attribute.Key("deployment.name")
4229
4230 // DeploymentStatusKey is the attribute Key conforming to the
4231 // "deployment.status" semantic conventions. It represents the status of the
4232 // deployment.
4233 //
4234 // Type: Enum
4235 // RequirementLevel: Recommended
4236 // Stability: Development
4237 //
4238 // Examples:
4239 DeploymentStatusKey = attribute.Key("deployment.status")
4240 )
4241
4242 // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
4243 // "deployment.environment.name" semantic conventions. It represents the name of
4244 // the [deployment environment] (aka deployment tier).
4245 //
4246 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
4247 func DeploymentEnvironmentName(val string) attribute.KeyValue {
4248 return DeploymentEnvironmentNameKey.String(val)
4249 }
4250
4251 // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
4252 // semantic conventions. It represents the id of the deployment.
4253 func DeploymentID(val string) attribute.KeyValue {
4254 return DeploymentIDKey.String(val)
4255 }
4256
4257 // DeploymentName returns an attribute KeyValue conforming to the
4258 // "deployment.name" semantic conventions. It represents the name of the
4259 // deployment.
4260 func DeploymentName(val string) attribute.KeyValue {
4261 return DeploymentNameKey.String(val)
4262 }
4263
4264 // Enum values for deployment.status
4265 var (
4266 // failed
4267 // Stability: development
4268 DeploymentStatusFailed = DeploymentStatusKey.String("failed")
4269 // succeeded
4270 // Stability: development
4271 DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
4272 )
4273
4274 // Namespace: destination
4275 const (
4276 // DestinationAddressKey is the attribute Key conforming to the
4277 // "destination.address" semantic conventions. It represents the destination
4278 // address - domain name if available without reverse DNS lookup; otherwise, IP
4279 // address or Unix domain socket name.
4280 //
4281 // Type: string
4282 // RequirementLevel: Recommended
4283 // Stability: Development
4284 //
4285 // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
4286 // Note: When observed from the source side, and when communicating through an
4287 // intermediary, `destination.address` SHOULD represent the destination address
4288 // behind any intermediaries, for example proxies, if it's available.
4289 DestinationAddressKey = attribute.Key("destination.address")
4290
4291 // DestinationPortKey is the attribute Key conforming to the "destination.port"
4292 // semantic conventions. It represents the destination port number.
4293 //
4294 // Type: int
4295 // RequirementLevel: Recommended
4296 // Stability: Development
4297 //
4298 // Examples: 3389, 2888
4299 DestinationPortKey = attribute.Key("destination.port")
4300 )
4301
4302 // DestinationAddress returns an attribute KeyValue conforming to the
4303 // "destination.address" semantic conventions. It represents the destination
4304 // address - domain name if available without reverse DNS lookup; otherwise, IP
4305 // address or Unix domain socket name.
4306 func DestinationAddress(val string) attribute.KeyValue {
4307 return DestinationAddressKey.String(val)
4308 }
4309
4310 // DestinationPort returns an attribute KeyValue conforming to the
4311 // "destination.port" semantic conventions. It represents the destination port
4312 // number.
4313 func DestinationPort(val int) attribute.KeyValue {
4314 return DestinationPortKey.Int(val)
4315 }
4316
4317 // Namespace: device
4318 const (
4319 // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
4320 // conventions. It represents a unique identifier representing the device.
4321 //
4322 // Type: string
4323 // RequirementLevel: Recommended
4324 // Stability: Development
4325 //
4326 // Examples: "123456789012345", "01:23:45:67:89:AB"
4327 // Note: Its value SHOULD be identical for all apps on a device and it SHOULD
4328 // NOT change if an app is uninstalled and re-installed.
4329 // However, it might be resettable by the user for all apps on a device.
4330 // Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) MAY be
4331 // used as values.
4332 //
4333 // More information about Android identifier best practices can be found in the
4334 // [Android user data IDs guide].
4335 //
4336 // > [!WARNING]> This attribute may contain sensitive (PII) information. Caution
4337 // > should be taken when storing personal data or anything which can identify a
4338 // > user. GDPR and data protection laws may apply,
4339 // > ensure you do your own due diligence.> Due to these reasons, this
4340 // > identifier is not recommended for consumer applications and will likely
4341 // > result in rejection from both Google Play and App Store.
4342 // > However, it may be appropriate for specific enterprise scenarios, such as
4343 // > kiosk devices or enterprise-managed devices, with appropriate compliance
4344 // > clearance.
4345 // > Any instrumentation providing this identifier MUST implement it as an
4346 // > opt-in feature.> See [`app.installation.id`]> for a more
4347 // > privacy-preserving alternative.
4348 //
4349 // [Android user data IDs guide]: https://developer.android.com/training/articles/user-data-ids
4350 // [`app.installation.id`]: /docs/registry/attributes/app.md#app-installation-id
4351 DeviceIDKey = attribute.Key("device.id")
4352
4353 // DeviceManufacturerKey is the attribute Key conforming to the
4354 // "device.manufacturer" semantic conventions. It represents the name of the
4355 // device manufacturer.
4356 //
4357 // Type: string
4358 // RequirementLevel: Recommended
4359 // Stability: Development
4360 //
4361 // Examples: "Apple", "Samsung"
4362 // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
4363 // hardcode the value `Apple`.
4364 //
4365 // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
4366 DeviceManufacturerKey = attribute.Key("device.manufacturer")
4367
4368 // DeviceModelIdentifierKey is the attribute Key conforming to the
4369 // "device.model.identifier" semantic conventions. It represents the model
4370 // identifier for the device.
4371 //
4372 // Type: string
4373 // RequirementLevel: Recommended
4374 // Stability: Development
4375 //
4376 // Examples: "iPhone3,4", "SM-G920F"
4377 // Note: It's recommended this value represents a machine-readable version of
4378 // the model identifier rather than the market or consumer-friendly name of the
4379 // device.
4380 DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
4381
4382 // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
4383 // semantic conventions. It represents the marketing name for the device model.
4384 //
4385 // Type: string
4386 // RequirementLevel: Recommended
4387 // Stability: Development
4388 //
4389 // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
4390 // Note: It's recommended this value represents a human-readable version of the
4391 // device model rather than a machine-readable alternative.
4392 DeviceModelNameKey = attribute.Key("device.model.name")
4393 )
4394
4395 // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
4396 // conventions. It represents a unique identifier representing the device.
4397 func DeviceID(val string) attribute.KeyValue {
4398 return DeviceIDKey.String(val)
4399 }
4400
4401 // DeviceManufacturer returns an attribute KeyValue conforming to the
4402 // "device.manufacturer" semantic conventions. It represents the name of the
4403 // device manufacturer.
4404 func DeviceManufacturer(val string) attribute.KeyValue {
4405 return DeviceManufacturerKey.String(val)
4406 }
4407
4408 // DeviceModelIdentifier returns an attribute KeyValue conforming to the
4409 // "device.model.identifier" semantic conventions. It represents the model
4410 // identifier for the device.
4411 func DeviceModelIdentifier(val string) attribute.KeyValue {
4412 return DeviceModelIdentifierKey.String(val)
4413 }
4414
4415 // DeviceModelName returns an attribute KeyValue conforming to the
4416 // "device.model.name" semantic conventions. It represents the marketing name for
4417 // the device model.
4418 func DeviceModelName(val string) attribute.KeyValue {
4419 return DeviceModelNameKey.String(val)
4420 }
4421
4422 // Namespace: disk
4423 const (
4424 // DiskIODirectionKey is the attribute Key conforming to the "disk.io.direction"
4425 // semantic conventions. It represents the disk IO operation direction.
4426 //
4427 // Type: Enum
4428 // RequirementLevel: Recommended
4429 // Stability: Development
4430 //
4431 // Examples: "read"
4432 DiskIODirectionKey = attribute.Key("disk.io.direction")
4433 )
4434
4435 // Enum values for disk.io.direction
4436 var (
4437 // read
4438 // Stability: development
4439 DiskIODirectionRead = DiskIODirectionKey.String("read")
4440 // write
4441 // Stability: development
4442 DiskIODirectionWrite = DiskIODirectionKey.String("write")
4443 )
4444
4445 // Namespace: dns
4446 const (
4447 // DNSAnswersKey is the attribute Key conforming to the "dns.answers" semantic
4448 // conventions. It represents the list of IPv4 or IPv6 addresses resolved during
4449 // DNS lookup.
4450 //
4451 // Type: string[]
4452 // RequirementLevel: Recommended
4453 // Stability: Development
4454 //
4455 // Examples: "10.0.0.1", "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
4456 DNSAnswersKey = attribute.Key("dns.answers")
4457
4458 // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
4459 // semantic conventions. It represents the name being queried.
4460 //
4461 // Type: string
4462 // RequirementLevel: Recommended
4463 // Stability: Development
4464 //
4465 // Examples: "www.example.com", "opentelemetry.io"
4466 // Note: If the name field contains non-printable characters (below 32 or above
4467 // 126), those characters should be represented as escaped base 10 integers
4468 // (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns,
4469 // and line feeds should be converted to \t, \r, and \n respectively.
4470 DNSQuestionNameKey = attribute.Key("dns.question.name")
4471 )
4472
4473 // DNSAnswers returns an attribute KeyValue conforming to the "dns.answers"
4474 // semantic conventions. It represents the list of IPv4 or IPv6 addresses
4475 // resolved during DNS lookup.
4476 func DNSAnswers(val ...string) attribute.KeyValue {
4477 return DNSAnswersKey.StringSlice(val)
4478 }
4479
4480 // DNSQuestionName returns an attribute KeyValue conforming to the
4481 // "dns.question.name" semantic conventions. It represents the name being
4482 // queried.
4483 func DNSQuestionName(val string) attribute.KeyValue {
4484 return DNSQuestionNameKey.String(val)
4485 }
4486
4487 // Namespace: elasticsearch
4488 const (
4489 // ElasticsearchNodeNameKey is the attribute Key conforming to the
4490 // "elasticsearch.node.name" semantic conventions. It represents the represents
4491 // the human-readable identifier of the node/instance to which a request was
4492 // routed.
4493 //
4494 // Type: string
4495 // RequirementLevel: Recommended
4496 // Stability: Development
4497 //
4498 // Examples: "instance-0000000001"
4499 ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name")
4500 )
4501
4502 // ElasticsearchNodeName returns an attribute KeyValue conforming to the
4503 // "elasticsearch.node.name" semantic conventions. It represents the represents
4504 // the human-readable identifier of the node/instance to which a request was
4505 // routed.
4506 func ElasticsearchNodeName(val string) attribute.KeyValue {
4507 return ElasticsearchNodeNameKey.String(val)
4508 }
4509
4510 // Namespace: enduser
4511 const (
4512 // EnduserIDKey is the attribute Key conforming to the "enduser.id" semantic
4513 // conventions. It represents the unique identifier of an end user in the
4514 // system. It maybe a username, email address, or other identifier.
4515 //
4516 // Type: string
4517 // RequirementLevel: Recommended
4518 // Stability: Development
4519 //
4520 // Examples: "username"
4521 // Note: Unique identifier of an end user in the system.
4522 //
4523 // > [!Warning]
4524 // > This field contains sensitive (PII) information.
4525 EnduserIDKey = attribute.Key("enduser.id")
4526
4527 // EnduserPseudoIDKey is the attribute Key conforming to the "enduser.pseudo.id"
4528 // semantic conventions. It represents the pseudonymous identifier of an end
4529 // user. This identifier should be a random value that is not directly linked or
4530 // associated with the end user's actual identity.
4531 //
4532 // Type: string
4533 // RequirementLevel: Recommended
4534 // Stability: Development
4535 //
4536 // Examples: "QdH5CAWJgqVT4rOr0qtumf"
4537 // Note: Pseudonymous identifier of an end user.
4538 //
4539 // > [!Warning]
4540 // > This field contains sensitive (linkable PII) information.
4541 EnduserPseudoIDKey = attribute.Key("enduser.pseudo.id")
4542 )
4543
4544 // EnduserID returns an attribute KeyValue conforming to the "enduser.id"
4545 // semantic conventions. It represents the unique identifier of an end user in
4546 // the system. It maybe a username, email address, or other identifier.
4547 func EnduserID(val string) attribute.KeyValue {
4548 return EnduserIDKey.String(val)
4549 }
4550
4551 // EnduserPseudoID returns an attribute KeyValue conforming to the
4552 // "enduser.pseudo.id" semantic conventions. It represents the pseudonymous
4553 // identifier of an end user. This identifier should be a random value that is
4554 // not directly linked or associated with the end user's actual identity.
4555 func EnduserPseudoID(val string) attribute.KeyValue {
4556 return EnduserPseudoIDKey.String(val)
4557 }
4558
4559 // Namespace: error
4560 const (
4561 // ErrorMessageKey is the attribute Key conforming to the "error.message"
4562 // semantic conventions. It represents a message providing more detail about an
4563 // error in human-readable form.
4564 //
4565 // Type: string
4566 // RequirementLevel: Recommended
4567 // Stability: Development
4568 //
4569 // Examples: "Unexpected input type: string", "The user has exceeded their
4570 // storage quota"
4571 // Note: `error.message` should provide additional context and detail about an
4572 // error.
4573 // It is NOT RECOMMENDED to duplicate the value of `error.type` in
4574 // `error.message`.
4575 // It is also NOT RECOMMENDED to duplicate the value of `exception.message` in
4576 // `error.message`.
4577 //
4578 // `error.message` is NOT RECOMMENDED for metrics or spans due to its unbounded
4579 // cardinality and overlap with span status.
4580 ErrorMessageKey = attribute.Key("error.message")
4581
4582 // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
4583 // conventions. It represents the describes a class of error the operation ended
4584 // with.
4585 //
4586 // Type: Enum
4587 // RequirementLevel: Recommended
4588 // Stability: Stable
4589 //
4590 // Examples: "timeout", "java.net.UnknownHostException",
4591 // "server_certificate_invalid", "500"
4592 // Note: The `error.type` SHOULD be predictable, and SHOULD have low
4593 // cardinality.
4594 //
4595 // When `error.type` is set to a type (e.g., an exception type), its
4596 // canonical class name identifying the type within the artifact SHOULD be used.
4597 //
4598 // Instrumentations SHOULD document the list of errors they report.
4599 //
4600 // The cardinality of `error.type` within one instrumentation library SHOULD be
4601 // low.
4602 // Telemetry consumers that aggregate data from multiple instrumentation
4603 // libraries and applications
4604 // should be prepared for `error.type` to have high cardinality at query time
4605 // when no
4606 // additional filters are applied.
4607 //
4608 // If the operation has completed successfully, instrumentations SHOULD NOT set
4609 // `error.type`.
4610 //
4611 // If a specific domain defines its own set of error identifiers (such as HTTP
4612 // or gRPC status codes),
4613 // it's RECOMMENDED to:
4614 //
4615 // - Use a domain-specific attribute
4616 // - Set `error.type` to capture all errors, regardless of whether they are
4617 // defined within the domain-specific set or not.
4618 ErrorTypeKey = attribute.Key("error.type")
4619 )
4620
4621 // ErrorMessage returns an attribute KeyValue conforming to the "error.message"
4622 // semantic conventions. It represents a message providing more detail about an
4623 // error in human-readable form.
4624 func ErrorMessage(val string) attribute.KeyValue {
4625 return ErrorMessageKey.String(val)
4626 }
4627
4628 // Enum values for error.type
4629 var (
4630 // A fallback error value to be used when the instrumentation doesn't define a
4631 // custom value.
4632 //
4633 // Stability: stable
4634 ErrorTypeOther = ErrorTypeKey.String("_OTHER")
4635 )
4636
4637 // Namespace: exception
4638 const (
4639 // ExceptionMessageKey is the attribute Key conforming to the
4640 // "exception.message" semantic conventions. It represents the exception
4641 // message.
4642 //
4643 // Type: string
4644 // RequirementLevel: Recommended
4645 // Stability: Stable
4646 //
4647 // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
4648 ExceptionMessageKey = attribute.Key("exception.message")
4649
4650 // ExceptionStacktraceKey is the attribute Key conforming to the
4651 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4652 // string in the natural representation for the language runtime. The
4653 // representation is to be determined and documented by each language SIG.
4654 //
4655 // Type: string
4656 // RequirementLevel: Recommended
4657 // Stability: Stable
4658 //
4659 // Examples: Exception in thread "main" java.lang.RuntimeException: Test
4660 // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
4661 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
4662 // com.example.GenerateTrace.main(GenerateTrace.java:5)
4663 ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
4664
4665 // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
4666 // semantic conventions. It represents the type of the exception (its
4667 // fully-qualified class name, if applicable). The dynamic type of the exception
4668 // should be preferred over the static type in languages that support it.
4669 //
4670 // Type: string
4671 // RequirementLevel: Recommended
4672 // Stability: Stable
4673 //
4674 // Examples: "java.net.ConnectException", "OSError"
4675 ExceptionTypeKey = attribute.Key("exception.type")
4676 )
4677
4678 // ExceptionMessage returns an attribute KeyValue conforming to the
4679 // "exception.message" semantic conventions. It represents the exception message.
4680 func ExceptionMessage(val string) attribute.KeyValue {
4681 return ExceptionMessageKey.String(val)
4682 }
4683
4684 // ExceptionStacktrace returns an attribute KeyValue conforming to the
4685 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4686 // string in the natural representation for the language runtime. The
4687 // representation is to be determined and documented by each language SIG.
4688 func ExceptionStacktrace(val string) attribute.KeyValue {
4689 return ExceptionStacktraceKey.String(val)
4690 }
4691
4692 // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
4693 // semantic conventions. It represents the type of the exception (its
4694 // fully-qualified class name, if applicable). The dynamic type of the exception
4695 // should be preferred over the static type in languages that support it.
4696 func ExceptionType(val string) attribute.KeyValue {
4697 return ExceptionTypeKey.String(val)
4698 }
4699
4700 // Namespace: faas
4701 const (
4702 // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
4703 // semantic conventions. It represents a boolean that is true if the serverless
4704 // function is executed for the first time (aka cold-start).
4705 //
4706 // Type: boolean
4707 // RequirementLevel: Recommended
4708 // Stability: Development
4709 //
4710 // Examples:
4711 FaaSColdstartKey = attribute.Key("faas.coldstart")
4712
4713 // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
4714 // conventions. It represents a string containing the schedule period as
4715 // [Cron Expression].
4716 //
4717 // Type: string
4718 // RequirementLevel: Recommended
4719 // Stability: Development
4720 //
4721 // Examples: 0/5 * * * ? *
4722 //
4723 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4724 FaaSCronKey = attribute.Key("faas.cron")
4725
4726 // FaaSDocumentCollectionKey is the attribute Key conforming to the
4727 // "faas.document.collection" semantic conventions. It represents the name of
4728 // the source on which the triggering operation was performed. For example, in
4729 // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
4730 // database name.
4731 //
4732 // Type: string
4733 // RequirementLevel: Recommended
4734 // Stability: Development
4735 //
4736 // Examples: "myBucketName", "myDbName"
4737 FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
4738
4739 // FaaSDocumentNameKey is the attribute Key conforming to the
4740 // "faas.document.name" semantic conventions. It represents the document
4741 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4742 // the name of the file, and in Cosmos DB the table name.
4743 //
4744 // Type: string
4745 // RequirementLevel: Recommended
4746 // Stability: Development
4747 //
4748 // Examples: "myFile.txt", "myTableName"
4749 FaaSDocumentNameKey = attribute.Key("faas.document.name")
4750
4751 // FaaSDocumentOperationKey is the attribute Key conforming to the
4752 // "faas.document.operation" semantic conventions. It represents the describes
4753 // the type of the operation that was performed on the data.
4754 //
4755 // Type: Enum
4756 // RequirementLevel: Recommended
4757 // Stability: Development
4758 //
4759 // Examples:
4760 FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
4761
4762 // FaaSDocumentTimeKey is the attribute Key conforming to the
4763 // "faas.document.time" semantic conventions. It represents a string containing
4764 // the time when the data was accessed in the [ISO 8601] format expressed in
4765 // [UTC].
4766 //
4767 // Type: string
4768 // RequirementLevel: Recommended
4769 // Stability: Development
4770 //
4771 // Examples: 2020-01-23T13:47:06Z
4772 //
4773 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4774 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4775 FaaSDocumentTimeKey = attribute.Key("faas.document.time")
4776
4777 // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
4778 // semantic conventions. It represents the execution environment ID as a string,
4779 // that will be potentially reused for other invocations to the same
4780 // function/function version.
4781 //
4782 // Type: string
4783 // RequirementLevel: Recommended
4784 // Stability: Development
4785 //
4786 // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
4787 // Note: - **AWS Lambda:** Use the (full) log stream name.
4788 FaaSInstanceKey = attribute.Key("faas.instance")
4789
4790 // FaaSInvocationIDKey is the attribute Key conforming to the
4791 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4792 // the current function invocation.
4793 //
4794 // Type: string
4795 // RequirementLevel: Recommended
4796 // Stability: Development
4797 //
4798 // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
4799 FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
4800
4801 // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
4802 // semantic conventions. It represents the name of the invoked function.
4803 //
4804 // Type: string
4805 // RequirementLevel: Recommended
4806 // Stability: Development
4807 //
4808 // Examples: my-function
4809 // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
4810 // function.
4811 FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
4812
4813 // FaaSInvokedProviderKey is the attribute Key conforming to the
4814 // "faas.invoked_provider" semantic conventions. It represents the cloud
4815 // provider of the invoked function.
4816 //
4817 // Type: Enum
4818 // RequirementLevel: Recommended
4819 // Stability: Development
4820 //
4821 // Examples:
4822 // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
4823 // invoked function.
4824 FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
4825
4826 // FaaSInvokedRegionKey is the attribute Key conforming to the
4827 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4828 // the invoked function.
4829 //
4830 // Type: string
4831 // RequirementLevel: Recommended
4832 // Stability: Development
4833 //
4834 // Examples: eu-central-1
4835 // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
4836 // function.
4837 FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
4838
4839 // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
4840 // semantic conventions. It represents the amount of memory available to the
4841 // serverless function converted to Bytes.
4842 //
4843 // Type: int
4844 // RequirementLevel: Recommended
4845 // Stability: Development
4846 //
4847 // Note: It's recommended to set this attribute since e.g. too little memory can
4848 // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
4849 // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
4850 // information (which must be multiplied by 1,048,576).
4851 FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
4852
4853 // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
4854 // conventions. It represents the name of the single function that this runtime
4855 // instance executes.
4856 //
4857 // Type: string
4858 // RequirementLevel: Recommended
4859 // Stability: Development
4860 //
4861 // Examples: "my-function", "myazurefunctionapp/some-function-name"
4862 // Note: This is the name of the function as configured/deployed on the FaaS
4863 // platform and is usually different from the name of the callback
4864 // function (which may be stored in the
4865 // [`code.namespace`/`code.function.name`]
4866 // span attributes).
4867 //
4868 // For some cloud providers, the above definition is ambiguous. The following
4869 // definition of function name MUST be used for this attribute
4870 // (and consequently the span name) for the listed cloud providers/products:
4871 //
4872 // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
4873 // followed by a forward slash followed by the function name (this form
4874 // can also be seen in the resource JSON for the function).
4875 // This means that a span attribute MUST be used, as an Azure function
4876 // app can host multiple functions that would usually share
4877 // a TracerProvider (see also the `cloud.resource_id` attribute).
4878 //
4879 //
4880 // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes
4881 FaaSNameKey = attribute.Key("faas.name")
4882
4883 // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
4884 // conventions. It represents a string containing the function invocation time
4885 // in the [ISO 8601] format expressed in [UTC].
4886 //
4887 // Type: string
4888 // RequirementLevel: Recommended
4889 // Stability: Development
4890 //
4891 // Examples: 2020-01-23T13:47:06Z
4892 //
4893 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4894 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4895 FaaSTimeKey = attribute.Key("faas.time")
4896
4897 // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
4898 // conventions. It represents the type of the trigger which caused this function
4899 // invocation.
4900 //
4901 // Type: Enum
4902 // RequirementLevel: Recommended
4903 // Stability: Development
4904 //
4905 // Examples:
4906 FaaSTriggerKey = attribute.Key("faas.trigger")
4907
4908 // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
4909 // conventions. It represents the immutable version of the function being
4910 // executed.
4911 //
4912 // Type: string
4913 // RequirementLevel: Recommended
4914 // Stability: Development
4915 //
4916 // Examples: "26", "pinkfroid-00002"
4917 // Note: Depending on the cloud provider and platform, use:
4918 //
4919 // - **AWS Lambda:** The [function version]
4920 // (an integer represented as a decimal string).
4921 // - **Google Cloud Run (Services):** The [revision]
4922 // (i.e., the function name plus the revision suffix).
4923 // - **Google Cloud Functions:** The value of the
4924 // [`K_REVISION` environment variable].
4925 // - **Azure Functions:** Not applicable. Do not set this attribute.
4926 //
4927 //
4928 // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
4929 // [revision]: https://cloud.google.com/run/docs/managing/revisions
4930 // [`K_REVISION` environment variable]: https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically
4931 FaaSVersionKey = attribute.Key("faas.version")
4932 )
4933
4934 // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
4935 // semantic conventions. It represents a boolean that is true if the serverless
4936 // function is executed for the first time (aka cold-start).
4937 func FaaSColdstart(val bool) attribute.KeyValue {
4938 return FaaSColdstartKey.Bool(val)
4939 }
4940
4941 // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
4942 // conventions. It represents a string containing the schedule period as
4943 // [Cron Expression].
4944 //
4945 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4946 func FaaSCron(val string) attribute.KeyValue {
4947 return FaaSCronKey.String(val)
4948 }
4949
4950 // FaaSDocumentCollection returns an attribute KeyValue conforming to the
4951 // "faas.document.collection" semantic conventions. It represents the name of the
4952 // source on which the triggering operation was performed. For example, in Cloud
4953 // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
4954 // name.
4955 func FaaSDocumentCollection(val string) attribute.KeyValue {
4956 return FaaSDocumentCollectionKey.String(val)
4957 }
4958
4959 // FaaSDocumentName returns an attribute KeyValue conforming to the
4960 // "faas.document.name" semantic conventions. It represents the document
4961 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4962 // the name of the file, and in Cosmos DB the table name.
4963 func FaaSDocumentName(val string) attribute.KeyValue {
4964 return FaaSDocumentNameKey.String(val)
4965 }
4966
4967 // FaaSDocumentTime returns an attribute KeyValue conforming to the
4968 // "faas.document.time" semantic conventions. It represents a string containing
4969 // the time when the data was accessed in the [ISO 8601] format expressed in
4970 // [UTC].
4971 //
4972 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4973 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4974 func FaaSDocumentTime(val string) attribute.KeyValue {
4975 return FaaSDocumentTimeKey.String(val)
4976 }
4977
4978 // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
4979 // semantic conventions. It represents the execution environment ID as a string,
4980 // that will be potentially reused for other invocations to the same
4981 // function/function version.
4982 func FaaSInstance(val string) attribute.KeyValue {
4983 return FaaSInstanceKey.String(val)
4984 }
4985
4986 // FaaSInvocationID returns an attribute KeyValue conforming to the
4987 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4988 // the current function invocation.
4989 func FaaSInvocationID(val string) attribute.KeyValue {
4990 return FaaSInvocationIDKey.String(val)
4991 }
4992
4993 // FaaSInvokedName returns an attribute KeyValue conforming to the
4994 // "faas.invoked_name" semantic conventions. It represents the name of the
4995 // invoked function.
4996 func FaaSInvokedName(val string) attribute.KeyValue {
4997 return FaaSInvokedNameKey.String(val)
4998 }
4999
5000 // FaaSInvokedRegion returns an attribute KeyValue conforming to the
5001 // "faas.invoked_region" semantic conventions. It represents the cloud region of
5002 // the invoked function.
5003 func FaaSInvokedRegion(val string) attribute.KeyValue {
5004 return FaaSInvokedRegionKey.String(val)
5005 }
5006
5007 // FaaSMaxMemory returns an attribute KeyValue conforming to the
5008 // "faas.max_memory" semantic conventions. It represents the amount of memory
5009 // available to the serverless function converted to Bytes.
5010 func FaaSMaxMemory(val int) attribute.KeyValue {
5011 return FaaSMaxMemoryKey.Int(val)
5012 }
5013
5014 // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
5015 // conventions. It represents the name of the single function that this runtime
5016 // instance executes.
5017 func FaaSName(val string) attribute.KeyValue {
5018 return FaaSNameKey.String(val)
5019 }
5020
5021 // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
5022 // conventions. It represents a string containing the function invocation time in
5023 // the [ISO 8601] format expressed in [UTC].
5024 //
5025 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
5026 // [UTC]: https://www.w3.org/TR/NOTE-datetime
5027 func FaaSTime(val string) attribute.KeyValue {
5028 return FaaSTimeKey.String(val)
5029 }
5030
5031 // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
5032 // semantic conventions. It represents the immutable version of the function
5033 // being executed.
5034 func FaaSVersion(val string) attribute.KeyValue {
5035 return FaaSVersionKey.String(val)
5036 }
5037
5038 // Enum values for faas.document.operation
5039 var (
5040 // When a new object is created.
5041 // Stability: development
5042 FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
5043 // When an object is modified.
5044 // Stability: development
5045 FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
5046 // When an object is deleted.
5047 // Stability: development
5048 FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
5049 )
5050
5051 // Enum values for faas.invoked_provider
5052 var (
5053 // Alibaba Cloud
5054 // Stability: development
5055 FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
5056 // Amazon Web Services
5057 // Stability: development
5058 FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
5059 // Microsoft Azure
5060 // Stability: development
5061 FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
5062 // Google Cloud Platform
5063 // Stability: development
5064 FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
5065 // Tencent Cloud
5066 // Stability: development
5067 FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
5068 )
5069
5070 // Enum values for faas.trigger
5071 var (
5072 // A response to some data source operation such as a database or filesystem
5073 // read/write
5074 // Stability: development
5075 FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
5076 // To provide an answer to an inbound HTTP request
5077 // Stability: development
5078 FaaSTriggerHTTP = FaaSTriggerKey.String("http")
5079 // A function is set to be executed when messages are sent to a messaging system
5080 // Stability: development
5081 FaaSTriggerPubSub = FaaSTriggerKey.String("pubsub")
5082 // A function is scheduled to be executed regularly
5083 // Stability: development
5084 FaaSTriggerTimer = FaaSTriggerKey.String("timer")
5085 // If none of the others apply
5086 // Stability: development
5087 FaaSTriggerOther = FaaSTriggerKey.String("other")
5088 )
5089
5090 // Namespace: feature_flag
5091 const (
5092 // FeatureFlagContextIDKey is the attribute Key conforming to the
5093 // "feature_flag.context.id" semantic conventions. It represents the unique
5094 // identifier for the flag evaluation context. For example, the targeting key.
5095 //
5096 // Type: string
5097 // RequirementLevel: Recommended
5098 // Stability: Release_Candidate
5099 //
5100 // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db"
5101 FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id")
5102
5103 // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
5104 // semantic conventions. It represents the lookup key of the feature flag.
5105 //
5106 // Type: string
5107 // RequirementLevel: Recommended
5108 // Stability: Release_Candidate
5109 //
5110 // Examples: "logo-color"
5111 FeatureFlagKeyKey = attribute.Key("feature_flag.key")
5112
5113 // FeatureFlagProviderNameKey is the attribute Key conforming to the
5114 // "feature_flag.provider.name" semantic conventions. It represents the
5115 // identifies the feature flag provider.
5116 //
5117 // Type: string
5118 // RequirementLevel: Recommended
5119 // Stability: Release_Candidate
5120 //
5121 // Examples: "Flag Manager"
5122 FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider.name")
5123
5124 // FeatureFlagResultReasonKey is the attribute Key conforming to the
5125 // "feature_flag.result.reason" semantic conventions. It represents the reason
5126 // code which shows how a feature flag value was determined.
5127 //
5128 // Type: Enum
5129 // RequirementLevel: Recommended
5130 // Stability: Release_Candidate
5131 //
5132 // Examples: "static", "targeting_match", "error", "default"
5133 FeatureFlagResultReasonKey = attribute.Key("feature_flag.result.reason")
5134
5135 // FeatureFlagResultValueKey is the attribute Key conforming to the
5136 // "feature_flag.result.value" semantic conventions. It represents the evaluated
5137 // value of the feature flag.
5138 //
5139 // Type: any
5140 // RequirementLevel: Recommended
5141 // Stability: Release_Candidate
5142 //
5143 // Examples: "#ff0000", true, 3
5144 // Note: With some feature flag providers, feature flag results can be quite
5145 // large or contain private or sensitive details.
5146 // Because of this, `feature_flag.result.variant` is often the preferred
5147 // attribute if it is available.
5148 //
5149 // It may be desirable to redact or otherwise limit the size and scope of
5150 // `feature_flag.result.value` if possible.
5151 // Because the evaluated flag value is unstructured and may be any type, it is
5152 // left to the instrumentation author to determine how best to achieve this.
5153 FeatureFlagResultValueKey = attribute.Key("feature_flag.result.value")
5154
5155 // FeatureFlagResultVariantKey is the attribute Key conforming to the
5156 // "feature_flag.result.variant" semantic conventions. It represents a semantic
5157 // identifier for an evaluated flag value.
5158 //
5159 // Type: string
5160 // RequirementLevel: Recommended
5161 // Stability: Release_Candidate
5162 //
5163 // Examples: "red", "true", "on"
5164 // Note: A semantic identifier, commonly referred to as a variant, provides a
5165 // means
5166 // for referring to a value without including the value itself. This can
5167 // provide additional context for understanding the meaning behind a value.
5168 // For example, the variant `red` maybe be used for the value `#c05543`.
5169 FeatureFlagResultVariantKey = attribute.Key("feature_flag.result.variant")
5170
5171 // FeatureFlagSetIDKey is the attribute Key conforming to the
5172 // "feature_flag.set.id" semantic conventions. It represents the identifier of
5173 // the [flag set] to which the feature flag belongs.
5174 //
5175 // Type: string
5176 // RequirementLevel: Recommended
5177 // Stability: Release_Candidate
5178 //
5179 // Examples: "proj-1", "ab98sgs", "service1/dev"
5180 //
5181 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
5182 FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id")
5183
5184 // FeatureFlagVersionKey is the attribute Key conforming to the
5185 // "feature_flag.version" semantic conventions. It represents the version of the
5186 // ruleset used during the evaluation. This may be any stable value which
5187 // uniquely identifies the ruleset.
5188 //
5189 // Type: string
5190 // RequirementLevel: Recommended
5191 // Stability: Release_Candidate
5192 //
5193 // Examples: "1", "01ABCDEF"
5194 FeatureFlagVersionKey = attribute.Key("feature_flag.version")
5195 )
5196
5197 // FeatureFlagContextID returns an attribute KeyValue conforming to the
5198 // "feature_flag.context.id" semantic conventions. It represents the unique
5199 // identifier for the flag evaluation context. For example, the targeting key.
5200 func FeatureFlagContextID(val string) attribute.KeyValue {
5201 return FeatureFlagContextIDKey.String(val)
5202 }
5203
5204 // FeatureFlagKey returns an attribute KeyValue conforming to the
5205 // "feature_flag.key" semantic conventions. It represents the lookup key of the
5206 // feature flag.
5207 func FeatureFlagKey(val string) attribute.KeyValue {
5208 return FeatureFlagKeyKey.String(val)
5209 }
5210
5211 // FeatureFlagProviderName returns an attribute KeyValue conforming to the
5212 // "feature_flag.provider.name" semantic conventions. It represents the
5213 // identifies the feature flag provider.
5214 func FeatureFlagProviderName(val string) attribute.KeyValue {
5215 return FeatureFlagProviderNameKey.String(val)
5216 }
5217
5218 // FeatureFlagResultVariant returns an attribute KeyValue conforming to the
5219 // "feature_flag.result.variant" semantic conventions. It represents a semantic
5220 // identifier for an evaluated flag value.
5221 func FeatureFlagResultVariant(val string) attribute.KeyValue {
5222 return FeatureFlagResultVariantKey.String(val)
5223 }
5224
5225 // FeatureFlagSetID returns an attribute KeyValue conforming to the
5226 // "feature_flag.set.id" semantic conventions. It represents the identifier of
5227 // the [flag set] to which the feature flag belongs.
5228 //
5229 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
5230 func FeatureFlagSetID(val string) attribute.KeyValue {
5231 return FeatureFlagSetIDKey.String(val)
5232 }
5233
5234 // FeatureFlagVersion returns an attribute KeyValue conforming to the
5235 // "feature_flag.version" semantic conventions. It represents the version of the
5236 // ruleset used during the evaluation. This may be any stable value which
5237 // uniquely identifies the ruleset.
5238 func FeatureFlagVersion(val string) attribute.KeyValue {
5239 return FeatureFlagVersionKey.String(val)
5240 }
5241
5242 // Enum values for feature_flag.result.reason
5243 var (
5244 // The resolved value is static (no dynamic evaluation).
5245 // Stability: release_candidate
5246 FeatureFlagResultReasonStatic = FeatureFlagResultReasonKey.String("static")
5247 // The resolved value fell back to a pre-configured value (no dynamic evaluation
5248 // occurred or dynamic evaluation yielded no result).
5249 // Stability: release_candidate
5250 FeatureFlagResultReasonDefault = FeatureFlagResultReasonKey.String("default")
5251 // The resolved value was the result of a dynamic evaluation, such as a rule or
5252 // specific user-targeting.
5253 // Stability: release_candidate
5254 FeatureFlagResultReasonTargetingMatch = FeatureFlagResultReasonKey.String("targeting_match")
5255 // The resolved value was the result of pseudorandom assignment.
5256 // Stability: release_candidate
5257 FeatureFlagResultReasonSplit = FeatureFlagResultReasonKey.String("split")
5258 // The resolved value was retrieved from cache.
5259 // Stability: release_candidate
5260 FeatureFlagResultReasonCached = FeatureFlagResultReasonKey.String("cached")
5261 // The resolved value was the result of the flag being disabled in the
5262 // management system.
5263 // Stability: release_candidate
5264 FeatureFlagResultReasonDisabled = FeatureFlagResultReasonKey.String("disabled")
5265 // The reason for the resolved value could not be determined.
5266 // Stability: release_candidate
5267 FeatureFlagResultReasonUnknown = FeatureFlagResultReasonKey.String("unknown")
5268 // The resolved value is non-authoritative or possibly out of date
5269 // Stability: release_candidate
5270 FeatureFlagResultReasonStale = FeatureFlagResultReasonKey.String("stale")
5271 // The resolved value was the result of an error.
5272 // Stability: release_candidate
5273 FeatureFlagResultReasonError = FeatureFlagResultReasonKey.String("error")
5274 )
5275
5276 // Namespace: file
5277 const (
5278 // FileAccessedKey is the attribute Key conforming to the "file.accessed"
5279 // semantic conventions. It represents the time when the file was last accessed,
5280 // in ISO 8601 format.
5281 //
5282 // Type: string
5283 // RequirementLevel: Recommended
5284 // Stability: Development
5285 //
5286 // Examples: "2021-01-01T12:00:00Z"
5287 // Note: This attribute might not be supported by some file systems — NFS,
5288 // FAT32, in embedded OS, etc.
5289 FileAccessedKey = attribute.Key("file.accessed")
5290
5291 // FileAttributesKey is the attribute Key conforming to the "file.attributes"
5292 // semantic conventions. It represents the array of file attributes.
5293 //
5294 // Type: string[]
5295 // RequirementLevel: Recommended
5296 // Stability: Development
5297 //
5298 // Examples: "readonly", "hidden"
5299 // Note: Attributes names depend on the OS or file system. Here’s a
5300 // non-exhaustive list of values expected for this attribute: `archive`,
5301 // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
5302 // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
5303 // `write`.
5304 FileAttributesKey = attribute.Key("file.attributes")
5305
5306 // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
5307 // conventions. It represents the time when the file attributes or metadata was
5308 // last changed, in ISO 8601 format.
5309 //
5310 // Type: string
5311 // RequirementLevel: Recommended
5312 // Stability: Development
5313 //
5314 // Examples: "2021-01-01T12:00:00Z"
5315 // Note: `file.changed` captures the time when any of the file's properties or
5316 // attributes (including the content) are changed, while `file.modified`
5317 // captures the timestamp when the file content is modified.
5318 FileChangedKey = attribute.Key("file.changed")
5319
5320 // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
5321 // conventions. It represents the time when the file was created, in ISO 8601
5322 // format.
5323 //
5324 // Type: string
5325 // RequirementLevel: Recommended
5326 // Stability: Development
5327 //
5328 // Examples: "2021-01-01T12:00:00Z"
5329 // Note: This attribute might not be supported by some file systems — NFS,
5330 // FAT32, in embedded OS, etc.
5331 FileCreatedKey = attribute.Key("file.created")
5332
5333 // FileDirectoryKey is the attribute Key conforming to the "file.directory"
5334 // semantic conventions. It represents the directory where the file is located.
5335 // It should include the drive letter, when appropriate.
5336 //
5337 // Type: string
5338 // RequirementLevel: Recommended
5339 // Stability: Development
5340 //
5341 // Examples: "/home/user", "C:\Program Files\MyApp"
5342 FileDirectoryKey = attribute.Key("file.directory")
5343
5344 // FileExtensionKey is the attribute Key conforming to the "file.extension"
5345 // semantic conventions. It represents the file extension, excluding the leading
5346 // dot.
5347 //
5348 // Type: string
5349 // RequirementLevel: Recommended
5350 // Stability: Development
5351 //
5352 // Examples: "png", "gz"
5353 // Note: When the file name has multiple extensions (example.tar.gz), only the
5354 // last one should be captured ("gz", not "tar.gz").
5355 FileExtensionKey = attribute.Key("file.extension")
5356
5357 // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
5358 // semantic conventions. It represents the name of the fork. A fork is
5359 // additional data associated with a filesystem object.
5360 //
5361 // Type: string
5362 // RequirementLevel: Recommended
5363 // Stability: Development
5364 //
5365 // Examples: "Zone.Identifier"
5366 // Note: On Linux, a resource fork is used to store additional data with a
5367 // filesystem object. A file always has at least one fork for the data portion,
5368 // and additional forks may exist.
5369 // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
5370 // data stream for a file is just called $DATA. Zone.Identifier is commonly used
5371 // by Windows to track contents downloaded from the Internet. An ADS is
5372 // typically of the form: C:\path\to\filename.extension:some_fork_name, and
5373 // some_fork_name is the value that should populate `fork_name`.
5374 // `filename.extension` should populate `file.name`, and `extension` should
5375 // populate `file.extension`. The full path, `file.path`, will include the fork
5376 // name.
5377 FileForkNameKey = attribute.Key("file.fork_name")
5378
5379 // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
5380 // semantic conventions. It represents the primary Group ID (GID) of the file.
5381 //
5382 // Type: string
5383 // RequirementLevel: Recommended
5384 // Stability: Development
5385 //
5386 // Examples: "1000"
5387 FileGroupIDKey = attribute.Key("file.group.id")
5388
5389 // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
5390 // semantic conventions. It represents the primary group name of the file.
5391 //
5392 // Type: string
5393 // RequirementLevel: Recommended
5394 // Stability: Development
5395 //
5396 // Examples: "users"
5397 FileGroupNameKey = attribute.Key("file.group.name")
5398
5399 // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
5400 // conventions. It represents the inode representing the file in the filesystem.
5401 //
5402 // Type: string
5403 // RequirementLevel: Recommended
5404 // Stability: Development
5405 //
5406 // Examples: "256383"
5407 FileInodeKey = attribute.Key("file.inode")
5408
5409 // FileModeKey is the attribute Key conforming to the "file.mode" semantic
5410 // conventions. It represents the mode of the file in octal representation.
5411 //
5412 // Type: string
5413 // RequirementLevel: Recommended
5414 // Stability: Development
5415 //
5416 // Examples: "0640"
5417 FileModeKey = attribute.Key("file.mode")
5418
5419 // FileModifiedKey is the attribute Key conforming to the "file.modified"
5420 // semantic conventions. It represents the time when the file content was last
5421 // modified, in ISO 8601 format.
5422 //
5423 // Type: string
5424 // RequirementLevel: Recommended
5425 // Stability: Development
5426 //
5427 // Examples: "2021-01-01T12:00:00Z"
5428 FileModifiedKey = attribute.Key("file.modified")
5429
5430 // FileNameKey is the attribute Key conforming to the "file.name" semantic
5431 // conventions. It represents the name of the file including the extension,
5432 // without the directory.
5433 //
5434 // Type: string
5435 // RequirementLevel: Recommended
5436 // Stability: Development
5437 //
5438 // Examples: "example.png"
5439 FileNameKey = attribute.Key("file.name")
5440
5441 // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
5442 // semantic conventions. It represents the user ID (UID) or security identifier
5443 // (SID) of the file owner.
5444 //
5445 // Type: string
5446 // RequirementLevel: Recommended
5447 // Stability: Development
5448 //
5449 // Examples: "1000"
5450 FileOwnerIDKey = attribute.Key("file.owner.id")
5451
5452 // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
5453 // semantic conventions. It represents the username of the file owner.
5454 //
5455 // Type: string
5456 // RequirementLevel: Recommended
5457 // Stability: Development
5458 //
5459 // Examples: "root"
5460 FileOwnerNameKey = attribute.Key("file.owner.name")
5461
5462 // FilePathKey is the attribute Key conforming to the "file.path" semantic
5463 // conventions. It represents the full path to the file, including the file
5464 // name. It should include the drive letter, when appropriate.
5465 //
5466 // Type: string
5467 // RequirementLevel: Recommended
5468 // Stability: Development
5469 //
5470 // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
5471 FilePathKey = attribute.Key("file.path")
5472
5473 // FileSizeKey is the attribute Key conforming to the "file.size" semantic
5474 // conventions. It represents the file size in bytes.
5475 //
5476 // Type: int
5477 // RequirementLevel: Recommended
5478 // Stability: Development
5479 //
5480 // Examples:
5481 FileSizeKey = attribute.Key("file.size")
5482
5483 // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
5484 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5485 // to the target of a symbolic link.
5486 //
5487 // Type: string
5488 // RequirementLevel: Recommended
5489 // Stability: Development
5490 //
5491 // Examples: "/usr/bin/python3"
5492 // Note: This attribute is only applicable to symbolic links.
5493 FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
5494 )
5495
5496 // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
5497 // semantic conventions. It represents the time when the file was last accessed,
5498 // in ISO 8601 format.
5499 func FileAccessed(val string) attribute.KeyValue {
5500 return FileAccessedKey.String(val)
5501 }
5502
5503 // FileAttributes returns an attribute KeyValue conforming to the
5504 // "file.attributes" semantic conventions. It represents the array of file
5505 // attributes.
5506 func FileAttributes(val ...string) attribute.KeyValue {
5507 return FileAttributesKey.StringSlice(val)
5508 }
5509
5510 // FileChanged returns an attribute KeyValue conforming to the "file.changed"
5511 // semantic conventions. It represents the time when the file attributes or
5512 // metadata was last changed, in ISO 8601 format.
5513 func FileChanged(val string) attribute.KeyValue {
5514 return FileChangedKey.String(val)
5515 }
5516
5517 // FileCreated returns an attribute KeyValue conforming to the "file.created"
5518 // semantic conventions. It represents the time when the file was created, in ISO
5519 // 8601 format.
5520 func FileCreated(val string) attribute.KeyValue {
5521 return FileCreatedKey.String(val)
5522 }
5523
5524 // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
5525 // semantic conventions. It represents the directory where the file is located.
5526 // It should include the drive letter, when appropriate.
5527 func FileDirectory(val string) attribute.KeyValue {
5528 return FileDirectoryKey.String(val)
5529 }
5530
5531 // FileExtension returns an attribute KeyValue conforming to the "file.extension"
5532 // semantic conventions. It represents the file extension, excluding the leading
5533 // dot.
5534 func FileExtension(val string) attribute.KeyValue {
5535 return FileExtensionKey.String(val)
5536 }
5537
5538 // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
5539 // semantic conventions. It represents the name of the fork. A fork is additional
5540 // data associated with a filesystem object.
5541 func FileForkName(val string) attribute.KeyValue {
5542 return FileForkNameKey.String(val)
5543 }
5544
5545 // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
5546 // semantic conventions. It represents the primary Group ID (GID) of the file.
5547 func FileGroupID(val string) attribute.KeyValue {
5548 return FileGroupIDKey.String(val)
5549 }
5550
5551 // FileGroupName returns an attribute KeyValue conforming to the
5552 // "file.group.name" semantic conventions. It represents the primary group name
5553 // of the file.
5554 func FileGroupName(val string) attribute.KeyValue {
5555 return FileGroupNameKey.String(val)
5556 }
5557
5558 // FileInode returns an attribute KeyValue conforming to the "file.inode"
5559 // semantic conventions. It represents the inode representing the file in the
5560 // filesystem.
5561 func FileInode(val string) attribute.KeyValue {
5562 return FileInodeKey.String(val)
5563 }
5564
5565 // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
5566 // conventions. It represents the mode of the file in octal representation.
5567 func FileMode(val string) attribute.KeyValue {
5568 return FileModeKey.String(val)
5569 }
5570
5571 // FileModified returns an attribute KeyValue conforming to the "file.modified"
5572 // semantic conventions. It represents the time when the file content was last
5573 // modified, in ISO 8601 format.
5574 func FileModified(val string) attribute.KeyValue {
5575 return FileModifiedKey.String(val)
5576 }
5577
5578 // FileName returns an attribute KeyValue conforming to the "file.name" semantic
5579 // conventions. It represents the name of the file including the extension,
5580 // without the directory.
5581 func FileName(val string) attribute.KeyValue {
5582 return FileNameKey.String(val)
5583 }
5584
5585 // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
5586 // semantic conventions. It represents the user ID (UID) or security identifier
5587 // (SID) of the file owner.
5588 func FileOwnerID(val string) attribute.KeyValue {
5589 return FileOwnerIDKey.String(val)
5590 }
5591
5592 // FileOwnerName returns an attribute KeyValue conforming to the
5593 // "file.owner.name" semantic conventions. It represents the username of the file
5594 // owner.
5595 func FileOwnerName(val string) attribute.KeyValue {
5596 return FileOwnerNameKey.String(val)
5597 }
5598
5599 // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
5600 // conventions. It represents the full path to the file, including the file name.
5601 // It should include the drive letter, when appropriate.
5602 func FilePath(val string) attribute.KeyValue {
5603 return FilePathKey.String(val)
5604 }
5605
5606 // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
5607 // conventions. It represents the file size in bytes.
5608 func FileSize(val int) attribute.KeyValue {
5609 return FileSizeKey.Int(val)
5610 }
5611
5612 // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
5613 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5614 // to the target of a symbolic link.
5615 func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
5616 return FileSymbolicLinkTargetPathKey.String(val)
5617 }
5618
5619 // Namespace: gcp
5620 const (
5621 // GCPAppHubApplicationContainerKey is the attribute Key conforming to the
5622 // "gcp.apphub.application.container" semantic conventions. It represents the
5623 // container within GCP where the AppHub application is defined.
5624 //
5625 // Type: string
5626 // RequirementLevel: Recommended
5627 // Stability: Development
5628 //
5629 // Examples: "projects/my-container-project"
5630 GCPAppHubApplicationContainerKey = attribute.Key("gcp.apphub.application.container")
5631
5632 // GCPAppHubApplicationIDKey is the attribute Key conforming to the
5633 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5634 // the application as configured in AppHub.
5635 //
5636 // Type: string
5637 // RequirementLevel: Recommended
5638 // Stability: Development
5639 //
5640 // Examples: "my-application"
5641 GCPAppHubApplicationIDKey = attribute.Key("gcp.apphub.application.id")
5642
5643 // GCPAppHubApplicationLocationKey is the attribute Key conforming to the
5644 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5645 // zone or region where the application is defined.
5646 //
5647 // Type: string
5648 // RequirementLevel: Recommended
5649 // Stability: Development
5650 //
5651 // Examples: "us-central1"
5652 GCPAppHubApplicationLocationKey = attribute.Key("gcp.apphub.application.location")
5653
5654 // GCPAppHubServiceCriticalityTypeKey is the attribute Key conforming to the
5655 // "gcp.apphub.service.criticality_type" semantic conventions. It represents the
5656 // criticality of a service indicates its importance to the business.
5657 //
5658 // Type: Enum
5659 // RequirementLevel: Recommended
5660 // Stability: Development
5661 //
5662 // Examples:
5663 // Note: [See AppHub type enum]
5664 //
5665 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5666 GCPAppHubServiceCriticalityTypeKey = attribute.Key("gcp.apphub.service.criticality_type")
5667
5668 // GCPAppHubServiceEnvironmentTypeKey is the attribute Key conforming to the
5669 // "gcp.apphub.service.environment_type" semantic conventions. It represents the
5670 // environment of a service is the stage of a software lifecycle.
5671 //
5672 // Type: Enum
5673 // RequirementLevel: Recommended
5674 // Stability: Development
5675 //
5676 // Examples:
5677 // Note: [See AppHub environment type]
5678 //
5679 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5680 GCPAppHubServiceEnvironmentTypeKey = attribute.Key("gcp.apphub.service.environment_type")
5681
5682 // GCPAppHubServiceIDKey is the attribute Key conforming to the
5683 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5684 // service as configured in AppHub.
5685 //
5686 // Type: string
5687 // RequirementLevel: Recommended
5688 // Stability: Development
5689 //
5690 // Examples: "my-service"
5691 GCPAppHubServiceIDKey = attribute.Key("gcp.apphub.service.id")
5692
5693 // GCPAppHubWorkloadCriticalityTypeKey is the attribute Key conforming to the
5694 // "gcp.apphub.workload.criticality_type" semantic conventions. It represents
5695 // the criticality of a workload indicates its importance to the business.
5696 //
5697 // Type: Enum
5698 // RequirementLevel: Recommended
5699 // Stability: Development
5700 //
5701 // Examples:
5702 // Note: [See AppHub type enum]
5703 //
5704 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5705 GCPAppHubWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub.workload.criticality_type")
5706
5707 // GCPAppHubWorkloadEnvironmentTypeKey is the attribute Key conforming to the
5708 // "gcp.apphub.workload.environment_type" semantic conventions. It represents
5709 // the environment of a workload is the stage of a software lifecycle.
5710 //
5711 // Type: Enum
5712 // RequirementLevel: Recommended
5713 // Stability: Development
5714 //
5715 // Examples:
5716 // Note: [See AppHub environment type]
5717 //
5718 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5719 GCPAppHubWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub.workload.environment_type")
5720
5721 // GCPAppHubWorkloadIDKey is the attribute Key conforming to the
5722 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5723 // workload as configured in AppHub.
5724 //
5725 // Type: string
5726 // RequirementLevel: Recommended
5727 // Stability: Development
5728 //
5729 // Examples: "my-workload"
5730 GCPAppHubWorkloadIDKey = attribute.Key("gcp.apphub.workload.id")
5731
5732 // GCPClientServiceKey is the attribute Key conforming to the
5733 // "gcp.client.service" semantic conventions. It represents the identifies the
5734 // Google Cloud service for which the official client library is intended.
5735 //
5736 // Type: string
5737 // RequirementLevel: Recommended
5738 // Stability: Development
5739 //
5740 // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
5741 // Note: Intended to be a stable identifier for Google Cloud client libraries
5742 // that is uniform across implementation languages. The value should be derived
5743 // from the canonical service domain for the service; for example,
5744 // 'foo.googleapis.com' should result in a value of 'foo'.
5745 GCPClientServiceKey = attribute.Key("gcp.client.service")
5746
5747 // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
5748 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
5749 // the Cloud Run [execution] being run for the Job, as set by the
5750 // [`CLOUD_RUN_EXECUTION`] environment variable.
5751 //
5752 // Type: string
5753 // RequirementLevel: Recommended
5754 // Stability: Development
5755 //
5756 // Examples: "job-name-xxxx", "sample-job-mdw84"
5757 //
5758 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5759 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5760 GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
5761
5762 // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
5763 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5764 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5765 // environment variable.
5766 //
5767 // Type: int
5768 // RequirementLevel: Recommended
5769 // Stability: Development
5770 //
5771 // Examples: 0, 1
5772 //
5773 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5774 GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
5775
5776 // GCPGCEInstanceHostnameKey is the attribute Key conforming to the
5777 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5778 // of a GCE instance. This is the full value of the default or [custom hostname]
5779 // .
5780 //
5781 // Type: string
5782 // RequirementLevel: Recommended
5783 // Stability: Development
5784 //
5785 // Examples: "my-host1234.example.com",
5786 // "sample-vm.us-west1-b.c.my-project.internal"
5787 //
5788 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5789 GCPGCEInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
5790
5791 // GCPGCEInstanceNameKey is the attribute Key conforming to the
5792 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5793 // of a GCE instance. This is the value provided by `host.name`, the visible
5794 // name of the instance in the Cloud Console UI, and the prefix for the default
5795 // hostname of the instance as defined by the [default internal DNS name].
5796 //
5797 // Type: string
5798 // RequirementLevel: Recommended
5799 // Stability: Development
5800 //
5801 // Examples: "instance-1", "my-vm-name"
5802 //
5803 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5804 GCPGCEInstanceNameKey = attribute.Key("gcp.gce.instance.name")
5805 )
5806
5807 // GCPAppHubApplicationContainer returns an attribute KeyValue conforming to the
5808 // "gcp.apphub.application.container" semantic conventions. It represents the
5809 // container within GCP where the AppHub application is defined.
5810 func GCPAppHubApplicationContainer(val string) attribute.KeyValue {
5811 return GCPAppHubApplicationContainerKey.String(val)
5812 }
5813
5814 // GCPAppHubApplicationID returns an attribute KeyValue conforming to the
5815 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5816 // the application as configured in AppHub.
5817 func GCPAppHubApplicationID(val string) attribute.KeyValue {
5818 return GCPAppHubApplicationIDKey.String(val)
5819 }
5820
5821 // GCPAppHubApplicationLocation returns an attribute KeyValue conforming to the
5822 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5823 // zone or region where the application is defined.
5824 func GCPAppHubApplicationLocation(val string) attribute.KeyValue {
5825 return GCPAppHubApplicationLocationKey.String(val)
5826 }
5827
5828 // GCPAppHubServiceID returns an attribute KeyValue conforming to the
5829 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5830 // service as configured in AppHub.
5831 func GCPAppHubServiceID(val string) attribute.KeyValue {
5832 return GCPAppHubServiceIDKey.String(val)
5833 }
5834
5835 // GCPAppHubWorkloadID returns an attribute KeyValue conforming to the
5836 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5837 // workload as configured in AppHub.
5838 func GCPAppHubWorkloadID(val string) attribute.KeyValue {
5839 return GCPAppHubWorkloadIDKey.String(val)
5840 }
5841
5842 // GCPClientService returns an attribute KeyValue conforming to the
5843 // "gcp.client.service" semantic conventions. It represents the identifies the
5844 // Google Cloud service for which the official client library is intended.
5845 func GCPClientService(val string) attribute.KeyValue {
5846 return GCPClientServiceKey.String(val)
5847 }
5848
5849 // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
5850 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
5851 // the Cloud Run [execution] being run for the Job, as set by the
5852 // [`CLOUD_RUN_EXECUTION`] environment variable.
5853 //
5854 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5855 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5856 func GCPCloudRunJobExecution(val string) attribute.KeyValue {
5857 return GCPCloudRunJobExecutionKey.String(val)
5858 }
5859
5860 // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
5861 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5862 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5863 // environment variable.
5864 //
5865 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5866 func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
5867 return GCPCloudRunJobTaskIndexKey.Int(val)
5868 }
5869
5870 // GCPGCEInstanceHostname returns an attribute KeyValue conforming to the
5871 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5872 // of a GCE instance. This is the full value of the default or [custom hostname]
5873 // .
5874 //
5875 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5876 func GCPGCEInstanceHostname(val string) attribute.KeyValue {
5877 return GCPGCEInstanceHostnameKey.String(val)
5878 }
5879
5880 // GCPGCEInstanceName returns an attribute KeyValue conforming to the
5881 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5882 // of a GCE instance. This is the value provided by `host.name`, the visible name
5883 // of the instance in the Cloud Console UI, and the prefix for the default
5884 // hostname of the instance as defined by the [default internal DNS name].
5885 //
5886 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5887 func GCPGCEInstanceName(val string) attribute.KeyValue {
5888 return GCPGCEInstanceNameKey.String(val)
5889 }
5890
5891 // Enum values for gcp.apphub.service.criticality_type
5892 var (
5893 // Mission critical service.
5894 // Stability: development
5895 GCPAppHubServiceCriticalityTypeMissionCritical = GCPAppHubServiceCriticalityTypeKey.String("MISSION_CRITICAL")
5896 // High impact.
5897 // Stability: development
5898 GCPAppHubServiceCriticalityTypeHigh = GCPAppHubServiceCriticalityTypeKey.String("HIGH")
5899 // Medium impact.
5900 // Stability: development
5901 GCPAppHubServiceCriticalityTypeMedium = GCPAppHubServiceCriticalityTypeKey.String("MEDIUM")
5902 // Low impact.
5903 // Stability: development
5904 GCPAppHubServiceCriticalityTypeLow = GCPAppHubServiceCriticalityTypeKey.String("LOW")
5905 )
5906
5907 // Enum values for gcp.apphub.service.environment_type
5908 var (
5909 // Production environment.
5910 // Stability: development
5911 GCPAppHubServiceEnvironmentTypeProduction = GCPAppHubServiceEnvironmentTypeKey.String("PRODUCTION")
5912 // Staging environment.
5913 // Stability: development
5914 GCPAppHubServiceEnvironmentTypeStaging = GCPAppHubServiceEnvironmentTypeKey.String("STAGING")
5915 // Test environment.
5916 // Stability: development
5917 GCPAppHubServiceEnvironmentTypeTest = GCPAppHubServiceEnvironmentTypeKey.String("TEST")
5918 // Development environment.
5919 // Stability: development
5920 GCPAppHubServiceEnvironmentTypeDevelopment = GCPAppHubServiceEnvironmentTypeKey.String("DEVELOPMENT")
5921 )
5922
5923 // Enum values for gcp.apphub.workload.criticality_type
5924 var (
5925 // Mission critical service.
5926 // Stability: development
5927 GCPAppHubWorkloadCriticalityTypeMissionCritical = GCPAppHubWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
5928 // High impact.
5929 // Stability: development
5930 GCPAppHubWorkloadCriticalityTypeHigh = GCPAppHubWorkloadCriticalityTypeKey.String("HIGH")
5931 // Medium impact.
5932 // Stability: development
5933 GCPAppHubWorkloadCriticalityTypeMedium = GCPAppHubWorkloadCriticalityTypeKey.String("MEDIUM")
5934 // Low impact.
5935 // Stability: development
5936 GCPAppHubWorkloadCriticalityTypeLow = GCPAppHubWorkloadCriticalityTypeKey.String("LOW")
5937 )
5938
5939 // Enum values for gcp.apphub.workload.environment_type
5940 var (
5941 // Production environment.
5942 // Stability: development
5943 GCPAppHubWorkloadEnvironmentTypeProduction = GCPAppHubWorkloadEnvironmentTypeKey.String("PRODUCTION")
5944 // Staging environment.
5945 // Stability: development
5946 GCPAppHubWorkloadEnvironmentTypeStaging = GCPAppHubWorkloadEnvironmentTypeKey.String("STAGING")
5947 // Test environment.
5948 // Stability: development
5949 GCPAppHubWorkloadEnvironmentTypeTest = GCPAppHubWorkloadEnvironmentTypeKey.String("TEST")
5950 // Development environment.
5951 // Stability: development
5952 GCPAppHubWorkloadEnvironmentTypeDevelopment = GCPAppHubWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
5953 )
5954
5955 // Namespace: gen_ai
5956 const (
5957 // GenAIAgentDescriptionKey is the attribute Key conforming to the
5958 // "gen_ai.agent.description" semantic conventions. It represents the free-form
5959 // description of the GenAI agent provided by the application.
5960 //
5961 // Type: string
5962 // RequirementLevel: Recommended
5963 // Stability: Development
5964 //
5965 // Examples: "Helps with math problems", "Generates fiction stories"
5966 GenAIAgentDescriptionKey = attribute.Key("gen_ai.agent.description")
5967
5968 // GenAIAgentIDKey is the attribute Key conforming to the "gen_ai.agent.id"
5969 // semantic conventions. It represents the unique identifier of the GenAI agent.
5970 //
5971 // Type: string
5972 // RequirementLevel: Recommended
5973 // Stability: Development
5974 //
5975 // Examples: "asst_5j66UpCpwteGg4YSxUnt7lPY"
5976 GenAIAgentIDKey = attribute.Key("gen_ai.agent.id")
5977
5978 // GenAIAgentNameKey is the attribute Key conforming to the "gen_ai.agent.name"
5979 // semantic conventions. It represents the human-readable name of the GenAI
5980 // agent provided by the application.
5981 //
5982 // Type: string
5983 // RequirementLevel: Recommended
5984 // Stability: Development
5985 //
5986 // Examples: "Math Tutor", "Fiction Writer"
5987 GenAIAgentNameKey = attribute.Key("gen_ai.agent.name")
5988
5989 // GenAIConversationIDKey is the attribute Key conforming to the
5990 // "gen_ai.conversation.id" semantic conventions. It represents the unique
5991 // identifier for a conversation (session, thread), used to store and correlate
5992 // messages within this conversation.
5993 //
5994 // Type: string
5995 // RequirementLevel: Recommended
5996 // Stability: Development
5997 //
5998 // Examples: "conv_5j66UpCpwteGg4YSxUnt7lPY"
5999 GenAIConversationIDKey = attribute.Key("gen_ai.conversation.id")
6000
6001 // GenAIDataSourceIDKey is the attribute Key conforming to the
6002 // "gen_ai.data_source.id" semantic conventions. It represents the data source
6003 // identifier.
6004 //
6005 // Type: string
6006 // RequirementLevel: Recommended
6007 // Stability: Development
6008 //
6009 // Examples: "H7STPQYOND"
6010 // Note: Data sources are used by AI agents and RAG applications to store
6011 // grounding data. A data source may be an external database, object store,
6012 // document collection, website, or any other storage system used by the GenAI
6013 // agent or application. The `gen_ai.data_source.id` SHOULD match the identifier
6014 // used by the GenAI system rather than a name specific to the external storage,
6015 // such as a database or object store. Semantic conventions referencing
6016 // `gen_ai.data_source.id` MAY also leverage additional attributes, such as
6017 // `db.*`, to further identify and describe the data source.
6018 GenAIDataSourceIDKey = attribute.Key("gen_ai.data_source.id")
6019
6020 // GenAIInputMessagesKey is the attribute Key conforming to the
6021 // "gen_ai.input.messages" semantic conventions. It represents the chat history
6022 // provided to the model as an input.
6023 //
6024 // Type: any
6025 // RequirementLevel: Recommended
6026 // Stability: Development
6027 //
6028 // Examples: "[\n {\n "role": "user",\n "parts": [\n {\n "type": "text",\n
6029 // "content": "Weather in Paris?"\n }\n ]\n },\n {\n "role": "assistant",\n
6030 // "parts": [\n {\n "type": "tool_call",\n "id":
6031 // "call_VSPygqKTWdrhaFErNvMV18Yl",\n "name": "get_weather",\n "arguments": {\n
6032 // "location": "Paris"\n }\n }\n ]\n },\n {\n "role": "tool",\n "parts": [\n {\n
6033 // "type": "tool_call_response",\n "id": " call_VSPygqKTWdrhaFErNvMV18Yl",\n
6034 // "result": "rainy, 57°F"\n }\n ]\n }\n]\n"
6035 // Note: Instrumentations MUST follow [Input messages JSON schema].
6036 // When the attribute is recorded on events, it MUST be recorded in structured
6037 // form. When recorded on spans, it MAY be recorded as a JSON string if
6038 // structured
6039 // format is not supported and SHOULD be recorded in structured form otherwise.
6040 //
6041 // Messages MUST be provided in the order they were sent to the model.
6042 // Instrumentations MAY provide a way for users to filter or truncate
6043 // input messages.
6044 //
6045 // > [!Warning]
6046 // > This attribute is likely to contain sensitive information including
6047 // > user/PII data.
6048 //
6049 // See [Recording content on attributes]
6050 // section for more details.
6051 //
6052 // [Input messages JSON schema]: /docs/gen-ai/gen-ai-input-messages.json
6053 // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
6054 GenAIInputMessagesKey = attribute.Key("gen_ai.input.messages")
6055
6056 // GenAIOperationNameKey is the attribute Key conforming to the
6057 // "gen_ai.operation.name" semantic conventions. It represents the name of the
6058 // operation being performed.
6059 //
6060 // Type: Enum
6061 // RequirementLevel: Recommended
6062 // Stability: Development
6063 //
6064 // Examples:
6065 // Note: If one of the predefined values applies, but specific system uses a
6066 // different name it's RECOMMENDED to document it in the semantic conventions
6067 // for specific GenAI system and use system-specific name in the
6068 // instrumentation. If a different name is not documented, instrumentation
6069 // libraries SHOULD use applicable predefined value.
6070 GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
6071
6072 // GenAIOutputMessagesKey is the attribute Key conforming to the
6073 // "gen_ai.output.messages" semantic conventions. It represents the messages
6074 // returned by the model where each message represents a specific model response
6075 // (choice, candidate).
6076 //
6077 // Type: any
6078 // RequirementLevel: Recommended
6079 // Stability: Development
6080 //
6081 // Examples: "[\n {\n "role": "assistant",\n "parts": [\n {\n "type": "text",\n
6082 // "content": "The weather in Paris is currently rainy with a temperature of
6083 // 57°F."\n }\n ],\n "finish_reason": "stop"\n }\n]\n"
6084 // Note: Instrumentations MUST follow [Output messages JSON schema]
6085 //
6086 // Each message represents a single output choice/candidate generated by
6087 // the model. Each message corresponds to exactly one generation
6088 // (choice/candidate) and vice versa - one choice cannot be split across
6089 // multiple messages or one message cannot contain parts from multiple choices.
6090 //
6091 // When the attribute is recorded on events, it MUST be recorded in structured
6092 // form. When recorded on spans, it MAY be recorded as a JSON string if
6093 // structured
6094 // format is not supported and SHOULD be recorded in structured form otherwise.
6095 //
6096 // Instrumentations MAY provide a way for users to filter or truncate
6097 // output messages.
6098 //
6099 // > [!Warning]
6100 // > This attribute is likely to contain sensitive information including
6101 // > user/PII data.
6102 //
6103 // See [Recording content on attributes]
6104 // section for more details.
6105 //
6106 // [Output messages JSON schema]: /docs/gen-ai/gen-ai-output-messages.json
6107 // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
6108 GenAIOutputMessagesKey = attribute.Key("gen_ai.output.messages")
6109
6110 // GenAIOutputTypeKey is the attribute Key conforming to the
6111 // "gen_ai.output.type" semantic conventions. It represents the represents the
6112 // content type requested by the client.
6113 //
6114 // Type: Enum
6115 // RequirementLevel: Recommended
6116 // Stability: Development
6117 //
6118 // Examples:
6119 // Note: This attribute SHOULD be used when the client requests output of a
6120 // specific type. The model may return zero or more outputs of this type.
6121 // This attribute specifies the output modality and not the actual output
6122 // format. For example, if an image is requested, the actual output could be a
6123 // URL pointing to an image file.
6124 // Additional output format details may be recorded in the future in the
6125 // `gen_ai.output.{type}.*` attributes.
6126 GenAIOutputTypeKey = attribute.Key("gen_ai.output.type")
6127
6128 // GenAIProviderNameKey is the attribute Key conforming to the
6129 // "gen_ai.provider.name" semantic conventions. It represents the Generative AI
6130 // provider as identified by the client or server instrumentation.
6131 //
6132 // Type: Enum
6133 // RequirementLevel: Recommended
6134 // Stability: Development
6135 //
6136 // Examples:
6137 // Note: The attribute SHOULD be set based on the instrumentation's best
6138 // knowledge and may differ from the actual model provider.
6139 //
6140 // Multiple providers, including Azure OpenAI, Gemini, and AI hosting platforms
6141 // are accessible using the OpenAI REST API and corresponding client libraries,
6142 // but may proxy or host models from different providers.
6143 //
6144 // The `gen_ai.request.model`, `gen_ai.response.model`, and `server.address`
6145 // attributes may help identify the actual system in use.
6146 //
6147 // The `gen_ai.provider.name` attribute acts as a discriminator that
6148 // identifies the GenAI telemetry format flavor specific to that provider
6149 // within GenAI semantic conventions.
6150 // It SHOULD be set consistently with provider-specific attributes and signals.
6151 // For example, GenAI spans, metrics, and events related to AWS Bedrock
6152 // should have the `gen_ai.provider.name` set to `aws.bedrock` and include
6153 // applicable `aws.bedrock.*` attributes and are not expected to include
6154 // `openai.*` attributes.
6155 GenAIProviderNameKey = attribute.Key("gen_ai.provider.name")
6156
6157 // GenAIRequestChoiceCountKey is the attribute Key conforming to the
6158 // "gen_ai.request.choice.count" semantic conventions. It represents the target
6159 // number of candidate completions to return.
6160 //
6161 // Type: int
6162 // RequirementLevel: Recommended
6163 // Stability: Development
6164 //
6165 // Examples: 3
6166 GenAIRequestChoiceCountKey = attribute.Key("gen_ai.request.choice.count")
6167
6168 // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the
6169 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
6170 // encoding formats requested in an embeddings operation, if specified.
6171 //
6172 // Type: string[]
6173 // RequirementLevel: Recommended
6174 // Stability: Development
6175 //
6176 // Examples: "base64"], ["float", "binary"
6177 // Note: In some GenAI systems the encoding formats are called embedding types.
6178 // Also, some GenAI systems only accept a single format per request.
6179 GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats")
6180
6181 // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
6182 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
6183 // frequency penalty setting for the GenAI request.
6184 //
6185 // Type: double
6186 // RequirementLevel: Recommended
6187 // Stability: Development
6188 //
6189 // Examples: 0.1
6190 GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
6191
6192 // GenAIRequestMaxTokensKey is the attribute Key conforming to the
6193 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
6194 // number of tokens the model generates for a request.
6195 //
6196 // Type: int
6197 // RequirementLevel: Recommended
6198 // Stability: Development
6199 //
6200 // Examples: 100
6201 GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
6202
6203 // GenAIRequestModelKey is the attribute Key conforming to the
6204 // "gen_ai.request.model" semantic conventions. It represents the name of the
6205 // GenAI model a request is being made to.
6206 //
6207 // Type: string
6208 // RequirementLevel: Recommended
6209 // Stability: Development
6210 //
6211 // Examples: gpt-4
6212 GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
6213
6214 // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
6215 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
6216 // presence penalty setting for the GenAI request.
6217 //
6218 // Type: double
6219 // RequirementLevel: Recommended
6220 // Stability: Development
6221 //
6222 // Examples: 0.1
6223 GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
6224
6225 // GenAIRequestSeedKey is the attribute Key conforming to the
6226 // "gen_ai.request.seed" semantic conventions. It represents the requests with
6227 // same seed value more likely to return same result.
6228 //
6229 // Type: int
6230 // RequirementLevel: Recommended
6231 // Stability: Development
6232 //
6233 // Examples: 100
6234 GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed")
6235
6236 // GenAIRequestStopSequencesKey is the attribute Key conforming to the
6237 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
6238 // of sequences that the model will use to stop generating further tokens.
6239 //
6240 // Type: string[]
6241 // RequirementLevel: Recommended
6242 // Stability: Development
6243 //
6244 // Examples: "forest", "lived"
6245 GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
6246
6247 // GenAIRequestTemperatureKey is the attribute Key conforming to the
6248 // "gen_ai.request.temperature" semantic conventions. It represents the
6249 // temperature setting for the GenAI request.
6250 //
6251 // Type: double
6252 // RequirementLevel: Recommended
6253 // Stability: Development
6254 //
6255 // Examples: 0.0
6256 GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
6257
6258 // GenAIRequestTopKKey is the attribute Key conforming to the
6259 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
6260 // setting for the GenAI request.
6261 //
6262 // Type: double
6263 // RequirementLevel: Recommended
6264 // Stability: Development
6265 //
6266 // Examples: 1.0
6267 GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
6268
6269 // GenAIRequestTopPKey is the attribute Key conforming to the
6270 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
6271 // setting for the GenAI request.
6272 //
6273 // Type: double
6274 // RequirementLevel: Recommended
6275 // Stability: Development
6276 //
6277 // Examples: 1.0
6278 GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
6279
6280 // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
6281 // "gen_ai.response.finish_reasons" semantic conventions. It represents the
6282 // array of reasons the model stopped generating tokens, corresponding to each
6283 // generation received.
6284 //
6285 // Type: string[]
6286 // RequirementLevel: Recommended
6287 // Stability: Development
6288 //
6289 // Examples: "stop"], ["stop", "length"
6290 GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
6291
6292 // GenAIResponseIDKey is the attribute Key conforming to the
6293 // "gen_ai.response.id" semantic conventions. It represents the unique
6294 // identifier for the completion.
6295 //
6296 // Type: string
6297 // RequirementLevel: Recommended
6298 // Stability: Development
6299 //
6300 // Examples: "chatcmpl-123"
6301 GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
6302
6303 // GenAIResponseModelKey is the attribute Key conforming to the
6304 // "gen_ai.response.model" semantic conventions. It represents the name of the
6305 // model that generated the response.
6306 //
6307 // Type: string
6308 // RequirementLevel: Recommended
6309 // Stability: Development
6310 //
6311 // Examples: "gpt-4-0613"
6312 GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
6313
6314 // GenAISystemInstructionsKey is the attribute Key conforming to the
6315 // "gen_ai.system_instructions" semantic conventions. It represents the system
6316 // message or instructions provided to the GenAI model separately from the chat
6317 // history.
6318 //
6319 // Type: any
6320 // RequirementLevel: Recommended
6321 // Stability: Development
6322 //
6323 // Examples: "[\n {\n "type": "text",\n "content": "You are an Agent that greet
6324 // users, always use greetings tool to respond"\n }\n]\n", "[\n {\n "type":
6325 // "text",\n "content": "You are a language translator."\n },\n {\n "type":
6326 // "text",\n "content": "Your mission is to translate text in English to
6327 // French."\n }\n]\n"
6328 // Note: This attribute SHOULD be used when the corresponding provider or API
6329 // allows to provide system instructions or messages separately from the
6330 // chat history.
6331 //
6332 // Instructions that are part of the chat history SHOULD be recorded in
6333 // `gen_ai.input.messages` attribute instead.
6334 //
6335 // Instrumentations MUST follow [System instructions JSON schema].
6336 //
6337 // When recorded on spans, it MAY be recorded as a JSON string if structured
6338 // format is not supported and SHOULD be recorded in structured form otherwise.
6339 //
6340 // Instrumentations MAY provide a way for users to filter or truncate
6341 // system instructions.
6342 //
6343 // > [!Warning]
6344 // > This attribute may contain sensitive information.
6345 //
6346 // See [Recording content on attributes]
6347 // section for more details.
6348 //
6349 // [System instructions JSON schema]: /docs/gen-ai/gen-ai-system-instructions.json
6350 // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
6351 GenAISystemInstructionsKey = attribute.Key("gen_ai.system_instructions")
6352
6353 // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
6354 // semantic conventions. It represents the type of token being counted.
6355 //
6356 // Type: Enum
6357 // RequirementLevel: Recommended
6358 // Stability: Development
6359 //
6360 // Examples: "input", "output"
6361 GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
6362
6363 // GenAIToolCallIDKey is the attribute Key conforming to the
6364 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
6365 // identifier.
6366 //
6367 // Type: string
6368 // RequirementLevel: Recommended
6369 // Stability: Development
6370 //
6371 // Examples: "call_mszuSIzqtI65i1wAUOE8w5H4"
6372 GenAIToolCallIDKey = attribute.Key("gen_ai.tool.call.id")
6373
6374 // GenAIToolDescriptionKey is the attribute Key conforming to the
6375 // "gen_ai.tool.description" semantic conventions. It represents the tool
6376 // description.
6377 //
6378 // Type: string
6379 // RequirementLevel: Recommended
6380 // Stability: Development
6381 //
6382 // Examples: "Multiply two numbers"
6383 GenAIToolDescriptionKey = attribute.Key("gen_ai.tool.description")
6384
6385 // GenAIToolNameKey is the attribute Key conforming to the "gen_ai.tool.name"
6386 // semantic conventions. It represents the name of the tool utilized by the
6387 // agent.
6388 //
6389 // Type: string
6390 // RequirementLevel: Recommended
6391 // Stability: Development
6392 //
6393 // Examples: "Flights"
6394 GenAIToolNameKey = attribute.Key("gen_ai.tool.name")
6395
6396 // GenAIToolTypeKey is the attribute Key conforming to the "gen_ai.tool.type"
6397 // semantic conventions. It represents the type of the tool utilized by the
6398 // agent.
6399 //
6400 // Type: string
6401 // RequirementLevel: Recommended
6402 // Stability: Development
6403 //
6404 // Examples: "function", "extension", "datastore"
6405 // Note: Extension: A tool executed on the agent-side to directly call external
6406 // APIs, bridging the gap between the agent and real-world systems.
6407 // Agent-side operations involve actions that are performed by the agent on the
6408 // server or within the agent's controlled environment.
6409 // Function: A tool executed on the client-side, where the agent generates
6410 // parameters for a predefined function, and the client executes the logic.
6411 // Client-side operations are actions taken on the user's end or within the
6412 // client application.
6413 // Datastore: A tool used by the agent to access and query structured or
6414 // unstructured external data for retrieval-augmented tasks or knowledge
6415 // updates.
6416 GenAIToolTypeKey = attribute.Key("gen_ai.tool.type")
6417
6418 // GenAIUsageInputTokensKey is the attribute Key conforming to the
6419 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
6420 // tokens used in the GenAI input (prompt).
6421 //
6422 // Type: int
6423 // RequirementLevel: Recommended
6424 // Stability: Development
6425 //
6426 // Examples: 100
6427 GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
6428
6429 // GenAIUsageOutputTokensKey is the attribute Key conforming to the
6430 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
6431 // of tokens used in the GenAI response (completion).
6432 //
6433 // Type: int
6434 // RequirementLevel: Recommended
6435 // Stability: Development
6436 //
6437 // Examples: 180
6438 GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
6439 )
6440
6441 // GenAIAgentDescription returns an attribute KeyValue conforming to the
6442 // "gen_ai.agent.description" semantic conventions. It represents the free-form
6443 // description of the GenAI agent provided by the application.
6444 func GenAIAgentDescription(val string) attribute.KeyValue {
6445 return GenAIAgentDescriptionKey.String(val)
6446 }
6447
6448 // GenAIAgentID returns an attribute KeyValue conforming to the "gen_ai.agent.id"
6449 // semantic conventions. It represents the unique identifier of the GenAI agent.
6450 func GenAIAgentID(val string) attribute.KeyValue {
6451 return GenAIAgentIDKey.String(val)
6452 }
6453
6454 // GenAIAgentName returns an attribute KeyValue conforming to the
6455 // "gen_ai.agent.name" semantic conventions. It represents the human-readable
6456 // name of the GenAI agent provided by the application.
6457 func GenAIAgentName(val string) attribute.KeyValue {
6458 return GenAIAgentNameKey.String(val)
6459 }
6460
6461 // GenAIConversationID returns an attribute KeyValue conforming to the
6462 // "gen_ai.conversation.id" semantic conventions. It represents the unique
6463 // identifier for a conversation (session, thread), used to store and correlate
6464 // messages within this conversation.
6465 func GenAIConversationID(val string) attribute.KeyValue {
6466 return GenAIConversationIDKey.String(val)
6467 }
6468
6469 // GenAIDataSourceID returns an attribute KeyValue conforming to the
6470 // "gen_ai.data_source.id" semantic conventions. It represents the data source
6471 // identifier.
6472 func GenAIDataSourceID(val string) attribute.KeyValue {
6473 return GenAIDataSourceIDKey.String(val)
6474 }
6475
6476 // GenAIRequestChoiceCount returns an attribute KeyValue conforming to the
6477 // "gen_ai.request.choice.count" semantic conventions. It represents the target
6478 // number of candidate completions to return.
6479 func GenAIRequestChoiceCount(val int) attribute.KeyValue {
6480 return GenAIRequestChoiceCountKey.Int(val)
6481 }
6482
6483 // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the
6484 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
6485 // encoding formats requested in an embeddings operation, if specified.
6486 func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue {
6487 return GenAIRequestEncodingFormatsKey.StringSlice(val)
6488 }
6489
6490 // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
6491 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
6492 // frequency penalty setting for the GenAI request.
6493 func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
6494 return GenAIRequestFrequencyPenaltyKey.Float64(val)
6495 }
6496
6497 // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
6498 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
6499 // number of tokens the model generates for a request.
6500 func GenAIRequestMaxTokens(val int) attribute.KeyValue {
6501 return GenAIRequestMaxTokensKey.Int(val)
6502 }
6503
6504 // GenAIRequestModel returns an attribute KeyValue conforming to the
6505 // "gen_ai.request.model" semantic conventions. It represents the name of the
6506 // GenAI model a request is being made to.
6507 func GenAIRequestModel(val string) attribute.KeyValue {
6508 return GenAIRequestModelKey.String(val)
6509 }
6510
6511 // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
6512 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
6513 // presence penalty setting for the GenAI request.
6514 func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
6515 return GenAIRequestPresencePenaltyKey.Float64(val)
6516 }
6517
6518 // GenAIRequestSeed returns an attribute KeyValue conforming to the
6519 // "gen_ai.request.seed" semantic conventions. It represents the requests with
6520 // same seed value more likely to return same result.
6521 func GenAIRequestSeed(val int) attribute.KeyValue {
6522 return GenAIRequestSeedKey.Int(val)
6523 }
6524
6525 // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
6526 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
6527 // of sequences that the model will use to stop generating further tokens.
6528 func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
6529 return GenAIRequestStopSequencesKey.StringSlice(val)
6530 }
6531
6532 // GenAIRequestTemperature returns an attribute KeyValue conforming to the
6533 // "gen_ai.request.temperature" semantic conventions. It represents the
6534 // temperature setting for the GenAI request.
6535 func GenAIRequestTemperature(val float64) attribute.KeyValue {
6536 return GenAIRequestTemperatureKey.Float64(val)
6537 }
6538
6539 // GenAIRequestTopK returns an attribute KeyValue conforming to the
6540 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
6541 // setting for the GenAI request.
6542 func GenAIRequestTopK(val float64) attribute.KeyValue {
6543 return GenAIRequestTopKKey.Float64(val)
6544 }
6545
6546 // GenAIRequestTopP returns an attribute KeyValue conforming to the
6547 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
6548 // setting for the GenAI request.
6549 func GenAIRequestTopP(val float64) attribute.KeyValue {
6550 return GenAIRequestTopPKey.Float64(val)
6551 }
6552
6553 // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
6554 // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
6555 // of reasons the model stopped generating tokens, corresponding to each
6556 // generation received.
6557 func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
6558 return GenAIResponseFinishReasonsKey.StringSlice(val)
6559 }
6560
6561 // GenAIResponseID returns an attribute KeyValue conforming to the
6562 // "gen_ai.response.id" semantic conventions. It represents the unique identifier
6563 // for the completion.
6564 func GenAIResponseID(val string) attribute.KeyValue {
6565 return GenAIResponseIDKey.String(val)
6566 }
6567
6568 // GenAIResponseModel returns an attribute KeyValue conforming to the
6569 // "gen_ai.response.model" semantic conventions. It represents the name of the
6570 // model that generated the response.
6571 func GenAIResponseModel(val string) attribute.KeyValue {
6572 return GenAIResponseModelKey.String(val)
6573 }
6574
6575 // GenAIToolCallID returns an attribute KeyValue conforming to the
6576 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
6577 // identifier.
6578 func GenAIToolCallID(val string) attribute.KeyValue {
6579 return GenAIToolCallIDKey.String(val)
6580 }
6581
6582 // GenAIToolDescription returns an attribute KeyValue conforming to the
6583 // "gen_ai.tool.description" semantic conventions. It represents the tool
6584 // description.
6585 func GenAIToolDescription(val string) attribute.KeyValue {
6586 return GenAIToolDescriptionKey.String(val)
6587 }
6588
6589 // GenAIToolName returns an attribute KeyValue conforming to the
6590 // "gen_ai.tool.name" semantic conventions. It represents the name of the tool
6591 // utilized by the agent.
6592 func GenAIToolName(val string) attribute.KeyValue {
6593 return GenAIToolNameKey.String(val)
6594 }
6595
6596 // GenAIToolType returns an attribute KeyValue conforming to the
6597 // "gen_ai.tool.type" semantic conventions. It represents the type of the tool
6598 // utilized by the agent.
6599 func GenAIToolType(val string) attribute.KeyValue {
6600 return GenAIToolTypeKey.String(val)
6601 }
6602
6603 // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
6604 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
6605 // tokens used in the GenAI input (prompt).
6606 func GenAIUsageInputTokens(val int) attribute.KeyValue {
6607 return GenAIUsageInputTokensKey.Int(val)
6608 }
6609
6610 // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
6611 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
6612 // tokens used in the GenAI response (completion).
6613 func GenAIUsageOutputTokens(val int) attribute.KeyValue {
6614 return GenAIUsageOutputTokensKey.Int(val)
6615 }
6616
6617 // Enum values for gen_ai.operation.name
6618 var (
6619 // Chat completion operation such as [OpenAI Chat API]
6620 // Stability: development
6621 //
6622 // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
6623 GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
6624 // Multimodal content generation operation such as [Gemini Generate Content]
6625 // Stability: development
6626 //
6627 // [Gemini Generate Content]: https://ai.google.dev/api/generate-content
6628 GenAIOperationNameGenerateContent = GenAIOperationNameKey.String("generate_content")
6629 // Text completions operation such as [OpenAI Completions API (Legacy)]
6630 // Stability: development
6631 //
6632 // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
6633 GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
6634 // Embeddings operation such as [OpenAI Create embeddings API]
6635 // Stability: development
6636 //
6637 // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create
6638 GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings")
6639 // Create GenAI agent
6640 // Stability: development
6641 GenAIOperationNameCreateAgent = GenAIOperationNameKey.String("create_agent")
6642 // Invoke GenAI agent
6643 // Stability: development
6644 GenAIOperationNameInvokeAgent = GenAIOperationNameKey.String("invoke_agent")
6645 // Execute a tool
6646 // Stability: development
6647 GenAIOperationNameExecuteTool = GenAIOperationNameKey.String("execute_tool")
6648 )
6649
6650 // Enum values for gen_ai.output.type
6651 var (
6652 // Plain text
6653 // Stability: development
6654 GenAIOutputTypeText = GenAIOutputTypeKey.String("text")
6655 // JSON object with known or unknown schema
6656 // Stability: development
6657 GenAIOutputTypeJSON = GenAIOutputTypeKey.String("json")
6658 // Image
6659 // Stability: development
6660 GenAIOutputTypeImage = GenAIOutputTypeKey.String("image")
6661 // Speech
6662 // Stability: development
6663 GenAIOutputTypeSpeech = GenAIOutputTypeKey.String("speech")
6664 )
6665
6666 // Enum values for gen_ai.provider.name
6667 var (
6668 // [OpenAI]
6669 // Stability: development
6670 //
6671 // [OpenAI]: https://openai.com/
6672 GenAIProviderNameOpenAI = GenAIProviderNameKey.String("openai")
6673 // Any Google generative AI endpoint
6674 // Stability: development
6675 GenAIProviderNameGCPGenAI = GenAIProviderNameKey.String("gcp.gen_ai")
6676 // [Vertex AI]
6677 // Stability: development
6678 //
6679 // [Vertex AI]: https://cloud.google.com/vertex-ai
6680 GenAIProviderNameGCPVertexAI = GenAIProviderNameKey.String("gcp.vertex_ai")
6681 // [Gemini]
6682 // Stability: development
6683 //
6684 // [Gemini]: https://cloud.google.com/products/gemini
6685 GenAIProviderNameGCPGemini = GenAIProviderNameKey.String("gcp.gemini")
6686 // [Anthropic]
6687 // Stability: development
6688 //
6689 // [Anthropic]: https://www.anthropic.com/
6690 GenAIProviderNameAnthropic = GenAIProviderNameKey.String("anthropic")
6691 // [Cohere]
6692 // Stability: development
6693 //
6694 // [Cohere]: https://cohere.com/
6695 GenAIProviderNameCohere = GenAIProviderNameKey.String("cohere")
6696 // Azure AI Inference
6697 // Stability: development
6698 GenAIProviderNameAzureAIInference = GenAIProviderNameKey.String("azure.ai.inference")
6699 // [Azure OpenAI]
6700 // Stability: development
6701 //
6702 // [Azure OpenAI]: https://azure.microsoft.com/products/ai-services/openai-service/
6703 GenAIProviderNameAzureAIOpenAI = GenAIProviderNameKey.String("azure.ai.openai")
6704 // [IBM Watsonx AI]
6705 // Stability: development
6706 //
6707 // [IBM Watsonx AI]: https://www.ibm.com/products/watsonx-ai
6708 GenAIProviderNameIBMWatsonxAI = GenAIProviderNameKey.String("ibm.watsonx.ai")
6709 // [AWS Bedrock]
6710 // Stability: development
6711 //
6712 // [AWS Bedrock]: https://aws.amazon.com/bedrock
6713 GenAIProviderNameAWSBedrock = GenAIProviderNameKey.String("aws.bedrock")
6714 // [Perplexity]
6715 // Stability: development
6716 //
6717 // [Perplexity]: https://www.perplexity.ai/
6718 GenAIProviderNamePerplexity = GenAIProviderNameKey.String("perplexity")
6719 // [xAI]
6720 // Stability: development
6721 //
6722 // [xAI]: https://x.ai/
6723 GenAIProviderNameXAI = GenAIProviderNameKey.String("x_ai")
6724 // [DeepSeek]
6725 // Stability: development
6726 //
6727 // [DeepSeek]: https://www.deepseek.com/
6728 GenAIProviderNameDeepseek = GenAIProviderNameKey.String("deepseek")
6729 // [Groq]
6730 // Stability: development
6731 //
6732 // [Groq]: https://groq.com/
6733 GenAIProviderNameGroq = GenAIProviderNameKey.String("groq")
6734 // [Mistral AI]
6735 // Stability: development
6736 //
6737 // [Mistral AI]: https://mistral.ai/
6738 GenAIProviderNameMistralAI = GenAIProviderNameKey.String("mistral_ai")
6739 )
6740
6741 // Enum values for gen_ai.token.type
6742 var (
6743 // Input tokens (prompt, input, etc.)
6744 // Stability: development
6745 GenAITokenTypeInput = GenAITokenTypeKey.String("input")
6746 // Output tokens (completion, response, etc.)
6747 // Stability: development
6748 GenAITokenTypeOutput = GenAITokenTypeKey.String("output")
6749 )
6750
6751 // Namespace: geo
6752 const (
6753 // GeoContinentCodeKey is the attribute Key conforming to the
6754 // "geo.continent.code" semantic conventions. It represents the two-letter code
6755 // representing continent’s name.
6756 //
6757 // Type: Enum
6758 // RequirementLevel: Recommended
6759 // Stability: Development
6760 //
6761 // Examples:
6762 GeoContinentCodeKey = attribute.Key("geo.continent.code")
6763
6764 // GeoCountryISOCodeKey is the attribute Key conforming to the
6765 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
6766 // Country Code ([ISO 3166-1 alpha2]).
6767 //
6768 // Type: string
6769 // RequirementLevel: Recommended
6770 // Stability: Development
6771 //
6772 // Examples: "CA"
6773 //
6774 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
6775 GeoCountryISOCodeKey = attribute.Key("geo.country.iso_code")
6776
6777 // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name"
6778 // semantic conventions. It represents the locality name. Represents the name of
6779 // a city, town, village, or similar populated place.
6780 //
6781 // Type: string
6782 // RequirementLevel: Recommended
6783 // Stability: Development
6784 //
6785 // Examples: "Montreal", "Berlin"
6786 GeoLocalityNameKey = attribute.Key("geo.locality.name")
6787
6788 // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat"
6789 // semantic conventions. It represents the latitude of the geo location in
6790 // [WGS84].
6791 //
6792 // Type: double
6793 // RequirementLevel: Recommended
6794 // Stability: Development
6795 //
6796 // Examples: 45.505918
6797 //
6798 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6799 GeoLocationLatKey = attribute.Key("geo.location.lat")
6800
6801 // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon"
6802 // semantic conventions. It represents the longitude of the geo location in
6803 // [WGS84].
6804 //
6805 // Type: double
6806 // RequirementLevel: Recommended
6807 // Stability: Development
6808 //
6809 // Examples: -73.61483
6810 //
6811 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6812 GeoLocationLonKey = attribute.Key("geo.location.lon")
6813
6814 // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code"
6815 // semantic conventions. It represents the postal code associated with the
6816 // location. Values appropriate for this field may also be known as a postcode
6817 // or ZIP code and will vary widely from country to country.
6818 //
6819 // Type: string
6820 // RequirementLevel: Recommended
6821 // Stability: Development
6822 //
6823 // Examples: "94040"
6824 GeoPostalCodeKey = attribute.Key("geo.postal_code")
6825
6826 // GeoRegionISOCodeKey is the attribute Key conforming to the
6827 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
6828 // ([ISO 3166-2]).
6829 //
6830 // Type: string
6831 // RequirementLevel: Recommended
6832 // Stability: Development
6833 //
6834 // Examples: "CA-QC"
6835 //
6836 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
6837 GeoRegionISOCodeKey = attribute.Key("geo.region.iso_code")
6838 )
6839
6840 // GeoCountryISOCode returns an attribute KeyValue conforming to the
6841 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
6842 // Country Code ([ISO 3166-1 alpha2]).
6843 //
6844 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
6845 func GeoCountryISOCode(val string) attribute.KeyValue {
6846 return GeoCountryISOCodeKey.String(val)
6847 }
6848
6849 // GeoLocalityName returns an attribute KeyValue conforming to the
6850 // "geo.locality.name" semantic conventions. It represents the locality name.
6851 // Represents the name of a city, town, village, or similar populated place.
6852 func GeoLocalityName(val string) attribute.KeyValue {
6853 return GeoLocalityNameKey.String(val)
6854 }
6855
6856 // GeoLocationLat returns an attribute KeyValue conforming to the
6857 // "geo.location.lat" semantic conventions. It represents the latitude of the geo
6858 // location in [WGS84].
6859 //
6860 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6861 func GeoLocationLat(val float64) attribute.KeyValue {
6862 return GeoLocationLatKey.Float64(val)
6863 }
6864
6865 // GeoLocationLon returns an attribute KeyValue conforming to the
6866 // "geo.location.lon" semantic conventions. It represents the longitude of the
6867 // geo location in [WGS84].
6868 //
6869 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
6870 func GeoLocationLon(val float64) attribute.KeyValue {
6871 return GeoLocationLonKey.Float64(val)
6872 }
6873
6874 // GeoPostalCode returns an attribute KeyValue conforming to the
6875 // "geo.postal_code" semantic conventions. It represents the postal code
6876 // associated with the location. Values appropriate for this field may also be
6877 // known as a postcode or ZIP code and will vary widely from country to country.
6878 func GeoPostalCode(val string) attribute.KeyValue {
6879 return GeoPostalCodeKey.String(val)
6880 }
6881
6882 // GeoRegionISOCode returns an attribute KeyValue conforming to the
6883 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
6884 // ([ISO 3166-2]).
6885 //
6886 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
6887 func GeoRegionISOCode(val string) attribute.KeyValue {
6888 return GeoRegionISOCodeKey.String(val)
6889 }
6890
6891 // Enum values for geo.continent.code
6892 var (
6893 // Africa
6894 // Stability: development
6895 GeoContinentCodeAf = GeoContinentCodeKey.String("AF")
6896 // Antarctica
6897 // Stability: development
6898 GeoContinentCodeAn = GeoContinentCodeKey.String("AN")
6899 // Asia
6900 // Stability: development
6901 GeoContinentCodeAs = GeoContinentCodeKey.String("AS")
6902 // Europe
6903 // Stability: development
6904 GeoContinentCodeEu = GeoContinentCodeKey.String("EU")
6905 // North America
6906 // Stability: development
6907 GeoContinentCodeNa = GeoContinentCodeKey.String("NA")
6908 // Oceania
6909 // Stability: development
6910 GeoContinentCodeOc = GeoContinentCodeKey.String("OC")
6911 // South America
6912 // Stability: development
6913 GeoContinentCodeSa = GeoContinentCodeKey.String("SA")
6914 )
6915
6916 // Namespace: go
6917 const (
6918 // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
6919 // semantic conventions. It represents the type of memory.
6920 //
6921 // Type: Enum
6922 // RequirementLevel: Recommended
6923 // Stability: Development
6924 //
6925 // Examples: "other", "stack"
6926 GoMemoryTypeKey = attribute.Key("go.memory.type")
6927 )
6928
6929 // Enum values for go.memory.type
6930 var (
6931 // Memory allocated from the heap that is reserved for stack space, whether or
6932 // not it is currently in-use.
6933 // Stability: development
6934 GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
6935 // Memory used by the Go runtime, excluding other categories of memory usage
6936 // described in this enumeration.
6937 // Stability: development
6938 GoMemoryTypeOther = GoMemoryTypeKey.String("other")
6939 )
6940
6941 // Namespace: graphql
6942 const (
6943 // GraphQLDocumentKey is the attribute Key conforming to the "graphql.document"
6944 // semantic conventions. It represents the GraphQL document being executed.
6945 //
6946 // Type: string
6947 // RequirementLevel: Recommended
6948 // Stability: Development
6949 //
6950 // Examples: query findBookById { bookById(id: ?) { name } }
6951 // Note: The value may be sanitized to exclude sensitive information.
6952 GraphQLDocumentKey = attribute.Key("graphql.document")
6953
6954 // GraphQLOperationNameKey is the attribute Key conforming to the
6955 // "graphql.operation.name" semantic conventions. It represents the name of the
6956 // operation being executed.
6957 //
6958 // Type: string
6959 // RequirementLevel: Recommended
6960 // Stability: Development
6961 //
6962 // Examples: findBookById
6963 GraphQLOperationNameKey = attribute.Key("graphql.operation.name")
6964
6965 // GraphQLOperationTypeKey is the attribute Key conforming to the
6966 // "graphql.operation.type" semantic conventions. It represents the type of the
6967 // operation being executed.
6968 //
6969 // Type: Enum
6970 // RequirementLevel: Recommended
6971 // Stability: Development
6972 //
6973 // Examples: "query", "mutation", "subscription"
6974 GraphQLOperationTypeKey = attribute.Key("graphql.operation.type")
6975 )
6976
6977 // GraphQLDocument returns an attribute KeyValue conforming to the
6978 // "graphql.document" semantic conventions. It represents the GraphQL document
6979 // being executed.
6980 func GraphQLDocument(val string) attribute.KeyValue {
6981 return GraphQLDocumentKey.String(val)
6982 }
6983
6984 // GraphQLOperationName returns an attribute KeyValue conforming to the
6985 // "graphql.operation.name" semantic conventions. It represents the name of the
6986 // operation being executed.
6987 func GraphQLOperationName(val string) attribute.KeyValue {
6988 return GraphQLOperationNameKey.String(val)
6989 }
6990
6991 // Enum values for graphql.operation.type
6992 var (
6993 // GraphQL query
6994 // Stability: development
6995 GraphQLOperationTypeQuery = GraphQLOperationTypeKey.String("query")
6996 // GraphQL mutation
6997 // Stability: development
6998 GraphQLOperationTypeMutation = GraphQLOperationTypeKey.String("mutation")
6999 // GraphQL subscription
7000 // Stability: development
7001 GraphQLOperationTypeSubscription = GraphQLOperationTypeKey.String("subscription")
7002 )
7003
7004 // Namespace: heroku
7005 const (
7006 // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
7007 // semantic conventions. It represents the unique identifier for the
7008 // application.
7009 //
7010 // Type: string
7011 // RequirementLevel: Recommended
7012 // Stability: Development
7013 //
7014 // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
7015 HerokuAppIDKey = attribute.Key("heroku.app.id")
7016
7017 // HerokuReleaseCommitKey is the attribute Key conforming to the
7018 // "heroku.release.commit" semantic conventions. It represents the commit hash
7019 // for the current release.
7020 //
7021 // Type: string
7022 // RequirementLevel: Recommended
7023 // Stability: Development
7024 //
7025 // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
7026 HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
7027
7028 // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
7029 // "heroku.release.creation_timestamp" semantic conventions. It represents the
7030 // time and date the release was created.
7031 //
7032 // Type: string
7033 // RequirementLevel: Recommended
7034 // Stability: Development
7035 //
7036 // Examples: "2022-10-23T18:00:42Z"
7037 HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
7038 )
7039
7040 // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
7041 // semantic conventions. It represents the unique identifier for the application.
7042 func HerokuAppID(val string) attribute.KeyValue {
7043 return HerokuAppIDKey.String(val)
7044 }
7045
7046 // HerokuReleaseCommit returns an attribute KeyValue conforming to the
7047 // "heroku.release.commit" semantic conventions. It represents the commit hash
7048 // for the current release.
7049 func HerokuReleaseCommit(val string) attribute.KeyValue {
7050 return HerokuReleaseCommitKey.String(val)
7051 }
7052
7053 // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
7054 // "heroku.release.creation_timestamp" semantic conventions. It represents the
7055 // time and date the release was created.
7056 func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
7057 return HerokuReleaseCreationTimestampKey.String(val)
7058 }
7059
7060 // Namespace: host
7061 const (
7062 // HostArchKey is the attribute Key conforming to the "host.arch" semantic
7063 // conventions. It represents the CPU architecture the host system is running
7064 // on.
7065 //
7066 // Type: Enum
7067 // RequirementLevel: Recommended
7068 // Stability: Development
7069 //
7070 // Examples:
7071 HostArchKey = attribute.Key("host.arch")
7072
7073 // HostCPUCacheL2SizeKey is the attribute Key conforming to the
7074 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
7075 // level 2 memory cache available to the processor (in Bytes).
7076 //
7077 // Type: int
7078 // RequirementLevel: Recommended
7079 // Stability: Development
7080 //
7081 // Examples: 12288000
7082 HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
7083
7084 // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
7085 // semantic conventions. It represents the family or generation of the CPU.
7086 //
7087 // Type: string
7088 // RequirementLevel: Recommended
7089 // Stability: Development
7090 //
7091 // Examples: "6", "PA-RISC 1.1e"
7092 HostCPUFamilyKey = attribute.Key("host.cpu.family")
7093
7094 // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
7095 // semantic conventions. It represents the model identifier. It provides more
7096 // granular information about the CPU, distinguishing it from other CPUs within
7097 // the same family.
7098 //
7099 // Type: string
7100 // RequirementLevel: Recommended
7101 // Stability: Development
7102 //
7103 // Examples: "6", "9000/778/B180L"
7104 HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
7105
7106 // HostCPUModelNameKey is the attribute Key conforming to the
7107 // "host.cpu.model.name" semantic conventions. It represents the model
7108 // designation of the processor.
7109 //
7110 // Type: string
7111 // RequirementLevel: Recommended
7112 // Stability: Development
7113 //
7114 // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
7115 HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
7116
7117 // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
7118 // semantic conventions. It represents the stepping or core revisions.
7119 //
7120 // Type: string
7121 // RequirementLevel: Recommended
7122 // Stability: Development
7123 //
7124 // Examples: "1", "r1p1"
7125 HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
7126
7127 // HostCPUVendorIDKey is the attribute Key conforming to the
7128 // "host.cpu.vendor.id" semantic conventions. It represents the processor
7129 // manufacturer identifier. A maximum 12-character string.
7130 //
7131 // Type: string
7132 // RequirementLevel: Recommended
7133 // Stability: Development
7134 //
7135 // Examples: "GenuineIntel"
7136 // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
7137 // registers. Writing these to memory in this order results in a 12-character
7138 // string.
7139 //
7140 // [CPUID]: https://wiki.osdev.org/CPUID
7141 HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
7142
7143 // HostIDKey is the attribute Key conforming to the "host.id" semantic
7144 // conventions. It represents the unique host ID. For Cloud, this must be the
7145 // instance_id assigned by the cloud provider. For non-containerized systems,
7146 // this should be the `machine-id`. See the table below for the sources to use
7147 // to determine the `machine-id` based on operating system.
7148 //
7149 // Type: string
7150 // RequirementLevel: Recommended
7151 // Stability: Development
7152 //
7153 // Examples: "fdbf79e8af94cb7f9e8df36789187052"
7154 HostIDKey = attribute.Key("host.id")
7155
7156 // HostImageIDKey is the attribute Key conforming to the "host.image.id"
7157 // semantic conventions. It represents the VM image ID or host OS image ID. For
7158 // Cloud, this value is from the provider.
7159 //
7160 // Type: string
7161 // RequirementLevel: Recommended
7162 // Stability: Development
7163 //
7164 // Examples: "ami-07b06b442921831e5"
7165 HostImageIDKey = attribute.Key("host.image.id")
7166
7167 // HostImageNameKey is the attribute Key conforming to the "host.image.name"
7168 // semantic conventions. It represents the name of the VM image or OS install
7169 // the host was instantiated from.
7170 //
7171 // Type: string
7172 // RequirementLevel: Recommended
7173 // Stability: Development
7174 //
7175 // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
7176 HostImageNameKey = attribute.Key("host.image.name")
7177
7178 // HostImageVersionKey is the attribute Key conforming to the
7179 // "host.image.version" semantic conventions. It represents the version string
7180 // of the VM image or host OS as defined in [Version Attributes].
7181 //
7182 // Type: string
7183 // RequirementLevel: Recommended
7184 // Stability: Development
7185 //
7186 // Examples: "0.1"
7187 //
7188 // [Version Attributes]: /docs/resource/README.md#version-attributes
7189 HostImageVersionKey = attribute.Key("host.image.version")
7190
7191 // HostIPKey is the attribute Key conforming to the "host.ip" semantic
7192 // conventions. It represents the available IP addresses of the host, excluding
7193 // loopback interfaces.
7194 //
7195 // Type: string[]
7196 // RequirementLevel: Recommended
7197 // Stability: Development
7198 //
7199 // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
7200 // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
7201 // addresses MUST be specified in the [RFC 5952] format.
7202 //
7203 // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
7204 HostIPKey = attribute.Key("host.ip")
7205
7206 // HostMacKey is the attribute Key conforming to the "host.mac" semantic
7207 // conventions. It represents the available MAC addresses of the host, excluding
7208 // loopback interfaces.
7209 //
7210 // Type: string[]
7211 // RequirementLevel: Recommended
7212 // Stability: Development
7213 //
7214 // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
7215 // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
7216 // hyphen-separated octets in uppercase hexadecimal form from most to least
7217 // significant.
7218 //
7219 // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
7220 HostMacKey = attribute.Key("host.mac")
7221
7222 // HostNameKey is the attribute Key conforming to the "host.name" semantic
7223 // conventions. It represents the name of the host. On Unix systems, it may
7224 // contain what the hostname command returns, or the fully qualified hostname,
7225 // or another name specified by the user.
7226 //
7227 // Type: string
7228 // RequirementLevel: Recommended
7229 // Stability: Development
7230 //
7231 // Examples: "opentelemetry-test"
7232 HostNameKey = attribute.Key("host.name")
7233
7234 // HostTypeKey is the attribute Key conforming to the "host.type" semantic
7235 // conventions. It represents the type of host. For Cloud, this must be the
7236 // machine type.
7237 //
7238 // Type: string
7239 // RequirementLevel: Recommended
7240 // Stability: Development
7241 //
7242 // Examples: "n1-standard-1"
7243 HostTypeKey = attribute.Key("host.type")
7244 )
7245
7246 // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
7247 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
7248 // level 2 memory cache available to the processor (in Bytes).
7249 func HostCPUCacheL2Size(val int) attribute.KeyValue {
7250 return HostCPUCacheL2SizeKey.Int(val)
7251 }
7252
7253 // HostCPUFamily returns an attribute KeyValue conforming to the
7254 // "host.cpu.family" semantic conventions. It represents the family or generation
7255 // of the CPU.
7256 func HostCPUFamily(val string) attribute.KeyValue {
7257 return HostCPUFamilyKey.String(val)
7258 }
7259
7260 // HostCPUModelID returns an attribute KeyValue conforming to the
7261 // "host.cpu.model.id" semantic conventions. It represents the model identifier.
7262 // It provides more granular information about the CPU, distinguishing it from
7263 // other CPUs within the same family.
7264 func HostCPUModelID(val string) attribute.KeyValue {
7265 return HostCPUModelIDKey.String(val)
7266 }
7267
7268 // HostCPUModelName returns an attribute KeyValue conforming to the
7269 // "host.cpu.model.name" semantic conventions. It represents the model
7270 // designation of the processor.
7271 func HostCPUModelName(val string) attribute.KeyValue {
7272 return HostCPUModelNameKey.String(val)
7273 }
7274
7275 // HostCPUStepping returns an attribute KeyValue conforming to the
7276 // "host.cpu.stepping" semantic conventions. It represents the stepping or core
7277 // revisions.
7278 func HostCPUStepping(val string) attribute.KeyValue {
7279 return HostCPUSteppingKey.String(val)
7280 }
7281
7282 // HostCPUVendorID returns an attribute KeyValue conforming to the
7283 // "host.cpu.vendor.id" semantic conventions. It represents the processor
7284 // manufacturer identifier. A maximum 12-character string.
7285 func HostCPUVendorID(val string) attribute.KeyValue {
7286 return HostCPUVendorIDKey.String(val)
7287 }
7288
7289 // HostID returns an attribute KeyValue conforming to the "host.id" semantic
7290 // conventions. It represents the unique host ID. For Cloud, this must be the
7291 // instance_id assigned by the cloud provider. For non-containerized systems,
7292 // this should be the `machine-id`. See the table below for the sources to use to
7293 // determine the `machine-id` based on operating system.
7294 func HostID(val string) attribute.KeyValue {
7295 return HostIDKey.String(val)
7296 }
7297
7298 // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
7299 // semantic conventions. It represents the VM image ID or host OS image ID. For
7300 // Cloud, this value is from the provider.
7301 func HostImageID(val string) attribute.KeyValue {
7302 return HostImageIDKey.String(val)
7303 }
7304
7305 // HostImageName returns an attribute KeyValue conforming to the
7306 // "host.image.name" semantic conventions. It represents the name of the VM image
7307 // or OS install the host was instantiated from.
7308 func HostImageName(val string) attribute.KeyValue {
7309 return HostImageNameKey.String(val)
7310 }
7311
7312 // HostImageVersion returns an attribute KeyValue conforming to the
7313 // "host.image.version" semantic conventions. It represents the version string of
7314 // the VM image or host OS as defined in [Version Attributes].
7315 //
7316 // [Version Attributes]: /docs/resource/README.md#version-attributes
7317 func HostImageVersion(val string) attribute.KeyValue {
7318 return HostImageVersionKey.String(val)
7319 }
7320
7321 // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
7322 // conventions. It represents the available IP addresses of the host, excluding
7323 // loopback interfaces.
7324 func HostIP(val ...string) attribute.KeyValue {
7325 return HostIPKey.StringSlice(val)
7326 }
7327
7328 // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
7329 // conventions. It represents the available MAC addresses of the host, excluding
7330 // loopback interfaces.
7331 func HostMac(val ...string) attribute.KeyValue {
7332 return HostMacKey.StringSlice(val)
7333 }
7334
7335 // HostName returns an attribute KeyValue conforming to the "host.name" semantic
7336 // conventions. It represents the name of the host. On Unix systems, it may
7337 // contain what the hostname command returns, or the fully qualified hostname, or
7338 // another name specified by the user.
7339 func HostName(val string) attribute.KeyValue {
7340 return HostNameKey.String(val)
7341 }
7342
7343 // HostType returns an attribute KeyValue conforming to the "host.type" semantic
7344 // conventions. It represents the type of host. For Cloud, this must be the
7345 // machine type.
7346 func HostType(val string) attribute.KeyValue {
7347 return HostTypeKey.String(val)
7348 }
7349
7350 // Enum values for host.arch
7351 var (
7352 // AMD64
7353 // Stability: development
7354 HostArchAMD64 = HostArchKey.String("amd64")
7355 // ARM32
7356 // Stability: development
7357 HostArchARM32 = HostArchKey.String("arm32")
7358 // ARM64
7359 // Stability: development
7360 HostArchARM64 = HostArchKey.String("arm64")
7361 // Itanium
7362 // Stability: development
7363 HostArchIA64 = HostArchKey.String("ia64")
7364 // 32-bit PowerPC
7365 // Stability: development
7366 HostArchPPC32 = HostArchKey.String("ppc32")
7367 // 64-bit PowerPC
7368 // Stability: development
7369 HostArchPPC64 = HostArchKey.String("ppc64")
7370 // IBM z/Architecture
7371 // Stability: development
7372 HostArchS390x = HostArchKey.String("s390x")
7373 // 32-bit x86
7374 // Stability: development
7375 HostArchX86 = HostArchKey.String("x86")
7376 )
7377
7378 // Namespace: http
7379 const (
7380 // HTTPConnectionStateKey is the attribute Key conforming to the
7381 // "http.connection.state" semantic conventions. It represents the state of the
7382 // HTTP connection in the HTTP connection pool.
7383 //
7384 // Type: Enum
7385 // RequirementLevel: Recommended
7386 // Stability: Development
7387 //
7388 // Examples: "active", "idle"
7389 HTTPConnectionStateKey = attribute.Key("http.connection.state")
7390
7391 // HTTPRequestBodySizeKey is the attribute Key conforming to the
7392 // "http.request.body.size" semantic conventions. It represents the size of the
7393 // request payload body in bytes. This is the number of bytes transferred
7394 // excluding headers and is often, but not always, present as the
7395 // [Content-Length] header. For requests using transport encoding, this should
7396 // be the compressed size.
7397 //
7398 // Type: int
7399 // RequirementLevel: Recommended
7400 // Stability: Development
7401 //
7402 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7403 HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
7404
7405 // HTTPRequestMethodKey is the attribute Key conforming to the
7406 // "http.request.method" semantic conventions. It represents the HTTP request
7407 // method.
7408 //
7409 // Type: Enum
7410 // RequirementLevel: Recommended
7411 // Stability: Stable
7412 //
7413 // Examples: "GET", "POST", "HEAD"
7414 // Note: HTTP request method value SHOULD be "known" to the instrumentation.
7415 // By default, this convention defines "known" methods as the ones listed in
7416 // [RFC9110]
7417 // and the PATCH method defined in [RFC5789].
7418 //
7419 // If the HTTP request method is not known to instrumentation, it MUST set the
7420 // `http.request.method` attribute to `_OTHER`.
7421 //
7422 // If the HTTP instrumentation could end up converting valid HTTP request
7423 // methods to `_OTHER`, then it MUST provide a way to override
7424 // the list of known HTTP methods. If this override is done via environment
7425 // variable, then the environment variable MUST be named
7426 // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
7427 // case-sensitive known HTTP methods
7428 // (this list MUST be a full override of the default known method, it is not a
7429 // list of known methods in addition to the defaults).
7430 //
7431 // HTTP method names are case-sensitive and `http.request.method` attribute
7432 // value MUST match a known HTTP method name exactly.
7433 // Instrumentations for specific web frameworks that consider HTTP methods to be
7434 // case insensitive, SHOULD populate a canonical equivalent.
7435 // Tracing instrumentations that do so, MUST also set
7436 // `http.request.method_original` to the original value.
7437 //
7438 // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
7439 // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
7440 HTTPRequestMethodKey = attribute.Key("http.request.method")
7441
7442 // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
7443 // "http.request.method_original" semantic conventions. It represents the
7444 // original HTTP method sent by the client in the request line.
7445 //
7446 // Type: string
7447 // RequirementLevel: Recommended
7448 // Stability: Stable
7449 //
7450 // Examples: "GeT", "ACL", "foo"
7451 HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
7452
7453 // HTTPRequestResendCountKey is the attribute Key conforming to the
7454 // "http.request.resend_count" semantic conventions. It represents the ordinal
7455 // number of request resending attempt (for any reason, including redirects).
7456 //
7457 // Type: int
7458 // RequirementLevel: Recommended
7459 // Stability: Stable
7460 //
7461 // Note: The resend count SHOULD be updated each time an HTTP request gets
7462 // resent by the client, regardless of what was the cause of the resending (e.g.
7463 // redirection, authorization failure, 503 Server Unavailable, network issues,
7464 // or any other).
7465 HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
7466
7467 // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
7468 // semantic conventions. It represents the total size of the request in bytes.
7469 // This should be the total number of bytes sent over the wire, including the
7470 // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
7471 // body if any.
7472 //
7473 // Type: int
7474 // RequirementLevel: Recommended
7475 // Stability: Development
7476 HTTPRequestSizeKey = attribute.Key("http.request.size")
7477
7478 // HTTPResponseBodySizeKey is the attribute Key conforming to the
7479 // "http.response.body.size" semantic conventions. It represents the size of the
7480 // response payload body in bytes. This is the number of bytes transferred
7481 // excluding headers and is often, but not always, present as the
7482 // [Content-Length] header. For requests using transport encoding, this should
7483 // be the compressed size.
7484 //
7485 // Type: int
7486 // RequirementLevel: Recommended
7487 // Stability: Development
7488 //
7489 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7490 HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
7491
7492 // HTTPResponseSizeKey is the attribute Key conforming to the
7493 // "http.response.size" semantic conventions. It represents the total size of
7494 // the response in bytes. This should be the total number of bytes sent over the
7495 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
7496 // headers, and response body and trailers if any.
7497 //
7498 // Type: int
7499 // RequirementLevel: Recommended
7500 // Stability: Development
7501 HTTPResponseSizeKey = attribute.Key("http.response.size")
7502
7503 // HTTPResponseStatusCodeKey is the attribute Key conforming to the
7504 // "http.response.status_code" semantic conventions. It represents the
7505 // [HTTP response status code].
7506 //
7507 // Type: int
7508 // RequirementLevel: Recommended
7509 // Stability: Stable
7510 //
7511 // Examples: 200
7512 //
7513 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
7514 HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
7515
7516 // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
7517 // conventions. It represents the matched route, that is, the path template in
7518 // the format used by the respective server framework.
7519 //
7520 // Type: string
7521 // RequirementLevel: Recommended
7522 // Stability: Stable
7523 //
7524 // Examples: "/users/:userID?", "{controller}/{action}/{id?}"
7525 // Note: MUST NOT be populated when this is not supported by the HTTP server
7526 // framework as the route attribute should have low-cardinality and the URI path
7527 // can NOT substitute it.
7528 // SHOULD include the [application root] if there is one.
7529 //
7530 // [application root]: /docs/http/http-spans.md#http-server-definitions
7531 HTTPRouteKey = attribute.Key("http.route")
7532 )
7533
7534 // HTTPRequestBodySize returns an attribute KeyValue conforming to the
7535 // "http.request.body.size" semantic conventions. It represents the size of the
7536 // request payload body in bytes. This is the number of bytes transferred
7537 // excluding headers and is often, but not always, present as the
7538 // [Content-Length] header. For requests using transport encoding, this should be
7539 // the compressed size.
7540 //
7541 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7542 func HTTPRequestBodySize(val int) attribute.KeyValue {
7543 return HTTPRequestBodySizeKey.Int(val)
7544 }
7545
7546 // HTTPRequestHeader returns an attribute KeyValue conforming to the
7547 // "http.request.header" semantic conventions. It represents the HTTP request
7548 // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
7549 // being the header values.
7550 func HTTPRequestHeader(key string, val ...string) attribute.KeyValue {
7551 return attribute.StringSlice("http.request.header."+key, val)
7552 }
7553
7554 // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
7555 // "http.request.method_original" semantic conventions. It represents the
7556 // original HTTP method sent by the client in the request line.
7557 func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
7558 return HTTPRequestMethodOriginalKey.String(val)
7559 }
7560
7561 // HTTPRequestResendCount returns an attribute KeyValue conforming to the
7562 // "http.request.resend_count" semantic conventions. It represents the ordinal
7563 // number of request resending attempt (for any reason, including redirects).
7564 func HTTPRequestResendCount(val int) attribute.KeyValue {
7565 return HTTPRequestResendCountKey.Int(val)
7566 }
7567
7568 // HTTPRequestSize returns an attribute KeyValue conforming to the
7569 // "http.request.size" semantic conventions. It represents the total size of the
7570 // request in bytes. This should be the total number of bytes sent over the wire,
7571 // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
7572 // and request body if any.
7573 func HTTPRequestSize(val int) attribute.KeyValue {
7574 return HTTPRequestSizeKey.Int(val)
7575 }
7576
7577 // HTTPResponseBodySize returns an attribute KeyValue conforming to the
7578 // "http.response.body.size" semantic conventions. It represents the size of the
7579 // response payload body in bytes. This is the number of bytes transferred
7580 // excluding headers and is often, but not always, present as the
7581 // [Content-Length] header. For requests using transport encoding, this should be
7582 // the compressed size.
7583 //
7584 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7585 func HTTPResponseBodySize(val int) attribute.KeyValue {
7586 return HTTPResponseBodySizeKey.Int(val)
7587 }
7588
7589 // HTTPResponseHeader returns an attribute KeyValue conforming to the
7590 // "http.response.header" semantic conventions. It represents the HTTP response
7591 // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
7592 // being the header values.
7593 func HTTPResponseHeader(key string, val ...string) attribute.KeyValue {
7594 return attribute.StringSlice("http.response.header."+key, val)
7595 }
7596
7597 // HTTPResponseSize returns an attribute KeyValue conforming to the
7598 // "http.response.size" semantic conventions. It represents the total size of the
7599 // response in bytes. This should be the total number of bytes sent over the
7600 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
7601 // headers, and response body and trailers if any.
7602 func HTTPResponseSize(val int) attribute.KeyValue {
7603 return HTTPResponseSizeKey.Int(val)
7604 }
7605
7606 // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
7607 // "http.response.status_code" semantic conventions. It represents the
7608 // [HTTP response status code].
7609 //
7610 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
7611 func HTTPResponseStatusCode(val int) attribute.KeyValue {
7612 return HTTPResponseStatusCodeKey.Int(val)
7613 }
7614
7615 // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
7616 // semantic conventions. It represents the matched route, that is, the path
7617 // template in the format used by the respective server framework.
7618 func HTTPRoute(val string) attribute.KeyValue {
7619 return HTTPRouteKey.String(val)
7620 }
7621
7622 // Enum values for http.connection.state
7623 var (
7624 // active state.
7625 // Stability: development
7626 HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
7627 // idle state.
7628 // Stability: development
7629 HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
7630 )
7631
7632 // Enum values for http.request.method
7633 var (
7634 // CONNECT method.
7635 // Stability: stable
7636 HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
7637 // DELETE method.
7638 // Stability: stable
7639 HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
7640 // GET method.
7641 // Stability: stable
7642 HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
7643 // HEAD method.
7644 // Stability: stable
7645 HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
7646 // OPTIONS method.
7647 // Stability: stable
7648 HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
7649 // PATCH method.
7650 // Stability: stable
7651 HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
7652 // POST method.
7653 // Stability: stable
7654 HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
7655 // PUT method.
7656 // Stability: stable
7657 HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
7658 // TRACE method.
7659 // Stability: stable
7660 HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
7661 // Any HTTP method that the instrumentation has no prior knowledge of.
7662 // Stability: stable
7663 HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
7664 )
7665
7666 // Namespace: hw
7667 const (
7668 // HwBatteryCapacityKey is the attribute Key conforming to the
7669 // "hw.battery.capacity" semantic conventions. It represents the design capacity
7670 // in Watts-hours or Amper-hours.
7671 //
7672 // Type: string
7673 // RequirementLevel: Recommended
7674 // Stability: Development
7675 //
7676 // Examples: "9.3Ah", "50Wh"
7677 HwBatteryCapacityKey = attribute.Key("hw.battery.capacity")
7678
7679 // HwBatteryChemistryKey is the attribute Key conforming to the
7680 // "hw.battery.chemistry" semantic conventions. It represents the battery
7681 // [chemistry], e.g. Lithium-Ion, Nickel-Cadmium, etc.
7682 //
7683 // Type: string
7684 // RequirementLevel: Recommended
7685 // Stability: Development
7686 //
7687 // Examples: "Li-ion", "NiMH"
7688 //
7689 // [chemistry]: https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html
7690 HwBatteryChemistryKey = attribute.Key("hw.battery.chemistry")
7691
7692 // HwBatteryStateKey is the attribute Key conforming to the "hw.battery.state"
7693 // semantic conventions. It represents the current state of the battery.
7694 //
7695 // Type: Enum
7696 // RequirementLevel: Recommended
7697 // Stability: Development
7698 //
7699 // Examples:
7700 HwBatteryStateKey = attribute.Key("hw.battery.state")
7701
7702 // HwBiosVersionKey is the attribute Key conforming to the "hw.bios_version"
7703 // semantic conventions. It represents the BIOS version of the hardware
7704 // component.
7705 //
7706 // Type: string
7707 // RequirementLevel: Recommended
7708 // Stability: Development
7709 //
7710 // Examples: "1.2.3"
7711 HwBiosVersionKey = attribute.Key("hw.bios_version")
7712
7713 // HwDriverVersionKey is the attribute Key conforming to the "hw.driver_version"
7714 // semantic conventions. It represents the driver version for the hardware
7715 // component.
7716 //
7717 // Type: string
7718 // RequirementLevel: Recommended
7719 // Stability: Development
7720 //
7721 // Examples: "10.2.1-3"
7722 HwDriverVersionKey = attribute.Key("hw.driver_version")
7723
7724 // HwEnclosureTypeKey is the attribute Key conforming to the "hw.enclosure.type"
7725 // semantic conventions. It represents the type of the enclosure (useful for
7726 // modular systems).
7727 //
7728 // Type: string
7729 // RequirementLevel: Recommended
7730 // Stability: Development
7731 //
7732 // Examples: "Computer", "Storage", "Switch"
7733 HwEnclosureTypeKey = attribute.Key("hw.enclosure.type")
7734
7735 // HwFirmwareVersionKey is the attribute Key conforming to the
7736 // "hw.firmware_version" semantic conventions. It represents the firmware
7737 // version of the hardware component.
7738 //
7739 // Type: string
7740 // RequirementLevel: Recommended
7741 // Stability: Development
7742 //
7743 // Examples: "2.0.1"
7744 HwFirmwareVersionKey = attribute.Key("hw.firmware_version")
7745
7746 // HwGpuTaskKey is the attribute Key conforming to the "hw.gpu.task" semantic
7747 // conventions. It represents the type of task the GPU is performing.
7748 //
7749 // Type: Enum
7750 // RequirementLevel: Recommended
7751 // Stability: Development
7752 //
7753 // Examples:
7754 HwGpuTaskKey = attribute.Key("hw.gpu.task")
7755
7756 // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
7757 // It represents an identifier for the hardware component, unique within the
7758 // monitored host.
7759 //
7760 // Type: string
7761 // RequirementLevel: Recommended
7762 // Stability: Development
7763 //
7764 // Examples: "win32battery_battery_testsysa33_1"
7765 HwIDKey = attribute.Key("hw.id")
7766
7767 // HwLimitTypeKey is the attribute Key conforming to the "hw.limit_type"
7768 // semantic conventions. It represents the type of limit for hardware
7769 // components.
7770 //
7771 // Type: Enum
7772 // RequirementLevel: Recommended
7773 // Stability: Development
7774 //
7775 // Examples:
7776 HwLimitTypeKey = attribute.Key("hw.limit_type")
7777
7778 // HwLogicalDiskRaidLevelKey is the attribute Key conforming to the
7779 // "hw.logical_disk.raid_level" semantic conventions. It represents the RAID
7780 // Level of the logical disk.
7781 //
7782 // Type: string
7783 // RequirementLevel: Recommended
7784 // Stability: Development
7785 //
7786 // Examples: "RAID0+1", "RAID5", "RAID10"
7787 HwLogicalDiskRaidLevelKey = attribute.Key("hw.logical_disk.raid_level")
7788
7789 // HwLogicalDiskStateKey is the attribute Key conforming to the
7790 // "hw.logical_disk.state" semantic conventions. It represents the state of the
7791 // logical disk space usage.
7792 //
7793 // Type: Enum
7794 // RequirementLevel: Recommended
7795 // Stability: Development
7796 //
7797 // Examples:
7798 HwLogicalDiskStateKey = attribute.Key("hw.logical_disk.state")
7799
7800 // HwMemoryTypeKey is the attribute Key conforming to the "hw.memory.type"
7801 // semantic conventions. It represents the type of the memory module.
7802 //
7803 // Type: string
7804 // RequirementLevel: Recommended
7805 // Stability: Development
7806 //
7807 // Examples: "DDR4", "DDR5", "LPDDR5"
7808 HwMemoryTypeKey = attribute.Key("hw.memory.type")
7809
7810 // HwModelKey is the attribute Key conforming to the "hw.model" semantic
7811 // conventions. It represents the descriptive model name of the hardware
7812 // component.
7813 //
7814 // Type: string
7815 // RequirementLevel: Recommended
7816 // Stability: Development
7817 //
7818 // Examples: "PERC H740P", "Intel(R) Core(TM) i7-10700K", "Dell XPS 15 Battery"
7819 HwModelKey = attribute.Key("hw.model")
7820
7821 // HwNameKey is the attribute Key conforming to the "hw.name" semantic
7822 // conventions. It represents an easily-recognizable name for the hardware
7823 // component.
7824 //
7825 // Type: string
7826 // RequirementLevel: Recommended
7827 // Stability: Development
7828 //
7829 // Examples: "eth0"
7830 HwNameKey = attribute.Key("hw.name")
7831
7832 // HwNetworkLogicalAddressesKey is the attribute Key conforming to the
7833 // "hw.network.logical_addresses" semantic conventions. It represents the
7834 // logical addresses of the adapter (e.g. IP address, or WWPN).
7835 //
7836 // Type: string[]
7837 // RequirementLevel: Recommended
7838 // Stability: Development
7839 //
7840 // Examples: "172.16.8.21", "57.11.193.42"
7841 HwNetworkLogicalAddressesKey = attribute.Key("hw.network.logical_addresses")
7842
7843 // HwNetworkPhysicalAddressKey is the attribute Key conforming to the
7844 // "hw.network.physical_address" semantic conventions. It represents the
7845 // physical address of the adapter (e.g. MAC address, or WWNN).
7846 //
7847 // Type: string
7848 // RequirementLevel: Recommended
7849 // Stability: Development
7850 //
7851 // Examples: "00-90-F5-E9-7B-36"
7852 HwNetworkPhysicalAddressKey = attribute.Key("hw.network.physical_address")
7853
7854 // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
7855 // conventions. It represents the unique identifier of the parent component
7856 // (typically the `hw.id` attribute of the enclosure, or disk controller).
7857 //
7858 // Type: string
7859 // RequirementLevel: Recommended
7860 // Stability: Development
7861 //
7862 // Examples: "dellStorage_perc_0"
7863 HwParentKey = attribute.Key("hw.parent")
7864
7865 // HwPhysicalDiskSmartAttributeKey is the attribute Key conforming to the
7866 // "hw.physical_disk.smart_attribute" semantic conventions. It represents the
7867 // [S.M.A.R.T.] (Self-Monitoring, Analysis, and Reporting Technology) attribute
7868 // of the physical disk.
7869 //
7870 // Type: string
7871 // RequirementLevel: Recommended
7872 // Stability: Development
7873 //
7874 // Examples: "Spin Retry Count", "Seek Error Rate", "Raw Read Error Rate"
7875 //
7876 // [S.M.A.R.T.]: https://wikipedia.org/wiki/S.M.A.R.T.
7877 HwPhysicalDiskSmartAttributeKey = attribute.Key("hw.physical_disk.smart_attribute")
7878
7879 // HwPhysicalDiskStateKey is the attribute Key conforming to the
7880 // "hw.physical_disk.state" semantic conventions. It represents the state of the
7881 // physical disk endurance utilization.
7882 //
7883 // Type: Enum
7884 // RequirementLevel: Recommended
7885 // Stability: Development
7886 //
7887 // Examples:
7888 HwPhysicalDiskStateKey = attribute.Key("hw.physical_disk.state")
7889
7890 // HwPhysicalDiskTypeKey is the attribute Key conforming to the
7891 // "hw.physical_disk.type" semantic conventions. It represents the type of the
7892 // physical disk.
7893 //
7894 // Type: string
7895 // RequirementLevel: Recommended
7896 // Stability: Development
7897 //
7898 // Examples: "HDD", "SSD", "10K"
7899 HwPhysicalDiskTypeKey = attribute.Key("hw.physical_disk.type")
7900
7901 // HwSensorLocationKey is the attribute Key conforming to the
7902 // "hw.sensor_location" semantic conventions. It represents the location of the
7903 // sensor.
7904 //
7905 // Type: string
7906 // RequirementLevel: Recommended
7907 // Stability: Development
7908 //
7909 // Examples: "cpu0", "ps1", "INLET", "CPU0_DIE", "AMBIENT", "MOTHERBOARD", "PS0
7910 // V3_3", "MAIN_12V", "CPU_VCORE"
7911 HwSensorLocationKey = attribute.Key("hw.sensor_location")
7912
7913 // HwSerialNumberKey is the attribute Key conforming to the "hw.serial_number"
7914 // semantic conventions. It represents the serial number of the hardware
7915 // component.
7916 //
7917 // Type: string
7918 // RequirementLevel: Recommended
7919 // Stability: Development
7920 //
7921 // Examples: "CNFCP0123456789"
7922 HwSerialNumberKey = attribute.Key("hw.serial_number")
7923
7924 // HwStateKey is the attribute Key conforming to the "hw.state" semantic
7925 // conventions. It represents the current state of the component.
7926 //
7927 // Type: Enum
7928 // RequirementLevel: Recommended
7929 // Stability: Development
7930 //
7931 // Examples:
7932 HwStateKey = attribute.Key("hw.state")
7933
7934 // HwTapeDriveOperationTypeKey is the attribute Key conforming to the
7935 // "hw.tape_drive.operation_type" semantic conventions. It represents the type
7936 // of tape drive operation.
7937 //
7938 // Type: Enum
7939 // RequirementLevel: Recommended
7940 // Stability: Development
7941 //
7942 // Examples:
7943 HwTapeDriveOperationTypeKey = attribute.Key("hw.tape_drive.operation_type")
7944
7945 // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
7946 // conventions. It represents the type of the component.
7947 //
7948 // Type: Enum
7949 // RequirementLevel: Recommended
7950 // Stability: Development
7951 //
7952 // Examples:
7953 // Note: Describes the category of the hardware component for which `hw.state`
7954 // is being reported. For example, `hw.type=temperature` along with
7955 // `hw.state=degraded` would indicate that the temperature of the hardware
7956 // component has been reported as `degraded`.
7957 HwTypeKey = attribute.Key("hw.type")
7958
7959 // HwVendorKey is the attribute Key conforming to the "hw.vendor" semantic
7960 // conventions. It represents the vendor name of the hardware component.
7961 //
7962 // Type: string
7963 // RequirementLevel: Recommended
7964 // Stability: Development
7965 //
7966 // Examples: "Dell", "HP", "Intel", "AMD", "LSI", "Lenovo"
7967 HwVendorKey = attribute.Key("hw.vendor")
7968 )
7969
7970 // HwBatteryCapacity returns an attribute KeyValue conforming to the
7971 // "hw.battery.capacity" semantic conventions. It represents the design capacity
7972 // in Watts-hours or Amper-hours.
7973 func HwBatteryCapacity(val string) attribute.KeyValue {
7974 return HwBatteryCapacityKey.String(val)
7975 }
7976
7977 // HwBatteryChemistry returns an attribute KeyValue conforming to the
7978 // "hw.battery.chemistry" semantic conventions. It represents the battery
7979 // [chemistry], e.g. Lithium-Ion, Nickel-Cadmium, etc.
7980 //
7981 // [chemistry]: https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html
7982 func HwBatteryChemistry(val string) attribute.KeyValue {
7983 return HwBatteryChemistryKey.String(val)
7984 }
7985
7986 // HwBiosVersion returns an attribute KeyValue conforming to the
7987 // "hw.bios_version" semantic conventions. It represents the BIOS version of the
7988 // hardware component.
7989 func HwBiosVersion(val string) attribute.KeyValue {
7990 return HwBiosVersionKey.String(val)
7991 }
7992
7993 // HwDriverVersion returns an attribute KeyValue conforming to the
7994 // "hw.driver_version" semantic conventions. It represents the driver version for
7995 // the hardware component.
7996 func HwDriverVersion(val string) attribute.KeyValue {
7997 return HwDriverVersionKey.String(val)
7998 }
7999
8000 // HwEnclosureType returns an attribute KeyValue conforming to the
8001 // "hw.enclosure.type" semantic conventions. It represents the type of the
8002 // enclosure (useful for modular systems).
8003 func HwEnclosureType(val string) attribute.KeyValue {
8004 return HwEnclosureTypeKey.String(val)
8005 }
8006
8007 // HwFirmwareVersion returns an attribute KeyValue conforming to the
8008 // "hw.firmware_version" semantic conventions. It represents the firmware version
8009 // of the hardware component.
8010 func HwFirmwareVersion(val string) attribute.KeyValue {
8011 return HwFirmwareVersionKey.String(val)
8012 }
8013
8014 // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
8015 // conventions. It represents an identifier for the hardware component, unique
8016 // within the monitored host.
8017 func HwID(val string) attribute.KeyValue {
8018 return HwIDKey.String(val)
8019 }
8020
8021 // HwLogicalDiskRaidLevel returns an attribute KeyValue conforming to the
8022 // "hw.logical_disk.raid_level" semantic conventions. It represents the RAID
8023 // Level of the logical disk.
8024 func HwLogicalDiskRaidLevel(val string) attribute.KeyValue {
8025 return HwLogicalDiskRaidLevelKey.String(val)
8026 }
8027
8028 // HwMemoryType returns an attribute KeyValue conforming to the "hw.memory.type"
8029 // semantic conventions. It represents the type of the memory module.
8030 func HwMemoryType(val string) attribute.KeyValue {
8031 return HwMemoryTypeKey.String(val)
8032 }
8033
8034 // HwModel returns an attribute KeyValue conforming to the "hw.model" semantic
8035 // conventions. It represents the descriptive model name of the hardware
8036 // component.
8037 func HwModel(val string) attribute.KeyValue {
8038 return HwModelKey.String(val)
8039 }
8040
8041 // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
8042 // conventions. It represents an easily-recognizable name for the hardware
8043 // component.
8044 func HwName(val string) attribute.KeyValue {
8045 return HwNameKey.String(val)
8046 }
8047
8048 // HwNetworkLogicalAddresses returns an attribute KeyValue conforming to the
8049 // "hw.network.logical_addresses" semantic conventions. It represents the logical
8050 // addresses of the adapter (e.g. IP address, or WWPN).
8051 func HwNetworkLogicalAddresses(val ...string) attribute.KeyValue {
8052 return HwNetworkLogicalAddressesKey.StringSlice(val)
8053 }
8054
8055 // HwNetworkPhysicalAddress returns an attribute KeyValue conforming to the
8056 // "hw.network.physical_address" semantic conventions. It represents the physical
8057 // address of the adapter (e.g. MAC address, or WWNN).
8058 func HwNetworkPhysicalAddress(val string) attribute.KeyValue {
8059 return HwNetworkPhysicalAddressKey.String(val)
8060 }
8061
8062 // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
8063 // conventions. It represents the unique identifier of the parent component
8064 // (typically the `hw.id` attribute of the enclosure, or disk controller).
8065 func HwParent(val string) attribute.KeyValue {
8066 return HwParentKey.String(val)
8067 }
8068
8069 // HwPhysicalDiskSmartAttribute returns an attribute KeyValue conforming to the
8070 // "hw.physical_disk.smart_attribute" semantic conventions. It represents the
8071 // [S.M.A.R.T.] (Self-Monitoring, Analysis, and Reporting Technology) attribute
8072 // of the physical disk.
8073 //
8074 // [S.M.A.R.T.]: https://wikipedia.org/wiki/S.M.A.R.T.
8075 func HwPhysicalDiskSmartAttribute(val string) attribute.KeyValue {
8076 return HwPhysicalDiskSmartAttributeKey.String(val)
8077 }
8078
8079 // HwPhysicalDiskType returns an attribute KeyValue conforming to the
8080 // "hw.physical_disk.type" semantic conventions. It represents the type of the
8081 // physical disk.
8082 func HwPhysicalDiskType(val string) attribute.KeyValue {
8083 return HwPhysicalDiskTypeKey.String(val)
8084 }
8085
8086 // HwSensorLocation returns an attribute KeyValue conforming to the
8087 // "hw.sensor_location" semantic conventions. It represents the location of the
8088 // sensor.
8089 func HwSensorLocation(val string) attribute.KeyValue {
8090 return HwSensorLocationKey.String(val)
8091 }
8092
8093 // HwSerialNumber returns an attribute KeyValue conforming to the
8094 // "hw.serial_number" semantic conventions. It represents the serial number of
8095 // the hardware component.
8096 func HwSerialNumber(val string) attribute.KeyValue {
8097 return HwSerialNumberKey.String(val)
8098 }
8099
8100 // HwVendor returns an attribute KeyValue conforming to the "hw.vendor" semantic
8101 // conventions. It represents the vendor name of the hardware component.
8102 func HwVendor(val string) attribute.KeyValue {
8103 return HwVendorKey.String(val)
8104 }
8105
8106 // Enum values for hw.battery.state
8107 var (
8108 // Charging
8109 // Stability: development
8110 HwBatteryStateCharging = HwBatteryStateKey.String("charging")
8111 // Discharging
8112 // Stability: development
8113 HwBatteryStateDischarging = HwBatteryStateKey.String("discharging")
8114 )
8115
8116 // Enum values for hw.gpu.task
8117 var (
8118 // Decoder
8119 // Stability: development
8120 HwGpuTaskDecoder = HwGpuTaskKey.String("decoder")
8121 // Encoder
8122 // Stability: development
8123 HwGpuTaskEncoder = HwGpuTaskKey.String("encoder")
8124 // General
8125 // Stability: development
8126 HwGpuTaskGeneral = HwGpuTaskKey.String("general")
8127 )
8128
8129 // Enum values for hw.limit_type
8130 var (
8131 // Critical
8132 // Stability: development
8133 HwLimitTypeCritical = HwLimitTypeKey.String("critical")
8134 // Degraded
8135 // Stability: development
8136 HwLimitTypeDegraded = HwLimitTypeKey.String("degraded")
8137 // High Critical
8138 // Stability: development
8139 HwLimitTypeHighCritical = HwLimitTypeKey.String("high.critical")
8140 // High Degraded
8141 // Stability: development
8142 HwLimitTypeHighDegraded = HwLimitTypeKey.String("high.degraded")
8143 // Low Critical
8144 // Stability: development
8145 HwLimitTypeLowCritical = HwLimitTypeKey.String("low.critical")
8146 // Low Degraded
8147 // Stability: development
8148 HwLimitTypeLowDegraded = HwLimitTypeKey.String("low.degraded")
8149 // Maximum
8150 // Stability: development
8151 HwLimitTypeMax = HwLimitTypeKey.String("max")
8152 // Throttled
8153 // Stability: development
8154 HwLimitTypeThrottled = HwLimitTypeKey.String("throttled")
8155 // Turbo
8156 // Stability: development
8157 HwLimitTypeTurbo = HwLimitTypeKey.String("turbo")
8158 )
8159
8160 // Enum values for hw.logical_disk.state
8161 var (
8162 // Used
8163 // Stability: development
8164 HwLogicalDiskStateUsed = HwLogicalDiskStateKey.String("used")
8165 // Free
8166 // Stability: development
8167 HwLogicalDiskStateFree = HwLogicalDiskStateKey.String("free")
8168 )
8169
8170 // Enum values for hw.physical_disk.state
8171 var (
8172 // Remaining
8173 // Stability: development
8174 HwPhysicalDiskStateRemaining = HwPhysicalDiskStateKey.String("remaining")
8175 )
8176
8177 // Enum values for hw.state
8178 var (
8179 // Degraded
8180 // Stability: development
8181 HwStateDegraded = HwStateKey.String("degraded")
8182 // Failed
8183 // Stability: development
8184 HwStateFailed = HwStateKey.String("failed")
8185 // Needs Cleaning
8186 // Stability: development
8187 HwStateNeedsCleaning = HwStateKey.String("needs_cleaning")
8188 // OK
8189 // Stability: development
8190 HwStateOk = HwStateKey.String("ok")
8191 // Predicted Failure
8192 // Stability: development
8193 HwStatePredictedFailure = HwStateKey.String("predicted_failure")
8194 )
8195
8196 // Enum values for hw.tape_drive.operation_type
8197 var (
8198 // Mount
8199 // Stability: development
8200 HwTapeDriveOperationTypeMount = HwTapeDriveOperationTypeKey.String("mount")
8201 // Unmount
8202 // Stability: development
8203 HwTapeDriveOperationTypeUnmount = HwTapeDriveOperationTypeKey.String("unmount")
8204 // Clean
8205 // Stability: development
8206 HwTapeDriveOperationTypeClean = HwTapeDriveOperationTypeKey.String("clean")
8207 )
8208
8209 // Enum values for hw.type
8210 var (
8211 // Battery
8212 // Stability: development
8213 HwTypeBattery = HwTypeKey.String("battery")
8214 // CPU
8215 // Stability: development
8216 HwTypeCPU = HwTypeKey.String("cpu")
8217 // Disk controller
8218 // Stability: development
8219 HwTypeDiskController = HwTypeKey.String("disk_controller")
8220 // Enclosure
8221 // Stability: development
8222 HwTypeEnclosure = HwTypeKey.String("enclosure")
8223 // Fan
8224 // Stability: development
8225 HwTypeFan = HwTypeKey.String("fan")
8226 // GPU
8227 // Stability: development
8228 HwTypeGpu = HwTypeKey.String("gpu")
8229 // Logical disk
8230 // Stability: development
8231 HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
8232 // Memory
8233 // Stability: development
8234 HwTypeMemory = HwTypeKey.String("memory")
8235 // Network
8236 // Stability: development
8237 HwTypeNetwork = HwTypeKey.String("network")
8238 // Physical disk
8239 // Stability: development
8240 HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
8241 // Power supply
8242 // Stability: development
8243 HwTypePowerSupply = HwTypeKey.String("power_supply")
8244 // Tape drive
8245 // Stability: development
8246 HwTypeTapeDrive = HwTypeKey.String("tape_drive")
8247 // Temperature
8248 // Stability: development
8249 HwTypeTemperature = HwTypeKey.String("temperature")
8250 // Voltage
8251 // Stability: development
8252 HwTypeVoltage = HwTypeKey.String("voltage")
8253 )
8254
8255 // Namespace: ios
8256 const (
8257 // IOSAppStateKey is the attribute Key conforming to the "ios.app.state"
8258 // semantic conventions. It represents the this attribute represents the state
8259 // of the application.
8260 //
8261 // Type: Enum
8262 // RequirementLevel: Recommended
8263 // Stability: Development
8264 //
8265 // Examples:
8266 // Note: The iOS lifecycle states are defined in the
8267 // [UIApplicationDelegate documentation], and from which the `OS terminology`
8268 // column values are derived.
8269 //
8270 // [UIApplicationDelegate documentation]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate
8271 IOSAppStateKey = attribute.Key("ios.app.state")
8272 )
8273
8274 // Enum values for ios.app.state
8275 var (
8276 // The app has become `active`. Associated with UIKit notification
8277 // `applicationDidBecomeActive`.
8278 //
8279 // Stability: development
8280 IOSAppStateActive = IOSAppStateKey.String("active")
8281 // The app is now `inactive`. Associated with UIKit notification
8282 // `applicationWillResignActive`.
8283 //
8284 // Stability: development
8285 IOSAppStateInactive = IOSAppStateKey.String("inactive")
8286 // The app is now in the background. This value is associated with UIKit
8287 // notification `applicationDidEnterBackground`.
8288 //
8289 // Stability: development
8290 IOSAppStateBackground = IOSAppStateKey.String("background")
8291 // The app is now in the foreground. This value is associated with UIKit
8292 // notification `applicationWillEnterForeground`.
8293 //
8294 // Stability: development
8295 IOSAppStateForeground = IOSAppStateKey.String("foreground")
8296 // The app is about to terminate. Associated with UIKit notification
8297 // `applicationWillTerminate`.
8298 //
8299 // Stability: development
8300 IOSAppStateTerminate = IOSAppStateKey.String("terminate")
8301 )
8302
8303 // Namespace: k8s
8304 const (
8305 // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
8306 // semantic conventions. It represents the name of the cluster.
8307 //
8308 // Type: string
8309 // RequirementLevel: Recommended
8310 // Stability: Development
8311 //
8312 // Examples: "opentelemetry-cluster"
8313 K8SClusterNameKey = attribute.Key("k8s.cluster.name")
8314
8315 // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
8316 // semantic conventions. It represents a pseudo-ID for the cluster, set to the
8317 // UID of the `kube-system` namespace.
8318 //
8319 // Type: string
8320 // RequirementLevel: Recommended
8321 // Stability: Development
8322 //
8323 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
8324 // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
8325 // added, we will recommend collecting the `k8s.cluster.uid` through the
8326 // official APIs. In the meantime, we are able to use the `uid` of the
8327 // `kube-system` namespace as a proxy for cluster ID. Read on for the
8328 // rationale.
8329 //
8330 // Every object created in a K8s cluster is assigned a distinct UID. The
8331 // `kube-system` namespace is used by Kubernetes itself and will exist
8332 // for the lifetime of the cluster. Using the `uid` of the `kube-system`
8333 // namespace is a reasonable proxy for the K8s ClusterID as it will only
8334 // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
8335 // UUIDs as standardized by
8336 // [ISO/IEC 9834-8 and ITU-T X.667].
8337 // Which states:
8338 //
8339 // > If generated according to one of the mechanisms defined in Rec.
8340 // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
8341 // > different from all other UUIDs generated before 3603 A.D., or is
8342 // > extremely likely to be different (depending on the mechanism chosen).
8343 //
8344 // Therefore, UIDs between clusters should be extremely unlikely to
8345 // conflict.
8346 //
8347 // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
8348 K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
8349
8350 // K8SContainerNameKey is the attribute Key conforming to the
8351 // "k8s.container.name" semantic conventions. It represents the name of the
8352 // Container from Pod specification, must be unique within a Pod. Container
8353 // runtime usually uses different globally unique name (`container.name`).
8354 //
8355 // Type: string
8356 // RequirementLevel: Recommended
8357 // Stability: Development
8358 //
8359 // Examples: "redis"
8360 K8SContainerNameKey = attribute.Key("k8s.container.name")
8361
8362 // K8SContainerRestartCountKey is the attribute Key conforming to the
8363 // "k8s.container.restart_count" semantic conventions. It represents the number
8364 // of times the container was restarted. This attribute can be used to identify
8365 // a particular container (running or stopped) within a container spec.
8366 //
8367 // Type: int
8368 // RequirementLevel: Recommended
8369 // Stability: Development
8370 //
8371 // Examples:
8372 K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
8373
8374 // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
8375 // the "k8s.container.status.last_terminated_reason" semantic conventions. It
8376 // represents the last terminated reason of the Container.
8377 //
8378 // Type: string
8379 // RequirementLevel: Recommended
8380 // Stability: Development
8381 //
8382 // Examples: "Evicted", "Error"
8383 K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
8384
8385 // K8SContainerStatusReasonKey is the attribute Key conforming to the
8386 // "k8s.container.status.reason" semantic conventions. It represents the reason
8387 // for the container state. Corresponds to the `reason` field of the:
8388 // [K8s ContainerStateWaiting] or [K8s ContainerStateTerminated].
8389 //
8390 // Type: Enum
8391 // RequirementLevel: Recommended
8392 // Stability: Development
8393 //
8394 // Examples: "ContainerCreating", "CrashLoopBackOff",
8395 // "CreateContainerConfigError", "ErrImagePull", "ImagePullBackOff",
8396 // "OOMKilled", "Completed", "Error", "ContainerCannotRun"
8397 //
8398 // [K8s ContainerStateWaiting]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstatewaiting-v1-core
8399 // [K8s ContainerStateTerminated]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstateterminated-v1-core
8400 K8SContainerStatusReasonKey = attribute.Key("k8s.container.status.reason")
8401
8402 // K8SContainerStatusStateKey is the attribute Key conforming to the
8403 // "k8s.container.status.state" semantic conventions. It represents the state of
8404 // the container. [K8s ContainerState].
8405 //
8406 // Type: Enum
8407 // RequirementLevel: Recommended
8408 // Stability: Development
8409 //
8410 // Examples: "terminated", "running", "waiting"
8411 //
8412 // [K8s ContainerState]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstate-v1-core
8413 K8SContainerStatusStateKey = attribute.Key("k8s.container.status.state")
8414
8415 // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
8416 // semantic conventions. It represents the name of the CronJob.
8417 //
8418 // Type: string
8419 // RequirementLevel: Recommended
8420 // Stability: Development
8421 //
8422 // Examples: "opentelemetry"
8423 K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
8424
8425 // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
8426 // semantic conventions. It represents the UID of the CronJob.
8427 //
8428 // Type: string
8429 // RequirementLevel: Recommended
8430 // Stability: Development
8431 //
8432 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8433 K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
8434
8435 // K8SDaemonSetNameKey is the attribute Key conforming to the
8436 // "k8s.daemonset.name" semantic conventions. It represents the name of the
8437 // DaemonSet.
8438 //
8439 // Type: string
8440 // RequirementLevel: Recommended
8441 // Stability: Development
8442 //
8443 // Examples: "opentelemetry"
8444 K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
8445
8446 // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
8447 // semantic conventions. It represents the UID of the DaemonSet.
8448 //
8449 // Type: string
8450 // RequirementLevel: Recommended
8451 // Stability: Development
8452 //
8453 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8454 K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
8455
8456 // K8SDeploymentNameKey is the attribute Key conforming to the
8457 // "k8s.deployment.name" semantic conventions. It represents the name of the
8458 // Deployment.
8459 //
8460 // Type: string
8461 // RequirementLevel: Recommended
8462 // Stability: Development
8463 //
8464 // Examples: "opentelemetry"
8465 K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
8466
8467 // K8SDeploymentUIDKey is the attribute Key conforming to the
8468 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
8469 // Deployment.
8470 //
8471 // Type: string
8472 // RequirementLevel: Recommended
8473 // Stability: Development
8474 //
8475 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8476 K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
8477
8478 // K8SHPAMetricTypeKey is the attribute Key conforming to the
8479 // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
8480 // source for the horizontal pod autoscaler.
8481 //
8482 // Type: string
8483 // RequirementLevel: Recommended
8484 // Stability: Development
8485 //
8486 // Examples: "Resource", "ContainerResource"
8487 // Note: This attribute reflects the `type` field of spec.metrics[] in the HPA.
8488 K8SHPAMetricTypeKey = attribute.Key("k8s.hpa.metric.type")
8489
8490 // K8SHPANameKey is the attribute Key conforming to the "k8s.hpa.name" semantic
8491 // conventions. It represents the name of the horizontal pod autoscaler.
8492 //
8493 // Type: string
8494 // RequirementLevel: Recommended
8495 // Stability: Development
8496 //
8497 // Examples: "opentelemetry"
8498 K8SHPANameKey = attribute.Key("k8s.hpa.name")
8499
8500 // K8SHPAScaletargetrefAPIVersionKey is the attribute Key conforming to the
8501 // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
8502 // API version of the target resource to scale for the HorizontalPodAutoscaler.
8503 //
8504 // Type: string
8505 // RequirementLevel: Recommended
8506 // Stability: Development
8507 //
8508 // Examples: "apps/v1", "autoscaling/v2"
8509 // Note: This maps to the `apiVersion` field in the `scaleTargetRef` of the HPA
8510 // spec.
8511 K8SHPAScaletargetrefAPIVersionKey = attribute.Key("k8s.hpa.scaletargetref.api_version")
8512
8513 // K8SHPAScaletargetrefKindKey is the attribute Key conforming to the
8514 // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
8515 // the target resource to scale for the HorizontalPodAutoscaler.
8516 //
8517 // Type: string
8518 // RequirementLevel: Recommended
8519 // Stability: Development
8520 //
8521 // Examples: "Deployment", "StatefulSet"
8522 // Note: This maps to the `kind` field in the `scaleTargetRef` of the HPA spec.
8523 K8SHPAScaletargetrefKindKey = attribute.Key("k8s.hpa.scaletargetref.kind")
8524
8525 // K8SHPAScaletargetrefNameKey is the attribute Key conforming to the
8526 // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
8527 // the target resource to scale for the HorizontalPodAutoscaler.
8528 //
8529 // Type: string
8530 // RequirementLevel: Recommended
8531 // Stability: Development
8532 //
8533 // Examples: "my-deployment", "my-statefulset"
8534 // Note: This maps to the `name` field in the `scaleTargetRef` of the HPA spec.
8535 K8SHPAScaletargetrefNameKey = attribute.Key("k8s.hpa.scaletargetref.name")
8536
8537 // K8SHPAUIDKey is the attribute Key conforming to the "k8s.hpa.uid" semantic
8538 // conventions. It represents the UID of the horizontal pod autoscaler.
8539 //
8540 // Type: string
8541 // RequirementLevel: Recommended
8542 // Stability: Development
8543 //
8544 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8545 K8SHPAUIDKey = attribute.Key("k8s.hpa.uid")
8546
8547 // K8SHugepageSizeKey is the attribute Key conforming to the "k8s.hugepage.size"
8548 // semantic conventions. It represents the size (identifier) of the K8s huge
8549 // page.
8550 //
8551 // Type: string
8552 // RequirementLevel: Recommended
8553 // Stability: Development
8554 //
8555 // Examples: "2Mi"
8556 K8SHugepageSizeKey = attribute.Key("k8s.hugepage.size")
8557
8558 // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
8559 // conventions. It represents the name of the Job.
8560 //
8561 // Type: string
8562 // RequirementLevel: Recommended
8563 // Stability: Development
8564 //
8565 // Examples: "opentelemetry"
8566 K8SJobNameKey = attribute.Key("k8s.job.name")
8567
8568 // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
8569 // conventions. It represents the UID of the Job.
8570 //
8571 // Type: string
8572 // RequirementLevel: Recommended
8573 // Stability: Development
8574 //
8575 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8576 K8SJobUIDKey = attribute.Key("k8s.job.uid")
8577
8578 // K8SNamespaceNameKey is the attribute Key conforming to the
8579 // "k8s.namespace.name" semantic conventions. It represents the name of the
8580 // namespace that the pod is running in.
8581 //
8582 // Type: string
8583 // RequirementLevel: Recommended
8584 // Stability: Development
8585 //
8586 // Examples: "default"
8587 K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
8588
8589 // K8SNamespacePhaseKey is the attribute Key conforming to the
8590 // "k8s.namespace.phase" semantic conventions. It represents the phase of the
8591 // K8s namespace.
8592 //
8593 // Type: Enum
8594 // RequirementLevel: Recommended
8595 // Stability: Development
8596 //
8597 // Examples: "active", "terminating"
8598 // Note: This attribute aligns with the `phase` field of the
8599 // [K8s NamespaceStatus]
8600 //
8601 // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core
8602 K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase")
8603
8604 // K8SNodeConditionStatusKey is the attribute Key conforming to the
8605 // "k8s.node.condition.status" semantic conventions. It represents the status of
8606 // the condition, one of True, False, Unknown.
8607 //
8608 // Type: Enum
8609 // RequirementLevel: Recommended
8610 // Stability: Development
8611 //
8612 // Examples: "true", "false", "unknown"
8613 // Note: This attribute aligns with the `status` field of the
8614 // [NodeCondition]
8615 //
8616 // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
8617 K8SNodeConditionStatusKey = attribute.Key("k8s.node.condition.status")
8618
8619 // K8SNodeConditionTypeKey is the attribute Key conforming to the
8620 // "k8s.node.condition.type" semantic conventions. It represents the condition
8621 // type of a K8s Node.
8622 //
8623 // Type: Enum
8624 // RequirementLevel: Recommended
8625 // Stability: Development
8626 //
8627 // Examples: "Ready", "DiskPressure"
8628 // Note: K8s Node conditions as described
8629 // by [K8s documentation].
8630 //
8631 // This attribute aligns with the `type` field of the
8632 // [NodeCondition]
8633 //
8634 // The set of possible values is not limited to those listed here. Managed
8635 // Kubernetes environments,
8636 // or custom controllers MAY introduce additional node condition types.
8637 // When this occurs, the exact value as reported by the Kubernetes API SHOULD be
8638 // used.
8639 //
8640 // [K8s documentation]: https://v1-32.docs.kubernetes.io/docs/reference/node/node-status/#condition
8641 // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
8642 K8SNodeConditionTypeKey = attribute.Key("k8s.node.condition.type")
8643
8644 // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
8645 // semantic conventions. It represents the name of the Node.
8646 //
8647 // Type: string
8648 // RequirementLevel: Recommended
8649 // Stability: Development
8650 //
8651 // Examples: "node-1"
8652 K8SNodeNameKey = attribute.Key("k8s.node.name")
8653
8654 // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
8655 // conventions. It represents the UID of the Node.
8656 //
8657 // Type: string
8658 // RequirementLevel: Recommended
8659 // Stability: Development
8660 //
8661 // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
8662 K8SNodeUIDKey = attribute.Key("k8s.node.uid")
8663
8664 // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
8665 // conventions. It represents the name of the Pod.
8666 //
8667 // Type: string
8668 // RequirementLevel: Recommended
8669 // Stability: Development
8670 //
8671 // Examples: "opentelemetry-pod-autoconf"
8672 K8SPodNameKey = attribute.Key("k8s.pod.name")
8673
8674 // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
8675 // conventions. It represents the UID of the Pod.
8676 //
8677 // Type: string
8678 // RequirementLevel: Recommended
8679 // Stability: Development
8680 //
8681 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8682 K8SPodUIDKey = attribute.Key("k8s.pod.uid")
8683
8684 // K8SReplicaSetNameKey is the attribute Key conforming to the
8685 // "k8s.replicaset.name" semantic conventions. It represents the name of the
8686 // ReplicaSet.
8687 //
8688 // Type: string
8689 // RequirementLevel: Recommended
8690 // Stability: Development
8691 //
8692 // Examples: "opentelemetry"
8693 K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
8694
8695 // K8SReplicaSetUIDKey is the attribute Key conforming to the
8696 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
8697 // ReplicaSet.
8698 //
8699 // Type: string
8700 // RequirementLevel: Recommended
8701 // Stability: Development
8702 //
8703 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8704 K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
8705
8706 // K8SReplicationControllerNameKey is the attribute Key conforming to the
8707 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
8708 // of the replication controller.
8709 //
8710 // Type: string
8711 // RequirementLevel: Recommended
8712 // Stability: Development
8713 //
8714 // Examples: "opentelemetry"
8715 K8SReplicationControllerNameKey = attribute.Key("k8s.replicationcontroller.name")
8716
8717 // K8SReplicationControllerUIDKey is the attribute Key conforming to the
8718 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID
8719 // of the replication controller.
8720 //
8721 // Type: string
8722 // RequirementLevel: Recommended
8723 // Stability: Development
8724 //
8725 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8726 K8SReplicationControllerUIDKey = attribute.Key("k8s.replicationcontroller.uid")
8727
8728 // K8SResourceQuotaNameKey is the attribute Key conforming to the
8729 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
8730 // resource quota.
8731 //
8732 // Type: string
8733 // RequirementLevel: Recommended
8734 // Stability: Development
8735 //
8736 // Examples: "opentelemetry"
8737 K8SResourceQuotaNameKey = attribute.Key("k8s.resourcequota.name")
8738
8739 // K8SResourceQuotaResourceNameKey is the attribute Key conforming to the
8740 // "k8s.resourcequota.resource_name" semantic conventions. It represents the
8741 // name of the K8s resource a resource quota defines.
8742 //
8743 // Type: string
8744 // RequirementLevel: Recommended
8745 // Stability: Development
8746 //
8747 // Examples: "count/replicationcontrollers"
8748 // Note: The value for this attribute can be either the full
8749 // `count/<resource>[.<group>]` string (e.g., count/deployments.apps,
8750 // count/pods), or, for certain core Kubernetes resources, just the resource
8751 // name (e.g., pods, services, configmaps). Both forms are supported by
8752 // Kubernetes for object count quotas. See
8753 // [Kubernetes Resource Quotas documentation] for more details.
8754 //
8755 // [Kubernetes Resource Quotas documentation]: https://kubernetes.io/docs/concepts/policy/resource-quotas/#object-count-quota
8756 K8SResourceQuotaResourceNameKey = attribute.Key("k8s.resourcequota.resource_name")
8757
8758 // K8SResourceQuotaUIDKey is the attribute Key conforming to the
8759 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
8760 // resource quota.
8761 //
8762 // Type: string
8763 // RequirementLevel: Recommended
8764 // Stability: Development
8765 //
8766 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8767 K8SResourceQuotaUIDKey = attribute.Key("k8s.resourcequota.uid")
8768
8769 // K8SStatefulSetNameKey is the attribute Key conforming to the
8770 // "k8s.statefulset.name" semantic conventions. It represents the name of the
8771 // StatefulSet.
8772 //
8773 // Type: string
8774 // RequirementLevel: Recommended
8775 // Stability: Development
8776 //
8777 // Examples: "opentelemetry"
8778 K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
8779
8780 // K8SStatefulSetUIDKey is the attribute Key conforming to the
8781 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
8782 // StatefulSet.
8783 //
8784 // Type: string
8785 // RequirementLevel: Recommended
8786 // Stability: Development
8787 //
8788 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8789 K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
8790
8791 // K8SStorageclassNameKey is the attribute Key conforming to the
8792 // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
8793 // [StorageClass] object.
8794 //
8795 // Type: string
8796 // RequirementLevel: Recommended
8797 // Stability: Development
8798 //
8799 // Examples: "gold.storageclass.storage.k8s.io"
8800 //
8801 // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
8802 K8SStorageclassNameKey = attribute.Key("k8s.storageclass.name")
8803
8804 // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
8805 // semantic conventions. It represents the name of the K8s volume.
8806 //
8807 // Type: string
8808 // RequirementLevel: Recommended
8809 // Stability: Development
8810 //
8811 // Examples: "volume0"
8812 K8SVolumeNameKey = attribute.Key("k8s.volume.name")
8813
8814 // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
8815 // semantic conventions. It represents the type of the K8s volume.
8816 //
8817 // Type: Enum
8818 // RequirementLevel: Recommended
8819 // Stability: Development
8820 //
8821 // Examples: "emptyDir", "persistentVolumeClaim"
8822 K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
8823 )
8824
8825 // K8SClusterName returns an attribute KeyValue conforming to the
8826 // "k8s.cluster.name" semantic conventions. It represents the name of the
8827 // cluster.
8828 func K8SClusterName(val string) attribute.KeyValue {
8829 return K8SClusterNameKey.String(val)
8830 }
8831
8832 // K8SClusterUID returns an attribute KeyValue conforming to the
8833 // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
8834 // cluster, set to the UID of the `kube-system` namespace.
8835 func K8SClusterUID(val string) attribute.KeyValue {
8836 return K8SClusterUIDKey.String(val)
8837 }
8838
8839 // K8SContainerName returns an attribute KeyValue conforming to the
8840 // "k8s.container.name" semantic conventions. It represents the name of the
8841 // Container from Pod specification, must be unique within a Pod. Container
8842 // runtime usually uses different globally unique name (`container.name`).
8843 func K8SContainerName(val string) attribute.KeyValue {
8844 return K8SContainerNameKey.String(val)
8845 }
8846
8847 // K8SContainerRestartCount returns an attribute KeyValue conforming to the
8848 // "k8s.container.restart_count" semantic conventions. It represents the number
8849 // of times the container was restarted. This attribute can be used to identify a
8850 // particular container (running or stopped) within a container spec.
8851 func K8SContainerRestartCount(val int) attribute.KeyValue {
8852 return K8SContainerRestartCountKey.Int(val)
8853 }
8854
8855 // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
8856 // conforming to the "k8s.container.status.last_terminated_reason" semantic
8857 // conventions. It represents the last terminated reason of the Container.
8858 func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
8859 return K8SContainerStatusLastTerminatedReasonKey.String(val)
8860 }
8861
8862 // K8SCronJobAnnotation returns an attribute KeyValue conforming to the
8863 // "k8s.cronjob.annotation" semantic conventions. It represents the cronjob
8864 // annotation placed on the CronJob, the `<key>` being the annotation name, the
8865 // value being the annotation value.
8866 func K8SCronJobAnnotation(key string, val string) attribute.KeyValue {
8867 return attribute.String("k8s.cronjob.annotation."+key, val)
8868 }
8869
8870 // K8SCronJobLabel returns an attribute KeyValue conforming to the
8871 // "k8s.cronjob.label" semantic conventions. It represents the label placed on
8872 // the CronJob, the `<key>` being the label name, the value being the label
8873 // value.
8874 func K8SCronJobLabel(key string, val string) attribute.KeyValue {
8875 return attribute.String("k8s.cronjob.label."+key, val)
8876 }
8877
8878 // K8SCronJobName returns an attribute KeyValue conforming to the
8879 // "k8s.cronjob.name" semantic conventions. It represents the name of the
8880 // CronJob.
8881 func K8SCronJobName(val string) attribute.KeyValue {
8882 return K8SCronJobNameKey.String(val)
8883 }
8884
8885 // K8SCronJobUID returns an attribute KeyValue conforming to the
8886 // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
8887 func K8SCronJobUID(val string) attribute.KeyValue {
8888 return K8SCronJobUIDKey.String(val)
8889 }
8890
8891 // K8SDaemonSetAnnotation returns an attribute KeyValue conforming to the
8892 // "k8s.daemonset.annotation" semantic conventions. It represents the annotation
8893 // placed on the DaemonSet, the `<key>` being the annotation name, the value
8894 // being the annotation value, even if the value is empty.
8895 func K8SDaemonSetAnnotation(key string, val string) attribute.KeyValue {
8896 return attribute.String("k8s.daemonset.annotation."+key, val)
8897 }
8898
8899 // K8SDaemonSetLabel returns an attribute KeyValue conforming to the
8900 // "k8s.daemonset.label" semantic conventions. It represents the label placed on
8901 // the DaemonSet, the `<key>` being the label name, the value being the label
8902 // value, even if the value is empty.
8903 func K8SDaemonSetLabel(key string, val string) attribute.KeyValue {
8904 return attribute.String("k8s.daemonset.label."+key, val)
8905 }
8906
8907 // K8SDaemonSetName returns an attribute KeyValue conforming to the
8908 // "k8s.daemonset.name" semantic conventions. It represents the name of the
8909 // DaemonSet.
8910 func K8SDaemonSetName(val string) attribute.KeyValue {
8911 return K8SDaemonSetNameKey.String(val)
8912 }
8913
8914 // K8SDaemonSetUID returns an attribute KeyValue conforming to the
8915 // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
8916 // DaemonSet.
8917 func K8SDaemonSetUID(val string) attribute.KeyValue {
8918 return K8SDaemonSetUIDKey.String(val)
8919 }
8920
8921 // K8SDeploymentAnnotation returns an attribute KeyValue conforming to the
8922 // "k8s.deployment.annotation" semantic conventions. It represents the annotation
8923 // placed on the Deployment, the `<key>` being the annotation name, the value
8924 // being the annotation value, even if the value is empty.
8925 func K8SDeploymentAnnotation(key string, val string) attribute.KeyValue {
8926 return attribute.String("k8s.deployment.annotation."+key, val)
8927 }
8928
8929 // K8SDeploymentLabel returns an attribute KeyValue conforming to the
8930 // "k8s.deployment.label" semantic conventions. It represents the label placed on
8931 // the Deployment, the `<key>` being the label name, the value being the label
8932 // value, even if the value is empty.
8933 func K8SDeploymentLabel(key string, val string) attribute.KeyValue {
8934 return attribute.String("k8s.deployment.label."+key, val)
8935 }
8936
8937 // K8SDeploymentName returns an attribute KeyValue conforming to the
8938 // "k8s.deployment.name" semantic conventions. It represents the name of the
8939 // Deployment.
8940 func K8SDeploymentName(val string) attribute.KeyValue {
8941 return K8SDeploymentNameKey.String(val)
8942 }
8943
8944 // K8SDeploymentUID returns an attribute KeyValue conforming to the
8945 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
8946 // Deployment.
8947 func K8SDeploymentUID(val string) attribute.KeyValue {
8948 return K8SDeploymentUIDKey.String(val)
8949 }
8950
8951 // K8SHPAMetricType returns an attribute KeyValue conforming to the
8952 // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
8953 // source for the horizontal pod autoscaler.
8954 func K8SHPAMetricType(val string) attribute.KeyValue {
8955 return K8SHPAMetricTypeKey.String(val)
8956 }
8957
8958 // K8SHPAName returns an attribute KeyValue conforming to the "k8s.hpa.name"
8959 // semantic conventions. It represents the name of the horizontal pod autoscaler.
8960 func K8SHPAName(val string) attribute.KeyValue {
8961 return K8SHPANameKey.String(val)
8962 }
8963
8964 // K8SHPAScaletargetrefAPIVersion returns an attribute KeyValue conforming to the
8965 // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
8966 // API version of the target resource to scale for the HorizontalPodAutoscaler.
8967 func K8SHPAScaletargetrefAPIVersion(val string) attribute.KeyValue {
8968 return K8SHPAScaletargetrefAPIVersionKey.String(val)
8969 }
8970
8971 // K8SHPAScaletargetrefKind returns an attribute KeyValue conforming to the
8972 // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
8973 // the target resource to scale for the HorizontalPodAutoscaler.
8974 func K8SHPAScaletargetrefKind(val string) attribute.KeyValue {
8975 return K8SHPAScaletargetrefKindKey.String(val)
8976 }
8977
8978 // K8SHPAScaletargetrefName returns an attribute KeyValue conforming to the
8979 // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
8980 // the target resource to scale for the HorizontalPodAutoscaler.
8981 func K8SHPAScaletargetrefName(val string) attribute.KeyValue {
8982 return K8SHPAScaletargetrefNameKey.String(val)
8983 }
8984
8985 // K8SHPAUID returns an attribute KeyValue conforming to the "k8s.hpa.uid"
8986 // semantic conventions. It represents the UID of the horizontal pod autoscaler.
8987 func K8SHPAUID(val string) attribute.KeyValue {
8988 return K8SHPAUIDKey.String(val)
8989 }
8990
8991 // K8SHugepageSize returns an attribute KeyValue conforming to the
8992 // "k8s.hugepage.size" semantic conventions. It represents the size (identifier)
8993 // of the K8s huge page.
8994 func K8SHugepageSize(val string) attribute.KeyValue {
8995 return K8SHugepageSizeKey.String(val)
8996 }
8997
8998 // K8SJobAnnotation returns an attribute KeyValue conforming to the
8999 // "k8s.job.annotation" semantic conventions. It represents the annotation placed
9000 // on the Job, the `<key>` being the annotation name, the value being the
9001 // annotation value, even if the value is empty.
9002 func K8SJobAnnotation(key string, val string) attribute.KeyValue {
9003 return attribute.String("k8s.job.annotation."+key, val)
9004 }
9005
9006 // K8SJobLabel returns an attribute KeyValue conforming to the "k8s.job.label"
9007 // semantic conventions. It represents the label placed on the Job, the `<key>`
9008 // being the label name, the value being the label value, even if the value is
9009 // empty.
9010 func K8SJobLabel(key string, val string) attribute.KeyValue {
9011 return attribute.String("k8s.job.label."+key, val)
9012 }
9013
9014 // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
9015 // semantic conventions. It represents the name of the Job.
9016 func K8SJobName(val string) attribute.KeyValue {
9017 return K8SJobNameKey.String(val)
9018 }
9019
9020 // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
9021 // semantic conventions. It represents the UID of the Job.
9022 func K8SJobUID(val string) attribute.KeyValue {
9023 return K8SJobUIDKey.String(val)
9024 }
9025
9026 // K8SNamespaceAnnotation returns an attribute KeyValue conforming to the
9027 // "k8s.namespace.annotation" semantic conventions. It represents the annotation
9028 // placed on the Namespace, the `<key>` being the annotation name, the value
9029 // being the annotation value, even if the value is empty.
9030 func K8SNamespaceAnnotation(key string, val string) attribute.KeyValue {
9031 return attribute.String("k8s.namespace.annotation."+key, val)
9032 }
9033
9034 // K8SNamespaceLabel returns an attribute KeyValue conforming to the
9035 // "k8s.namespace.label" semantic conventions. It represents the label placed on
9036 // the Namespace, the `<key>` being the label name, the value being the label
9037 // value, even if the value is empty.
9038 func K8SNamespaceLabel(key string, val string) attribute.KeyValue {
9039 return attribute.String("k8s.namespace.label."+key, val)
9040 }
9041
9042 // K8SNamespaceName returns an attribute KeyValue conforming to the
9043 // "k8s.namespace.name" semantic conventions. It represents the name of the
9044 // namespace that the pod is running in.
9045 func K8SNamespaceName(val string) attribute.KeyValue {
9046 return K8SNamespaceNameKey.String(val)
9047 }
9048
9049 // K8SNodeAnnotation returns an attribute KeyValue conforming to the
9050 // "k8s.node.annotation" semantic conventions. It represents the annotation
9051 // placed on the Node, the `<key>` being the annotation name, the value being the
9052 // annotation value, even if the value is empty.
9053 func K8SNodeAnnotation(key string, val string) attribute.KeyValue {
9054 return attribute.String("k8s.node.annotation."+key, val)
9055 }
9056
9057 // K8SNodeLabel returns an attribute KeyValue conforming to the "k8s.node.label"
9058 // semantic conventions. It represents the label placed on the Node, the `<key>`
9059 // being the label name, the value being the label value, even if the value is
9060 // empty.
9061 func K8SNodeLabel(key string, val string) attribute.KeyValue {
9062 return attribute.String("k8s.node.label."+key, val)
9063 }
9064
9065 // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
9066 // semantic conventions. It represents the name of the Node.
9067 func K8SNodeName(val string) attribute.KeyValue {
9068 return K8SNodeNameKey.String(val)
9069 }
9070
9071 // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
9072 // semantic conventions. It represents the UID of the Node.
9073 func K8SNodeUID(val string) attribute.KeyValue {
9074 return K8SNodeUIDKey.String(val)
9075 }
9076
9077 // K8SPodAnnotation returns an attribute KeyValue conforming to the
9078 // "k8s.pod.annotation" semantic conventions. It represents the annotation placed
9079 // on the Pod, the `<key>` being the annotation name, the value being the
9080 // annotation value.
9081 func K8SPodAnnotation(key string, val string) attribute.KeyValue {
9082 return attribute.String("k8s.pod.annotation."+key, val)
9083 }
9084
9085 // K8SPodLabel returns an attribute KeyValue conforming to the "k8s.pod.label"
9086 // semantic conventions. It represents the label placed on the Pod, the `<key>`
9087 // being the label name, the value being the label value.
9088 func K8SPodLabel(key string, val string) attribute.KeyValue {
9089 return attribute.String("k8s.pod.label."+key, val)
9090 }
9091
9092 // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
9093 // semantic conventions. It represents the name of the Pod.
9094 func K8SPodName(val string) attribute.KeyValue {
9095 return K8SPodNameKey.String(val)
9096 }
9097
9098 // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
9099 // semantic conventions. It represents the UID of the Pod.
9100 func K8SPodUID(val string) attribute.KeyValue {
9101 return K8SPodUIDKey.String(val)
9102 }
9103
9104 // K8SReplicaSetAnnotation returns an attribute KeyValue conforming to the
9105 // "k8s.replicaset.annotation" semantic conventions. It represents the annotation
9106 // placed on the ReplicaSet, the `<key>` being the annotation name, the value
9107 // being the annotation value, even if the value is empty.
9108 func K8SReplicaSetAnnotation(key string, val string) attribute.KeyValue {
9109 return attribute.String("k8s.replicaset.annotation."+key, val)
9110 }
9111
9112 // K8SReplicaSetLabel returns an attribute KeyValue conforming to the
9113 // "k8s.replicaset.label" semantic conventions. It represents the label placed on
9114 // the ReplicaSet, the `<key>` being the label name, the value being the label
9115 // value, even if the value is empty.
9116 func K8SReplicaSetLabel(key string, val string) attribute.KeyValue {
9117 return attribute.String("k8s.replicaset.label."+key, val)
9118 }
9119
9120 // K8SReplicaSetName returns an attribute KeyValue conforming to the
9121 // "k8s.replicaset.name" semantic conventions. It represents the name of the
9122 // ReplicaSet.
9123 func K8SReplicaSetName(val string) attribute.KeyValue {
9124 return K8SReplicaSetNameKey.String(val)
9125 }
9126
9127 // K8SReplicaSetUID returns an attribute KeyValue conforming to the
9128 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
9129 // ReplicaSet.
9130 func K8SReplicaSetUID(val string) attribute.KeyValue {
9131 return K8SReplicaSetUIDKey.String(val)
9132 }
9133
9134 // K8SReplicationControllerName returns an attribute KeyValue conforming to the
9135 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
9136 // of the replication controller.
9137 func K8SReplicationControllerName(val string) attribute.KeyValue {
9138 return K8SReplicationControllerNameKey.String(val)
9139 }
9140
9141 // K8SReplicationControllerUID returns an attribute KeyValue conforming to the
9142 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID of
9143 // the replication controller.
9144 func K8SReplicationControllerUID(val string) attribute.KeyValue {
9145 return K8SReplicationControllerUIDKey.String(val)
9146 }
9147
9148 // K8SResourceQuotaName returns an attribute KeyValue conforming to the
9149 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
9150 // resource quota.
9151 func K8SResourceQuotaName(val string) attribute.KeyValue {
9152 return K8SResourceQuotaNameKey.String(val)
9153 }
9154
9155 // K8SResourceQuotaResourceName returns an attribute KeyValue conforming to the
9156 // "k8s.resourcequota.resource_name" semantic conventions. It represents the name
9157 // of the K8s resource a resource quota defines.
9158 func K8SResourceQuotaResourceName(val string) attribute.KeyValue {
9159 return K8SResourceQuotaResourceNameKey.String(val)
9160 }
9161
9162 // K8SResourceQuotaUID returns an attribute KeyValue conforming to the
9163 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
9164 // resource quota.
9165 func K8SResourceQuotaUID(val string) attribute.KeyValue {
9166 return K8SResourceQuotaUIDKey.String(val)
9167 }
9168
9169 // K8SStatefulSetAnnotation returns an attribute KeyValue conforming to the
9170 // "k8s.statefulset.annotation" semantic conventions. It represents the
9171 // annotation placed on the StatefulSet, the `<key>` being the annotation name,
9172 // the value being the annotation value, even if the value is empty.
9173 func K8SStatefulSetAnnotation(key string, val string) attribute.KeyValue {
9174 return attribute.String("k8s.statefulset.annotation."+key, val)
9175 }
9176
9177 // K8SStatefulSetLabel returns an attribute KeyValue conforming to the
9178 // "k8s.statefulset.label" semantic conventions. It represents the label placed
9179 // on the StatefulSet, the `<key>` being the label name, the value being the
9180 // label value, even if the value is empty.
9181 func K8SStatefulSetLabel(key string, val string) attribute.KeyValue {
9182 return attribute.String("k8s.statefulset.label."+key, val)
9183 }
9184
9185 // K8SStatefulSetName returns an attribute KeyValue conforming to the
9186 // "k8s.statefulset.name" semantic conventions. It represents the name of the
9187 // StatefulSet.
9188 func K8SStatefulSetName(val string) attribute.KeyValue {
9189 return K8SStatefulSetNameKey.String(val)
9190 }
9191
9192 // K8SStatefulSetUID returns an attribute KeyValue conforming to the
9193 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
9194 // StatefulSet.
9195 func K8SStatefulSetUID(val string) attribute.KeyValue {
9196 return K8SStatefulSetUIDKey.String(val)
9197 }
9198
9199 // K8SStorageclassName returns an attribute KeyValue conforming to the
9200 // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
9201 // [StorageClass] object.
9202 //
9203 // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
9204 func K8SStorageclassName(val string) attribute.KeyValue {
9205 return K8SStorageclassNameKey.String(val)
9206 }
9207
9208 // K8SVolumeName returns an attribute KeyValue conforming to the
9209 // "k8s.volume.name" semantic conventions. It represents the name of the K8s
9210 // volume.
9211 func K8SVolumeName(val string) attribute.KeyValue {
9212 return K8SVolumeNameKey.String(val)
9213 }
9214
9215 // Enum values for k8s.container.status.reason
9216 var (
9217 // The container is being created.
9218 // Stability: development
9219 K8SContainerStatusReasonContainerCreating = K8SContainerStatusReasonKey.String("ContainerCreating")
9220 // The container is in a crash loop back off state.
9221 // Stability: development
9222 K8SContainerStatusReasonCrashLoopBackOff = K8SContainerStatusReasonKey.String("CrashLoopBackOff")
9223 // There was an error creating the container configuration.
9224 // Stability: development
9225 K8SContainerStatusReasonCreateContainerConfigError = K8SContainerStatusReasonKey.String("CreateContainerConfigError")
9226 // There was an error pulling the container image.
9227 // Stability: development
9228 K8SContainerStatusReasonErrImagePull = K8SContainerStatusReasonKey.String("ErrImagePull")
9229 // The container image pull is in back off state.
9230 // Stability: development
9231 K8SContainerStatusReasonImagePullBackOff = K8SContainerStatusReasonKey.String("ImagePullBackOff")
9232 // The container was killed due to out of memory.
9233 // Stability: development
9234 K8SContainerStatusReasonOomKilled = K8SContainerStatusReasonKey.String("OOMKilled")
9235 // The container has completed execution.
9236 // Stability: development
9237 K8SContainerStatusReasonCompleted = K8SContainerStatusReasonKey.String("Completed")
9238 // There was an error with the container.
9239 // Stability: development
9240 K8SContainerStatusReasonError = K8SContainerStatusReasonKey.String("Error")
9241 // The container cannot run.
9242 // Stability: development
9243 K8SContainerStatusReasonContainerCannotRun = K8SContainerStatusReasonKey.String("ContainerCannotRun")
9244 )
9245
9246 // Enum values for k8s.container.status.state
9247 var (
9248 // The container has terminated.
9249 // Stability: development
9250 K8SContainerStatusStateTerminated = K8SContainerStatusStateKey.String("terminated")
9251 // The container is running.
9252 // Stability: development
9253 K8SContainerStatusStateRunning = K8SContainerStatusStateKey.String("running")
9254 // The container is waiting.
9255 // Stability: development
9256 K8SContainerStatusStateWaiting = K8SContainerStatusStateKey.String("waiting")
9257 )
9258
9259 // Enum values for k8s.namespace.phase
9260 var (
9261 // Active namespace phase as described by [K8s API]
9262 // Stability: development
9263 //
9264 // [K8s API]: https://pkg.go.dev/k8s.io/api@v0.31.3/core/v1#NamespacePhase
9265 K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active")
9266 // Terminating namespace phase as described by [K8s API]
9267 // Stability: development
9268 //
9269 // [K8s API]: https://pkg.go.dev/k8s.io/api@v0.31.3/core/v1#NamespacePhase
9270 K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating")
9271 )
9272
9273 // Enum values for k8s.node.condition.status
9274 var (
9275 // condition_true
9276 // Stability: development
9277 K8SNodeConditionStatusConditionTrue = K8SNodeConditionStatusKey.String("true")
9278 // condition_false
9279 // Stability: development
9280 K8SNodeConditionStatusConditionFalse = K8SNodeConditionStatusKey.String("false")
9281 // condition_unknown
9282 // Stability: development
9283 K8SNodeConditionStatusConditionUnknown = K8SNodeConditionStatusKey.String("unknown")
9284 )
9285
9286 // Enum values for k8s.node.condition.type
9287 var (
9288 // The node is healthy and ready to accept pods
9289 // Stability: development
9290 K8SNodeConditionTypeReady = K8SNodeConditionTypeKey.String("Ready")
9291 // Pressure exists on the disk size—that is, if the disk capacity is low
9292 // Stability: development
9293 K8SNodeConditionTypeDiskPressure = K8SNodeConditionTypeKey.String("DiskPressure")
9294 // Pressure exists on the node memory—that is, if the node memory is low
9295 // Stability: development
9296 K8SNodeConditionTypeMemoryPressure = K8SNodeConditionTypeKey.String("MemoryPressure")
9297 // Pressure exists on the processes—that is, if there are too many processes
9298 // on the node
9299 // Stability: development
9300 K8SNodeConditionTypePIDPressure = K8SNodeConditionTypeKey.String("PIDPressure")
9301 // The network for the node is not correctly configured
9302 // Stability: development
9303 K8SNodeConditionTypeNetworkUnavailable = K8SNodeConditionTypeKey.String("NetworkUnavailable")
9304 )
9305
9306 // Enum values for k8s.volume.type
9307 var (
9308 // A [persistentVolumeClaim] volume
9309 // Stability: development
9310 //
9311 // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
9312 K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
9313 // A [configMap] volume
9314 // Stability: development
9315 //
9316 // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
9317 K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
9318 // A [downwardAPI] volume
9319 // Stability: development
9320 //
9321 // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
9322 K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
9323 // An [emptyDir] volume
9324 // Stability: development
9325 //
9326 // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
9327 K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
9328 // A [secret] volume
9329 // Stability: development
9330 //
9331 // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
9332 K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
9333 // A [local] volume
9334 // Stability: development
9335 //
9336 // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local
9337 K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
9338 )
9339
9340 // Namespace: linux
9341 const (
9342 // LinuxMemorySlabStateKey is the attribute Key conforming to the
9343 // "linux.memory.slab.state" semantic conventions. It represents the Linux Slab
9344 // memory state.
9345 //
9346 // Type: Enum
9347 // RequirementLevel: Recommended
9348 // Stability: Development
9349 //
9350 // Examples: "reclaimable", "unreclaimable"
9351 LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state")
9352 )
9353
9354 // Enum values for linux.memory.slab.state
9355 var (
9356 // reclaimable
9357 // Stability: development
9358 LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable")
9359 // unreclaimable
9360 // Stability: development
9361 LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable")
9362 )
9363
9364 // Namespace: log
9365 const (
9366 // LogFileNameKey is the attribute Key conforming to the "log.file.name"
9367 // semantic conventions. It represents the basename of the file.
9368 //
9369 // Type: string
9370 // RequirementLevel: Recommended
9371 // Stability: Development
9372 //
9373 // Examples: "audit.log"
9374 LogFileNameKey = attribute.Key("log.file.name")
9375
9376 // LogFileNameResolvedKey is the attribute Key conforming to the
9377 // "log.file.name_resolved" semantic conventions. It represents the basename of
9378 // the file, with symlinks resolved.
9379 //
9380 // Type: string
9381 // RequirementLevel: Recommended
9382 // Stability: Development
9383 //
9384 // Examples: "uuid.log"
9385 LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
9386
9387 // LogFilePathKey is the attribute Key conforming to the "log.file.path"
9388 // semantic conventions. It represents the full path to the file.
9389 //
9390 // Type: string
9391 // RequirementLevel: Recommended
9392 // Stability: Development
9393 //
9394 // Examples: "/var/log/mysql/audit.log"
9395 LogFilePathKey = attribute.Key("log.file.path")
9396
9397 // LogFilePathResolvedKey is the attribute Key conforming to the
9398 // "log.file.path_resolved" semantic conventions. It represents the full path to
9399 // the file, with symlinks resolved.
9400 //
9401 // Type: string
9402 // RequirementLevel: Recommended
9403 // Stability: Development
9404 //
9405 // Examples: "/var/lib/docker/uuid.log"
9406 LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
9407
9408 // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
9409 // conventions. It represents the stream associated with the log. See below for
9410 // a list of well-known values.
9411 //
9412 // Type: Enum
9413 // RequirementLevel: Recommended
9414 // Stability: Development
9415 //
9416 // Examples:
9417 LogIostreamKey = attribute.Key("log.iostream")
9418
9419 // LogRecordOriginalKey is the attribute Key conforming to the
9420 // "log.record.original" semantic conventions. It represents the complete
9421 // original Log Record.
9422 //
9423 // Type: string
9424 // RequirementLevel: Recommended
9425 // Stability: Development
9426 //
9427 // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
9428 // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
9429 // Note: This value MAY be added when processing a Log Record which was
9430 // originally transmitted as a string or equivalent data type AND the Body field
9431 // of the Log Record does not contain the same value. (e.g. a syslog or a log
9432 // record read from a file.)
9433 LogRecordOriginalKey = attribute.Key("log.record.original")
9434
9435 // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
9436 // semantic conventions. It represents a unique identifier for the Log Record.
9437 //
9438 // Type: string
9439 // RequirementLevel: Recommended
9440 // Stability: Development
9441 //
9442 // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
9443 // Note: If an id is provided, other log records with the same id will be
9444 // considered duplicates and can be removed safely. This means, that two
9445 // distinguishable log records MUST have different values.
9446 // The id MAY be an
9447 // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
9448 // identifiers (e.g. UUID) may be used as needed.
9449 //
9450 // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
9451 LogRecordUIDKey = attribute.Key("log.record.uid")
9452 )
9453
9454 // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
9455 // semantic conventions. It represents the basename of the file.
9456 func LogFileName(val string) attribute.KeyValue {
9457 return LogFileNameKey.String(val)
9458 }
9459
9460 // LogFileNameResolved returns an attribute KeyValue conforming to the
9461 // "log.file.name_resolved" semantic conventions. It represents the basename of
9462 // the file, with symlinks resolved.
9463 func LogFileNameResolved(val string) attribute.KeyValue {
9464 return LogFileNameResolvedKey.String(val)
9465 }
9466
9467 // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
9468 // semantic conventions. It represents the full path to the file.
9469 func LogFilePath(val string) attribute.KeyValue {
9470 return LogFilePathKey.String(val)
9471 }
9472
9473 // LogFilePathResolved returns an attribute KeyValue conforming to the
9474 // "log.file.path_resolved" semantic conventions. It represents the full path to
9475 // the file, with symlinks resolved.
9476 func LogFilePathResolved(val string) attribute.KeyValue {
9477 return LogFilePathResolvedKey.String(val)
9478 }
9479
9480 // LogRecordOriginal returns an attribute KeyValue conforming to the
9481 // "log.record.original" semantic conventions. It represents the complete
9482 // original Log Record.
9483 func LogRecordOriginal(val string) attribute.KeyValue {
9484 return LogRecordOriginalKey.String(val)
9485 }
9486
9487 // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
9488 // semantic conventions. It represents a unique identifier for the Log Record.
9489 func LogRecordUID(val string) attribute.KeyValue {
9490 return LogRecordUIDKey.String(val)
9491 }
9492
9493 // Enum values for log.iostream
9494 var (
9495 // Logs from stdout stream
9496 // Stability: development
9497 LogIostreamStdout = LogIostreamKey.String("stdout")
9498 // Events from stderr stream
9499 // Stability: development
9500 LogIostreamStderr = LogIostreamKey.String("stderr")
9501 )
9502
9503 // Namespace: mainframe
9504 const (
9505 // MainframeLparNameKey is the attribute Key conforming to the
9506 // "mainframe.lpar.name" semantic conventions. It represents the name of the
9507 // logical partition that hosts a systems with a mainframe operating system.
9508 //
9509 // Type: string
9510 // RequirementLevel: Recommended
9511 // Stability: Development
9512 //
9513 // Examples: "LPAR01"
9514 MainframeLparNameKey = attribute.Key("mainframe.lpar.name")
9515 )
9516
9517 // MainframeLparName returns an attribute KeyValue conforming to the
9518 // "mainframe.lpar.name" semantic conventions. It represents the name of the
9519 // logical partition that hosts a systems with a mainframe operating system.
9520 func MainframeLparName(val string) attribute.KeyValue {
9521 return MainframeLparNameKey.String(val)
9522 }
9523
9524 // Namespace: messaging
9525 const (
9526 // MessagingBatchMessageCountKey is the attribute Key conforming to the
9527 // "messaging.batch.message_count" semantic conventions. It represents the
9528 // number of messages sent, received, or processed in the scope of the batching
9529 // operation.
9530 //
9531 // Type: int
9532 // RequirementLevel: Recommended
9533 // Stability: Development
9534 //
9535 // Examples: 0, 1, 2
9536 // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
9537 // spans that operate with a single message. When a messaging client library
9538 // supports both batch and single-message API for the same operation,
9539 // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
9540 // and SHOULD NOT use it for single-message APIs.
9541 MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
9542
9543 // MessagingClientIDKey is the attribute Key conforming to the
9544 // "messaging.client.id" semantic conventions. It represents a unique identifier
9545 // for the client that consumes or produces a message.
9546 //
9547 // Type: string
9548 // RequirementLevel: Recommended
9549 // Stability: Development
9550 //
9551 // Examples: "client-5", "myhost@8742@s8083jm"
9552 MessagingClientIDKey = attribute.Key("messaging.client.id")
9553
9554 // MessagingConsumerGroupNameKey is the attribute Key conforming to the
9555 // "messaging.consumer.group.name" semantic conventions. It represents the name
9556 // of the consumer group with which a consumer is associated.
9557 //
9558 // Type: string
9559 // RequirementLevel: Recommended
9560 // Stability: Development
9561 //
9562 // Examples: "my-group", "indexer"
9563 // Note: Semantic conventions for individual messaging systems SHOULD document
9564 // whether `messaging.consumer.group.name` is applicable and what it means in
9565 // the context of that system.
9566 MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
9567
9568 // MessagingDestinationAnonymousKey is the attribute Key conforming to the
9569 // "messaging.destination.anonymous" semantic conventions. It represents a
9570 // boolean that is true if the message destination is anonymous (could be
9571 // unnamed or have auto-generated name).
9572 //
9573 // Type: boolean
9574 // RequirementLevel: Recommended
9575 // Stability: Development
9576 //
9577 // Examples:
9578 MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
9579
9580 // MessagingDestinationNameKey is the attribute Key conforming to the
9581 // "messaging.destination.name" semantic conventions. It represents the message
9582 // destination name.
9583 //
9584 // Type: string
9585 // RequirementLevel: Recommended
9586 // Stability: Development
9587 //
9588 // Examples: "MyQueue", "MyTopic"
9589 // Note: Destination name SHOULD uniquely identify a specific queue, topic or
9590 // other entity within the broker. If
9591 // the broker doesn't have such notion, the destination name SHOULD uniquely
9592 // identify the broker.
9593 MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
9594
9595 // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
9596 // "messaging.destination.partition.id" semantic conventions. It represents the
9597 // identifier of the partition messages are sent to or received from, unique
9598 // within the `messaging.destination.name`.
9599 //
9600 // Type: string
9601 // RequirementLevel: Recommended
9602 // Stability: Development
9603 //
9604 // Examples: 1
9605 MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
9606
9607 // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
9608 // the "messaging.destination.subscription.name" semantic conventions. It
9609 // represents the name of the destination subscription from which a message is
9610 // consumed.
9611 //
9612 // Type: string
9613 // RequirementLevel: Recommended
9614 // Stability: Development
9615 //
9616 // Examples: "subscription-a"
9617 // Note: Semantic conventions for individual messaging systems SHOULD document
9618 // whether `messaging.destination.subscription.name` is applicable and what it
9619 // means in the context of that system.
9620 MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
9621
9622 // MessagingDestinationTemplateKey is the attribute Key conforming to the
9623 // "messaging.destination.template" semantic conventions. It represents the low
9624 // cardinality representation of the messaging destination name.
9625 //
9626 // Type: string
9627 // RequirementLevel: Recommended
9628 // Stability: Development
9629 //
9630 // Examples: "/customers/{customerId}"
9631 // Note: Destination names could be constructed from templates. An example would
9632 // be a destination name involving a user name or product id. Although the
9633 // destination name in this case is of high cardinality, the underlying template
9634 // is of low cardinality and can be effectively used for grouping and
9635 // aggregation.
9636 MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
9637
9638 // MessagingDestinationTemporaryKey is the attribute Key conforming to the
9639 // "messaging.destination.temporary" semantic conventions. It represents a
9640 // boolean that is true if the message destination is temporary and might not
9641 // exist anymore after messages are processed.
9642 //
9643 // Type: boolean
9644 // RequirementLevel: Recommended
9645 // Stability: Development
9646 //
9647 // Examples:
9648 MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
9649
9650 // MessagingEventHubsMessageEnqueuedTimeKey is the attribute Key conforming to
9651 // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
9652 // represents the UTC epoch seconds at which the message has been accepted and
9653 // stored in the entity.
9654 //
9655 // Type: int
9656 // RequirementLevel: Recommended
9657 // Stability: Development
9658 MessagingEventHubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
9659
9660 // MessagingGCPPubSubMessageAckDeadlineKey is the attribute Key conforming to
9661 // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
9662 // represents the ack deadline in seconds set for the modify ack deadline
9663 // request.
9664 //
9665 // Type: int
9666 // RequirementLevel: Recommended
9667 // Stability: Development
9668 MessagingGCPPubSubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
9669
9670 // MessagingGCPPubSubMessageAckIDKey is the attribute Key conforming to the
9671 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
9672 // ack id for a given message.
9673 //
9674 // Type: string
9675 // RequirementLevel: Recommended
9676 // Stability: Development
9677 //
9678 // Examples: ack_id
9679 MessagingGCPPubSubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
9680
9681 // MessagingGCPPubSubMessageDeliveryAttemptKey is the attribute Key conforming
9682 // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
9683 // It represents the delivery attempt for a given message.
9684 //
9685 // Type: int
9686 // RequirementLevel: Recommended
9687 // Stability: Development
9688 MessagingGCPPubSubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
9689
9690 // MessagingGCPPubSubMessageOrderingKeyKey is the attribute Key conforming to
9691 // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
9692 // represents the ordering key for a given message. If the attribute is not
9693 // present, the message does not have an ordering key.
9694 //
9695 // Type: string
9696 // RequirementLevel: Recommended
9697 // Stability: Development
9698 //
9699 // Examples: ordering_key
9700 MessagingGCPPubSubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
9701
9702 // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
9703 // "messaging.kafka.message.key" semantic conventions. It represents the message
9704 // keys in Kafka are used for grouping alike messages to ensure they're
9705 // processed on the same partition. They differ from `messaging.message.id` in
9706 // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
9707 //
9708 // Type: string
9709 // RequirementLevel: Recommended
9710 // Stability: Development
9711 //
9712 // Examples: myKey
9713 // Note: If the key type is not string, it's string representation has to be
9714 // supplied for the attribute. If the key has no unambiguous, canonical string
9715 // form, don't include its value.
9716 MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
9717
9718 // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
9719 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
9720 // boolean that is true if the message is a tombstone.
9721 //
9722 // Type: boolean
9723 // RequirementLevel: Recommended
9724 // Stability: Development
9725 //
9726 // Examples:
9727 MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
9728
9729 // MessagingKafkaOffsetKey is the attribute Key conforming to the
9730 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
9731 // record in the corresponding Kafka partition.
9732 //
9733 // Type: int
9734 // RequirementLevel: Recommended
9735 // Stability: Development
9736 MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
9737
9738 // MessagingMessageBodySizeKey is the attribute Key conforming to the
9739 // "messaging.message.body.size" semantic conventions. It represents the size of
9740 // the message body in bytes.
9741 //
9742 // Type: int
9743 // RequirementLevel: Recommended
9744 // Stability: Development
9745 //
9746 // Note: This can refer to both the compressed or uncompressed body size. If
9747 // both sizes are known, the uncompressed
9748 // body size should be used.
9749 MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
9750
9751 // MessagingMessageConversationIDKey is the attribute Key conforming to the
9752 // "messaging.message.conversation_id" semantic conventions. It represents the
9753 // conversation ID identifying the conversation to which the message belongs,
9754 // represented as a string. Sometimes called "Correlation ID".
9755 //
9756 // Type: string
9757 // RequirementLevel: Recommended
9758 // Stability: Development
9759 //
9760 // Examples: MyConversationId
9761 MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
9762
9763 // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
9764 // "messaging.message.envelope.size" semantic conventions. It represents the
9765 // size of the message body and metadata in bytes.
9766 //
9767 // Type: int
9768 // RequirementLevel: Recommended
9769 // Stability: Development
9770 //
9771 // Note: This can refer to both the compressed or uncompressed size. If both
9772 // sizes are known, the uncompressed
9773 // size should be used.
9774 MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
9775
9776 // MessagingMessageIDKey is the attribute Key conforming to the
9777 // "messaging.message.id" semantic conventions. It represents a value used by
9778 // the messaging system as an identifier for the message, represented as a
9779 // string.
9780 //
9781 // Type: string
9782 // RequirementLevel: Recommended
9783 // Stability: Development
9784 //
9785 // Examples: 452a7c7c7c7048c2f887f61572b18fc2
9786 MessagingMessageIDKey = attribute.Key("messaging.message.id")
9787
9788 // MessagingOperationNameKey is the attribute Key conforming to the
9789 // "messaging.operation.name" semantic conventions. It represents the
9790 // system-specific name of the messaging operation.
9791 //
9792 // Type: string
9793 // RequirementLevel: Recommended
9794 // Stability: Development
9795 //
9796 // Examples: "ack", "nack", "send"
9797 MessagingOperationNameKey = attribute.Key("messaging.operation.name")
9798
9799 // MessagingOperationTypeKey is the attribute Key conforming to the
9800 // "messaging.operation.type" semantic conventions. It represents a string
9801 // identifying the type of the messaging operation.
9802 //
9803 // Type: Enum
9804 // RequirementLevel: Recommended
9805 // Stability: Development
9806 //
9807 // Examples:
9808 // Note: If a custom value is used, it MUST be of low cardinality.
9809 MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
9810
9811 // MessagingRabbitMQDestinationRoutingKeyKey is the attribute Key conforming to
9812 // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
9813 // represents the rabbitMQ message routing key.
9814 //
9815 // Type: string
9816 // RequirementLevel: Recommended
9817 // Stability: Development
9818 //
9819 // Examples: myKey
9820 MessagingRabbitMQDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
9821
9822 // MessagingRabbitMQMessageDeliveryTagKey is the attribute Key conforming to the
9823 // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
9824 // the rabbitMQ message delivery tag.
9825 //
9826 // Type: int
9827 // RequirementLevel: Recommended
9828 // Stability: Development
9829 MessagingRabbitMQMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
9830
9831 // MessagingRocketMQConsumptionModelKey is the attribute Key conforming to the
9832 // "messaging.rocketmq.consumption_model" semantic conventions. It represents
9833 // the model of message consumption. This only applies to consumer spans.
9834 //
9835 // Type: Enum
9836 // RequirementLevel: Recommended
9837 // Stability: Development
9838 //
9839 // Examples:
9840 MessagingRocketMQConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
9841
9842 // MessagingRocketMQMessageDelayTimeLevelKey is the attribute Key conforming to
9843 // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
9844 // represents the delay time level for delay message, which determines the
9845 // message delay time.
9846 //
9847 // Type: int
9848 // RequirementLevel: Recommended
9849 // Stability: Development
9850 MessagingRocketMQMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
9851
9852 // MessagingRocketMQMessageDeliveryTimestampKey is the attribute Key conforming
9853 // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
9854 // It represents the timestamp in milliseconds that the delay message is
9855 // expected to be delivered to consumer.
9856 //
9857 // Type: int
9858 // RequirementLevel: Recommended
9859 // Stability: Development
9860 MessagingRocketMQMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
9861
9862 // MessagingRocketMQMessageGroupKey is the attribute Key conforming to the
9863 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
9864 // is essential for FIFO message. Messages that belong to the same message group
9865 // are always processed one by one within the same consumer group.
9866 //
9867 // Type: string
9868 // RequirementLevel: Recommended
9869 // Stability: Development
9870 //
9871 // Examples: myMessageGroup
9872 MessagingRocketMQMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
9873
9874 // MessagingRocketMQMessageKeysKey is the attribute Key conforming to the
9875 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
9876 // key(s) of message, another way to mark message besides message id.
9877 //
9878 // Type: string[]
9879 // RequirementLevel: Recommended
9880 // Stability: Development
9881 //
9882 // Examples: "keyA", "keyB"
9883 MessagingRocketMQMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
9884
9885 // MessagingRocketMQMessageTagKey is the attribute Key conforming to the
9886 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
9887 // secondary classifier of message besides topic.
9888 //
9889 // Type: string
9890 // RequirementLevel: Recommended
9891 // Stability: Development
9892 //
9893 // Examples: tagA
9894 MessagingRocketMQMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
9895
9896 // MessagingRocketMQMessageTypeKey is the attribute Key conforming to the
9897 // "messaging.rocketmq.message.type" semantic conventions. It represents the
9898 // type of message.
9899 //
9900 // Type: Enum
9901 // RequirementLevel: Recommended
9902 // Stability: Development
9903 //
9904 // Examples:
9905 MessagingRocketMQMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
9906
9907 // MessagingRocketMQNamespaceKey is the attribute Key conforming to the
9908 // "messaging.rocketmq.namespace" semantic conventions. It represents the
9909 // namespace of RocketMQ resources, resources in different namespaces are
9910 // individual.
9911 //
9912 // Type: string
9913 // RequirementLevel: Recommended
9914 // Stability: Development
9915 //
9916 // Examples: myNamespace
9917 MessagingRocketMQNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
9918
9919 // MessagingServiceBusDispositionStatusKey is the attribute Key conforming to
9920 // the "messaging.servicebus.disposition_status" semantic conventions. It
9921 // represents the describes the [settlement type].
9922 //
9923 // Type: Enum
9924 // RequirementLevel: Recommended
9925 // Stability: Development
9926 //
9927 // Examples:
9928 //
9929 // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
9930 MessagingServiceBusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
9931
9932 // MessagingServiceBusMessageDeliveryCountKey is the attribute Key conforming to
9933 // the "messaging.servicebus.message.delivery_count" semantic conventions. It
9934 // represents the number of deliveries that have been attempted for this
9935 // message.
9936 //
9937 // Type: int
9938 // RequirementLevel: Recommended
9939 // Stability: Development
9940 MessagingServiceBusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
9941
9942 // MessagingServiceBusMessageEnqueuedTimeKey is the attribute Key conforming to
9943 // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
9944 // represents the UTC epoch seconds at which the message has been accepted and
9945 // stored in the entity.
9946 //
9947 // Type: int
9948 // RequirementLevel: Recommended
9949 // Stability: Development
9950 MessagingServiceBusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
9951
9952 // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
9953 // semantic conventions. It represents the messaging system as identified by the
9954 // client instrumentation.
9955 //
9956 // Type: Enum
9957 // RequirementLevel: Recommended
9958 // Stability: Development
9959 //
9960 // Examples:
9961 // Note: The actual messaging system may differ from the one known by the
9962 // client. For example, when using Kafka client libraries to communicate with
9963 // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
9964 // instrumentation's best knowledge.
9965 MessagingSystemKey = attribute.Key("messaging.system")
9966 )
9967
9968 // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
9969 // "messaging.batch.message_count" semantic conventions. It represents the number
9970 // of messages sent, received, or processed in the scope of the batching
9971 // operation.
9972 func MessagingBatchMessageCount(val int) attribute.KeyValue {
9973 return MessagingBatchMessageCountKey.Int(val)
9974 }
9975
9976 // MessagingClientID returns an attribute KeyValue conforming to the
9977 // "messaging.client.id" semantic conventions. It represents a unique identifier
9978 // for the client that consumes or produces a message.
9979 func MessagingClientID(val string) attribute.KeyValue {
9980 return MessagingClientIDKey.String(val)
9981 }
9982
9983 // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
9984 // "messaging.consumer.group.name" semantic conventions. It represents the name
9985 // of the consumer group with which a consumer is associated.
9986 func MessagingConsumerGroupName(val string) attribute.KeyValue {
9987 return MessagingConsumerGroupNameKey.String(val)
9988 }
9989
9990 // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
9991 // "messaging.destination.anonymous" semantic conventions. It represents a
9992 // boolean that is true if the message destination is anonymous (could be unnamed
9993 // or have auto-generated name).
9994 func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
9995 return MessagingDestinationAnonymousKey.Bool(val)
9996 }
9997
9998 // MessagingDestinationName returns an attribute KeyValue conforming to the
9999 // "messaging.destination.name" semantic conventions. It represents the message
10000 // destination name.
10001 func MessagingDestinationName(val string) attribute.KeyValue {
10002 return MessagingDestinationNameKey.String(val)
10003 }
10004
10005 // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
10006 // the "messaging.destination.partition.id" semantic conventions. It represents
10007 // the identifier of the partition messages are sent to or received from, unique
10008 // within the `messaging.destination.name`.
10009 func MessagingDestinationPartitionID(val string) attribute.KeyValue {
10010 return MessagingDestinationPartitionIDKey.String(val)
10011 }
10012
10013 // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
10014 // to the "messaging.destination.subscription.name" semantic conventions. It
10015 // represents the name of the destination subscription from which a message is
10016 // consumed.
10017 func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
10018 return MessagingDestinationSubscriptionNameKey.String(val)
10019 }
10020
10021 // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
10022 // "messaging.destination.template" semantic conventions. It represents the low
10023 // cardinality representation of the messaging destination name.
10024 func MessagingDestinationTemplate(val string) attribute.KeyValue {
10025 return MessagingDestinationTemplateKey.String(val)
10026 }
10027
10028 // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
10029 // "messaging.destination.temporary" semantic conventions. It represents a
10030 // boolean that is true if the message destination is temporary and might not
10031 // exist anymore after messages are processed.
10032 func MessagingDestinationTemporary(val bool) attribute.KeyValue {
10033 return MessagingDestinationTemporaryKey.Bool(val)
10034 }
10035
10036 // MessagingEventHubsMessageEnqueuedTime returns an attribute KeyValue conforming
10037 // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
10038 // represents the UTC epoch seconds at which the message has been accepted and
10039 // stored in the entity.
10040 func MessagingEventHubsMessageEnqueuedTime(val int) attribute.KeyValue {
10041 return MessagingEventHubsMessageEnqueuedTimeKey.Int(val)
10042 }
10043
10044 // MessagingGCPPubSubMessageAckDeadline returns an attribute KeyValue conforming
10045 // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
10046 // represents the ack deadline in seconds set for the modify ack deadline
10047 // request.
10048 func MessagingGCPPubSubMessageAckDeadline(val int) attribute.KeyValue {
10049 return MessagingGCPPubSubMessageAckDeadlineKey.Int(val)
10050 }
10051
10052 // MessagingGCPPubSubMessageAckID returns an attribute KeyValue conforming to the
10053 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
10054 // ack id for a given message.
10055 func MessagingGCPPubSubMessageAckID(val string) attribute.KeyValue {
10056 return MessagingGCPPubSubMessageAckIDKey.String(val)
10057 }
10058
10059 // MessagingGCPPubSubMessageDeliveryAttempt returns an attribute KeyValue
10060 // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
10061 // conventions. It represents the delivery attempt for a given message.
10062 func MessagingGCPPubSubMessageDeliveryAttempt(val int) attribute.KeyValue {
10063 return MessagingGCPPubSubMessageDeliveryAttemptKey.Int(val)
10064 }
10065
10066 // MessagingGCPPubSubMessageOrderingKey returns an attribute KeyValue conforming
10067 // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
10068 // represents the ordering key for a given message. If the attribute is not
10069 // present, the message does not have an ordering key.
10070 func MessagingGCPPubSubMessageOrderingKey(val string) attribute.KeyValue {
10071 return MessagingGCPPubSubMessageOrderingKeyKey.String(val)
10072 }
10073
10074 // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
10075 // "messaging.kafka.message.key" semantic conventions. It represents the message
10076 // keys in Kafka are used for grouping alike messages to ensure they're processed
10077 // on the same partition. They differ from `messaging.message.id` in that they're
10078 // not unique. If the key is `null`, the attribute MUST NOT be set.
10079 func MessagingKafkaMessageKey(val string) attribute.KeyValue {
10080 return MessagingKafkaMessageKeyKey.String(val)
10081 }
10082
10083 // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
10084 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
10085 // boolean that is true if the message is a tombstone.
10086 func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
10087 return MessagingKafkaMessageTombstoneKey.Bool(val)
10088 }
10089
10090 // MessagingKafkaOffset returns an attribute KeyValue conforming to the
10091 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
10092 // record in the corresponding Kafka partition.
10093 func MessagingKafkaOffset(val int) attribute.KeyValue {
10094 return MessagingKafkaOffsetKey.Int(val)
10095 }
10096
10097 // MessagingMessageBodySize returns an attribute KeyValue conforming to the
10098 // "messaging.message.body.size" semantic conventions. It represents the size of
10099 // the message body in bytes.
10100 func MessagingMessageBodySize(val int) attribute.KeyValue {
10101 return MessagingMessageBodySizeKey.Int(val)
10102 }
10103
10104 // MessagingMessageConversationID returns an attribute KeyValue conforming to the
10105 // "messaging.message.conversation_id" semantic conventions. It represents the
10106 // conversation ID identifying the conversation to which the message belongs,
10107 // represented as a string. Sometimes called "Correlation ID".
10108 func MessagingMessageConversationID(val string) attribute.KeyValue {
10109 return MessagingMessageConversationIDKey.String(val)
10110 }
10111
10112 // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
10113 // "messaging.message.envelope.size" semantic conventions. It represents the size
10114 // of the message body and metadata in bytes.
10115 func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
10116 return MessagingMessageEnvelopeSizeKey.Int(val)
10117 }
10118
10119 // MessagingMessageID returns an attribute KeyValue conforming to the
10120 // "messaging.message.id" semantic conventions. It represents a value used by the
10121 // messaging system as an identifier for the message, represented as a string.
10122 func MessagingMessageID(val string) attribute.KeyValue {
10123 return MessagingMessageIDKey.String(val)
10124 }
10125
10126 // MessagingOperationName returns an attribute KeyValue conforming to the
10127 // "messaging.operation.name" semantic conventions. It represents the
10128 // system-specific name of the messaging operation.
10129 func MessagingOperationName(val string) attribute.KeyValue {
10130 return MessagingOperationNameKey.String(val)
10131 }
10132
10133 // MessagingRabbitMQDestinationRoutingKey returns an attribute KeyValue
10134 // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
10135 // conventions. It represents the rabbitMQ message routing key.
10136 func MessagingRabbitMQDestinationRoutingKey(val string) attribute.KeyValue {
10137 return MessagingRabbitMQDestinationRoutingKeyKey.String(val)
10138 }
10139
10140 // MessagingRabbitMQMessageDeliveryTag returns an attribute KeyValue conforming
10141 // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
10142 // represents the rabbitMQ message delivery tag.
10143 func MessagingRabbitMQMessageDeliveryTag(val int) attribute.KeyValue {
10144 return MessagingRabbitMQMessageDeliveryTagKey.Int(val)
10145 }
10146
10147 // MessagingRocketMQMessageDelayTimeLevel returns an attribute KeyValue
10148 // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
10149 // conventions. It represents the delay time level for delay message, which
10150 // determines the message delay time.
10151 func MessagingRocketMQMessageDelayTimeLevel(val int) attribute.KeyValue {
10152 return MessagingRocketMQMessageDelayTimeLevelKey.Int(val)
10153 }
10154
10155 // MessagingRocketMQMessageDeliveryTimestamp returns an attribute KeyValue
10156 // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
10157 // conventions. It represents the timestamp in milliseconds that the delay
10158 // message is expected to be delivered to consumer.
10159 func MessagingRocketMQMessageDeliveryTimestamp(val int) attribute.KeyValue {
10160 return MessagingRocketMQMessageDeliveryTimestampKey.Int(val)
10161 }
10162
10163 // MessagingRocketMQMessageGroup returns an attribute KeyValue conforming to the
10164 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
10165 // is essential for FIFO message. Messages that belong to the same message group
10166 // are always processed one by one within the same consumer group.
10167 func MessagingRocketMQMessageGroup(val string) attribute.KeyValue {
10168 return MessagingRocketMQMessageGroupKey.String(val)
10169 }
10170
10171 // MessagingRocketMQMessageKeys returns an attribute KeyValue conforming to the
10172 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
10173 // key(s) of message, another way to mark message besides message id.
10174 func MessagingRocketMQMessageKeys(val ...string) attribute.KeyValue {
10175 return MessagingRocketMQMessageKeysKey.StringSlice(val)
10176 }
10177
10178 // MessagingRocketMQMessageTag returns an attribute KeyValue conforming to the
10179 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
10180 // secondary classifier of message besides topic.
10181 func MessagingRocketMQMessageTag(val string) attribute.KeyValue {
10182 return MessagingRocketMQMessageTagKey.String(val)
10183 }
10184
10185 // MessagingRocketMQNamespace returns an attribute KeyValue conforming to the
10186 // "messaging.rocketmq.namespace" semantic conventions. It represents the
10187 // namespace of RocketMQ resources, resources in different namespaces are
10188 // individual.
10189 func MessagingRocketMQNamespace(val string) attribute.KeyValue {
10190 return MessagingRocketMQNamespaceKey.String(val)
10191 }
10192
10193 // MessagingServiceBusMessageDeliveryCount returns an attribute KeyValue
10194 // conforming to the "messaging.servicebus.message.delivery_count" semantic
10195 // conventions. It represents the number of deliveries that have been attempted
10196 // for this message.
10197 func MessagingServiceBusMessageDeliveryCount(val int) attribute.KeyValue {
10198 return MessagingServiceBusMessageDeliveryCountKey.Int(val)
10199 }
10200
10201 // MessagingServiceBusMessageEnqueuedTime returns an attribute KeyValue
10202 // conforming to the "messaging.servicebus.message.enqueued_time" semantic
10203 // conventions. It represents the UTC epoch seconds at which the message has been
10204 // accepted and stored in the entity.
10205 func MessagingServiceBusMessageEnqueuedTime(val int) attribute.KeyValue {
10206 return MessagingServiceBusMessageEnqueuedTimeKey.Int(val)
10207 }
10208
10209 // Enum values for messaging.operation.type
10210 var (
10211 // A message is created. "Create" spans always refer to a single message and are
10212 // used to provide a unique creation context for messages in batch sending
10213 // scenarios.
10214 //
10215 // Stability: development
10216 MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
10217 // One or more messages are provided for sending to an intermediary. If a single
10218 // message is sent, the context of the "Send" span can be used as the creation
10219 // context and no "Create" span needs to be created.
10220 //
10221 // Stability: development
10222 MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
10223 // One or more messages are requested by a consumer. This operation refers to
10224 // pull-based scenarios, where consumers explicitly call methods of messaging
10225 // SDKs to receive messages.
10226 //
10227 // Stability: development
10228 MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
10229 // One or more messages are processed by a consumer.
10230 //
10231 // Stability: development
10232 MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
10233 // One or more messages are settled.
10234 //
10235 // Stability: development
10236 MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
10237 )
10238
10239 // Enum values for messaging.rocketmq.consumption_model
10240 var (
10241 // Clustering consumption model
10242 // Stability: development
10243 MessagingRocketMQConsumptionModelClustering = MessagingRocketMQConsumptionModelKey.String("clustering")
10244 // Broadcasting consumption model
10245 // Stability: development
10246 MessagingRocketMQConsumptionModelBroadcasting = MessagingRocketMQConsumptionModelKey.String("broadcasting")
10247 )
10248
10249 // Enum values for messaging.rocketmq.message.type
10250 var (
10251 // Normal message
10252 // Stability: development
10253 MessagingRocketMQMessageTypeNormal = MessagingRocketMQMessageTypeKey.String("normal")
10254 // FIFO message
10255 // Stability: development
10256 MessagingRocketMQMessageTypeFifo = MessagingRocketMQMessageTypeKey.String("fifo")
10257 // Delay message
10258 // Stability: development
10259 MessagingRocketMQMessageTypeDelay = MessagingRocketMQMessageTypeKey.String("delay")
10260 // Transaction message
10261 // Stability: development
10262 MessagingRocketMQMessageTypeTransaction = MessagingRocketMQMessageTypeKey.String("transaction")
10263 )
10264
10265 // Enum values for messaging.servicebus.disposition_status
10266 var (
10267 // Message is completed
10268 // Stability: development
10269 MessagingServiceBusDispositionStatusComplete = MessagingServiceBusDispositionStatusKey.String("complete")
10270 // Message is abandoned
10271 // Stability: development
10272 MessagingServiceBusDispositionStatusAbandon = MessagingServiceBusDispositionStatusKey.String("abandon")
10273 // Message is sent to dead letter queue
10274 // Stability: development
10275 MessagingServiceBusDispositionStatusDeadLetter = MessagingServiceBusDispositionStatusKey.String("dead_letter")
10276 // Message is deferred
10277 // Stability: development
10278 MessagingServiceBusDispositionStatusDefer = MessagingServiceBusDispositionStatusKey.String("defer")
10279 )
10280
10281 // Enum values for messaging.system
10282 var (
10283 // Apache ActiveMQ
10284 // Stability: development
10285 MessagingSystemActiveMQ = MessagingSystemKey.String("activemq")
10286 // Amazon Simple Notification Service (SNS)
10287 // Stability: development
10288 MessagingSystemAWSSNS = MessagingSystemKey.String("aws.sns")
10289 // Amazon Simple Queue Service (SQS)
10290 // Stability: development
10291 MessagingSystemAWSSQS = MessagingSystemKey.String("aws_sqs")
10292 // Azure Event Grid
10293 // Stability: development
10294 MessagingSystemEventGrid = MessagingSystemKey.String("eventgrid")
10295 // Azure Event Hubs
10296 // Stability: development
10297 MessagingSystemEventHubs = MessagingSystemKey.String("eventhubs")
10298 // Azure Service Bus
10299 // Stability: development
10300 MessagingSystemServiceBus = MessagingSystemKey.String("servicebus")
10301 // Google Cloud Pub/Sub
10302 // Stability: development
10303 MessagingSystemGCPPubSub = MessagingSystemKey.String("gcp_pubsub")
10304 // Java Message Service
10305 // Stability: development
10306 MessagingSystemJMS = MessagingSystemKey.String("jms")
10307 // Apache Kafka
10308 // Stability: development
10309 MessagingSystemKafka = MessagingSystemKey.String("kafka")
10310 // RabbitMQ
10311 // Stability: development
10312 MessagingSystemRabbitMQ = MessagingSystemKey.String("rabbitmq")
10313 // Apache RocketMQ
10314 // Stability: development
10315 MessagingSystemRocketMQ = MessagingSystemKey.String("rocketmq")
10316 // Apache Pulsar
10317 // Stability: development
10318 MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
10319 )
10320
10321 // Namespace: network
10322 const (
10323 // NetworkCarrierICCKey is the attribute Key conforming to the
10324 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
10325 // alpha-2 2-character country code associated with the mobile carrier network.
10326 //
10327 // Type: string
10328 // RequirementLevel: Recommended
10329 // Stability: Development
10330 //
10331 // Examples: DE
10332 NetworkCarrierICCKey = attribute.Key("network.carrier.icc")
10333
10334 // NetworkCarrierMCCKey is the attribute Key conforming to the
10335 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
10336 // country code.
10337 //
10338 // Type: string
10339 // RequirementLevel: Recommended
10340 // Stability: Development
10341 //
10342 // Examples: 310
10343 NetworkCarrierMCCKey = attribute.Key("network.carrier.mcc")
10344
10345 // NetworkCarrierMNCKey is the attribute Key conforming to the
10346 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
10347 // network code.
10348 //
10349 // Type: string
10350 // RequirementLevel: Recommended
10351 // Stability: Development
10352 //
10353 // Examples: 001
10354 NetworkCarrierMNCKey = attribute.Key("network.carrier.mnc")
10355
10356 // NetworkCarrierNameKey is the attribute Key conforming to the
10357 // "network.carrier.name" semantic conventions. It represents the name of the
10358 // mobile carrier.
10359 //
10360 // Type: string
10361 // RequirementLevel: Recommended
10362 // Stability: Development
10363 //
10364 // Examples: sprint
10365 NetworkCarrierNameKey = attribute.Key("network.carrier.name")
10366
10367 // NetworkConnectionStateKey is the attribute Key conforming to the
10368 // "network.connection.state" semantic conventions. It represents the state of
10369 // network connection.
10370 //
10371 // Type: Enum
10372 // RequirementLevel: Recommended
10373 // Stability: Development
10374 //
10375 // Examples: "close_wait"
10376 // Note: Connection states are defined as part of the [rfc9293]
10377 //
10378 // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2
10379 NetworkConnectionStateKey = attribute.Key("network.connection.state")
10380
10381 // NetworkConnectionSubtypeKey is the attribute Key conforming to the
10382 // "network.connection.subtype" semantic conventions. It represents the this
10383 // describes more details regarding the connection.type. It may be the type of
10384 // cell technology connection, but it could be used for describing details about
10385 // a wifi connection.
10386 //
10387 // Type: Enum
10388 // RequirementLevel: Recommended
10389 // Stability: Development
10390 //
10391 // Examples: LTE
10392 NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
10393
10394 // NetworkConnectionTypeKey is the attribute Key conforming to the
10395 // "network.connection.type" semantic conventions. It represents the internet
10396 // connection type.
10397 //
10398 // Type: Enum
10399 // RequirementLevel: Recommended
10400 // Stability: Development
10401 //
10402 // Examples: wifi
10403 NetworkConnectionTypeKey = attribute.Key("network.connection.type")
10404
10405 // NetworkInterfaceNameKey is the attribute Key conforming to the
10406 // "network.interface.name" semantic conventions. It represents the network
10407 // interface name.
10408 //
10409 // Type: string
10410 // RequirementLevel: Recommended
10411 // Stability: Development
10412 //
10413 // Examples: "lo", "eth0"
10414 NetworkInterfaceNameKey = attribute.Key("network.interface.name")
10415
10416 // NetworkIODirectionKey is the attribute Key conforming to the
10417 // "network.io.direction" semantic conventions. It represents the network IO
10418 // operation direction.
10419 //
10420 // Type: Enum
10421 // RequirementLevel: Recommended
10422 // Stability: Development
10423 //
10424 // Examples: "transmit"
10425 NetworkIODirectionKey = attribute.Key("network.io.direction")
10426
10427 // NetworkLocalAddressKey is the attribute Key conforming to the
10428 // "network.local.address" semantic conventions. It represents the local address
10429 // of the network connection - IP address or Unix domain socket name.
10430 //
10431 // Type: string
10432 // RequirementLevel: Recommended
10433 // Stability: Stable
10434 //
10435 // Examples: "10.1.2.80", "/tmp/my.sock"
10436 NetworkLocalAddressKey = attribute.Key("network.local.address")
10437
10438 // NetworkLocalPortKey is the attribute Key conforming to the
10439 // "network.local.port" semantic conventions. It represents the local port
10440 // number of the network connection.
10441 //
10442 // Type: int
10443 // RequirementLevel: Recommended
10444 // Stability: Stable
10445 //
10446 // Examples: 65123
10447 NetworkLocalPortKey = attribute.Key("network.local.port")
10448
10449 // NetworkPeerAddressKey is the attribute Key conforming to the
10450 // "network.peer.address" semantic conventions. It represents the peer address
10451 // of the network connection - IP address or Unix domain socket name.
10452 //
10453 // Type: string
10454 // RequirementLevel: Recommended
10455 // Stability: Stable
10456 //
10457 // Examples: "10.1.2.80", "/tmp/my.sock"
10458 NetworkPeerAddressKey = attribute.Key("network.peer.address")
10459
10460 // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
10461 // semantic conventions. It represents the peer port number of the network
10462 // connection.
10463 //
10464 // Type: int
10465 // RequirementLevel: Recommended
10466 // Stability: Stable
10467 //
10468 // Examples: 65123
10469 NetworkPeerPortKey = attribute.Key("network.peer.port")
10470
10471 // NetworkProtocolNameKey is the attribute Key conforming to the
10472 // "network.protocol.name" semantic conventions. It represents the
10473 // [OSI application layer] or non-OSI equivalent.
10474 //
10475 // Type: string
10476 // RequirementLevel: Recommended
10477 // Stability: Stable
10478 //
10479 // Examples: "amqp", "http", "mqtt"
10480 // Note: The value SHOULD be normalized to lowercase.
10481 //
10482 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
10483 NetworkProtocolNameKey = attribute.Key("network.protocol.name")
10484
10485 // NetworkProtocolVersionKey is the attribute Key conforming to the
10486 // "network.protocol.version" semantic conventions. It represents the actual
10487 // version of the protocol used for network communication.
10488 //
10489 // Type: string
10490 // RequirementLevel: Recommended
10491 // Stability: Stable
10492 //
10493 // Examples: "1.1", "2"
10494 // Note: If protocol version is subject to negotiation (for example using [ALPN]
10495 // ), this attribute SHOULD be set to the negotiated version. If the actual
10496 // protocol version is not known, this attribute SHOULD NOT be set.
10497 //
10498 // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
10499 NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
10500
10501 // NetworkTransportKey is the attribute Key conforming to the
10502 // "network.transport" semantic conventions. It represents the
10503 // [OSI transport layer] or [inter-process communication method].
10504 //
10505 // Type: Enum
10506 // RequirementLevel: Recommended
10507 // Stability: Stable
10508 //
10509 // Examples: "tcp", "udp"
10510 // Note: The value SHOULD be normalized to lowercase.
10511 //
10512 // Consider always setting the transport when setting a port number, since
10513 // a port number is ambiguous without knowing the transport. For example
10514 // different processes could be listening on TCP port 12345 and UDP port 12345.
10515 //
10516 // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer
10517 // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
10518 NetworkTransportKey = attribute.Key("network.transport")
10519
10520 // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
10521 // conventions. It represents the [OSI network layer] or non-OSI equivalent.
10522 //
10523 // Type: Enum
10524 // RequirementLevel: Recommended
10525 // Stability: Stable
10526 //
10527 // Examples: "ipv4", "ipv6"
10528 // Note: The value SHOULD be normalized to lowercase.
10529 //
10530 // [OSI network layer]: https://wikipedia.org/wiki/Network_layer
10531 NetworkTypeKey = attribute.Key("network.type")
10532 )
10533
10534 // NetworkCarrierICC returns an attribute KeyValue conforming to the
10535 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
10536 // alpha-2 2-character country code associated with the mobile carrier network.
10537 func NetworkCarrierICC(val string) attribute.KeyValue {
10538 return NetworkCarrierICCKey.String(val)
10539 }
10540
10541 // NetworkCarrierMCC returns an attribute KeyValue conforming to the
10542 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
10543 // country code.
10544 func NetworkCarrierMCC(val string) attribute.KeyValue {
10545 return NetworkCarrierMCCKey.String(val)
10546 }
10547
10548 // NetworkCarrierMNC returns an attribute KeyValue conforming to the
10549 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
10550 // network code.
10551 func NetworkCarrierMNC(val string) attribute.KeyValue {
10552 return NetworkCarrierMNCKey.String(val)
10553 }
10554
10555 // NetworkCarrierName returns an attribute KeyValue conforming to the
10556 // "network.carrier.name" semantic conventions. It represents the name of the
10557 // mobile carrier.
10558 func NetworkCarrierName(val string) attribute.KeyValue {
10559 return NetworkCarrierNameKey.String(val)
10560 }
10561
10562 // NetworkInterfaceName returns an attribute KeyValue conforming to the
10563 // "network.interface.name" semantic conventions. It represents the network
10564 // interface name.
10565 func NetworkInterfaceName(val string) attribute.KeyValue {
10566 return NetworkInterfaceNameKey.String(val)
10567 }
10568
10569 // NetworkLocalAddress returns an attribute KeyValue conforming to the
10570 // "network.local.address" semantic conventions. It represents the local address
10571 // of the network connection - IP address or Unix domain socket name.
10572 func NetworkLocalAddress(val string) attribute.KeyValue {
10573 return NetworkLocalAddressKey.String(val)
10574 }
10575
10576 // NetworkLocalPort returns an attribute KeyValue conforming to the
10577 // "network.local.port" semantic conventions. It represents the local port number
10578 // of the network connection.
10579 func NetworkLocalPort(val int) attribute.KeyValue {
10580 return NetworkLocalPortKey.Int(val)
10581 }
10582
10583 // NetworkPeerAddress returns an attribute KeyValue conforming to the
10584 // "network.peer.address" semantic conventions. It represents the peer address of
10585 // the network connection - IP address or Unix domain socket name.
10586 func NetworkPeerAddress(val string) attribute.KeyValue {
10587 return NetworkPeerAddressKey.String(val)
10588 }
10589
10590 // NetworkPeerPort returns an attribute KeyValue conforming to the
10591 // "network.peer.port" semantic conventions. It represents the peer port number
10592 // of the network connection.
10593 func NetworkPeerPort(val int) attribute.KeyValue {
10594 return NetworkPeerPortKey.Int(val)
10595 }
10596
10597 // NetworkProtocolName returns an attribute KeyValue conforming to the
10598 // "network.protocol.name" semantic conventions. It represents the
10599 // [OSI application layer] or non-OSI equivalent.
10600 //
10601 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
10602 func NetworkProtocolName(val string) attribute.KeyValue {
10603 return NetworkProtocolNameKey.String(val)
10604 }
10605
10606 // NetworkProtocolVersion returns an attribute KeyValue conforming to the
10607 // "network.protocol.version" semantic conventions. It represents the actual
10608 // version of the protocol used for network communication.
10609 func NetworkProtocolVersion(val string) attribute.KeyValue {
10610 return NetworkProtocolVersionKey.String(val)
10611 }
10612
10613 // Enum values for network.connection.state
10614 var (
10615 // closed
10616 // Stability: development
10617 NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed")
10618 // close_wait
10619 // Stability: development
10620 NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait")
10621 // closing
10622 // Stability: development
10623 NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing")
10624 // established
10625 // Stability: development
10626 NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established")
10627 // fin_wait_1
10628 // Stability: development
10629 NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1")
10630 // fin_wait_2
10631 // Stability: development
10632 NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2")
10633 // last_ack
10634 // Stability: development
10635 NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack")
10636 // listen
10637 // Stability: development
10638 NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen")
10639 // syn_received
10640 // Stability: development
10641 NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received")
10642 // syn_sent
10643 // Stability: development
10644 NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent")
10645 // time_wait
10646 // Stability: development
10647 NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait")
10648 )
10649
10650 // Enum values for network.connection.subtype
10651 var (
10652 // GPRS
10653 // Stability: development
10654 NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
10655 // EDGE
10656 // Stability: development
10657 NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
10658 // UMTS
10659 // Stability: development
10660 NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
10661 // CDMA
10662 // Stability: development
10663 NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
10664 // EVDO Rel. 0
10665 // Stability: development
10666 NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
10667 // EVDO Rev. A
10668 // Stability: development
10669 NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
10670 // CDMA2000 1XRTT
10671 // Stability: development
10672 NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
10673 // HSDPA
10674 // Stability: development
10675 NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
10676 // HSUPA
10677 // Stability: development
10678 NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
10679 // HSPA
10680 // Stability: development
10681 NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
10682 // IDEN
10683 // Stability: development
10684 NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
10685 // EVDO Rev. B
10686 // Stability: development
10687 NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
10688 // LTE
10689 // Stability: development
10690 NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
10691 // EHRPD
10692 // Stability: development
10693 NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
10694 // HSPAP
10695 // Stability: development
10696 NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
10697 // GSM
10698 // Stability: development
10699 NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
10700 // TD-SCDMA
10701 // Stability: development
10702 NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
10703 // IWLAN
10704 // Stability: development
10705 NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
10706 // 5G NR (New Radio)
10707 // Stability: development
10708 NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
10709 // 5G NRNSA (New Radio Non-Standalone)
10710 // Stability: development
10711 NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
10712 // LTE CA
10713 // Stability: development
10714 NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
10715 )
10716
10717 // Enum values for network.connection.type
10718 var (
10719 // wifi
10720 // Stability: development
10721 NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
10722 // wired
10723 // Stability: development
10724 NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
10725 // cell
10726 // Stability: development
10727 NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
10728 // unavailable
10729 // Stability: development
10730 NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
10731 // unknown
10732 // Stability: development
10733 NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
10734 )
10735
10736 // Enum values for network.io.direction
10737 var (
10738 // transmit
10739 // Stability: development
10740 NetworkIODirectionTransmit = NetworkIODirectionKey.String("transmit")
10741 // receive
10742 // Stability: development
10743 NetworkIODirectionReceive = NetworkIODirectionKey.String("receive")
10744 )
10745
10746 // Enum values for network.transport
10747 var (
10748 // TCP
10749 // Stability: stable
10750 NetworkTransportTCP = NetworkTransportKey.String("tcp")
10751 // UDP
10752 // Stability: stable
10753 NetworkTransportUDP = NetworkTransportKey.String("udp")
10754 // Named or anonymous pipe.
10755 // Stability: stable
10756 NetworkTransportPipe = NetworkTransportKey.String("pipe")
10757 // Unix domain socket
10758 // Stability: stable
10759 NetworkTransportUnix = NetworkTransportKey.String("unix")
10760 // QUIC
10761 // Stability: stable
10762 NetworkTransportQUIC = NetworkTransportKey.String("quic")
10763 )
10764
10765 // Enum values for network.type
10766 var (
10767 // IPv4
10768 // Stability: stable
10769 NetworkTypeIPv4 = NetworkTypeKey.String("ipv4")
10770 // IPv6
10771 // Stability: stable
10772 NetworkTypeIPv6 = NetworkTypeKey.String("ipv6")
10773 )
10774
10775 // Namespace: oci
10776 const (
10777 // OCIManifestDigestKey is the attribute Key conforming to the
10778 // "oci.manifest.digest" semantic conventions. It represents the digest of the
10779 // OCI image manifest. For container images specifically is the digest by which
10780 // the container image is known.
10781 //
10782 // Type: string
10783 // RequirementLevel: Recommended
10784 // Stability: Development
10785 //
10786 // Examples:
10787 // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
10788 // Note: Follows [OCI Image Manifest Specification], and specifically the
10789 // [Digest property].
10790 // An example can be found in [Example Image Manifest].
10791 //
10792 // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
10793 // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
10794 // [Example Image Manifest]: https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest
10795 OCIManifestDigestKey = attribute.Key("oci.manifest.digest")
10796 )
10797
10798 // OCIManifestDigest returns an attribute KeyValue conforming to the
10799 // "oci.manifest.digest" semantic conventions. It represents the digest of the
10800 // OCI image manifest. For container images specifically is the digest by which
10801 // the container image is known.
10802 func OCIManifestDigest(val string) attribute.KeyValue {
10803 return OCIManifestDigestKey.String(val)
10804 }
10805
10806 // Namespace: openai
10807 const (
10808 // OpenAIRequestServiceTierKey is the attribute Key conforming to the
10809 // "openai.request.service_tier" semantic conventions. It represents the service
10810 // tier requested. May be a specific tier, default, or auto.
10811 //
10812 // Type: Enum
10813 // RequirementLevel: Recommended
10814 // Stability: Development
10815 //
10816 // Examples: "auto", "default"
10817 OpenAIRequestServiceTierKey = attribute.Key("openai.request.service_tier")
10818
10819 // OpenAIResponseServiceTierKey is the attribute Key conforming to the
10820 // "openai.response.service_tier" semantic conventions. It represents the
10821 // service tier used for the response.
10822 //
10823 // Type: string
10824 // RequirementLevel: Recommended
10825 // Stability: Development
10826 //
10827 // Examples: "scale", "default"
10828 OpenAIResponseServiceTierKey = attribute.Key("openai.response.service_tier")
10829
10830 // OpenAIResponseSystemFingerprintKey is the attribute Key conforming to the
10831 // "openai.response.system_fingerprint" semantic conventions. It represents a
10832 // fingerprint to track any eventual change in the Generative AI environment.
10833 //
10834 // Type: string
10835 // RequirementLevel: Recommended
10836 // Stability: Development
10837 //
10838 // Examples: "fp_44709d6fcb"
10839 OpenAIResponseSystemFingerprintKey = attribute.Key("openai.response.system_fingerprint")
10840 )
10841
10842 // OpenAIResponseServiceTier returns an attribute KeyValue conforming to the
10843 // "openai.response.service_tier" semantic conventions. It represents the service
10844 // tier used for the response.
10845 func OpenAIResponseServiceTier(val string) attribute.KeyValue {
10846 return OpenAIResponseServiceTierKey.String(val)
10847 }
10848
10849 // OpenAIResponseSystemFingerprint returns an attribute KeyValue conforming to
10850 // the "openai.response.system_fingerprint" semantic conventions. It represents a
10851 // fingerprint to track any eventual change in the Generative AI environment.
10852 func OpenAIResponseSystemFingerprint(val string) attribute.KeyValue {
10853 return OpenAIResponseSystemFingerprintKey.String(val)
10854 }
10855
10856 // Enum values for openai.request.service_tier
10857 var (
10858 // The system will utilize scale tier credits until they are exhausted.
10859 // Stability: development
10860 OpenAIRequestServiceTierAuto = OpenAIRequestServiceTierKey.String("auto")
10861 // The system will utilize the default scale tier.
10862 // Stability: development
10863 OpenAIRequestServiceTierDefault = OpenAIRequestServiceTierKey.String("default")
10864 )
10865
10866 // Namespace: opentracing
10867 const (
10868 // OpenTracingRefTypeKey is the attribute Key conforming to the
10869 // "opentracing.ref_type" semantic conventions. It represents the parent-child
10870 // Reference type.
10871 //
10872 // Type: Enum
10873 // RequirementLevel: Recommended
10874 // Stability: Development
10875 //
10876 // Examples:
10877 // Note: The causal relationship between a child Span and a parent Span.
10878 OpenTracingRefTypeKey = attribute.Key("opentracing.ref_type")
10879 )
10880
10881 // Enum values for opentracing.ref_type
10882 var (
10883 // The parent Span depends on the child Span in some capacity
10884 // Stability: development
10885 OpenTracingRefTypeChildOf = OpenTracingRefTypeKey.String("child_of")
10886 // The parent Span doesn't depend in any way on the result of the child Span
10887 // Stability: development
10888 OpenTracingRefTypeFollowsFrom = OpenTracingRefTypeKey.String("follows_from")
10889 )
10890
10891 // Namespace: os
10892 const (
10893 // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
10894 // conventions. It represents the unique identifier for a particular build or
10895 // compilation of the operating system.
10896 //
10897 // Type: string
10898 // RequirementLevel: Recommended
10899 // Stability: Development
10900 //
10901 // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
10902 OSBuildIDKey = attribute.Key("os.build_id")
10903
10904 // OSDescriptionKey is the attribute Key conforming to the "os.description"
10905 // semantic conventions. It represents the human readable (not intended to be
10906 // parsed) OS version information, like e.g. reported by `ver` or
10907 // `lsb_release -a` commands.
10908 //
10909 // Type: string
10910 // RequirementLevel: Recommended
10911 // Stability: Development
10912 //
10913 // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
10914 OSDescriptionKey = attribute.Key("os.description")
10915
10916 // OSNameKey is the attribute Key conforming to the "os.name" semantic
10917 // conventions. It represents the human readable operating system name.
10918 //
10919 // Type: string
10920 // RequirementLevel: Recommended
10921 // Stability: Development
10922 //
10923 // Examples: "iOS", "Android", "Ubuntu"
10924 OSNameKey = attribute.Key("os.name")
10925
10926 // OSTypeKey is the attribute Key conforming to the "os.type" semantic
10927 // conventions. It represents the operating system type.
10928 //
10929 // Type: Enum
10930 // RequirementLevel: Recommended
10931 // Stability: Development
10932 //
10933 // Examples:
10934 OSTypeKey = attribute.Key("os.type")
10935
10936 // OSVersionKey is the attribute Key conforming to the "os.version" semantic
10937 // conventions. It represents the version string of the operating system as
10938 // defined in [Version Attributes].
10939 //
10940 // Type: string
10941 // RequirementLevel: Recommended
10942 // Stability: Development
10943 //
10944 // Examples: "14.2.1", "18.04.1"
10945 //
10946 // [Version Attributes]: /docs/resource/README.md#version-attributes
10947 OSVersionKey = attribute.Key("os.version")
10948 )
10949
10950 // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
10951 // semantic conventions. It represents the unique identifier for a particular
10952 // build or compilation of the operating system.
10953 func OSBuildID(val string) attribute.KeyValue {
10954 return OSBuildIDKey.String(val)
10955 }
10956
10957 // OSDescription returns an attribute KeyValue conforming to the "os.description"
10958 // semantic conventions. It represents the human readable (not intended to be
10959 // parsed) OS version information, like e.g. reported by `ver` or
10960 // `lsb_release -a` commands.
10961 func OSDescription(val string) attribute.KeyValue {
10962 return OSDescriptionKey.String(val)
10963 }
10964
10965 // OSName returns an attribute KeyValue conforming to the "os.name" semantic
10966 // conventions. It represents the human readable operating system name.
10967 func OSName(val string) attribute.KeyValue {
10968 return OSNameKey.String(val)
10969 }
10970
10971 // OSVersion returns an attribute KeyValue conforming to the "os.version"
10972 // semantic conventions. It represents the version string of the operating system
10973 // as defined in [Version Attributes].
10974 //
10975 // [Version Attributes]: /docs/resource/README.md#version-attributes
10976 func OSVersion(val string) attribute.KeyValue {
10977 return OSVersionKey.String(val)
10978 }
10979
10980 // Enum values for os.type
10981 var (
10982 // Microsoft Windows
10983 // Stability: development
10984 OSTypeWindows = OSTypeKey.String("windows")
10985 // Linux
10986 // Stability: development
10987 OSTypeLinux = OSTypeKey.String("linux")
10988 // Apple Darwin
10989 // Stability: development
10990 OSTypeDarwin = OSTypeKey.String("darwin")
10991 // FreeBSD
10992 // Stability: development
10993 OSTypeFreeBSD = OSTypeKey.String("freebsd")
10994 // NetBSD
10995 // Stability: development
10996 OSTypeNetBSD = OSTypeKey.String("netbsd")
10997 // OpenBSD
10998 // Stability: development
10999 OSTypeOpenBSD = OSTypeKey.String("openbsd")
11000 // DragonFly BSD
11001 // Stability: development
11002 OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
11003 // HP-UX (Hewlett Packard Unix)
11004 // Stability: development
11005 OSTypeHPUX = OSTypeKey.String("hpux")
11006 // AIX (Advanced Interactive eXecutive)
11007 // Stability: development
11008 OSTypeAIX = OSTypeKey.String("aix")
11009 // SunOS, Oracle Solaris
11010 // Stability: development
11011 OSTypeSolaris = OSTypeKey.String("solaris")
11012 // IBM z/OS
11013 // Stability: development
11014 OSTypeZOS = OSTypeKey.String("zos")
11015 )
11016
11017 // Namespace: otel
11018 const (
11019 // OTelComponentNameKey is the attribute Key conforming to the
11020 // "otel.component.name" semantic conventions. It represents a name uniquely
11021 // identifying the instance of the OpenTelemetry component within its containing
11022 // SDK instance.
11023 //
11024 // Type: string
11025 // RequirementLevel: Recommended
11026 // Stability: Development
11027 //
11028 // Examples: "otlp_grpc_span_exporter/0", "custom-name"
11029 // Note: Implementations SHOULD ensure a low cardinality for this attribute,
11030 // even across application or SDK restarts.
11031 // E.g. implementations MUST NOT use UUIDs as values for this attribute.
11032 //
11033 // Implementations MAY achieve these goals by following a
11034 // `<otel.component.type>/<instance-counter>` pattern, e.g.
11035 // `batching_span_processor/0`.
11036 // Hereby `otel.component.type` refers to the corresponding attribute value of
11037 // the component.
11038 //
11039 // The value of `instance-counter` MAY be automatically assigned by the
11040 // component and uniqueness within the enclosing SDK instance MUST be
11041 // guaranteed.
11042 // For example, `<instance-counter>` MAY be implemented by using a monotonically
11043 // increasing counter (starting with `0`), which is incremented every time an
11044 // instance of the given component type is started.
11045 //
11046 // With this implementation, for example the first Batching Span Processor would
11047 // have `batching_span_processor/0`
11048 // as `otel.component.name`, the second one `batching_span_processor/1` and so
11049 // on.
11050 // These values will therefore be reused in the case of an application restart.
11051 OTelComponentNameKey = attribute.Key("otel.component.name")
11052
11053 // OTelComponentTypeKey is the attribute Key conforming to the
11054 // "otel.component.type" semantic conventions. It represents a name identifying
11055 // the type of the OpenTelemetry component.
11056 //
11057 // Type: Enum
11058 // RequirementLevel: Recommended
11059 // Stability: Development
11060 //
11061 // Examples: "batching_span_processor", "com.example.MySpanExporter"
11062 // Note: If none of the standardized values apply, implementations SHOULD use
11063 // the language-defined name of the type.
11064 // E.g. for Java the fully qualified classname SHOULD be used in this case.
11065 OTelComponentTypeKey = attribute.Key("otel.component.type")
11066
11067 // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
11068 // semantic conventions. It represents the name of the instrumentation scope - (
11069 // `InstrumentationScope.Name` in OTLP).
11070 //
11071 // Type: string
11072 // RequirementLevel: Recommended
11073 // Stability: Stable
11074 //
11075 // Examples: "io.opentelemetry.contrib.mongodb"
11076 OTelScopeNameKey = attribute.Key("otel.scope.name")
11077
11078 // OTelScopeSchemaURLKey is the attribute Key conforming to the
11079 // "otel.scope.schema_url" semantic conventions. It represents the schema URL of
11080 // the instrumentation scope.
11081 //
11082 // Type: string
11083 // RequirementLevel: Recommended
11084 // Stability: Development
11085 //
11086 // Examples: "https://opentelemetry.io/schemas/1.31.0"
11087 OTelScopeSchemaURLKey = attribute.Key("otel.scope.schema_url")
11088
11089 // OTelScopeVersionKey is the attribute Key conforming to the
11090 // "otel.scope.version" semantic conventions. It represents the version of the
11091 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
11092 //
11093 // Type: string
11094 // RequirementLevel: Recommended
11095 // Stability: Stable
11096 //
11097 // Examples: "1.0.0"
11098 OTelScopeVersionKey = attribute.Key("otel.scope.version")
11099
11100 // OTelSpanParentOriginKey is the attribute Key conforming to the
11101 // "otel.span.parent.origin" semantic conventions. It represents the determines
11102 // whether the span has a parent span, and if so,
11103 // [whether it is a remote parent].
11104 //
11105 // Type: Enum
11106 // RequirementLevel: Recommended
11107 // Stability: Development
11108 //
11109 // Examples:
11110 //
11111 // [whether it is a remote parent]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
11112 OTelSpanParentOriginKey = attribute.Key("otel.span.parent.origin")
11113
11114 // OTelSpanSamplingResultKey is the attribute Key conforming to the
11115 // "otel.span.sampling_result" semantic conventions. It represents the result
11116 // value of the sampler for this span.
11117 //
11118 // Type: Enum
11119 // RequirementLevel: Recommended
11120 // Stability: Development
11121 //
11122 // Examples:
11123 OTelSpanSamplingResultKey = attribute.Key("otel.span.sampling_result")
11124
11125 // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
11126 // semantic conventions. It represents the name of the code, either "OK" or
11127 // "ERROR". MUST NOT be set if the status code is UNSET.
11128 //
11129 // Type: Enum
11130 // RequirementLevel: Recommended
11131 // Stability: Stable
11132 //
11133 // Examples:
11134 OTelStatusCodeKey = attribute.Key("otel.status_code")
11135
11136 // OTelStatusDescriptionKey is the attribute Key conforming to the
11137 // "otel.status_description" semantic conventions. It represents the description
11138 // of the Status if it has a value, otherwise not set.
11139 //
11140 // Type: string
11141 // RequirementLevel: Recommended
11142 // Stability: Stable
11143 //
11144 // Examples: "resource not found"
11145 OTelStatusDescriptionKey = attribute.Key("otel.status_description")
11146 )
11147
11148 // OTelComponentName returns an attribute KeyValue conforming to the
11149 // "otel.component.name" semantic conventions. It represents a name uniquely
11150 // identifying the instance of the OpenTelemetry component within its containing
11151 // SDK instance.
11152 func OTelComponentName(val string) attribute.KeyValue {
11153 return OTelComponentNameKey.String(val)
11154 }
11155
11156 // OTelScopeName returns an attribute KeyValue conforming to the
11157 // "otel.scope.name" semantic conventions. It represents the name of the
11158 // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
11159 func OTelScopeName(val string) attribute.KeyValue {
11160 return OTelScopeNameKey.String(val)
11161 }
11162
11163 // OTelScopeSchemaURL returns an attribute KeyValue conforming to the
11164 // "otel.scope.schema_url" semantic conventions. It represents the schema URL of
11165 // the instrumentation scope.
11166 func OTelScopeSchemaURL(val string) attribute.KeyValue {
11167 return OTelScopeSchemaURLKey.String(val)
11168 }
11169
11170 // OTelScopeVersion returns an attribute KeyValue conforming to the
11171 // "otel.scope.version" semantic conventions. It represents the version of the
11172 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
11173 func OTelScopeVersion(val string) attribute.KeyValue {
11174 return OTelScopeVersionKey.String(val)
11175 }
11176
11177 // OTelStatusDescription returns an attribute KeyValue conforming to the
11178 // "otel.status_description" semantic conventions. It represents the description
11179 // of the Status if it has a value, otherwise not set.
11180 func OTelStatusDescription(val string) attribute.KeyValue {
11181 return OTelStatusDescriptionKey.String(val)
11182 }
11183
11184 // Enum values for otel.component.type
11185 var (
11186 // The builtin SDK batching span processor
11187 //
11188 // Stability: development
11189 OTelComponentTypeBatchingSpanProcessor = OTelComponentTypeKey.String("batching_span_processor")
11190 // The builtin SDK simple span processor
11191 //
11192 // Stability: development
11193 OTelComponentTypeSimpleSpanProcessor = OTelComponentTypeKey.String("simple_span_processor")
11194 // The builtin SDK batching log record processor
11195 //
11196 // Stability: development
11197 OTelComponentTypeBatchingLogProcessor = OTelComponentTypeKey.String("batching_log_processor")
11198 // The builtin SDK simple log record processor
11199 //
11200 // Stability: development
11201 OTelComponentTypeSimpleLogProcessor = OTelComponentTypeKey.String("simple_log_processor")
11202 // OTLP span exporter over gRPC with protobuf serialization
11203 //
11204 // Stability: development
11205 OTelComponentTypeOtlpGRPCSpanExporter = OTelComponentTypeKey.String("otlp_grpc_span_exporter")
11206 // OTLP span exporter over HTTP with protobuf serialization
11207 //
11208 // Stability: development
11209 OTelComponentTypeOtlpHTTPSpanExporter = OTelComponentTypeKey.String("otlp_http_span_exporter")
11210 // OTLP span exporter over HTTP with JSON serialization
11211 //
11212 // Stability: development
11213 OTelComponentTypeOtlpHTTPJSONSpanExporter = OTelComponentTypeKey.String("otlp_http_json_span_exporter")
11214 // Zipkin span exporter over HTTP
11215 //
11216 // Stability: development
11217 OTelComponentTypeZipkinHTTPSpanExporter = OTelComponentTypeKey.String("zipkin_http_span_exporter")
11218 // OTLP log record exporter over gRPC with protobuf serialization
11219 //
11220 // Stability: development
11221 OTelComponentTypeOtlpGRPCLogExporter = OTelComponentTypeKey.String("otlp_grpc_log_exporter")
11222 // OTLP log record exporter over HTTP with protobuf serialization
11223 //
11224 // Stability: development
11225 OTelComponentTypeOtlpHTTPLogExporter = OTelComponentTypeKey.String("otlp_http_log_exporter")
11226 // OTLP log record exporter over HTTP with JSON serialization
11227 //
11228 // Stability: development
11229 OTelComponentTypeOtlpHTTPJSONLogExporter = OTelComponentTypeKey.String("otlp_http_json_log_exporter")
11230 // The builtin SDK periodically exporting metric reader
11231 //
11232 // Stability: development
11233 OTelComponentTypePeriodicMetricReader = OTelComponentTypeKey.String("periodic_metric_reader")
11234 // OTLP metric exporter over gRPC with protobuf serialization
11235 //
11236 // Stability: development
11237 OTelComponentTypeOtlpGRPCMetricExporter = OTelComponentTypeKey.String("otlp_grpc_metric_exporter")
11238 // OTLP metric exporter over HTTP with protobuf serialization
11239 //
11240 // Stability: development
11241 OTelComponentTypeOtlpHTTPMetricExporter = OTelComponentTypeKey.String("otlp_http_metric_exporter")
11242 // OTLP metric exporter over HTTP with JSON serialization
11243 //
11244 // Stability: development
11245 OTelComponentTypeOtlpHTTPJSONMetricExporter = OTelComponentTypeKey.String("otlp_http_json_metric_exporter")
11246 // Prometheus metric exporter over HTTP with the default text-based format
11247 //
11248 // Stability: development
11249 OTelComponentTypePrometheusHTTPTextMetricExporter = OTelComponentTypeKey.String("prometheus_http_text_metric_exporter")
11250 )
11251
11252 // Enum values for otel.span.parent.origin
11253 var (
11254 // The span does not have a parent, it is a root span
11255 // Stability: development
11256 OTelSpanParentOriginNone = OTelSpanParentOriginKey.String("none")
11257 // The span has a parent and the parent's span context [isRemote()] is false
11258 // Stability: development
11259 //
11260 // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
11261 OTelSpanParentOriginLocal = OTelSpanParentOriginKey.String("local")
11262 // The span has a parent and the parent's span context [isRemote()] is true
11263 // Stability: development
11264 //
11265 // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
11266 OTelSpanParentOriginRemote = OTelSpanParentOriginKey.String("remote")
11267 )
11268
11269 // Enum values for otel.span.sampling_result
11270 var (
11271 // The span is not sampled and not recording
11272 // Stability: development
11273 OTelSpanSamplingResultDrop = OTelSpanSamplingResultKey.String("DROP")
11274 // The span is not sampled, but recording
11275 // Stability: development
11276 OTelSpanSamplingResultRecordOnly = OTelSpanSamplingResultKey.String("RECORD_ONLY")
11277 // The span is sampled and recording
11278 // Stability: development
11279 OTelSpanSamplingResultRecordAndSample = OTelSpanSamplingResultKey.String("RECORD_AND_SAMPLE")
11280 )
11281
11282 // Enum values for otel.status_code
11283 var (
11284 // The operation has been validated by an Application developer or Operator to
11285 // have completed successfully.
11286 // Stability: stable
11287 OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
11288 // The operation contains an error.
11289 // Stability: stable
11290 OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
11291 )
11292
11293 // Namespace: peer
11294 const (
11295 // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic
11296 // conventions. It represents the [`service.name`] of the remote service. SHOULD
11297 // be equal to the actual `service.name` resource attribute of the remote
11298 // service if any.
11299 //
11300 // Type: string
11301 // RequirementLevel: Recommended
11302 // Stability: Development
11303 //
11304 // Examples: AuthTokenCache
11305 //
11306 // [`service.name`]: /docs/resource/README.md#service
11307 PeerServiceKey = attribute.Key("peer.service")
11308 )
11309
11310 // PeerService returns an attribute KeyValue conforming to the "peer.service"
11311 // semantic conventions. It represents the [`service.name`] of the remote
11312 // service. SHOULD be equal to the actual `service.name` resource attribute of
11313 // the remote service if any.
11314 //
11315 // [`service.name`]: /docs/resource/README.md#service
11316 func PeerService(val string) attribute.KeyValue {
11317 return PeerServiceKey.String(val)
11318 }
11319
11320 // Namespace: process
11321 const (
11322 // ProcessArgsCountKey is the attribute Key conforming to the
11323 // "process.args_count" semantic conventions. It represents the length of the
11324 // process.command_args array.
11325 //
11326 // Type: int
11327 // RequirementLevel: Recommended
11328 // Stability: Development
11329 //
11330 // Examples: 4
11331 // Note: This field can be useful for querying or performing bucket analysis on
11332 // how many arguments were provided to start a process. More arguments may be an
11333 // indication of suspicious activity.
11334 ProcessArgsCountKey = attribute.Key("process.args_count")
11335
11336 // ProcessCommandKey is the attribute Key conforming to the "process.command"
11337 // semantic conventions. It represents the command used to launch the process
11338 // (i.e. the command name). On Linux based systems, can be set to the zeroth
11339 // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
11340 // extracted from `GetCommandLineW`.
11341 //
11342 // Type: string
11343 // RequirementLevel: Recommended
11344 // Stability: Development
11345 //
11346 // Examples: "cmd/otelcol"
11347 ProcessCommandKey = attribute.Key("process.command")
11348
11349 // ProcessCommandArgsKey is the attribute Key conforming to the
11350 // "process.command_args" semantic conventions. It represents the all the
11351 // command arguments (including the command/executable itself) as received by
11352 // the process. On Linux-based systems (and some other Unixoid systems
11353 // supporting procfs), can be set according to the list of null-delimited
11354 // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
11355 // would be the full argv vector passed to `main`. SHOULD NOT be collected by
11356 // default unless there is sanitization that excludes sensitive data.
11357 //
11358 // Type: string[]
11359 // RequirementLevel: Recommended
11360 // Stability: Development
11361 //
11362 // Examples: "cmd/otecol", "--config=config.yaml"
11363 ProcessCommandArgsKey = attribute.Key("process.command_args")
11364
11365 // ProcessCommandLineKey is the attribute Key conforming to the
11366 // "process.command_line" semantic conventions. It represents the full command
11367 // used to launch the process as a single string representing the full command.
11368 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
11369 // you have to assemble it just for monitoring; use `process.command_args`
11370 // instead. SHOULD NOT be collected by default unless there is sanitization that
11371 // excludes sensitive data.
11372 //
11373 // Type: string
11374 // RequirementLevel: Recommended
11375 // Stability: Development
11376 //
11377 // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
11378 ProcessCommandLineKey = attribute.Key("process.command_line")
11379
11380 // ProcessContextSwitchTypeKey is the attribute Key conforming to the
11381 // "process.context_switch_type" semantic conventions. It represents the
11382 // specifies whether the context switches for this data point were voluntary or
11383 // involuntary.
11384 //
11385 // Type: Enum
11386 // RequirementLevel: Recommended
11387 // Stability: Development
11388 //
11389 // Examples:
11390 ProcessContextSwitchTypeKey = attribute.Key("process.context_switch_type")
11391
11392 // ProcessCreationTimeKey is the attribute Key conforming to the
11393 // "process.creation.time" semantic conventions. It represents the date and time
11394 // the process was created, in ISO 8601 format.
11395 //
11396 // Type: string
11397 // RequirementLevel: Recommended
11398 // Stability: Development
11399 //
11400 // Examples: "2023-11-21T09:25:34.853Z"
11401 ProcessCreationTimeKey = attribute.Key("process.creation.time")
11402
11403 // ProcessExecutableBuildIDGNUKey is the attribute Key conforming to the
11404 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
11405 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
11406 //
11407 // Type: string
11408 // RequirementLevel: Recommended
11409 // Stability: Development
11410 //
11411 // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
11412 ProcessExecutableBuildIDGNUKey = attribute.Key("process.executable.build_id.gnu")
11413
11414 // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the
11415 // "process.executable.build_id.go" semantic conventions. It represents the Go
11416 // build ID as retrieved by `go tool buildid <go executable>`.
11417 //
11418 // Type: string
11419 // RequirementLevel: Recommended
11420 // Stability: Development
11421 //
11422 // Examples:
11423 // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
11424 ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
11425
11426 // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the
11427 // "process.executable.build_id.htlhash" semantic conventions. It represents the
11428 // profiling specific build ID for executables. See the OTel specification for
11429 // Profiles for more information.
11430 //
11431 // Type: string
11432 // RequirementLevel: Recommended
11433 // Stability: Development
11434 //
11435 // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
11436 ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash")
11437
11438 // ProcessExecutableNameKey is the attribute Key conforming to the
11439 // "process.executable.name" semantic conventions. It represents the name of the
11440 // process executable. On Linux based systems, this SHOULD be set to the base
11441 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to
11442 // the base name of `GetProcessImageFileNameW`.
11443 //
11444 // Type: string
11445 // RequirementLevel: Recommended
11446 // Stability: Development
11447 //
11448 // Examples: "otelcol"
11449 ProcessExecutableNameKey = attribute.Key("process.executable.name")
11450
11451 // ProcessExecutablePathKey is the attribute Key conforming to the
11452 // "process.executable.path" semantic conventions. It represents the full path
11453 // to the process executable. On Linux based systems, can be set to the target
11454 // of `proc/[pid]/exe`. On Windows, can be set to the result of
11455 // `GetProcessImageFileNameW`.
11456 //
11457 // Type: string
11458 // RequirementLevel: Recommended
11459 // Stability: Development
11460 //
11461 // Examples: "/usr/bin/cmd/otelcol"
11462 ProcessExecutablePathKey = attribute.Key("process.executable.path")
11463
11464 // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
11465 // semantic conventions. It represents the exit code of the process.
11466 //
11467 // Type: int
11468 // RequirementLevel: Recommended
11469 // Stability: Development
11470 //
11471 // Examples: 127
11472 ProcessExitCodeKey = attribute.Key("process.exit.code")
11473
11474 // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
11475 // semantic conventions. It represents the date and time the process exited, in
11476 // ISO 8601 format.
11477 //
11478 // Type: string
11479 // RequirementLevel: Recommended
11480 // Stability: Development
11481 //
11482 // Examples: "2023-11-21T09:26:12.315Z"
11483 ProcessExitTimeKey = attribute.Key("process.exit.time")
11484
11485 // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
11486 // "process.group_leader.pid" semantic conventions. It represents the PID of the
11487 // process's group leader. This is also the process group ID (PGID) of the
11488 // process.
11489 //
11490 // Type: int
11491 // RequirementLevel: Recommended
11492 // Stability: Development
11493 //
11494 // Examples: 23
11495 ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
11496
11497 // ProcessInteractiveKey is the attribute Key conforming to the
11498 // "process.interactive" semantic conventions. It represents the whether the
11499 // process is connected to an interactive shell.
11500 //
11501 // Type: boolean
11502 // RequirementLevel: Recommended
11503 // Stability: Development
11504 //
11505 // Examples:
11506 ProcessInteractiveKey = attribute.Key("process.interactive")
11507
11508 // ProcessLinuxCgroupKey is the attribute Key conforming to the
11509 // "process.linux.cgroup" semantic conventions. It represents the control group
11510 // associated with the process.
11511 //
11512 // Type: string
11513 // RequirementLevel: Recommended
11514 // Stability: Development
11515 //
11516 // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope",
11517 // "0::/user.slice/user-1000.slice/user@1000.service/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"
11518 // Note: Control groups (cgroups) are a kernel feature used to organize and
11519 // manage process resources. This attribute provides the path(s) to the
11520 // cgroup(s) associated with the process, which should match the contents of the
11521 // [/proc/[PID]/cgroup] file.
11522 //
11523 // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html
11524 ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup")
11525
11526 // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
11527 // semantic conventions. It represents the username of the user that owns the
11528 // process.
11529 //
11530 // Type: string
11531 // RequirementLevel: Recommended
11532 // Stability: Development
11533 //
11534 // Examples: "root"
11535 ProcessOwnerKey = attribute.Key("process.owner")
11536
11537 // ProcessPagingFaultTypeKey is the attribute Key conforming to the
11538 // "process.paging.fault_type" semantic conventions. It represents the type of
11539 // page fault for this data point. Type `major` is for major/hard page faults,
11540 // and `minor` is for minor/soft page faults.
11541 //
11542 // Type: Enum
11543 // RequirementLevel: Recommended
11544 // Stability: Development
11545 //
11546 // Examples:
11547 ProcessPagingFaultTypeKey = attribute.Key("process.paging.fault_type")
11548
11549 // ProcessParentPIDKey is the attribute Key conforming to the
11550 // "process.parent_pid" semantic conventions. It represents the parent Process
11551 // identifier (PPID).
11552 //
11553 // Type: int
11554 // RequirementLevel: Recommended
11555 // Stability: Development
11556 //
11557 // Examples: 111
11558 ProcessParentPIDKey = attribute.Key("process.parent_pid")
11559
11560 // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
11561 // conventions. It represents the process identifier (PID).
11562 //
11563 // Type: int
11564 // RequirementLevel: Recommended
11565 // Stability: Development
11566 //
11567 // Examples: 1234
11568 ProcessPIDKey = attribute.Key("process.pid")
11569
11570 // ProcessRealUserIDKey is the attribute Key conforming to the
11571 // "process.real_user.id" semantic conventions. It represents the real user ID
11572 // (RUID) of the process.
11573 //
11574 // Type: int
11575 // RequirementLevel: Recommended
11576 // Stability: Development
11577 //
11578 // Examples: 1000
11579 ProcessRealUserIDKey = attribute.Key("process.real_user.id")
11580
11581 // ProcessRealUserNameKey is the attribute Key conforming to the
11582 // "process.real_user.name" semantic conventions. It represents the username of
11583 // the real user of the process.
11584 //
11585 // Type: string
11586 // RequirementLevel: Recommended
11587 // Stability: Development
11588 //
11589 // Examples: "operator"
11590 ProcessRealUserNameKey = attribute.Key("process.real_user.name")
11591
11592 // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
11593 // "process.runtime.description" semantic conventions. It represents an
11594 // additional description about the runtime of the process, for example a
11595 // specific vendor customization of the runtime environment.
11596 //
11597 // Type: string
11598 // RequirementLevel: Recommended
11599 // Stability: Development
11600 //
11601 // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
11602 ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
11603
11604 // ProcessRuntimeNameKey is the attribute Key conforming to the
11605 // "process.runtime.name" semantic conventions. It represents the name of the
11606 // runtime of this process.
11607 //
11608 // Type: string
11609 // RequirementLevel: Recommended
11610 // Stability: Development
11611 //
11612 // Examples: "OpenJDK Runtime Environment"
11613 ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
11614
11615 // ProcessRuntimeVersionKey is the attribute Key conforming to the
11616 // "process.runtime.version" semantic conventions. It represents the version of
11617 // the runtime of this process, as returned by the runtime without modification.
11618 //
11619 // Type: string
11620 // RequirementLevel: Recommended
11621 // Stability: Development
11622 //
11623 // Examples: 14.0.2
11624 ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
11625
11626 // ProcessSavedUserIDKey is the attribute Key conforming to the
11627 // "process.saved_user.id" semantic conventions. It represents the saved user ID
11628 // (SUID) of the process.
11629 //
11630 // Type: int
11631 // RequirementLevel: Recommended
11632 // Stability: Development
11633 //
11634 // Examples: 1002
11635 ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
11636
11637 // ProcessSavedUserNameKey is the attribute Key conforming to the
11638 // "process.saved_user.name" semantic conventions. It represents the username of
11639 // the saved user.
11640 //
11641 // Type: string
11642 // RequirementLevel: Recommended
11643 // Stability: Development
11644 //
11645 // Examples: "operator"
11646 ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
11647
11648 // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
11649 // "process.session_leader.pid" semantic conventions. It represents the PID of
11650 // the process's session leader. This is also the session ID (SID) of the
11651 // process.
11652 //
11653 // Type: int
11654 // RequirementLevel: Recommended
11655 // Stability: Development
11656 //
11657 // Examples: 14
11658 ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
11659
11660 // ProcessTitleKey is the attribute Key conforming to the "process.title"
11661 // semantic conventions. It represents the process title (proctitle).
11662 //
11663 // Type: string
11664 // RequirementLevel: Recommended
11665 // Stability: Development
11666 //
11667 // Examples: "cat /etc/hostname", "xfce4-session", "bash"
11668 // Note: In many Unix-like systems, process title (proctitle), is the string
11669 // that represents the name or command line of a running process, displayed by
11670 // system monitoring tools like ps, top, and htop.
11671 ProcessTitleKey = attribute.Key("process.title")
11672
11673 // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
11674 // semantic conventions. It represents the effective user ID (EUID) of the
11675 // process.
11676 //
11677 // Type: int
11678 // RequirementLevel: Recommended
11679 // Stability: Development
11680 //
11681 // Examples: 1001
11682 ProcessUserIDKey = attribute.Key("process.user.id")
11683
11684 // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
11685 // semantic conventions. It represents the username of the effective user of the
11686 // process.
11687 //
11688 // Type: string
11689 // RequirementLevel: Recommended
11690 // Stability: Development
11691 //
11692 // Examples: "root"
11693 ProcessUserNameKey = attribute.Key("process.user.name")
11694
11695 // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
11696 // conventions. It represents the virtual process identifier.
11697 //
11698 // Type: int
11699 // RequirementLevel: Recommended
11700 // Stability: Development
11701 //
11702 // Examples: 12
11703 // Note: The process ID within a PID namespace. This is not necessarily unique
11704 // across all processes on the host but it is unique within the process
11705 // namespace that the process exists within.
11706 ProcessVpidKey = attribute.Key("process.vpid")
11707
11708 // ProcessWorkingDirectoryKey is the attribute Key conforming to the
11709 // "process.working_directory" semantic conventions. It represents the working
11710 // directory of the process.
11711 //
11712 // Type: string
11713 // RequirementLevel: Recommended
11714 // Stability: Development
11715 //
11716 // Examples: "/root"
11717 ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
11718 )
11719
11720 // ProcessArgsCount returns an attribute KeyValue conforming to the
11721 // "process.args_count" semantic conventions. It represents the length of the
11722 // process.command_args array.
11723 func ProcessArgsCount(val int) attribute.KeyValue {
11724 return ProcessArgsCountKey.Int(val)
11725 }
11726
11727 // ProcessCommand returns an attribute KeyValue conforming to the
11728 // "process.command" semantic conventions. It represents the command used to
11729 // launch the process (i.e. the command name). On Linux based systems, can be set
11730 // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
11731 // first parameter extracted from `GetCommandLineW`.
11732 func ProcessCommand(val string) attribute.KeyValue {
11733 return ProcessCommandKey.String(val)
11734 }
11735
11736 // ProcessCommandArgs returns an attribute KeyValue conforming to the
11737 // "process.command_args" semantic conventions. It represents the all the command
11738 // arguments (including the command/executable itself) as received by the
11739 // process. On Linux-based systems (and some other Unixoid systems supporting
11740 // procfs), can be set according to the list of null-delimited strings extracted
11741 // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
11742 // argv vector passed to `main`. SHOULD NOT be collected by default unless there
11743 // is sanitization that excludes sensitive data.
11744 func ProcessCommandArgs(val ...string) attribute.KeyValue {
11745 return ProcessCommandArgsKey.StringSlice(val)
11746 }
11747
11748 // ProcessCommandLine returns an attribute KeyValue conforming to the
11749 // "process.command_line" semantic conventions. It represents the full command
11750 // used to launch the process as a single string representing the full command.
11751 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
11752 // you have to assemble it just for monitoring; use `process.command_args`
11753 // instead. SHOULD NOT be collected by default unless there is sanitization that
11754 // excludes sensitive data.
11755 func ProcessCommandLine(val string) attribute.KeyValue {
11756 return ProcessCommandLineKey.String(val)
11757 }
11758
11759 // ProcessCreationTime returns an attribute KeyValue conforming to the
11760 // "process.creation.time" semantic conventions. It represents the date and time
11761 // the process was created, in ISO 8601 format.
11762 func ProcessCreationTime(val string) attribute.KeyValue {
11763 return ProcessCreationTimeKey.String(val)
11764 }
11765
11766 // ProcessEnvironmentVariable returns an attribute KeyValue conforming to the
11767 // "process.environment_variable" semantic conventions. It represents the process
11768 // environment variables, `<key>` being the environment variable name, the value
11769 // being the environment variable value.
11770 func ProcessEnvironmentVariable(key string, val string) attribute.KeyValue {
11771 return attribute.String("process.environment_variable."+key, val)
11772 }
11773
11774 // ProcessExecutableBuildIDGNU returns an attribute KeyValue conforming to the
11775 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
11776 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
11777 func ProcessExecutableBuildIDGNU(val string) attribute.KeyValue {
11778 return ProcessExecutableBuildIDGNUKey.String(val)
11779 }
11780
11781 // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the
11782 // "process.executable.build_id.go" semantic conventions. It represents the Go
11783 // build ID as retrieved by `go tool buildid <go executable>`.
11784 func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
11785 return ProcessExecutableBuildIDGoKey.String(val)
11786 }
11787
11788 // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to
11789 // the "process.executable.build_id.htlhash" semantic conventions. It represents
11790 // the profiling specific build ID for executables. See the OTel specification
11791 // for Profiles for more information.
11792 func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue {
11793 return ProcessExecutableBuildIDHtlhashKey.String(val)
11794 }
11795
11796 // ProcessExecutableName returns an attribute KeyValue conforming to the
11797 // "process.executable.name" semantic conventions. It represents the name of the
11798 // process executable. On Linux based systems, this SHOULD be set to the base
11799 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the
11800 // base name of `GetProcessImageFileNameW`.
11801 func ProcessExecutableName(val string) attribute.KeyValue {
11802 return ProcessExecutableNameKey.String(val)
11803 }
11804
11805 // ProcessExecutablePath returns an attribute KeyValue conforming to the
11806 // "process.executable.path" semantic conventions. It represents the full path to
11807 // the process executable. On Linux based systems, can be set to the target of
11808 // `proc/[pid]/exe`. On Windows, can be set to the result of
11809 // `GetProcessImageFileNameW`.
11810 func ProcessExecutablePath(val string) attribute.KeyValue {
11811 return ProcessExecutablePathKey.String(val)
11812 }
11813
11814 // ProcessExitCode returns an attribute KeyValue conforming to the
11815 // "process.exit.code" semantic conventions. It represents the exit code of the
11816 // process.
11817 func ProcessExitCode(val int) attribute.KeyValue {
11818 return ProcessExitCodeKey.Int(val)
11819 }
11820
11821 // ProcessExitTime returns an attribute KeyValue conforming to the
11822 // "process.exit.time" semantic conventions. It represents the date and time the
11823 // process exited, in ISO 8601 format.
11824 func ProcessExitTime(val string) attribute.KeyValue {
11825 return ProcessExitTimeKey.String(val)
11826 }
11827
11828 // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
11829 // "process.group_leader.pid" semantic conventions. It represents the PID of the
11830 // process's group leader. This is also the process group ID (PGID) of the
11831 // process.
11832 func ProcessGroupLeaderPID(val int) attribute.KeyValue {
11833 return ProcessGroupLeaderPIDKey.Int(val)
11834 }
11835
11836 // ProcessInteractive returns an attribute KeyValue conforming to the
11837 // "process.interactive" semantic conventions. It represents the whether the
11838 // process is connected to an interactive shell.
11839 func ProcessInteractive(val bool) attribute.KeyValue {
11840 return ProcessInteractiveKey.Bool(val)
11841 }
11842
11843 // ProcessLinuxCgroup returns an attribute KeyValue conforming to the
11844 // "process.linux.cgroup" semantic conventions. It represents the control group
11845 // associated with the process.
11846 func ProcessLinuxCgroup(val string) attribute.KeyValue {
11847 return ProcessLinuxCgroupKey.String(val)
11848 }
11849
11850 // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
11851 // semantic conventions. It represents the username of the user that owns the
11852 // process.
11853 func ProcessOwner(val string) attribute.KeyValue {
11854 return ProcessOwnerKey.String(val)
11855 }
11856
11857 // ProcessParentPID returns an attribute KeyValue conforming to the
11858 // "process.parent_pid" semantic conventions. It represents the parent Process
11859 // identifier (PPID).
11860 func ProcessParentPID(val int) attribute.KeyValue {
11861 return ProcessParentPIDKey.Int(val)
11862 }
11863
11864 // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
11865 // semantic conventions. It represents the process identifier (PID).
11866 func ProcessPID(val int) attribute.KeyValue {
11867 return ProcessPIDKey.Int(val)
11868 }
11869
11870 // ProcessRealUserID returns an attribute KeyValue conforming to the
11871 // "process.real_user.id" semantic conventions. It represents the real user ID
11872 // (RUID) of the process.
11873 func ProcessRealUserID(val int) attribute.KeyValue {
11874 return ProcessRealUserIDKey.Int(val)
11875 }
11876
11877 // ProcessRealUserName returns an attribute KeyValue conforming to the
11878 // "process.real_user.name" semantic conventions. It represents the username of
11879 // the real user of the process.
11880 func ProcessRealUserName(val string) attribute.KeyValue {
11881 return ProcessRealUserNameKey.String(val)
11882 }
11883
11884 // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
11885 // "process.runtime.description" semantic conventions. It represents an
11886 // additional description about the runtime of the process, for example a
11887 // specific vendor customization of the runtime environment.
11888 func ProcessRuntimeDescription(val string) attribute.KeyValue {
11889 return ProcessRuntimeDescriptionKey.String(val)
11890 }
11891
11892 // ProcessRuntimeName returns an attribute KeyValue conforming to the
11893 // "process.runtime.name" semantic conventions. It represents the name of the
11894 // runtime of this process.
11895 func ProcessRuntimeName(val string) attribute.KeyValue {
11896 return ProcessRuntimeNameKey.String(val)
11897 }
11898
11899 // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
11900 // "process.runtime.version" semantic conventions. It represents the version of
11901 // the runtime of this process, as returned by the runtime without modification.
11902 func ProcessRuntimeVersion(val string) attribute.KeyValue {
11903 return ProcessRuntimeVersionKey.String(val)
11904 }
11905
11906 // ProcessSavedUserID returns an attribute KeyValue conforming to the
11907 // "process.saved_user.id" semantic conventions. It represents the saved user ID
11908 // (SUID) of the process.
11909 func ProcessSavedUserID(val int) attribute.KeyValue {
11910 return ProcessSavedUserIDKey.Int(val)
11911 }
11912
11913 // ProcessSavedUserName returns an attribute KeyValue conforming to the
11914 // "process.saved_user.name" semantic conventions. It represents the username of
11915 // the saved user.
11916 func ProcessSavedUserName(val string) attribute.KeyValue {
11917 return ProcessSavedUserNameKey.String(val)
11918 }
11919
11920 // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
11921 // "process.session_leader.pid" semantic conventions. It represents the PID of
11922 // the process's session leader. This is also the session ID (SID) of the
11923 // process.
11924 func ProcessSessionLeaderPID(val int) attribute.KeyValue {
11925 return ProcessSessionLeaderPIDKey.Int(val)
11926 }
11927
11928 // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
11929 // semantic conventions. It represents the process title (proctitle).
11930 func ProcessTitle(val string) attribute.KeyValue {
11931 return ProcessTitleKey.String(val)
11932 }
11933
11934 // ProcessUserID returns an attribute KeyValue conforming to the
11935 // "process.user.id" semantic conventions. It represents the effective user ID
11936 // (EUID) of the process.
11937 func ProcessUserID(val int) attribute.KeyValue {
11938 return ProcessUserIDKey.Int(val)
11939 }
11940
11941 // ProcessUserName returns an attribute KeyValue conforming to the
11942 // "process.user.name" semantic conventions. It represents the username of the
11943 // effective user of the process.
11944 func ProcessUserName(val string) attribute.KeyValue {
11945 return ProcessUserNameKey.String(val)
11946 }
11947
11948 // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
11949 // semantic conventions. It represents the virtual process identifier.
11950 func ProcessVpid(val int) attribute.KeyValue {
11951 return ProcessVpidKey.Int(val)
11952 }
11953
11954 // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
11955 // "process.working_directory" semantic conventions. It represents the working
11956 // directory of the process.
11957 func ProcessWorkingDirectory(val string) attribute.KeyValue {
11958 return ProcessWorkingDirectoryKey.String(val)
11959 }
11960
11961 // Enum values for process.context_switch_type
11962 var (
11963 // voluntary
11964 // Stability: development
11965 ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
11966 // involuntary
11967 // Stability: development
11968 ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
11969 )
11970
11971 // Enum values for process.paging.fault_type
11972 var (
11973 // major
11974 // Stability: development
11975 ProcessPagingFaultTypeMajor = ProcessPagingFaultTypeKey.String("major")
11976 // minor
11977 // Stability: development
11978 ProcessPagingFaultTypeMinor = ProcessPagingFaultTypeKey.String("minor")
11979 )
11980
11981 // Namespace: profile
11982 const (
11983 // ProfileFrameTypeKey is the attribute Key conforming to the
11984 // "profile.frame.type" semantic conventions. It represents the describes the
11985 // interpreter or compiler of a single frame.
11986 //
11987 // Type: Enum
11988 // RequirementLevel: Recommended
11989 // Stability: Development
11990 //
11991 // Examples: "cpython"
11992 ProfileFrameTypeKey = attribute.Key("profile.frame.type")
11993 )
11994
11995 // Enum values for profile.frame.type
11996 var (
11997 // [.NET]
11998 //
11999 // Stability: development
12000 //
12001 // [.NET]: https://wikipedia.org/wiki/.NET
12002 ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
12003 // [JVM]
12004 //
12005 // Stability: development
12006 //
12007 // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
12008 ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
12009 // [Kernel]
12010 //
12011 // Stability: development
12012 //
12013 // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
12014 ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
12015 // Can be one of but not limited to [C], [C++], [Go] or [Rust]. If possible, a
12016 // more precise value MUST be used.
12017 //
12018 // Stability: development
12019 //
12020 // [C]: https://wikipedia.org/wiki/C_(programming_language)
12021 // [C++]: https://wikipedia.org/wiki/C%2B%2B
12022 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
12023 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
12024 ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
12025 // [Perl]
12026 //
12027 // Stability: development
12028 //
12029 // [Perl]: https://wikipedia.org/wiki/Perl
12030 ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
12031 // [PHP]
12032 //
12033 // Stability: development
12034 //
12035 // [PHP]: https://wikipedia.org/wiki/PHP
12036 ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
12037 // [Python]
12038 //
12039 // Stability: development
12040 //
12041 // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
12042 ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
12043 // [Ruby]
12044 //
12045 // Stability: development
12046 //
12047 // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
12048 ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
12049 // [V8JS]
12050 //
12051 // Stability: development
12052 //
12053 // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
12054 ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
12055 // [Erlang]
12056 //
12057 // Stability: development
12058 //
12059 // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)
12060 ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam")
12061 // [Go],
12062 //
12063 // Stability: development
12064 //
12065 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
12066 ProfileFrameTypeGo = ProfileFrameTypeKey.String("go")
12067 // [Rust]
12068 //
12069 // Stability: development
12070 //
12071 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
12072 ProfileFrameTypeRust = ProfileFrameTypeKey.String("rust")
12073 )
12074
12075 // Namespace: rpc
12076 const (
12077 // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the
12078 // "rpc.connect_rpc.error_code" semantic conventions. It represents the
12079 // [error codes] of the Connect request. Error codes are always string values.
12080 //
12081 // Type: Enum
12082 // RequirementLevel: Recommended
12083 // Stability: Development
12084 //
12085 // Examples:
12086 //
12087 // [error codes]: https://connectrpc.com//docs/protocol/#error-codes
12088 RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code")
12089
12090 // RPCGRPCStatusCodeKey is the attribute Key conforming to the
12091 // "rpc.grpc.status_code" semantic conventions. It represents the
12092 // [numeric status code] of the gRPC request.
12093 //
12094 // Type: Enum
12095 // RequirementLevel: Recommended
12096 // Stability: Development
12097 //
12098 // Examples:
12099 //
12100 // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md
12101 RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")
12102
12103 // RPCJSONRPCErrorCodeKey is the attribute Key conforming to the
12104 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
12105 // property of response if it is an error response.
12106 //
12107 // Type: int
12108 // RequirementLevel: Recommended
12109 // Stability: Development
12110 //
12111 // Examples: -32700, 100
12112 RPCJSONRPCErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code")
12113
12114 // RPCJSONRPCErrorMessageKey is the attribute Key conforming to the
12115 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
12116 // `error.message` property of response if it is an error response.
12117 //
12118 // Type: string
12119 // RequirementLevel: Recommended
12120 // Stability: Development
12121 //
12122 // Examples: "Parse error", "User already exists"
12123 RPCJSONRPCErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message")
12124
12125 // RPCJSONRPCRequestIDKey is the attribute Key conforming to the
12126 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id`
12127 // property of request or response. Since protocol allows id to be int, string,
12128 // `null` or missing (for notifications), value is expected to be cast to string
12129 // for simplicity. Use empty string in case of `null` value. Omit entirely if
12130 // this is a notification.
12131 //
12132 // Type: string
12133 // RequirementLevel: Recommended
12134 // Stability: Development
12135 //
12136 // Examples: "10", "request-7", ""
12137 RPCJSONRPCRequestIDKey = attribute.Key("rpc.jsonrpc.request_id")
12138
12139 // RPCJSONRPCVersionKey is the attribute Key conforming to the
12140 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol
12141 // version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0
12142 // doesn't specify this, the value can be omitted.
12143 //
12144 // Type: string
12145 // RequirementLevel: Recommended
12146 // Stability: Development
12147 //
12148 // Examples: "2.0", "1.0"
12149 RPCJSONRPCVersionKey = attribute.Key("rpc.jsonrpc.version")
12150
12151 // RPCMessageCompressedSizeKey is the attribute Key conforming to the
12152 // "rpc.message.compressed_size" semantic conventions. It represents the
12153 // compressed size of the message in bytes.
12154 //
12155 // Type: int
12156 // RequirementLevel: Recommended
12157 // Stability: Development
12158 //
12159 // Examples:
12160 RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size")
12161
12162 // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id"
12163 // semantic conventions. It MUST be calculated as two different counters
12164 // starting from `1` one for sent messages and one for received message..
12165 //
12166 // Type: int
12167 // RequirementLevel: Recommended
12168 // Stability: Development
12169 //
12170 // Examples:
12171 // Note: This way we guarantee that the values will be consistent between
12172 // different implementations.
12173 RPCMessageIDKey = attribute.Key("rpc.message.id")
12174
12175 // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type"
12176 // semantic conventions. It represents the whether this is a received or sent
12177 // message.
12178 //
12179 // Type: Enum
12180 // RequirementLevel: Recommended
12181 // Stability: Development
12182 //
12183 // Examples:
12184 RPCMessageTypeKey = attribute.Key("rpc.message.type")
12185
12186 // RPCMessageUncompressedSizeKey is the attribute Key conforming to the
12187 // "rpc.message.uncompressed_size" semantic conventions. It represents the
12188 // uncompressed size of the message in bytes.
12189 //
12190 // Type: int
12191 // RequirementLevel: Recommended
12192 // Stability: Development
12193 //
12194 // Examples:
12195 RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size")
12196
12197 // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
12198 // conventions. It represents the name of the (logical) method being called,
12199 // must be equal to the $method part in the span name.
12200 //
12201 // Type: string
12202 // RequirementLevel: Recommended
12203 // Stability: Development
12204 //
12205 // Examples: exampleMethod
12206 // Note: This is the logical name of the method from the RPC interface
12207 // perspective, which can be different from the name of any implementing
12208 // method/function. The `code.function.name` attribute may be used to store the
12209 // latter (e.g., method actually executing the call on the server side, RPC
12210 // client stub method on the client side).
12211 RPCMethodKey = attribute.Key("rpc.method")
12212
12213 // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic
12214 // conventions. It represents the full (logical) name of the service being
12215 // called, including its package name, if applicable.
12216 //
12217 // Type: string
12218 // RequirementLevel: Recommended
12219 // Stability: Development
12220 //
12221 // Examples: myservice.EchoService
12222 // Note: This is the logical name of the service from the RPC interface
12223 // perspective, which can be different from the name of any implementing class.
12224 // The `code.namespace` attribute may be used to store the latter (despite the
12225 // attribute name, it may include a class name; e.g., class with method actually
12226 // executing the call on the server side, RPC client stub class on the client
12227 // side).
12228 RPCServiceKey = attribute.Key("rpc.service")
12229
12230 // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic
12231 // conventions. It represents a string identifying the remoting system. See
12232 // below for a list of well-known identifiers.
12233 //
12234 // Type: Enum
12235 // RequirementLevel: Recommended
12236 // Stability: Development
12237 //
12238 // Examples:
12239 RPCSystemKey = attribute.Key("rpc.system")
12240 )
12241
12242 // RPCConnectRPCRequestMetadata returns an attribute KeyValue conforming to the
12243 // "rpc.connect_rpc.request.metadata" semantic conventions. It represents the
12244 // connect request metadata, `<key>` being the normalized Connect Metadata key
12245 // (lowercase), the value being the metadata values.
12246 func RPCConnectRPCRequestMetadata(key string, val ...string) attribute.KeyValue {
12247 return attribute.StringSlice("rpc.connect_rpc.request.metadata."+key, val)
12248 }
12249
12250 // RPCConnectRPCResponseMetadata returns an attribute KeyValue conforming to the
12251 // "rpc.connect_rpc.response.metadata" semantic conventions. It represents the
12252 // connect response metadata, `<key>` being the normalized Connect Metadata key
12253 // (lowercase), the value being the metadata values.
12254 func RPCConnectRPCResponseMetadata(key string, val ...string) attribute.KeyValue {
12255 return attribute.StringSlice("rpc.connect_rpc.response.metadata."+key, val)
12256 }
12257
12258 // RPCGRPCRequestMetadata returns an attribute KeyValue conforming to the
12259 // "rpc.grpc.request.metadata" semantic conventions. It represents the gRPC
12260 // request metadata, `<key>` being the normalized gRPC Metadata key (lowercase),
12261 // the value being the metadata values.
12262 func RPCGRPCRequestMetadata(key string, val ...string) attribute.KeyValue {
12263 return attribute.StringSlice("rpc.grpc.request.metadata."+key, val)
12264 }
12265
12266 // RPCGRPCResponseMetadata returns an attribute KeyValue conforming to the
12267 // "rpc.grpc.response.metadata" semantic conventions. It represents the gRPC
12268 // response metadata, `<key>` being the normalized gRPC Metadata key (lowercase),
12269 // the value being the metadata values.
12270 func RPCGRPCResponseMetadata(key string, val ...string) attribute.KeyValue {
12271 return attribute.StringSlice("rpc.grpc.response.metadata."+key, val)
12272 }
12273
12274 // RPCJSONRPCErrorCode returns an attribute KeyValue conforming to the
12275 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
12276 // property of response if it is an error response.
12277 func RPCJSONRPCErrorCode(val int) attribute.KeyValue {
12278 return RPCJSONRPCErrorCodeKey.Int(val)
12279 }
12280
12281 // RPCJSONRPCErrorMessage returns an attribute KeyValue conforming to the
12282 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
12283 // `error.message` property of response if it is an error response.
12284 func RPCJSONRPCErrorMessage(val string) attribute.KeyValue {
12285 return RPCJSONRPCErrorMessageKey.String(val)
12286 }
12287
12288 // RPCJSONRPCRequestID returns an attribute KeyValue conforming to the
12289 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property
12290 // of request or response. Since protocol allows id to be int, string, `null` or
12291 // missing (for notifications), value is expected to be cast to string for
12292 // simplicity. Use empty string in case of `null` value. Omit entirely if this is
12293 // a notification.
12294 func RPCJSONRPCRequestID(val string) attribute.KeyValue {
12295 return RPCJSONRPCRequestIDKey.String(val)
12296 }
12297
12298 // RPCJSONRPCVersion returns an attribute KeyValue conforming to the
12299 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol version
12300 // as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't
12301 // specify this, the value can be omitted.
12302 func RPCJSONRPCVersion(val string) attribute.KeyValue {
12303 return RPCJSONRPCVersionKey.String(val)
12304 }
12305
12306 // RPCMessageCompressedSize returns an attribute KeyValue conforming to the
12307 // "rpc.message.compressed_size" semantic conventions. It represents the
12308 // compressed size of the message in bytes.
12309 func RPCMessageCompressedSize(val int) attribute.KeyValue {
12310 return RPCMessageCompressedSizeKey.Int(val)
12311 }
12312
12313 // RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id"
12314 // semantic conventions. It MUST be calculated as two different counters starting
12315 // from `1` one for sent messages and one for received message..
12316 func RPCMessageID(val int) attribute.KeyValue {
12317 return RPCMessageIDKey.Int(val)
12318 }
12319
12320 // RPCMessageUncompressedSize returns an attribute KeyValue conforming to the
12321 // "rpc.message.uncompressed_size" semantic conventions. It represents the
12322 // uncompressed size of the message in bytes.
12323 func RPCMessageUncompressedSize(val int) attribute.KeyValue {
12324 return RPCMessageUncompressedSizeKey.Int(val)
12325 }
12326
12327 // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
12328 // semantic conventions. It represents the name of the (logical) method being
12329 // called, must be equal to the $method part in the span name.
12330 func RPCMethod(val string) attribute.KeyValue {
12331 return RPCMethodKey.String(val)
12332 }
12333
12334 // RPCService returns an attribute KeyValue conforming to the "rpc.service"
12335 // semantic conventions. It represents the full (logical) name of the service
12336 // being called, including its package name, if applicable.
12337 func RPCService(val string) attribute.KeyValue {
12338 return RPCServiceKey.String(val)
12339 }
12340
12341 // Enum values for rpc.connect_rpc.error_code
12342 var (
12343 // cancelled
12344 // Stability: development
12345 RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled")
12346 // unknown
12347 // Stability: development
12348 RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown")
12349 // invalid_argument
12350 // Stability: development
12351 RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument")
12352 // deadline_exceeded
12353 // Stability: development
12354 RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded")
12355 // not_found
12356 // Stability: development
12357 RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found")
12358 // already_exists
12359 // Stability: development
12360 RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists")
12361 // permission_denied
12362 // Stability: development
12363 RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied")
12364 // resource_exhausted
12365 // Stability: development
12366 RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted")
12367 // failed_precondition
12368 // Stability: development
12369 RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition")
12370 // aborted
12371 // Stability: development
12372 RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted")
12373 // out_of_range
12374 // Stability: development
12375 RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range")
12376 // unimplemented
12377 // Stability: development
12378 RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented")
12379 // internal
12380 // Stability: development
12381 RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal")
12382 // unavailable
12383 // Stability: development
12384 RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable")
12385 // data_loss
12386 // Stability: development
12387 RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss")
12388 // unauthenticated
12389 // Stability: development
12390 RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated")
12391 )
12392
12393 // Enum values for rpc.grpc.status_code
12394 var (
12395 // OK
12396 // Stability: development
12397 RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0)
12398 // CANCELLED
12399 // Stability: development
12400 RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1)
12401 // UNKNOWN
12402 // Stability: development
12403 RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2)
12404 // INVALID_ARGUMENT
12405 // Stability: development
12406 RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3)
12407 // DEADLINE_EXCEEDED
12408 // Stability: development
12409 RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4)
12410 // NOT_FOUND
12411 // Stability: development
12412 RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5)
12413 // ALREADY_EXISTS
12414 // Stability: development
12415 RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6)
12416 // PERMISSION_DENIED
12417 // Stability: development
12418 RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7)
12419 // RESOURCE_EXHAUSTED
12420 // Stability: development
12421 RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8)
12422 // FAILED_PRECONDITION
12423 // Stability: development
12424 RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9)
12425 // ABORTED
12426 // Stability: development
12427 RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10)
12428 // OUT_OF_RANGE
12429 // Stability: development
12430 RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11)
12431 // UNIMPLEMENTED
12432 // Stability: development
12433 RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12)
12434 // INTERNAL
12435 // Stability: development
12436 RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13)
12437 // UNAVAILABLE
12438 // Stability: development
12439 RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14)
12440 // DATA_LOSS
12441 // Stability: development
12442 RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15)
12443 // UNAUTHENTICATED
12444 // Stability: development
12445 RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16)
12446 )
12447
12448 // Enum values for rpc.message.type
12449 var (
12450 // sent
12451 // Stability: development
12452 RPCMessageTypeSent = RPCMessageTypeKey.String("SENT")
12453 // received
12454 // Stability: development
12455 RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")
12456 )
12457
12458 // Enum values for rpc.system
12459 var (
12460 // gRPC
12461 // Stability: development
12462 RPCSystemGRPC = RPCSystemKey.String("grpc")
12463 // Java RMI
12464 // Stability: development
12465 RPCSystemJavaRmi = RPCSystemKey.String("java_rmi")
12466 // .NET WCF
12467 // Stability: development
12468 RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf")
12469 // Apache Dubbo
12470 // Stability: development
12471 RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo")
12472 // Connect RPC
12473 // Stability: development
12474 RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc")
12475 )
12476
12477 // Namespace: security_rule
12478 const (
12479 // SecurityRuleCategoryKey is the attribute Key conforming to the
12480 // "security_rule.category" semantic conventions. It represents a categorization
12481 // value keyword used by the entity using the rule for detection of this event.
12482 //
12483 // Type: string
12484 // RequirementLevel: Recommended
12485 // Stability: Development
12486 //
12487 // Examples: "Attempted Information Leak"
12488 SecurityRuleCategoryKey = attribute.Key("security_rule.category")
12489
12490 // SecurityRuleDescriptionKey is the attribute Key conforming to the
12491 // "security_rule.description" semantic conventions. It represents the
12492 // description of the rule generating the event.
12493 //
12494 // Type: string
12495 // RequirementLevel: Recommended
12496 // Stability: Development
12497 //
12498 // Examples: "Block requests to public DNS over HTTPS / TLS protocols"
12499 SecurityRuleDescriptionKey = attribute.Key("security_rule.description")
12500
12501 // SecurityRuleLicenseKey is the attribute Key conforming to the
12502 // "security_rule.license" semantic conventions. It represents the name of the
12503 // license under which the rule used to generate this event is made available.
12504 //
12505 // Type: string
12506 // RequirementLevel: Recommended
12507 // Stability: Development
12508 //
12509 // Examples: "Apache 2.0"
12510 SecurityRuleLicenseKey = attribute.Key("security_rule.license")
12511
12512 // SecurityRuleNameKey is the attribute Key conforming to the
12513 // "security_rule.name" semantic conventions. It represents the name of the rule
12514 // or signature generating the event.
12515 //
12516 // Type: string
12517 // RequirementLevel: Recommended
12518 // Stability: Development
12519 //
12520 // Examples: "BLOCK_DNS_over_TLS"
12521 SecurityRuleNameKey = attribute.Key("security_rule.name")
12522
12523 // SecurityRuleReferenceKey is the attribute Key conforming to the
12524 // "security_rule.reference" semantic conventions. It represents the reference
12525 // URL to additional information about the rule used to generate this event.
12526 //
12527 // Type: string
12528 // RequirementLevel: Recommended
12529 // Stability: Development
12530 //
12531 // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS"
12532 // Note: The URL can point to the vendor’s documentation about the rule. If
12533 // that’s not available, it can also be a link to a more general page
12534 // describing this type of alert.
12535 SecurityRuleReferenceKey = attribute.Key("security_rule.reference")
12536
12537 // SecurityRuleRulesetNameKey is the attribute Key conforming to the
12538 // "security_rule.ruleset.name" semantic conventions. It represents the name of
12539 // the ruleset, policy, group, or parent category in which the rule used to
12540 // generate this event is a member.
12541 //
12542 // Type: string
12543 // RequirementLevel: Recommended
12544 // Stability: Development
12545 //
12546 // Examples: "Standard_Protocol_Filters"
12547 SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name")
12548
12549 // SecurityRuleUUIDKey is the attribute Key conforming to the
12550 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
12551 // unique within the scope of a set or group of agents, observers, or other
12552 // entities using the rule for detection of this event.
12553 //
12554 // Type: string
12555 // RequirementLevel: Recommended
12556 // Stability: Development
12557 //
12558 // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011"
12559 SecurityRuleUUIDKey = attribute.Key("security_rule.uuid")
12560
12561 // SecurityRuleVersionKey is the attribute Key conforming to the
12562 // "security_rule.version" semantic conventions. It represents the version /
12563 // revision of the rule being used for analysis.
12564 //
12565 // Type: string
12566 // RequirementLevel: Recommended
12567 // Stability: Development
12568 //
12569 // Examples: "1.0.0"
12570 SecurityRuleVersionKey = attribute.Key("security_rule.version")
12571 )
12572
12573 // SecurityRuleCategory returns an attribute KeyValue conforming to the
12574 // "security_rule.category" semantic conventions. It represents a categorization
12575 // value keyword used by the entity using the rule for detection of this event.
12576 func SecurityRuleCategory(val string) attribute.KeyValue {
12577 return SecurityRuleCategoryKey.String(val)
12578 }
12579
12580 // SecurityRuleDescription returns an attribute KeyValue conforming to the
12581 // "security_rule.description" semantic conventions. It represents the
12582 // description of the rule generating the event.
12583 func SecurityRuleDescription(val string) attribute.KeyValue {
12584 return SecurityRuleDescriptionKey.String(val)
12585 }
12586
12587 // SecurityRuleLicense returns an attribute KeyValue conforming to the
12588 // "security_rule.license" semantic conventions. It represents the name of the
12589 // license under which the rule used to generate this event is made available.
12590 func SecurityRuleLicense(val string) attribute.KeyValue {
12591 return SecurityRuleLicenseKey.String(val)
12592 }
12593
12594 // SecurityRuleName returns an attribute KeyValue conforming to the
12595 // "security_rule.name" semantic conventions. It represents the name of the rule
12596 // or signature generating the event.
12597 func SecurityRuleName(val string) attribute.KeyValue {
12598 return SecurityRuleNameKey.String(val)
12599 }
12600
12601 // SecurityRuleReference returns an attribute KeyValue conforming to the
12602 // "security_rule.reference" semantic conventions. It represents the reference
12603 // URL to additional information about the rule used to generate this event.
12604 func SecurityRuleReference(val string) attribute.KeyValue {
12605 return SecurityRuleReferenceKey.String(val)
12606 }
12607
12608 // SecurityRuleRulesetName returns an attribute KeyValue conforming to the
12609 // "security_rule.ruleset.name" semantic conventions. It represents the name of
12610 // the ruleset, policy, group, or parent category in which the rule used to
12611 // generate this event is a member.
12612 func SecurityRuleRulesetName(val string) attribute.KeyValue {
12613 return SecurityRuleRulesetNameKey.String(val)
12614 }
12615
12616 // SecurityRuleUUID returns an attribute KeyValue conforming to the
12617 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
12618 // unique within the scope of a set or group of agents, observers, or other
12619 // entities using the rule for detection of this event.
12620 func SecurityRuleUUID(val string) attribute.KeyValue {
12621 return SecurityRuleUUIDKey.String(val)
12622 }
12623
12624 // SecurityRuleVersion returns an attribute KeyValue conforming to the
12625 // "security_rule.version" semantic conventions. It represents the version /
12626 // revision of the rule being used for analysis.
12627 func SecurityRuleVersion(val string) attribute.KeyValue {
12628 return SecurityRuleVersionKey.String(val)
12629 }
12630
12631 // Namespace: server
12632 const (
12633 // ServerAddressKey is the attribute Key conforming to the "server.address"
12634 // semantic conventions. It represents the server domain name if available
12635 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
12636 //
12637 // Type: string
12638 // RequirementLevel: Recommended
12639 // Stability: Stable
12640 //
12641 // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
12642 // Note: When observed from the client side, and when communicating through an
12643 // intermediary, `server.address` SHOULD represent the server address behind any
12644 // intermediaries, for example proxies, if it's available.
12645 ServerAddressKey = attribute.Key("server.address")
12646
12647 // ServerPortKey is the attribute Key conforming to the "server.port" semantic
12648 // conventions. It represents the server port number.
12649 //
12650 // Type: int
12651 // RequirementLevel: Recommended
12652 // Stability: Stable
12653 //
12654 // Examples: 80, 8080, 443
12655 // Note: When observed from the client side, and when communicating through an
12656 // intermediary, `server.port` SHOULD represent the server port behind any
12657 // intermediaries, for example proxies, if it's available.
12658 ServerPortKey = attribute.Key("server.port")
12659 )
12660
12661 // ServerAddress returns an attribute KeyValue conforming to the "server.address"
12662 // semantic conventions. It represents the server domain name if available
12663 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
12664 func ServerAddress(val string) attribute.KeyValue {
12665 return ServerAddressKey.String(val)
12666 }
12667
12668 // ServerPort returns an attribute KeyValue conforming to the "server.port"
12669 // semantic conventions. It represents the server port number.
12670 func ServerPort(val int) attribute.KeyValue {
12671 return ServerPortKey.Int(val)
12672 }
12673
12674 // Namespace: service
12675 const (
12676 // ServiceInstanceIDKey is the attribute Key conforming to the
12677 // "service.instance.id" semantic conventions. It represents the string ID of
12678 // the service instance.
12679 //
12680 // Type: string
12681 // RequirementLevel: Recommended
12682 // Stability: Development
12683 //
12684 // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
12685 // Note: MUST be unique for each instance of the same
12686 // `service.namespace,service.name` pair (in other words
12687 // `service.namespace,service.name,service.instance.id` triplet MUST be globally
12688 // unique). The ID helps to
12689 // distinguish instances of the same service that exist at the same time (e.g.
12690 // instances of a horizontally scaled
12691 // service).
12692 //
12693 // Implementations, such as SDKs, are recommended to generate a random Version 1
12694 // or Version 4 [RFC
12695 // 4122] UUID, but are free to use an inherent unique ID as
12696 // the source of
12697 // this value if stability is desirable. In that case, the ID SHOULD be used as
12698 // source of a UUID Version 5 and
12699 // SHOULD use the following UUID as the namespace:
12700 // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
12701 //
12702 // UUIDs are typically recommended, as only an opaque value for the purposes of
12703 // identifying a service instance is
12704 // needed. Similar to what can be seen in the man page for the
12705 // [`/etc/machine-id`] file, the underlying
12706 // data, such as pod name and namespace should be treated as confidential, being
12707 // the user's choice to expose it
12708 // or not via another resource attribute.
12709 //
12710 // For applications running behind an application server (like unicorn), we do
12711 // not recommend using one identifier
12712 // for all processes participating in the application. Instead, it's recommended
12713 // each division (e.g. a worker
12714 // thread in unicorn) to have its own instance.id.
12715 //
12716 // It's not recommended for a Collector to set `service.instance.id` if it can't
12717 // unambiguously determine the
12718 // service instance that is generating that telemetry. For instance, creating an
12719 // UUID based on `pod.name` will
12720 // likely be wrong, as the Collector might not know from which container within
12721 // that pod the telemetry originated.
12722 // However, Collectors can set the `service.instance.id` if they can
12723 // unambiguously determine the service instance
12724 // for that telemetry. This is typically the case for scraping receivers, as
12725 // they know the target address and
12726 // port.
12727 //
12728 // [RFC
12729 // 4122]: https://www.ietf.org/rfc/rfc4122.txt
12730 // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html
12731 ServiceInstanceIDKey = attribute.Key("service.instance.id")
12732
12733 // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
12734 // conventions. It represents the logical name of the service.
12735 //
12736 // Type: string
12737 // RequirementLevel: Recommended
12738 // Stability: Stable
12739 //
12740 // Examples: "shoppingcart"
12741 // Note: MUST be the same for all instances of horizontally scaled services. If
12742 // the value was not specified, SDKs MUST fallback to `unknown_service:`
12743 // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
12744 // If `process.executable.name` is not available, the value MUST be set to
12745 // `unknown_service`.
12746 //
12747 // [`process.executable.name`]: process.md
12748 ServiceNameKey = attribute.Key("service.name")
12749
12750 // ServiceNamespaceKey is the attribute Key conforming to the
12751 // "service.namespace" semantic conventions. It represents a namespace for
12752 // `service.name`.
12753 //
12754 // Type: string
12755 // RequirementLevel: Recommended
12756 // Stability: Development
12757 //
12758 // Examples: "Shop"
12759 // Note: A string value having a meaning that helps to distinguish a group of
12760 // services, for example the team name that owns a group of services.
12761 // `service.name` is expected to be unique within the same namespace. If
12762 // `service.namespace` is not specified in the Resource then `service.name` is
12763 // expected to be unique for all services that have no explicit namespace
12764 // defined (so the empty/unspecified namespace is simply one more valid
12765 // namespace). Zero-length namespace string is assumed equal to unspecified
12766 // namespace.
12767 ServiceNamespaceKey = attribute.Key("service.namespace")
12768
12769 // ServiceVersionKey is the attribute Key conforming to the "service.version"
12770 // semantic conventions. It represents the version string of the service API or
12771 // implementation. The format is not defined by these conventions.
12772 //
12773 // Type: string
12774 // RequirementLevel: Recommended
12775 // Stability: Stable
12776 //
12777 // Examples: "2.0.0", "a01dbef8a"
12778 ServiceVersionKey = attribute.Key("service.version")
12779 )
12780
12781 // ServiceInstanceID returns an attribute KeyValue conforming to the
12782 // "service.instance.id" semantic conventions. It represents the string ID of the
12783 // service instance.
12784 func ServiceInstanceID(val string) attribute.KeyValue {
12785 return ServiceInstanceIDKey.String(val)
12786 }
12787
12788 // ServiceName returns an attribute KeyValue conforming to the "service.name"
12789 // semantic conventions. It represents the logical name of the service.
12790 func ServiceName(val string) attribute.KeyValue {
12791 return ServiceNameKey.String(val)
12792 }
12793
12794 // ServiceNamespace returns an attribute KeyValue conforming to the
12795 // "service.namespace" semantic conventions. It represents a namespace for
12796 // `service.name`.
12797 func ServiceNamespace(val string) attribute.KeyValue {
12798 return ServiceNamespaceKey.String(val)
12799 }
12800
12801 // ServiceVersion returns an attribute KeyValue conforming to the
12802 // "service.version" semantic conventions. It represents the version string of
12803 // the service API or implementation. The format is not defined by these
12804 // conventions.
12805 func ServiceVersion(val string) attribute.KeyValue {
12806 return ServiceVersionKey.String(val)
12807 }
12808
12809 // Namespace: session
12810 const (
12811 // SessionIDKey is the attribute Key conforming to the "session.id" semantic
12812 // conventions. It represents a unique id to identify a session.
12813 //
12814 // Type: string
12815 // RequirementLevel: Recommended
12816 // Stability: Development
12817 //
12818 // Examples: 00112233-4455-6677-8899-aabbccddeeff
12819 SessionIDKey = attribute.Key("session.id")
12820
12821 // SessionPreviousIDKey is the attribute Key conforming to the
12822 // "session.previous_id" semantic conventions. It represents the previous
12823 // `session.id` for this user, when known.
12824 //
12825 // Type: string
12826 // RequirementLevel: Recommended
12827 // Stability: Development
12828 //
12829 // Examples: 00112233-4455-6677-8899-aabbccddeeff
12830 SessionPreviousIDKey = attribute.Key("session.previous_id")
12831 )
12832
12833 // SessionID returns an attribute KeyValue conforming to the "session.id"
12834 // semantic conventions. It represents a unique id to identify a session.
12835 func SessionID(val string) attribute.KeyValue {
12836 return SessionIDKey.String(val)
12837 }
12838
12839 // SessionPreviousID returns an attribute KeyValue conforming to the
12840 // "session.previous_id" semantic conventions. It represents the previous
12841 // `session.id` for this user, when known.
12842 func SessionPreviousID(val string) attribute.KeyValue {
12843 return SessionPreviousIDKey.String(val)
12844 }
12845
12846 // Namespace: signalr
12847 const (
12848 // SignalRConnectionStatusKey is the attribute Key conforming to the
12849 // "signalr.connection.status" semantic conventions. It represents the signalR
12850 // HTTP connection closure status.
12851 //
12852 // Type: Enum
12853 // RequirementLevel: Recommended
12854 // Stability: Stable
12855 //
12856 // Examples: "app_shutdown", "timeout"
12857 SignalRConnectionStatusKey = attribute.Key("signalr.connection.status")
12858
12859 // SignalRTransportKey is the attribute Key conforming to the
12860 // "signalr.transport" semantic conventions. It represents the
12861 // [SignalR transport type].
12862 //
12863 // Type: Enum
12864 // RequirementLevel: Recommended
12865 // Stability: Stable
12866 //
12867 // Examples: "web_sockets", "long_polling"
12868 //
12869 // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
12870 SignalRTransportKey = attribute.Key("signalr.transport")
12871 )
12872
12873 // Enum values for signalr.connection.status
12874 var (
12875 // The connection was closed normally.
12876 // Stability: stable
12877 SignalRConnectionStatusNormalClosure = SignalRConnectionStatusKey.String("normal_closure")
12878 // The connection was closed due to a timeout.
12879 // Stability: stable
12880 SignalRConnectionStatusTimeout = SignalRConnectionStatusKey.String("timeout")
12881 // The connection was closed because the app is shutting down.
12882 // Stability: stable
12883 SignalRConnectionStatusAppShutdown = SignalRConnectionStatusKey.String("app_shutdown")
12884 )
12885
12886 // Enum values for signalr.transport
12887 var (
12888 // ServerSentEvents protocol
12889 // Stability: stable
12890 SignalRTransportServerSentEvents = SignalRTransportKey.String("server_sent_events")
12891 // LongPolling protocol
12892 // Stability: stable
12893 SignalRTransportLongPolling = SignalRTransportKey.String("long_polling")
12894 // WebSockets protocol
12895 // Stability: stable
12896 SignalRTransportWebSockets = SignalRTransportKey.String("web_sockets")
12897 )
12898
12899 // Namespace: source
12900 const (
12901 // SourceAddressKey is the attribute Key conforming to the "source.address"
12902 // semantic conventions. It represents the source address - domain name if
12903 // available without reverse DNS lookup; otherwise, IP address or Unix domain
12904 // socket name.
12905 //
12906 // Type: string
12907 // RequirementLevel: Recommended
12908 // Stability: Development
12909 //
12910 // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
12911 // Note: When observed from the destination side, and when communicating through
12912 // an intermediary, `source.address` SHOULD represent the source address behind
12913 // any intermediaries, for example proxies, if it's available.
12914 SourceAddressKey = attribute.Key("source.address")
12915
12916 // SourcePortKey is the attribute Key conforming to the "source.port" semantic
12917 // conventions. It represents the source port number.
12918 //
12919 // Type: int
12920 // RequirementLevel: Recommended
12921 // Stability: Development
12922 //
12923 // Examples: 3389, 2888
12924 SourcePortKey = attribute.Key("source.port")
12925 )
12926
12927 // SourceAddress returns an attribute KeyValue conforming to the "source.address"
12928 // semantic conventions. It represents the source address - domain name if
12929 // available without reverse DNS lookup; otherwise, IP address or Unix domain
12930 // socket name.
12931 func SourceAddress(val string) attribute.KeyValue {
12932 return SourceAddressKey.String(val)
12933 }
12934
12935 // SourcePort returns an attribute KeyValue conforming to the "source.port"
12936 // semantic conventions. It represents the source port number.
12937 func SourcePort(val int) attribute.KeyValue {
12938 return SourcePortKey.Int(val)
12939 }
12940
12941 // Namespace: system
12942 const (
12943 // SystemCPULogicalNumberKey is the attribute Key conforming to the
12944 // "system.cpu.logical_number" semantic conventions. It represents the
12945 // deprecated, use `cpu.logical_number` instead.
12946 //
12947 // Type: int
12948 // RequirementLevel: Recommended
12949 // Stability: Development
12950 //
12951 // Examples: 1
12952 SystemCPULogicalNumberKey = attribute.Key("system.cpu.logical_number")
12953
12954 // SystemDeviceKey is the attribute Key conforming to the "system.device"
12955 // semantic conventions. It represents the device identifier.
12956 //
12957 // Type: string
12958 // RequirementLevel: Recommended
12959 // Stability: Development
12960 //
12961 // Examples: "(identifier)"
12962 SystemDeviceKey = attribute.Key("system.device")
12963
12964 // SystemFilesystemModeKey is the attribute Key conforming to the
12965 // "system.filesystem.mode" semantic conventions. It represents the filesystem
12966 // mode.
12967 //
12968 // Type: string
12969 // RequirementLevel: Recommended
12970 // Stability: Development
12971 //
12972 // Examples: "rw, ro"
12973 SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
12974
12975 // SystemFilesystemMountpointKey is the attribute Key conforming to the
12976 // "system.filesystem.mountpoint" semantic conventions. It represents the
12977 // filesystem mount path.
12978 //
12979 // Type: string
12980 // RequirementLevel: Recommended
12981 // Stability: Development
12982 //
12983 // Examples: "/mnt/data"
12984 SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
12985
12986 // SystemFilesystemStateKey is the attribute Key conforming to the
12987 // "system.filesystem.state" semantic conventions. It represents the filesystem
12988 // state.
12989 //
12990 // Type: Enum
12991 // RequirementLevel: Recommended
12992 // Stability: Development
12993 //
12994 // Examples: "used"
12995 SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
12996
12997 // SystemFilesystemTypeKey is the attribute Key conforming to the
12998 // "system.filesystem.type" semantic conventions. It represents the filesystem
12999 // type.
13000 //
13001 // Type: Enum
13002 // RequirementLevel: Recommended
13003 // Stability: Development
13004 //
13005 // Examples: "ext4"
13006 SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
13007
13008 // SystemMemoryStateKey is the attribute Key conforming to the
13009 // "system.memory.state" semantic conventions. It represents the memory state.
13010 //
13011 // Type: Enum
13012 // RequirementLevel: Recommended
13013 // Stability: Development
13014 //
13015 // Examples: "free", "cached"
13016 SystemMemoryStateKey = attribute.Key("system.memory.state")
13017
13018 // SystemPagingDirectionKey is the attribute Key conforming to the
13019 // "system.paging.direction" semantic conventions. It represents the paging
13020 // access direction.
13021 //
13022 // Type: Enum
13023 // RequirementLevel: Recommended
13024 // Stability: Development
13025 //
13026 // Examples: "in"
13027 SystemPagingDirectionKey = attribute.Key("system.paging.direction")
13028
13029 // SystemPagingStateKey is the attribute Key conforming to the
13030 // "system.paging.state" semantic conventions. It represents the memory paging
13031 // state.
13032 //
13033 // Type: Enum
13034 // RequirementLevel: Recommended
13035 // Stability: Development
13036 //
13037 // Examples: "free"
13038 SystemPagingStateKey = attribute.Key("system.paging.state")
13039
13040 // SystemPagingTypeKey is the attribute Key conforming to the
13041 // "system.paging.type" semantic conventions. It represents the memory paging
13042 // type.
13043 //
13044 // Type: Enum
13045 // RequirementLevel: Recommended
13046 // Stability: Development
13047 //
13048 // Examples: "minor"
13049 SystemPagingTypeKey = attribute.Key("system.paging.type")
13050
13051 // SystemProcessStatusKey is the attribute Key conforming to the
13052 // "system.process.status" semantic conventions. It represents the process
13053 // state, e.g., [Linux Process State Codes].
13054 //
13055 // Type: Enum
13056 // RequirementLevel: Recommended
13057 // Stability: Development
13058 //
13059 // Examples: "running"
13060 //
13061 // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
13062 SystemProcessStatusKey = attribute.Key("system.process.status")
13063 )
13064
13065 // SystemCPULogicalNumber returns an attribute KeyValue conforming to the
13066 // "system.cpu.logical_number" semantic conventions. It represents the
13067 // deprecated, use `cpu.logical_number` instead.
13068 func SystemCPULogicalNumber(val int) attribute.KeyValue {
13069 return SystemCPULogicalNumberKey.Int(val)
13070 }
13071
13072 // SystemDevice returns an attribute KeyValue conforming to the "system.device"
13073 // semantic conventions. It represents the device identifier.
13074 func SystemDevice(val string) attribute.KeyValue {
13075 return SystemDeviceKey.String(val)
13076 }
13077
13078 // SystemFilesystemMode returns an attribute KeyValue conforming to the
13079 // "system.filesystem.mode" semantic conventions. It represents the filesystem
13080 // mode.
13081 func SystemFilesystemMode(val string) attribute.KeyValue {
13082 return SystemFilesystemModeKey.String(val)
13083 }
13084
13085 // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
13086 // "system.filesystem.mountpoint" semantic conventions. It represents the
13087 // filesystem mount path.
13088 func SystemFilesystemMountpoint(val string) attribute.KeyValue {
13089 return SystemFilesystemMountpointKey.String(val)
13090 }
13091
13092 // Enum values for system.filesystem.state
13093 var (
13094 // used
13095 // Stability: development
13096 SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
13097 // free
13098 // Stability: development
13099 SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
13100 // reserved
13101 // Stability: development
13102 SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
13103 )
13104
13105 // Enum values for system.filesystem.type
13106 var (
13107 // fat32
13108 // Stability: development
13109 SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
13110 // exfat
13111 // Stability: development
13112 SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
13113 // ntfs
13114 // Stability: development
13115 SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
13116 // refs
13117 // Stability: development
13118 SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
13119 // hfsplus
13120 // Stability: development
13121 SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
13122 // ext4
13123 // Stability: development
13124 SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
13125 )
13126
13127 // Enum values for system.memory.state
13128 var (
13129 // Actual used virtual memory in bytes.
13130 // Stability: development
13131 SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
13132 // free
13133 // Stability: development
13134 SystemMemoryStateFree = SystemMemoryStateKey.String("free")
13135 // buffers
13136 // Stability: development
13137 SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
13138 // cached
13139 // Stability: development
13140 SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
13141 )
13142
13143 // Enum values for system.paging.direction
13144 var (
13145 // in
13146 // Stability: development
13147 SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
13148 // out
13149 // Stability: development
13150 SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
13151 )
13152
13153 // Enum values for system.paging.state
13154 var (
13155 // used
13156 // Stability: development
13157 SystemPagingStateUsed = SystemPagingStateKey.String("used")
13158 // free
13159 // Stability: development
13160 SystemPagingStateFree = SystemPagingStateKey.String("free")
13161 )
13162
13163 // Enum values for system.paging.type
13164 var (
13165 // major
13166 // Stability: development
13167 SystemPagingTypeMajor = SystemPagingTypeKey.String("major")
13168 // minor
13169 // Stability: development
13170 SystemPagingTypeMinor = SystemPagingTypeKey.String("minor")
13171 )
13172
13173 // Enum values for system.process.status
13174 var (
13175 // running
13176 // Stability: development
13177 SystemProcessStatusRunning = SystemProcessStatusKey.String("running")
13178 // sleeping
13179 // Stability: development
13180 SystemProcessStatusSleeping = SystemProcessStatusKey.String("sleeping")
13181 // stopped
13182 // Stability: development
13183 SystemProcessStatusStopped = SystemProcessStatusKey.String("stopped")
13184 // defunct
13185 // Stability: development
13186 SystemProcessStatusDefunct = SystemProcessStatusKey.String("defunct")
13187 )
13188
13189 // Namespace: telemetry
13190 const (
13191 // TelemetryDistroNameKey is the attribute Key conforming to the
13192 // "telemetry.distro.name" semantic conventions. It represents the name of the
13193 // auto instrumentation agent or distribution, if used.
13194 //
13195 // Type: string
13196 // RequirementLevel: Recommended
13197 // Stability: Development
13198 //
13199 // Examples: "parts-unlimited-java"
13200 // Note: Official auto instrumentation agents and distributions SHOULD set the
13201 // `telemetry.distro.name` attribute to
13202 // a string starting with `opentelemetry-`, e.g.
13203 // `opentelemetry-java-instrumentation`.
13204 TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
13205
13206 // TelemetryDistroVersionKey is the attribute Key conforming to the
13207 // "telemetry.distro.version" semantic conventions. It represents the version
13208 // string of the auto instrumentation agent or distribution, if used.
13209 //
13210 // Type: string
13211 // RequirementLevel: Recommended
13212 // Stability: Development
13213 //
13214 // Examples: "1.2.3"
13215 TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
13216
13217 // TelemetrySDKLanguageKey is the attribute Key conforming to the
13218 // "telemetry.sdk.language" semantic conventions. It represents the language of
13219 // the telemetry SDK.
13220 //
13221 // Type: Enum
13222 // RequirementLevel: Recommended
13223 // Stability: Stable
13224 //
13225 // Examples:
13226 TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
13227
13228 // TelemetrySDKNameKey is the attribute Key conforming to the
13229 // "telemetry.sdk.name" semantic conventions. It represents the name of the
13230 // telemetry SDK as defined above.
13231 //
13232 // Type: string
13233 // RequirementLevel: Recommended
13234 // Stability: Stable
13235 //
13236 // Examples: "opentelemetry"
13237 // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
13238 // `opentelemetry`.
13239 // If another SDK, like a fork or a vendor-provided implementation, is used,
13240 // this SDK MUST set the
13241 // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
13242 // this SDK's main entry point
13243 // or another suitable identifier depending on the language.
13244 // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
13245 // All custom identifiers SHOULD be stable across different versions of an
13246 // implementation.
13247 TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
13248
13249 // TelemetrySDKVersionKey is the attribute Key conforming to the
13250 // "telemetry.sdk.version" semantic conventions. It represents the version
13251 // string of the telemetry SDK.
13252 //
13253 // Type: string
13254 // RequirementLevel: Recommended
13255 // Stability: Stable
13256 //
13257 // Examples: "1.2.3"
13258 TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
13259 )
13260
13261 // TelemetryDistroName returns an attribute KeyValue conforming to the
13262 // "telemetry.distro.name" semantic conventions. It represents the name of the
13263 // auto instrumentation agent or distribution, if used.
13264 func TelemetryDistroName(val string) attribute.KeyValue {
13265 return TelemetryDistroNameKey.String(val)
13266 }
13267
13268 // TelemetryDistroVersion returns an attribute KeyValue conforming to the
13269 // "telemetry.distro.version" semantic conventions. It represents the version
13270 // string of the auto instrumentation agent or distribution, if used.
13271 func TelemetryDistroVersion(val string) attribute.KeyValue {
13272 return TelemetryDistroVersionKey.String(val)
13273 }
13274
13275 // TelemetrySDKName returns an attribute KeyValue conforming to the
13276 // "telemetry.sdk.name" semantic conventions. It represents the name of the
13277 // telemetry SDK as defined above.
13278 func TelemetrySDKName(val string) attribute.KeyValue {
13279 return TelemetrySDKNameKey.String(val)
13280 }
13281
13282 // TelemetrySDKVersion returns an attribute KeyValue conforming to the
13283 // "telemetry.sdk.version" semantic conventions. It represents the version string
13284 // of the telemetry SDK.
13285 func TelemetrySDKVersion(val string) attribute.KeyValue {
13286 return TelemetrySDKVersionKey.String(val)
13287 }
13288
13289 // Enum values for telemetry.sdk.language
13290 var (
13291 // cpp
13292 // Stability: stable
13293 TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
13294 // dotnet
13295 // Stability: stable
13296 TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
13297 // erlang
13298 // Stability: stable
13299 TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
13300 // go
13301 // Stability: stable
13302 TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
13303 // java
13304 // Stability: stable
13305 TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
13306 // nodejs
13307 // Stability: stable
13308 TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
13309 // php
13310 // Stability: stable
13311 TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
13312 // python
13313 // Stability: stable
13314 TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
13315 // ruby
13316 // Stability: stable
13317 TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
13318 // rust
13319 // Stability: stable
13320 TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
13321 // swift
13322 // Stability: stable
13323 TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
13324 // webjs
13325 // Stability: stable
13326 TelemetrySDKLanguageWebJS = TelemetrySDKLanguageKey.String("webjs")
13327 )
13328
13329 // Namespace: test
13330 const (
13331 // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
13332 // semantic conventions. It represents the fully qualified human readable name
13333 // of the [test case].
13334 //
13335 // Type: string
13336 // RequirementLevel: Recommended
13337 // Stability: Development
13338 //
13339 // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
13340 // "ExampleTestCase1_test1"
13341 //
13342 // [test case]: https://wikipedia.org/wiki/Test_case
13343 TestCaseNameKey = attribute.Key("test.case.name")
13344
13345 // TestCaseResultStatusKey is the attribute Key conforming to the
13346 // "test.case.result.status" semantic conventions. It represents the status of
13347 // the actual test case result from test execution.
13348 //
13349 // Type: Enum
13350 // RequirementLevel: Recommended
13351 // Stability: Development
13352 //
13353 // Examples: "pass", "fail"
13354 TestCaseResultStatusKey = attribute.Key("test.case.result.status")
13355
13356 // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
13357 // semantic conventions. It represents the human readable name of a [test suite]
13358 // .
13359 //
13360 // Type: string
13361 // RequirementLevel: Recommended
13362 // Stability: Development
13363 //
13364 // Examples: "TestSuite1"
13365 //
13366 // [test suite]: https://wikipedia.org/wiki/Test_suite
13367 TestSuiteNameKey = attribute.Key("test.suite.name")
13368
13369 // TestSuiteRunStatusKey is the attribute Key conforming to the
13370 // "test.suite.run.status" semantic conventions. It represents the status of the
13371 // test suite run.
13372 //
13373 // Type: Enum
13374 // RequirementLevel: Recommended
13375 // Stability: Development
13376 //
13377 // Examples: "success", "failure", "skipped", "aborted", "timed_out",
13378 // "in_progress"
13379 TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
13380 )
13381
13382 // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
13383 // semantic conventions. It represents the fully qualified human readable name of
13384 // the [test case].
13385 //
13386 // [test case]: https://wikipedia.org/wiki/Test_case
13387 func TestCaseName(val string) attribute.KeyValue {
13388 return TestCaseNameKey.String(val)
13389 }
13390
13391 // TestSuiteName returns an attribute KeyValue conforming to the
13392 // "test.suite.name" semantic conventions. It represents the human readable name
13393 // of a [test suite].
13394 //
13395 // [test suite]: https://wikipedia.org/wiki/Test_suite
13396 func TestSuiteName(val string) attribute.KeyValue {
13397 return TestSuiteNameKey.String(val)
13398 }
13399
13400 // Enum values for test.case.result.status
13401 var (
13402 // pass
13403 // Stability: development
13404 TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
13405 // fail
13406 // Stability: development
13407 TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
13408 )
13409
13410 // Enum values for test.suite.run.status
13411 var (
13412 // success
13413 // Stability: development
13414 TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
13415 // failure
13416 // Stability: development
13417 TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
13418 // skipped
13419 // Stability: development
13420 TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
13421 // aborted
13422 // Stability: development
13423 TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
13424 // timed_out
13425 // Stability: development
13426 TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
13427 // in_progress
13428 // Stability: development
13429 TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
13430 )
13431
13432 // Namespace: thread
13433 const (
13434 // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
13435 // conventions. It represents the current "managed" thread ID (as opposed to OS
13436 // thread ID).
13437 //
13438 // Type: int
13439 // RequirementLevel: Recommended
13440 // Stability: Development
13441 ThreadIDKey = attribute.Key("thread.id")
13442
13443 // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
13444 // conventions. It represents the current thread name.
13445 //
13446 // Type: string
13447 // RequirementLevel: Recommended
13448 // Stability: Development
13449 //
13450 // Examples: main
13451 ThreadNameKey = attribute.Key("thread.name")
13452 )
13453
13454 // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
13455 // conventions. It represents the current "managed" thread ID (as opposed to OS
13456 // thread ID).
13457 func ThreadID(val int) attribute.KeyValue {
13458 return ThreadIDKey.Int(val)
13459 }
13460
13461 // ThreadName returns an attribute KeyValue conforming to the "thread.name"
13462 // semantic conventions. It represents the current thread name.
13463 func ThreadName(val string) attribute.KeyValue {
13464 return ThreadNameKey.String(val)
13465 }
13466
13467 // Namespace: tls
13468 const (
13469 // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
13470 // conventions. It represents the string indicating the [cipher] used during the
13471 // current connection.
13472 //
13473 // Type: string
13474 // RequirementLevel: Recommended
13475 // Stability: Development
13476 //
13477 // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
13478 // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
13479 // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
13480 // of the [registered TLS Cipher Suits].
13481 //
13482 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
13483 // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
13484 TLSCipherKey = attribute.Key("tls.cipher")
13485
13486 // TLSClientCertificateKey is the attribute Key conforming to the
13487 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
13488 // stand-alone certificate offered by the client. This is usually
13489 // mutually-exclusive of `client.certificate_chain` since this value also exists
13490 // in that list.
13491 //
13492 // Type: string
13493 // RequirementLevel: Recommended
13494 // Stability: Development
13495 //
13496 // Examples: "MII..."
13497 TLSClientCertificateKey = attribute.Key("tls.client.certificate")
13498
13499 // TLSClientCertificateChainKey is the attribute Key conforming to the
13500 // "tls.client.certificate_chain" semantic conventions. It represents the array
13501 // of PEM-encoded certificates that make up the certificate chain offered by the
13502 // client. This is usually mutually-exclusive of `client.certificate` since that
13503 // value should be the first certificate in the chain.
13504 //
13505 // Type: string[]
13506 // RequirementLevel: Recommended
13507 // Stability: Development
13508 //
13509 // Examples: "MII...", "MI..."
13510 TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
13511
13512 // TLSClientHashMd5Key is the attribute Key conforming to the
13513 // "tls.client.hash.md5" semantic conventions. It represents the certificate
13514 // fingerprint using the MD5 digest of DER-encoded version of certificate
13515 // offered by the client. For consistency with other hash values, this value
13516 // should be formatted as an uppercase hash.
13517 //
13518 // Type: string
13519 // RequirementLevel: Recommended
13520 // Stability: Development
13521 //
13522 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
13523 TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
13524
13525 // TLSClientHashSha1Key is the attribute Key conforming to the
13526 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
13527 // fingerprint using the SHA1 digest of DER-encoded version of certificate
13528 // offered by the client. For consistency with other hash values, this value
13529 // should be formatted as an uppercase hash.
13530 //
13531 // Type: string
13532 // RequirementLevel: Recommended
13533 // Stability: Development
13534 //
13535 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
13536 TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
13537
13538 // TLSClientHashSha256Key is the attribute Key conforming to the
13539 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
13540 // fingerprint using the SHA256 digest of DER-encoded version of certificate
13541 // offered by the client. For consistency with other hash values, this value
13542 // should be formatted as an uppercase hash.
13543 //
13544 // Type: string
13545 // RequirementLevel: Recommended
13546 // Stability: Development
13547 //
13548 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
13549 TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
13550
13551 // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
13552 // semantic conventions. It represents the distinguished name of [subject] of
13553 // the issuer of the x.509 certificate presented by the client.
13554 //
13555 // Type: string
13556 // RequirementLevel: Recommended
13557 // Stability: Development
13558 //
13559 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
13560 //
13561 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
13562 TLSClientIssuerKey = attribute.Key("tls.client.issuer")
13563
13564 // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
13565 // semantic conventions. It represents a hash that identifies clients based on
13566 // how they perform an SSL/TLS handshake.
13567 //
13568 // Type: string
13569 // RequirementLevel: Recommended
13570 // Stability: Development
13571 //
13572 // Examples: "d4e5b18d6b55c71272893221c96ba240"
13573 TLSClientJa3Key = attribute.Key("tls.client.ja3")
13574
13575 // TLSClientNotAfterKey is the attribute Key conforming to the
13576 // "tls.client.not_after" semantic conventions. It represents the date/Time
13577 // indicating when client certificate is no longer considered valid.
13578 //
13579 // Type: string
13580 // RequirementLevel: Recommended
13581 // Stability: Development
13582 //
13583 // Examples: "2021-01-01T00:00:00.000Z"
13584 TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
13585
13586 // TLSClientNotBeforeKey is the attribute Key conforming to the
13587 // "tls.client.not_before" semantic conventions. It represents the date/Time
13588 // indicating when client certificate is first considered valid.
13589 //
13590 // Type: string
13591 // RequirementLevel: Recommended
13592 // Stability: Development
13593 //
13594 // Examples: "1970-01-01T00:00:00.000Z"
13595 TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
13596
13597 // TLSClientSubjectKey is the attribute Key conforming to the
13598 // "tls.client.subject" semantic conventions. It represents the distinguished
13599 // name of subject of the x.509 certificate presented by the client.
13600 //
13601 // Type: string
13602 // RequirementLevel: Recommended
13603 // Stability: Development
13604 //
13605 // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
13606 TLSClientSubjectKey = attribute.Key("tls.client.subject")
13607
13608 // TLSClientSupportedCiphersKey is the attribute Key conforming to the
13609 // "tls.client.supported_ciphers" semantic conventions. It represents the array
13610 // of ciphers offered by the client during the client hello.
13611 //
13612 // Type: string[]
13613 // RequirementLevel: Recommended
13614 // Stability: Development
13615 //
13616 // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
13617 // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
13618 TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
13619
13620 // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
13621 // conventions. It represents the string indicating the curve used for the given
13622 // cipher, when applicable.
13623 //
13624 // Type: string
13625 // RequirementLevel: Recommended
13626 // Stability: Development
13627 //
13628 // Examples: "secp256r1"
13629 TLSCurveKey = attribute.Key("tls.curve")
13630
13631 // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
13632 // semantic conventions. It represents the boolean flag indicating if the TLS
13633 // negotiation was successful and transitioned to an encrypted tunnel.
13634 //
13635 // Type: boolean
13636 // RequirementLevel: Recommended
13637 // Stability: Development
13638 //
13639 // Examples: true
13640 TLSEstablishedKey = attribute.Key("tls.established")
13641
13642 // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
13643 // semantic conventions. It represents the string indicating the protocol being
13644 // tunneled. Per the values in the [IANA registry], this string should be lower
13645 // case.
13646 //
13647 // Type: string
13648 // RequirementLevel: Recommended
13649 // Stability: Development
13650 //
13651 // Examples: "http/1.1"
13652 //
13653 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
13654 TLSNextProtocolKey = attribute.Key("tls.next_protocol")
13655
13656 // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
13657 // semantic conventions. It represents the normalized lowercase protocol name
13658 // parsed from original string of the negotiated [SSL/TLS protocol version].
13659 //
13660 // Type: Enum
13661 // RequirementLevel: Recommended
13662 // Stability: Development
13663 //
13664 // Examples:
13665 //
13666 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
13667 TLSProtocolNameKey = attribute.Key("tls.protocol.name")
13668
13669 // TLSProtocolVersionKey is the attribute Key conforming to the
13670 // "tls.protocol.version" semantic conventions. It represents the numeric part
13671 // of the version parsed from the original string of the negotiated
13672 // [SSL/TLS protocol version].
13673 //
13674 // Type: string
13675 // RequirementLevel: Recommended
13676 // Stability: Development
13677 //
13678 // Examples: "1.2", "3"
13679 //
13680 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
13681 TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
13682
13683 // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
13684 // conventions. It represents the boolean flag indicating if this TLS connection
13685 // was resumed from an existing TLS negotiation.
13686 //
13687 // Type: boolean
13688 // RequirementLevel: Recommended
13689 // Stability: Development
13690 //
13691 // Examples: true
13692 TLSResumedKey = attribute.Key("tls.resumed")
13693
13694 // TLSServerCertificateKey is the attribute Key conforming to the
13695 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
13696 // stand-alone certificate offered by the server. This is usually
13697 // mutually-exclusive of `server.certificate_chain` since this value also exists
13698 // in that list.
13699 //
13700 // Type: string
13701 // RequirementLevel: Recommended
13702 // Stability: Development
13703 //
13704 // Examples: "MII..."
13705 TLSServerCertificateKey = attribute.Key("tls.server.certificate")
13706
13707 // TLSServerCertificateChainKey is the attribute Key conforming to the
13708 // "tls.server.certificate_chain" semantic conventions. It represents the array
13709 // of PEM-encoded certificates that make up the certificate chain offered by the
13710 // server. This is usually mutually-exclusive of `server.certificate` since that
13711 // value should be the first certificate in the chain.
13712 //
13713 // Type: string[]
13714 // RequirementLevel: Recommended
13715 // Stability: Development
13716 //
13717 // Examples: "MII...", "MI..."
13718 TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
13719
13720 // TLSServerHashMd5Key is the attribute Key conforming to the
13721 // "tls.server.hash.md5" semantic conventions. It represents the certificate
13722 // fingerprint using the MD5 digest of DER-encoded version of certificate
13723 // offered by the server. For consistency with other hash values, this value
13724 // should be formatted as an uppercase hash.
13725 //
13726 // Type: string
13727 // RequirementLevel: Recommended
13728 // Stability: Development
13729 //
13730 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
13731 TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
13732
13733 // TLSServerHashSha1Key is the attribute Key conforming to the
13734 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
13735 // fingerprint using the SHA1 digest of DER-encoded version of certificate
13736 // offered by the server. For consistency with other hash values, this value
13737 // should be formatted as an uppercase hash.
13738 //
13739 // Type: string
13740 // RequirementLevel: Recommended
13741 // Stability: Development
13742 //
13743 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
13744 TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
13745
13746 // TLSServerHashSha256Key is the attribute Key conforming to the
13747 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
13748 // fingerprint using the SHA256 digest of DER-encoded version of certificate
13749 // offered by the server. For consistency with other hash values, this value
13750 // should be formatted as an uppercase hash.
13751 //
13752 // Type: string
13753 // RequirementLevel: Recommended
13754 // Stability: Development
13755 //
13756 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
13757 TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
13758
13759 // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
13760 // semantic conventions. It represents the distinguished name of [subject] of
13761 // the issuer of the x.509 certificate presented by the client.
13762 //
13763 // Type: string
13764 // RequirementLevel: Recommended
13765 // Stability: Development
13766 //
13767 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
13768 //
13769 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
13770 TLSServerIssuerKey = attribute.Key("tls.server.issuer")
13771
13772 // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
13773 // semantic conventions. It represents a hash that identifies servers based on
13774 // how they perform an SSL/TLS handshake.
13775 //
13776 // Type: string
13777 // RequirementLevel: Recommended
13778 // Stability: Development
13779 //
13780 // Examples: "d4e5b18d6b55c71272893221c96ba240"
13781 TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
13782
13783 // TLSServerNotAfterKey is the attribute Key conforming to the
13784 // "tls.server.not_after" semantic conventions. It represents the date/Time
13785 // indicating when server certificate is no longer considered valid.
13786 //
13787 // Type: string
13788 // RequirementLevel: Recommended
13789 // Stability: Development
13790 //
13791 // Examples: "2021-01-01T00:00:00.000Z"
13792 TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
13793
13794 // TLSServerNotBeforeKey is the attribute Key conforming to the
13795 // "tls.server.not_before" semantic conventions. It represents the date/Time
13796 // indicating when server certificate is first considered valid.
13797 //
13798 // Type: string
13799 // RequirementLevel: Recommended
13800 // Stability: Development
13801 //
13802 // Examples: "1970-01-01T00:00:00.000Z"
13803 TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
13804
13805 // TLSServerSubjectKey is the attribute Key conforming to the
13806 // "tls.server.subject" semantic conventions. It represents the distinguished
13807 // name of subject of the x.509 certificate presented by the server.
13808 //
13809 // Type: string
13810 // RequirementLevel: Recommended
13811 // Stability: Development
13812 //
13813 // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
13814 TLSServerSubjectKey = attribute.Key("tls.server.subject")
13815 )
13816
13817 // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
13818 // semantic conventions. It represents the string indicating the [cipher] used
13819 // during the current connection.
13820 //
13821 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
13822 func TLSCipher(val string) attribute.KeyValue {
13823 return TLSCipherKey.String(val)
13824 }
13825
13826 // TLSClientCertificate returns an attribute KeyValue conforming to the
13827 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
13828 // stand-alone certificate offered by the client. This is usually
13829 // mutually-exclusive of `client.certificate_chain` since this value also exists
13830 // in that list.
13831 func TLSClientCertificate(val string) attribute.KeyValue {
13832 return TLSClientCertificateKey.String(val)
13833 }
13834
13835 // TLSClientCertificateChain returns an attribute KeyValue conforming to the
13836 // "tls.client.certificate_chain" semantic conventions. It represents the array
13837 // of PEM-encoded certificates that make up the certificate chain offered by the
13838 // client. This is usually mutually-exclusive of `client.certificate` since that
13839 // value should be the first certificate in the chain.
13840 func TLSClientCertificateChain(val ...string) attribute.KeyValue {
13841 return TLSClientCertificateChainKey.StringSlice(val)
13842 }
13843
13844 // TLSClientHashMd5 returns an attribute KeyValue conforming to the
13845 // "tls.client.hash.md5" semantic conventions. It represents the certificate
13846 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
13847 // by the client. For consistency with other hash values, this value should be
13848 // formatted as an uppercase hash.
13849 func TLSClientHashMd5(val string) attribute.KeyValue {
13850 return TLSClientHashMd5Key.String(val)
13851 }
13852
13853 // TLSClientHashSha1 returns an attribute KeyValue conforming to the
13854 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
13855 // fingerprint using the SHA1 digest of DER-encoded version of certificate
13856 // offered by the client. For consistency with other hash values, this value
13857 // should be formatted as an uppercase hash.
13858 func TLSClientHashSha1(val string) attribute.KeyValue {
13859 return TLSClientHashSha1Key.String(val)
13860 }
13861
13862 // TLSClientHashSha256 returns an attribute KeyValue conforming to the
13863 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
13864 // fingerprint using the SHA256 digest of DER-encoded version of certificate
13865 // offered by the client. For consistency with other hash values, this value
13866 // should be formatted as an uppercase hash.
13867 func TLSClientHashSha256(val string) attribute.KeyValue {
13868 return TLSClientHashSha256Key.String(val)
13869 }
13870
13871 // TLSClientIssuer returns an attribute KeyValue conforming to the
13872 // "tls.client.issuer" semantic conventions. It represents the distinguished name
13873 // of [subject] of the issuer of the x.509 certificate presented by the client.
13874 //
13875 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
13876 func TLSClientIssuer(val string) attribute.KeyValue {
13877 return TLSClientIssuerKey.String(val)
13878 }
13879
13880 // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
13881 // semantic conventions. It represents a hash that identifies clients based on
13882 // how they perform an SSL/TLS handshake.
13883 func TLSClientJa3(val string) attribute.KeyValue {
13884 return TLSClientJa3Key.String(val)
13885 }
13886
13887 // TLSClientNotAfter returns an attribute KeyValue conforming to the
13888 // "tls.client.not_after" semantic conventions. It represents the date/Time
13889 // indicating when client certificate is no longer considered valid.
13890 func TLSClientNotAfter(val string) attribute.KeyValue {
13891 return TLSClientNotAfterKey.String(val)
13892 }
13893
13894 // TLSClientNotBefore returns an attribute KeyValue conforming to the
13895 // "tls.client.not_before" semantic conventions. It represents the date/Time
13896 // indicating when client certificate is first considered valid.
13897 func TLSClientNotBefore(val string) attribute.KeyValue {
13898 return TLSClientNotBeforeKey.String(val)
13899 }
13900
13901 // TLSClientSubject returns an attribute KeyValue conforming to the
13902 // "tls.client.subject" semantic conventions. It represents the distinguished
13903 // name of subject of the x.509 certificate presented by the client.
13904 func TLSClientSubject(val string) attribute.KeyValue {
13905 return TLSClientSubjectKey.String(val)
13906 }
13907
13908 // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
13909 // "tls.client.supported_ciphers" semantic conventions. It represents the array
13910 // of ciphers offered by the client during the client hello.
13911 func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
13912 return TLSClientSupportedCiphersKey.StringSlice(val)
13913 }
13914
13915 // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
13916 // conventions. It represents the string indicating the curve used for the given
13917 // cipher, when applicable.
13918 func TLSCurve(val string) attribute.KeyValue {
13919 return TLSCurveKey.String(val)
13920 }
13921
13922 // TLSEstablished returns an attribute KeyValue conforming to the
13923 // "tls.established" semantic conventions. It represents the boolean flag
13924 // indicating if the TLS negotiation was successful and transitioned to an
13925 // encrypted tunnel.
13926 func TLSEstablished(val bool) attribute.KeyValue {
13927 return TLSEstablishedKey.Bool(val)
13928 }
13929
13930 // TLSNextProtocol returns an attribute KeyValue conforming to the
13931 // "tls.next_protocol" semantic conventions. It represents the string indicating
13932 // the protocol being tunneled. Per the values in the [IANA registry], this
13933 // string should be lower case.
13934 //
13935 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
13936 func TLSNextProtocol(val string) attribute.KeyValue {
13937 return TLSNextProtocolKey.String(val)
13938 }
13939
13940 // TLSProtocolVersion returns an attribute KeyValue conforming to the
13941 // "tls.protocol.version" semantic conventions. It represents the numeric part of
13942 // the version parsed from the original string of the negotiated
13943 // [SSL/TLS protocol version].
13944 //
13945 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
13946 func TLSProtocolVersion(val string) attribute.KeyValue {
13947 return TLSProtocolVersionKey.String(val)
13948 }
13949
13950 // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
13951 // semantic conventions. It represents the boolean flag indicating if this TLS
13952 // connection was resumed from an existing TLS negotiation.
13953 func TLSResumed(val bool) attribute.KeyValue {
13954 return TLSResumedKey.Bool(val)
13955 }
13956
13957 // TLSServerCertificate returns an attribute KeyValue conforming to the
13958 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
13959 // stand-alone certificate offered by the server. This is usually
13960 // mutually-exclusive of `server.certificate_chain` since this value also exists
13961 // in that list.
13962 func TLSServerCertificate(val string) attribute.KeyValue {
13963 return TLSServerCertificateKey.String(val)
13964 }
13965
13966 // TLSServerCertificateChain returns an attribute KeyValue conforming to the
13967 // "tls.server.certificate_chain" semantic conventions. It represents the array
13968 // of PEM-encoded certificates that make up the certificate chain offered by the
13969 // server. This is usually mutually-exclusive of `server.certificate` since that
13970 // value should be the first certificate in the chain.
13971 func TLSServerCertificateChain(val ...string) attribute.KeyValue {
13972 return TLSServerCertificateChainKey.StringSlice(val)
13973 }
13974
13975 // TLSServerHashMd5 returns an attribute KeyValue conforming to the
13976 // "tls.server.hash.md5" semantic conventions. It represents the certificate
13977 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
13978 // by the server. For consistency with other hash values, this value should be
13979 // formatted as an uppercase hash.
13980 func TLSServerHashMd5(val string) attribute.KeyValue {
13981 return TLSServerHashMd5Key.String(val)
13982 }
13983
13984 // TLSServerHashSha1 returns an attribute KeyValue conforming to the
13985 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
13986 // fingerprint using the SHA1 digest of DER-encoded version of certificate
13987 // offered by the server. For consistency with other hash values, this value
13988 // should be formatted as an uppercase hash.
13989 func TLSServerHashSha1(val string) attribute.KeyValue {
13990 return TLSServerHashSha1Key.String(val)
13991 }
13992
13993 // TLSServerHashSha256 returns an attribute KeyValue conforming to the
13994 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
13995 // fingerprint using the SHA256 digest of DER-encoded version of certificate
13996 // offered by the server. For consistency with other hash values, this value
13997 // should be formatted as an uppercase hash.
13998 func TLSServerHashSha256(val string) attribute.KeyValue {
13999 return TLSServerHashSha256Key.String(val)
14000 }
14001
14002 // TLSServerIssuer returns an attribute KeyValue conforming to the
14003 // "tls.server.issuer" semantic conventions. It represents the distinguished name
14004 // of [subject] of the issuer of the x.509 certificate presented by the client.
14005 //
14006 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
14007 func TLSServerIssuer(val string) attribute.KeyValue {
14008 return TLSServerIssuerKey.String(val)
14009 }
14010
14011 // TLSServerJa3s returns an attribute KeyValue conforming to the
14012 // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
14013 // servers based on how they perform an SSL/TLS handshake.
14014 func TLSServerJa3s(val string) attribute.KeyValue {
14015 return TLSServerJa3sKey.String(val)
14016 }
14017
14018 // TLSServerNotAfter returns an attribute KeyValue conforming to the
14019 // "tls.server.not_after" semantic conventions. It represents the date/Time
14020 // indicating when server certificate is no longer considered valid.
14021 func TLSServerNotAfter(val string) attribute.KeyValue {
14022 return TLSServerNotAfterKey.String(val)
14023 }
14024
14025 // TLSServerNotBefore returns an attribute KeyValue conforming to the
14026 // "tls.server.not_before" semantic conventions. It represents the date/Time
14027 // indicating when server certificate is first considered valid.
14028 func TLSServerNotBefore(val string) attribute.KeyValue {
14029 return TLSServerNotBeforeKey.String(val)
14030 }
14031
14032 // TLSServerSubject returns an attribute KeyValue conforming to the
14033 // "tls.server.subject" semantic conventions. It represents the distinguished
14034 // name of subject of the x.509 certificate presented by the server.
14035 func TLSServerSubject(val string) attribute.KeyValue {
14036 return TLSServerSubjectKey.String(val)
14037 }
14038
14039 // Enum values for tls.protocol.name
14040 var (
14041 // ssl
14042 // Stability: development
14043 TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
14044 // tls
14045 // Stability: development
14046 TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
14047 )
14048
14049 // Namespace: url
14050 const (
14051 // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
14052 // conventions. It represents the domain extracted from the `url.full`, such as
14053 // "opentelemetry.io".
14054 //
14055 // Type: string
14056 // RequirementLevel: Recommended
14057 // Stability: Development
14058 //
14059 // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
14060 // "[1080:0:0:0:8:800:200C:417A]"
14061 // Note: In some cases a URL may refer to an IP and/or port directly, without a
14062 // domain name. In this case, the IP address would go to the domain field. If
14063 // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
14064 // and `]` characters should also be captured in the domain field.
14065 //
14066 // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
14067 URLDomainKey = attribute.Key("url.domain")
14068
14069 // URLExtensionKey is the attribute Key conforming to the "url.extension"
14070 // semantic conventions. It represents the file extension extracted from the
14071 // `url.full`, excluding the leading dot.
14072 //
14073 // Type: string
14074 // RequirementLevel: Recommended
14075 // Stability: Development
14076 //
14077 // Examples: "png", "gz"
14078 // Note: The file extension is only set if it exists, as not every url has a
14079 // file extension. When the file name has multiple extensions `example.tar.gz`,
14080 // only the last one should be captured `gz`, not `tar.gz`.
14081 URLExtensionKey = attribute.Key("url.extension")
14082
14083 // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
14084 // conventions. It represents the [URI fragment] component.
14085 //
14086 // Type: string
14087 // RequirementLevel: Recommended
14088 // Stability: Stable
14089 //
14090 // Examples: "SemConv"
14091 //
14092 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
14093 URLFragmentKey = attribute.Key("url.fragment")
14094
14095 // URLFullKey is the attribute Key conforming to the "url.full" semantic
14096 // conventions. It represents the absolute URL describing a network resource
14097 // according to [RFC3986].
14098 //
14099 // Type: string
14100 // RequirementLevel: Recommended
14101 // Stability: Stable
14102 //
14103 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
14104 // Note: For network calls, URL usually has
14105 // `scheme://host[:port][path][?query][#fragment]` format, where the fragment
14106 // is not transmitted over HTTP, but if it is known, it SHOULD be included
14107 // nevertheless.
14108 //
14109 // `url.full` MUST NOT contain credentials passed via URL in form of
14110 // `https://username:password@www.example.com/`.
14111 // In such case username and password SHOULD be redacted and attribute's value
14112 // SHOULD be `https://REDACTED:REDACTED@www.example.com/`.
14113 //
14114 // `url.full` SHOULD capture the absolute URL when it is available (or can be
14115 // reconstructed).
14116 //
14117 // Sensitive content provided in `url.full` SHOULD be scrubbed when
14118 // instrumentations can identify it.
14119 //
14120 //
14121 // Query string values for the following keys SHOULD be redacted by default and
14122 // replaced by the
14123 // value `REDACTED`:
14124 //
14125 // - [`AWSAccessKeyId`]
14126 // - [`Signature`]
14127 // - [`sig`]
14128 // - [`X-Goog-Signature`]
14129 //
14130 // This list is subject to change over time.
14131 //
14132 // When a query string value is redacted, the query string key SHOULD still be
14133 // preserved, e.g.
14134 // `https://www.example.com/path?color=blue&sig=REDACTED`.
14135 //
14136 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
14137 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
14138 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
14139 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
14140 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
14141 URLFullKey = attribute.Key("url.full")
14142
14143 // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
14144 // conventions. It represents the unmodified original URL as seen in the event
14145 // source.
14146 //
14147 // Type: string
14148 // RequirementLevel: Recommended
14149 // Stability: Development
14150 //
14151 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
14152 // "search?q=OpenTelemetry"
14153 // Note: In network monitoring, the observed URL may be a full URL, whereas in
14154 // access logs, the URL is often just represented as a path. This field is meant
14155 // to represent the URL as it was observed, complete or not.
14156 // `url.original` might contain credentials passed via URL in form of
14157 // `https://username:password@www.example.com/`. In such case password and
14158 // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
14159 URLOriginalKey = attribute.Key("url.original")
14160
14161 // URLPathKey is the attribute Key conforming to the "url.path" semantic
14162 // conventions. It represents the [URI path] component.
14163 //
14164 // Type: string
14165 // RequirementLevel: Recommended
14166 // Stability: Stable
14167 //
14168 // Examples: "/search"
14169 // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
14170 // instrumentations can identify it.
14171 //
14172 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
14173 URLPathKey = attribute.Key("url.path")
14174
14175 // URLPortKey is the attribute Key conforming to the "url.port" semantic
14176 // conventions. It represents the port extracted from the `url.full`.
14177 //
14178 // Type: int
14179 // RequirementLevel: Recommended
14180 // Stability: Development
14181 //
14182 // Examples: 443
14183 URLPortKey = attribute.Key("url.port")
14184
14185 // URLQueryKey is the attribute Key conforming to the "url.query" semantic
14186 // conventions. It represents the [URI query] component.
14187 //
14188 // Type: string
14189 // RequirementLevel: Recommended
14190 // Stability: Stable
14191 //
14192 // Examples: "q=OpenTelemetry"
14193 // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
14194 // instrumentations can identify it.
14195 //
14196 //
14197 // Query string values for the following keys SHOULD be redacted by default and
14198 // replaced by the value `REDACTED`:
14199 //
14200 // - [`AWSAccessKeyId`]
14201 // - [`Signature`]
14202 // - [`sig`]
14203 // - [`X-Goog-Signature`]
14204 //
14205 // This list is subject to change over time.
14206 //
14207 // When a query string value is redacted, the query string key SHOULD still be
14208 // preserved, e.g.
14209 // `q=OpenTelemetry&sig=REDACTED`.
14210 //
14211 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
14212 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
14213 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
14214 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
14215 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
14216 URLQueryKey = attribute.Key("url.query")
14217
14218 // URLRegisteredDomainKey is the attribute Key conforming to the
14219 // "url.registered_domain" semantic conventions. It represents the highest
14220 // registered url domain, stripped of the subdomain.
14221 //
14222 // Type: string
14223 // RequirementLevel: Recommended
14224 // Stability: Development
14225 //
14226 // Examples: "example.com", "foo.co.uk"
14227 // Note: This value can be determined precisely with the [public suffix list].
14228 // For example, the registered domain for `foo.example.com` is `example.com`.
14229 // Trying to approximate this by simply taking the last two labels will not work
14230 // well for TLDs such as `co.uk`.
14231 //
14232 // [public suffix list]: https://publicsuffix.org/
14233 URLRegisteredDomainKey = attribute.Key("url.registered_domain")
14234
14235 // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
14236 // conventions. It represents the [URI scheme] component identifying the used
14237 // protocol.
14238 //
14239 // Type: string
14240 // RequirementLevel: Recommended
14241 // Stability: Stable
14242 //
14243 // Examples: "https", "ftp", "telnet"
14244 //
14245 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
14246 URLSchemeKey = attribute.Key("url.scheme")
14247
14248 // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
14249 // semantic conventions. It represents the subdomain portion of a fully
14250 // qualified domain name includes all of the names except the host name under
14251 // the registered_domain. In a partially qualified domain, or if the
14252 // qualification level of the full name cannot be determined, subdomain contains
14253 // all of the names below the registered domain.
14254 //
14255 // Type: string
14256 // RequirementLevel: Recommended
14257 // Stability: Development
14258 //
14259 // Examples: "east", "sub2.sub1"
14260 // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
14261 // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
14262 // subdomain field should contain `sub2.sub1`, with no trailing period.
14263 URLSubdomainKey = attribute.Key("url.subdomain")
14264
14265 // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
14266 // conventions. It represents the low-cardinality template of an
14267 // [absolute path reference].
14268 //
14269 // Type: string
14270 // RequirementLevel: Recommended
14271 // Stability: Development
14272 //
14273 // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
14274 //
14275 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
14276 URLTemplateKey = attribute.Key("url.template")
14277
14278 // URLTopLevelDomainKey is the attribute Key conforming to the
14279 // "url.top_level_domain" semantic conventions. It represents the effective top
14280 // level domain (eTLD), also known as the domain suffix, is the last part of the
14281 // domain name. For example, the top level domain for example.com is `com`.
14282 //
14283 // Type: string
14284 // RequirementLevel: Recommended
14285 // Stability: Development
14286 //
14287 // Examples: "com", "co.uk"
14288 // Note: This value can be determined precisely with the [public suffix list].
14289 //
14290 // [public suffix list]: https://publicsuffix.org/
14291 URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
14292 )
14293
14294 // URLDomain returns an attribute KeyValue conforming to the "url.domain"
14295 // semantic conventions. It represents the domain extracted from the `url.full`,
14296 // such as "opentelemetry.io".
14297 func URLDomain(val string) attribute.KeyValue {
14298 return URLDomainKey.String(val)
14299 }
14300
14301 // URLExtension returns an attribute KeyValue conforming to the "url.extension"
14302 // semantic conventions. It represents the file extension extracted from the
14303 // `url.full`, excluding the leading dot.
14304 func URLExtension(val string) attribute.KeyValue {
14305 return URLExtensionKey.String(val)
14306 }
14307
14308 // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
14309 // semantic conventions. It represents the [URI fragment] component.
14310 //
14311 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
14312 func URLFragment(val string) attribute.KeyValue {
14313 return URLFragmentKey.String(val)
14314 }
14315
14316 // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
14317 // conventions. It represents the absolute URL describing a network resource
14318 // according to [RFC3986].
14319 //
14320 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
14321 func URLFull(val string) attribute.KeyValue {
14322 return URLFullKey.String(val)
14323 }
14324
14325 // URLOriginal returns an attribute KeyValue conforming to the "url.original"
14326 // semantic conventions. It represents the unmodified original URL as seen in the
14327 // event source.
14328 func URLOriginal(val string) attribute.KeyValue {
14329 return URLOriginalKey.String(val)
14330 }
14331
14332 // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
14333 // conventions. It represents the [URI path] component.
14334 //
14335 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
14336 func URLPath(val string) attribute.KeyValue {
14337 return URLPathKey.String(val)
14338 }
14339
14340 // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
14341 // conventions. It represents the port extracted from the `url.full`.
14342 func URLPort(val int) attribute.KeyValue {
14343 return URLPortKey.Int(val)
14344 }
14345
14346 // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
14347 // conventions. It represents the [URI query] component.
14348 //
14349 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
14350 func URLQuery(val string) attribute.KeyValue {
14351 return URLQueryKey.String(val)
14352 }
14353
14354 // URLRegisteredDomain returns an attribute KeyValue conforming to the
14355 // "url.registered_domain" semantic conventions. It represents the highest
14356 // registered url domain, stripped of the subdomain.
14357 func URLRegisteredDomain(val string) attribute.KeyValue {
14358 return URLRegisteredDomainKey.String(val)
14359 }
14360
14361 // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
14362 // semantic conventions. It represents the [URI scheme] component identifying the
14363 // used protocol.
14364 //
14365 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
14366 func URLScheme(val string) attribute.KeyValue {
14367 return URLSchemeKey.String(val)
14368 }
14369
14370 // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
14371 // semantic conventions. It represents the subdomain portion of a fully qualified
14372 // domain name includes all of the names except the host name under the
14373 // registered_domain. In a partially qualified domain, or if the qualification
14374 // level of the full name cannot be determined, subdomain contains all of the
14375 // names below the registered domain.
14376 func URLSubdomain(val string) attribute.KeyValue {
14377 return URLSubdomainKey.String(val)
14378 }
14379
14380 // URLTemplate returns an attribute KeyValue conforming to the "url.template"
14381 // semantic conventions. It represents the low-cardinality template of an
14382 // [absolute path reference].
14383 //
14384 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
14385 func URLTemplate(val string) attribute.KeyValue {
14386 return URLTemplateKey.String(val)
14387 }
14388
14389 // URLTopLevelDomain returns an attribute KeyValue conforming to the
14390 // "url.top_level_domain" semantic conventions. It represents the effective top
14391 // level domain (eTLD), also known as the domain suffix, is the last part of the
14392 // domain name. For example, the top level domain for example.com is `com`.
14393 func URLTopLevelDomain(val string) attribute.KeyValue {
14394 return URLTopLevelDomainKey.String(val)
14395 }
14396
14397 // Namespace: user
14398 const (
14399 // UserEmailKey is the attribute Key conforming to the "user.email" semantic
14400 // conventions. It represents the user email address.
14401 //
14402 // Type: string
14403 // RequirementLevel: Recommended
14404 // Stability: Development
14405 //
14406 // Examples: "a.einstein@example.com"
14407 UserEmailKey = attribute.Key("user.email")
14408
14409 // UserFullNameKey is the attribute Key conforming to the "user.full_name"
14410 // semantic conventions. It represents the user's full name.
14411 //
14412 // Type: string
14413 // RequirementLevel: Recommended
14414 // Stability: Development
14415 //
14416 // Examples: "Albert Einstein"
14417 UserFullNameKey = attribute.Key("user.full_name")
14418
14419 // UserHashKey is the attribute Key conforming to the "user.hash" semantic
14420 // conventions. It represents the unique user hash to correlate information for
14421 // a user in anonymized form.
14422 //
14423 // Type: string
14424 // RequirementLevel: Recommended
14425 // Stability: Development
14426 //
14427 // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
14428 // Note: Useful if `user.id` or `user.name` contain confidential information and
14429 // cannot be used.
14430 UserHashKey = attribute.Key("user.hash")
14431
14432 // UserIDKey is the attribute Key conforming to the "user.id" semantic
14433 // conventions. It represents the unique identifier of the user.
14434 //
14435 // Type: string
14436 // RequirementLevel: Recommended
14437 // Stability: Development
14438 //
14439 // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
14440 UserIDKey = attribute.Key("user.id")
14441
14442 // UserNameKey is the attribute Key conforming to the "user.name" semantic
14443 // conventions. It represents the short name or login/username of the user.
14444 //
14445 // Type: string
14446 // RequirementLevel: Recommended
14447 // Stability: Development
14448 //
14449 // Examples: "a.einstein"
14450 UserNameKey = attribute.Key("user.name")
14451
14452 // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
14453 // conventions. It represents the array of user roles at the time of the event.
14454 //
14455 // Type: string[]
14456 // RequirementLevel: Recommended
14457 // Stability: Development
14458 //
14459 // Examples: "admin", "reporting_user"
14460 UserRolesKey = attribute.Key("user.roles")
14461 )
14462
14463 // UserEmail returns an attribute KeyValue conforming to the "user.email"
14464 // semantic conventions. It represents the user email address.
14465 func UserEmail(val string) attribute.KeyValue {
14466 return UserEmailKey.String(val)
14467 }
14468
14469 // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
14470 // semantic conventions. It represents the user's full name.
14471 func UserFullName(val string) attribute.KeyValue {
14472 return UserFullNameKey.String(val)
14473 }
14474
14475 // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
14476 // conventions. It represents the unique user hash to correlate information for a
14477 // user in anonymized form.
14478 func UserHash(val string) attribute.KeyValue {
14479 return UserHashKey.String(val)
14480 }
14481
14482 // UserID returns an attribute KeyValue conforming to the "user.id" semantic
14483 // conventions. It represents the unique identifier of the user.
14484 func UserID(val string) attribute.KeyValue {
14485 return UserIDKey.String(val)
14486 }
14487
14488 // UserName returns an attribute KeyValue conforming to the "user.name" semantic
14489 // conventions. It represents the short name or login/username of the user.
14490 func UserName(val string) attribute.KeyValue {
14491 return UserNameKey.String(val)
14492 }
14493
14494 // UserRoles returns an attribute KeyValue conforming to the "user.roles"
14495 // semantic conventions. It represents the array of user roles at the time of the
14496 // event.
14497 func UserRoles(val ...string) attribute.KeyValue {
14498 return UserRolesKey.StringSlice(val)
14499 }
14500
14501 // Namespace: user_agent
14502 const (
14503 // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
14504 // semantic conventions. It represents the name of the user-agent extracted from
14505 // original. Usually refers to the browser's name.
14506 //
14507 // Type: string
14508 // RequirementLevel: Recommended
14509 // Stability: Development
14510 //
14511 // Examples: "Safari", "YourApp"
14512 // Note: [Example] of extracting browser's name from original string. In the
14513 // case of using a user-agent for non-browser products, such as microservices
14514 // with multiple names/versions inside the `user_agent.original`, the most
14515 // significant name SHOULD be selected. In such a scenario it should align with
14516 // `user_agent.version`
14517 //
14518 // [Example]: https://www.whatsmyua.info
14519 UserAgentNameKey = attribute.Key("user_agent.name")
14520
14521 // UserAgentOriginalKey is the attribute Key conforming to the
14522 // "user_agent.original" semantic conventions. It represents the value of the
14523 // [HTTP User-Agent] header sent by the client.
14524 //
14525 // Type: string
14526 // RequirementLevel: Recommended
14527 // Stability: Stable
14528 //
14529 // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
14530 // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
14531 // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
14532 // grpc-java-okhttp/1.27.2"
14533 //
14534 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
14535 UserAgentOriginalKey = attribute.Key("user_agent.original")
14536
14537 // UserAgentOSNameKey is the attribute Key conforming to the
14538 // "user_agent.os.name" semantic conventions. It represents the human readable
14539 // operating system name.
14540 //
14541 // Type: string
14542 // RequirementLevel: Recommended
14543 // Stability: Development
14544 //
14545 // Examples: "iOS", "Android", "Ubuntu"
14546 // Note: For mapping user agent strings to OS names, libraries such as
14547 // [ua-parser] can be utilized.
14548 //
14549 // [ua-parser]: https://github.com/ua-parser
14550 UserAgentOSNameKey = attribute.Key("user_agent.os.name")
14551
14552 // UserAgentOSVersionKey is the attribute Key conforming to the
14553 // "user_agent.os.version" semantic conventions. It represents the version
14554 // string of the operating system as defined in [Version Attributes].
14555 //
14556 // Type: string
14557 // RequirementLevel: Recommended
14558 // Stability: Development
14559 //
14560 // Examples: "14.2.1", "18.04.1"
14561 // Note: For mapping user agent strings to OS versions, libraries such as
14562 // [ua-parser] can be utilized.
14563 //
14564 // [Version Attributes]: /docs/resource/README.md#version-attributes
14565 // [ua-parser]: https://github.com/ua-parser
14566 UserAgentOSVersionKey = attribute.Key("user_agent.os.version")
14567
14568 // UserAgentSyntheticTypeKey is the attribute Key conforming to the
14569 // "user_agent.synthetic.type" semantic conventions. It represents the specifies
14570 // the category of synthetic traffic, such as tests or bots.
14571 //
14572 // Type: Enum
14573 // RequirementLevel: Recommended
14574 // Stability: Development
14575 //
14576 // Examples:
14577 // Note: This attribute MAY be derived from the contents of the
14578 // `user_agent.original` attribute. Components that populate the attribute are
14579 // responsible for determining what they consider to be synthetic bot or test
14580 // traffic. This attribute can either be set for self-identification purposes,
14581 // or on telemetry detected to be generated as a result of a synthetic request.
14582 // This attribute is useful for distinguishing between genuine client traffic
14583 // and synthetic traffic generated by bots or tests.
14584 UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type")
14585
14586 // UserAgentVersionKey is the attribute Key conforming to the
14587 // "user_agent.version" semantic conventions. It represents the version of the
14588 // user-agent extracted from original. Usually refers to the browser's version.
14589 //
14590 // Type: string
14591 // RequirementLevel: Recommended
14592 // Stability: Development
14593 //
14594 // Examples: "14.1.2", "1.0.0"
14595 // Note: [Example] of extracting browser's version from original string. In the
14596 // case of using a user-agent for non-browser products, such as microservices
14597 // with multiple names/versions inside the `user_agent.original`, the most
14598 // significant version SHOULD be selected. In such a scenario it should align
14599 // with `user_agent.name`
14600 //
14601 // [Example]: https://www.whatsmyua.info
14602 UserAgentVersionKey = attribute.Key("user_agent.version")
14603 )
14604
14605 // UserAgentName returns an attribute KeyValue conforming to the
14606 // "user_agent.name" semantic conventions. It represents the name of the
14607 // user-agent extracted from original. Usually refers to the browser's name.
14608 func UserAgentName(val string) attribute.KeyValue {
14609 return UserAgentNameKey.String(val)
14610 }
14611
14612 // UserAgentOriginal returns an attribute KeyValue conforming to the
14613 // "user_agent.original" semantic conventions. It represents the value of the
14614 // [HTTP User-Agent] header sent by the client.
14615 //
14616 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
14617 func UserAgentOriginal(val string) attribute.KeyValue {
14618 return UserAgentOriginalKey.String(val)
14619 }
14620
14621 // UserAgentOSName returns an attribute KeyValue conforming to the
14622 // "user_agent.os.name" semantic conventions. It represents the human readable
14623 // operating system name.
14624 func UserAgentOSName(val string) attribute.KeyValue {
14625 return UserAgentOSNameKey.String(val)
14626 }
14627
14628 // UserAgentOSVersion returns an attribute KeyValue conforming to the
14629 // "user_agent.os.version" semantic conventions. It represents the version string
14630 // of the operating system as defined in [Version Attributes].
14631 //
14632 // [Version Attributes]: /docs/resource/README.md#version-attributes
14633 func UserAgentOSVersion(val string) attribute.KeyValue {
14634 return UserAgentOSVersionKey.String(val)
14635 }
14636
14637 // UserAgentVersion returns an attribute KeyValue conforming to the
14638 // "user_agent.version" semantic conventions. It represents the version of the
14639 // user-agent extracted from original. Usually refers to the browser's version.
14640 func UserAgentVersion(val string) attribute.KeyValue {
14641 return UserAgentVersionKey.String(val)
14642 }
14643
14644 // Enum values for user_agent.synthetic.type
14645 var (
14646 // Bot source.
14647 // Stability: development
14648 UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot")
14649 // Synthetic test source.
14650 // Stability: development
14651 UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test")
14652 )
14653
14654 // Namespace: vcs
14655 const (
14656 // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id"
14657 // semantic conventions. It represents the ID of the change (pull request/merge
14658 // request/changelist) if applicable. This is usually a unique (within
14659 // repository) identifier generated by the VCS system.
14660 //
14661 // Type: string
14662 // RequirementLevel: Recommended
14663 // Stability: Development
14664 //
14665 // Examples: "123"
14666 VCSChangeIDKey = attribute.Key("vcs.change.id")
14667
14668 // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state"
14669 // semantic conventions. It represents the state of the change (pull
14670 // request/merge request/changelist).
14671 //
14672 // Type: Enum
14673 // RequirementLevel: Recommended
14674 // Stability: Development
14675 //
14676 // Examples: "open", "closed", "merged"
14677 VCSChangeStateKey = attribute.Key("vcs.change.state")
14678
14679 // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title"
14680 // semantic conventions. It represents the human readable title of the change
14681 // (pull request/merge request/changelist). This title is often a brief summary
14682 // of the change and may get merged in to a ref as the commit summary.
14683 //
14684 // Type: string
14685 // RequirementLevel: Recommended
14686 // Stability: Development
14687 //
14688 // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
14689 // dependency"
14690 VCSChangeTitleKey = attribute.Key("vcs.change.title")
14691
14692 // VCSLineChangeTypeKey is the attribute Key conforming to the
14693 // "vcs.line_change.type" semantic conventions. It represents the type of line
14694 // change being measured on a branch or change.
14695 //
14696 // Type: Enum
14697 // RequirementLevel: Recommended
14698 // Stability: Development
14699 //
14700 // Examples: "added", "removed"
14701 VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type")
14702
14703 // VCSOwnerNameKey is the attribute Key conforming to the "vcs.owner.name"
14704 // semantic conventions. It represents the group owner within the version
14705 // control system.
14706 //
14707 // Type: string
14708 // RequirementLevel: Recommended
14709 // Stability: Development
14710 //
14711 // Examples: "my-org", "myteam", "business-unit"
14712 VCSOwnerNameKey = attribute.Key("vcs.owner.name")
14713
14714 // VCSProviderNameKey is the attribute Key conforming to the "vcs.provider.name"
14715 // semantic conventions. It represents the name of the version control system
14716 // provider.
14717 //
14718 // Type: Enum
14719 // RequirementLevel: Recommended
14720 // Stability: Development
14721 //
14722 // Examples: "github", "gitlab", "gitea", "bitbucket"
14723 VCSProviderNameKey = attribute.Key("vcs.provider.name")
14724
14725 // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name"
14726 // semantic conventions. It represents the name of the [reference] such as
14727 // **branch** or **tag** in the repository.
14728 //
14729 // Type: string
14730 // RequirementLevel: Recommended
14731 // Stability: Development
14732 //
14733 // Examples: "my-feature-branch", "tag-1-test"
14734 // Note: `base` refers to the starting point of a change. For example, `main`
14735 // would be the base reference of type branch if you've created a new
14736 // reference of type branch from it and created new commits.
14737 //
14738 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14739 VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name")
14740
14741 // VCSRefBaseRevisionKey is the attribute Key conforming to the
14742 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
14743 // literally [revised version], The revision most often refers to a commit
14744 // object in Git, or a revision number in SVN.
14745 //
14746 // Type: string
14747 // RequirementLevel: Recommended
14748 // Stability: Development
14749 //
14750 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
14751 // "main", "123", "HEAD"
14752 // Note: `base` refers to the starting point of a change. For example, `main`
14753 // would be the base reference of type branch if you've created a new
14754 // reference of type branch from it and created new commits. The
14755 // revision can be a full [hash value (see
14756 // glossary)],
14757 // of the recorded change to a ref within a repository pointing to a
14758 // commit [commit] object. It does
14759 // not necessarily have to be a hash; it can simply define a [revision
14760 // number]
14761 // which is an integer that is monotonically increasing. In cases where
14762 // it is identical to the `ref.base.name`, it SHOULD still be included.
14763 // It is up to the implementer to decide which value to set as the
14764 // revision based on the VCS system and situational context.
14765 //
14766 // [revised version]: https://www.merriam-webster.com/dictionary/revision
14767 // [hash value (see
14768 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
14769 // [commit]: https://git-scm.com/docs/git-commit
14770 // [revision
14771 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
14772 VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision")
14773
14774 // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type"
14775 // semantic conventions. It represents the type of the [reference] in the
14776 // repository.
14777 //
14778 // Type: Enum
14779 // RequirementLevel: Recommended
14780 // Stability: Development
14781 //
14782 // Examples: "branch", "tag"
14783 // Note: `base` refers to the starting point of a change. For example, `main`
14784 // would be the base reference of type branch if you've created a new
14785 // reference of type branch from it and created new commits.
14786 //
14787 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14788 VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type")
14789
14790 // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name"
14791 // semantic conventions. It represents the name of the [reference] such as
14792 // **branch** or **tag** in the repository.
14793 //
14794 // Type: string
14795 // RequirementLevel: Recommended
14796 // Stability: Development
14797 //
14798 // Examples: "my-feature-branch", "tag-1-test"
14799 // Note: `head` refers to where you are right now; the current reference at a
14800 // given time.
14801 //
14802 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14803 VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name")
14804
14805 // VCSRefHeadRevisionKey is the attribute Key conforming to the
14806 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
14807 // literally [revised version], The revision most often refers to a commit
14808 // object in Git, or a revision number in SVN.
14809 //
14810 // Type: string
14811 // RequirementLevel: Recommended
14812 // Stability: Development
14813 //
14814 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
14815 // "main", "123", "HEAD"
14816 // Note: `head` refers to where you are right now; the current reference at a
14817 // given time.The revision can be a full [hash value (see
14818 // glossary)],
14819 // of the recorded change to a ref within a repository pointing to a
14820 // commit [commit] object. It does
14821 // not necessarily have to be a hash; it can simply define a [revision
14822 // number]
14823 // which is an integer that is monotonically increasing. In cases where
14824 // it is identical to the `ref.head.name`, it SHOULD still be included.
14825 // It is up to the implementer to decide which value to set as the
14826 // revision based on the VCS system and situational context.
14827 //
14828 // [revised version]: https://www.merriam-webster.com/dictionary/revision
14829 // [hash value (see
14830 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
14831 // [commit]: https://git-scm.com/docs/git-commit
14832 // [revision
14833 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
14834 VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision")
14835
14836 // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type"
14837 // semantic conventions. It represents the type of the [reference] in the
14838 // repository.
14839 //
14840 // Type: Enum
14841 // RequirementLevel: Recommended
14842 // Stability: Development
14843 //
14844 // Examples: "branch", "tag"
14845 // Note: `head` refers to where you are right now; the current reference at a
14846 // given time.
14847 //
14848 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14849 VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type")
14850
14851 // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic
14852 // conventions. It represents the type of the [reference] in the repository.
14853 //
14854 // Type: Enum
14855 // RequirementLevel: Recommended
14856 // Stability: Development
14857 //
14858 // Examples: "branch", "tag"
14859 //
14860 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14861 VCSRefTypeKey = attribute.Key("vcs.ref.type")
14862
14863 // VCSRepositoryNameKey is the attribute Key conforming to the
14864 // "vcs.repository.name" semantic conventions. It represents the human readable
14865 // name of the repository. It SHOULD NOT include any additional identifier like
14866 // Group/SubGroup in GitLab or organization in GitHub.
14867 //
14868 // Type: string
14869 // RequirementLevel: Recommended
14870 // Stability: Development
14871 //
14872 // Examples: "semantic-conventions", "my-cool-repo"
14873 // Note: Due to it only being the name, it can clash with forks of the same
14874 // repository if collecting telemetry across multiple orgs or groups in
14875 // the same backends.
14876 VCSRepositoryNameKey = attribute.Key("vcs.repository.name")
14877
14878 // VCSRepositoryURLFullKey is the attribute Key conforming to the
14879 // "vcs.repository.url.full" semantic conventions. It represents the
14880 // [canonical URL] of the repository providing the complete HTTP(S) address in
14881 // order to locate and identify the repository through a browser.
14882 //
14883 // Type: string
14884 // RequirementLevel: Recommended
14885 // Stability: Development
14886 //
14887 // Examples:
14888 // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
14889 // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
14890 // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include
14891 // the `.git` extension.
14892 //
14893 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
14894 VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
14895
14896 // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the
14897 // "vcs.revision_delta.direction" semantic conventions. It represents the type
14898 // of revision comparison.
14899 //
14900 // Type: Enum
14901 // RequirementLevel: Recommended
14902 // Stability: Development
14903 //
14904 // Examples: "ahead", "behind"
14905 VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction")
14906 )
14907
14908 // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id"
14909 // semantic conventions. It represents the ID of the change (pull request/merge
14910 // request/changelist) if applicable. This is usually a unique (within
14911 // repository) identifier generated by the VCS system.
14912 func VCSChangeID(val string) attribute.KeyValue {
14913 return VCSChangeIDKey.String(val)
14914 }
14915
14916 // VCSChangeTitle returns an attribute KeyValue conforming to the
14917 // "vcs.change.title" semantic conventions. It represents the human readable
14918 // title of the change (pull request/merge request/changelist). This title is
14919 // often a brief summary of the change and may get merged in to a ref as the
14920 // commit summary.
14921 func VCSChangeTitle(val string) attribute.KeyValue {
14922 return VCSChangeTitleKey.String(val)
14923 }
14924
14925 // VCSOwnerName returns an attribute KeyValue conforming to the "vcs.owner.name"
14926 // semantic conventions. It represents the group owner within the version control
14927 // system.
14928 func VCSOwnerName(val string) attribute.KeyValue {
14929 return VCSOwnerNameKey.String(val)
14930 }
14931
14932 // VCSRefBaseName returns an attribute KeyValue conforming to the
14933 // "vcs.ref.base.name" semantic conventions. It represents the name of the
14934 // [reference] such as **branch** or **tag** in the repository.
14935 //
14936 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14937 func VCSRefBaseName(val string) attribute.KeyValue {
14938 return VCSRefBaseNameKey.String(val)
14939 }
14940
14941 // VCSRefBaseRevision returns an attribute KeyValue conforming to the
14942 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
14943 // literally [revised version], The revision most often refers to a commit object
14944 // in Git, or a revision number in SVN.
14945 //
14946 // [revised version]: https://www.merriam-webster.com/dictionary/revision
14947 func VCSRefBaseRevision(val string) attribute.KeyValue {
14948 return VCSRefBaseRevisionKey.String(val)
14949 }
14950
14951 // VCSRefHeadName returns an attribute KeyValue conforming to the
14952 // "vcs.ref.head.name" semantic conventions. It represents the name of the
14953 // [reference] such as **branch** or **tag** in the repository.
14954 //
14955 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
14956 func VCSRefHeadName(val string) attribute.KeyValue {
14957 return VCSRefHeadNameKey.String(val)
14958 }
14959
14960 // VCSRefHeadRevision returns an attribute KeyValue conforming to the
14961 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
14962 // literally [revised version], The revision most often refers to a commit object
14963 // in Git, or a revision number in SVN.
14964 //
14965 // [revised version]: https://www.merriam-webster.com/dictionary/revision
14966 func VCSRefHeadRevision(val string) attribute.KeyValue {
14967 return VCSRefHeadRevisionKey.String(val)
14968 }
14969
14970 // VCSRepositoryName returns an attribute KeyValue conforming to the
14971 // "vcs.repository.name" semantic conventions. It represents the human readable
14972 // name of the repository. It SHOULD NOT include any additional identifier like
14973 // Group/SubGroup in GitLab or organization in GitHub.
14974 func VCSRepositoryName(val string) attribute.KeyValue {
14975 return VCSRepositoryNameKey.String(val)
14976 }
14977
14978 // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
14979 // "vcs.repository.url.full" semantic conventions. It represents the
14980 // [canonical URL] of the repository providing the complete HTTP(S) address in
14981 // order to locate and identify the repository through a browser.
14982 //
14983 // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
14984 func VCSRepositoryURLFull(val string) attribute.KeyValue {
14985 return VCSRepositoryURLFullKey.String(val)
14986 }
14987
14988 // Enum values for vcs.change.state
14989 var (
14990 // Open means the change is currently active and under review. It hasn't been
14991 // merged into the target branch yet, and it's still possible to make changes or
14992 // add comments.
14993 // Stability: development
14994 VCSChangeStateOpen = VCSChangeStateKey.String("open")
14995 // WIP (work-in-progress, draft) means the change is still in progress and not
14996 // yet ready for a full review. It might still undergo significant changes.
14997 // Stability: development
14998 VCSChangeStateWip = VCSChangeStateKey.String("wip")
14999 // Closed means the merge request has been closed without merging. This can
15000 // happen for various reasons, such as the changes being deemed unnecessary, the
15001 // issue being resolved in another way, or the author deciding to withdraw the
15002 // request.
15003 // Stability: development
15004 VCSChangeStateClosed = VCSChangeStateKey.String("closed")
15005 // Merged indicates that the change has been successfully integrated into the
15006 // target codebase.
15007 // Stability: development
15008 VCSChangeStateMerged = VCSChangeStateKey.String("merged")
15009 )
15010
15011 // Enum values for vcs.line_change.type
15012 var (
15013 // How many lines were added.
15014 // Stability: development
15015 VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added")
15016 // How many lines were removed.
15017 // Stability: development
15018 VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed")
15019 )
15020
15021 // Enum values for vcs.provider.name
15022 var (
15023 // [GitHub]
15024 // Stability: development
15025 //
15026 // [GitHub]: https://github.com
15027 VCSProviderNameGithub = VCSProviderNameKey.String("github")
15028 // [GitLab]
15029 // Stability: development
15030 //
15031 // [GitLab]: https://gitlab.com
15032 VCSProviderNameGitlab = VCSProviderNameKey.String("gitlab")
15033 // [Gitea]
15034 // Stability: development
15035 //
15036 // [Gitea]: https://gitea.io
15037 VCSProviderNameGitea = VCSProviderNameKey.String("gitea")
15038 // [Bitbucket]
15039 // Stability: development
15040 //
15041 // [Bitbucket]: https://bitbucket.org
15042 VCSProviderNameBitbucket = VCSProviderNameKey.String("bitbucket")
15043 )
15044
15045 // Enum values for vcs.ref.base.type
15046 var (
15047 // [branch]
15048 // Stability: development
15049 //
15050 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
15051 VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch")
15052 // [tag]
15053 // Stability: development
15054 //
15055 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
15056 VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag")
15057 )
15058
15059 // Enum values for vcs.ref.head.type
15060 var (
15061 // [branch]
15062 // Stability: development
15063 //
15064 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
15065 VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch")
15066 // [tag]
15067 // Stability: development
15068 //
15069 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
15070 VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag")
15071 )
15072
15073 // Enum values for vcs.ref.type
15074 var (
15075 // [branch]
15076 // Stability: development
15077 //
15078 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
15079 VCSRefTypeBranch = VCSRefTypeKey.String("branch")
15080 // [tag]
15081 // Stability: development
15082 //
15083 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
15084 VCSRefTypeTag = VCSRefTypeKey.String("tag")
15085 )
15086
15087 // Enum values for vcs.revision_delta.direction
15088 var (
15089 // How many revisions the change is behind the target ref.
15090 // Stability: development
15091 VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind")
15092 // How many revisions the change is ahead of the target ref.
15093 // Stability: development
15094 VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead")
15095 )
15096
15097 // Namespace: webengine
15098 const (
15099 // WebEngineDescriptionKey is the attribute Key conforming to the
15100 // "webengine.description" semantic conventions. It represents the additional
15101 // description of the web engine (e.g. detailed version and edition
15102 // information).
15103 //
15104 // Type: string
15105 // RequirementLevel: Recommended
15106 // Stability: Development
15107 //
15108 // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
15109 // 2.2.2.Final"
15110 WebEngineDescriptionKey = attribute.Key("webengine.description")
15111
15112 // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
15113 // semantic conventions. It represents the name of the web engine.
15114 //
15115 // Type: string
15116 // RequirementLevel: Recommended
15117 // Stability: Development
15118 //
15119 // Examples: "WildFly"
15120 WebEngineNameKey = attribute.Key("webengine.name")
15121
15122 // WebEngineVersionKey is the attribute Key conforming to the
15123 // "webengine.version" semantic conventions. It represents the version of the
15124 // web engine.
15125 //
15126 // Type: string
15127 // RequirementLevel: Recommended
15128 // Stability: Development
15129 //
15130 // Examples: "21.0.0"
15131 WebEngineVersionKey = attribute.Key("webengine.version")
15132 )
15133
15134 // WebEngineDescription returns an attribute KeyValue conforming to the
15135 // "webengine.description" semantic conventions. It represents the additional
15136 // description of the web engine (e.g. detailed version and edition information).
15137 func WebEngineDescription(val string) attribute.KeyValue {
15138 return WebEngineDescriptionKey.String(val)
15139 }
15140
15141 // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
15142 // semantic conventions. It represents the name of the web engine.
15143 func WebEngineName(val string) attribute.KeyValue {
15144 return WebEngineNameKey.String(val)
15145 }
15146
15147 // WebEngineVersion returns an attribute KeyValue conforming to the
15148 // "webengine.version" semantic conventions. It represents the version of the web
15149 // engine.
15150 func WebEngineVersion(val string) attribute.KeyValue {
15151 return WebEngineVersionKey.String(val)
15152 }
15153
15154 // Namespace: zos
15155 const (
15156 // ZOSSmfIDKey is the attribute Key conforming to the "zos.smf.id" semantic
15157 // conventions. It represents the System Management Facility (SMF) Identifier
15158 // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
15159 // and is used for system and performance analysis.
15160 //
15161 // Type: string
15162 // RequirementLevel: Recommended
15163 // Stability: Development
15164 //
15165 // Examples: "SYS1"
15166 ZOSSmfIDKey = attribute.Key("zos.smf.id")
15167
15168 // ZOSSysplexNameKey is the attribute Key conforming to the "zos.sysplex.name"
15169 // semantic conventions. It represents the name of the SYSPLEX to which the z/OS
15170 // system belongs too.
15171 //
15172 // Type: string
15173 // RequirementLevel: Recommended
15174 // Stability: Development
15175 //
15176 // Examples: "SYSPLEX1"
15177 ZOSSysplexNameKey = attribute.Key("zos.sysplex.name")
15178 )
15179
15180 // ZOSSmfID returns an attribute KeyValue conforming to the "zos.smf.id" semantic
15181 // conventions. It represents the System Management Facility (SMF) Identifier
15182 // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
15183 // and is used for system and performance analysis.
15184 func ZOSSmfID(val string) attribute.KeyValue {
15185 return ZOSSmfIDKey.String(val)
15186 }
15187
15188 // ZOSSysplexName returns an attribute KeyValue conforming to the
15189 // "zos.sysplex.name" semantic conventions. It represents the name of the SYSPLEX
15190 // to which the z/OS system belongs too.
15191 func ZOSSysplexName(val string) attribute.KeyValue {
15192 return ZOSSysplexNameKey.String(val)
15193 }