Debian Codegraph @

semconv/v1.40.0/attribute_group.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 // Code generated from semantic convention specification. DO NOT EDIT.
5
6 package semconv // import "go.opentelemetry.io/otel/semconv/v1.40.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 // AppScreenIDKey is the attribute Key conforming to the "app.screen.id"
191 // semantic conventions. It represents an identifier that uniquely
192 // differentiates this screen from other screens in the same application.
193 //
194 // Type: string
195 // RequirementLevel: Recommended
196 // Stability: Development
197 //
198 // Examples: "f9bc787d-ff05-48ad-90e1-fca1d46130b3",
199 // "com.example.app.MainActivity", "com.example.shop.ProductDetailFragment",
200 // "MyApp.ProfileView", "MyApp.ProfileViewController"
201 // Note: A screen represents only the part of the device display drawn by the
202 // app. It typically contains multiple widgets or UI components and is larger in
203 // scope than individual widgets. Multiple screens can coexist on the same
204 // display simultaneously (e.g., split view on tablets).
205 AppScreenIDKey = attribute.Key("app.screen.id")
206
207 // AppScreenNameKey is the attribute Key conforming to the "app.screen.name"
208 // semantic conventions. It represents the name of an application screen.
209 //
210 // Type: string
211 // RequirementLevel: Recommended
212 // Stability: Development
213 //
214 // Examples: "MainActivity", "ProductDetailFragment", "ProfileView",
215 // "ProfileViewController"
216 // Note: A screen represents only the part of the device display drawn by the
217 // app. It typically contains multiple widgets or UI components and is larger in
218 // scope than individual widgets. Multiple screens can coexist on the same
219 // display simultaneously (e.g., split view on tablets).
220 AppScreenNameKey = attribute.Key("app.screen.name")
221
222 // AppWidgetIDKey is the attribute Key conforming to the "app.widget.id"
223 // semantic conventions. It represents an identifier that uniquely
224 // differentiates this widget from other widgets in the same application.
225 //
226 // Type: string
227 // RequirementLevel: Recommended
228 // Stability: Development
229 //
230 // Examples: "f9bc787d-ff05-48ad-90e1-fca1d46130b3", "submit_order_1829"
231 // Note: A widget is an application component, typically an on-screen visual GUI
232 // element.
233 AppWidgetIDKey = attribute.Key("app.widget.id")
234
235 // AppWidgetNameKey is the attribute Key conforming to the "app.widget.name"
236 // semantic conventions. It represents the name of an application widget.
237 //
238 // Type: string
239 // RequirementLevel: Recommended
240 // Stability: Development
241 //
242 // Examples: "submit", "attack", "Clear Cart"
243 // Note: A widget is an application component, typically an on-screen visual GUI
244 // element.
245 AppWidgetNameKey = attribute.Key("app.widget.name")
246 )
247
248 // AppBuildID returns an attribute KeyValue conforming to the "app.build_id"
249 // semantic conventions. It represents the unique identifier for a particular
250 // build or compilation of the application.
251 func AppBuildID(val string) attribute.KeyValue {
252 return AppBuildIDKey.String(val)
253 }
254
255 // AppInstallationID returns an attribute KeyValue conforming to the
256 // "app.installation.id" semantic conventions. It represents a unique identifier
257 // representing the installation of an application on a specific device.
258 func AppInstallationID(val string) attribute.KeyValue {
259 return AppInstallationIDKey.String(val)
260 }
261
262 // AppJankFrameCount returns an attribute KeyValue conforming to the
263 // "app.jank.frame_count" semantic conventions. It represents a number of frame
264 // renders that experienced jank.
265 func AppJankFrameCount(val int) attribute.KeyValue {
266 return AppJankFrameCountKey.Int(val)
267 }
268
269 // AppJankPeriod returns an attribute KeyValue conforming to the
270 // "app.jank.period" semantic conventions. It represents the time period, in
271 // seconds, for which this jank is being reported.
272 func AppJankPeriod(val float64) attribute.KeyValue {
273 return AppJankPeriodKey.Float64(val)
274 }
275
276 // AppJankThreshold returns an attribute KeyValue conforming to the
277 // "app.jank.threshold" semantic conventions. It represents the minimum rendering
278 // threshold for this jank, in seconds.
279 func AppJankThreshold(val float64) attribute.KeyValue {
280 return AppJankThresholdKey.Float64(val)
281 }
282
283 // AppScreenCoordinateX returns an attribute KeyValue conforming to the
284 // "app.screen.coordinate.x" semantic conventions. It represents the x
285 // (horizontal) coordinate of a screen coordinate, in screen pixels.
286 func AppScreenCoordinateX(val int) attribute.KeyValue {
287 return AppScreenCoordinateXKey.Int(val)
288 }
289
290 // AppScreenCoordinateY returns an attribute KeyValue conforming to the
291 // "app.screen.coordinate.y" semantic conventions. It represents the y (vertical)
292 // component of a screen coordinate, in screen pixels.
293 func AppScreenCoordinateY(val int) attribute.KeyValue {
294 return AppScreenCoordinateYKey.Int(val)
295 }
296
297 // AppScreenID returns an attribute KeyValue conforming to the "app.screen.id"
298 // semantic conventions. It represents an identifier that uniquely differentiates
299 // this screen from other screens in the same application.
300 func AppScreenID(val string) attribute.KeyValue {
301 return AppScreenIDKey.String(val)
302 }
303
304 // AppScreenName returns an attribute KeyValue conforming to the
305 // "app.screen.name" semantic conventions. It represents the name of an
306 // application screen.
307 func AppScreenName(val string) attribute.KeyValue {
308 return AppScreenNameKey.String(val)
309 }
310
311 // AppWidgetID returns an attribute KeyValue conforming to the "app.widget.id"
312 // semantic conventions. It represents an identifier that uniquely differentiates
313 // this widget from other widgets in the same application.
314 func AppWidgetID(val string) attribute.KeyValue {
315 return AppWidgetIDKey.String(val)
316 }
317
318 // AppWidgetName returns an attribute KeyValue conforming to the
319 // "app.widget.name" semantic conventions. It represents the name of an
320 // application widget.
321 func AppWidgetName(val string) attribute.KeyValue {
322 return AppWidgetNameKey.String(val)
323 }
324
325 // Namespace: artifact
326 const (
327 // ArtifactAttestationFilenameKey is the attribute Key conforming to the
328 // "artifact.attestation.filename" semantic conventions. It represents the
329 // provenance filename of the built attestation which directly relates to the
330 // build artifact filename. This filename SHOULD accompany the artifact at
331 // publish time. See the [SLSA Relationship] specification for more information.
332 //
333 // Type: string
334 // RequirementLevel: Recommended
335 // Stability: Development
336 //
337 // Examples: "golang-binary-amd64-v0.1.0.attestation",
338 // "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation",
339 // "file-name-package.tar.gz.intoto.json1"
340 //
341 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
342 ArtifactAttestationFilenameKey = attribute.Key("artifact.attestation.filename")
343
344 // ArtifactAttestationHashKey is the attribute Key conforming to the
345 // "artifact.attestation.hash" semantic conventions. It represents the full
346 // [hash value (see glossary)], of the built attestation. Some envelopes in the
347 // [software attestation space] also refer to this as the **digest**.
348 //
349 // Type: string
350 // RequirementLevel: Recommended
351 // Stability: Development
352 //
353 // Examples: "1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408"
354 //
355 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
356 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
357 ArtifactAttestationHashKey = attribute.Key("artifact.attestation.hash")
358
359 // ArtifactAttestationIDKey is the attribute Key conforming to the
360 // "artifact.attestation.id" semantic conventions. It represents the id of the
361 // build [software attestation].
362 //
363 // Type: string
364 // RequirementLevel: Recommended
365 // Stability: Development
366 //
367 // Examples: "123"
368 //
369 // [software attestation]: https://slsa.dev/attestation-model
370 ArtifactAttestationIDKey = attribute.Key("artifact.attestation.id")
371
372 // ArtifactFilenameKey is the attribute Key conforming to the
373 // "artifact.filename" semantic conventions. It represents the human readable
374 // file name of the artifact, typically generated during build and release
375 // processes. Often includes the package name and version in the file name.
376 //
377 // Type: string
378 // RequirementLevel: Recommended
379 // Stability: Development
380 //
381 // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0",
382 // "release-1.tar.gz", "file-name-package.tar.gz"
383 // Note: This file name can also act as the [Package Name]
384 // in cases where the package ecosystem maps accordingly.
385 // Additionally, the artifact [can be published]
386 // for others, but that is not a guarantee.
387 //
388 // [Package Name]: https://slsa.dev/spec/v1.0/terminology#package-model
389 // [can be published]: https://slsa.dev/spec/v1.0/terminology#software-supply-chain
390 ArtifactFilenameKey = attribute.Key("artifact.filename")
391
392 // ArtifactHashKey is the attribute Key conforming to the "artifact.hash"
393 // semantic conventions. It represents the full [hash value (see glossary)],
394 // often found in checksum.txt on a release of the artifact and used to verify
395 // package integrity.
396 //
397 // Type: string
398 // RequirementLevel: Recommended
399 // Stability: Development
400 //
401 // Examples: "9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9"
402 // Note: The specific algorithm used to create the cryptographic hash value is
403 // not defined. In situations where an artifact has multiple
404 // cryptographic hashes, it is up to the implementer to choose which
405 // hash value to set here; this should be the most secure hash algorithm
406 // that is suitable for the situation and consistent with the
407 // corresponding attestation. The implementer can then provide the other
408 // hash values through an additional set of attribute extensions as they
409 // deem necessary.
410 //
411 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
412 ArtifactHashKey = attribute.Key("artifact.hash")
413
414 // ArtifactPurlKey is the attribute Key conforming to the "artifact.purl"
415 // semantic conventions. It represents the [Package URL] of the
416 // [package artifact] provides a standard way to identify and locate the
417 // packaged artifact.
418 //
419 // Type: string
420 // RequirementLevel: Recommended
421 // Stability: Development
422 //
423 // Examples: "pkg:github/package-url/purl-spec@1209109710924",
424 // "pkg:npm/[email protected]"
425 //
426 // [Package URL]: https://github.com/package-url/purl-spec
427 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
428 ArtifactPurlKey = attribute.Key("artifact.purl")
429
430 // ArtifactVersionKey is the attribute Key conforming to the "artifact.version"
431 // semantic conventions. It represents the version of the artifact.
432 //
433 // Type: string
434 // RequirementLevel: Recommended
435 // Stability: Development
436 //
437 // Examples: "v0.1.0", "1.2.1", "122691-build"
438 ArtifactVersionKey = attribute.Key("artifact.version")
439 )
440
441 // ArtifactAttestationFilename returns an attribute KeyValue conforming to the
442 // "artifact.attestation.filename" semantic conventions. It represents the
443 // provenance filename of the built attestation which directly relates to the
444 // build artifact filename. This filename SHOULD accompany the artifact at
445 // publish time. See the [SLSA Relationship] specification for more information.
446 //
447 // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
448 func ArtifactAttestationFilename(val string) attribute.KeyValue {
449 return ArtifactAttestationFilenameKey.String(val)
450 }
451
452 // ArtifactAttestationHash returns an attribute KeyValue conforming to the
453 // "artifact.attestation.hash" semantic conventions. It represents the full
454 // [hash value (see glossary)], of the built attestation. Some envelopes in the
455 // [software attestation space] also refer to this as the **digest**.
456 //
457 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
458 // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
459 func ArtifactAttestationHash(val string) attribute.KeyValue {
460 return ArtifactAttestationHashKey.String(val)
461 }
462
463 // ArtifactAttestationID returns an attribute KeyValue conforming to the
464 // "artifact.attestation.id" semantic conventions. It represents the id of the
465 // build [software attestation].
466 //
467 // [software attestation]: https://slsa.dev/attestation-model
468 func ArtifactAttestationID(val string) attribute.KeyValue {
469 return ArtifactAttestationIDKey.String(val)
470 }
471
472 // ArtifactFilename returns an attribute KeyValue conforming to the
473 // "artifact.filename" semantic conventions. It represents the human readable
474 // file name of the artifact, typically generated during build and release
475 // processes. Often includes the package name and version in the file name.
476 func ArtifactFilename(val string) attribute.KeyValue {
477 return ArtifactFilenameKey.String(val)
478 }
479
480 // ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash"
481 // semantic conventions. It represents the full [hash value (see glossary)],
482 // often found in checksum.txt on a release of the artifact and used to verify
483 // package integrity.
484 //
485 // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
486 func ArtifactHash(val string) attribute.KeyValue {
487 return ArtifactHashKey.String(val)
488 }
489
490 // ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl"
491 // semantic conventions. It represents the [Package URL] of the
492 // [package artifact] provides a standard way to identify and locate the packaged
493 // artifact.
494 //
495 // [Package URL]: https://github.com/package-url/purl-spec
496 // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
497 func ArtifactPurl(val string) attribute.KeyValue {
498 return ArtifactPurlKey.String(val)
499 }
500
501 // ArtifactVersion returns an attribute KeyValue conforming to the
502 // "artifact.version" semantic conventions. It represents the version of the
503 // artifact.
504 func ArtifactVersion(val string) attribute.KeyValue {
505 return ArtifactVersionKey.String(val)
506 }
507
508 // Namespace: aws
509 const (
510 // AWSBedrockGuardrailIDKey is the attribute Key conforming to the
511 // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
512 // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
513 // prevent unwanted behavior from model responses or user messages.
514 //
515 // Type: string
516 // RequirementLevel: Recommended
517 // Stability: Development
518 //
519 // Examples: "sgi5gkybzqak"
520 //
521 // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
522 AWSBedrockGuardrailIDKey = attribute.Key("aws.bedrock.guardrail.id")
523
524 // AWSBedrockKnowledgeBaseIDKey is the attribute Key conforming to the
525 // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the
526 // unique identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a
527 // bank of information that can be queried by models to generate more relevant
528 // responses and augment prompts.
529 //
530 // Type: string
531 // RequirementLevel: Recommended
532 // Stability: Development
533 //
534 // Examples: "XFWUPB9PAW"
535 //
536 // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
537 AWSBedrockKnowledgeBaseIDKey = attribute.Key("aws.bedrock.knowledge_base.id")
538
539 // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the
540 // "aws.dynamodb.attribute_definitions" semantic conventions. It represents the
541 // JSON-serialized value of each item in the `AttributeDefinitions` request
542 // field.
543 //
544 // Type: string[]
545 // RequirementLevel: Recommended
546 // Stability: Development
547 //
548 // Examples: "{ "AttributeName": "string", "AttributeType": "string" }"
549 AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions")
550
551 // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the
552 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the
553 // value of the `AttributesToGet` request parameter.
554 //
555 // Type: string[]
556 // RequirementLevel: Recommended
557 // Stability: Development
558 //
559 // Examples: "lives", "id"
560 AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get")
561
562 // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the
563 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
564 // of the `ConsistentRead` request parameter.
565 //
566 // Type: boolean
567 // RequirementLevel: Recommended
568 // Stability: Development
569 //
570 // Examples:
571 AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read")
572
573 // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the
574 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
575 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
576 //
577 // Type: string[]
578 // RequirementLevel: Recommended
579 // Stability: Development
580 //
581 // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" :
582 // { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits":
583 // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number,
584 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } },
585 // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number,
586 // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName":
587 // "string", "WriteCapacityUnits": number }"
588 AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity")
589
590 // AWSDynamoDBCountKey is the attribute Key conforming to the
591 // "aws.dynamodb.count" semantic conventions. It represents the value of the
592 // `Count` response parameter.
593 //
594 // Type: int
595 // RequirementLevel: Recommended
596 // Stability: Development
597 //
598 // Examples: 10
599 AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count")
600
601 // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the
602 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
603 // value of the `ExclusiveStartTableName` request parameter.
604 //
605 // Type: string
606 // RequirementLevel: Recommended
607 // Stability: Development
608 //
609 // Examples: "Users", "CatsTable"
610 AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table")
611
612 // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to
613 // the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It
614 // represents the JSON-serialized value of each item in the
615 // `GlobalSecondaryIndexUpdates` request field.
616 //
617 // Type: string[]
618 // RequirementLevel: Recommended
619 // Stability: Development
620 //
621 // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ {
622 // "AttributeName": "string", "KeyType": "string" } ], "Projection": {
623 // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" },
624 // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits":
625 // number } }"
626 AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates")
627
628 // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the
629 // "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents
630 // the JSON-serialized value of each item of the `GlobalSecondaryIndexes`
631 // request field.
632 //
633 // Type: string[]
634 // RequirementLevel: Recommended
635 // Stability: Development
636 //
637 // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName":
638 // "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [
639 // "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": {
640 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"
641 AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes")
642
643 // AWSDynamoDBIndexNameKey is the attribute Key conforming to the
644 // "aws.dynamodb.index_name" semantic conventions. It represents the value of
645 // the `IndexName` request parameter.
646 //
647 // Type: string
648 // RequirementLevel: Recommended
649 // Stability: Development
650 //
651 // Examples: "name_to_group"
652 AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name")
653
654 // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the
655 // "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
656 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
657 //
658 // Type: string
659 // RequirementLevel: Recommended
660 // Stability: Development
661 //
662 // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob,
663 // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" :
664 // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S":
665 // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }"
666 AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics")
667
668 // AWSDynamoDBLimitKey is the attribute Key conforming to the
669 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
670 // `Limit` request parameter.
671 //
672 // Type: int
673 // RequirementLevel: Recommended
674 // Stability: Development
675 //
676 // Examples: 10
677 AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit")
678
679 // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the
680 // "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
681 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
682 // field.
683 //
684 // Type: string[]
685 // RequirementLevel: Recommended
686 // Stability: Development
687 //
688 // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes":
689 // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string",
690 // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ],
691 // "ProjectionType": "string" } }"
692 AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes")
693
694 // AWSDynamoDBProjectionKey is the attribute Key conforming to the
695 // "aws.dynamodb.projection" semantic conventions. It represents the value of
696 // the `ProjectionExpression` request parameter.
697 //
698 // Type: string
699 // RequirementLevel: Recommended
700 // Stability: Development
701 //
702 // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems,
703 // ProductReviews"
704 AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection")
705
706 // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the
707 // "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents
708 // the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
709 //
710 // Type: double
711 // RequirementLevel: Recommended
712 // Stability: Development
713 //
714 // Examples: 1.0, 2.0
715 AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity")
716
717 // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the
718 // "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents
719 // the value of the `ProvisionedThroughput.WriteCapacityUnits` request
720 // parameter.
721 //
722 // Type: double
723 // RequirementLevel: Recommended
724 // Stability: Development
725 //
726 // Examples: 1.0, 2.0
727 AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity")
728
729 // AWSDynamoDBScanForwardKey is the attribute Key conforming to the
730 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
731 // the `ScanIndexForward` request parameter.
732 //
733 // Type: boolean
734 // RequirementLevel: Recommended
735 // Stability: Development
736 //
737 // Examples:
738 AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward")
739
740 // AWSDynamoDBScannedCountKey is the attribute Key conforming to the
741 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
742 // the `ScannedCount` response parameter.
743 //
744 // Type: int
745 // RequirementLevel: Recommended
746 // Stability: Development
747 //
748 // Examples: 50
749 AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count")
750
751 // AWSDynamoDBSegmentKey is the attribute Key conforming to the
752 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
753 // `Segment` request parameter.
754 //
755 // Type: int
756 // RequirementLevel: Recommended
757 // Stability: Development
758 //
759 // Examples: 10
760 AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment")
761
762 // AWSDynamoDBSelectKey is the attribute Key conforming to the
763 // "aws.dynamodb.select" semantic conventions. It represents the value of the
764 // `Select` request parameter.
765 //
766 // Type: string
767 // RequirementLevel: Recommended
768 // Stability: Development
769 //
770 // Examples: "ALL_ATTRIBUTES", "COUNT"
771 AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select")
772
773 // AWSDynamoDBTableCountKey is the attribute Key conforming to the
774 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
775 // items in the `TableNames` response parameter.
776 //
777 // Type: int
778 // RequirementLevel: Recommended
779 // Stability: Development
780 //
781 // Examples: 20
782 AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count")
783
784 // AWSDynamoDBTableNamesKey is the attribute Key conforming to the
785 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in
786 // the `RequestItems` object field.
787 //
788 // Type: string[]
789 // RequirementLevel: Recommended
790 // Stability: Development
791 //
792 // Examples: "Users", "Cats"
793 AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names")
794
795 // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the
796 // "aws.dynamodb.total_segments" semantic conventions. It represents the value
797 // of the `TotalSegments` request parameter.
798 //
799 // Type: int
800 // RequirementLevel: Recommended
801 // Stability: Development
802 //
803 // Examples: 100
804 AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments")
805
806 // AWSECSClusterARNKey is the attribute Key conforming to the
807 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
808 // [ECS cluster].
809 //
810 // Type: string
811 // RequirementLevel: Recommended
812 // Stability: Development
813 //
814 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
815 //
816 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
817 AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn")
818
819 // AWSECSContainerARNKey is the attribute Key conforming to the
820 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
821 // Resource Name (ARN) of an [ECS container instance].
822 //
823 // Type: string
824 // RequirementLevel: Recommended
825 // Stability: Development
826 //
827 // Examples:
828 // "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9"
829 //
830 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
831 AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn")
832
833 // AWSECSLaunchtypeKey is the attribute Key conforming to the
834 // "aws.ecs.launchtype" semantic conventions. It represents the [launch type]
835 // for an ECS task.
836 //
837 // Type: Enum
838 // RequirementLevel: Recommended
839 // Stability: Development
840 //
841 // Examples:
842 //
843 // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
844 AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype")
845
846 // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn"
847 // semantic conventions. It represents the ARN of a running [ECS task].
848 //
849 // Type: string
850 // RequirementLevel: Recommended
851 // Stability: Development
852 //
853 // Examples:
854 // "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b",
855 // "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
856 //
857 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
858 AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn")
859
860 // AWSECSTaskFamilyKey is the attribute Key conforming to the
861 // "aws.ecs.task.family" semantic conventions. It represents the family name of
862 // the [ECS task definition] used to create the ECS task.
863 //
864 // Type: string
865 // RequirementLevel: Recommended
866 // Stability: Development
867 //
868 // Examples: "opentelemetry-family"
869 //
870 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
871 AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family")
872
873 // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id"
874 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
875 // be extracted from `task.arn`.
876 //
877 // Type: string
878 // RequirementLevel: Recommended
879 // Stability: Development
880 //
881 // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b",
882 // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
883 AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id")
884
885 // AWSECSTaskRevisionKey is the attribute Key conforming to the
886 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
887 // the task definition used to create the ECS task.
888 //
889 // Type: string
890 // RequirementLevel: Recommended
891 // Stability: Development
892 //
893 // Examples: "8", "26"
894 AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision")
895
896 // AWSEKSClusterARNKey is the attribute Key conforming to the
897 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
898 // cluster.
899 //
900 // Type: string
901 // RequirementLevel: Recommended
902 // Stability: Development
903 //
904 // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
905 AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn")
906
907 // AWSExtendedRequestIDKey is the attribute Key conforming to the
908 // "aws.extended_request_id" semantic conventions. It represents the AWS
909 // extended request ID as returned in the response header `x-amz-id-2`.
910 //
911 // Type: string
912 // RequirementLevel: Recommended
913 // Stability: Development
914 //
915 // Examples:
916 // "wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ="
917 AWSExtendedRequestIDKey = attribute.Key("aws.extended_request_id")
918
919 // AWSKinesisStreamNameKey is the attribute Key conforming to the
920 // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
921 // AWS Kinesis [stream] the request refers to. Corresponds to the
922 // `--stream-name` parameter of the Kinesis [describe-stream] operation.
923 //
924 // Type: string
925 // RequirementLevel: Recommended
926 // Stability: Development
927 //
928 // Examples: "some-stream-name"
929 //
930 // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
931 // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
932 AWSKinesisStreamNameKey = attribute.Key("aws.kinesis.stream_name")
933
934 // AWSLambdaInvokedARNKey is the attribute Key conforming to the
935 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
936 // ARN as provided on the `Context` passed to the function (
937 // `Lambda-Runtime-Invoked-Function-Arn` header on the
938 // `/runtime/invocation/next` applicable).
939 //
940 // Type: string
941 // RequirementLevel: Recommended
942 // Stability: Development
943 //
944 // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias"
945 // Note: This may be different from `cloud.resource_id` if an alias is involved.
946 AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn")
947
948 // AWSLambdaResourceMappingIDKey is the attribute Key conforming to the
949 // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
950 // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
951 // function. It's contents are read by Lambda and used to trigger a function.
952 // This isn't available in the lambda execution context or the lambda runtime
953 // environtment. This is going to be populated by the AWS SDK for each language
954 // when that UUID is present. Some of these operations are
955 // Create/Delete/Get/List/Update EventSourceMapping.
956 //
957 // Type: string
958 // RequirementLevel: Recommended
959 // Stability: Development
960 //
961 // Examples: "587ad24b-03b9-4413-8202-bbd56b36e5b7"
962 //
963 // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
964 AWSLambdaResourceMappingIDKey = attribute.Key("aws.lambda.resource_mapping.id")
965
966 // AWSLogGroupARNsKey is the attribute Key conforming to the
967 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
968 // Name(s) (ARN) of the AWS log group(s).
969 //
970 // Type: string[]
971 // RequirementLevel: Recommended
972 // Stability: Development
973 //
974 // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"
975 // Note: See the [log group ARN format documentation].
976 //
977 // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
978 AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns")
979
980 // AWSLogGroupNamesKey is the attribute Key conforming to the
981 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
982 // AWS log group(s) an application is writing to.
983 //
984 // Type: string[]
985 // RequirementLevel: Recommended
986 // Stability: Development
987 //
988 // Examples: "/aws/lambda/my-function", "opentelemetry-service"
989 // Note: Multiple log groups must be supported for cases like multi-container
990 // applications, where a single application has sidecar containers, and each
991 // write to their own log group.
992 AWSLogGroupNamesKey = attribute.Key("aws.log.group.names")
993
994 // AWSLogStreamARNsKey is the attribute Key conforming to the
995 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
996 // AWS log stream(s).
997 //
998 // Type: string[]
999 // RequirementLevel: Recommended
1000 // Stability: Development
1001 //
1002 // Examples:
1003 // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
1004 // Note: See the [log stream ARN format documentation]. One log group can
1005 // contain several log streams, so these ARNs necessarily identify both a log
1006 // group and a log stream.
1007 //
1008 // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
1009 AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns")
1010
1011 // AWSLogStreamNamesKey is the attribute Key conforming to the
1012 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
1013 // AWS log stream(s) an application is writing to.
1014 //
1015 // Type: string[]
1016 // RequirementLevel: Recommended
1017 // Stability: Development
1018 //
1019 // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
1020 AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names")
1021
1022 // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id"
1023 // semantic conventions. It represents the AWS request ID as returned in the
1024 // response headers `x-amzn-requestid`, `x-amzn-request-id` or
1025 // `x-amz-request-id`.
1026 //
1027 // Type: string
1028 // RequirementLevel: Recommended
1029 // Stability: Development
1030 //
1031 // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ"
1032 AWSRequestIDKey = attribute.Key("aws.request_id")
1033
1034 // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket"
1035 // semantic conventions. It represents the S3 bucket name the request refers to.
1036 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
1037 //
1038 // Type: string
1039 // RequirementLevel: Recommended
1040 // Stability: Development
1041 //
1042 // Examples: "some-bucket-name"
1043 // Note: The `bucket` attribute is applicable to all S3 operations that
1044 // reference a bucket, i.e. that require the bucket name as a mandatory
1045 // parameter.
1046 // This applies to almost all S3 operations except `list-buckets`.
1047 //
1048 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1049 AWSS3BucketKey = attribute.Key("aws.s3.bucket")
1050
1051 // AWSS3CopySourceKey is the attribute Key conforming to the
1052 // "aws.s3.copy_source" semantic conventions. It represents the source object
1053 // (in the form `bucket`/`key`) for the copy operation.
1054 //
1055 // Type: string
1056 // RequirementLevel: Recommended
1057 // Stability: Development
1058 //
1059 // Examples: "someFile.yml"
1060 // Note: The `copy_source` attribute applies to S3 copy operations and
1061 // corresponds to the `--copy-source` parameter
1062 // of the [copy-object operation within the S3 API].
1063 // This applies in particular to the following operations:
1064 //
1065 // - [copy-object]
1066 // - [upload-part-copy]
1067 //
1068 //
1069 // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
1070 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
1071 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1072 AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source")
1073
1074 // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete"
1075 // semantic conventions. It represents the delete request container that
1076 // specifies the objects to be deleted.
1077 //
1078 // Type: string
1079 // RequirementLevel: Recommended
1080 // Stability: Development
1081 //
1082 // Examples:
1083 // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"
1084 // Note: The `delete` attribute is only applicable to the [delete-object]
1085 // operation.
1086 // The `delete` attribute corresponds to the `--delete` parameter of the
1087 // [delete-objects operation within the S3 API].
1088 //
1089 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
1090 // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html
1091 AWSS3DeleteKey = attribute.Key("aws.s3.delete")
1092
1093 // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic
1094 // conventions. It represents the S3 object key the request refers to.
1095 // Corresponds to the `--key` parameter of the [S3 API] operations.
1096 //
1097 // Type: string
1098 // RequirementLevel: Recommended
1099 // Stability: Development
1100 //
1101 // Examples: "someFile.yml"
1102 // Note: The `key` attribute is applicable to all object-related S3 operations,
1103 // i.e. that require the object key as a mandatory parameter.
1104 // This applies in particular to the following operations:
1105 //
1106 // - [copy-object]
1107 // - [delete-object]
1108 // - [get-object]
1109 // - [head-object]
1110 // - [put-object]
1111 // - [restore-object]
1112 // - [select-object-content]
1113 // - [abort-multipart-upload]
1114 // - [complete-multipart-upload]
1115 // - [create-multipart-upload]
1116 // - [list-parts]
1117 // - [upload-part]
1118 // - [upload-part-copy]
1119 //
1120 //
1121 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1122 // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
1123 // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
1124 // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html
1125 // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html
1126 // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html
1127 // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html
1128 // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html
1129 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
1130 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
1131 // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html
1132 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
1133 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1134 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1135 AWSS3KeyKey = attribute.Key("aws.s3.key")
1136
1137 // AWSS3PartNumberKey is the attribute Key conforming to the
1138 // "aws.s3.part_number" semantic conventions. It represents the part number of
1139 // the part being uploaded in a multipart-upload operation. This is a positive
1140 // integer between 1 and 10,000.
1141 //
1142 // Type: int
1143 // RequirementLevel: Recommended
1144 // Stability: Development
1145 //
1146 // Examples: 3456
1147 // Note: The `part_number` attribute is only applicable to the [upload-part]
1148 // and [upload-part-copy] operations.
1149 // The `part_number` attribute corresponds to the `--part-number` parameter of
1150 // the
1151 // [upload-part operation within the S3 API].
1152 //
1153 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1154 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1155 // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1156 AWSS3PartNumberKey = attribute.Key("aws.s3.part_number")
1157
1158 // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id"
1159 // semantic conventions. It represents the upload ID that identifies the
1160 // multipart upload.
1161 //
1162 // Type: string
1163 // RequirementLevel: Recommended
1164 // Stability: Development
1165 //
1166 // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ"
1167 // Note: The `upload_id` attribute applies to S3 multipart-upload operations and
1168 // corresponds to the `--upload-id` parameter
1169 // of the [S3 API] multipart operations.
1170 // This applies in particular to the following operations:
1171 //
1172 // - [abort-multipart-upload]
1173 // - [complete-multipart-upload]
1174 // - [list-parts]
1175 // - [upload-part]
1176 // - [upload-part-copy]
1177 //
1178 //
1179 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1180 // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
1181 // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
1182 // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
1183 // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
1184 // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
1185 AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id")
1186
1187 // AWSSecretsmanagerSecretARNKey is the attribute Key conforming to the
1188 // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN
1189 // of the Secret stored in the Secrets Mangger.
1190 //
1191 // Type: string
1192 // RequirementLevel: Recommended
1193 // Stability: Development
1194 //
1195 // Examples:
1196 // "arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters"
1197 AWSSecretsmanagerSecretARNKey = attribute.Key("aws.secretsmanager.secret.arn")
1198
1199 // AWSSNSTopicARNKey is the attribute Key conforming to the "aws.sns.topic.arn"
1200 // semantic conventions. It represents the ARN of the AWS SNS Topic. An Amazon
1201 // SNS [topic] is a logical access point that acts as a communication channel.
1202 //
1203 // Type: string
1204 // RequirementLevel: Recommended
1205 // Stability: Development
1206 //
1207 // Examples: "arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE"
1208 //
1209 // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
1210 AWSSNSTopicARNKey = attribute.Key("aws.sns.topic.arn")
1211
1212 // AWSSQSQueueURLKey is the attribute Key conforming to the "aws.sqs.queue.url"
1213 // semantic conventions. It represents the URL of the AWS SQS Queue. It's a
1214 // unique identifier for a queue in Amazon Simple Queue Service (SQS) and is
1215 // used to access the queue and perform actions on it.
1216 //
1217 // Type: string
1218 // RequirementLevel: Recommended
1219 // Stability: Development
1220 //
1221 // Examples: "https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue"
1222 AWSSQSQueueURLKey = attribute.Key("aws.sqs.queue.url")
1223
1224 // AWSStepFunctionsActivityARNKey is the attribute Key conforming to the
1225 // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
1226 // of the AWS Step Functions Activity.
1227 //
1228 // Type: string
1229 // RequirementLevel: Recommended
1230 // Stability: Development
1231 //
1232 // Examples: "arn:aws:states:us-east-1:123456789012:activity:get-greeting"
1233 AWSStepFunctionsActivityARNKey = attribute.Key("aws.step_functions.activity.arn")
1234
1235 // AWSStepFunctionsStateMachineARNKey is the attribute Key conforming to the
1236 // "aws.step_functions.state_machine.arn" semantic conventions. It represents
1237 // the ARN of the AWS Step Functions State Machine.
1238 //
1239 // Type: string
1240 // RequirementLevel: Recommended
1241 // Stability: Development
1242 //
1243 // Examples:
1244 // "arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1"
1245 AWSStepFunctionsStateMachineARNKey = attribute.Key("aws.step_functions.state_machine.arn")
1246 )
1247
1248 // AWSBedrockGuardrailID returns an attribute KeyValue conforming to the
1249 // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
1250 // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
1251 // prevent unwanted behavior from model responses or user messages.
1252 //
1253 // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
1254 func AWSBedrockGuardrailID(val string) attribute.KeyValue {
1255 return AWSBedrockGuardrailIDKey.String(val)
1256 }
1257
1258 // AWSBedrockKnowledgeBaseID returns an attribute KeyValue conforming to the
1259 // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the unique
1260 // identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a bank of
1261 // information that can be queried by models to generate more relevant responses
1262 // and augment prompts.
1263 //
1264 // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
1265 func AWSBedrockKnowledgeBaseID(val string) attribute.KeyValue {
1266 return AWSBedrockKnowledgeBaseIDKey.String(val)
1267 }
1268
1269 // AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to
1270 // the "aws.dynamodb.attribute_definitions" semantic conventions. It represents
1271 // the JSON-serialized value of each item in the `AttributeDefinitions` request
1272 // field.
1273 func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue {
1274 return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val)
1275 }
1276
1277 // AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the
1278 // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value
1279 // of the `AttributesToGet` request parameter.
1280 func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue {
1281 return AWSDynamoDBAttributesToGetKey.StringSlice(val)
1282 }
1283
1284 // AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the
1285 // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
1286 // of the `ConsistentRead` request parameter.
1287 func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue {
1288 return AWSDynamoDBConsistentReadKey.Bool(val)
1289 }
1290
1291 // AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the
1292 // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
1293 // JSON-serialized value of each item in the `ConsumedCapacity` response field.
1294 func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue {
1295 return AWSDynamoDBConsumedCapacityKey.StringSlice(val)
1296 }
1297
1298 // AWSDynamoDBCount returns an attribute KeyValue conforming to the
1299 // "aws.dynamodb.count" semantic conventions. It represents the value of the
1300 // `Count` response parameter.
1301 func AWSDynamoDBCount(val int) attribute.KeyValue {
1302 return AWSDynamoDBCountKey.Int(val)
1303 }
1304
1305 // AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the
1306 // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
1307 // value of the `ExclusiveStartTableName` request parameter.
1308 func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue {
1309 return AWSDynamoDBExclusiveStartTableKey.String(val)
1310 }
1311
1312 // AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue
1313 // conforming to the "aws.dynamodb.global_secondary_index_updates" semantic
1314 // conventions. It represents the JSON-serialized value of each item in the
1315 // `GlobalSecondaryIndexUpdates` request field.
1316 func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue {
1317 return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val)
1318 }
1319
1320 // AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to
1321 // the "aws.dynamodb.global_secondary_indexes" semantic conventions. It
1322 // represents the JSON-serialized value of each item of the
1323 // `GlobalSecondaryIndexes` request field.
1324 func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue {
1325 return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val)
1326 }
1327
1328 // AWSDynamoDBIndexName returns an attribute KeyValue conforming to the
1329 // "aws.dynamodb.index_name" semantic conventions. It represents the value of the
1330 // `IndexName` request parameter.
1331 func AWSDynamoDBIndexName(val string) attribute.KeyValue {
1332 return AWSDynamoDBIndexNameKey.String(val)
1333 }
1334
1335 // AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to
1336 // the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
1337 // the JSON-serialized value of the `ItemCollectionMetrics` response field.
1338 func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue {
1339 return AWSDynamoDBItemCollectionMetricsKey.String(val)
1340 }
1341
1342 // AWSDynamoDBLimit returns an attribute KeyValue conforming to the
1343 // "aws.dynamodb.limit" semantic conventions. It represents the value of the
1344 // `Limit` request parameter.
1345 func AWSDynamoDBLimit(val int) attribute.KeyValue {
1346 return AWSDynamoDBLimitKey.Int(val)
1347 }
1348
1349 // AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to
1350 // the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
1351 // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
1352 // field.
1353 func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue {
1354 return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val)
1355 }
1356
1357 // AWSDynamoDBProjection returns an attribute KeyValue conforming to the
1358 // "aws.dynamodb.projection" semantic conventions. It represents the value of the
1359 // `ProjectionExpression` request parameter.
1360 func AWSDynamoDBProjection(val string) attribute.KeyValue {
1361 return AWSDynamoDBProjectionKey.String(val)
1362 }
1363
1364 // AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to
1365 // the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It
1366 // represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request
1367 // parameter.
1368 func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue {
1369 return AWSDynamoDBProvisionedReadCapacityKey.Float64(val)
1370 }
1371
1372 // AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming
1373 // to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It
1374 // represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request
1375 // parameter.
1376 func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue {
1377 return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val)
1378 }
1379
1380 // AWSDynamoDBScanForward returns an attribute KeyValue conforming to the
1381 // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
1382 // the `ScanIndexForward` request parameter.
1383 func AWSDynamoDBScanForward(val bool) attribute.KeyValue {
1384 return AWSDynamoDBScanForwardKey.Bool(val)
1385 }
1386
1387 // AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the
1388 // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
1389 // the `ScannedCount` response parameter.
1390 func AWSDynamoDBScannedCount(val int) attribute.KeyValue {
1391 return AWSDynamoDBScannedCountKey.Int(val)
1392 }
1393
1394 // AWSDynamoDBSegment returns an attribute KeyValue conforming to the
1395 // "aws.dynamodb.segment" semantic conventions. It represents the value of the
1396 // `Segment` request parameter.
1397 func AWSDynamoDBSegment(val int) attribute.KeyValue {
1398 return AWSDynamoDBSegmentKey.Int(val)
1399 }
1400
1401 // AWSDynamoDBSelect returns an attribute KeyValue conforming to the
1402 // "aws.dynamodb.select" semantic conventions. It represents the value of the
1403 // `Select` request parameter.
1404 func AWSDynamoDBSelect(val string) attribute.KeyValue {
1405 return AWSDynamoDBSelectKey.String(val)
1406 }
1407
1408 // AWSDynamoDBTableCount returns an attribute KeyValue conforming to the
1409 // "aws.dynamodb.table_count" semantic conventions. It represents the number of
1410 // items in the `TableNames` response parameter.
1411 func AWSDynamoDBTableCount(val int) attribute.KeyValue {
1412 return AWSDynamoDBTableCountKey.Int(val)
1413 }
1414
1415 // AWSDynamoDBTableNames returns an attribute KeyValue conforming to the
1416 // "aws.dynamodb.table_names" semantic conventions. It represents the keys in the
1417 // `RequestItems` object field.
1418 func AWSDynamoDBTableNames(val ...string) attribute.KeyValue {
1419 return AWSDynamoDBTableNamesKey.StringSlice(val)
1420 }
1421
1422 // AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the
1423 // "aws.dynamodb.total_segments" semantic conventions. It represents the value of
1424 // the `TotalSegments` request parameter.
1425 func AWSDynamoDBTotalSegments(val int) attribute.KeyValue {
1426 return AWSDynamoDBTotalSegmentsKey.Int(val)
1427 }
1428
1429 // AWSECSClusterARN returns an attribute KeyValue conforming to the
1430 // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
1431 // [ECS cluster].
1432 //
1433 // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
1434 func AWSECSClusterARN(val string) attribute.KeyValue {
1435 return AWSECSClusterARNKey.String(val)
1436 }
1437
1438 // AWSECSContainerARN returns an attribute KeyValue conforming to the
1439 // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
1440 // Resource Name (ARN) of an [ECS container instance].
1441 //
1442 // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
1443 func AWSECSContainerARN(val string) attribute.KeyValue {
1444 return AWSECSContainerARNKey.String(val)
1445 }
1446
1447 // AWSECSTaskARN returns an attribute KeyValue conforming to the
1448 // "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running
1449 // [ECS task].
1450 //
1451 // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
1452 func AWSECSTaskARN(val string) attribute.KeyValue {
1453 return AWSECSTaskARNKey.String(val)
1454 }
1455
1456 // AWSECSTaskFamily returns an attribute KeyValue conforming to the
1457 // "aws.ecs.task.family" semantic conventions. It represents the family name of
1458 // the [ECS task definition] used to create the ECS task.
1459 //
1460 // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
1461 func AWSECSTaskFamily(val string) attribute.KeyValue {
1462 return AWSECSTaskFamilyKey.String(val)
1463 }
1464
1465 // AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id"
1466 // semantic conventions. It represents the ID of a running ECS task. The ID MUST
1467 // be extracted from `task.arn`.
1468 func AWSECSTaskID(val string) attribute.KeyValue {
1469 return AWSECSTaskIDKey.String(val)
1470 }
1471
1472 // AWSECSTaskRevision returns an attribute KeyValue conforming to the
1473 // "aws.ecs.task.revision" semantic conventions. It represents the revision for
1474 // the task definition used to create the ECS task.
1475 func AWSECSTaskRevision(val string) attribute.KeyValue {
1476 return AWSECSTaskRevisionKey.String(val)
1477 }
1478
1479 // AWSEKSClusterARN returns an attribute KeyValue conforming to the
1480 // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
1481 // cluster.
1482 func AWSEKSClusterARN(val string) attribute.KeyValue {
1483 return AWSEKSClusterARNKey.String(val)
1484 }
1485
1486 // AWSExtendedRequestID returns an attribute KeyValue conforming to the
1487 // "aws.extended_request_id" semantic conventions. It represents the AWS extended
1488 // request ID as returned in the response header `x-amz-id-2`.
1489 func AWSExtendedRequestID(val string) attribute.KeyValue {
1490 return AWSExtendedRequestIDKey.String(val)
1491 }
1492
1493 // AWSKinesisStreamName returns an attribute KeyValue conforming to the
1494 // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
1495 // AWS Kinesis [stream] the request refers to. Corresponds to the `--stream-name`
1496 // parameter of the Kinesis [describe-stream] operation.
1497 //
1498 // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
1499 // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
1500 func AWSKinesisStreamName(val string) attribute.KeyValue {
1501 return AWSKinesisStreamNameKey.String(val)
1502 }
1503
1504 // AWSLambdaInvokedARN returns an attribute KeyValue conforming to the
1505 // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
1506 // ARN as provided on the `Context` passed to the function (
1507 // `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next`
1508 // applicable).
1509 func AWSLambdaInvokedARN(val string) attribute.KeyValue {
1510 return AWSLambdaInvokedARNKey.String(val)
1511 }
1512
1513 // AWSLambdaResourceMappingID returns an attribute KeyValue conforming to the
1514 // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
1515 // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
1516 // function. It's contents are read by Lambda and used to trigger a function.
1517 // This isn't available in the lambda execution context or the lambda runtime
1518 // environtment. This is going to be populated by the AWS SDK for each language
1519 // when that UUID is present. Some of these operations are
1520 // Create/Delete/Get/List/Update EventSourceMapping.
1521 //
1522 // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
1523 func AWSLambdaResourceMappingID(val string) attribute.KeyValue {
1524 return AWSLambdaResourceMappingIDKey.String(val)
1525 }
1526
1527 // AWSLogGroupARNs returns an attribute KeyValue conforming to the
1528 // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
1529 // Name(s) (ARN) of the AWS log group(s).
1530 func AWSLogGroupARNs(val ...string) attribute.KeyValue {
1531 return AWSLogGroupARNsKey.StringSlice(val)
1532 }
1533
1534 // AWSLogGroupNames returns an attribute KeyValue conforming to the
1535 // "aws.log.group.names" semantic conventions. It represents the name(s) of the
1536 // AWS log group(s) an application is writing to.
1537 func AWSLogGroupNames(val ...string) attribute.KeyValue {
1538 return AWSLogGroupNamesKey.StringSlice(val)
1539 }
1540
1541 // AWSLogStreamARNs returns an attribute KeyValue conforming to the
1542 // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
1543 // AWS log stream(s).
1544 func AWSLogStreamARNs(val ...string) attribute.KeyValue {
1545 return AWSLogStreamARNsKey.StringSlice(val)
1546 }
1547
1548 // AWSLogStreamNames returns an attribute KeyValue conforming to the
1549 // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
1550 // AWS log stream(s) an application is writing to.
1551 func AWSLogStreamNames(val ...string) attribute.KeyValue {
1552 return AWSLogStreamNamesKey.StringSlice(val)
1553 }
1554
1555 // AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id"
1556 // semantic conventions. It represents the AWS request ID as returned in the
1557 // response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`
1558 // .
1559 func AWSRequestID(val string) attribute.KeyValue {
1560 return AWSRequestIDKey.String(val)
1561 }
1562
1563 // AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket"
1564 // semantic conventions. It represents the S3 bucket name the request refers to.
1565 // Corresponds to the `--bucket` parameter of the [S3 API] operations.
1566 //
1567 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1568 func AWSS3Bucket(val string) attribute.KeyValue {
1569 return AWSS3BucketKey.String(val)
1570 }
1571
1572 // AWSS3CopySource returns an attribute KeyValue conforming to the
1573 // "aws.s3.copy_source" semantic conventions. It represents the source object (in
1574 // the form `bucket`/`key`) for the copy operation.
1575 func AWSS3CopySource(val string) attribute.KeyValue {
1576 return AWSS3CopySourceKey.String(val)
1577 }
1578
1579 // AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete"
1580 // semantic conventions. It represents the delete request container that
1581 // specifies the objects to be deleted.
1582 func AWSS3Delete(val string) attribute.KeyValue {
1583 return AWSS3DeleteKey.String(val)
1584 }
1585
1586 // AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic
1587 // conventions. It represents the S3 object key the request refers to.
1588 // Corresponds to the `--key` parameter of the [S3 API] operations.
1589 //
1590 // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
1591 func AWSS3Key(val string) attribute.KeyValue {
1592 return AWSS3KeyKey.String(val)
1593 }
1594
1595 // AWSS3PartNumber returns an attribute KeyValue conforming to the
1596 // "aws.s3.part_number" semantic conventions. It represents the part number of
1597 // the part being uploaded in a multipart-upload operation. This is a positive
1598 // integer between 1 and 10,000.
1599 func AWSS3PartNumber(val int) attribute.KeyValue {
1600 return AWSS3PartNumberKey.Int(val)
1601 }
1602
1603 // AWSS3UploadID returns an attribute KeyValue conforming to the
1604 // "aws.s3.upload_id" semantic conventions. It represents the upload ID that
1605 // identifies the multipart upload.
1606 func AWSS3UploadID(val string) attribute.KeyValue {
1607 return AWSS3UploadIDKey.String(val)
1608 }
1609
1610 // AWSSecretsmanagerSecretARN returns an attribute KeyValue conforming to the
1611 // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN of
1612 // the Secret stored in the Secrets Mangger.
1613 func AWSSecretsmanagerSecretARN(val string) attribute.KeyValue {
1614 return AWSSecretsmanagerSecretARNKey.String(val)
1615 }
1616
1617 // AWSSNSTopicARN returns an attribute KeyValue conforming to the
1618 // "aws.sns.topic.arn" semantic conventions. It represents the ARN of the AWS SNS
1619 // Topic. An Amazon SNS [topic] is a logical access point that acts as a
1620 // communication channel.
1621 //
1622 // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
1623 func AWSSNSTopicARN(val string) attribute.KeyValue {
1624 return AWSSNSTopicARNKey.String(val)
1625 }
1626
1627 // AWSSQSQueueURL returns an attribute KeyValue conforming to the
1628 // "aws.sqs.queue.url" semantic conventions. It represents the URL of the AWS SQS
1629 // Queue. It's a unique identifier for a queue in Amazon Simple Queue Service
1630 // (SQS) and is used to access the queue and perform actions on it.
1631 func AWSSQSQueueURL(val string) attribute.KeyValue {
1632 return AWSSQSQueueURLKey.String(val)
1633 }
1634
1635 // AWSStepFunctionsActivityARN returns an attribute KeyValue conforming to the
1636 // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
1637 // of the AWS Step Functions Activity.
1638 func AWSStepFunctionsActivityARN(val string) attribute.KeyValue {
1639 return AWSStepFunctionsActivityARNKey.String(val)
1640 }
1641
1642 // AWSStepFunctionsStateMachineARN returns an attribute KeyValue conforming to
1643 // the "aws.step_functions.state_machine.arn" semantic conventions. It represents
1644 // the ARN of the AWS Step Functions State Machine.
1645 func AWSStepFunctionsStateMachineARN(val string) attribute.KeyValue {
1646 return AWSStepFunctionsStateMachineARNKey.String(val)
1647 }
1648
1649 // Enum values for aws.ecs.launchtype
1650 var (
1651 // Amazon EC2
1652 // Stability: development
1653 AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2")
1654 // Amazon Fargate
1655 // Stability: development
1656 AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate")
1657 )
1658
1659 // Namespace: azure
1660 const (
1661 // AzureClientIDKey is the attribute Key conforming to the "azure.client.id"
1662 // semantic conventions. It represents the unique identifier of the client
1663 // instance.
1664 //
1665 // Type: string
1666 // RequirementLevel: Recommended
1667 // Stability: Development
1668 //
1669 // Examples: "3ba4827d-4422-483f-b59f-85b74211c11d", "storage-client-1"
1670 AzureClientIDKey = attribute.Key("azure.client.id")
1671
1672 // AzureCosmosDBConnectionModeKey is the attribute Key conforming to the
1673 // "azure.cosmosdb.connection.mode" semantic conventions. It represents the
1674 // cosmos client connection mode.
1675 //
1676 // Type: Enum
1677 // RequirementLevel: Recommended
1678 // Stability: Development
1679 //
1680 // Examples:
1681 AzureCosmosDBConnectionModeKey = attribute.Key("azure.cosmosdb.connection.mode")
1682
1683 // AzureCosmosDBConsistencyLevelKey is the attribute Key conforming to the
1684 // "azure.cosmosdb.consistency.level" semantic conventions. It represents the
1685 // account or request [consistency level].
1686 //
1687 // Type: Enum
1688 // RequirementLevel: Recommended
1689 // Stability: Development
1690 //
1691 // Examples: "Eventual", "ConsistentPrefix", "BoundedStaleness", "Strong",
1692 // "Session"
1693 //
1694 // [consistency level]: https://learn.microsoft.com/azure/cosmos-db/consistency-levels
1695 AzureCosmosDBConsistencyLevelKey = attribute.Key("azure.cosmosdb.consistency.level")
1696
1697 // AzureCosmosDBOperationContactedRegionsKey is the attribute Key conforming to
1698 // the "azure.cosmosdb.operation.contacted_regions" semantic conventions. It
1699 // represents the list of regions contacted during operation in the order that
1700 // they were contacted. If there is more than one region listed, it indicates
1701 // that the operation was performed on multiple regions i.e. cross-regional
1702 // call.
1703 //
1704 // Type: string[]
1705 // RequirementLevel: Recommended
1706 // Stability: Development
1707 //
1708 // Examples: "North Central US", "Australia East", "Australia Southeast"
1709 // Note: Region name matches the format of `displayName` in [Azure Location API]
1710 //
1711 // [Azure Location API]: https://learn.microsoft.com/rest/api/resources/subscriptions/list-locations
1712 AzureCosmosDBOperationContactedRegionsKey = attribute.Key("azure.cosmosdb.operation.contacted_regions")
1713
1714 // AzureCosmosDBOperationRequestChargeKey is the attribute Key conforming to the
1715 // "azure.cosmosdb.operation.request_charge" semantic conventions. It represents
1716 // the number of request units consumed by the operation.
1717 //
1718 // Type: double
1719 // RequirementLevel: Recommended
1720 // Stability: Development
1721 //
1722 // Examples: 46.18, 1.0
1723 AzureCosmosDBOperationRequestChargeKey = attribute.Key("azure.cosmosdb.operation.request_charge")
1724
1725 // AzureCosmosDBRequestBodySizeKey is the attribute Key conforming to the
1726 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1727 // request payload size in bytes.
1728 //
1729 // Type: int
1730 // RequirementLevel: Recommended
1731 // Stability: Development
1732 //
1733 // Examples:
1734 AzureCosmosDBRequestBodySizeKey = attribute.Key("azure.cosmosdb.request.body.size")
1735
1736 // AzureCosmosDBResponseSubStatusCodeKey is the attribute Key conforming to the
1737 // "azure.cosmosdb.response.sub_status_code" semantic conventions. It represents
1738 // the cosmos DB sub status code.
1739 //
1740 // Type: int
1741 // RequirementLevel: Recommended
1742 // Stability: Development
1743 //
1744 // Examples: 1000, 1002
1745 AzureCosmosDBResponseSubStatusCodeKey = attribute.Key("azure.cosmosdb.response.sub_status_code")
1746
1747 // AzureResourceProviderNamespaceKey is the attribute Key conforming to the
1748 // "azure.resource_provider.namespace" semantic conventions. It represents the
1749 // [Azure Resource Provider Namespace] as recognized by the client.
1750 //
1751 // Type: string
1752 // RequirementLevel: Recommended
1753 // Stability: Development
1754 //
1755 // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus"
1756 //
1757 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1758 AzureResourceProviderNamespaceKey = attribute.Key("azure.resource_provider.namespace")
1759
1760 // AzureServiceRequestIDKey is the attribute Key conforming to the
1761 // "azure.service.request.id" semantic conventions. It represents the unique
1762 // identifier of the service request. It's generated by the Azure service and
1763 // returned with the response.
1764 //
1765 // Type: string
1766 // RequirementLevel: Recommended
1767 // Stability: Development
1768 //
1769 // Examples: "00000000-0000-0000-0000-000000000000"
1770 AzureServiceRequestIDKey = attribute.Key("azure.service.request.id")
1771 )
1772
1773 // AzureClientID returns an attribute KeyValue conforming to the
1774 // "azure.client.id" semantic conventions. It represents the unique identifier of
1775 // the client instance.
1776 func AzureClientID(val string) attribute.KeyValue {
1777 return AzureClientIDKey.String(val)
1778 }
1779
1780 // AzureCosmosDBOperationContactedRegions returns an attribute KeyValue
1781 // conforming to the "azure.cosmosdb.operation.contacted_regions" semantic
1782 // conventions. It represents the list of regions contacted during operation in
1783 // the order that they were contacted. If there is more than one region listed,
1784 // it indicates that the operation was performed on multiple regions i.e.
1785 // cross-regional call.
1786 func AzureCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue {
1787 return AzureCosmosDBOperationContactedRegionsKey.StringSlice(val)
1788 }
1789
1790 // AzureCosmosDBOperationRequestCharge returns an attribute KeyValue conforming
1791 // to the "azure.cosmosdb.operation.request_charge" semantic conventions. It
1792 // represents the number of request units consumed by the operation.
1793 func AzureCosmosDBOperationRequestCharge(val float64) attribute.KeyValue {
1794 return AzureCosmosDBOperationRequestChargeKey.Float64(val)
1795 }
1796
1797 // AzureCosmosDBRequestBodySize returns an attribute KeyValue conforming to the
1798 // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
1799 // request payload size in bytes.
1800 func AzureCosmosDBRequestBodySize(val int) attribute.KeyValue {
1801 return AzureCosmosDBRequestBodySizeKey.Int(val)
1802 }
1803
1804 // AzureCosmosDBResponseSubStatusCode returns an attribute KeyValue conforming to
1805 // the "azure.cosmosdb.response.sub_status_code" semantic conventions. It
1806 // represents the cosmos DB sub status code.
1807 func AzureCosmosDBResponseSubStatusCode(val int) attribute.KeyValue {
1808 return AzureCosmosDBResponseSubStatusCodeKey.Int(val)
1809 }
1810
1811 // AzureResourceProviderNamespace returns an attribute KeyValue conforming to the
1812 // "azure.resource_provider.namespace" semantic conventions. It represents the
1813 // [Azure Resource Provider Namespace] as recognized by the client.
1814 //
1815 // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
1816 func AzureResourceProviderNamespace(val string) attribute.KeyValue {
1817 return AzureResourceProviderNamespaceKey.String(val)
1818 }
1819
1820 // AzureServiceRequestID returns an attribute KeyValue conforming to the
1821 // "azure.service.request.id" semantic conventions. It represents the unique
1822 // identifier of the service request. It's generated by the Azure service and
1823 // returned with the response.
1824 func AzureServiceRequestID(val string) attribute.KeyValue {
1825 return AzureServiceRequestIDKey.String(val)
1826 }
1827
1828 // Enum values for azure.cosmosdb.connection.mode
1829 var (
1830 // Gateway (HTTP) connection.
1831 // Stability: development
1832 AzureCosmosDBConnectionModeGateway = AzureCosmosDBConnectionModeKey.String("gateway")
1833 // Direct connection.
1834 // Stability: development
1835 AzureCosmosDBConnectionModeDirect = AzureCosmosDBConnectionModeKey.String("direct")
1836 )
1837
1838 // Enum values for azure.cosmosdb.consistency.level
1839 var (
1840 // Strong
1841 // Stability: development
1842 AzureCosmosDBConsistencyLevelStrong = AzureCosmosDBConsistencyLevelKey.String("Strong")
1843 // Bounded Staleness
1844 // Stability: development
1845 AzureCosmosDBConsistencyLevelBoundedStaleness = AzureCosmosDBConsistencyLevelKey.String("BoundedStaleness")
1846 // Session
1847 // Stability: development
1848 AzureCosmosDBConsistencyLevelSession = AzureCosmosDBConsistencyLevelKey.String("Session")
1849 // Eventual
1850 // Stability: development
1851 AzureCosmosDBConsistencyLevelEventual = AzureCosmosDBConsistencyLevelKey.String("Eventual")
1852 // Consistent Prefix
1853 // Stability: development
1854 AzureCosmosDBConsistencyLevelConsistentPrefix = AzureCosmosDBConsistencyLevelKey.String("ConsistentPrefix")
1855 )
1856
1857 // Namespace: browser
1858 const (
1859 // BrowserBrandsKey is the attribute Key conforming to the "browser.brands"
1860 // semantic conventions. It represents the array of brand name and version
1861 // separated by a space.
1862 //
1863 // Type: string[]
1864 // RequirementLevel: Recommended
1865 // Stability: Development
1866 //
1867 // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99"
1868 // Note: This value is intended to be taken from the [UA client hints API] (
1869 // `navigator.userAgentData.brands`).
1870 //
1871 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1872 BrowserBrandsKey = attribute.Key("browser.brands")
1873
1874 // BrowserLanguageKey is the attribute Key conforming to the "browser.language"
1875 // semantic conventions. It represents the preferred language of the user using
1876 // the browser.
1877 //
1878 // Type: string
1879 // RequirementLevel: Recommended
1880 // Stability: Development
1881 //
1882 // Examples: "en", "en-US", "fr", "fr-FR"
1883 // Note: This value is intended to be taken from the Navigator API
1884 // `navigator.language`.
1885 BrowserLanguageKey = attribute.Key("browser.language")
1886
1887 // BrowserMobileKey is the attribute Key conforming to the "browser.mobile"
1888 // semantic conventions. It represents a boolean that is true if the browser is
1889 // running on a mobile device.
1890 //
1891 // Type: boolean
1892 // RequirementLevel: Recommended
1893 // Stability: Development
1894 //
1895 // Examples:
1896 // Note: This value is intended to be taken from the [UA client hints API] (
1897 // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be
1898 // left unset.
1899 //
1900 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1901 BrowserMobileKey = attribute.Key("browser.mobile")
1902
1903 // BrowserPlatformKey is the attribute Key conforming to the "browser.platform"
1904 // semantic conventions. It represents the platform on which the browser is
1905 // running.
1906 //
1907 // Type: string
1908 // RequirementLevel: Recommended
1909 // Stability: Development
1910 //
1911 // Examples: "Windows", "macOS", "Android"
1912 // Note: This value is intended to be taken from the [UA client hints API] (
1913 // `navigator.userAgentData.platform`). If unavailable, the legacy
1914 // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD
1915 // be left unset in order for the values to be consistent.
1916 // The list of possible values is defined in the
1917 // [W3C User-Agent Client Hints specification]. Note that some (but not all) of
1918 // these values can overlap with values in the
1919 // [`os.type` and `os.name` attributes]. However, for consistency, the values in
1920 // the `browser.platform` attribute should capture the exact value that the user
1921 // agent provides.
1922 //
1923 // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
1924 // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform
1925 // [`os.type` and `os.name` attributes]: ./os.md
1926 BrowserPlatformKey = attribute.Key("browser.platform")
1927 )
1928
1929 // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands"
1930 // semantic conventions. It represents the array of brand name and version
1931 // separated by a space.
1932 func BrowserBrands(val ...string) attribute.KeyValue {
1933 return BrowserBrandsKey.StringSlice(val)
1934 }
1935
1936 // BrowserLanguage returns an attribute KeyValue conforming to the
1937 // "browser.language" semantic conventions. It represents the preferred language
1938 // of the user using the browser.
1939 func BrowserLanguage(val string) attribute.KeyValue {
1940 return BrowserLanguageKey.String(val)
1941 }
1942
1943 // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile"
1944 // semantic conventions. It represents a boolean that is true if the browser is
1945 // running on a mobile device.
1946 func BrowserMobile(val bool) attribute.KeyValue {
1947 return BrowserMobileKey.Bool(val)
1948 }
1949
1950 // BrowserPlatform returns an attribute KeyValue conforming to the
1951 // "browser.platform" semantic conventions. It represents the platform on which
1952 // the browser is running.
1953 func BrowserPlatform(val string) attribute.KeyValue {
1954 return BrowserPlatformKey.String(val)
1955 }
1956
1957 // Namespace: cassandra
1958 const (
1959 // CassandraConsistencyLevelKey is the attribute Key conforming to the
1960 // "cassandra.consistency.level" semantic conventions. It represents the
1961 // consistency level of the query. Based on consistency values from [CQL].
1962 //
1963 // Type: Enum
1964 // RequirementLevel: Recommended
1965 // Stability: Development
1966 //
1967 // Examples:
1968 //
1969 // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
1970 CassandraConsistencyLevelKey = attribute.Key("cassandra.consistency.level")
1971
1972 // CassandraCoordinatorDCKey is the attribute Key conforming to the
1973 // "cassandra.coordinator.dc" semantic conventions. It represents the data
1974 // center of the coordinating node for a query.
1975 //
1976 // Type: string
1977 // RequirementLevel: Recommended
1978 // Stability: Development
1979 //
1980 // Examples: us-west-2
1981 CassandraCoordinatorDCKey = attribute.Key("cassandra.coordinator.dc")
1982
1983 // CassandraCoordinatorIDKey is the attribute Key conforming to the
1984 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
1985 // coordinating node for a query.
1986 //
1987 // Type: string
1988 // RequirementLevel: Recommended
1989 // Stability: Development
1990 //
1991 // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af
1992 CassandraCoordinatorIDKey = attribute.Key("cassandra.coordinator.id")
1993
1994 // CassandraPageSizeKey is the attribute Key conforming to the
1995 // "cassandra.page.size" semantic conventions. It represents the fetch size used
1996 // for paging, i.e. how many rows will be returned at once.
1997 //
1998 // Type: int
1999 // RequirementLevel: Recommended
2000 // Stability: Development
2001 //
2002 // Examples: 5000
2003 CassandraPageSizeKey = attribute.Key("cassandra.page.size")
2004
2005 // CassandraQueryIdempotentKey is the attribute Key conforming to the
2006 // "cassandra.query.idempotent" semantic conventions. It represents the whether
2007 // or not the query is idempotent.
2008 //
2009 // Type: boolean
2010 // RequirementLevel: Recommended
2011 // Stability: Development
2012 //
2013 // Examples:
2014 CassandraQueryIdempotentKey = attribute.Key("cassandra.query.idempotent")
2015
2016 // CassandraSpeculativeExecutionCountKey is the attribute Key conforming to the
2017 // "cassandra.speculative_execution.count" semantic conventions. It represents
2018 // the number of times a query was speculatively executed. Not set or `0` if the
2019 // query was not executed speculatively.
2020 //
2021 // Type: int
2022 // RequirementLevel: Recommended
2023 // Stability: Development
2024 //
2025 // Examples: 0, 2
2026 CassandraSpeculativeExecutionCountKey = attribute.Key("cassandra.speculative_execution.count")
2027 )
2028
2029 // CassandraCoordinatorDC returns an attribute KeyValue conforming to the
2030 // "cassandra.coordinator.dc" semantic conventions. It represents the data center
2031 // of the coordinating node for a query.
2032 func CassandraCoordinatorDC(val string) attribute.KeyValue {
2033 return CassandraCoordinatorDCKey.String(val)
2034 }
2035
2036 // CassandraCoordinatorID returns an attribute KeyValue conforming to the
2037 // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
2038 // coordinating node for a query.
2039 func CassandraCoordinatorID(val string) attribute.KeyValue {
2040 return CassandraCoordinatorIDKey.String(val)
2041 }
2042
2043 // CassandraPageSize returns an attribute KeyValue conforming to the
2044 // "cassandra.page.size" semantic conventions. It represents the fetch size used
2045 // for paging, i.e. how many rows will be returned at once.
2046 func CassandraPageSize(val int) attribute.KeyValue {
2047 return CassandraPageSizeKey.Int(val)
2048 }
2049
2050 // CassandraQueryIdempotent returns an attribute KeyValue conforming to the
2051 // "cassandra.query.idempotent" semantic conventions. It represents the whether
2052 // or not the query is idempotent.
2053 func CassandraQueryIdempotent(val bool) attribute.KeyValue {
2054 return CassandraQueryIdempotentKey.Bool(val)
2055 }
2056
2057 // CassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to
2058 // the "cassandra.speculative_execution.count" semantic conventions. It
2059 // represents the number of times a query was speculatively executed. Not set or
2060 // `0` if the query was not executed speculatively.
2061 func CassandraSpeculativeExecutionCount(val int) attribute.KeyValue {
2062 return CassandraSpeculativeExecutionCountKey.Int(val)
2063 }
2064
2065 // Enum values for cassandra.consistency.level
2066 var (
2067 // All
2068 // Stability: development
2069 CassandraConsistencyLevelAll = CassandraConsistencyLevelKey.String("all")
2070 // Each Quorum
2071 // Stability: development
2072 CassandraConsistencyLevelEachQuorum = CassandraConsistencyLevelKey.String("each_quorum")
2073 // Quorum
2074 // Stability: development
2075 CassandraConsistencyLevelQuorum = CassandraConsistencyLevelKey.String("quorum")
2076 // Local Quorum
2077 // Stability: development
2078 CassandraConsistencyLevelLocalQuorum = CassandraConsistencyLevelKey.String("local_quorum")
2079 // One
2080 // Stability: development
2081 CassandraConsistencyLevelOne = CassandraConsistencyLevelKey.String("one")
2082 // Two
2083 // Stability: development
2084 CassandraConsistencyLevelTwo = CassandraConsistencyLevelKey.String("two")
2085 // Three
2086 // Stability: development
2087 CassandraConsistencyLevelThree = CassandraConsistencyLevelKey.String("three")
2088 // Local One
2089 // Stability: development
2090 CassandraConsistencyLevelLocalOne = CassandraConsistencyLevelKey.String("local_one")
2091 // Any
2092 // Stability: development
2093 CassandraConsistencyLevelAny = CassandraConsistencyLevelKey.String("any")
2094 // Serial
2095 // Stability: development
2096 CassandraConsistencyLevelSerial = CassandraConsistencyLevelKey.String("serial")
2097 // Local Serial
2098 // Stability: development
2099 CassandraConsistencyLevelLocalSerial = CassandraConsistencyLevelKey.String("local_serial")
2100 )
2101
2102 // Namespace: cicd
2103 const (
2104 // CICDPipelineActionNameKey is the attribute Key conforming to the
2105 // "cicd.pipeline.action.name" semantic conventions. It represents the kind of
2106 // action a pipeline run is performing.
2107 //
2108 // Type: Enum
2109 // RequirementLevel: Recommended
2110 // Stability: Development
2111 //
2112 // Examples: "BUILD", "RUN", "SYNC"
2113 CICDPipelineActionNameKey = attribute.Key("cicd.pipeline.action.name")
2114
2115 // CICDPipelineNameKey is the attribute Key conforming to the
2116 // "cicd.pipeline.name" semantic conventions. It represents the human readable
2117 // name of the pipeline within a CI/CD system.
2118 //
2119 // Type: string
2120 // RequirementLevel: Recommended
2121 // Stability: Development
2122 //
2123 // Examples: "Build and Test", "Lint", "Deploy Go Project",
2124 // "deploy_to_environment"
2125 CICDPipelineNameKey = attribute.Key("cicd.pipeline.name")
2126
2127 // CICDPipelineResultKey is the attribute Key conforming to the
2128 // "cicd.pipeline.result" semantic conventions. It represents the result of a
2129 // pipeline run.
2130 //
2131 // Type: Enum
2132 // RequirementLevel: Recommended
2133 // Stability: Development
2134 //
2135 // Examples: "success", "failure", "timeout", "skipped"
2136 CICDPipelineResultKey = attribute.Key("cicd.pipeline.result")
2137
2138 // CICDPipelineRunIDKey is the attribute Key conforming to the
2139 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
2140 // identifier of a pipeline run within a CI/CD system.
2141 //
2142 // Type: string
2143 // RequirementLevel: Recommended
2144 // Stability: Development
2145 //
2146 // Examples: "120912"
2147 CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id")
2148
2149 // CICDPipelineRunStateKey is the attribute Key conforming to the
2150 // "cicd.pipeline.run.state" semantic conventions. It represents the pipeline
2151 // run goes through these states during its lifecycle.
2152 //
2153 // Type: Enum
2154 // RequirementLevel: Recommended
2155 // Stability: Development
2156 //
2157 // Examples: "pending", "executing", "finalizing"
2158 CICDPipelineRunStateKey = attribute.Key("cicd.pipeline.run.state")
2159
2160 // CICDPipelineRunURLFullKey is the attribute Key conforming to the
2161 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
2162 // the pipeline run, providing the complete address in order to locate and
2163 // identify the pipeline run.
2164 //
2165 // Type: string
2166 // RequirementLevel: Recommended
2167 // Stability: Development
2168 //
2169 // Examples:
2170 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075"
2171 //
2172 // [URL]: https://wikipedia.org/wiki/URL
2173 CICDPipelineRunURLFullKey = attribute.Key("cicd.pipeline.run.url.full")
2174
2175 // CICDPipelineTaskNameKey is the attribute Key conforming to the
2176 // "cicd.pipeline.task.name" semantic conventions. It represents the human
2177 // readable name of a task within a pipeline. Task here most closely aligns with
2178 // a [computing process] in a pipeline. Other terms for tasks include commands,
2179 // steps, and procedures.
2180 //
2181 // Type: string
2182 // RequirementLevel: Recommended
2183 // Stability: Development
2184 //
2185 // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary"
2186 //
2187 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
2188 CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name")
2189
2190 // CICDPipelineTaskRunIDKey is the attribute Key conforming to the
2191 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
2192 // identifier of a task run within a pipeline.
2193 //
2194 // Type: string
2195 // RequirementLevel: Recommended
2196 // Stability: Development
2197 //
2198 // Examples: "12097"
2199 CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id")
2200
2201 // CICDPipelineTaskRunResultKey is the attribute Key conforming to the
2202 // "cicd.pipeline.task.run.result" semantic conventions. It represents the
2203 // result of a task run.
2204 //
2205 // Type: Enum
2206 // RequirementLevel: Recommended
2207 // Stability: Development
2208 //
2209 // Examples: "success", "failure", "timeout", "skipped"
2210 CICDPipelineTaskRunResultKey = attribute.Key("cicd.pipeline.task.run.result")
2211
2212 // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the
2213 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
2214 // [URL] of the pipeline task run, providing the complete address in order to
2215 // locate and identify the pipeline task run.
2216 //
2217 // Type: string
2218 // RequirementLevel: Recommended
2219 // Stability: Development
2220 //
2221 // Examples:
2222 // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"
2223 //
2224 // [URL]: https://wikipedia.org/wiki/URL
2225 CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full")
2226
2227 // CICDPipelineTaskTypeKey is the attribute Key conforming to the
2228 // "cicd.pipeline.task.type" semantic conventions. It represents the type of the
2229 // task within a pipeline.
2230 //
2231 // Type: Enum
2232 // RequirementLevel: Recommended
2233 // Stability: Development
2234 //
2235 // Examples: "build", "test", "deploy"
2236 CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type")
2237
2238 // CICDSystemComponentKey is the attribute Key conforming to the
2239 // "cicd.system.component" semantic conventions. It represents the name of a
2240 // component of the CICD system.
2241 //
2242 // Type: string
2243 // RequirementLevel: Recommended
2244 // Stability: Development
2245 //
2246 // Examples: "controller", "scheduler", "agent"
2247 CICDSystemComponentKey = attribute.Key("cicd.system.component")
2248
2249 // CICDWorkerIDKey is the attribute Key conforming to the "cicd.worker.id"
2250 // semantic conventions. It represents the unique identifier of a worker within
2251 // a CICD system.
2252 //
2253 // Type: string
2254 // RequirementLevel: Recommended
2255 // Stability: Development
2256 //
2257 // Examples: "abc123", "10.0.1.2", "controller"
2258 CICDWorkerIDKey = attribute.Key("cicd.worker.id")
2259
2260 // CICDWorkerNameKey is the attribute Key conforming to the "cicd.worker.name"
2261 // semantic conventions. It represents the name of a worker within a CICD
2262 // system.
2263 //
2264 // Type: string
2265 // RequirementLevel: Recommended
2266 // Stability: Development
2267 //
2268 // Examples: "agent-abc", "controller", "Ubuntu LTS"
2269 CICDWorkerNameKey = attribute.Key("cicd.worker.name")
2270
2271 // CICDWorkerStateKey is the attribute Key conforming to the "cicd.worker.state"
2272 // semantic conventions. It represents the state of a CICD worker / agent.
2273 //
2274 // Type: Enum
2275 // RequirementLevel: Recommended
2276 // Stability: Development
2277 //
2278 // Examples: "idle", "busy", "down"
2279 CICDWorkerStateKey = attribute.Key("cicd.worker.state")
2280
2281 // CICDWorkerURLFullKey is the attribute Key conforming to the
2282 // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
2283 // worker, providing the complete address in order to locate and identify the
2284 // worker.
2285 //
2286 // Type: string
2287 // RequirementLevel: Recommended
2288 // Stability: Development
2289 //
2290 // Examples: "https://cicd.example.org/worker/abc123"
2291 //
2292 // [URL]: https://wikipedia.org/wiki/URL
2293 CICDWorkerURLFullKey = attribute.Key("cicd.worker.url.full")
2294 )
2295
2296 // CICDPipelineName returns an attribute KeyValue conforming to the
2297 // "cicd.pipeline.name" semantic conventions. It represents the human readable
2298 // name of the pipeline within a CI/CD system.
2299 func CICDPipelineName(val string) attribute.KeyValue {
2300 return CICDPipelineNameKey.String(val)
2301 }
2302
2303 // CICDPipelineRunID returns an attribute KeyValue conforming to the
2304 // "cicd.pipeline.run.id" semantic conventions. It represents the unique
2305 // identifier of a pipeline run within a CI/CD system.
2306 func CICDPipelineRunID(val string) attribute.KeyValue {
2307 return CICDPipelineRunIDKey.String(val)
2308 }
2309
2310 // CICDPipelineRunURLFull returns an attribute KeyValue conforming to the
2311 // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
2312 // the pipeline run, providing the complete address in order to locate and
2313 // identify the pipeline run.
2314 //
2315 // [URL]: https://wikipedia.org/wiki/URL
2316 func CICDPipelineRunURLFull(val string) attribute.KeyValue {
2317 return CICDPipelineRunURLFullKey.String(val)
2318 }
2319
2320 // CICDPipelineTaskName returns an attribute KeyValue conforming to the
2321 // "cicd.pipeline.task.name" semantic conventions. It represents the human
2322 // readable name of a task within a pipeline. Task here most closely aligns with
2323 // a [computing process] in a pipeline. Other terms for tasks include commands,
2324 // steps, and procedures.
2325 //
2326 // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
2327 func CICDPipelineTaskName(val string) attribute.KeyValue {
2328 return CICDPipelineTaskNameKey.String(val)
2329 }
2330
2331 // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the
2332 // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
2333 // identifier of a task run within a pipeline.
2334 func CICDPipelineTaskRunID(val string) attribute.KeyValue {
2335 return CICDPipelineTaskRunIDKey.String(val)
2336 }
2337
2338 // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the
2339 // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
2340 // [URL] of the pipeline task run, providing the complete address in order to
2341 // locate and identify the pipeline task run.
2342 //
2343 // [URL]: https://wikipedia.org/wiki/URL
2344 func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue {
2345 return CICDPipelineTaskRunURLFullKey.String(val)
2346 }
2347
2348 // CICDSystemComponent returns an attribute KeyValue conforming to the
2349 // "cicd.system.component" semantic conventions. It represents the name of a
2350 // component of the CICD system.
2351 func CICDSystemComponent(val string) attribute.KeyValue {
2352 return CICDSystemComponentKey.String(val)
2353 }
2354
2355 // CICDWorkerID returns an attribute KeyValue conforming to the "cicd.worker.id"
2356 // semantic conventions. It represents the unique identifier of a worker within a
2357 // CICD system.
2358 func CICDWorkerID(val string) attribute.KeyValue {
2359 return CICDWorkerIDKey.String(val)
2360 }
2361
2362 // CICDWorkerName returns an attribute KeyValue conforming to the
2363 // "cicd.worker.name" semantic conventions. It represents the name of a worker
2364 // within a CICD system.
2365 func CICDWorkerName(val string) attribute.KeyValue {
2366 return CICDWorkerNameKey.String(val)
2367 }
2368
2369 // CICDWorkerURLFull returns an attribute KeyValue conforming to the
2370 // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
2371 // worker, providing the complete address in order to locate and identify the
2372 // worker.
2373 //
2374 // [URL]: https://wikipedia.org/wiki/URL
2375 func CICDWorkerURLFull(val string) attribute.KeyValue {
2376 return CICDWorkerURLFullKey.String(val)
2377 }
2378
2379 // Enum values for cicd.pipeline.action.name
2380 var (
2381 // The pipeline run is executing a build.
2382 // Stability: development
2383 CICDPipelineActionNameBuild = CICDPipelineActionNameKey.String("BUILD")
2384 // The pipeline run is executing.
2385 // Stability: development
2386 CICDPipelineActionNameRun = CICDPipelineActionNameKey.String("RUN")
2387 // The pipeline run is executing a sync.
2388 // Stability: development
2389 CICDPipelineActionNameSync = CICDPipelineActionNameKey.String("SYNC")
2390 )
2391
2392 // Enum values for cicd.pipeline.result
2393 var (
2394 // The pipeline run finished successfully.
2395 // Stability: development
2396 CICDPipelineResultSuccess = CICDPipelineResultKey.String("success")
2397 // The pipeline run did not finish successfully, eg. due to a compile error or a
2398 // failing test. Such failures are usually detected by non-zero exit codes of
2399 // the tools executed in the pipeline run.
2400 // Stability: development
2401 CICDPipelineResultFailure = CICDPipelineResultKey.String("failure")
2402 // The pipeline run failed due to an error in the CICD system, eg. due to the
2403 // worker being killed.
2404 // Stability: development
2405 CICDPipelineResultError = CICDPipelineResultKey.String("error")
2406 // A timeout caused the pipeline run to be interrupted.
2407 // Stability: development
2408 CICDPipelineResultTimeout = CICDPipelineResultKey.String("timeout")
2409 // The pipeline run was cancelled, eg. by a user manually cancelling the
2410 // pipeline run.
2411 // Stability: development
2412 CICDPipelineResultCancellation = CICDPipelineResultKey.String("cancellation")
2413 // The pipeline run was skipped, eg. due to a precondition not being met.
2414 // Stability: development
2415 CICDPipelineResultSkip = CICDPipelineResultKey.String("skip")
2416 )
2417
2418 // Enum values for cicd.pipeline.run.state
2419 var (
2420 // The run pending state spans from the event triggering the pipeline run until
2421 // the execution of the run starts (eg. time spent in a queue, provisioning
2422 // agents, creating run resources).
2423 //
2424 // Stability: development
2425 CICDPipelineRunStatePending = CICDPipelineRunStateKey.String("pending")
2426 // The executing state spans the execution of any run tasks (eg. build, test).
2427 // Stability: development
2428 CICDPipelineRunStateExecuting = CICDPipelineRunStateKey.String("executing")
2429 // The finalizing state spans from when the run has finished executing (eg.
2430 // cleanup of run resources).
2431 // Stability: development
2432 CICDPipelineRunStateFinalizing = CICDPipelineRunStateKey.String("finalizing")
2433 )
2434
2435 // Enum values for cicd.pipeline.task.run.result
2436 var (
2437 // The task run finished successfully.
2438 // Stability: development
2439 CICDPipelineTaskRunResultSuccess = CICDPipelineTaskRunResultKey.String("success")
2440 // The task run did not finish successfully, eg. due to a compile error or a
2441 // failing test. Such failures are usually detected by non-zero exit codes of
2442 // the tools executed in the task run.
2443 // Stability: development
2444 CICDPipelineTaskRunResultFailure = CICDPipelineTaskRunResultKey.String("failure")
2445 // The task run failed due to an error in the CICD system, eg. due to the worker
2446 // being killed.
2447 // Stability: development
2448 CICDPipelineTaskRunResultError = CICDPipelineTaskRunResultKey.String("error")
2449 // A timeout caused the task run to be interrupted.
2450 // Stability: development
2451 CICDPipelineTaskRunResultTimeout = CICDPipelineTaskRunResultKey.String("timeout")
2452 // The task run was cancelled, eg. by a user manually cancelling the task run.
2453 // Stability: development
2454 CICDPipelineTaskRunResultCancellation = CICDPipelineTaskRunResultKey.String("cancellation")
2455 // The task run was skipped, eg. due to a precondition not being met.
2456 // Stability: development
2457 CICDPipelineTaskRunResultSkip = CICDPipelineTaskRunResultKey.String("skip")
2458 )
2459
2460 // Enum values for cicd.pipeline.task.type
2461 var (
2462 // build
2463 // Stability: development
2464 CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build")
2465 // test
2466 // Stability: development
2467 CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test")
2468 // deploy
2469 // Stability: development
2470 CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy")
2471 )
2472
2473 // Enum values for cicd.worker.state
2474 var (
2475 // The worker is not performing work for the CICD system. It is available to the
2476 // CICD system to perform work on (online / idle).
2477 // Stability: development
2478 CICDWorkerStateAvailable = CICDWorkerStateKey.String("available")
2479 // The worker is performing work for the CICD system.
2480 // Stability: development
2481 CICDWorkerStateBusy = CICDWorkerStateKey.String("busy")
2482 // The worker is not available to the CICD system (disconnected / down).
2483 // Stability: development
2484 CICDWorkerStateOffline = CICDWorkerStateKey.String("offline")
2485 )
2486
2487 // Namespace: client
2488 const (
2489 // ClientAddressKey is the attribute Key conforming to the "client.address"
2490 // semantic conventions. It represents the client address - domain name if
2491 // available without reverse DNS lookup; otherwise, IP address or Unix domain
2492 // socket name.
2493 //
2494 // Type: string
2495 // RequirementLevel: Recommended
2496 // Stability: Stable
2497 //
2498 // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock"
2499 // Note: When observed from the server side, and when communicating through an
2500 // intermediary, `client.address` SHOULD represent the client address behind any
2501 // intermediaries, for example proxies, if it's available.
2502 ClientAddressKey = attribute.Key("client.address")
2503
2504 // ClientPortKey is the attribute Key conforming to the "client.port" semantic
2505 // conventions. It represents the client port number.
2506 //
2507 // Type: int
2508 // RequirementLevel: Recommended
2509 // Stability: Stable
2510 //
2511 // Examples: 65123
2512 // Note: When observed from the server side, and when communicating through an
2513 // intermediary, `client.port` SHOULD represent the client port behind any
2514 // intermediaries, for example proxies, if it's available.
2515 ClientPortKey = attribute.Key("client.port")
2516 )
2517
2518 // ClientAddress returns an attribute KeyValue conforming to the "client.address"
2519 // semantic conventions. It represents the client address - domain name if
2520 // available without reverse DNS lookup; otherwise, IP address or Unix domain
2521 // socket name.
2522 func ClientAddress(val string) attribute.KeyValue {
2523 return ClientAddressKey.String(val)
2524 }
2525
2526 // ClientPort returns an attribute KeyValue conforming to the "client.port"
2527 // semantic conventions. It represents the client port number.
2528 func ClientPort(val int) attribute.KeyValue {
2529 return ClientPortKey.Int(val)
2530 }
2531
2532 // Namespace: cloud
2533 const (
2534 // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id"
2535 // semantic conventions. It represents the cloud account ID the resource is
2536 // assigned to.
2537 //
2538 // Type: string
2539 // RequirementLevel: Recommended
2540 // Stability: Development
2541 //
2542 // Examples: "111111111111", "opentelemetry"
2543 CloudAccountIDKey = attribute.Key("cloud.account.id")
2544
2545 // CloudAvailabilityZoneKey is the attribute Key conforming to the
2546 // "cloud.availability_zone" semantic conventions. It represents the cloud
2547 // regions often have multiple, isolated locations known as zones to increase
2548 // availability. Availability zone represents the zone where the resource is
2549 // running.
2550 //
2551 // Type: string
2552 // RequirementLevel: Recommended
2553 // Stability: Development
2554 //
2555 // Examples: "us-east-1c"
2556 // Note: Availability zones are called "zones" on Alibaba Cloud and Google
2557 // Cloud.
2558 CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
2559
2560 // CloudPlatformKey is the attribute Key conforming to the "cloud.platform"
2561 // semantic conventions. It represents the cloud platform in use.
2562 //
2563 // Type: Enum
2564 // RequirementLevel: Recommended
2565 // Stability: Development
2566 //
2567 // Examples:
2568 // Note: The prefix of the service SHOULD match the one specified in
2569 // `cloud.provider`.
2570 CloudPlatformKey = attribute.Key("cloud.platform")
2571
2572 // CloudProviderKey is the attribute Key conforming to the "cloud.provider"
2573 // semantic conventions. It represents the name of the cloud provider.
2574 //
2575 // Type: Enum
2576 // RequirementLevel: Recommended
2577 // Stability: Development
2578 //
2579 // Examples:
2580 CloudProviderKey = attribute.Key("cloud.provider")
2581
2582 // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic
2583 // conventions. It represents the geographical region within a cloud provider.
2584 // When associated with a resource, this attribute specifies the region where
2585 // the resource operates. When calling services or APIs deployed on a cloud,
2586 // this attribute identifies the region where the called destination is
2587 // deployed.
2588 //
2589 // Type: string
2590 // RequirementLevel: Recommended
2591 // Stability: Development
2592 //
2593 // Examples: "us-central1", "us-east-1"
2594 // Note: Refer to your provider's docs to see the available regions, for example
2595 // [Alibaba Cloud regions], [AWS regions], [Azure regions],
2596 // [Google Cloud regions], or [Tencent Cloud regions].
2597 //
2598 // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm
2599 // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/
2600 // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/
2601 // [Google Cloud regions]: https://cloud.google.com/about/locations
2602 // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091
2603 CloudRegionKey = attribute.Key("cloud.region")
2604
2605 // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id"
2606 // semantic conventions. It represents the cloud provider-specific native
2607 // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a
2608 // [fully qualified resource ID] on Azure, a [full resource name] on GCP).
2609 //
2610 // Type: string
2611 // RequirementLevel: Recommended
2612 // Stability: Development
2613 //
2614 // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",
2615 // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID",
2616 // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>
2617 // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>"
2618 // Note: On some cloud providers, it may not be possible to determine the full
2619 // ID at startup,
2620 // so it may be necessary to set `cloud.resource_id` as a span attribute
2621 // instead.
2622 //
2623 // The exact value to use for `cloud.resource_id` depends on the cloud provider.
2624 // The following well-known definitions MUST be used if you set this attribute
2625 // and they apply:
2626 //
2627 // - **AWS Lambda:** The function [ARN].
2628 // Take care not to use the "invoked ARN" directly but replace any
2629 // [alias suffix]
2630 // with the resolved function version, as the same runtime instance may be
2631 // invocable with
2632 // multiple different aliases.
2633 // - **GCP:** The [URI of the resource]
2634 // - **Azure:** The [Fully Qualified Resource ID] of the invoked function,
2635 // *not* the function app, having the form
2636 //
2637 // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`
2638 // .
2639 // This means that a span attribute MUST be used, as an Azure function app
2640 // can host multiple functions that would usually share
2641 // a TracerProvider.
2642 //
2643 //
2644 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2645 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2646 // [full resource name]: https://google.aip.dev/122#full-resource-names
2647 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2648 // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
2649 // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names
2650 // [Fully Qualified Resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2651 CloudResourceIDKey = attribute.Key("cloud.resource_id")
2652 )
2653
2654 // CloudAccountID returns an attribute KeyValue conforming to the
2655 // "cloud.account.id" semantic conventions. It represents the cloud account ID
2656 // the resource is assigned to.
2657 func CloudAccountID(val string) attribute.KeyValue {
2658 return CloudAccountIDKey.String(val)
2659 }
2660
2661 // CloudAvailabilityZone returns an attribute KeyValue conforming to the
2662 // "cloud.availability_zone" semantic conventions. It represents the cloud
2663 // regions often have multiple, isolated locations known as zones to increase
2664 // availability. Availability zone represents the zone where the resource is
2665 // running.
2666 func CloudAvailabilityZone(val string) attribute.KeyValue {
2667 return CloudAvailabilityZoneKey.String(val)
2668 }
2669
2670 // CloudRegion returns an attribute KeyValue conforming to the "cloud.region"
2671 // semantic conventions. It represents the geographical region within a cloud
2672 // provider. When associated with a resource, this attribute specifies the region
2673 // where the resource operates. When calling services or APIs deployed on a
2674 // cloud, this attribute identifies the region where the called destination is
2675 // deployed.
2676 func CloudRegion(val string) attribute.KeyValue {
2677 return CloudRegionKey.String(val)
2678 }
2679
2680 // CloudResourceID returns an attribute KeyValue conforming to the
2681 // "cloud.resource_id" semantic conventions. It represents the cloud
2682 // provider-specific native identifier of the monitored cloud resource (e.g. an
2683 // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name]
2684 // on GCP).
2685 //
2686 // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2687 // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
2688 // [full resource name]: https://google.aip.dev/122#full-resource-names
2689 func CloudResourceID(val string) attribute.KeyValue {
2690 return CloudResourceIDKey.String(val)
2691 }
2692
2693 // Enum values for cloud.platform
2694 var (
2695 // Akamai Cloud Compute
2696 // Stability: development
2697 CloudPlatformAkamaiCloudCompute = CloudPlatformKey.String("akamai_cloud.compute")
2698 // Alibaba Cloud Elastic Compute Service
2699 // Stability: development
2700 CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
2701 // Alibaba Cloud Function Compute
2702 // Stability: development
2703 CloudPlatformAlibabaCloudFC = CloudPlatformKey.String("alibaba_cloud_fc")
2704 // Red Hat OpenShift on Alibaba Cloud
2705 // Stability: development
2706 CloudPlatformAlibabaCloudOpenShift = CloudPlatformKey.String("alibaba_cloud_openshift")
2707 // AWS Elastic Compute Cloud
2708 // Stability: development
2709 CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
2710 // AWS Elastic Container Service
2711 // Stability: development
2712 CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
2713 // AWS Elastic Kubernetes Service
2714 // Stability: development
2715 CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
2716 // AWS Lambda
2717 // Stability: development
2718 CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
2719 // AWS Elastic Beanstalk
2720 // Stability: development
2721 CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
2722 // AWS App Runner
2723 // Stability: development
2724 CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
2725 // Red Hat OpenShift on AWS (ROSA)
2726 // Stability: development
2727 CloudPlatformAWSOpenShift = CloudPlatformKey.String("aws_openshift")
2728 // Azure Virtual Machines
2729 // Stability: development
2730 CloudPlatformAzureVM = CloudPlatformKey.String("azure.vm")
2731 // Azure Container Apps
2732 // Stability: development
2733 CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure.container_apps")
2734 // Azure Container Instances
2735 // Stability: development
2736 CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure.container_instances")
2737 // Azure Kubernetes Service
2738 // Stability: development
2739 CloudPlatformAzureAKS = CloudPlatformKey.String("azure.aks")
2740 // Azure Functions
2741 // Stability: development
2742 CloudPlatformAzureFunctions = CloudPlatformKey.String("azure.functions")
2743 // Azure App Service
2744 // Stability: development
2745 CloudPlatformAzureAppService = CloudPlatformKey.String("azure.app_service")
2746 // Azure Red Hat OpenShift
2747 // Stability: development
2748 CloudPlatformAzureOpenShift = CloudPlatformKey.String("azure.openshift")
2749 // Google Vertex AI Agent Engine
2750 // Stability: development
2751 CloudPlatformGCPAgentEngine = CloudPlatformKey.String("gcp.agent_engine")
2752 // Google Bare Metal Solution (BMS)
2753 // Stability: development
2754 CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
2755 // Google Cloud Compute Engine (GCE)
2756 // Stability: development
2757 CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
2758 // Google Cloud Run
2759 // Stability: development
2760 CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
2761 // Google Cloud Kubernetes Engine (GKE)
2762 // Stability: development
2763 CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
2764 // Google Cloud Functions (GCF)
2765 // Stability: development
2766 CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
2767 // Google Cloud App Engine (GAE)
2768 // Stability: development
2769 CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
2770 // Red Hat OpenShift on Google Cloud
2771 // Stability: development
2772 CloudPlatformGCPOpenShift = CloudPlatformKey.String("gcp_openshift")
2773 // Server on Hetzner Cloud
2774 // Stability: development
2775 CloudPlatformHetznerCloudServer = CloudPlatformKey.String("hetzner.cloud_server")
2776 // Red Hat OpenShift on IBM Cloud
2777 // Stability: development
2778 CloudPlatformIBMCloudOpenShift = CloudPlatformKey.String("ibm_cloud_openshift")
2779 // Compute on Oracle Cloud Infrastructure (OCI)
2780 // Stability: development
2781 CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute")
2782 // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI)
2783 // Stability: development
2784 CloudPlatformOracleCloudOKE = CloudPlatformKey.String("oracle_cloud_oke")
2785 // Tencent Cloud Cloud Virtual Machine (CVM)
2786 // Stability: development
2787 CloudPlatformTencentCloudCVM = CloudPlatformKey.String("tencent_cloud_cvm")
2788 // Tencent Cloud Elastic Kubernetes Service (EKS)
2789 // Stability: development
2790 CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
2791 // Tencent Cloud Serverless Cloud Function (SCF)
2792 // Stability: development
2793 CloudPlatformTencentCloudSCF = CloudPlatformKey.String("tencent_cloud_scf")
2794 // Vultr Cloud Compute
2795 // Stability: development
2796 CloudPlatformVultrCloudCompute = CloudPlatformKey.String("vultr.cloud_compute")
2797 )
2798
2799 // Enum values for cloud.provider
2800 var (
2801 // Akamai Cloud
2802 // Stability: development
2803 CloudProviderAkamaiCloud = CloudProviderKey.String("akamai_cloud")
2804 // Alibaba Cloud
2805 // Stability: development
2806 CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
2807 // Amazon Web Services
2808 // Stability: development
2809 CloudProviderAWS = CloudProviderKey.String("aws")
2810 // Microsoft Azure
2811 // Stability: development
2812 CloudProviderAzure = CloudProviderKey.String("azure")
2813 // Google Cloud Platform
2814 // Stability: development
2815 CloudProviderGCP = CloudProviderKey.String("gcp")
2816 // Heroku Platform as a Service
2817 // Stability: development
2818 CloudProviderHeroku = CloudProviderKey.String("heroku")
2819 // Hetzner
2820 // Stability: development
2821 CloudProviderHetzner = CloudProviderKey.String("hetzner")
2822 // IBM Cloud
2823 // Stability: development
2824 CloudProviderIBMCloud = CloudProviderKey.String("ibm_cloud")
2825 // Oracle Cloud Infrastructure (OCI)
2826 // Stability: development
2827 CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud")
2828 // Tencent Cloud
2829 // Stability: development
2830 CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
2831 // Vultr
2832 // Stability: development
2833 CloudProviderVultr = CloudProviderKey.String("vultr")
2834 )
2835
2836 // Namespace: cloudevents
2837 const (
2838 // CloudEventsEventIDKey is the attribute Key conforming to the
2839 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2840 // uniquely identifies the event.
2841 //
2842 // Type: string
2843 // RequirementLevel: Recommended
2844 // Stability: Development
2845 //
2846 // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
2847 //
2848 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2849 CloudEventsEventIDKey = attribute.Key("cloudevents.event_id")
2850
2851 // CloudEventsEventSourceKey is the attribute Key conforming to the
2852 // "cloudevents.event_source" semantic conventions. It represents the [source]
2853 // identifies the context in which an event happened.
2854 //
2855 // Type: string
2856 // RequirementLevel: Recommended
2857 // Stability: Development
2858 //
2859 // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
2860 // "my-service"
2861 //
2862 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2863 CloudEventsEventSourceKey = attribute.Key("cloudevents.event_source")
2864
2865 // CloudEventsEventSpecVersionKey is the attribute Key conforming to the
2866 // "cloudevents.event_spec_version" semantic conventions. It represents the
2867 // [version of the CloudEvents specification] which the event uses.
2868 //
2869 // Type: string
2870 // RequirementLevel: Recommended
2871 // Stability: Development
2872 //
2873 // Examples: 1.0
2874 //
2875 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2876 CloudEventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
2877
2878 // CloudEventsEventSubjectKey is the attribute Key conforming to the
2879 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2880 // of the event in the context of the event producer (identified by source).
2881 //
2882 // Type: string
2883 // RequirementLevel: Recommended
2884 // Stability: Development
2885 //
2886 // Examples: mynewfile.jpg
2887 //
2888 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2889 CloudEventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
2890
2891 // CloudEventsEventTypeKey is the attribute Key conforming to the
2892 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2893 // contains a value describing the type of event related to the originating
2894 // occurrence.
2895 //
2896 // Type: string
2897 // RequirementLevel: Recommended
2898 // Stability: Development
2899 //
2900 // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
2901 //
2902 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2903 CloudEventsEventTypeKey = attribute.Key("cloudevents.event_type")
2904 )
2905
2906 // CloudEventsEventID returns an attribute KeyValue conforming to the
2907 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2908 // uniquely identifies the event.
2909 //
2910 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2911 func CloudEventsEventID(val string) attribute.KeyValue {
2912 return CloudEventsEventIDKey.String(val)
2913 }
2914
2915 // CloudEventsEventSource returns an attribute KeyValue conforming to the
2916 // "cloudevents.event_source" semantic conventions. It represents the [source]
2917 // identifies the context in which an event happened.
2918 //
2919 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2920 func CloudEventsEventSource(val string) attribute.KeyValue {
2921 return CloudEventsEventSourceKey.String(val)
2922 }
2923
2924 // CloudEventsEventSpecVersion returns an attribute KeyValue conforming to the
2925 // "cloudevents.event_spec_version" semantic conventions. It represents the
2926 // [version of the CloudEvents specification] which the event uses.
2927 //
2928 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2929 func CloudEventsEventSpecVersion(val string) attribute.KeyValue {
2930 return CloudEventsEventSpecVersionKey.String(val)
2931 }
2932
2933 // CloudEventsEventSubject returns an attribute KeyValue conforming to the
2934 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2935 // of the event in the context of the event producer (identified by source).
2936 //
2937 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2938 func CloudEventsEventSubject(val string) attribute.KeyValue {
2939 return CloudEventsEventSubjectKey.String(val)
2940 }
2941
2942 // CloudEventsEventType returns an attribute KeyValue conforming to the
2943 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2944 // contains a value describing the type of event related to the originating
2945 // occurrence.
2946 //
2947 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2948 func CloudEventsEventType(val string) attribute.KeyValue {
2949 return CloudEventsEventTypeKey.String(val)
2950 }
2951
2952 // Namespace: cloudfoundry
2953 const (
2954 // CloudFoundryAppIDKey is the attribute Key conforming to the
2955 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2956 // application.
2957 //
2958 // Type: string
2959 // RequirementLevel: Recommended
2960 // Stability: Development
2961 //
2962 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2963 // Note: Application instrumentation should use the value from environment
2964 // variable `VCAP_APPLICATION.application_id`. This is the same value as
2965 // reported by `cf app <app-name> --guid`.
2966 CloudFoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
2967
2968 // CloudFoundryAppInstanceIDKey is the attribute Key conforming to the
2969 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2970 // of the application instance. 0 when just one instance is active.
2971 //
2972 // Type: string
2973 // RequirementLevel: Recommended
2974 // Stability: Development
2975 //
2976 // Examples: "0", "1"
2977 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2978 // .
2979 // It is used for logs and metrics emitted by CloudFoundry. It is
2980 // supposed to contain the application instance index for applications
2981 // deployed on the runtime.
2982 //
2983 // Application instrumentation should use the value from environment
2984 // variable `CF_INSTANCE_INDEX`.
2985 //
2986 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2987 CloudFoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
2988
2989 // CloudFoundryAppNameKey is the attribute Key conforming to the
2990 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2991 // application.
2992 //
2993 // Type: string
2994 // RequirementLevel: Recommended
2995 // Stability: Development
2996 //
2997 // Examples: "my-app-name"
2998 // Note: Application instrumentation should use the value from environment
2999 // variable `VCAP_APPLICATION.application_name`. This is the same value
3000 // as reported by `cf apps`.
3001 CloudFoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
3002
3003 // CloudFoundryOrgIDKey is the attribute Key conforming to the
3004 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
3005 // CloudFoundry org the application is running in.
3006 //
3007 // Type: string
3008 // RequirementLevel: Recommended
3009 // Stability: Development
3010 //
3011 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
3012 // Note: Application instrumentation should use the value from environment
3013 // variable `VCAP_APPLICATION.org_id`. This is the same value as
3014 // reported by `cf org <org-name> --guid`.
3015 CloudFoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
3016
3017 // CloudFoundryOrgNameKey is the attribute Key conforming to the
3018 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
3019 // CloudFoundry organization the app is running in.
3020 //
3021 // Type: string
3022 // RequirementLevel: Recommended
3023 // Stability: Development
3024 //
3025 // Examples: "my-org-name"
3026 // Note: Application instrumentation should use the value from environment
3027 // variable `VCAP_APPLICATION.org_name`. This is the same value as
3028 // reported by `cf orgs`.
3029 CloudFoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
3030
3031 // CloudFoundryProcessIDKey is the attribute Key conforming to the
3032 // "cloudfoundry.process.id" semantic conventions. It represents the UID
3033 // identifying the process.
3034 //
3035 // Type: string
3036 // RequirementLevel: Recommended
3037 // Stability: Development
3038 //
3039 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
3040 // Note: Application instrumentation should use the value from environment
3041 // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
3042 // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
3043 // For system components, this could be the actual PID.
3044 CloudFoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
3045
3046 // CloudFoundryProcessTypeKey is the attribute Key conforming to the
3047 // "cloudfoundry.process.type" semantic conventions. It represents the type of
3048 // process.
3049 //
3050 // Type: string
3051 // RequirementLevel: Recommended
3052 // Stability: Development
3053 //
3054 // Examples: "web"
3055 // Note: CloudFoundry applications can consist of multiple jobs. Usually the
3056 // main process will be of type `web`. There can be additional background
3057 // tasks or side-cars with different process types.
3058 CloudFoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
3059
3060 // CloudFoundrySpaceIDKey is the attribute Key conforming to the
3061 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
3062 // CloudFoundry space the application is running in.
3063 //
3064 // Type: string
3065 // RequirementLevel: Recommended
3066 // Stability: Development
3067 //
3068 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
3069 // Note: Application instrumentation should use the value from environment
3070 // variable `VCAP_APPLICATION.space_id`. This is the same value as
3071 // reported by `cf space <space-name> --guid`.
3072 CloudFoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
3073
3074 // CloudFoundrySpaceNameKey is the attribute Key conforming to the
3075 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
3076 // CloudFoundry space the application is running in.
3077 //
3078 // Type: string
3079 // RequirementLevel: Recommended
3080 // Stability: Development
3081 //
3082 // Examples: "my-space-name"
3083 // Note: Application instrumentation should use the value from environment
3084 // variable `VCAP_APPLICATION.space_name`. This is the same value as
3085 // reported by `cf spaces`.
3086 CloudFoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
3087
3088 // CloudFoundrySystemIDKey is the attribute Key conforming to the
3089 // "cloudfoundry.system.id" semantic conventions. It represents a guid or
3090 // another name describing the event source.
3091 //
3092 // Type: string
3093 // RequirementLevel: Recommended
3094 // Stability: Development
3095 //
3096 // Examples: "cf/gorouter"
3097 // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
3098 // It is used for logs and metrics emitted by CloudFoundry. It is
3099 // supposed to contain the component name, e.g. "gorouter", for
3100 // CloudFoundry components.
3101 //
3102 // When system components are instrumented, values from the
3103 // [Bosh spec]
3104 // should be used. The `system.id` should be set to
3105 // `spec.deployment/spec.name`.
3106 //
3107 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
3108 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
3109 CloudFoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
3110
3111 // CloudFoundrySystemInstanceIDKey is the attribute Key conforming to the
3112 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
3113 // describing the concrete instance of the event source.
3114 //
3115 // Type: string
3116 // RequirementLevel: Recommended
3117 // Stability: Development
3118 //
3119 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
3120 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
3121 // .
3122 // It is used for logs and metrics emitted by CloudFoundry. It is
3123 // supposed to contain the vm id for CloudFoundry components.
3124 //
3125 // When system components are instrumented, values from the
3126 // [Bosh spec]
3127 // should be used. The `system.instance.id` should be set to `spec.id`.
3128 //
3129 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
3130 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
3131 CloudFoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
3132 )
3133
3134 // CloudFoundryAppID returns an attribute KeyValue conforming to the
3135 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
3136 // application.
3137 func CloudFoundryAppID(val string) attribute.KeyValue {
3138 return CloudFoundryAppIDKey.String(val)
3139 }
3140
3141 // CloudFoundryAppInstanceID returns an attribute KeyValue conforming to the
3142 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
3143 // of the application instance. 0 when just one instance is active.
3144 func CloudFoundryAppInstanceID(val string) attribute.KeyValue {
3145 return CloudFoundryAppInstanceIDKey.String(val)
3146 }
3147
3148 // CloudFoundryAppName returns an attribute KeyValue conforming to the
3149 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
3150 // application.
3151 func CloudFoundryAppName(val string) attribute.KeyValue {
3152 return CloudFoundryAppNameKey.String(val)
3153 }
3154
3155 // CloudFoundryOrgID returns an attribute KeyValue conforming to the
3156 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
3157 // CloudFoundry org the application is running in.
3158 func CloudFoundryOrgID(val string) attribute.KeyValue {
3159 return CloudFoundryOrgIDKey.String(val)
3160 }
3161
3162 // CloudFoundryOrgName returns an attribute KeyValue conforming to the
3163 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
3164 // CloudFoundry organization the app is running in.
3165 func CloudFoundryOrgName(val string) attribute.KeyValue {
3166 return CloudFoundryOrgNameKey.String(val)
3167 }
3168
3169 // CloudFoundryProcessID returns an attribute KeyValue conforming to the
3170 // "cloudfoundry.process.id" semantic conventions. It represents the UID
3171 // identifying the process.
3172 func CloudFoundryProcessID(val string) attribute.KeyValue {
3173 return CloudFoundryProcessIDKey.String(val)
3174 }
3175
3176 // CloudFoundryProcessType returns an attribute KeyValue conforming to the
3177 // "cloudfoundry.process.type" semantic conventions. It represents the type of
3178 // process.
3179 func CloudFoundryProcessType(val string) attribute.KeyValue {
3180 return CloudFoundryProcessTypeKey.String(val)
3181 }
3182
3183 // CloudFoundrySpaceID returns an attribute KeyValue conforming to the
3184 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
3185 // CloudFoundry space the application is running in.
3186 func CloudFoundrySpaceID(val string) attribute.KeyValue {
3187 return CloudFoundrySpaceIDKey.String(val)
3188 }
3189
3190 // CloudFoundrySpaceName returns an attribute KeyValue conforming to the
3191 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
3192 // CloudFoundry space the application is running in.
3193 func CloudFoundrySpaceName(val string) attribute.KeyValue {
3194 return CloudFoundrySpaceNameKey.String(val)
3195 }
3196
3197 // CloudFoundrySystemID returns an attribute KeyValue conforming to the
3198 // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
3199 // name describing the event source.
3200 func CloudFoundrySystemID(val string) attribute.KeyValue {
3201 return CloudFoundrySystemIDKey.String(val)
3202 }
3203
3204 // CloudFoundrySystemInstanceID returns an attribute KeyValue conforming to the
3205 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
3206 // describing the concrete instance of the event source.
3207 func CloudFoundrySystemInstanceID(val string) attribute.KeyValue {
3208 return CloudFoundrySystemInstanceIDKey.String(val)
3209 }
3210
3211 // Namespace: code
3212 const (
3213 // CodeColumnNumberKey is the attribute Key conforming to the
3214 // "code.column.number" semantic conventions. It represents the column number in
3215 // `code.file.path` best representing the operation. It SHOULD point within the
3216 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3217 // the Profile signal since the data is already captured in 'message Line'. This
3218 // constraint is imposed to prevent redundancy and maintain data integrity.
3219 //
3220 // Type: int
3221 // RequirementLevel: Recommended
3222 // Stability: Stable
3223 CodeColumnNumberKey = attribute.Key("code.column.number")
3224
3225 // CodeFilePathKey is the attribute Key conforming to the "code.file.path"
3226 // semantic conventions. It represents the source code file name that identifies
3227 // the code unit as uniquely as possible (preferably an absolute file path).
3228 // This attribute MUST NOT be used on the Profile signal since the data is
3229 // already captured in 'message Function'. This constraint is imposed to prevent
3230 // redundancy and maintain data integrity.
3231 //
3232 // Type: string
3233 // RequirementLevel: Recommended
3234 // Stability: Stable
3235 //
3236 // Examples: /usr/local/MyApplication/content_root/app/index.php
3237 CodeFilePathKey = attribute.Key("code.file.path")
3238
3239 // CodeFunctionNameKey is the attribute Key conforming to the
3240 // "code.function.name" semantic conventions. It represents the method or
3241 // function fully-qualified name without arguments. The value should fit the
3242 // natural representation of the language runtime, which is also likely the same
3243 // used within `code.stacktrace` attribute value. This attribute MUST NOT be
3244 // used on the Profile signal since the data is already captured in 'message
3245 // Function'. This constraint is imposed to prevent redundancy and maintain data
3246 // integrity.
3247 //
3248 // Type: string
3249 // RequirementLevel: Recommended
3250 // Stability: Stable
3251 //
3252 // Examples: "com.example.MyHttpService.serveRequest",
3253 // "GuzzleHttp\Client::transfer", "fopen"
3254 // Note: Values and format depends on each language runtime, thus it is
3255 // impossible to provide an exhaustive list of examples.
3256 // The values are usually the same (or prefixes of) the ones found in native
3257 // stack trace representation stored in
3258 // `code.stacktrace` without information on arguments.
3259 //
3260 // Examples:
3261 //
3262 // - Java method: `com.example.MyHttpService.serveRequest`
3263 // - Java anonymous class method: `com.mycompany.Main$1.myMethod`
3264 // - Java lambda method:
3265 // `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod`
3266 // - PHP function: `GuzzleHttp\Client::transfer`
3267 // - Go function: `github.com/my/repo/pkg.foo.func5`
3268 // - Elixir: `OpenTelemetry.Ctx.new`
3269 // - Erlang: `opentelemetry_ctx:new`
3270 // - Rust: `playground::my_module::my_cool_func`
3271 // - C function: `fopen`
3272 CodeFunctionNameKey = attribute.Key("code.function.name")
3273
3274 // CodeLineNumberKey is the attribute Key conforming to the "code.line.number"
3275 // semantic conventions. It represents the line number in `code.file.path` best
3276 // representing the operation. It SHOULD point within the code unit named in
3277 // `code.function.name`. This attribute MUST NOT be used on the Profile signal
3278 // since the data is already captured in 'message Line'. This constraint is
3279 // imposed to prevent redundancy and maintain data integrity.
3280 //
3281 // Type: int
3282 // RequirementLevel: Recommended
3283 // Stability: Stable
3284 CodeLineNumberKey = attribute.Key("code.line.number")
3285
3286 // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
3287 // semantic conventions. It represents a stacktrace as a string in the natural
3288 // representation for the language runtime. The representation is identical to
3289 // [`exception.stacktrace`]. This attribute MUST NOT be used on the Profile
3290 // signal since the data is already captured in 'message Location'. This
3291 // constraint is imposed to prevent redundancy and maintain data integrity.
3292 //
3293 // Type: string
3294 // RequirementLevel: Recommended
3295 // Stability: Stable
3296 //
3297 // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
3298 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
3299 // com.example.GenerateTrace.main(GenerateTrace.java:5)
3300 //
3301 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
3302 CodeStacktraceKey = attribute.Key("code.stacktrace")
3303 )
3304
3305 // CodeColumnNumber returns an attribute KeyValue conforming to the
3306 // "code.column.number" semantic conventions. It represents the column number in
3307 // `code.file.path` best representing the operation. It SHOULD point within the
3308 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3309 // the Profile signal since the data is already captured in 'message Line'. This
3310 // constraint is imposed to prevent redundancy and maintain data integrity.
3311 func CodeColumnNumber(val int) attribute.KeyValue {
3312 return CodeColumnNumberKey.Int(val)
3313 }
3314
3315 // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path"
3316 // semantic conventions. It represents the source code file name that identifies
3317 // the code unit as uniquely as possible (preferably an absolute file path). This
3318 // attribute MUST NOT be used on the Profile signal since the data is already
3319 // captured in 'message Function'. This constraint is imposed to prevent
3320 // redundancy and maintain data integrity.
3321 func CodeFilePath(val string) attribute.KeyValue {
3322 return CodeFilePathKey.String(val)
3323 }
3324
3325 // CodeFunctionName returns an attribute KeyValue conforming to the
3326 // "code.function.name" semantic conventions. It represents the method or
3327 // function fully-qualified name without arguments. The value should fit the
3328 // natural representation of the language runtime, which is also likely the same
3329 // used within `code.stacktrace` attribute value. This attribute MUST NOT be used
3330 // on the Profile signal since the data is already captured in 'message
3331 // Function'. This constraint is imposed to prevent redundancy and maintain data
3332 // integrity.
3333 func CodeFunctionName(val string) attribute.KeyValue {
3334 return CodeFunctionNameKey.String(val)
3335 }
3336
3337 // CodeLineNumber returns an attribute KeyValue conforming to the
3338 // "code.line.number" semantic conventions. It represents the line number in
3339 // `code.file.path` best representing the operation. It SHOULD point within the
3340 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3341 // the Profile signal since the data is already captured in 'message Line'. This
3342 // constraint is imposed to prevent redundancy and maintain data integrity.
3343 func CodeLineNumber(val int) attribute.KeyValue {
3344 return CodeLineNumberKey.Int(val)
3345 }
3346
3347 // CodeStacktrace returns an attribute KeyValue conforming to the
3348 // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
3349 // in the natural representation for the language runtime. The representation is
3350 // identical to [`exception.stacktrace`]. This attribute MUST NOT be used on the
3351 // Profile signal since the data is already captured in 'message Location'. This
3352 // constraint is imposed to prevent redundancy and maintain data integrity.
3353 //
3354 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
3355 func CodeStacktrace(val string) attribute.KeyValue {
3356 return CodeStacktraceKey.String(val)
3357 }
3358
3359 // Namespace: container
3360 const (
3361 // ContainerCommandKey is the attribute Key conforming to the
3362 // "container.command" semantic conventions. It represents the command used to
3363 // run the container (i.e. the command name).
3364 //
3365 // Type: string
3366 // RequirementLevel: Recommended
3367 // Stability: Development
3368 //
3369 // Examples: "otelcontribcol"
3370 // Note: If using embedded credentials or sensitive data, it is recommended to
3371 // remove them to prevent potential leakage.
3372 ContainerCommandKey = attribute.Key("container.command")
3373
3374 // ContainerCommandArgsKey is the attribute Key conforming to the
3375 // "container.command_args" semantic conventions. It represents the all the
3376 // command arguments (including the command/executable itself) run by the
3377 // container.
3378 //
3379 // Type: string[]
3380 // RequirementLevel: Recommended
3381 // Stability: Development
3382 //
3383 // Examples: "otelcontribcol", "--config", "config.yaml"
3384 ContainerCommandArgsKey = attribute.Key("container.command_args")
3385
3386 // ContainerCommandLineKey is the attribute Key conforming to the
3387 // "container.command_line" semantic conventions. It represents the full command
3388 // run by the container as a single string representing the full command.
3389 //
3390 // Type: string
3391 // RequirementLevel: Recommended
3392 // Stability: Development
3393 //
3394 // Examples: "otelcontribcol --config config.yaml"
3395 ContainerCommandLineKey = attribute.Key("container.command_line")
3396
3397 // ContainerCSIPluginNameKey is the attribute Key conforming to the
3398 // "container.csi.plugin.name" semantic conventions. It represents the name of
3399 // the CSI ([Container Storage Interface]) plugin used by the volume.
3400 //
3401 // Type: string
3402 // RequirementLevel: Recommended
3403 // Stability: Development
3404 //
3405 // Examples: "pd.csi.storage.gke.io"
3406 // Note: This can sometimes be referred to as a "driver" in CSI implementations.
3407 // This should represent the `name` field of the GetPluginInfo RPC.
3408 //
3409 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3410 ContainerCSIPluginNameKey = attribute.Key("container.csi.plugin.name")
3411
3412 // ContainerCSIVolumeIDKey is the attribute Key conforming to the
3413 // "container.csi.volume.id" semantic conventions. It represents the unique
3414 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3415 //
3416 // Type: string
3417 // RequirementLevel: Recommended
3418 // Stability: Development
3419 //
3420 // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
3421 // Note: This can sometimes be referred to as a "volume handle" in CSI
3422 // implementations. This should represent the `Volume.volume_id` field in CSI
3423 // spec.
3424 //
3425 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3426 ContainerCSIVolumeIDKey = attribute.Key("container.csi.volume.id")
3427
3428 // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
3429 // conventions. It represents the container ID. Usually a UUID, as for example
3430 // used to [identify Docker containers]. The UUID might be abbreviated.
3431 //
3432 // Type: string
3433 // RequirementLevel: Recommended
3434 // Stability: Beta
3435 //
3436 // Examples: "a3bf90e006b2"
3437 //
3438 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3439 ContainerIDKey = attribute.Key("container.id")
3440
3441 // ContainerImageIDKey is the attribute Key conforming to the
3442 // "container.image.id" semantic conventions. It represents the runtime specific
3443 // image identifier. Usually a hash algorithm followed by a UUID.
3444 //
3445 // Type: string
3446 // RequirementLevel: Recommended
3447 // Stability: Development
3448 //
3449 // Examples:
3450 // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
3451 // Note: Docker defines a sha256 of the image id; `container.image.id`
3452 // corresponds to the `Image` field from the Docker container inspect [API]
3453 // endpoint.
3454 // K8s defines a link to the container registry repository with digest
3455 // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
3456 // .
3457 // The ID is assigned by the container runtime and can vary in different
3458 // environments. Consider using `oci.manifest.digest` if it is important to
3459 // identify the same image in different environments/runtimes.
3460 //
3461 // [API]: https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Container/operation/ContainerInspect
3462 ContainerImageIDKey = attribute.Key("container.image.id")
3463
3464 // ContainerImageNameKey is the attribute Key conforming to the
3465 // "container.image.name" semantic conventions. It represents the name of the
3466 // image the container was built on.
3467 //
3468 // Type: string
3469 // RequirementLevel: Recommended
3470 // Stability: Beta
3471 //
3472 // Examples: "gcr.io/opentelemetry/operator"
3473 ContainerImageNameKey = attribute.Key("container.image.name")
3474
3475 // ContainerImageRepoDigestsKey is the attribute Key conforming to the
3476 // "container.image.repo_digests" semantic conventions. It represents the repo
3477 // digests of the container image as provided by the container runtime.
3478 //
3479 // Type: string[]
3480 // RequirementLevel: Recommended
3481 // Stability: Beta
3482 //
3483 // Examples:
3484 // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
3485 // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
3486 // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
3487 //
3488 // [Docker]: https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect
3489 // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
3490 ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
3491
3492 // ContainerImageTagsKey is the attribute Key conforming to the
3493 // "container.image.tags" semantic conventions. It represents the container
3494 // image tags. An example can be found in [Docker Image Inspect]. Should be only
3495 // the `<tag>` section of the full name for example from
3496 // `registry.example.com/my-org/my-image:<tag>`.
3497 //
3498 // Type: string[]
3499 // RequirementLevel: Recommended
3500 // Stability: Beta
3501 //
3502 // Examples: "v1.27.1", "3.5.7-0"
3503 //
3504 // [Docker Image Inspect]: https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect
3505 ContainerImageTagsKey = attribute.Key("container.image.tags")
3506
3507 // ContainerNameKey is the attribute Key conforming to the "container.name"
3508 // semantic conventions. It represents the container name used by container
3509 // runtime.
3510 //
3511 // Type: string
3512 // RequirementLevel: Recommended
3513 // Stability: Development
3514 //
3515 // Examples: "opentelemetry-autoconf"
3516 ContainerNameKey = attribute.Key("container.name")
3517
3518 // ContainerRuntimeDescriptionKey is the attribute Key conforming to the
3519 // "container.runtime.description" semantic conventions. It represents a
3520 // description about the runtime which could include, for example details about
3521 // the CRI/API version being used or other customisations.
3522 //
3523 // Type: string
3524 // RequirementLevel: Recommended
3525 // Stability: Development
3526 //
3527 // Examples: "docker://19.3.1 - CRI: 1.22.0"
3528 ContainerRuntimeDescriptionKey = attribute.Key("container.runtime.description")
3529
3530 // ContainerRuntimeNameKey is the attribute Key conforming to the
3531 // "container.runtime.name" semantic conventions. It represents the container
3532 // runtime managing this container.
3533 //
3534 // Type: string
3535 // RequirementLevel: Recommended
3536 // Stability: Development
3537 //
3538 // Examples: "docker", "containerd", "rkt"
3539 ContainerRuntimeNameKey = attribute.Key("container.runtime.name")
3540
3541 // ContainerRuntimeVersionKey is the attribute Key conforming to the
3542 // "container.runtime.version" semantic conventions. It represents the version
3543 // of the runtime of this process, as returned by the runtime without
3544 // modification.
3545 //
3546 // Type: string
3547 // RequirementLevel: Recommended
3548 // Stability: Development
3549 //
3550 // Examples: 1.0.0
3551 ContainerRuntimeVersionKey = attribute.Key("container.runtime.version")
3552 )
3553
3554 // ContainerCommand returns an attribute KeyValue conforming to the
3555 // "container.command" semantic conventions. It represents the command used to
3556 // run the container (i.e. the command name).
3557 func ContainerCommand(val string) attribute.KeyValue {
3558 return ContainerCommandKey.String(val)
3559 }
3560
3561 // ContainerCommandArgs returns an attribute KeyValue conforming to the
3562 // "container.command_args" semantic conventions. It represents the all the
3563 // command arguments (including the command/executable itself) run by the
3564 // container.
3565 func ContainerCommandArgs(val ...string) attribute.KeyValue {
3566 return ContainerCommandArgsKey.StringSlice(val)
3567 }
3568
3569 // ContainerCommandLine returns an attribute KeyValue conforming to the
3570 // "container.command_line" semantic conventions. It represents the full command
3571 // run by the container as a single string representing the full command.
3572 func ContainerCommandLine(val string) attribute.KeyValue {
3573 return ContainerCommandLineKey.String(val)
3574 }
3575
3576 // ContainerCSIPluginName returns an attribute KeyValue conforming to the
3577 // "container.csi.plugin.name" semantic conventions. It represents the name of
3578 // the CSI ([Container Storage Interface]) plugin used by the volume.
3579 //
3580 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3581 func ContainerCSIPluginName(val string) attribute.KeyValue {
3582 return ContainerCSIPluginNameKey.String(val)
3583 }
3584
3585 // ContainerCSIVolumeID returns an attribute KeyValue conforming to the
3586 // "container.csi.volume.id" semantic conventions. It represents the unique
3587 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3588 //
3589 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3590 func ContainerCSIVolumeID(val string) attribute.KeyValue {
3591 return ContainerCSIVolumeIDKey.String(val)
3592 }
3593
3594 // ContainerID returns an attribute KeyValue conforming to the "container.id"
3595 // semantic conventions. It represents the container ID. Usually a UUID, as for
3596 // example used to [identify Docker containers]. The UUID might be abbreviated.
3597 //
3598 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3599 func ContainerID(val string) attribute.KeyValue {
3600 return ContainerIDKey.String(val)
3601 }
3602
3603 // ContainerImageID returns an attribute KeyValue conforming to the
3604 // "container.image.id" semantic conventions. It represents the runtime specific
3605 // image identifier. Usually a hash algorithm followed by a UUID.
3606 func ContainerImageID(val string) attribute.KeyValue {
3607 return ContainerImageIDKey.String(val)
3608 }
3609
3610 // ContainerImageName returns an attribute KeyValue conforming to the
3611 // "container.image.name" semantic conventions. It represents the name of the
3612 // image the container was built on.
3613 func ContainerImageName(val string) attribute.KeyValue {
3614 return ContainerImageNameKey.String(val)
3615 }
3616
3617 // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
3618 // "container.image.repo_digests" semantic conventions. It represents the repo
3619 // digests of the container image as provided by the container runtime.
3620 func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
3621 return ContainerImageRepoDigestsKey.StringSlice(val)
3622 }
3623
3624 // ContainerImageTags returns an attribute KeyValue conforming to the
3625 // "container.image.tags" semantic conventions. It represents the container image
3626 // tags. An example can be found in [Docker Image Inspect]. Should be only the
3627 // `<tag>` section of the full name for example from
3628 // `registry.example.com/my-org/my-image:<tag>`.
3629 //
3630 // [Docker Image Inspect]: https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect
3631 func ContainerImageTags(val ...string) attribute.KeyValue {
3632 return ContainerImageTagsKey.StringSlice(val)
3633 }
3634
3635 // ContainerLabel returns an attribute KeyValue conforming to the
3636 // "container.label" semantic conventions. It represents the container labels,
3637 // `<key>` being the label name, the value being the label value.
3638 func ContainerLabel(key string, val string) attribute.KeyValue {
3639 return attribute.String("container.label."+key, val)
3640 }
3641
3642 // ContainerName returns an attribute KeyValue conforming to the "container.name"
3643 // semantic conventions. It represents the container name used by container
3644 // runtime.
3645 func ContainerName(val string) attribute.KeyValue {
3646 return ContainerNameKey.String(val)
3647 }
3648
3649 // ContainerRuntimeDescription returns an attribute KeyValue conforming to the
3650 // "container.runtime.description" semantic conventions. It represents a
3651 // description about the runtime which could include, for example details about
3652 // the CRI/API version being used or other customisations.
3653 func ContainerRuntimeDescription(val string) attribute.KeyValue {
3654 return ContainerRuntimeDescriptionKey.String(val)
3655 }
3656
3657 // ContainerRuntimeName returns an attribute KeyValue conforming to the
3658 // "container.runtime.name" semantic conventions. It represents the container
3659 // runtime managing this container.
3660 func ContainerRuntimeName(val string) attribute.KeyValue {
3661 return ContainerRuntimeNameKey.String(val)
3662 }
3663
3664 // ContainerRuntimeVersion returns an attribute KeyValue conforming to the
3665 // "container.runtime.version" semantic conventions. It represents the version of
3666 // the runtime of this process, as returned by the runtime without modification.
3667 func ContainerRuntimeVersion(val string) attribute.KeyValue {
3668 return ContainerRuntimeVersionKey.String(val)
3669 }
3670
3671 // Namespace: cpu
3672 const (
3673 // CPULogicalNumberKey is the attribute Key conforming to the
3674 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3675 // number [0..n-1].
3676 //
3677 // Type: int
3678 // RequirementLevel: Recommended
3679 // Stability: Development
3680 //
3681 // Examples: 1
3682 CPULogicalNumberKey = attribute.Key("cpu.logical_number")
3683
3684 // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
3685 // conventions. It represents the mode of the CPU.
3686 //
3687 // Type: Enum
3688 // RequirementLevel: Recommended
3689 // Stability: Development
3690 //
3691 // Examples: "user", "system"
3692 CPUModeKey = attribute.Key("cpu.mode")
3693 )
3694
3695 // CPULogicalNumber returns an attribute KeyValue conforming to the
3696 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3697 // number [0..n-1].
3698 func CPULogicalNumber(val int) attribute.KeyValue {
3699 return CPULogicalNumberKey.Int(val)
3700 }
3701
3702 // Enum values for cpu.mode
3703 var (
3704 // User
3705 // Stability: development
3706 CPUModeUser = CPUModeKey.String("user")
3707 // System
3708 // Stability: development
3709 CPUModeSystem = CPUModeKey.String("system")
3710 // Nice
3711 // Stability: development
3712 CPUModeNice = CPUModeKey.String("nice")
3713 // Idle
3714 // Stability: development
3715 CPUModeIdle = CPUModeKey.String("idle")
3716 // IO Wait
3717 // Stability: development
3718 CPUModeIOWait = CPUModeKey.String("iowait")
3719 // Interrupt
3720 // Stability: development
3721 CPUModeInterrupt = CPUModeKey.String("interrupt")
3722 // Steal
3723 // Stability: development
3724 CPUModeSteal = CPUModeKey.String("steal")
3725 // Kernel
3726 // Stability: development
3727 CPUModeKernel = CPUModeKey.String("kernel")
3728 )
3729
3730 // Namespace: db
3731 const (
3732 // DBClientConnectionPoolNameKey is the attribute Key conforming to the
3733 // "db.client.connection.pool.name" semantic conventions. It represents the name
3734 // of the connection pool; unique within the instrumented application. In case
3735 // the connection pool implementation doesn't provide a name, instrumentation
3736 // SHOULD use a combination of parameters that would make the name unique, for
3737 // example, combining attributes `server.address`, `server.port`, and
3738 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3739 // Instrumentations that generate connection pool name following different
3740 // patterns SHOULD document it.
3741 //
3742 // Type: string
3743 // RequirementLevel: Recommended
3744 // Stability: Development
3745 //
3746 // Examples: "myDataSource"
3747 DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
3748
3749 // DBClientConnectionStateKey is the attribute Key conforming to the
3750 // "db.client.connection.state" semantic conventions. It represents the state of
3751 // a connection in the pool.
3752 //
3753 // Type: Enum
3754 // RequirementLevel: Recommended
3755 // Stability: Development
3756 //
3757 // Examples: "idle"
3758 DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
3759
3760 // DBCollectionNameKey is the attribute Key conforming to the
3761 // "db.collection.name" semantic conventions. It represents the name of a
3762 // collection (table, container) within the database.
3763 //
3764 // Type: string
3765 // RequirementLevel: Recommended
3766 // Stability: Stable
3767 //
3768 // Examples: "public.users", "customers"
3769 // Note: It is RECOMMENDED to capture the value as provided by the application
3770 // without attempting to do any case normalization.
3771 //
3772 // The collection name SHOULD NOT be extracted from `db.query.text`,
3773 // when the database system supports query text with multiple collections
3774 // in non-batch operations.
3775 //
3776 // For batch operations, if the individual operations are known to have the same
3777 // collection name then that collection name SHOULD be used.
3778 DBCollectionNameKey = attribute.Key("db.collection.name")
3779
3780 // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
3781 // conventions. It represents the name of the database, fully qualified within
3782 // the server address and port.
3783 //
3784 // Type: string
3785 // RequirementLevel: Recommended
3786 // Stability: Stable
3787 //
3788 // Examples: "customers", "test.users"
3789 // Note: If a database system has multiple namespace components, they SHOULD be
3790 // concatenated from the most general to the most specific namespace component,
3791 // using `|` as a separator between the components. Any missing components (and
3792 // their associated separators) SHOULD be omitted.
3793 // Semantic conventions for individual database systems SHOULD document what
3794 // `db.namespace` means in the context of that system.
3795 // It is RECOMMENDED to capture the value as provided by the application without
3796 // attempting to do any case normalization.
3797 DBNamespaceKey = attribute.Key("db.namespace")
3798
3799 // DBOperationBatchSizeKey is the attribute Key conforming to the
3800 // "db.operation.batch.size" semantic conventions. It represents the number of
3801 // queries included in a batch operation.
3802 //
3803 // Type: int
3804 // RequirementLevel: Recommended
3805 // Stability: Stable
3806 //
3807 // Examples: 2, 3, 4
3808 // Note: Operations are only considered batches when they contain two or more
3809 // operations, and so `db.operation.batch.size` SHOULD never be `1`.
3810 DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
3811
3812 // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
3813 // semantic conventions. It represents the name of the operation or command
3814 // being executed.
3815 //
3816 // Type: string
3817 // RequirementLevel: Recommended
3818 // Stability: Stable
3819 //
3820 // Examples: "findAndModify", "HMSET", "SELECT"
3821 // Note: It is RECOMMENDED to capture the value as provided by the application
3822 // without attempting to do any case normalization.
3823 //
3824 // The operation name SHOULD NOT be extracted from `db.query.text`,
3825 // when the database system supports query text with multiple operations
3826 // in non-batch operations.
3827 //
3828 // If spaces can occur in the operation name, multiple consecutive spaces
3829 // SHOULD be normalized to a single space.
3830 //
3831 // For batch operations, if the individual operations are known to have the same
3832 // operation name
3833 // then that operation name SHOULD be used prepended by `BATCH `,
3834 // otherwise `db.operation.name` SHOULD be `BATCH` or some other database
3835 // system specific term if more applicable.
3836 DBOperationNameKey = attribute.Key("db.operation.name")
3837
3838 // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary"
3839 // semantic conventions. It represents the low cardinality summary of a database
3840 // query.
3841 //
3842 // Type: string
3843 // RequirementLevel: Recommended
3844 // Stability: Stable
3845 //
3846 // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get
3847 // user by id"
3848 // Note: The query summary describes a class of database queries and is useful
3849 // as a grouping key, especially when analyzing telemetry for database
3850 // calls involving complex queries.
3851 //
3852 // Summary may be available to the instrumentation through
3853 // instrumentation hooks or other means. If it is not available,
3854 // instrumentations
3855 // that support query parsing SHOULD generate a summary following
3856 // [Generating query summary]
3857 // section.
3858 //
3859 // For batch operations, if the individual operations are known to have the same
3860 // query summary
3861 // then that query summary SHOULD be used prepended by `BATCH `,
3862 // otherwise `db.query.summary` SHOULD be `BATCH` or some other database
3863 // system specific term if more applicable.
3864 //
3865 // [Generating query summary]: /docs/db/database-spans.md#generating-a-summary-of-the-query
3866 DBQuerySummaryKey = attribute.Key("db.query.summary")
3867
3868 // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
3869 // semantic conventions. It represents the database query being executed.
3870 //
3871 // Type: string
3872 // RequirementLevel: Recommended
3873 // Stability: Stable
3874 //
3875 // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?"
3876 // Note: For sanitization see [Sanitization of `db.query.text`].
3877 // For batch operations, if the individual operations are known to have the same
3878 // query text then that query text SHOULD be used, otherwise all of the
3879 // individual query texts SHOULD be concatenated with separator `; ` or some
3880 // other database system specific separator if more applicable.
3881 // Parameterized query text SHOULD NOT be sanitized. Even though parameterized
3882 // query text can potentially have sensitive data, by using a parameterized
3883 // query the user is giving a strong signal that any sensitive data will be
3884 // passed as parameter values, and the benefit to observability of capturing the
3885 // static part of the query text by default outweighs the risk.
3886 //
3887 // [Sanitization of `db.query.text`]: /docs/db/database-spans.md#sanitization-of-dbquerytext
3888 DBQueryTextKey = attribute.Key("db.query.text")
3889
3890 // DBResponseReturnedRowsKey is the attribute Key conforming to the
3891 // "db.response.returned_rows" semantic conventions. It represents the number of
3892 // rows returned by the operation.
3893 //
3894 // Type: int
3895 // RequirementLevel: Recommended
3896 // Stability: Development
3897 //
3898 // Examples: 10, 30, 1000
3899 DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows")
3900
3901 // DBResponseStatusCodeKey is the attribute Key conforming to the
3902 // "db.response.status_code" semantic conventions. It represents the database
3903 // response status code.
3904 //
3905 // Type: string
3906 // RequirementLevel: Recommended
3907 // Stability: Stable
3908 //
3909 // Examples: "102", "ORA-17002", "08P01", "404"
3910 // Note: The status code returned by the database. Usually it represents an
3911 // error code, but may also represent partial success, warning, or differentiate
3912 // between various types of successful outcomes.
3913 // Semantic conventions for individual database systems SHOULD document what
3914 // `db.response.status_code` means in the context of that system.
3915 DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
3916
3917 // DBStoredProcedureNameKey is the attribute Key conforming to the
3918 // "db.stored_procedure.name" semantic conventions. It represents the name of a
3919 // stored procedure within the database.
3920 //
3921 // Type: string
3922 // RequirementLevel: Recommended
3923 // Stability: Stable
3924 //
3925 // Examples: "GetCustomer"
3926 // Note: It is RECOMMENDED to capture the value as provided by the application
3927 // without attempting to do any case normalization.
3928 //
3929 // For batch operations, if the individual operations are known to have the same
3930 // stored procedure name then that stored procedure name SHOULD be used.
3931 DBStoredProcedureNameKey = attribute.Key("db.stored_procedure.name")
3932
3933 // DBSystemNameKey is the attribute Key conforming to the "db.system.name"
3934 // semantic conventions. It represents the database management system (DBMS)
3935 // product as identified by the client instrumentation.
3936 //
3937 // Type: Enum
3938 // RequirementLevel: Recommended
3939 // Stability: Stable
3940 //
3941 // Examples:
3942 // Note: The actual DBMS may differ from the one identified by the client. For
3943 // example, when using PostgreSQL client libraries to connect to a CockroachDB,
3944 // the `db.system.name` is set to `postgresql` based on the instrumentation's
3945 // best knowledge.
3946 DBSystemNameKey = attribute.Key("db.system.name")
3947 )
3948
3949 // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
3950 // "db.client.connection.pool.name" semantic conventions. It represents the name
3951 // of the connection pool; unique within the instrumented application. In case
3952 // the connection pool implementation doesn't provide a name, instrumentation
3953 // SHOULD use a combination of parameters that would make the name unique, for
3954 // example, combining attributes `server.address`, `server.port`, and
3955 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3956 // Instrumentations that generate connection pool name following different
3957 // patterns SHOULD document it.
3958 func DBClientConnectionPoolName(val string) attribute.KeyValue {
3959 return DBClientConnectionPoolNameKey.String(val)
3960 }
3961
3962 // DBCollectionName returns an attribute KeyValue conforming to the
3963 // "db.collection.name" semantic conventions. It represents the name of a
3964 // collection (table, container) within the database.
3965 func DBCollectionName(val string) attribute.KeyValue {
3966 return DBCollectionNameKey.String(val)
3967 }
3968
3969 // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
3970 // semantic conventions. It represents the name of the database, fully qualified
3971 // within the server address and port.
3972 func DBNamespace(val string) attribute.KeyValue {
3973 return DBNamespaceKey.String(val)
3974 }
3975
3976 // DBOperationBatchSize returns an attribute KeyValue conforming to the
3977 // "db.operation.batch.size" semantic conventions. It represents the number of
3978 // queries included in a batch operation.
3979 func DBOperationBatchSize(val int) attribute.KeyValue {
3980 return DBOperationBatchSizeKey.Int(val)
3981 }
3982
3983 // DBOperationName returns an attribute KeyValue conforming to the
3984 // "db.operation.name" semantic conventions. It represents the name of the
3985 // operation or command being executed.
3986 func DBOperationName(val string) attribute.KeyValue {
3987 return DBOperationNameKey.String(val)
3988 }
3989
3990 // DBOperationParameter returns an attribute KeyValue conforming to the
3991 // "db.operation.parameter" semantic conventions. It represents a database
3992 // operation parameter, with `<key>` being the parameter name, and the attribute
3993 // value being a string representation of the parameter value.
3994 func DBOperationParameter(key string, val string) attribute.KeyValue {
3995 return attribute.String("db.operation.parameter."+key, val)
3996 }
3997
3998 // DBQueryParameter returns an attribute KeyValue conforming to the
3999 // "db.query.parameter" semantic conventions. It represents a database query
4000 // parameter, with `<key>` being the parameter name, and the attribute value
4001 // being a string representation of the parameter value.
4002 func DBQueryParameter(key string, val string) attribute.KeyValue {
4003 return attribute.String("db.query.parameter."+key, val)
4004 }
4005
4006 // DBQuerySummary returns an attribute KeyValue conforming to the
4007 // "db.query.summary" semantic conventions. It represents the low cardinality
4008 // summary of a database query.
4009 func DBQuerySummary(val string) attribute.KeyValue {
4010 return DBQuerySummaryKey.String(val)
4011 }
4012
4013 // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
4014 // semantic conventions. It represents the database query being executed.
4015 func DBQueryText(val string) attribute.KeyValue {
4016 return DBQueryTextKey.String(val)
4017 }
4018
4019 // DBResponseReturnedRows returns an attribute KeyValue conforming to the
4020 // "db.response.returned_rows" semantic conventions. It represents the number of
4021 // rows returned by the operation.
4022 func DBResponseReturnedRows(val int) attribute.KeyValue {
4023 return DBResponseReturnedRowsKey.Int(val)
4024 }
4025
4026 // DBResponseStatusCode returns an attribute KeyValue conforming to the
4027 // "db.response.status_code" semantic conventions. It represents the database
4028 // response status code.
4029 func DBResponseStatusCode(val string) attribute.KeyValue {
4030 return DBResponseStatusCodeKey.String(val)
4031 }
4032
4033 // DBStoredProcedureName returns an attribute KeyValue conforming to the
4034 // "db.stored_procedure.name" semantic conventions. It represents the name of a
4035 // stored procedure within the database.
4036 func DBStoredProcedureName(val string) attribute.KeyValue {
4037 return DBStoredProcedureNameKey.String(val)
4038 }
4039
4040 // Enum values for db.client.connection.state
4041 var (
4042 // idle
4043 // Stability: development
4044 DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
4045 // used
4046 // Stability: development
4047 DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
4048 )
4049
4050 // Enum values for db.system.name
4051 var (
4052 // Some other SQL database. Fallback only.
4053 // Stability: development
4054 DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql")
4055 // [Adabas (Adaptable Database System)]
4056 // Stability: development
4057 //
4058 // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas
4059 DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas")
4060 // [Actian Ingres]
4061 // Stability: development
4062 //
4063 // [Actian Ingres]: https://www.actian.com/databases/ingres/
4064 DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres")
4065 // [Amazon DynamoDB]
4066 // Stability: development
4067 //
4068 // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/
4069 DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb")
4070 // [Amazon Redshift]
4071 // Stability: development
4072 //
4073 // [Amazon Redshift]: https://aws.amazon.com/redshift/
4074 DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift")
4075 // [Azure Cosmos DB]
4076 // Stability: development
4077 //
4078 // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db
4079 DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb")
4080 // [InterSystems Caché]
4081 // Stability: development
4082 //
4083 // [InterSystems Caché]: https://www.intersystems.com/products/cache/
4084 DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache")
4085 // [Apache Cassandra]
4086 // Stability: development
4087 //
4088 // [Apache Cassandra]: https://cassandra.apache.org/
4089 DBSystemNameCassandra = DBSystemNameKey.String("cassandra")
4090 // [ClickHouse]
4091 // Stability: development
4092 //
4093 // [ClickHouse]: https://clickhouse.com/
4094 DBSystemNameClickHouse = DBSystemNameKey.String("clickhouse")
4095 // [CockroachDB]
4096 // Stability: development
4097 //
4098 // [CockroachDB]: https://www.cockroachlabs.com/
4099 DBSystemNameCockroachDB = DBSystemNameKey.String("cockroachdb")
4100 // [Couchbase]
4101 // Stability: development
4102 //
4103 // [Couchbase]: https://www.couchbase.com/
4104 DBSystemNameCouchbase = DBSystemNameKey.String("couchbase")
4105 // [Apache CouchDB]
4106 // Stability: development
4107 //
4108 // [Apache CouchDB]: https://couchdb.apache.org/
4109 DBSystemNameCouchDB = DBSystemNameKey.String("couchdb")
4110 // [Apache Derby]
4111 // Stability: development
4112 //
4113 // [Apache Derby]: https://db.apache.org/derby/
4114 DBSystemNameDerby = DBSystemNameKey.String("derby")
4115 // [Elasticsearch]
4116 // Stability: development
4117 //
4118 // [Elasticsearch]: https://www.elastic.co/elasticsearch
4119 DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch")
4120 // [Firebird]
4121 // Stability: development
4122 //
4123 // [Firebird]: https://www.firebirdsql.org/
4124 DBSystemNameFirebirdSQL = DBSystemNameKey.String("firebirdsql")
4125 // [Google Cloud Spanner]
4126 // Stability: development
4127 //
4128 // [Google Cloud Spanner]: https://cloud.google.com/spanner
4129 DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner")
4130 // [Apache Geode]
4131 // Stability: development
4132 //
4133 // [Apache Geode]: https://geode.apache.org/
4134 DBSystemNameGeode = DBSystemNameKey.String("geode")
4135 // [H2 Database]
4136 // Stability: development
4137 //
4138 // [H2 Database]: https://h2database.com/
4139 DBSystemNameH2database = DBSystemNameKey.String("h2database")
4140 // [Apache HBase]
4141 // Stability: development
4142 //
4143 // [Apache HBase]: https://hbase.apache.org/
4144 DBSystemNameHBase = DBSystemNameKey.String("hbase")
4145 // [Apache Hive]
4146 // Stability: development
4147 //
4148 // [Apache Hive]: https://hive.apache.org/
4149 DBSystemNameHive = DBSystemNameKey.String("hive")
4150 // [HyperSQL Database]
4151 // Stability: development
4152 //
4153 // [HyperSQL Database]: https://hsqldb.org/
4154 DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb")
4155 // [IBM Db2]
4156 // Stability: development
4157 //
4158 // [IBM Db2]: https://www.ibm.com/db2
4159 DBSystemNameIBMDB2 = DBSystemNameKey.String("ibm.db2")
4160 // [IBM Informix]
4161 // Stability: development
4162 //
4163 // [IBM Informix]: https://www.ibm.com/products/informix
4164 DBSystemNameIBMInformix = DBSystemNameKey.String("ibm.informix")
4165 // [IBM Netezza]
4166 // Stability: development
4167 //
4168 // [IBM Netezza]: https://www.ibm.com/products/netezza
4169 DBSystemNameIBMNetezza = DBSystemNameKey.String("ibm.netezza")
4170 // [InfluxDB]
4171 // Stability: development
4172 //
4173 // [InfluxDB]: https://www.influxdata.com/
4174 DBSystemNameInfluxDB = DBSystemNameKey.String("influxdb")
4175 // [Instant]
4176 // Stability: development
4177 //
4178 // [Instant]: https://www.instantdb.com/
4179 DBSystemNameInstantDB = DBSystemNameKey.String("instantdb")
4180 // [MariaDB]
4181 // Stability: stable
4182 //
4183 // [MariaDB]: https://mariadb.org/
4184 DBSystemNameMariaDB = DBSystemNameKey.String("mariadb")
4185 // [Memcached]
4186 // Stability: development
4187 //
4188 // [Memcached]: https://memcached.org/
4189 DBSystemNameMemcached = DBSystemNameKey.String("memcached")
4190 // [MongoDB]
4191 // Stability: development
4192 //
4193 // [MongoDB]: https://www.mongodb.com/
4194 DBSystemNameMongoDB = DBSystemNameKey.String("mongodb")
4195 // [Microsoft SQL Server]
4196 // Stability: stable
4197 //
4198 // [Microsoft SQL Server]: https://www.microsoft.com/sql-server
4199 DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server")
4200 // [MySQL]
4201 // Stability: stable
4202 //
4203 // [MySQL]: https://www.mysql.com/
4204 DBSystemNameMySQL = DBSystemNameKey.String("mysql")
4205 // [Neo4j]
4206 // Stability: development
4207 //
4208 // [Neo4j]: https://neo4j.com/
4209 DBSystemNameNeo4j = DBSystemNameKey.String("neo4j")
4210 // [OpenSearch]
4211 // Stability: development
4212 //
4213 // [OpenSearch]: https://opensearch.org/
4214 DBSystemNameOpenSearch = DBSystemNameKey.String("opensearch")
4215 // [Oracle Database]
4216 // Stability: development
4217 //
4218 // [Oracle Database]: https://www.oracle.com/database/
4219 DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db")
4220 // [PostgreSQL]
4221 // Stability: stable
4222 //
4223 // [PostgreSQL]: https://www.postgresql.org/
4224 DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql")
4225 // [Redis]
4226 // Stability: development
4227 //
4228 // [Redis]: https://redis.io/
4229 DBSystemNameRedis = DBSystemNameKey.String("redis")
4230 // [SAP HANA]
4231 // Stability: development
4232 //
4233 // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html
4234 DBSystemNameSAPHANA = DBSystemNameKey.String("sap.hana")
4235 // [SAP MaxDB]
4236 // Stability: development
4237 //
4238 // [SAP MaxDB]: https://maxdb.sap.com/
4239 DBSystemNameSAPMaxDB = DBSystemNameKey.String("sap.maxdb")
4240 // [SQLite]
4241 // Stability: development
4242 //
4243 // [SQLite]: https://www.sqlite.org/
4244 DBSystemNameSQLite = DBSystemNameKey.String("sqlite")
4245 // [Teradata]
4246 // Stability: development
4247 //
4248 // [Teradata]: https://www.teradata.com/
4249 DBSystemNameTeradata = DBSystemNameKey.String("teradata")
4250 // [Trino]
4251 // Stability: development
4252 //
4253 // [Trino]: https://trino.io/
4254 DBSystemNameTrino = DBSystemNameKey.String("trino")
4255 )
4256
4257 // Namespace: deployment
4258 const (
4259 // DeploymentEnvironmentNameKey is the attribute Key conforming to the
4260 // "deployment.environment.name" semantic conventions. It represents the name of
4261 // the [deployment environment] (aka deployment tier).
4262 //
4263 // Type: string
4264 // RequirementLevel: Recommended
4265 // Stability: Development
4266 //
4267 // Examples: "staging", "production"
4268 // Note: `deployment.environment.name` does not affect the uniqueness
4269 // constraints defined through
4270 // the `service.namespace`, `service.name` and `service.instance.id` resource
4271 // attributes.
4272 // This implies that resources carrying the following attribute combinations
4273 // MUST be
4274 // considered to be identifying the same service:
4275 //
4276 // - `service.name=frontend`, `deployment.environment.name=production`
4277 // - `service.name=frontend`, `deployment.environment.name=staging`.
4278 //
4279 //
4280 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
4281 DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
4282
4283 // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
4284 // semantic conventions. It represents the id of the deployment.
4285 //
4286 // Type: string
4287 // RequirementLevel: Recommended
4288 // Stability: Development
4289 //
4290 // Examples: "1208"
4291 DeploymentIDKey = attribute.Key("deployment.id")
4292
4293 // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
4294 // semantic conventions. It represents the name of the deployment.
4295 //
4296 // Type: string
4297 // RequirementLevel: Recommended
4298 // Stability: Development
4299 //
4300 // Examples: "deploy my app", "deploy-frontend"
4301 DeploymentNameKey = attribute.Key("deployment.name")
4302
4303 // DeploymentStatusKey is the attribute Key conforming to the
4304 // "deployment.status" semantic conventions. It represents the status of the
4305 // deployment.
4306 //
4307 // Type: Enum
4308 // RequirementLevel: Recommended
4309 // Stability: Development
4310 //
4311 // Examples:
4312 DeploymentStatusKey = attribute.Key("deployment.status")
4313 )
4314
4315 // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
4316 // "deployment.environment.name" semantic conventions. It represents the name of
4317 // the [deployment environment] (aka deployment tier).
4318 //
4319 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
4320 func DeploymentEnvironmentName(val string) attribute.KeyValue {
4321 return DeploymentEnvironmentNameKey.String(val)
4322 }
4323
4324 // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
4325 // semantic conventions. It represents the id of the deployment.
4326 func DeploymentID(val string) attribute.KeyValue {
4327 return DeploymentIDKey.String(val)
4328 }
4329
4330 // DeploymentName returns an attribute KeyValue conforming to the
4331 // "deployment.name" semantic conventions. It represents the name of the
4332 // deployment.
4333 func DeploymentName(val string) attribute.KeyValue {
4334 return DeploymentNameKey.String(val)
4335 }
4336
4337 // Enum values for deployment.status
4338 var (
4339 // failed
4340 // Stability: development
4341 DeploymentStatusFailed = DeploymentStatusKey.String("failed")
4342 // succeeded
4343 // Stability: development
4344 DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
4345 )
4346
4347 // Namespace: destination
4348 const (
4349 // DestinationAddressKey is the attribute Key conforming to the
4350 // "destination.address" semantic conventions. It represents the destination
4351 // address - domain name if available without reverse DNS lookup; otherwise, IP
4352 // address or Unix domain socket name.
4353 //
4354 // Type: string
4355 // RequirementLevel: Recommended
4356 // Stability: Development
4357 //
4358 // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
4359 // Note: When observed from the source side, and when communicating through an
4360 // intermediary, `destination.address` SHOULD represent the destination address
4361 // behind any intermediaries, for example proxies, if it's available.
4362 DestinationAddressKey = attribute.Key("destination.address")
4363
4364 // DestinationPortKey is the attribute Key conforming to the "destination.port"
4365 // semantic conventions. It represents the destination port number.
4366 //
4367 // Type: int
4368 // RequirementLevel: Recommended
4369 // Stability: Development
4370 //
4371 // Examples: 3389, 2888
4372 DestinationPortKey = attribute.Key("destination.port")
4373 )
4374
4375 // DestinationAddress returns an attribute KeyValue conforming to the
4376 // "destination.address" semantic conventions. It represents the destination
4377 // address - domain name if available without reverse DNS lookup; otherwise, IP
4378 // address or Unix domain socket name.
4379 func DestinationAddress(val string) attribute.KeyValue {
4380 return DestinationAddressKey.String(val)
4381 }
4382
4383 // DestinationPort returns an attribute KeyValue conforming to the
4384 // "destination.port" semantic conventions. It represents the destination port
4385 // number.
4386 func DestinationPort(val int) attribute.KeyValue {
4387 return DestinationPortKey.Int(val)
4388 }
4389
4390 // Namespace: device
4391 const (
4392 // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
4393 // conventions. It represents a unique identifier representing the device.
4394 //
4395 // Type: string
4396 // RequirementLevel: Recommended
4397 // Stability: Development
4398 //
4399 // Examples: "123456789012345", "01:23:45:67:89:AB"
4400 // Note: Its value SHOULD be identical for all apps on a device and it SHOULD
4401 // NOT change if an app is uninstalled and re-installed.
4402 // However, it might be resettable by the user for all apps on a device.
4403 // Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) MAY be
4404 // used as values.
4405 //
4406 // More information about Android identifier best practices can be found in the
4407 // [Android user data IDs guide].
4408 //
4409 // > [!WARNING]> This attribute may contain sensitive (PII) information. Caution
4410 // > should be taken when storing personal data or anything which can identify a
4411 // > user. GDPR and data protection laws may apply,
4412 // > ensure you do your own due diligence.> Due to these reasons, this
4413 // > identifier is not recommended for consumer applications and will likely
4414 // > result in rejection from both Google Play and App Store.
4415 // > However, it may be appropriate for specific enterprise scenarios, such as
4416 // > kiosk devices or enterprise-managed devices, with appropriate compliance
4417 // > clearance.
4418 // > Any instrumentation providing this identifier MUST implement it as an
4419 // > opt-in feature.> See [`app.installation.id`]> for a more
4420 // > privacy-preserving alternative.
4421 //
4422 // [Android user data IDs guide]: https://developer.android.com/training/articles/user-data-ids
4423 // [`app.installation.id`]: /docs/registry/attributes/app.md#app-installation-id
4424 DeviceIDKey = attribute.Key("device.id")
4425
4426 // DeviceManufacturerKey is the attribute Key conforming to the
4427 // "device.manufacturer" semantic conventions. It represents the name of the
4428 // device manufacturer.
4429 //
4430 // Type: string
4431 // RequirementLevel: Recommended
4432 // Stability: Development
4433 //
4434 // Examples: "Apple", "Samsung"
4435 // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
4436 // hardcode the value `Apple`.
4437 //
4438 // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
4439 DeviceManufacturerKey = attribute.Key("device.manufacturer")
4440
4441 // DeviceModelIdentifierKey is the attribute Key conforming to the
4442 // "device.model.identifier" semantic conventions. It represents the model
4443 // identifier for the device.
4444 //
4445 // Type: string
4446 // RequirementLevel: Recommended
4447 // Stability: Development
4448 //
4449 // Examples: "iPhone3,4", "SM-G920F"
4450 // Note: It's recommended this value represents a machine-readable version of
4451 // the model identifier rather than the market or consumer-friendly name of the
4452 // device.
4453 DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
4454
4455 // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
4456 // semantic conventions. It represents the marketing name for the device model.
4457 //
4458 // Type: string
4459 // RequirementLevel: Recommended
4460 // Stability: Development
4461 //
4462 // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
4463 // Note: It's recommended this value represents a human-readable version of the
4464 // device model rather than a machine-readable alternative.
4465 DeviceModelNameKey = attribute.Key("device.model.name")
4466 )
4467
4468 // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
4469 // conventions. It represents a unique identifier representing the device.
4470 func DeviceID(val string) attribute.KeyValue {
4471 return DeviceIDKey.String(val)
4472 }
4473
4474 // DeviceManufacturer returns an attribute KeyValue conforming to the
4475 // "device.manufacturer" semantic conventions. It represents the name of the
4476 // device manufacturer.
4477 func DeviceManufacturer(val string) attribute.KeyValue {
4478 return DeviceManufacturerKey.String(val)
4479 }
4480
4481 // DeviceModelIdentifier returns an attribute KeyValue conforming to the
4482 // "device.model.identifier" semantic conventions. It represents the model
4483 // identifier for the device.
4484 func DeviceModelIdentifier(val string) attribute.KeyValue {
4485 return DeviceModelIdentifierKey.String(val)
4486 }
4487
4488 // DeviceModelName returns an attribute KeyValue conforming to the
4489 // "device.model.name" semantic conventions. It represents the marketing name for
4490 // the device model.
4491 func DeviceModelName(val string) attribute.KeyValue {
4492 return DeviceModelNameKey.String(val)
4493 }
4494
4495 // Namespace: disk
4496 const (
4497 // DiskIODirectionKey is the attribute Key conforming to the "disk.io.direction"
4498 // semantic conventions. It represents the disk IO operation direction.
4499 //
4500 // Type: Enum
4501 // RequirementLevel: Recommended
4502 // Stability: Development
4503 //
4504 // Examples: "read"
4505 DiskIODirectionKey = attribute.Key("disk.io.direction")
4506 )
4507
4508 // Enum values for disk.io.direction
4509 var (
4510 // read
4511 // Stability: development
4512 DiskIODirectionRead = DiskIODirectionKey.String("read")
4513 // write
4514 // Stability: development
4515 DiskIODirectionWrite = DiskIODirectionKey.String("write")
4516 )
4517
4518 // Namespace: dns
4519 const (
4520 // DNSAnswersKey is the attribute Key conforming to the "dns.answers" semantic
4521 // conventions. It represents the list of IPv4 or IPv6 addresses resolved during
4522 // DNS lookup.
4523 //
4524 // Type: string[]
4525 // RequirementLevel: Recommended
4526 // Stability: Development
4527 //
4528 // Examples: "10.0.0.1", "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
4529 DNSAnswersKey = attribute.Key("dns.answers")
4530
4531 // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
4532 // semantic conventions. It represents the name being queried.
4533 //
4534 // Type: string
4535 // RequirementLevel: Recommended
4536 // Stability: Development
4537 //
4538 // Examples: "www.example.com", "opentelemetry.io"
4539 // Note: The name represents the queried domain name as it appears in the DNS
4540 // query without any additional normalization.
4541 DNSQuestionNameKey = attribute.Key("dns.question.name")
4542 )
4543
4544 // DNSAnswers returns an attribute KeyValue conforming to the "dns.answers"
4545 // semantic conventions. It represents the list of IPv4 or IPv6 addresses
4546 // resolved during DNS lookup.
4547 func DNSAnswers(val ...string) attribute.KeyValue {
4548 return DNSAnswersKey.StringSlice(val)
4549 }
4550
4551 // DNSQuestionName returns an attribute KeyValue conforming to the
4552 // "dns.question.name" semantic conventions. It represents the name being
4553 // queried.
4554 func DNSQuestionName(val string) attribute.KeyValue {
4555 return DNSQuestionNameKey.String(val)
4556 }
4557
4558 // Namespace: elasticsearch
4559 const (
4560 // ElasticsearchNodeNameKey is the attribute Key conforming to the
4561 // "elasticsearch.node.name" semantic conventions. It represents the represents
4562 // the human-readable identifier of the node/instance to which a request was
4563 // routed.
4564 //
4565 // Type: string
4566 // RequirementLevel: Recommended
4567 // Stability: Development
4568 //
4569 // Examples: "instance-0000000001"
4570 ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name")
4571 )
4572
4573 // ElasticsearchNodeName returns an attribute KeyValue conforming to the
4574 // "elasticsearch.node.name" semantic conventions. It represents the represents
4575 // the human-readable identifier of the node/instance to which a request was
4576 // routed.
4577 func ElasticsearchNodeName(val string) attribute.KeyValue {
4578 return ElasticsearchNodeNameKey.String(val)
4579 }
4580
4581 // Namespace: enduser
4582 const (
4583 // EnduserIDKey is the attribute Key conforming to the "enduser.id" semantic
4584 // conventions. It represents the unique identifier of an end user in the
4585 // system. It maybe a username, email address, or other identifier.
4586 //
4587 // Type: string
4588 // RequirementLevel: Recommended
4589 // Stability: Development
4590 //
4591 // Examples: "username"
4592 // Note: Unique identifier of an end user in the system.
4593 //
4594 // > [!Warning]
4595 // > This field contains sensitive (PII) information.
4596 EnduserIDKey = attribute.Key("enduser.id")
4597
4598 // EnduserPseudoIDKey is the attribute Key conforming to the "enduser.pseudo.id"
4599 // semantic conventions. It represents the pseudonymous identifier of an end
4600 // user. This identifier should be a random value that is not directly linked or
4601 // associated with the end user's actual identity.
4602 //
4603 // Type: string
4604 // RequirementLevel: Recommended
4605 // Stability: Development
4606 //
4607 // Examples: "QdH5CAWJgqVT4rOr0qtumf"
4608 // Note: Pseudonymous identifier of an end user.
4609 //
4610 // > [!Warning]
4611 // > This field contains sensitive (linkable PII) information.
4612 EnduserPseudoIDKey = attribute.Key("enduser.pseudo.id")
4613 )
4614
4615 // EnduserID returns an attribute KeyValue conforming to the "enduser.id"
4616 // semantic conventions. It represents the unique identifier of an end user in
4617 // the system. It maybe a username, email address, or other identifier.
4618 func EnduserID(val string) attribute.KeyValue {
4619 return EnduserIDKey.String(val)
4620 }
4621
4622 // EnduserPseudoID returns an attribute KeyValue conforming to the
4623 // "enduser.pseudo.id" semantic conventions. It represents the pseudonymous
4624 // identifier of an end user. This identifier should be a random value that is
4625 // not directly linked or associated with the end user's actual identity.
4626 func EnduserPseudoID(val string) attribute.KeyValue {
4627 return EnduserPseudoIDKey.String(val)
4628 }
4629
4630 // Namespace: error
4631 const (
4632 // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
4633 // conventions. It represents the describes a class of error the operation ended
4634 // with.
4635 //
4636 // Type: Enum
4637 // RequirementLevel: Recommended
4638 // Stability: Stable
4639 //
4640 // Examples: "timeout", "java.net.UnknownHostException",
4641 // "server_certificate_invalid", "500"
4642 // Note: The `error.type` SHOULD be predictable, and SHOULD have low
4643 // cardinality.
4644 //
4645 // When `error.type` is set to a type (e.g., an exception type), its
4646 // canonical class name identifying the type within the artifact SHOULD be used.
4647 //
4648 // Instrumentations SHOULD document the list of errors they report.
4649 //
4650 // The cardinality of `error.type` within one instrumentation library SHOULD be
4651 // low.
4652 // Telemetry consumers that aggregate data from multiple instrumentation
4653 // libraries and applications
4654 // should be prepared for `error.type` to have high cardinality at query time
4655 // when no
4656 // additional filters are applied.
4657 //
4658 // If the operation has completed successfully, instrumentations SHOULD NOT set
4659 // `error.type`.
4660 //
4661 // If a specific domain defines its own set of error identifiers (such as HTTP
4662 // or RPC status codes),
4663 // it's RECOMMENDED to:
4664 //
4665 // - Use a domain-specific attribute
4666 // - Set `error.type` to capture all errors, regardless of whether they are
4667 // defined within the domain-specific set or not.
4668 ErrorTypeKey = attribute.Key("error.type")
4669 )
4670
4671 // Enum values for error.type
4672 var (
4673 // A fallback error value to be used when the instrumentation doesn't define a
4674 // custom value.
4675 //
4676 // Stability: stable
4677 ErrorTypeOther = ErrorTypeKey.String("_OTHER")
4678 )
4679
4680 // Namespace: exception
4681 const (
4682 // ExceptionMessageKey is the attribute Key conforming to the
4683 // "exception.message" semantic conventions. It represents the exception
4684 // message.
4685 //
4686 // Type: string
4687 // RequirementLevel: Recommended
4688 // Stability: Stable
4689 //
4690 // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
4691 // Note: > [!WARNING]
4692 //
4693 // > This attribute may contain sensitive information.
4694 ExceptionMessageKey = attribute.Key("exception.message")
4695
4696 // ExceptionStacktraceKey is the attribute Key conforming to the
4697 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4698 // string in the natural representation for the language runtime. The
4699 // representation is to be determined and documented by each language SIG.
4700 //
4701 // Type: string
4702 // RequirementLevel: Recommended
4703 // Stability: Stable
4704 //
4705 // Examples: Exception in thread "main" java.lang.RuntimeException: Test
4706 // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
4707 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
4708 // com.example.GenerateTrace.main(GenerateTrace.java:5)
4709 ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
4710
4711 // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
4712 // semantic conventions. It represents the type of the exception (its
4713 // fully-qualified class name, if applicable). The dynamic type of the exception
4714 // should be preferred over the static type in languages that support it.
4715 //
4716 // Type: string
4717 // RequirementLevel: Recommended
4718 // Stability: Stable
4719 //
4720 // Examples: "java.net.ConnectException", "OSError"
4721 ExceptionTypeKey = attribute.Key("exception.type")
4722 )
4723
4724 // ExceptionMessage returns an attribute KeyValue conforming to the
4725 // "exception.message" semantic conventions. It represents the exception message.
4726 func ExceptionMessage(val string) attribute.KeyValue {
4727 return ExceptionMessageKey.String(val)
4728 }
4729
4730 // ExceptionStacktrace returns an attribute KeyValue conforming to the
4731 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4732 // string in the natural representation for the language runtime. The
4733 // representation is to be determined and documented by each language SIG.
4734 func ExceptionStacktrace(val string) attribute.KeyValue {
4735 return ExceptionStacktraceKey.String(val)
4736 }
4737
4738 // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
4739 // semantic conventions. It represents the type of the exception (its
4740 // fully-qualified class name, if applicable). The dynamic type of the exception
4741 // should be preferred over the static type in languages that support it.
4742 func ExceptionType(val string) attribute.KeyValue {
4743 return ExceptionTypeKey.String(val)
4744 }
4745
4746 // Namespace: faas
4747 const (
4748 // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
4749 // semantic conventions. It represents a boolean that is true if the serverless
4750 // function is executed for the first time (aka cold-start).
4751 //
4752 // Type: boolean
4753 // RequirementLevel: Recommended
4754 // Stability: Development
4755 //
4756 // Examples:
4757 FaaSColdstartKey = attribute.Key("faas.coldstart")
4758
4759 // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
4760 // conventions. It represents a string containing the schedule period as
4761 // [Cron Expression].
4762 //
4763 // Type: string
4764 // RequirementLevel: Recommended
4765 // Stability: Development
4766 //
4767 // Examples: 0/5 * * * ? *
4768 //
4769 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4770 FaaSCronKey = attribute.Key("faas.cron")
4771
4772 // FaaSDocumentCollectionKey is the attribute Key conforming to the
4773 // "faas.document.collection" semantic conventions. It represents the name of
4774 // the source on which the triggering operation was performed. For example, in
4775 // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
4776 // database name.
4777 //
4778 // Type: string
4779 // RequirementLevel: Recommended
4780 // Stability: Development
4781 //
4782 // Examples: "myBucketName", "myDbName"
4783 FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
4784
4785 // FaaSDocumentNameKey is the attribute Key conforming to the
4786 // "faas.document.name" semantic conventions. It represents the document
4787 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4788 // the name of the file, and in Cosmos DB the table name.
4789 //
4790 // Type: string
4791 // RequirementLevel: Recommended
4792 // Stability: Development
4793 //
4794 // Examples: "myFile.txt", "myTableName"
4795 FaaSDocumentNameKey = attribute.Key("faas.document.name")
4796
4797 // FaaSDocumentOperationKey is the attribute Key conforming to the
4798 // "faas.document.operation" semantic conventions. It represents the describes
4799 // the type of the operation that was performed on the data.
4800 //
4801 // Type: Enum
4802 // RequirementLevel: Recommended
4803 // Stability: Development
4804 //
4805 // Examples:
4806 FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
4807
4808 // FaaSDocumentTimeKey is the attribute Key conforming to the
4809 // "faas.document.time" semantic conventions. It represents a string containing
4810 // the time when the data was accessed in the [ISO 8601] format expressed in
4811 // [UTC].
4812 //
4813 // Type: string
4814 // RequirementLevel: Recommended
4815 // Stability: Development
4816 //
4817 // Examples: 2020-01-23T13:47:06Z
4818 //
4819 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4820 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4821 FaaSDocumentTimeKey = attribute.Key("faas.document.time")
4822
4823 // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
4824 // semantic conventions. It represents the execution environment ID as a string,
4825 // that will be potentially reused for other invocations to the same
4826 // function/function version.
4827 //
4828 // Type: string
4829 // RequirementLevel: Recommended
4830 // Stability: Development
4831 //
4832 // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
4833 // Note: - **AWS Lambda:** Use the (full) log stream name.
4834 FaaSInstanceKey = attribute.Key("faas.instance")
4835
4836 // FaaSInvocationIDKey is the attribute Key conforming to the
4837 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4838 // the current function invocation.
4839 //
4840 // Type: string
4841 // RequirementLevel: Recommended
4842 // Stability: Development
4843 //
4844 // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
4845 FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
4846
4847 // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
4848 // semantic conventions. It represents the name of the invoked function.
4849 //
4850 // Type: string
4851 // RequirementLevel: Recommended
4852 // Stability: Development
4853 //
4854 // Examples: my-function
4855 // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
4856 // function.
4857 FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
4858
4859 // FaaSInvokedProviderKey is the attribute Key conforming to the
4860 // "faas.invoked_provider" semantic conventions. It represents the cloud
4861 // provider of the invoked function.
4862 //
4863 // Type: Enum
4864 // RequirementLevel: Recommended
4865 // Stability: Development
4866 //
4867 // Examples:
4868 // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
4869 // invoked function.
4870 FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
4871
4872 // FaaSInvokedRegionKey is the attribute Key conforming to the
4873 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4874 // the invoked function.
4875 //
4876 // Type: string
4877 // RequirementLevel: Recommended
4878 // Stability: Development
4879 //
4880 // Examples: eu-central-1
4881 // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
4882 // function.
4883 FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
4884
4885 // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
4886 // semantic conventions. It represents the amount of memory available to the
4887 // serverless function converted to Bytes.
4888 //
4889 // Type: int
4890 // RequirementLevel: Recommended
4891 // Stability: Development
4892 //
4893 // Note: It's recommended to set this attribute since e.g. too little memory can
4894 // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
4895 // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
4896 // information (which must be multiplied by 1,048,576).
4897 FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
4898
4899 // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
4900 // conventions. It represents the name of the single function that this runtime
4901 // instance executes.
4902 //
4903 // Type: string
4904 // RequirementLevel: Recommended
4905 // Stability: Development
4906 //
4907 // Examples: "my-function", "myazurefunctionapp/some-function-name"
4908 // Note: This is the name of the function as configured/deployed on the FaaS
4909 // platform and is usually different from the name of the callback
4910 // function (which may be stored in the
4911 // [`code.namespace`/`code.function.name`]
4912 // span attributes).
4913 //
4914 // For some cloud providers, the above definition is ambiguous. The following
4915 // definition of function name MUST be used for this attribute
4916 // (and consequently the span name) for the listed cloud providers/products:
4917 //
4918 // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
4919 // followed by a forward slash followed by the function name (this form
4920 // can also be seen in the resource JSON for the function).
4921 // This means that a span attribute MUST be used, as an Azure function
4922 // app can host multiple functions that would usually share
4923 // a TracerProvider (see also the `cloud.resource_id` attribute).
4924 //
4925 //
4926 // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes
4927 FaaSNameKey = attribute.Key("faas.name")
4928
4929 // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
4930 // conventions. It represents a string containing the function invocation time
4931 // in the [ISO 8601] format expressed in [UTC].
4932 //
4933 // Type: string
4934 // RequirementLevel: Recommended
4935 // Stability: Development
4936 //
4937 // Examples: 2020-01-23T13:47:06Z
4938 //
4939 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4940 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4941 FaaSTimeKey = attribute.Key("faas.time")
4942
4943 // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
4944 // conventions. It represents the type of the trigger which caused this function
4945 // invocation.
4946 //
4947 // Type: Enum
4948 // RequirementLevel: Recommended
4949 // Stability: Development
4950 //
4951 // Examples:
4952 FaaSTriggerKey = attribute.Key("faas.trigger")
4953
4954 // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
4955 // conventions. It represents the immutable version of the function being
4956 // executed.
4957 //
4958 // Type: string
4959 // RequirementLevel: Recommended
4960 // Stability: Development
4961 //
4962 // Examples: "26", "pinkfroid-00002"
4963 // Note: Depending on the cloud provider and platform, use:
4964 //
4965 // - **AWS Lambda:** The [function version]
4966 // (an integer represented as a decimal string).
4967 // - **Google Cloud Run (Services):** The [revision]
4968 // (i.e., the function name plus the revision suffix).
4969 // - **Google Cloud Functions:** The value of the
4970 // [`K_REVISION` environment variable].
4971 // - **Azure Functions:** Not applicable. Do not set this attribute.
4972 //
4973 //
4974 // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
4975 // [revision]: https://cloud.google.com/run/docs/managing/revisions
4976 // [`K_REVISION` environment variable]: https://cloud.google.com/run/docs/container-contract#services-env-vars
4977 FaaSVersionKey = attribute.Key("faas.version")
4978 )
4979
4980 // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
4981 // semantic conventions. It represents a boolean that is true if the serverless
4982 // function is executed for the first time (aka cold-start).
4983 func FaaSColdstart(val bool) attribute.KeyValue {
4984 return FaaSColdstartKey.Bool(val)
4985 }
4986
4987 // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
4988 // conventions. It represents a string containing the schedule period as
4989 // [Cron Expression].
4990 //
4991 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4992 func FaaSCron(val string) attribute.KeyValue {
4993 return FaaSCronKey.String(val)
4994 }
4995
4996 // FaaSDocumentCollection returns an attribute KeyValue conforming to the
4997 // "faas.document.collection" semantic conventions. It represents the name of the
4998 // source on which the triggering operation was performed. For example, in Cloud
4999 // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
5000 // name.
5001 func FaaSDocumentCollection(val string) attribute.KeyValue {
5002 return FaaSDocumentCollectionKey.String(val)
5003 }
5004
5005 // FaaSDocumentName returns an attribute KeyValue conforming to the
5006 // "faas.document.name" semantic conventions. It represents the document
5007 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
5008 // the name of the file, and in Cosmos DB the table name.
5009 func FaaSDocumentName(val string) attribute.KeyValue {
5010 return FaaSDocumentNameKey.String(val)
5011 }
5012
5013 // FaaSDocumentTime returns an attribute KeyValue conforming to the
5014 // "faas.document.time" semantic conventions. It represents a string containing
5015 // the time when the data was accessed in the [ISO 8601] format expressed in
5016 // [UTC].
5017 //
5018 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
5019 // [UTC]: https://www.w3.org/TR/NOTE-datetime
5020 func FaaSDocumentTime(val string) attribute.KeyValue {
5021 return FaaSDocumentTimeKey.String(val)
5022 }
5023
5024 // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
5025 // semantic conventions. It represents the execution environment ID as a string,
5026 // that will be potentially reused for other invocations to the same
5027 // function/function version.
5028 func FaaSInstance(val string) attribute.KeyValue {
5029 return FaaSInstanceKey.String(val)
5030 }
5031
5032 // FaaSInvocationID returns an attribute KeyValue conforming to the
5033 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
5034 // the current function invocation.
5035 func FaaSInvocationID(val string) attribute.KeyValue {
5036 return FaaSInvocationIDKey.String(val)
5037 }
5038
5039 // FaaSInvokedName returns an attribute KeyValue conforming to the
5040 // "faas.invoked_name" semantic conventions. It represents the name of the
5041 // invoked function.
5042 func FaaSInvokedName(val string) attribute.KeyValue {
5043 return FaaSInvokedNameKey.String(val)
5044 }
5045
5046 // FaaSInvokedRegion returns an attribute KeyValue conforming to the
5047 // "faas.invoked_region" semantic conventions. It represents the cloud region of
5048 // the invoked function.
5049 func FaaSInvokedRegion(val string) attribute.KeyValue {
5050 return FaaSInvokedRegionKey.String(val)
5051 }
5052
5053 // FaaSMaxMemory returns an attribute KeyValue conforming to the
5054 // "faas.max_memory" semantic conventions. It represents the amount of memory
5055 // available to the serverless function converted to Bytes.
5056 func FaaSMaxMemory(val int) attribute.KeyValue {
5057 return FaaSMaxMemoryKey.Int(val)
5058 }
5059
5060 // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
5061 // conventions. It represents the name of the single function that this runtime
5062 // instance executes.
5063 func FaaSName(val string) attribute.KeyValue {
5064 return FaaSNameKey.String(val)
5065 }
5066
5067 // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
5068 // conventions. It represents a string containing the function invocation time in
5069 // the [ISO 8601] format expressed in [UTC].
5070 //
5071 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
5072 // [UTC]: https://www.w3.org/TR/NOTE-datetime
5073 func FaaSTime(val string) attribute.KeyValue {
5074 return FaaSTimeKey.String(val)
5075 }
5076
5077 // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
5078 // semantic conventions. It represents the immutable version of the function
5079 // being executed.
5080 func FaaSVersion(val string) attribute.KeyValue {
5081 return FaaSVersionKey.String(val)
5082 }
5083
5084 // Enum values for faas.document.operation
5085 var (
5086 // When a new object is created.
5087 // Stability: development
5088 FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
5089 // When an object is modified.
5090 // Stability: development
5091 FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
5092 // When an object is deleted.
5093 // Stability: development
5094 FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
5095 )
5096
5097 // Enum values for faas.invoked_provider
5098 var (
5099 // Alibaba Cloud
5100 // Stability: development
5101 FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
5102 // Amazon Web Services
5103 // Stability: development
5104 FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
5105 // Microsoft Azure
5106 // Stability: development
5107 FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
5108 // Google Cloud Platform
5109 // Stability: development
5110 FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
5111 // Tencent Cloud
5112 // Stability: development
5113 FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
5114 )
5115
5116 // Enum values for faas.trigger
5117 var (
5118 // A response to some data source operation such as a database or filesystem
5119 // read/write
5120 // Stability: development
5121 FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
5122 // To provide an answer to an inbound HTTP request
5123 // Stability: development
5124 FaaSTriggerHTTP = FaaSTriggerKey.String("http")
5125 // A function is set to be executed when messages are sent to a messaging system
5126 // Stability: development
5127 FaaSTriggerPubSub = FaaSTriggerKey.String("pubsub")
5128 // A function is scheduled to be executed regularly
5129 // Stability: development
5130 FaaSTriggerTimer = FaaSTriggerKey.String("timer")
5131 // If none of the others apply
5132 // Stability: development
5133 FaaSTriggerOther = FaaSTriggerKey.String("other")
5134 )
5135
5136 // Namespace: feature_flag
5137 const (
5138 // FeatureFlagContextIDKey is the attribute Key conforming to the
5139 // "feature_flag.context.id" semantic conventions. It represents the unique
5140 // identifier for the flag evaluation context. For example, the targeting key.
5141 //
5142 // Type: string
5143 // RequirementLevel: Recommended
5144 // Stability: Release_Candidate
5145 //
5146 // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db"
5147 FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id")
5148
5149 // FeatureFlagErrorMessageKey is the attribute Key conforming to the
5150 // "feature_flag.error.message" semantic conventions. It represents a message
5151 // providing more detail about an error that occurred during feature flag
5152 // evaluation in human-readable form.
5153 //
5154 // Type: string
5155 // RequirementLevel: Recommended
5156 // Stability: Release_Candidate
5157 //
5158 // Examples: "Unexpected input type: string", "The user has exceeded their
5159 // storage quota"
5160 FeatureFlagErrorMessageKey = attribute.Key("feature_flag.error.message")
5161
5162 // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
5163 // semantic conventions. It represents the lookup key of the feature flag.
5164 //
5165 // Type: string
5166 // RequirementLevel: Recommended
5167 // Stability: Release_Candidate
5168 //
5169 // Examples: "logo-color"
5170 FeatureFlagKeyKey = attribute.Key("feature_flag.key")
5171
5172 // FeatureFlagProviderNameKey is the attribute Key conforming to the
5173 // "feature_flag.provider.name" semantic conventions. It represents the
5174 // identifies the feature flag provider.
5175 //
5176 // Type: string
5177 // RequirementLevel: Recommended
5178 // Stability: Release_Candidate
5179 //
5180 // Examples: "Flag Manager"
5181 FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider.name")
5182
5183 // FeatureFlagResultReasonKey is the attribute Key conforming to the
5184 // "feature_flag.result.reason" semantic conventions. It represents the reason
5185 // code which shows how a feature flag value was determined.
5186 //
5187 // Type: Enum
5188 // RequirementLevel: Recommended
5189 // Stability: Release_Candidate
5190 //
5191 // Examples: "static", "targeting_match", "error", "default"
5192 FeatureFlagResultReasonKey = attribute.Key("feature_flag.result.reason")
5193
5194 // FeatureFlagResultValueKey is the attribute Key conforming to the
5195 // "feature_flag.result.value" semantic conventions. It represents the evaluated
5196 // value of the feature flag.
5197 //
5198 // Type: any
5199 // RequirementLevel: Recommended
5200 // Stability: Release_Candidate
5201 //
5202 // Examples: "#ff0000", true, 3
5203 // Note: With some feature flag providers, feature flag results can be quite
5204 // large or contain private or sensitive details.
5205 // Because of this, `feature_flag.result.variant` is often the preferred
5206 // attribute if it is available.
5207 //
5208 // It may be desirable to redact or otherwise limit the size and scope of
5209 // `feature_flag.result.value` if possible.
5210 // Because the evaluated flag value is unstructured and may be any type, it is
5211 // left to the instrumentation author to determine how best to achieve this.
5212 FeatureFlagResultValueKey = attribute.Key("feature_flag.result.value")
5213
5214 // FeatureFlagResultVariantKey is the attribute Key conforming to the
5215 // "feature_flag.result.variant" semantic conventions. It represents a semantic
5216 // identifier for an evaluated flag value.
5217 //
5218 // Type: string
5219 // RequirementLevel: Recommended
5220 // Stability: Release_Candidate
5221 //
5222 // Examples: "red", "true", "on"
5223 // Note: A semantic identifier, commonly referred to as a variant, provides a
5224 // means
5225 // for referring to a value without including the value itself. This can
5226 // provide additional context for understanding the meaning behind a value.
5227 // For example, the variant `red` maybe be used for the value `#c05543`.
5228 FeatureFlagResultVariantKey = attribute.Key("feature_flag.result.variant")
5229
5230 // FeatureFlagSetIDKey is the attribute Key conforming to the
5231 // "feature_flag.set.id" semantic conventions. It represents the identifier of
5232 // the [flag set] to which the feature flag belongs.
5233 //
5234 // Type: string
5235 // RequirementLevel: Recommended
5236 // Stability: Release_Candidate
5237 //
5238 // Examples: "proj-1", "ab98sgs", "service1/dev"
5239 //
5240 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
5241 FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id")
5242
5243 // FeatureFlagVersionKey is the attribute Key conforming to the
5244 // "feature_flag.version" semantic conventions. It represents the version of the
5245 // ruleset used during the evaluation. This may be any stable value which
5246 // uniquely identifies the ruleset.
5247 //
5248 // Type: string
5249 // RequirementLevel: Recommended
5250 // Stability: Release_Candidate
5251 //
5252 // Examples: "1", "01ABCDEF"
5253 FeatureFlagVersionKey = attribute.Key("feature_flag.version")
5254 )
5255
5256 // FeatureFlagContextID returns an attribute KeyValue conforming to the
5257 // "feature_flag.context.id" semantic conventions. It represents the unique
5258 // identifier for the flag evaluation context. For example, the targeting key.
5259 func FeatureFlagContextID(val string) attribute.KeyValue {
5260 return FeatureFlagContextIDKey.String(val)
5261 }
5262
5263 // FeatureFlagErrorMessage returns an attribute KeyValue conforming to the
5264 // "feature_flag.error.message" semantic conventions. It represents a message
5265 // providing more detail about an error that occurred during feature flag
5266 // evaluation in human-readable form.
5267 func FeatureFlagErrorMessage(val string) attribute.KeyValue {
5268 return FeatureFlagErrorMessageKey.String(val)
5269 }
5270
5271 // FeatureFlagKey returns an attribute KeyValue conforming to the
5272 // "feature_flag.key" semantic conventions. It represents the lookup key of the
5273 // feature flag.
5274 func FeatureFlagKey(val string) attribute.KeyValue {
5275 return FeatureFlagKeyKey.String(val)
5276 }
5277
5278 // FeatureFlagProviderName returns an attribute KeyValue conforming to the
5279 // "feature_flag.provider.name" semantic conventions. It represents the
5280 // identifies the feature flag provider.
5281 func FeatureFlagProviderName(val string) attribute.KeyValue {
5282 return FeatureFlagProviderNameKey.String(val)
5283 }
5284
5285 // FeatureFlagResultVariant returns an attribute KeyValue conforming to the
5286 // "feature_flag.result.variant" semantic conventions. It represents a semantic
5287 // identifier for an evaluated flag value.
5288 func FeatureFlagResultVariant(val string) attribute.KeyValue {
5289 return FeatureFlagResultVariantKey.String(val)
5290 }
5291
5292 // FeatureFlagSetID returns an attribute KeyValue conforming to the
5293 // "feature_flag.set.id" semantic conventions. It represents the identifier of
5294 // the [flag set] to which the feature flag belongs.
5295 //
5296 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
5297 func FeatureFlagSetID(val string) attribute.KeyValue {
5298 return FeatureFlagSetIDKey.String(val)
5299 }
5300
5301 // FeatureFlagVersion returns an attribute KeyValue conforming to the
5302 // "feature_flag.version" semantic conventions. It represents the version of the
5303 // ruleset used during the evaluation. This may be any stable value which
5304 // uniquely identifies the ruleset.
5305 func FeatureFlagVersion(val string) attribute.KeyValue {
5306 return FeatureFlagVersionKey.String(val)
5307 }
5308
5309 // Enum values for feature_flag.result.reason
5310 var (
5311 // The resolved value is static (no dynamic evaluation).
5312 // Stability: release_candidate
5313 FeatureFlagResultReasonStatic = FeatureFlagResultReasonKey.String("static")
5314 // The resolved value fell back to a pre-configured value (no dynamic evaluation
5315 // occurred or dynamic evaluation yielded no result).
5316 // Stability: release_candidate
5317 FeatureFlagResultReasonDefault = FeatureFlagResultReasonKey.String("default")
5318 // The resolved value was the result of a dynamic evaluation, such as a rule or
5319 // specific user-targeting.
5320 // Stability: release_candidate
5321 FeatureFlagResultReasonTargetingMatch = FeatureFlagResultReasonKey.String("targeting_match")
5322 // The resolved value was the result of pseudorandom assignment.
5323 // Stability: release_candidate
5324 FeatureFlagResultReasonSplit = FeatureFlagResultReasonKey.String("split")
5325 // The resolved value was retrieved from cache.
5326 // Stability: release_candidate
5327 FeatureFlagResultReasonCached = FeatureFlagResultReasonKey.String("cached")
5328 // The resolved value was the result of the flag being disabled in the
5329 // management system.
5330 // Stability: release_candidate
5331 FeatureFlagResultReasonDisabled = FeatureFlagResultReasonKey.String("disabled")
5332 // The reason for the resolved value could not be determined.
5333 // Stability: release_candidate
5334 FeatureFlagResultReasonUnknown = FeatureFlagResultReasonKey.String("unknown")
5335 // The resolved value is non-authoritative or possibly out of date
5336 // Stability: release_candidate
5337 FeatureFlagResultReasonStale = FeatureFlagResultReasonKey.String("stale")
5338 // The resolved value was the result of an error.
5339 // Stability: release_candidate
5340 FeatureFlagResultReasonError = FeatureFlagResultReasonKey.String("error")
5341 )
5342
5343 // Namespace: file
5344 const (
5345 // FileAccessedKey is the attribute Key conforming to the "file.accessed"
5346 // semantic conventions. It represents the time when the file was last accessed,
5347 // in ISO 8601 format.
5348 //
5349 // Type: string
5350 // RequirementLevel: Recommended
5351 // Stability: Development
5352 //
5353 // Examples: "2021-01-01T12:00:00Z"
5354 // Note: This attribute might not be supported by some file systems — NFS,
5355 // FAT32, in embedded OS, etc.
5356 FileAccessedKey = attribute.Key("file.accessed")
5357
5358 // FileAttributesKey is the attribute Key conforming to the "file.attributes"
5359 // semantic conventions. It represents the array of file attributes.
5360 //
5361 // Type: string[]
5362 // RequirementLevel: Recommended
5363 // Stability: Development
5364 //
5365 // Examples: "readonly", "hidden"
5366 // Note: Attributes names depend on the OS or file system. Here’s a
5367 // non-exhaustive list of values expected for this attribute: `archive`,
5368 // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
5369 // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
5370 // `write`.
5371 FileAttributesKey = attribute.Key("file.attributes")
5372
5373 // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
5374 // conventions. It represents the time when the file attributes or metadata was
5375 // last changed, in ISO 8601 format.
5376 //
5377 // Type: string
5378 // RequirementLevel: Recommended
5379 // Stability: Development
5380 //
5381 // Examples: "2021-01-01T12:00:00Z"
5382 // Note: `file.changed` captures the time when any of the file's properties or
5383 // attributes (including the content) are changed, while `file.modified`
5384 // captures the timestamp when the file content is modified.
5385 FileChangedKey = attribute.Key("file.changed")
5386
5387 // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
5388 // conventions. It represents the time when the file was created, in ISO 8601
5389 // format.
5390 //
5391 // Type: string
5392 // RequirementLevel: Recommended
5393 // Stability: Development
5394 //
5395 // Examples: "2021-01-01T12:00:00Z"
5396 // Note: This attribute might not be supported by some file systems — NFS,
5397 // FAT32, in embedded OS, etc.
5398 FileCreatedKey = attribute.Key("file.created")
5399
5400 // FileDirectoryKey is the attribute Key conforming to the "file.directory"
5401 // semantic conventions. It represents the directory where the file is located.
5402 // It should include the drive letter, when appropriate.
5403 //
5404 // Type: string
5405 // RequirementLevel: Recommended
5406 // Stability: Development
5407 //
5408 // Examples: "/home/user", "C:\Program Files\MyApp"
5409 FileDirectoryKey = attribute.Key("file.directory")
5410
5411 // FileExtensionKey is the attribute Key conforming to the "file.extension"
5412 // semantic conventions. It represents the file extension, excluding the leading
5413 // dot.
5414 //
5415 // Type: string
5416 // RequirementLevel: Recommended
5417 // Stability: Development
5418 //
5419 // Examples: "png", "gz"
5420 // Note: When the file name has multiple extensions (example.tar.gz), only the
5421 // last one should be captured ("gz", not "tar.gz").
5422 FileExtensionKey = attribute.Key("file.extension")
5423
5424 // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
5425 // semantic conventions. It represents the name of the fork. A fork is
5426 // additional data associated with a filesystem object.
5427 //
5428 // Type: string
5429 // RequirementLevel: Recommended
5430 // Stability: Development
5431 //
5432 // Examples: "Zone.Identifier"
5433 // Note: On Linux, a resource fork is used to store additional data with a
5434 // filesystem object. A file always has at least one fork for the data portion,
5435 // and additional forks may exist.
5436 // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
5437 // data stream for a file is just called $DATA. Zone.Identifier is commonly used
5438 // by Windows to track contents downloaded from the Internet. An ADS is
5439 // typically of the form: C:\path\to\filename.extension:some_fork_name, and
5440 // some_fork_name is the value that should populate `fork_name`.
5441 // `filename.extension` should populate `file.name`, and `extension` should
5442 // populate `file.extension`. The full path, `file.path`, will include the fork
5443 // name.
5444 FileForkNameKey = attribute.Key("file.fork_name")
5445
5446 // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
5447 // semantic conventions. It represents the primary Group ID (GID) of the file.
5448 //
5449 // Type: string
5450 // RequirementLevel: Recommended
5451 // Stability: Development
5452 //
5453 // Examples: "1000"
5454 FileGroupIDKey = attribute.Key("file.group.id")
5455
5456 // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
5457 // semantic conventions. It represents the primary group name of the file.
5458 //
5459 // Type: string
5460 // RequirementLevel: Recommended
5461 // Stability: Development
5462 //
5463 // Examples: "users"
5464 FileGroupNameKey = attribute.Key("file.group.name")
5465
5466 // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
5467 // conventions. It represents the inode representing the file in the filesystem.
5468 //
5469 // Type: string
5470 // RequirementLevel: Recommended
5471 // Stability: Development
5472 //
5473 // Examples: "256383"
5474 FileInodeKey = attribute.Key("file.inode")
5475
5476 // FileModeKey is the attribute Key conforming to the "file.mode" semantic
5477 // conventions. It represents the mode of the file in octal representation.
5478 //
5479 // Type: string
5480 // RequirementLevel: Recommended
5481 // Stability: Development
5482 //
5483 // Examples: "0640"
5484 FileModeKey = attribute.Key("file.mode")
5485
5486 // FileModifiedKey is the attribute Key conforming to the "file.modified"
5487 // semantic conventions. It represents the time when the file content was last
5488 // modified, in ISO 8601 format.
5489 //
5490 // Type: string
5491 // RequirementLevel: Recommended
5492 // Stability: Development
5493 //
5494 // Examples: "2021-01-01T12:00:00Z"
5495 FileModifiedKey = attribute.Key("file.modified")
5496
5497 // FileNameKey is the attribute Key conforming to the "file.name" semantic
5498 // conventions. It represents the name of the file including the extension,
5499 // without the directory.
5500 //
5501 // Type: string
5502 // RequirementLevel: Recommended
5503 // Stability: Development
5504 //
5505 // Examples: "example.png"
5506 FileNameKey = attribute.Key("file.name")
5507
5508 // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
5509 // semantic conventions. It represents the user ID (UID) or security identifier
5510 // (SID) of the file owner.
5511 //
5512 // Type: string
5513 // RequirementLevel: Recommended
5514 // Stability: Development
5515 //
5516 // Examples: "1000"
5517 FileOwnerIDKey = attribute.Key("file.owner.id")
5518
5519 // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
5520 // semantic conventions. It represents the username of the file owner.
5521 //
5522 // Type: string
5523 // RequirementLevel: Recommended
5524 // Stability: Development
5525 //
5526 // Examples: "root"
5527 FileOwnerNameKey = attribute.Key("file.owner.name")
5528
5529 // FilePathKey is the attribute Key conforming to the "file.path" semantic
5530 // conventions. It represents the full path to the file, including the file
5531 // name. It should include the drive letter, when appropriate.
5532 //
5533 // Type: string
5534 // RequirementLevel: Recommended
5535 // Stability: Development
5536 //
5537 // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
5538 FilePathKey = attribute.Key("file.path")
5539
5540 // FileSizeKey is the attribute Key conforming to the "file.size" semantic
5541 // conventions. It represents the file size in bytes.
5542 //
5543 // Type: int
5544 // RequirementLevel: Recommended
5545 // Stability: Development
5546 //
5547 // Examples:
5548 FileSizeKey = attribute.Key("file.size")
5549
5550 // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
5551 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5552 // to the target of a symbolic link.
5553 //
5554 // Type: string
5555 // RequirementLevel: Recommended
5556 // Stability: Development
5557 //
5558 // Examples: "/usr/bin/python3"
5559 // Note: This attribute is only applicable to symbolic links.
5560 FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
5561 )
5562
5563 // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
5564 // semantic conventions. It represents the time when the file was last accessed,
5565 // in ISO 8601 format.
5566 func FileAccessed(val string) attribute.KeyValue {
5567 return FileAccessedKey.String(val)
5568 }
5569
5570 // FileAttributes returns an attribute KeyValue conforming to the
5571 // "file.attributes" semantic conventions. It represents the array of file
5572 // attributes.
5573 func FileAttributes(val ...string) attribute.KeyValue {
5574 return FileAttributesKey.StringSlice(val)
5575 }
5576
5577 // FileChanged returns an attribute KeyValue conforming to the "file.changed"
5578 // semantic conventions. It represents the time when the file attributes or
5579 // metadata was last changed, in ISO 8601 format.
5580 func FileChanged(val string) attribute.KeyValue {
5581 return FileChangedKey.String(val)
5582 }
5583
5584 // FileCreated returns an attribute KeyValue conforming to the "file.created"
5585 // semantic conventions. It represents the time when the file was created, in ISO
5586 // 8601 format.
5587 func FileCreated(val string) attribute.KeyValue {
5588 return FileCreatedKey.String(val)
5589 }
5590
5591 // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
5592 // semantic conventions. It represents the directory where the file is located.
5593 // It should include the drive letter, when appropriate.
5594 func FileDirectory(val string) attribute.KeyValue {
5595 return FileDirectoryKey.String(val)
5596 }
5597
5598 // FileExtension returns an attribute KeyValue conforming to the "file.extension"
5599 // semantic conventions. It represents the file extension, excluding the leading
5600 // dot.
5601 func FileExtension(val string) attribute.KeyValue {
5602 return FileExtensionKey.String(val)
5603 }
5604
5605 // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
5606 // semantic conventions. It represents the name of the fork. A fork is additional
5607 // data associated with a filesystem object.
5608 func FileForkName(val string) attribute.KeyValue {
5609 return FileForkNameKey.String(val)
5610 }
5611
5612 // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
5613 // semantic conventions. It represents the primary Group ID (GID) of the file.
5614 func FileGroupID(val string) attribute.KeyValue {
5615 return FileGroupIDKey.String(val)
5616 }
5617
5618 // FileGroupName returns an attribute KeyValue conforming to the
5619 // "file.group.name" semantic conventions. It represents the primary group name
5620 // of the file.
5621 func FileGroupName(val string) attribute.KeyValue {
5622 return FileGroupNameKey.String(val)
5623 }
5624
5625 // FileInode returns an attribute KeyValue conforming to the "file.inode"
5626 // semantic conventions. It represents the inode representing the file in the
5627 // filesystem.
5628 func FileInode(val string) attribute.KeyValue {
5629 return FileInodeKey.String(val)
5630 }
5631
5632 // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
5633 // conventions. It represents the mode of the file in octal representation.
5634 func FileMode(val string) attribute.KeyValue {
5635 return FileModeKey.String(val)
5636 }
5637
5638 // FileModified returns an attribute KeyValue conforming to the "file.modified"
5639 // semantic conventions. It represents the time when the file content was last
5640 // modified, in ISO 8601 format.
5641 func FileModified(val string) attribute.KeyValue {
5642 return FileModifiedKey.String(val)
5643 }
5644
5645 // FileName returns an attribute KeyValue conforming to the "file.name" semantic
5646 // conventions. It represents the name of the file including the extension,
5647 // without the directory.
5648 func FileName(val string) attribute.KeyValue {
5649 return FileNameKey.String(val)
5650 }
5651
5652 // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
5653 // semantic conventions. It represents the user ID (UID) or security identifier
5654 // (SID) of the file owner.
5655 func FileOwnerID(val string) attribute.KeyValue {
5656 return FileOwnerIDKey.String(val)
5657 }
5658
5659 // FileOwnerName returns an attribute KeyValue conforming to the
5660 // "file.owner.name" semantic conventions. It represents the username of the file
5661 // owner.
5662 func FileOwnerName(val string) attribute.KeyValue {
5663 return FileOwnerNameKey.String(val)
5664 }
5665
5666 // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
5667 // conventions. It represents the full path to the file, including the file name.
5668 // It should include the drive letter, when appropriate.
5669 func FilePath(val string) attribute.KeyValue {
5670 return FilePathKey.String(val)
5671 }
5672
5673 // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
5674 // conventions. It represents the file size in bytes.
5675 func FileSize(val int) attribute.KeyValue {
5676 return FileSizeKey.Int(val)
5677 }
5678
5679 // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
5680 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5681 // to the target of a symbolic link.
5682 func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
5683 return FileSymbolicLinkTargetPathKey.String(val)
5684 }
5685
5686 // Namespace: gcp
5687 const (
5688 // GCPAppHubApplicationContainerKey is the attribute Key conforming to the
5689 // "gcp.apphub.application.container" semantic conventions. It represents the
5690 // container within GCP where the AppHub application is defined.
5691 //
5692 // Type: string
5693 // RequirementLevel: Recommended
5694 // Stability: Development
5695 //
5696 // Examples: "projects/my-container-project"
5697 GCPAppHubApplicationContainerKey = attribute.Key("gcp.apphub.application.container")
5698
5699 // GCPAppHubApplicationIDKey is the attribute Key conforming to the
5700 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5701 // the application as configured in AppHub.
5702 //
5703 // Type: string
5704 // RequirementLevel: Recommended
5705 // Stability: Development
5706 //
5707 // Examples: "my-application"
5708 GCPAppHubApplicationIDKey = attribute.Key("gcp.apphub.application.id")
5709
5710 // GCPAppHubApplicationLocationKey is the attribute Key conforming to the
5711 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5712 // zone or region where the application is defined.
5713 //
5714 // Type: string
5715 // RequirementLevel: Recommended
5716 // Stability: Development
5717 //
5718 // Examples: "us-central1"
5719 GCPAppHubApplicationLocationKey = attribute.Key("gcp.apphub.application.location")
5720
5721 // GCPAppHubServiceCriticalityTypeKey is the attribute Key conforming to the
5722 // "gcp.apphub.service.criticality_type" semantic conventions. It represents the
5723 // criticality of a service indicates its importance to the business.
5724 //
5725 // Type: Enum
5726 // RequirementLevel: Recommended
5727 // Stability: Development
5728 //
5729 // Examples:
5730 // Note: [See AppHub type enum]
5731 //
5732 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5733 GCPAppHubServiceCriticalityTypeKey = attribute.Key("gcp.apphub.service.criticality_type")
5734
5735 // GCPAppHubServiceEnvironmentTypeKey is the attribute Key conforming to the
5736 // "gcp.apphub.service.environment_type" semantic conventions. It represents the
5737 // environment of a service is the stage of a software lifecycle.
5738 //
5739 // Type: Enum
5740 // RequirementLevel: Recommended
5741 // Stability: Development
5742 //
5743 // Examples:
5744 // Note: [See AppHub environment type]
5745 //
5746 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5747 GCPAppHubServiceEnvironmentTypeKey = attribute.Key("gcp.apphub.service.environment_type")
5748
5749 // GCPAppHubServiceIDKey is the attribute Key conforming to the
5750 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5751 // service as configured in AppHub.
5752 //
5753 // Type: string
5754 // RequirementLevel: Recommended
5755 // Stability: Development
5756 //
5757 // Examples: "my-service"
5758 GCPAppHubServiceIDKey = attribute.Key("gcp.apphub.service.id")
5759
5760 // GCPAppHubWorkloadCriticalityTypeKey is the attribute Key conforming to the
5761 // "gcp.apphub.workload.criticality_type" semantic conventions. It represents
5762 // the criticality of a workload indicates its importance to the business.
5763 //
5764 // Type: Enum
5765 // RequirementLevel: Recommended
5766 // Stability: Development
5767 //
5768 // Examples:
5769 // Note: [See AppHub type enum]
5770 //
5771 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5772 GCPAppHubWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub.workload.criticality_type")
5773
5774 // GCPAppHubWorkloadEnvironmentTypeKey is the attribute Key conforming to the
5775 // "gcp.apphub.workload.environment_type" semantic conventions. It represents
5776 // the environment of a workload is the stage of a software lifecycle.
5777 //
5778 // Type: Enum
5779 // RequirementLevel: Recommended
5780 // Stability: Development
5781 //
5782 // Examples:
5783 // Note: [See AppHub environment type]
5784 //
5785 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5786 GCPAppHubWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub.workload.environment_type")
5787
5788 // GCPAppHubWorkloadIDKey is the attribute Key conforming to the
5789 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5790 // workload as configured in AppHub.
5791 //
5792 // Type: string
5793 // RequirementLevel: Recommended
5794 // Stability: Development
5795 //
5796 // Examples: "my-workload"
5797 GCPAppHubWorkloadIDKey = attribute.Key("gcp.apphub.workload.id")
5798
5799 // GCPAppHubDestinationApplicationContainerKey is the attribute Key conforming
5800 // to the "gcp.apphub_destination.application.container" semantic conventions.
5801 // It represents the container within GCP where the AppHub destination
5802 // application is defined.
5803 //
5804 // Type: string
5805 // RequirementLevel: Recommended
5806 // Stability: Development
5807 //
5808 // Examples: "projects/my-container-project"
5809 GCPAppHubDestinationApplicationContainerKey = attribute.Key("gcp.apphub_destination.application.container")
5810
5811 // GCPAppHubDestinationApplicationIDKey is the attribute Key conforming to the
5812 // "gcp.apphub_destination.application.id" semantic conventions. It represents
5813 // the name of the destination application as configured in AppHub.
5814 //
5815 // Type: string
5816 // RequirementLevel: Recommended
5817 // Stability: Development
5818 //
5819 // Examples: "my-application"
5820 GCPAppHubDestinationApplicationIDKey = attribute.Key("gcp.apphub_destination.application.id")
5821
5822 // GCPAppHubDestinationApplicationLocationKey is the attribute Key conforming to
5823 // the "gcp.apphub_destination.application.location" semantic conventions. It
5824 // represents the GCP zone or region where the destination application is
5825 // defined.
5826 //
5827 // Type: string
5828 // RequirementLevel: Recommended
5829 // Stability: Development
5830 //
5831 // Examples: "us-central1"
5832 GCPAppHubDestinationApplicationLocationKey = attribute.Key("gcp.apphub_destination.application.location")
5833
5834 // GCPAppHubDestinationServiceCriticalityTypeKey is the attribute Key conforming
5835 // to the "gcp.apphub_destination.service.criticality_type" semantic
5836 // conventions. It represents the criticality of a destination workload
5837 // indicates its importance to the business as specified in [AppHub type enum].
5838 //
5839 // Type: Enum
5840 // RequirementLevel: Recommended
5841 // Stability: Development
5842 //
5843 // Examples:
5844 //
5845 // [AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5846 GCPAppHubDestinationServiceCriticalityTypeKey = attribute.Key("gcp.apphub_destination.service.criticality_type")
5847
5848 // GCPAppHubDestinationServiceEnvironmentTypeKey is the attribute Key conforming
5849 // to the "gcp.apphub_destination.service.environment_type" semantic
5850 // conventions. It represents the software lifecycle stage of a destination
5851 // service as defined [AppHub environment type].
5852 //
5853 // Type: Enum
5854 // RequirementLevel: Recommended
5855 // Stability: Development
5856 //
5857 // Examples:
5858 //
5859 // [AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5860 GCPAppHubDestinationServiceEnvironmentTypeKey = attribute.Key("gcp.apphub_destination.service.environment_type")
5861
5862 // GCPAppHubDestinationServiceIDKey is the attribute Key conforming to the
5863 // "gcp.apphub_destination.service.id" semantic conventions. It represents the
5864 // name of the destination service as configured in AppHub.
5865 //
5866 // Type: string
5867 // RequirementLevel: Recommended
5868 // Stability: Development
5869 //
5870 // Examples: "my-service"
5871 GCPAppHubDestinationServiceIDKey = attribute.Key("gcp.apphub_destination.service.id")
5872
5873 // GCPAppHubDestinationWorkloadCriticalityTypeKey is the attribute Key
5874 // conforming to the "gcp.apphub_destination.workload.criticality_type" semantic
5875 // conventions. It represents the criticality of a destination workload
5876 // indicates its importance to the business as specified in [AppHub type enum].
5877 //
5878 // Type: Enum
5879 // RequirementLevel: Recommended
5880 // Stability: Development
5881 //
5882 // Examples:
5883 //
5884 // [AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5885 GCPAppHubDestinationWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub_destination.workload.criticality_type")
5886
5887 // GCPAppHubDestinationWorkloadEnvironmentTypeKey is the attribute Key
5888 // conforming to the "gcp.apphub_destination.workload.environment_type" semantic
5889 // conventions. It represents the environment of a destination workload is the
5890 // stage of a software lifecycle as provided in the [AppHub environment type].
5891 //
5892 // Type: Enum
5893 // RequirementLevel: Recommended
5894 // Stability: Development
5895 //
5896 // Examples:
5897 //
5898 // [AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5899 GCPAppHubDestinationWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub_destination.workload.environment_type")
5900
5901 // GCPAppHubDestinationWorkloadIDKey is the attribute Key conforming to the
5902 // "gcp.apphub_destination.workload.id" semantic conventions. It represents the
5903 // name of the destination workload as configured in AppHub.
5904 //
5905 // Type: string
5906 // RequirementLevel: Recommended
5907 // Stability: Development
5908 //
5909 // Examples: "my-workload"
5910 GCPAppHubDestinationWorkloadIDKey = attribute.Key("gcp.apphub_destination.workload.id")
5911
5912 // GCPClientServiceKey is the attribute Key conforming to the
5913 // "gcp.client.service" semantic conventions. It represents the identifies the
5914 // Google Cloud service for which the official client library is intended.
5915 //
5916 // Type: string
5917 // RequirementLevel: Recommended
5918 // Stability: Development
5919 //
5920 // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
5921 // Note: Intended to be a stable identifier for Google Cloud client libraries
5922 // that is uniform across implementation languages. The value should be derived
5923 // from the canonical service domain for the service; for example,
5924 // 'foo.googleapis.com' should result in a value of 'foo'.
5925 GCPClientServiceKey = attribute.Key("gcp.client.service")
5926
5927 // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
5928 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
5929 // the Cloud Run [execution] being run for the Job, as set by the
5930 // [`CLOUD_RUN_EXECUTION`] environment variable.
5931 //
5932 // Type: string
5933 // RequirementLevel: Recommended
5934 // Stability: Development
5935 //
5936 // Examples: "job-name-xxxx", "sample-job-mdw84"
5937 //
5938 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5939 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5940 GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
5941
5942 // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
5943 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5944 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5945 // environment variable.
5946 //
5947 // Type: int
5948 // RequirementLevel: Recommended
5949 // Stability: Development
5950 //
5951 // Examples: 0, 1
5952 //
5953 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5954 GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
5955
5956 // GCPGCEInstanceHostnameKey is the attribute Key conforming to the
5957 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5958 // of a GCE instance. This is the full value of the default or [custom hostname]
5959 // .
5960 //
5961 // Type: string
5962 // RequirementLevel: Recommended
5963 // Stability: Development
5964 //
5965 // Examples: "my-host1234.example.com",
5966 // "sample-vm.us-west1-b.c.my-project.internal"
5967 //
5968 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5969 GCPGCEInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
5970
5971 // GCPGCEInstanceNameKey is the attribute Key conforming to the
5972 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5973 // of a GCE instance. This is the value provided by `host.name`, the visible
5974 // name of the instance in the Cloud Console UI, and the prefix for the default
5975 // hostname of the instance as defined by the [default internal DNS name].
5976 //
5977 // Type: string
5978 // RequirementLevel: Recommended
5979 // Stability: Development
5980 //
5981 // Examples: "instance-1", "my-vm-name"
5982 //
5983 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5984 GCPGCEInstanceNameKey = attribute.Key("gcp.gce.instance.name")
5985
5986 // GCPGCEInstanceGroupManagerNameKey is the attribute Key conforming to the
5987 // "gcp.gce.instance_group_manager.name" semantic conventions. It represents the
5988 // name of the Instance Group Manager (IGM) that manages this VM, if any.
5989 //
5990 // Type: string
5991 // RequirementLevel: Recommended
5992 // Stability: Development
5993 //
5994 // Examples: "web-igm", "my-managed-group"
5995 GCPGCEInstanceGroupManagerNameKey = attribute.Key("gcp.gce.instance_group_manager.name")
5996
5997 // GCPGCEInstanceGroupManagerRegionKey is the attribute Key conforming to the
5998 // "gcp.gce.instance_group_manager.region" semantic conventions. It represents
5999 // the region of a **regional** Instance Group Manager (e.g., `us-central1`).
6000 // Set this **only** when the IGM is regional.
6001 //
6002 // Type: string
6003 // RequirementLevel: Recommended
6004 // Stability: Development
6005 //
6006 // Examples: "us-central1", "europe-west1"
6007 GCPGCEInstanceGroupManagerRegionKey = attribute.Key("gcp.gce.instance_group_manager.region")
6008
6009 // GCPGCEInstanceGroupManagerZoneKey is the attribute Key conforming to the
6010 // "gcp.gce.instance_group_manager.zone" semantic conventions. It represents the
6011 // zone of a **zonal** Instance Group Manager (e.g., `us-central1-a`). Set this
6012 // **only** when the IGM is zonal.
6013 //
6014 // Type: string
6015 // RequirementLevel: Recommended
6016 // Stability: Development
6017 //
6018 // Examples: "us-central1-a", "europe-west1-b"
6019 GCPGCEInstanceGroupManagerZoneKey = attribute.Key("gcp.gce.instance_group_manager.zone")
6020 )
6021
6022 // GCPAppHubApplicationContainer returns an attribute KeyValue conforming to the
6023 // "gcp.apphub.application.container" semantic conventions. It represents the
6024 // container within GCP where the AppHub application is defined.
6025 func GCPAppHubApplicationContainer(val string) attribute.KeyValue {
6026 return GCPAppHubApplicationContainerKey.String(val)
6027 }
6028
6029 // GCPAppHubApplicationID returns an attribute KeyValue conforming to the
6030 // "gcp.apphub.application.id" semantic conventions. It represents the name of
6031 // the application as configured in AppHub.
6032 func GCPAppHubApplicationID(val string) attribute.KeyValue {
6033 return GCPAppHubApplicationIDKey.String(val)
6034 }
6035
6036 // GCPAppHubApplicationLocation returns an attribute KeyValue conforming to the
6037 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
6038 // zone or region where the application is defined.
6039 func GCPAppHubApplicationLocation(val string) attribute.KeyValue {
6040 return GCPAppHubApplicationLocationKey.String(val)
6041 }
6042
6043 // GCPAppHubServiceID returns an attribute KeyValue conforming to the
6044 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
6045 // service as configured in AppHub.
6046 func GCPAppHubServiceID(val string) attribute.KeyValue {
6047 return GCPAppHubServiceIDKey.String(val)
6048 }
6049
6050 // GCPAppHubWorkloadID returns an attribute KeyValue conforming to the
6051 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
6052 // workload as configured in AppHub.
6053 func GCPAppHubWorkloadID(val string) attribute.KeyValue {
6054 return GCPAppHubWorkloadIDKey.String(val)
6055 }
6056
6057 // GCPAppHubDestinationApplicationContainer returns an attribute KeyValue
6058 // conforming to the "gcp.apphub_destination.application.container" semantic
6059 // conventions. It represents the container within GCP where the AppHub
6060 // destination application is defined.
6061 func GCPAppHubDestinationApplicationContainer(val string) attribute.KeyValue {
6062 return GCPAppHubDestinationApplicationContainerKey.String(val)
6063 }
6064
6065 // GCPAppHubDestinationApplicationID returns an attribute KeyValue conforming to
6066 // the "gcp.apphub_destination.application.id" semantic conventions. It
6067 // represents the name of the destination application as configured in AppHub.
6068 func GCPAppHubDestinationApplicationID(val string) attribute.KeyValue {
6069 return GCPAppHubDestinationApplicationIDKey.String(val)
6070 }
6071
6072 // GCPAppHubDestinationApplicationLocation returns an attribute KeyValue
6073 // conforming to the "gcp.apphub_destination.application.location" semantic
6074 // conventions. It represents the GCP zone or region where the destination
6075 // application is defined.
6076 func GCPAppHubDestinationApplicationLocation(val string) attribute.KeyValue {
6077 return GCPAppHubDestinationApplicationLocationKey.String(val)
6078 }
6079
6080 // GCPAppHubDestinationServiceID returns an attribute KeyValue conforming to the
6081 // "gcp.apphub_destination.service.id" semantic conventions. It represents the
6082 // name of the destination service as configured in AppHub.
6083 func GCPAppHubDestinationServiceID(val string) attribute.KeyValue {
6084 return GCPAppHubDestinationServiceIDKey.String(val)
6085 }
6086
6087 // GCPAppHubDestinationWorkloadID returns an attribute KeyValue conforming to the
6088 // "gcp.apphub_destination.workload.id" semantic conventions. It represents the
6089 // name of the destination workload as configured in AppHub.
6090 func GCPAppHubDestinationWorkloadID(val string) attribute.KeyValue {
6091 return GCPAppHubDestinationWorkloadIDKey.String(val)
6092 }
6093
6094 // GCPClientService returns an attribute KeyValue conforming to the
6095 // "gcp.client.service" semantic conventions. It represents the identifies the
6096 // Google Cloud service for which the official client library is intended.
6097 func GCPClientService(val string) attribute.KeyValue {
6098 return GCPClientServiceKey.String(val)
6099 }
6100
6101 // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
6102 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
6103 // the Cloud Run [execution] being run for the Job, as set by the
6104 // [`CLOUD_RUN_EXECUTION`] environment variable.
6105 //
6106 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
6107 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
6108 func GCPCloudRunJobExecution(val string) attribute.KeyValue {
6109 return GCPCloudRunJobExecutionKey.String(val)
6110 }
6111
6112 // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
6113 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
6114 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
6115 // environment variable.
6116 //
6117 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
6118 func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
6119 return GCPCloudRunJobTaskIndexKey.Int(val)
6120 }
6121
6122 // GCPGCEInstanceHostname returns an attribute KeyValue conforming to the
6123 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
6124 // of a GCE instance. This is the full value of the default or [custom hostname]
6125 // .
6126 //
6127 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
6128 func GCPGCEInstanceHostname(val string) attribute.KeyValue {
6129 return GCPGCEInstanceHostnameKey.String(val)
6130 }
6131
6132 // GCPGCEInstanceName returns an attribute KeyValue conforming to the
6133 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
6134 // of a GCE instance. This is the value provided by `host.name`, the visible name
6135 // of the instance in the Cloud Console UI, and the prefix for the default
6136 // hostname of the instance as defined by the [default internal DNS name].
6137 //
6138 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
6139 func GCPGCEInstanceName(val string) attribute.KeyValue {
6140 return GCPGCEInstanceNameKey.String(val)
6141 }
6142
6143 // GCPGCEInstanceGroupManagerName returns an attribute KeyValue conforming to the
6144 // "gcp.gce.instance_group_manager.name" semantic conventions. It represents the
6145 // name of the Instance Group Manager (IGM) that manages this VM, if any.
6146 func GCPGCEInstanceGroupManagerName(val string) attribute.KeyValue {
6147 return GCPGCEInstanceGroupManagerNameKey.String(val)
6148 }
6149
6150 // GCPGCEInstanceGroupManagerRegion returns an attribute KeyValue conforming to
6151 // the "gcp.gce.instance_group_manager.region" semantic conventions. It
6152 // represents the region of a **regional** Instance Group Manager (e.g.,
6153 // `us-central1`). Set this **only** when the IGM is regional.
6154 func GCPGCEInstanceGroupManagerRegion(val string) attribute.KeyValue {
6155 return GCPGCEInstanceGroupManagerRegionKey.String(val)
6156 }
6157
6158 // GCPGCEInstanceGroupManagerZone returns an attribute KeyValue conforming to the
6159 // "gcp.gce.instance_group_manager.zone" semantic conventions. It represents the
6160 // zone of a **zonal** Instance Group Manager (e.g., `us-central1-a`). Set this
6161 // **only** when the IGM is zonal.
6162 func GCPGCEInstanceGroupManagerZone(val string) attribute.KeyValue {
6163 return GCPGCEInstanceGroupManagerZoneKey.String(val)
6164 }
6165
6166 // Enum values for gcp.apphub.service.criticality_type
6167 var (
6168 // Mission critical service.
6169 // Stability: development
6170 GCPAppHubServiceCriticalityTypeMissionCritical = GCPAppHubServiceCriticalityTypeKey.String("MISSION_CRITICAL")
6171 // High impact.
6172 // Stability: development
6173 GCPAppHubServiceCriticalityTypeHigh = GCPAppHubServiceCriticalityTypeKey.String("HIGH")
6174 // Medium impact.
6175 // Stability: development
6176 GCPAppHubServiceCriticalityTypeMedium = GCPAppHubServiceCriticalityTypeKey.String("MEDIUM")
6177 // Low impact.
6178 // Stability: development
6179 GCPAppHubServiceCriticalityTypeLow = GCPAppHubServiceCriticalityTypeKey.String("LOW")
6180 )
6181
6182 // Enum values for gcp.apphub.service.environment_type
6183 var (
6184 // Production environment.
6185 // Stability: development
6186 GCPAppHubServiceEnvironmentTypeProduction = GCPAppHubServiceEnvironmentTypeKey.String("PRODUCTION")
6187 // Staging environment.
6188 // Stability: development
6189 GCPAppHubServiceEnvironmentTypeStaging = GCPAppHubServiceEnvironmentTypeKey.String("STAGING")
6190 // Test environment.
6191 // Stability: development
6192 GCPAppHubServiceEnvironmentTypeTest = GCPAppHubServiceEnvironmentTypeKey.String("TEST")
6193 // Development environment.
6194 // Stability: development
6195 GCPAppHubServiceEnvironmentTypeDevelopment = GCPAppHubServiceEnvironmentTypeKey.String("DEVELOPMENT")
6196 )
6197
6198 // Enum values for gcp.apphub.workload.criticality_type
6199 var (
6200 // Mission critical service.
6201 // Stability: development
6202 GCPAppHubWorkloadCriticalityTypeMissionCritical = GCPAppHubWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
6203 // High impact.
6204 // Stability: development
6205 GCPAppHubWorkloadCriticalityTypeHigh = GCPAppHubWorkloadCriticalityTypeKey.String("HIGH")
6206 // Medium impact.
6207 // Stability: development
6208 GCPAppHubWorkloadCriticalityTypeMedium = GCPAppHubWorkloadCriticalityTypeKey.String("MEDIUM")
6209 // Low impact.
6210 // Stability: development
6211 GCPAppHubWorkloadCriticalityTypeLow = GCPAppHubWorkloadCriticalityTypeKey.String("LOW")
6212 )
6213
6214 // Enum values for gcp.apphub.workload.environment_type
6215 var (
6216 // Production environment.
6217 // Stability: development
6218 GCPAppHubWorkloadEnvironmentTypeProduction = GCPAppHubWorkloadEnvironmentTypeKey.String("PRODUCTION")
6219 // Staging environment.
6220 // Stability: development
6221 GCPAppHubWorkloadEnvironmentTypeStaging = GCPAppHubWorkloadEnvironmentTypeKey.String("STAGING")
6222 // Test environment.
6223 // Stability: development
6224 GCPAppHubWorkloadEnvironmentTypeTest = GCPAppHubWorkloadEnvironmentTypeKey.String("TEST")
6225 // Development environment.
6226 // Stability: development
6227 GCPAppHubWorkloadEnvironmentTypeDevelopment = GCPAppHubWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
6228 )
6229
6230 // Enum values for gcp.apphub_destination.service.criticality_type
6231 var (
6232 // Mission critical service.
6233 // Stability: development
6234 GCPAppHubDestinationServiceCriticalityTypeMissionCritical = GCPAppHubDestinationServiceCriticalityTypeKey.String("MISSION_CRITICAL")
6235 // High impact.
6236 // Stability: development
6237 GCPAppHubDestinationServiceCriticalityTypeHigh = GCPAppHubDestinationServiceCriticalityTypeKey.String("HIGH")
6238 // Medium impact.
6239 // Stability: development
6240 GCPAppHubDestinationServiceCriticalityTypeMedium = GCPAppHubDestinationServiceCriticalityTypeKey.String("MEDIUM")
6241 // Low impact.
6242 // Stability: development
6243 GCPAppHubDestinationServiceCriticalityTypeLow = GCPAppHubDestinationServiceCriticalityTypeKey.String("LOW")
6244 )
6245
6246 // Enum values for gcp.apphub_destination.service.environment_type
6247 var (
6248 // Production environment.
6249 // Stability: development
6250 GCPAppHubDestinationServiceEnvironmentTypeProduction = GCPAppHubDestinationServiceEnvironmentTypeKey.String("PRODUCTION")
6251 // Staging environment.
6252 // Stability: development
6253 GCPAppHubDestinationServiceEnvironmentTypeStaging = GCPAppHubDestinationServiceEnvironmentTypeKey.String("STAGING")
6254 // Test environment.
6255 // Stability: development
6256 GCPAppHubDestinationServiceEnvironmentTypeTest = GCPAppHubDestinationServiceEnvironmentTypeKey.String("TEST")
6257 // Development environment.
6258 // Stability: development
6259 GCPAppHubDestinationServiceEnvironmentTypeDevelopment = GCPAppHubDestinationServiceEnvironmentTypeKey.String("DEVELOPMENT")
6260 )
6261
6262 // Enum values for gcp.apphub_destination.workload.criticality_type
6263 var (
6264 // Mission critical service.
6265 // Stability: development
6266 GCPAppHubDestinationWorkloadCriticalityTypeMissionCritical = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
6267 // High impact.
6268 // Stability: development
6269 GCPAppHubDestinationWorkloadCriticalityTypeHigh = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("HIGH")
6270 // Medium impact.
6271 // Stability: development
6272 GCPAppHubDestinationWorkloadCriticalityTypeMedium = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("MEDIUM")
6273 // Low impact.
6274 // Stability: development
6275 GCPAppHubDestinationWorkloadCriticalityTypeLow = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("LOW")
6276 )
6277
6278 // Enum values for gcp.apphub_destination.workload.environment_type
6279 var (
6280 // Production environment.
6281 // Stability: development
6282 GCPAppHubDestinationWorkloadEnvironmentTypeProduction = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("PRODUCTION")
6283 // Staging environment.
6284 // Stability: development
6285 GCPAppHubDestinationWorkloadEnvironmentTypeStaging = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("STAGING")
6286 // Test environment.
6287 // Stability: development
6288 GCPAppHubDestinationWorkloadEnvironmentTypeTest = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("TEST")
6289 // Development environment.
6290 // Stability: development
6291 GCPAppHubDestinationWorkloadEnvironmentTypeDevelopment = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
6292 )
6293
6294 // Namespace: gen_ai
6295 const (
6296 // GenAIAgentDescriptionKey is the attribute Key conforming to the
6297 // "gen_ai.agent.description" semantic conventions. It represents the free-form
6298 // description of the GenAI agent provided by the application.
6299 //
6300 // Type: string
6301 // RequirementLevel: Recommended
6302 // Stability: Development
6303 //
6304 // Examples: "Helps with math problems", "Generates fiction stories"
6305 GenAIAgentDescriptionKey = attribute.Key("gen_ai.agent.description")
6306
6307 // GenAIAgentIDKey is the attribute Key conforming to the "gen_ai.agent.id"
6308 // semantic conventions. It represents the unique identifier of the GenAI agent.
6309 //
6310 // Type: string
6311 // RequirementLevel: Recommended
6312 // Stability: Development
6313 //
6314 // Examples: "asst_5j66UpCpwteGg4YSxUnt7lPY"
6315 GenAIAgentIDKey = attribute.Key("gen_ai.agent.id")
6316
6317 // GenAIAgentNameKey is the attribute Key conforming to the "gen_ai.agent.name"
6318 // semantic conventions. It represents the human-readable name of the GenAI
6319 // agent provided by the application.
6320 //
6321 // Type: string
6322 // RequirementLevel: Recommended
6323 // Stability: Development
6324 //
6325 // Examples: "Math Tutor", "Fiction Writer"
6326 GenAIAgentNameKey = attribute.Key("gen_ai.agent.name")
6327
6328 // GenAIAgentVersionKey is the attribute Key conforming to the
6329 // "gen_ai.agent.version" semantic conventions. It represents the version of the
6330 // GenAI agent.
6331 //
6332 // Type: string
6333 // RequirementLevel: Recommended
6334 // Stability: Development
6335 //
6336 // Examples: "1.0.0", "2025-05-01"
6337 GenAIAgentVersionKey = attribute.Key("gen_ai.agent.version")
6338
6339 // GenAIConversationIDKey is the attribute Key conforming to the
6340 // "gen_ai.conversation.id" semantic conventions. It represents the unique
6341 // identifier for a conversation (session, thread), used to store and correlate
6342 // messages within this conversation.
6343 //
6344 // Type: string
6345 // RequirementLevel: Recommended
6346 // Stability: Development
6347 //
6348 // Examples: "conv_5j66UpCpwteGg4YSxUnt7lPY"
6349 GenAIConversationIDKey = attribute.Key("gen_ai.conversation.id")
6350
6351 // GenAIDataSourceIDKey is the attribute Key conforming to the
6352 // "gen_ai.data_source.id" semantic conventions. It represents the data source
6353 // identifier.
6354 //
6355 // Type: string
6356 // RequirementLevel: Recommended
6357 // Stability: Development
6358 //
6359 // Examples: "H7STPQYOND"
6360 // Note: Data sources are used by AI agents and RAG applications to store
6361 // grounding data. A data source may be an external database, object store,
6362 // document collection, website, or any other storage system used by the GenAI
6363 // agent or application. The `gen_ai.data_source.id` SHOULD match the identifier
6364 // used by the GenAI system rather than a name specific to the external storage,
6365 // such as a database or object store. Semantic conventions referencing
6366 // `gen_ai.data_source.id` MAY also leverage additional attributes, such as
6367 // `db.*`, to further identify and describe the data source.
6368 GenAIDataSourceIDKey = attribute.Key("gen_ai.data_source.id")
6369
6370 // GenAIEmbeddingsDimensionCountKey is the attribute Key conforming to the
6371 // "gen_ai.embeddings.dimension.count" semantic conventions. It represents the
6372 // number of dimensions the resulting output embeddings should have.
6373 //
6374 // Type: int
6375 // RequirementLevel: Recommended
6376 // Stability: Development
6377 //
6378 // Examples: 512, 1024
6379 GenAIEmbeddingsDimensionCountKey = attribute.Key("gen_ai.embeddings.dimension.count")
6380
6381 // GenAIEvaluationExplanationKey is the attribute Key conforming to the
6382 // "gen_ai.evaluation.explanation" semantic conventions. It represents a
6383 // free-form explanation for the assigned score provided by the evaluator.
6384 //
6385 // Type: string
6386 // RequirementLevel: Recommended
6387 // Stability: Development
6388 //
6389 // Examples: "The response is factually accurate but lacks sufficient detail to
6390 // fully address the question."
6391 GenAIEvaluationExplanationKey = attribute.Key("gen_ai.evaluation.explanation")
6392
6393 // GenAIEvaluationNameKey is the attribute Key conforming to the
6394 // "gen_ai.evaluation.name" semantic conventions. It represents the name of the
6395 // evaluation metric used for the GenAI response.
6396 //
6397 // Type: string
6398 // RequirementLevel: Recommended
6399 // Stability: Development
6400 //
6401 // Examples: "Relevance", "IntentResolution"
6402 GenAIEvaluationNameKey = attribute.Key("gen_ai.evaluation.name")
6403
6404 // GenAIEvaluationScoreLabelKey is the attribute Key conforming to the
6405 // "gen_ai.evaluation.score.label" semantic conventions. It represents the human
6406 // readable label for evaluation.
6407 //
6408 // Type: string
6409 // RequirementLevel: Recommended
6410 // Stability: Development
6411 //
6412 // Examples: "relevant", "not_relevant", "correct", "incorrect", "pass", "fail"
6413 // Note: This attribute provides a human-readable interpretation of the
6414 // evaluation score produced by an evaluator. For example, a score value of 1
6415 // could mean "relevant" in one evaluation system and "not relevant" in another,
6416 // depending on the scoring range and evaluator. The label SHOULD have low
6417 // cardinality. Possible values depend on the evaluation metric and evaluator
6418 // used; implementations SHOULD document the possible values.
6419 GenAIEvaluationScoreLabelKey = attribute.Key("gen_ai.evaluation.score.label")
6420
6421 // GenAIEvaluationScoreValueKey is the attribute Key conforming to the
6422 // "gen_ai.evaluation.score.value" semantic conventions. It represents the
6423 // evaluation score returned by the evaluator.
6424 //
6425 // Type: double
6426 // RequirementLevel: Recommended
6427 // Stability: Development
6428 //
6429 // Examples: 4.0
6430 GenAIEvaluationScoreValueKey = attribute.Key("gen_ai.evaluation.score.value")
6431
6432 // GenAIInputMessagesKey is the attribute Key conforming to the
6433 // "gen_ai.input.messages" semantic conventions. It represents the chat history
6434 // provided to the model as an input.
6435 //
6436 // Type: any
6437 // RequirementLevel: Recommended
6438 // Stability: Development
6439 //
6440 // Examples: "[\n {\n "role": "user",\n "parts": [\n {\n "type": "text",\n
6441 // "content": "Weather in Paris?"\n }\n ]\n },\n {\n "role": "assistant",\n
6442 // "parts": [\n {\n "type": "tool_call",\n "id":
6443 // "call_VSPygqKTWdrhaFErNvMV18Yl",\n "name": "get_weather",\n "arguments": {\n
6444 // "location": "Paris"\n }\n }\n ]\n },\n {\n "role": "tool",\n "parts": [\n {\n
6445 // "type": "tool_call_response",\n "id": " call_VSPygqKTWdrhaFErNvMV18Yl",\n
6446 // "result": "rainy, 57°F"\n }\n ]\n }\n]\n"
6447 // Note: Instrumentations MUST follow [Input messages JSON schema].
6448 // When the attribute is recorded on events, it MUST be recorded in structured
6449 // form. When recorded on spans, it MAY be recorded as a JSON string if
6450 // structured
6451 // format is not supported and SHOULD be recorded in structured form otherwise.
6452 //
6453 // Messages MUST be provided in the order they were sent to the model.
6454 // Instrumentations MAY provide a way for users to filter or truncate
6455 // input messages.
6456 //
6457 // > [!Warning]
6458 // > This attribute is likely to contain sensitive information including
6459 // > user/PII data.
6460 //
6461 // See [Recording content on attributes]
6462 // section for more details.
6463 //
6464 // [Input messages JSON schema]: /docs/gen-ai/gen-ai-input-messages.json
6465 // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
6466 GenAIInputMessagesKey = attribute.Key("gen_ai.input.messages")
6467
6468 // GenAIOperationNameKey is the attribute Key conforming to the
6469 // "gen_ai.operation.name" semantic conventions. It represents the name of the
6470 // operation being performed.
6471 //
6472 // Type: Enum
6473 // RequirementLevel: Recommended
6474 // Stability: Development
6475 //
6476 // Examples:
6477 // Note: If one of the predefined values applies, but specific system uses a
6478 // different name it's RECOMMENDED to document it in the semantic conventions
6479 // for specific GenAI system and use system-specific name in the
6480 // instrumentation. If a different name is not documented, instrumentation
6481 // libraries SHOULD use applicable predefined value.
6482 GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
6483
6484 // GenAIOutputMessagesKey is the attribute Key conforming to the
6485 // "gen_ai.output.messages" semantic conventions. It represents the messages
6486 // returned by the model where each message represents a specific model response
6487 // (choice, candidate).
6488 //
6489 // Type: any
6490 // RequirementLevel: Recommended
6491 // Stability: Development
6492 //
6493 // Examples: "[\n {\n "role": "assistant",\n "parts": [\n {\n "type": "text",\n
6494 // "content": "The weather in Paris is currently rainy with a temperature of
6495 // 57°F."\n }\n ],\n "finish_reason": "stop"\n }\n]\n"
6496 // Note: Instrumentations MUST follow [Output messages JSON schema]
6497 //
6498 // Each message represents a single output choice/candidate generated by
6499 // the model. Each message corresponds to exactly one generation
6500 // (choice/candidate) and vice versa - one choice cannot be split across
6501 // multiple messages or one message cannot contain parts from multiple choices.
6502 //
6503 // When the attribute is recorded on events, it MUST be recorded in structured
6504 // form. When recorded on spans, it MAY be recorded as a JSON string if
6505 // structured
6506 // format is not supported and SHOULD be recorded in structured form otherwise.
6507 //
6508 // Instrumentations MAY provide a way for users to filter or truncate
6509 // output messages.
6510 //
6511 // > [!Warning]
6512 // > This attribute is likely to contain sensitive information including
6513 // > user/PII data.
6514 //
6515 // See [Recording content on attributes]
6516 // section for more details.
6517 //
6518 // [Output messages JSON schema]: /docs/gen-ai/gen-ai-output-messages.json
6519 // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
6520 GenAIOutputMessagesKey = attribute.Key("gen_ai.output.messages")
6521
6522 // GenAIOutputTypeKey is the attribute Key conforming to the
6523 // "gen_ai.output.type" semantic conventions. It represents the represents the
6524 // content type requested by the client.
6525 //
6526 // Type: Enum
6527 // RequirementLevel: Recommended
6528 // Stability: Development
6529 //
6530 // Examples:
6531 // Note: This attribute SHOULD be used when the client requests output of a
6532 // specific type. The model may return zero or more outputs of this type.
6533 // This attribute specifies the output modality and not the actual output
6534 // format. For example, if an image is requested, the actual output could be a
6535 // URL pointing to an image file.
6536 // Additional output format details may be recorded in the future in the
6537 // `gen_ai.output.{type}.*` attributes.
6538 GenAIOutputTypeKey = attribute.Key("gen_ai.output.type")
6539
6540 // GenAIPromptNameKey is the attribute Key conforming to the
6541 // "gen_ai.prompt.name" semantic conventions. It represents the name of the
6542 // prompt that uniquely identifies it.
6543 //
6544 // Type: string
6545 // RequirementLevel: Recommended
6546 // Stability: Development
6547 //
6548 // Examples: "analyze-code"
6549 GenAIPromptNameKey = attribute.Key("gen_ai.prompt.name")
6550
6551 // GenAIProviderNameKey is the attribute Key conforming to the
6552 // "gen_ai.provider.name" semantic conventions. It represents the Generative AI
6553 // provider as identified by the client or server instrumentation.
6554 //
6555 // Type: Enum
6556 // RequirementLevel: Recommended
6557 // Stability: Development
6558 //
6559 // Examples:
6560 // Note: The attribute SHOULD be set based on the instrumentation's best
6561 // knowledge and may differ from the actual model provider.
6562 //
6563 // Multiple providers, including Azure OpenAI, Gemini, and AI hosting platforms
6564 // are accessible using the OpenAI REST API and corresponding client libraries,
6565 // but may proxy or host models from different providers.
6566 //
6567 // The `gen_ai.request.model`, `gen_ai.response.model`, and `server.address`
6568 // attributes may help identify the actual system in use.
6569 //
6570 // The `gen_ai.provider.name` attribute acts as a discriminator that
6571 // identifies the GenAI telemetry format flavor specific to that provider
6572 // within GenAI semantic conventions.
6573 // It SHOULD be set consistently with provider-specific attributes and signals.
6574 // For example, GenAI spans, metrics, and events related to AWS Bedrock
6575 // should have the `gen_ai.provider.name` set to `aws.bedrock` and include
6576 // applicable `aws.bedrock.*` attributes and are not expected to include
6577 // `openai.*` attributes.
6578 GenAIProviderNameKey = attribute.Key("gen_ai.provider.name")
6579
6580 // GenAIRequestChoiceCountKey is the attribute Key conforming to the
6581 // "gen_ai.request.choice.count" semantic conventions. It represents the target
6582 // number of candidate completions to return.
6583 //
6584 // Type: int
6585 // RequirementLevel: Recommended
6586 // Stability: Development
6587 //
6588 // Examples: 3
6589 GenAIRequestChoiceCountKey = attribute.Key("gen_ai.request.choice.count")
6590
6591 // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the
6592 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
6593 // encoding formats requested in an embeddings operation, if specified.
6594 //
6595 // Type: string[]
6596 // RequirementLevel: Recommended
6597 // Stability: Development
6598 //
6599 // Examples: "base64"], ["float", "binary"
6600 // Note: In some GenAI systems the encoding formats are called embedding types.
6601 // Also, some GenAI systems only accept a single format per request.
6602 GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats")
6603
6604 // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
6605 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
6606 // frequency penalty setting for the GenAI request.
6607 //
6608 // Type: double
6609 // RequirementLevel: Recommended
6610 // Stability: Development
6611 //
6612 // Examples: 0.1
6613 GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
6614
6615 // GenAIRequestMaxTokensKey is the attribute Key conforming to the
6616 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
6617 // number of tokens the model generates for a request.
6618 //
6619 // Type: int
6620 // RequirementLevel: Recommended
6621 // Stability: Development
6622 //
6623 // Examples: 100
6624 GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
6625
6626 // GenAIRequestModelKey is the attribute Key conforming to the
6627 // "gen_ai.request.model" semantic conventions. It represents the name of the
6628 // GenAI model a request is being made to.
6629 //
6630 // Type: string
6631 // RequirementLevel: Recommended
6632 // Stability: Development
6633 //
6634 // Examples: gpt-4
6635 GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
6636
6637 // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
6638 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
6639 // presence penalty setting for the GenAI request.
6640 //
6641 // Type: double
6642 // RequirementLevel: Recommended
6643 // Stability: Development
6644 //
6645 // Examples: 0.1
6646 GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
6647
6648 // GenAIRequestSeedKey is the attribute Key conforming to the
6649 // "gen_ai.request.seed" semantic conventions. It represents the requests with
6650 // same seed value more likely to return same result.
6651 //
6652 // Type: int
6653 // RequirementLevel: Recommended
6654 // Stability: Development
6655 //
6656 // Examples: 100
6657 GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed")
6658
6659 // GenAIRequestStopSequencesKey is the attribute Key conforming to the
6660 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
6661 // of sequences that the model will use to stop generating further tokens.
6662 //
6663 // Type: string[]
6664 // RequirementLevel: Recommended
6665 // Stability: Development
6666 //
6667 // Examples: "forest", "lived"
6668 GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
6669
6670 // GenAIRequestTemperatureKey is the attribute Key conforming to the
6671 // "gen_ai.request.temperature" semantic conventions. It represents the
6672 // temperature setting for the GenAI request.
6673 //
6674 // Type: double
6675 // RequirementLevel: Recommended
6676 // Stability: Development
6677 //
6678 // Examples: 0.0
6679 GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
6680
6681 // GenAIRequestTopKKey is the attribute Key conforming to the
6682 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
6683 // setting for the GenAI request.
6684 //
6685 // Type: double
6686 // RequirementLevel: Recommended
6687 // Stability: Development
6688 //
6689 // Examples: 1.0
6690 GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
6691
6692 // GenAIRequestTopPKey is the attribute Key conforming to the
6693 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
6694 // setting for the GenAI request.
6695 //
6696 // Type: double
6697 // RequirementLevel: Recommended
6698 // Stability: Development
6699 //
6700 // Examples: 1.0
6701 GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
6702
6703 // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
6704 // "gen_ai.response.finish_reasons" semantic conventions. It represents the
6705 // array of reasons the model stopped generating tokens, corresponding to each
6706 // generation received.
6707 //
6708 // Type: string[]
6709 // RequirementLevel: Recommended
6710 // Stability: Development
6711 //
6712 // Examples: "stop"], ["stop", "length"
6713 GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
6714
6715 // GenAIResponseIDKey is the attribute Key conforming to the
6716 // "gen_ai.response.id" semantic conventions. It represents the unique
6717 // identifier for the completion.
6718 //
6719 // Type: string
6720 // RequirementLevel: Recommended
6721 // Stability: Development
6722 //
6723 // Examples: "chatcmpl-123"
6724 GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
6725
6726 // GenAIResponseModelKey is the attribute Key conforming to the
6727 // "gen_ai.response.model" semantic conventions. It represents the name of the
6728 // model that generated the response.
6729 //
6730 // Type: string
6731 // RequirementLevel: Recommended
6732 // Stability: Development
6733 //
6734 // Examples: "gpt-4-0613"
6735 GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
6736
6737 // GenAIRetrievalDocumentsKey is the attribute Key conforming to the
6738 // "gen_ai.retrieval.documents" semantic conventions. It represents the
6739 // documents retrieved.
6740 //
6741 // Type: any
6742 // RequirementLevel: Recommended
6743 // Stability: Development
6744 //
6745 // Examples: "[\n {\n "id": "doc_123",\n "score": 0.95\n },\n {\n "id":
6746 // "doc_456",\n "score": 0.87\n },\n {\n "id": "doc_789",\n "score": 0.82\n
6747 // }\n]\n"
6748 // Note: Instrumentations MUST follow [Retrieval documents JSON schema].
6749 // When the attribute is recorded on events, it MUST be recorded in structured
6750 // form. When recorded on spans, it MAY be recorded as a JSON string if
6751 // structured
6752 // format is not supported and SHOULD be recorded in structured form otherwise.
6753 //
6754 // Each document object SHOULD contain at least the following properties:
6755 // `id` (string): A unique identifier for the document, `score` (double): The
6756 // relevance score of the document
6757 //
6758 // [Retrieval documents JSON schema]: /docs/gen-ai/gen-ai-retrieval-documents.json
6759 GenAIRetrievalDocumentsKey = attribute.Key("gen_ai.retrieval.documents")
6760
6761 // GenAIRetrievalQueryTextKey is the attribute Key conforming to the
6762 // "gen_ai.retrieval.query.text" semantic conventions. It represents the query
6763 // text used for retrieval.
6764 //
6765 // Type: string
6766 // RequirementLevel: Recommended
6767 // Stability: Development
6768 //
6769 // Examples: "What is the capital of France?", "weather in Paris"
6770 // Note: > [!Warning]
6771 //
6772 // > This attribute may contain sensitive information.
6773 GenAIRetrievalQueryTextKey = attribute.Key("gen_ai.retrieval.query.text")
6774
6775 // GenAISystemInstructionsKey is the attribute Key conforming to the
6776 // "gen_ai.system_instructions" semantic conventions. It represents the system
6777 // message or instructions provided to the GenAI model separately from the chat
6778 // history.
6779 //
6780 // Type: any
6781 // RequirementLevel: Recommended
6782 // Stability: Development
6783 //
6784 // Examples: "[\n {\n "type": "text",\n "content": "You are an Agent that greet
6785 // users, always use greetings tool to respond"\n }\n]\n", "[\n {\n "type":
6786 // "text",\n "content": "You are a language translator."\n },\n {\n "type":
6787 // "text",\n "content": "Your mission is to translate text in English to
6788 // French."\n }\n]\n"
6789 // Note: This attribute SHOULD be used when the corresponding provider or API
6790 // allows to provide system instructions or messages separately from the
6791 // chat history.
6792 //
6793 // Instructions that are part of the chat history SHOULD be recorded in
6794 // `gen_ai.input.messages` attribute instead.
6795 //
6796 // Instrumentations MUST follow [System instructions JSON schema].
6797 //
6798 // When recorded on spans, it MAY be recorded as a JSON string if structured
6799 // format is not supported and SHOULD be recorded in structured form otherwise.
6800 //
6801 // Instrumentations MAY provide a way for users to filter or truncate
6802 // system instructions.
6803 //
6804 // > [!Warning]
6805 // > This attribute may contain sensitive information.
6806 //
6807 // See [Recording content on attributes]
6808 // section for more details.
6809 //
6810 // [System instructions JSON schema]: /docs/gen-ai/gen-ai-system-instructions.json
6811 // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
6812 GenAISystemInstructionsKey = attribute.Key("gen_ai.system_instructions")
6813
6814 // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
6815 // semantic conventions. It represents the type of token being counted.
6816 //
6817 // Type: Enum
6818 // RequirementLevel: Recommended
6819 // Stability: Development
6820 //
6821 // Examples: "input", "output"
6822 GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
6823
6824 // GenAIToolCallArgumentsKey is the attribute Key conforming to the
6825 // "gen_ai.tool.call.arguments" semantic conventions. It represents the
6826 // parameters passed to the tool call.
6827 //
6828 // Type: any
6829 // RequirementLevel: Recommended
6830 // Stability: Development
6831 //
6832 // Examples: "{\n "location": "San Francisco?",\n "date": "2025-10-01"\n}\n"
6833 // Note: > [!WARNING]
6834 //
6835 // > This attribute may contain sensitive information.
6836 //
6837 // It's expected to be an object - in case a serialized string is available
6838 // to the instrumentation, the instrumentation SHOULD do the best effort to
6839 // deserialize it to an object. When recorded on spans, it MAY be recorded as a
6840 // JSON string if structured format is not supported and SHOULD be recorded in
6841 // structured form otherwise.
6842 GenAIToolCallArgumentsKey = attribute.Key("gen_ai.tool.call.arguments")
6843
6844 // GenAIToolCallIDKey is the attribute Key conforming to the
6845 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
6846 // identifier.
6847 //
6848 // Type: string
6849 // RequirementLevel: Recommended
6850 // Stability: Development
6851 //
6852 // Examples: "call_mszuSIzqtI65i1wAUOE8w5H4"
6853 GenAIToolCallIDKey = attribute.Key("gen_ai.tool.call.id")
6854
6855 // GenAIToolCallResultKey is the attribute Key conforming to the
6856 // "gen_ai.tool.call.result" semantic conventions. It represents the result
6857 // returned by the tool call (if any and if execution was successful).
6858 //
6859 // Type: any
6860 // RequirementLevel: Recommended
6861 // Stability: Development
6862 //
6863 // Examples: "{\n "temperature_range": {\n "high": 75,\n "low": 60\n },\n
6864 // "conditions": "sunny"\n}\n"
6865 // Note: > [!WARNING]
6866 //
6867 // > This attribute may contain sensitive information.
6868 //
6869 // It's expected to be an object - in case a serialized string is available
6870 // to the instrumentation, the instrumentation SHOULD do the best effort to
6871 // deserialize it to an object. When recorded on spans, it MAY be recorded as a
6872 // JSON string if structured format is not supported and SHOULD be recorded in
6873 // structured form otherwise.
6874 GenAIToolCallResultKey = attribute.Key("gen_ai.tool.call.result")
6875
6876 // GenAIToolDefinitionsKey is the attribute Key conforming to the
6877 // "gen_ai.tool.definitions" semantic conventions. It represents the list of
6878 // source system tool definitions available to the GenAI agent or model.
6879 //
6880 // Type: any
6881 // RequirementLevel: Recommended
6882 // Stability: Development
6883 //
6884 // Examples: "[\n {\n "type": "function",\n "name": "get_current_weather",\n
6885 // "description": "Get the current weather in a given location",\n "parameters":
6886 // {\n "type": "object",\n "properties": {\n "location": {\n "type": "string",\n
6887 // "description": "The city and state, e.g. San Francisco, CA"\n },\n "unit":
6888 // {\n "type": "string",\n "enum": [\n "celsius",\n "fahrenheit"\n ]\n }\n },\n
6889 // "required": [\n "location",\n "unit"\n ]\n }\n }\n]\n"
6890 // Note: The value of this attribute matches source system tool definition
6891 // format.
6892 //
6893 // It's expected to be an array of objects where each object represents a tool
6894 // definition. In case a serialized string is available
6895 // to the instrumentation, the instrumentation SHOULD do the best effort to
6896 // deserialize it to an array. When recorded on spans, it MAY be recorded as a
6897 // JSON string if structured format is not supported and SHOULD be recorded in
6898 // structured form otherwise.
6899 //
6900 // Since this attribute could be large, it's NOT RECOMMENDED to populate
6901 // it by default. Instrumentations MAY provide a way to enable
6902 // populating this attribute.
6903 GenAIToolDefinitionsKey = attribute.Key("gen_ai.tool.definitions")
6904
6905 // GenAIToolDescriptionKey is the attribute Key conforming to the
6906 // "gen_ai.tool.description" semantic conventions. It represents the tool
6907 // description.
6908 //
6909 // Type: string
6910 // RequirementLevel: Recommended
6911 // Stability: Development
6912 //
6913 // Examples: "Multiply two numbers"
6914 GenAIToolDescriptionKey = attribute.Key("gen_ai.tool.description")
6915
6916 // GenAIToolNameKey is the attribute Key conforming to the "gen_ai.tool.name"
6917 // semantic conventions. It represents the name of the tool utilized by the
6918 // agent.
6919 //
6920 // Type: string
6921 // RequirementLevel: Recommended
6922 // Stability: Development
6923 //
6924 // Examples: "Flights"
6925 GenAIToolNameKey = attribute.Key("gen_ai.tool.name")
6926
6927 // GenAIToolTypeKey is the attribute Key conforming to the "gen_ai.tool.type"
6928 // semantic conventions. It represents the type of the tool utilized by the
6929 // agent.
6930 //
6931 // Type: string
6932 // RequirementLevel: Recommended
6933 // Stability: Development
6934 //
6935 // Examples: "function", "extension", "datastore"
6936 // Note: Extension: A tool executed on the agent-side to directly call external
6937 // APIs, bridging the gap between the agent and real-world systems.
6938 // Agent-side operations involve actions that are performed by the agent on the
6939 // server or within the agent's controlled environment.
6940 // Function: A tool executed on the client-side, where the agent generates
6941 // parameters for a predefined function, and the client executes the logic.
6942 // Client-side operations are actions taken on the user's end or within the
6943 // client application.
6944 // Datastore: A tool used by the agent to access and query structured or
6945 // unstructured external data for retrieval-augmented tasks or knowledge
6946 // updates.
6947 GenAIToolTypeKey = attribute.Key("gen_ai.tool.type")
6948
6949 // GenAIUsageCacheCreationInputTokensKey is the attribute Key conforming to the
6950 // "gen_ai.usage.cache_creation.input_tokens" semantic conventions. It
6951 // represents the number of input tokens written to a provider-managed cache.
6952 //
6953 // Type: int
6954 // RequirementLevel: Recommended
6955 // Stability: Development
6956 //
6957 // Examples: 25
6958 // Note: The value SHOULD be included in `gen_ai.usage.input_tokens`.
6959 GenAIUsageCacheCreationInputTokensKey = attribute.Key("gen_ai.usage.cache_creation.input_tokens")
6960
6961 // GenAIUsageCacheReadInputTokensKey is the attribute Key conforming to the
6962 // "gen_ai.usage.cache_read.input_tokens" semantic conventions. It represents
6963 // the number of input tokens served from a provider-managed cache.
6964 //
6965 // Type: int
6966 // RequirementLevel: Recommended
6967 // Stability: Development
6968 //
6969 // Examples: 50
6970 // Note: The value SHOULD be included in `gen_ai.usage.input_tokens`.
6971 GenAIUsageCacheReadInputTokensKey = attribute.Key("gen_ai.usage.cache_read.input_tokens")
6972
6973 // GenAIUsageInputTokensKey is the attribute Key conforming to the
6974 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
6975 // tokens used in the GenAI input (prompt).
6976 //
6977 // Type: int
6978 // RequirementLevel: Recommended
6979 // Stability: Development
6980 //
6981 // Examples: 100
6982 // Note: This value SHOULD include all types of input tokens, including cached
6983 // tokens.
6984 // Instrumentations SHOULD make a best effort to populate this value, using a
6985 // total
6986 // provided by the provider when available or, depending on the provider API,
6987 // by summing different token types parsed from the provider output.
6988 GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
6989
6990 // GenAIUsageOutputTokensKey is the attribute Key conforming to the
6991 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
6992 // of tokens used in the GenAI response (completion).
6993 //
6994 // Type: int
6995 // RequirementLevel: Recommended
6996 // Stability: Development
6997 //
6998 // Examples: 180
6999 GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
7000 )
7001
7002 // GenAIAgentDescription returns an attribute KeyValue conforming to the
7003 // "gen_ai.agent.description" semantic conventions. It represents the free-form
7004 // description of the GenAI agent provided by the application.
7005 func GenAIAgentDescription(val string) attribute.KeyValue {
7006 return GenAIAgentDescriptionKey.String(val)
7007 }
7008
7009 // GenAIAgentID returns an attribute KeyValue conforming to the "gen_ai.agent.id"
7010 // semantic conventions. It represents the unique identifier of the GenAI agent.
7011 func GenAIAgentID(val string) attribute.KeyValue {
7012 return GenAIAgentIDKey.String(val)
7013 }
7014
7015 // GenAIAgentName returns an attribute KeyValue conforming to the
7016 // "gen_ai.agent.name" semantic conventions. It represents the human-readable
7017 // name of the GenAI agent provided by the application.
7018 func GenAIAgentName(val string) attribute.KeyValue {
7019 return GenAIAgentNameKey.String(val)
7020 }
7021
7022 // GenAIAgentVersion returns an attribute KeyValue conforming to the
7023 // "gen_ai.agent.version" semantic conventions. It represents the version of the
7024 // GenAI agent.
7025 func GenAIAgentVersion(val string) attribute.KeyValue {
7026 return GenAIAgentVersionKey.String(val)
7027 }
7028
7029 // GenAIConversationID returns an attribute KeyValue conforming to the
7030 // "gen_ai.conversation.id" semantic conventions. It represents the unique
7031 // identifier for a conversation (session, thread), used to store and correlate
7032 // messages within this conversation.
7033 func GenAIConversationID(val string) attribute.KeyValue {
7034 return GenAIConversationIDKey.String(val)
7035 }
7036
7037 // GenAIDataSourceID returns an attribute KeyValue conforming to the
7038 // "gen_ai.data_source.id" semantic conventions. It represents the data source
7039 // identifier.
7040 func GenAIDataSourceID(val string) attribute.KeyValue {
7041 return GenAIDataSourceIDKey.String(val)
7042 }
7043
7044 // GenAIEmbeddingsDimensionCount returns an attribute KeyValue conforming to the
7045 // "gen_ai.embeddings.dimension.count" semantic conventions. It represents the
7046 // number of dimensions the resulting output embeddings should have.
7047 func GenAIEmbeddingsDimensionCount(val int) attribute.KeyValue {
7048 return GenAIEmbeddingsDimensionCountKey.Int(val)
7049 }
7050
7051 // GenAIEvaluationExplanation returns an attribute KeyValue conforming to the
7052 // "gen_ai.evaluation.explanation" semantic conventions. It represents a
7053 // free-form explanation for the assigned score provided by the evaluator.
7054 func GenAIEvaluationExplanation(val string) attribute.KeyValue {
7055 return GenAIEvaluationExplanationKey.String(val)
7056 }
7057
7058 // GenAIEvaluationName returns an attribute KeyValue conforming to the
7059 // "gen_ai.evaluation.name" semantic conventions. It represents the name of the
7060 // evaluation metric used for the GenAI response.
7061 func GenAIEvaluationName(val string) attribute.KeyValue {
7062 return GenAIEvaluationNameKey.String(val)
7063 }
7064
7065 // GenAIEvaluationScoreLabel returns an attribute KeyValue conforming to the
7066 // "gen_ai.evaluation.score.label" semantic conventions. It represents the human
7067 // readable label for evaluation.
7068 func GenAIEvaluationScoreLabel(val string) attribute.KeyValue {
7069 return GenAIEvaluationScoreLabelKey.String(val)
7070 }
7071
7072 // GenAIEvaluationScoreValue returns an attribute KeyValue conforming to the
7073 // "gen_ai.evaluation.score.value" semantic conventions. It represents the
7074 // evaluation score returned by the evaluator.
7075 func GenAIEvaluationScoreValue(val float64) attribute.KeyValue {
7076 return GenAIEvaluationScoreValueKey.Float64(val)
7077 }
7078
7079 // GenAIPromptName returns an attribute KeyValue conforming to the
7080 // "gen_ai.prompt.name" semantic conventions. It represents the name of the
7081 // prompt that uniquely identifies it.
7082 func GenAIPromptName(val string) attribute.KeyValue {
7083 return GenAIPromptNameKey.String(val)
7084 }
7085
7086 // GenAIRequestChoiceCount returns an attribute KeyValue conforming to the
7087 // "gen_ai.request.choice.count" semantic conventions. It represents the target
7088 // number of candidate completions to return.
7089 func GenAIRequestChoiceCount(val int) attribute.KeyValue {
7090 return GenAIRequestChoiceCountKey.Int(val)
7091 }
7092
7093 // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the
7094 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
7095 // encoding formats requested in an embeddings operation, if specified.
7096 func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue {
7097 return GenAIRequestEncodingFormatsKey.StringSlice(val)
7098 }
7099
7100 // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
7101 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
7102 // frequency penalty setting for the GenAI request.
7103 func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
7104 return GenAIRequestFrequencyPenaltyKey.Float64(val)
7105 }
7106
7107 // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
7108 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
7109 // number of tokens the model generates for a request.
7110 func GenAIRequestMaxTokens(val int) attribute.KeyValue {
7111 return GenAIRequestMaxTokensKey.Int(val)
7112 }
7113
7114 // GenAIRequestModel returns an attribute KeyValue conforming to the
7115 // "gen_ai.request.model" semantic conventions. It represents the name of the
7116 // GenAI model a request is being made to.
7117 func GenAIRequestModel(val string) attribute.KeyValue {
7118 return GenAIRequestModelKey.String(val)
7119 }
7120
7121 // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
7122 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
7123 // presence penalty setting for the GenAI request.
7124 func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
7125 return GenAIRequestPresencePenaltyKey.Float64(val)
7126 }
7127
7128 // GenAIRequestSeed returns an attribute KeyValue conforming to the
7129 // "gen_ai.request.seed" semantic conventions. It represents the requests with
7130 // same seed value more likely to return same result.
7131 func GenAIRequestSeed(val int) attribute.KeyValue {
7132 return GenAIRequestSeedKey.Int(val)
7133 }
7134
7135 // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
7136 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
7137 // of sequences that the model will use to stop generating further tokens.
7138 func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
7139 return GenAIRequestStopSequencesKey.StringSlice(val)
7140 }
7141
7142 // GenAIRequestTemperature returns an attribute KeyValue conforming to the
7143 // "gen_ai.request.temperature" semantic conventions. It represents the
7144 // temperature setting for the GenAI request.
7145 func GenAIRequestTemperature(val float64) attribute.KeyValue {
7146 return GenAIRequestTemperatureKey.Float64(val)
7147 }
7148
7149 // GenAIRequestTopK returns an attribute KeyValue conforming to the
7150 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
7151 // setting for the GenAI request.
7152 func GenAIRequestTopK(val float64) attribute.KeyValue {
7153 return GenAIRequestTopKKey.Float64(val)
7154 }
7155
7156 // GenAIRequestTopP returns an attribute KeyValue conforming to the
7157 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
7158 // setting for the GenAI request.
7159 func GenAIRequestTopP(val float64) attribute.KeyValue {
7160 return GenAIRequestTopPKey.Float64(val)
7161 }
7162
7163 // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
7164 // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
7165 // of reasons the model stopped generating tokens, corresponding to each
7166 // generation received.
7167 func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
7168 return GenAIResponseFinishReasonsKey.StringSlice(val)
7169 }
7170
7171 // GenAIResponseID returns an attribute KeyValue conforming to the
7172 // "gen_ai.response.id" semantic conventions. It represents the unique identifier
7173 // for the completion.
7174 func GenAIResponseID(val string) attribute.KeyValue {
7175 return GenAIResponseIDKey.String(val)
7176 }
7177
7178 // GenAIResponseModel returns an attribute KeyValue conforming to the
7179 // "gen_ai.response.model" semantic conventions. It represents the name of the
7180 // model that generated the response.
7181 func GenAIResponseModel(val string) attribute.KeyValue {
7182 return GenAIResponseModelKey.String(val)
7183 }
7184
7185 // GenAIRetrievalQueryText returns an attribute KeyValue conforming to the
7186 // "gen_ai.retrieval.query.text" semantic conventions. It represents the query
7187 // text used for retrieval.
7188 func GenAIRetrievalQueryText(val string) attribute.KeyValue {
7189 return GenAIRetrievalQueryTextKey.String(val)
7190 }
7191
7192 // GenAIToolCallID returns an attribute KeyValue conforming to the
7193 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
7194 // identifier.
7195 func GenAIToolCallID(val string) attribute.KeyValue {
7196 return GenAIToolCallIDKey.String(val)
7197 }
7198
7199 // GenAIToolDescription returns an attribute KeyValue conforming to the
7200 // "gen_ai.tool.description" semantic conventions. It represents the tool
7201 // description.
7202 func GenAIToolDescription(val string) attribute.KeyValue {
7203 return GenAIToolDescriptionKey.String(val)
7204 }
7205
7206 // GenAIToolName returns an attribute KeyValue conforming to the
7207 // "gen_ai.tool.name" semantic conventions. It represents the name of the tool
7208 // utilized by the agent.
7209 func GenAIToolName(val string) attribute.KeyValue {
7210 return GenAIToolNameKey.String(val)
7211 }
7212
7213 // GenAIToolType returns an attribute KeyValue conforming to the
7214 // "gen_ai.tool.type" semantic conventions. It represents the type of the tool
7215 // utilized by the agent.
7216 func GenAIToolType(val string) attribute.KeyValue {
7217 return GenAIToolTypeKey.String(val)
7218 }
7219
7220 // GenAIUsageCacheCreationInputTokens returns an attribute KeyValue conforming to
7221 // the "gen_ai.usage.cache_creation.input_tokens" semantic conventions. It
7222 // represents the number of input tokens written to a provider-managed cache.
7223 func GenAIUsageCacheCreationInputTokens(val int) attribute.KeyValue {
7224 return GenAIUsageCacheCreationInputTokensKey.Int(val)
7225 }
7226
7227 // GenAIUsageCacheReadInputTokens returns an attribute KeyValue conforming to the
7228 // "gen_ai.usage.cache_read.input_tokens" semantic conventions. It represents the
7229 // number of input tokens served from a provider-managed cache.
7230 func GenAIUsageCacheReadInputTokens(val int) attribute.KeyValue {
7231 return GenAIUsageCacheReadInputTokensKey.Int(val)
7232 }
7233
7234 // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
7235 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
7236 // tokens used in the GenAI input (prompt).
7237 func GenAIUsageInputTokens(val int) attribute.KeyValue {
7238 return GenAIUsageInputTokensKey.Int(val)
7239 }
7240
7241 // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
7242 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
7243 // tokens used in the GenAI response (completion).
7244 func GenAIUsageOutputTokens(val int) attribute.KeyValue {
7245 return GenAIUsageOutputTokensKey.Int(val)
7246 }
7247
7248 // Enum values for gen_ai.operation.name
7249 var (
7250 // Chat completion operation such as [OpenAI Chat API]
7251 // Stability: development
7252 //
7253 // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
7254 GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
7255 // Multimodal content generation operation such as [Gemini Generate Content]
7256 // Stability: development
7257 //
7258 // [Gemini Generate Content]: https://ai.google.dev/api/generate-content
7259 GenAIOperationNameGenerateContent = GenAIOperationNameKey.String("generate_content")
7260 // Text completions operation such as [OpenAI Completions API (Legacy)]
7261 // Stability: development
7262 //
7263 // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
7264 GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
7265 // Embeddings operation such as [OpenAI Create embeddings API]
7266 // Stability: development
7267 //
7268 // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create
7269 GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings")
7270 // Retrieval operation such as [OpenAI Search Vector Store API]
7271 // Stability: development
7272 //
7273 // [OpenAI Search Vector Store API]: https://platform.openai.com/docs/api-reference/vector-stores/search
7274 GenAIOperationNameRetrieval = GenAIOperationNameKey.String("retrieval")
7275 // Create GenAI agent
7276 // Stability: development
7277 GenAIOperationNameCreateAgent = GenAIOperationNameKey.String("create_agent")
7278 // Invoke GenAI agent
7279 // Stability: development
7280 GenAIOperationNameInvokeAgent = GenAIOperationNameKey.String("invoke_agent")
7281 // Execute a tool
7282 // Stability: development
7283 GenAIOperationNameExecuteTool = GenAIOperationNameKey.String("execute_tool")
7284 )
7285
7286 // Enum values for gen_ai.output.type
7287 var (
7288 // Plain text
7289 // Stability: development
7290 GenAIOutputTypeText = GenAIOutputTypeKey.String("text")
7291 // JSON object with known or unknown schema
7292 // Stability: development
7293 GenAIOutputTypeJSON = GenAIOutputTypeKey.String("json")
7294 // Image
7295 // Stability: development
7296 GenAIOutputTypeImage = GenAIOutputTypeKey.String("image")
7297 // Speech
7298 // Stability: development
7299 GenAIOutputTypeSpeech = GenAIOutputTypeKey.String("speech")
7300 )
7301
7302 // Enum values for gen_ai.provider.name
7303 var (
7304 // [OpenAI]
7305 // Stability: development
7306 //
7307 // [OpenAI]: https://openai.com/
7308 GenAIProviderNameOpenAI = GenAIProviderNameKey.String("openai")
7309 // Any Google generative AI endpoint
7310 // Stability: development
7311 GenAIProviderNameGCPGenAI = GenAIProviderNameKey.String("gcp.gen_ai")
7312 // [Vertex AI]
7313 // Stability: development
7314 //
7315 // [Vertex AI]: https://cloud.google.com/vertex-ai
7316 GenAIProviderNameGCPVertexAI = GenAIProviderNameKey.String("gcp.vertex_ai")
7317 // [Gemini]
7318 // Stability: development
7319 //
7320 // [Gemini]: https://cloud.google.com/products/gemini
7321 GenAIProviderNameGCPGemini = GenAIProviderNameKey.String("gcp.gemini")
7322 // [Anthropic]
7323 // Stability: development
7324 //
7325 // [Anthropic]: https://www.anthropic.com/
7326 GenAIProviderNameAnthropic = GenAIProviderNameKey.String("anthropic")
7327 // [Cohere]
7328 // Stability: development
7329 //
7330 // [Cohere]: https://cohere.com/
7331 GenAIProviderNameCohere = GenAIProviderNameKey.String("cohere")
7332 // Azure AI Inference
7333 // Stability: development
7334 GenAIProviderNameAzureAIInference = GenAIProviderNameKey.String("azure.ai.inference")
7335 // [Azure OpenAI]
7336 // Stability: development
7337 //
7338 // [Azure OpenAI]: https://azure.microsoft.com/products/ai-services/openai-service/
7339 GenAIProviderNameAzureAIOpenAI = GenAIProviderNameKey.String("azure.ai.openai")
7340 // [IBM Watsonx AI]
7341 // Stability: development
7342 //
7343 // [IBM Watsonx AI]: https://www.ibm.com/products/watsonx-ai
7344 GenAIProviderNameIBMWatsonxAI = GenAIProviderNameKey.String("ibm.watsonx.ai")
7345 // [AWS Bedrock]
7346 // Stability: development
7347 //
7348 // [AWS Bedrock]: https://aws.amazon.com/bedrock
7349 GenAIProviderNameAWSBedrock = GenAIProviderNameKey.String("aws.bedrock")
7350 // [Perplexity]
7351 // Stability: development
7352 //
7353 // [Perplexity]: https://www.perplexity.ai/
7354 GenAIProviderNamePerplexity = GenAIProviderNameKey.String("perplexity")
7355 // [xAI]
7356 // Stability: development
7357 //
7358 // [xAI]: https://x.ai/
7359 GenAIProviderNameXAI = GenAIProviderNameKey.String("x_ai")
7360 // [DeepSeek]
7361 // Stability: development
7362 //
7363 // [DeepSeek]: https://www.deepseek.com/
7364 GenAIProviderNameDeepseek = GenAIProviderNameKey.String("deepseek")
7365 // [Groq]
7366 // Stability: development
7367 //
7368 // [Groq]: https://groq.com/
7369 GenAIProviderNameGroq = GenAIProviderNameKey.String("groq")
7370 // [Mistral AI]
7371 // Stability: development
7372 //
7373 // [Mistral AI]: https://mistral.ai/
7374 GenAIProviderNameMistralAI = GenAIProviderNameKey.String("mistral_ai")
7375 )
7376
7377 // Enum values for gen_ai.token.type
7378 var (
7379 // Input tokens (prompt, input, etc.)
7380 // Stability: development
7381 GenAITokenTypeInput = GenAITokenTypeKey.String("input")
7382 // Output tokens (completion, response, etc.)
7383 // Stability: development
7384 GenAITokenTypeOutput = GenAITokenTypeKey.String("output")
7385 )
7386
7387 // Namespace: geo
7388 const (
7389 // GeoContinentCodeKey is the attribute Key conforming to the
7390 // "geo.continent.code" semantic conventions. It represents the two-letter code
7391 // representing continent’s name.
7392 //
7393 // Type: Enum
7394 // RequirementLevel: Recommended
7395 // Stability: Development
7396 //
7397 // Examples:
7398 GeoContinentCodeKey = attribute.Key("geo.continent.code")
7399
7400 // GeoCountryISOCodeKey is the attribute Key conforming to the
7401 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
7402 // Country Code ([ISO 3166-1 alpha2]).
7403 //
7404 // Type: string
7405 // RequirementLevel: Recommended
7406 // Stability: Development
7407 //
7408 // Examples: "CA"
7409 //
7410 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
7411 GeoCountryISOCodeKey = attribute.Key("geo.country.iso_code")
7412
7413 // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name"
7414 // semantic conventions. It represents the locality name. Represents the name of
7415 // a city, town, village, or similar populated place.
7416 //
7417 // Type: string
7418 // RequirementLevel: Recommended
7419 // Stability: Development
7420 //
7421 // Examples: "Montreal", "Berlin"
7422 GeoLocalityNameKey = attribute.Key("geo.locality.name")
7423
7424 // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat"
7425 // semantic conventions. It represents the latitude of the geo location in
7426 // [WGS84].
7427 //
7428 // Type: double
7429 // RequirementLevel: Recommended
7430 // Stability: Development
7431 //
7432 // Examples: 45.505918
7433 //
7434 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
7435 GeoLocationLatKey = attribute.Key("geo.location.lat")
7436
7437 // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon"
7438 // semantic conventions. It represents the longitude of the geo location in
7439 // [WGS84].
7440 //
7441 // Type: double
7442 // RequirementLevel: Recommended
7443 // Stability: Development
7444 //
7445 // Examples: -73.61483
7446 //
7447 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
7448 GeoLocationLonKey = attribute.Key("geo.location.lon")
7449
7450 // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code"
7451 // semantic conventions. It represents the postal code associated with the
7452 // location. Values appropriate for this field may also be known as a postcode
7453 // or ZIP code and will vary widely from country to country.
7454 //
7455 // Type: string
7456 // RequirementLevel: Recommended
7457 // Stability: Development
7458 //
7459 // Examples: "94040"
7460 GeoPostalCodeKey = attribute.Key("geo.postal_code")
7461
7462 // GeoRegionISOCodeKey is the attribute Key conforming to the
7463 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
7464 // ([ISO 3166-2]).
7465 //
7466 // Type: string
7467 // RequirementLevel: Recommended
7468 // Stability: Development
7469 //
7470 // Examples: "CA-QC"
7471 //
7472 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
7473 GeoRegionISOCodeKey = attribute.Key("geo.region.iso_code")
7474 )
7475
7476 // GeoCountryISOCode returns an attribute KeyValue conforming to the
7477 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
7478 // Country Code ([ISO 3166-1 alpha2]).
7479 //
7480 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
7481 func GeoCountryISOCode(val string) attribute.KeyValue {
7482 return GeoCountryISOCodeKey.String(val)
7483 }
7484
7485 // GeoLocalityName returns an attribute KeyValue conforming to the
7486 // "geo.locality.name" semantic conventions. It represents the locality name.
7487 // Represents the name of a city, town, village, or similar populated place.
7488 func GeoLocalityName(val string) attribute.KeyValue {
7489 return GeoLocalityNameKey.String(val)
7490 }
7491
7492 // GeoLocationLat returns an attribute KeyValue conforming to the
7493 // "geo.location.lat" semantic conventions. It represents the latitude of the geo
7494 // location in [WGS84].
7495 //
7496 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
7497 func GeoLocationLat(val float64) attribute.KeyValue {
7498 return GeoLocationLatKey.Float64(val)
7499 }
7500
7501 // GeoLocationLon returns an attribute KeyValue conforming to the
7502 // "geo.location.lon" semantic conventions. It represents the longitude of the
7503 // geo location in [WGS84].
7504 //
7505 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
7506 func GeoLocationLon(val float64) attribute.KeyValue {
7507 return GeoLocationLonKey.Float64(val)
7508 }
7509
7510 // GeoPostalCode returns an attribute KeyValue conforming to the
7511 // "geo.postal_code" semantic conventions. It represents the postal code
7512 // associated with the location. Values appropriate for this field may also be
7513 // known as a postcode or ZIP code and will vary widely from country to country.
7514 func GeoPostalCode(val string) attribute.KeyValue {
7515 return GeoPostalCodeKey.String(val)
7516 }
7517
7518 // GeoRegionISOCode returns an attribute KeyValue conforming to the
7519 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
7520 // ([ISO 3166-2]).
7521 //
7522 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
7523 func GeoRegionISOCode(val string) attribute.KeyValue {
7524 return GeoRegionISOCodeKey.String(val)
7525 }
7526
7527 // Enum values for geo.continent.code
7528 var (
7529 // Africa
7530 // Stability: development
7531 GeoContinentCodeAf = GeoContinentCodeKey.String("AF")
7532 // Antarctica
7533 // Stability: development
7534 GeoContinentCodeAn = GeoContinentCodeKey.String("AN")
7535 // Asia
7536 // Stability: development
7537 GeoContinentCodeAs = GeoContinentCodeKey.String("AS")
7538 // Europe
7539 // Stability: development
7540 GeoContinentCodeEu = GeoContinentCodeKey.String("EU")
7541 // North America
7542 // Stability: development
7543 GeoContinentCodeNa = GeoContinentCodeKey.String("NA")
7544 // Oceania
7545 // Stability: development
7546 GeoContinentCodeOc = GeoContinentCodeKey.String("OC")
7547 // South America
7548 // Stability: development
7549 GeoContinentCodeSa = GeoContinentCodeKey.String("SA")
7550 )
7551
7552 // Namespace: go
7553 const (
7554 // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
7555 // semantic conventions. It represents the type of memory.
7556 //
7557 // Type: Enum
7558 // RequirementLevel: Recommended
7559 // Stability: Development
7560 //
7561 // Examples: "other", "stack"
7562 GoMemoryTypeKey = attribute.Key("go.memory.type")
7563 )
7564
7565 // Enum values for go.memory.type
7566 var (
7567 // Memory allocated from the heap that is reserved for stack space, whether or
7568 // not it is currently in-use.
7569 // Stability: development
7570 GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
7571 // Memory used by the Go runtime, excluding other categories of memory usage
7572 // described in this enumeration.
7573 // Stability: development
7574 GoMemoryTypeOther = GoMemoryTypeKey.String("other")
7575 )
7576
7577 // Namespace: graphql
7578 const (
7579 // GraphQLDocumentKey is the attribute Key conforming to the "graphql.document"
7580 // semantic conventions. It represents the GraphQL document being executed.
7581 //
7582 // Type: string
7583 // RequirementLevel: Recommended
7584 // Stability: Development
7585 //
7586 // Examples: query findBookById { bookById(id: ?) { name } }
7587 // Note: The value may be sanitized to exclude sensitive information.
7588 GraphQLDocumentKey = attribute.Key("graphql.document")
7589
7590 // GraphQLOperationNameKey is the attribute Key conforming to the
7591 // "graphql.operation.name" semantic conventions. It represents the name of the
7592 // operation being executed.
7593 //
7594 // Type: string
7595 // RequirementLevel: Recommended
7596 // Stability: Development
7597 //
7598 // Examples: findBookById
7599 GraphQLOperationNameKey = attribute.Key("graphql.operation.name")
7600
7601 // GraphQLOperationTypeKey is the attribute Key conforming to the
7602 // "graphql.operation.type" semantic conventions. It represents the type of the
7603 // operation being executed.
7604 //
7605 // Type: Enum
7606 // RequirementLevel: Recommended
7607 // Stability: Development
7608 //
7609 // Examples: "query", "mutation", "subscription"
7610 GraphQLOperationTypeKey = attribute.Key("graphql.operation.type")
7611 )
7612
7613 // GraphQLDocument returns an attribute KeyValue conforming to the
7614 // "graphql.document" semantic conventions. It represents the GraphQL document
7615 // being executed.
7616 func GraphQLDocument(val string) attribute.KeyValue {
7617 return GraphQLDocumentKey.String(val)
7618 }
7619
7620 // GraphQLOperationName returns an attribute KeyValue conforming to the
7621 // "graphql.operation.name" semantic conventions. It represents the name of the
7622 // operation being executed.
7623 func GraphQLOperationName(val string) attribute.KeyValue {
7624 return GraphQLOperationNameKey.String(val)
7625 }
7626
7627 // Enum values for graphql.operation.type
7628 var (
7629 // GraphQL query
7630 // Stability: development
7631 GraphQLOperationTypeQuery = GraphQLOperationTypeKey.String("query")
7632 // GraphQL mutation
7633 // Stability: development
7634 GraphQLOperationTypeMutation = GraphQLOperationTypeKey.String("mutation")
7635 // GraphQL subscription
7636 // Stability: development
7637 GraphQLOperationTypeSubscription = GraphQLOperationTypeKey.String("subscription")
7638 )
7639
7640 // Namespace: heroku
7641 const (
7642 // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
7643 // semantic conventions. It represents the unique identifier for the
7644 // application.
7645 //
7646 // Type: string
7647 // RequirementLevel: Recommended
7648 // Stability: Development
7649 //
7650 // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
7651 HerokuAppIDKey = attribute.Key("heroku.app.id")
7652
7653 // HerokuReleaseCommitKey is the attribute Key conforming to the
7654 // "heroku.release.commit" semantic conventions. It represents the commit hash
7655 // for the current release.
7656 //
7657 // Type: string
7658 // RequirementLevel: Recommended
7659 // Stability: Development
7660 //
7661 // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
7662 HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
7663
7664 // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
7665 // "heroku.release.creation_timestamp" semantic conventions. It represents the
7666 // time and date the release was created.
7667 //
7668 // Type: string
7669 // RequirementLevel: Recommended
7670 // Stability: Development
7671 //
7672 // Examples: "2022-10-23T18:00:42Z"
7673 HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
7674 )
7675
7676 // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
7677 // semantic conventions. It represents the unique identifier for the application.
7678 func HerokuAppID(val string) attribute.KeyValue {
7679 return HerokuAppIDKey.String(val)
7680 }
7681
7682 // HerokuReleaseCommit returns an attribute KeyValue conforming to the
7683 // "heroku.release.commit" semantic conventions. It represents the commit hash
7684 // for the current release.
7685 func HerokuReleaseCommit(val string) attribute.KeyValue {
7686 return HerokuReleaseCommitKey.String(val)
7687 }
7688
7689 // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
7690 // "heroku.release.creation_timestamp" semantic conventions. It represents the
7691 // time and date the release was created.
7692 func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
7693 return HerokuReleaseCreationTimestampKey.String(val)
7694 }
7695
7696 // Namespace: host
7697 const (
7698 // HostArchKey is the attribute Key conforming to the "host.arch" semantic
7699 // conventions. It represents the CPU architecture the host system is running
7700 // on.
7701 //
7702 // Type: Enum
7703 // RequirementLevel: Recommended
7704 // Stability: Development
7705 //
7706 // Examples:
7707 HostArchKey = attribute.Key("host.arch")
7708
7709 // HostCPUCacheL2SizeKey is the attribute Key conforming to the
7710 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
7711 // level 2 memory cache available to the processor (in Bytes).
7712 //
7713 // Type: int
7714 // RequirementLevel: Recommended
7715 // Stability: Development
7716 //
7717 // Examples: 12288000
7718 HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
7719
7720 // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
7721 // semantic conventions. It represents the family or generation of the CPU.
7722 //
7723 // Type: string
7724 // RequirementLevel: Recommended
7725 // Stability: Development
7726 //
7727 // Examples: "6", "PA-RISC 1.1e"
7728 HostCPUFamilyKey = attribute.Key("host.cpu.family")
7729
7730 // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
7731 // semantic conventions. It represents the model identifier. It provides more
7732 // granular information about the CPU, distinguishing it from other CPUs within
7733 // the same family.
7734 //
7735 // Type: string
7736 // RequirementLevel: Recommended
7737 // Stability: Development
7738 //
7739 // Examples: "6", "9000/778/B180L"
7740 HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
7741
7742 // HostCPUModelNameKey is the attribute Key conforming to the
7743 // "host.cpu.model.name" semantic conventions. It represents the model
7744 // designation of the processor.
7745 //
7746 // Type: string
7747 // RequirementLevel: Recommended
7748 // Stability: Development
7749 //
7750 // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
7751 HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
7752
7753 // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
7754 // semantic conventions. It represents the stepping or core revisions.
7755 //
7756 // Type: string
7757 // RequirementLevel: Recommended
7758 // Stability: Development
7759 //
7760 // Examples: "1", "r1p1"
7761 HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
7762
7763 // HostCPUVendorIDKey is the attribute Key conforming to the
7764 // "host.cpu.vendor.id" semantic conventions. It represents the processor
7765 // manufacturer identifier. A maximum 12-character string.
7766 //
7767 // Type: string
7768 // RequirementLevel: Recommended
7769 // Stability: Development
7770 //
7771 // Examples: "GenuineIntel"
7772 // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
7773 // registers. Writing these to memory in this order results in a 12-character
7774 // string.
7775 //
7776 // [CPUID]: https://wiki.osdev.org/CPUID
7777 HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
7778
7779 // HostIDKey is the attribute Key conforming to the "host.id" semantic
7780 // conventions. It represents the unique host ID. For Cloud, this must be the
7781 // instance_id assigned by the cloud provider. For non-containerized systems,
7782 // this should be the `machine-id`. See the table below for the sources to use
7783 // to determine the `machine-id` based on operating system.
7784 //
7785 // Type: string
7786 // RequirementLevel: Recommended
7787 // Stability: Development
7788 //
7789 // Examples: "fdbf79e8af94cb7f9e8df36789187052"
7790 HostIDKey = attribute.Key("host.id")
7791
7792 // HostImageIDKey is the attribute Key conforming to the "host.image.id"
7793 // semantic conventions. It represents the VM image ID or host OS image ID. For
7794 // Cloud, this value is from the provider.
7795 //
7796 // Type: string
7797 // RequirementLevel: Recommended
7798 // Stability: Development
7799 //
7800 // Examples: "ami-07b06b442921831e5"
7801 HostImageIDKey = attribute.Key("host.image.id")
7802
7803 // HostImageNameKey is the attribute Key conforming to the "host.image.name"
7804 // semantic conventions. It represents the name of the VM image or OS install
7805 // the host was instantiated from.
7806 //
7807 // Type: string
7808 // RequirementLevel: Recommended
7809 // Stability: Development
7810 //
7811 // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
7812 HostImageNameKey = attribute.Key("host.image.name")
7813
7814 // HostImageVersionKey is the attribute Key conforming to the
7815 // "host.image.version" semantic conventions. It represents the version string
7816 // of the VM image or host OS as defined in [Version Attributes].
7817 //
7818 // Type: string
7819 // RequirementLevel: Recommended
7820 // Stability: Development
7821 //
7822 // Examples: "0.1"
7823 //
7824 // [Version Attributes]: /docs/resource/README.md#version-attributes
7825 HostImageVersionKey = attribute.Key("host.image.version")
7826
7827 // HostIPKey is the attribute Key conforming to the "host.ip" semantic
7828 // conventions. It represents the available IP addresses of the host, excluding
7829 // loopback interfaces.
7830 //
7831 // Type: string[]
7832 // RequirementLevel: Recommended
7833 // Stability: Development
7834 //
7835 // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
7836 // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
7837 // addresses MUST be specified in the [RFC 5952] format.
7838 //
7839 // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
7840 HostIPKey = attribute.Key("host.ip")
7841
7842 // HostMacKey is the attribute Key conforming to the "host.mac" semantic
7843 // conventions. It represents the available MAC addresses of the host, excluding
7844 // loopback interfaces.
7845 //
7846 // Type: string[]
7847 // RequirementLevel: Recommended
7848 // Stability: Development
7849 //
7850 // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
7851 // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
7852 // hyphen-separated octets in uppercase hexadecimal form from most to least
7853 // significant.
7854 //
7855 // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
7856 HostMacKey = attribute.Key("host.mac")
7857
7858 // HostNameKey is the attribute Key conforming to the "host.name" semantic
7859 // conventions. It represents the name of the host. On Unix systems, it may
7860 // contain what the hostname command returns, or the fully qualified hostname,
7861 // or another name specified by the user.
7862 //
7863 // Type: string
7864 // RequirementLevel: Recommended
7865 // Stability: Development
7866 //
7867 // Examples: "opentelemetry-test"
7868 HostNameKey = attribute.Key("host.name")
7869
7870 // HostTypeKey is the attribute Key conforming to the "host.type" semantic
7871 // conventions. It represents the type of host. For Cloud, this must be the
7872 // machine type.
7873 //
7874 // Type: string
7875 // RequirementLevel: Recommended
7876 // Stability: Development
7877 //
7878 // Examples: "n1-standard-1"
7879 HostTypeKey = attribute.Key("host.type")
7880 )
7881
7882 // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
7883 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
7884 // level 2 memory cache available to the processor (in Bytes).
7885 func HostCPUCacheL2Size(val int) attribute.KeyValue {
7886 return HostCPUCacheL2SizeKey.Int(val)
7887 }
7888
7889 // HostCPUFamily returns an attribute KeyValue conforming to the
7890 // "host.cpu.family" semantic conventions. It represents the family or generation
7891 // of the CPU.
7892 func HostCPUFamily(val string) attribute.KeyValue {
7893 return HostCPUFamilyKey.String(val)
7894 }
7895
7896 // HostCPUModelID returns an attribute KeyValue conforming to the
7897 // "host.cpu.model.id" semantic conventions. It represents the model identifier.
7898 // It provides more granular information about the CPU, distinguishing it from
7899 // other CPUs within the same family.
7900 func HostCPUModelID(val string) attribute.KeyValue {
7901 return HostCPUModelIDKey.String(val)
7902 }
7903
7904 // HostCPUModelName returns an attribute KeyValue conforming to the
7905 // "host.cpu.model.name" semantic conventions. It represents the model
7906 // designation of the processor.
7907 func HostCPUModelName(val string) attribute.KeyValue {
7908 return HostCPUModelNameKey.String(val)
7909 }
7910
7911 // HostCPUStepping returns an attribute KeyValue conforming to the
7912 // "host.cpu.stepping" semantic conventions. It represents the stepping or core
7913 // revisions.
7914 func HostCPUStepping(val string) attribute.KeyValue {
7915 return HostCPUSteppingKey.String(val)
7916 }
7917
7918 // HostCPUVendorID returns an attribute KeyValue conforming to the
7919 // "host.cpu.vendor.id" semantic conventions. It represents the processor
7920 // manufacturer identifier. A maximum 12-character string.
7921 func HostCPUVendorID(val string) attribute.KeyValue {
7922 return HostCPUVendorIDKey.String(val)
7923 }
7924
7925 // HostID returns an attribute KeyValue conforming to the "host.id" semantic
7926 // conventions. It represents the unique host ID. For Cloud, this must be the
7927 // instance_id assigned by the cloud provider. For non-containerized systems,
7928 // this should be the `machine-id`. See the table below for the sources to use to
7929 // determine the `machine-id` based on operating system.
7930 func HostID(val string) attribute.KeyValue {
7931 return HostIDKey.String(val)
7932 }
7933
7934 // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
7935 // semantic conventions. It represents the VM image ID or host OS image ID. For
7936 // Cloud, this value is from the provider.
7937 func HostImageID(val string) attribute.KeyValue {
7938 return HostImageIDKey.String(val)
7939 }
7940
7941 // HostImageName returns an attribute KeyValue conforming to the
7942 // "host.image.name" semantic conventions. It represents the name of the VM image
7943 // or OS install the host was instantiated from.
7944 func HostImageName(val string) attribute.KeyValue {
7945 return HostImageNameKey.String(val)
7946 }
7947
7948 // HostImageVersion returns an attribute KeyValue conforming to the
7949 // "host.image.version" semantic conventions. It represents the version string of
7950 // the VM image or host OS as defined in [Version Attributes].
7951 //
7952 // [Version Attributes]: /docs/resource/README.md#version-attributes
7953 func HostImageVersion(val string) attribute.KeyValue {
7954 return HostImageVersionKey.String(val)
7955 }
7956
7957 // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
7958 // conventions. It represents the available IP addresses of the host, excluding
7959 // loopback interfaces.
7960 func HostIP(val ...string) attribute.KeyValue {
7961 return HostIPKey.StringSlice(val)
7962 }
7963
7964 // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
7965 // conventions. It represents the available MAC addresses of the host, excluding
7966 // loopback interfaces.
7967 func HostMac(val ...string) attribute.KeyValue {
7968 return HostMacKey.StringSlice(val)
7969 }
7970
7971 // HostName returns an attribute KeyValue conforming to the "host.name" semantic
7972 // conventions. It represents the name of the host. On Unix systems, it may
7973 // contain what the hostname command returns, or the fully qualified hostname, or
7974 // another name specified by the user.
7975 func HostName(val string) attribute.KeyValue {
7976 return HostNameKey.String(val)
7977 }
7978
7979 // HostType returns an attribute KeyValue conforming to the "host.type" semantic
7980 // conventions. It represents the type of host. For Cloud, this must be the
7981 // machine type.
7982 func HostType(val string) attribute.KeyValue {
7983 return HostTypeKey.String(val)
7984 }
7985
7986 // Enum values for host.arch
7987 var (
7988 // AMD64
7989 // Stability: development
7990 HostArchAMD64 = HostArchKey.String("amd64")
7991 // ARM32
7992 // Stability: development
7993 HostArchARM32 = HostArchKey.String("arm32")
7994 // ARM64
7995 // Stability: development
7996 HostArchARM64 = HostArchKey.String("arm64")
7997 // Itanium
7998 // Stability: development
7999 HostArchIA64 = HostArchKey.String("ia64")
8000 // 32-bit PowerPC
8001 // Stability: development
8002 HostArchPPC32 = HostArchKey.String("ppc32")
8003 // 64-bit PowerPC
8004 // Stability: development
8005 HostArchPPC64 = HostArchKey.String("ppc64")
8006 // IBM z/Architecture
8007 // Stability: development
8008 HostArchS390x = HostArchKey.String("s390x")
8009 // 32-bit x86
8010 // Stability: development
8011 HostArchX86 = HostArchKey.String("x86")
8012 )
8013
8014 // Namespace: http
8015 const (
8016 // HTTPConnectionStateKey is the attribute Key conforming to the
8017 // "http.connection.state" semantic conventions. It represents the state of the
8018 // HTTP connection in the HTTP connection pool.
8019 //
8020 // Type: Enum
8021 // RequirementLevel: Recommended
8022 // Stability: Development
8023 //
8024 // Examples: "active", "idle"
8025 HTTPConnectionStateKey = attribute.Key("http.connection.state")
8026
8027 // HTTPRequestBodySizeKey is the attribute Key conforming to the
8028 // "http.request.body.size" semantic conventions. It represents the size of the
8029 // request payload body in bytes. This is the number of bytes transferred
8030 // excluding headers and is often, but not always, present as the
8031 // [Content-Length] header. For requests using transport encoding, this should
8032 // be the compressed size.
8033 //
8034 // Type: int
8035 // RequirementLevel: Recommended
8036 // Stability: Development
8037 //
8038 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
8039 HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
8040
8041 // HTTPRequestMethodKey is the attribute Key conforming to the
8042 // "http.request.method" semantic conventions. It represents the HTTP request
8043 // method.
8044 //
8045 // Type: Enum
8046 // RequirementLevel: Recommended
8047 // Stability: Stable
8048 //
8049 // Examples: "GET", "POST", "HEAD"
8050 // Note: HTTP request method value SHOULD be "known" to the instrumentation.
8051 // By default, this convention defines "known" methods as the ones listed in
8052 // [RFC9110],
8053 // the PATCH method defined in [RFC5789]
8054 // and the QUERY method defined in [httpbis-safe-method-w-body].
8055 //
8056 // If the HTTP request method is not known to instrumentation, it MUST set the
8057 // `http.request.method` attribute to `_OTHER`.
8058 //
8059 // If the HTTP instrumentation could end up converting valid HTTP request
8060 // methods to `_OTHER`, then it MUST provide a way to override
8061 // the list of known HTTP methods. If this override is done via environment
8062 // variable, then the environment variable MUST be named
8063 // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
8064 // case-sensitive known HTTP methods.
8065 //
8066 //
8067 // If this override is done via declarative configuration, then the list MUST be
8068 // configurable via the `known_methods` property
8069 // (an array of case-sensitive strings with minimum items 0) under
8070 // `.instrumentation/development.general.http.client` and/or
8071 // `.instrumentation/development.general.http.server`.
8072 //
8073 // In either case, this list MUST be a full override of the default known
8074 // methods,
8075 // it is not a list of known methods in addition to the defaults.
8076 //
8077 // HTTP method names are case-sensitive and `http.request.method` attribute
8078 // value MUST match a known HTTP method name exactly.
8079 // Instrumentations for specific web frameworks that consider HTTP methods to be
8080 // case insensitive, SHOULD populate a canonical equivalent.
8081 // Tracing instrumentations that do so, MUST also set
8082 // `http.request.method_original` to the original value.
8083 //
8084 // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
8085 // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
8086 // [httpbis-safe-method-w-body]: https://datatracker.ietf.org/doc/draft-ietf-httpbis-safe-method-w-body/?include_text=1
8087 HTTPRequestMethodKey = attribute.Key("http.request.method")
8088
8089 // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
8090 // "http.request.method_original" semantic conventions. It represents the
8091 // original HTTP method sent by the client in the request line.
8092 //
8093 // Type: string
8094 // RequirementLevel: Recommended
8095 // Stability: Stable
8096 //
8097 // Examples: "GeT", "ACL", "foo"
8098 HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
8099
8100 // HTTPRequestResendCountKey is the attribute Key conforming to the
8101 // "http.request.resend_count" semantic conventions. It represents the ordinal
8102 // number of request resending attempt (for any reason, including redirects).
8103 //
8104 // Type: int
8105 // RequirementLevel: Recommended
8106 // Stability: Stable
8107 //
8108 // Note: The resend count SHOULD be updated each time an HTTP request gets
8109 // resent by the client, regardless of what was the cause of the resending (e.g.
8110 // redirection, authorization failure, 503 Server Unavailable, network issues,
8111 // or any other).
8112 HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
8113
8114 // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
8115 // semantic conventions. It represents the total size of the request in bytes.
8116 // This should be the total number of bytes sent over the wire, including the
8117 // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
8118 // body if any.
8119 //
8120 // Type: int
8121 // RequirementLevel: Recommended
8122 // Stability: Development
8123 HTTPRequestSizeKey = attribute.Key("http.request.size")
8124
8125 // HTTPResponseBodySizeKey is the attribute Key conforming to the
8126 // "http.response.body.size" semantic conventions. It represents the size of the
8127 // response payload body in bytes. This is the number of bytes transferred
8128 // excluding headers and is often, but not always, present as the
8129 // [Content-Length] header. For requests using transport encoding, this should
8130 // be the compressed size.
8131 //
8132 // Type: int
8133 // RequirementLevel: Recommended
8134 // Stability: Development
8135 //
8136 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
8137 HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
8138
8139 // HTTPResponseSizeKey is the attribute Key conforming to the
8140 // "http.response.size" semantic conventions. It represents the total size of
8141 // the response in bytes. This should be the total number of bytes sent over the
8142 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
8143 // headers, and response body and trailers if any.
8144 //
8145 // Type: int
8146 // RequirementLevel: Recommended
8147 // Stability: Development
8148 HTTPResponseSizeKey = attribute.Key("http.response.size")
8149
8150 // HTTPResponseStatusCodeKey is the attribute Key conforming to the
8151 // "http.response.status_code" semantic conventions. It represents the
8152 // [HTTP response status code].
8153 //
8154 // Type: int
8155 // RequirementLevel: Recommended
8156 // Stability: Stable
8157 //
8158 // Examples: 200
8159 //
8160 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
8161 HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
8162
8163 // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
8164 // conventions. It represents the matched route template for the request. This
8165 // MUST be low-cardinality and include all static path segments, with dynamic
8166 // path segments represented with placeholders.
8167 //
8168 // Type: string
8169 // RequirementLevel: Recommended
8170 // Stability: Stable
8171 //
8172 // Examples: "/users/:userID?", "my-controller/my-action/{id?}"
8173 // Note: MUST NOT be populated when this is not supported by the HTTP server
8174 // framework as the route attribute should have low-cardinality and the URI path
8175 // can NOT substitute it.
8176 // SHOULD include the [application root] if there is one.
8177 //
8178 // A static path segment is a part of the route template with a fixed,
8179 // low-cardinality value. This includes literal strings like `/users/` and
8180 // placeholders that
8181 // are constrained to a finite, predefined set of values, e.g. `{controller}` or
8182 // `{action}`.
8183 //
8184 // A dynamic path segment is a placeholder for a value that can have high
8185 // cardinality and is not constrained to a predefined list like static path
8186 // segments.
8187 //
8188 // Instrumentations SHOULD use routing information provided by the corresponding
8189 // web framework. They SHOULD pick the most precise source of routing
8190 // information and MAY
8191 // support custom route formatting. Instrumentations SHOULD document the format
8192 // and the API used to obtain the route string.
8193 //
8194 // [application root]: /docs/http/http-spans.md#http-server-definitions
8195 HTTPRouteKey = attribute.Key("http.route")
8196 )
8197
8198 // HTTPRequestBodySize returns an attribute KeyValue conforming to the
8199 // "http.request.body.size" semantic conventions. It represents the size of the
8200 // request payload body in bytes. This is the number of bytes transferred
8201 // excluding headers and is often, but not always, present as the
8202 // [Content-Length] header. For requests using transport encoding, this should be
8203 // the compressed size.
8204 //
8205 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
8206 func HTTPRequestBodySize(val int) attribute.KeyValue {
8207 return HTTPRequestBodySizeKey.Int(val)
8208 }
8209
8210 // HTTPRequestHeader returns an attribute KeyValue conforming to the
8211 // "http.request.header" semantic conventions. It represents the HTTP request
8212 // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
8213 // being the header values.
8214 func HTTPRequestHeader(key string, val ...string) attribute.KeyValue {
8215 return attribute.StringSlice("http.request.header."+key, val)
8216 }
8217
8218 // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
8219 // "http.request.method_original" semantic conventions. It represents the
8220 // original HTTP method sent by the client in the request line.
8221 func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
8222 return HTTPRequestMethodOriginalKey.String(val)
8223 }
8224
8225 // HTTPRequestResendCount returns an attribute KeyValue conforming to the
8226 // "http.request.resend_count" semantic conventions. It represents the ordinal
8227 // number of request resending attempt (for any reason, including redirects).
8228 func HTTPRequestResendCount(val int) attribute.KeyValue {
8229 return HTTPRequestResendCountKey.Int(val)
8230 }
8231
8232 // HTTPRequestSize returns an attribute KeyValue conforming to the
8233 // "http.request.size" semantic conventions. It represents the total size of the
8234 // request in bytes. This should be the total number of bytes sent over the wire,
8235 // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
8236 // and request body if any.
8237 func HTTPRequestSize(val int) attribute.KeyValue {
8238 return HTTPRequestSizeKey.Int(val)
8239 }
8240
8241 // HTTPResponseBodySize returns an attribute KeyValue conforming to the
8242 // "http.response.body.size" semantic conventions. It represents the size of the
8243 // response payload body in bytes. This is the number of bytes transferred
8244 // excluding headers and is often, but not always, present as the
8245 // [Content-Length] header. For requests using transport encoding, this should be
8246 // the compressed size.
8247 //
8248 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
8249 func HTTPResponseBodySize(val int) attribute.KeyValue {
8250 return HTTPResponseBodySizeKey.Int(val)
8251 }
8252
8253 // HTTPResponseHeader returns an attribute KeyValue conforming to the
8254 // "http.response.header" semantic conventions. It represents the HTTP response
8255 // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
8256 // being the header values.
8257 func HTTPResponseHeader(key string, val ...string) attribute.KeyValue {
8258 return attribute.StringSlice("http.response.header."+key, val)
8259 }
8260
8261 // HTTPResponseSize returns an attribute KeyValue conforming to the
8262 // "http.response.size" semantic conventions. It represents the total size of the
8263 // response in bytes. This should be the total number of bytes sent over the
8264 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
8265 // headers, and response body and trailers if any.
8266 func HTTPResponseSize(val int) attribute.KeyValue {
8267 return HTTPResponseSizeKey.Int(val)
8268 }
8269
8270 // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
8271 // "http.response.status_code" semantic conventions. It represents the
8272 // [HTTP response status code].
8273 //
8274 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
8275 func HTTPResponseStatusCode(val int) attribute.KeyValue {
8276 return HTTPResponseStatusCodeKey.Int(val)
8277 }
8278
8279 // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
8280 // semantic conventions. It represents the matched route template for the
8281 // request. This MUST be low-cardinality and include all static path segments,
8282 // with dynamic path segments represented with placeholders.
8283 func HTTPRoute(val string) attribute.KeyValue {
8284 return HTTPRouteKey.String(val)
8285 }
8286
8287 // Enum values for http.connection.state
8288 var (
8289 // active state.
8290 // Stability: development
8291 HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
8292 // idle state.
8293 // Stability: development
8294 HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
8295 )
8296
8297 // Enum values for http.request.method
8298 var (
8299 // CONNECT method.
8300 // Stability: stable
8301 HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
8302 // DELETE method.
8303 // Stability: stable
8304 HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
8305 // GET method.
8306 // Stability: stable
8307 HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
8308 // HEAD method.
8309 // Stability: stable
8310 HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
8311 // OPTIONS method.
8312 // Stability: stable
8313 HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
8314 // PATCH method.
8315 // Stability: stable
8316 HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
8317 // POST method.
8318 // Stability: stable
8319 HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
8320 // PUT method.
8321 // Stability: stable
8322 HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
8323 // TRACE method.
8324 // Stability: stable
8325 HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
8326 // QUERY method.
8327 // Stability: development
8328 HTTPRequestMethodQuery = HTTPRequestMethodKey.String("QUERY")
8329 // Any HTTP method that the instrumentation has no prior knowledge of.
8330 // Stability: stable
8331 HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
8332 )
8333
8334 // Namespace: hw
8335 const (
8336 // HwBatteryCapacityKey is the attribute Key conforming to the
8337 // "hw.battery.capacity" semantic conventions. It represents the design capacity
8338 // in Watts-hours or Amper-hours.
8339 //
8340 // Type: string
8341 // RequirementLevel: Recommended
8342 // Stability: Development
8343 //
8344 // Examples: "9.3Ah", "50Wh"
8345 HwBatteryCapacityKey = attribute.Key("hw.battery.capacity")
8346
8347 // HwBatteryChemistryKey is the attribute Key conforming to the
8348 // "hw.battery.chemistry" semantic conventions. It represents the battery
8349 // [chemistry], e.g. Lithium-Ion, Nickel-Cadmium, etc.
8350 //
8351 // Type: string
8352 // RequirementLevel: Recommended
8353 // Stability: Development
8354 //
8355 // Examples: "Li-ion", "NiMH"
8356 //
8357 // [chemistry]: https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html
8358 HwBatteryChemistryKey = attribute.Key("hw.battery.chemistry")
8359
8360 // HwBatteryStateKey is the attribute Key conforming to the "hw.battery.state"
8361 // semantic conventions. It represents the current state of the battery.
8362 //
8363 // Type: Enum
8364 // RequirementLevel: Recommended
8365 // Stability: Development
8366 //
8367 // Examples:
8368 HwBatteryStateKey = attribute.Key("hw.battery.state")
8369
8370 // HwBiosVersionKey is the attribute Key conforming to the "hw.bios_version"
8371 // semantic conventions. It represents the BIOS version of the hardware
8372 // component.
8373 //
8374 // Type: string
8375 // RequirementLevel: Recommended
8376 // Stability: Development
8377 //
8378 // Examples: "1.2.3"
8379 HwBiosVersionKey = attribute.Key("hw.bios_version")
8380
8381 // HwDriverVersionKey is the attribute Key conforming to the "hw.driver_version"
8382 // semantic conventions. It represents the driver version for the hardware
8383 // component.
8384 //
8385 // Type: string
8386 // RequirementLevel: Recommended
8387 // Stability: Development
8388 //
8389 // Examples: "10.2.1-3"
8390 HwDriverVersionKey = attribute.Key("hw.driver_version")
8391
8392 // HwEnclosureTypeKey is the attribute Key conforming to the "hw.enclosure.type"
8393 // semantic conventions. It represents the type of the enclosure (useful for
8394 // modular systems).
8395 //
8396 // Type: string
8397 // RequirementLevel: Recommended
8398 // Stability: Development
8399 //
8400 // Examples: "Computer", "Storage", "Switch"
8401 HwEnclosureTypeKey = attribute.Key("hw.enclosure.type")
8402
8403 // HwFirmwareVersionKey is the attribute Key conforming to the
8404 // "hw.firmware_version" semantic conventions. It represents the firmware
8405 // version of the hardware component.
8406 //
8407 // Type: string
8408 // RequirementLevel: Recommended
8409 // Stability: Development
8410 //
8411 // Examples: "2.0.1"
8412 HwFirmwareVersionKey = attribute.Key("hw.firmware_version")
8413
8414 // HwGpuTaskKey is the attribute Key conforming to the "hw.gpu.task" semantic
8415 // conventions. It represents the type of task the GPU is performing.
8416 //
8417 // Type: Enum
8418 // RequirementLevel: Recommended
8419 // Stability: Development
8420 //
8421 // Examples:
8422 HwGpuTaskKey = attribute.Key("hw.gpu.task")
8423
8424 // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
8425 // It represents an identifier for the hardware component, unique within the
8426 // monitored host.
8427 //
8428 // Type: string
8429 // RequirementLevel: Recommended
8430 // Stability: Development
8431 //
8432 // Examples: "win32battery_battery_testsysa33_1"
8433 HwIDKey = attribute.Key("hw.id")
8434
8435 // HwLimitTypeKey is the attribute Key conforming to the "hw.limit_type"
8436 // semantic conventions. It represents the type of limit for hardware
8437 // components.
8438 //
8439 // Type: Enum
8440 // RequirementLevel: Recommended
8441 // Stability: Development
8442 //
8443 // Examples:
8444 HwLimitTypeKey = attribute.Key("hw.limit_type")
8445
8446 // HwLogicalDiskRaidLevelKey is the attribute Key conforming to the
8447 // "hw.logical_disk.raid_level" semantic conventions. It represents the RAID
8448 // Level of the logical disk.
8449 //
8450 // Type: string
8451 // RequirementLevel: Recommended
8452 // Stability: Development
8453 //
8454 // Examples: "RAID0+1", "RAID5", "RAID10"
8455 HwLogicalDiskRaidLevelKey = attribute.Key("hw.logical_disk.raid_level")
8456
8457 // HwLogicalDiskStateKey is the attribute Key conforming to the
8458 // "hw.logical_disk.state" semantic conventions. It represents the state of the
8459 // logical disk space usage.
8460 //
8461 // Type: Enum
8462 // RequirementLevel: Recommended
8463 // Stability: Development
8464 //
8465 // Examples:
8466 HwLogicalDiskStateKey = attribute.Key("hw.logical_disk.state")
8467
8468 // HwMemoryTypeKey is the attribute Key conforming to the "hw.memory.type"
8469 // semantic conventions. It represents the type of the memory module.
8470 //
8471 // Type: string
8472 // RequirementLevel: Recommended
8473 // Stability: Development
8474 //
8475 // Examples: "DDR4", "DDR5", "LPDDR5"
8476 HwMemoryTypeKey = attribute.Key("hw.memory.type")
8477
8478 // HwModelKey is the attribute Key conforming to the "hw.model" semantic
8479 // conventions. It represents the descriptive model name of the hardware
8480 // component.
8481 //
8482 // Type: string
8483 // RequirementLevel: Recommended
8484 // Stability: Development
8485 //
8486 // Examples: "PERC H740P", "Intel(R) Core(TM) i7-10700K", "Dell XPS 15 Battery"
8487 HwModelKey = attribute.Key("hw.model")
8488
8489 // HwNameKey is the attribute Key conforming to the "hw.name" semantic
8490 // conventions. It represents an easily-recognizable name for the hardware
8491 // component.
8492 //
8493 // Type: string
8494 // RequirementLevel: Recommended
8495 // Stability: Development
8496 //
8497 // Examples: "eth0"
8498 HwNameKey = attribute.Key("hw.name")
8499
8500 // HwNetworkLogicalAddressesKey is the attribute Key conforming to the
8501 // "hw.network.logical_addresses" semantic conventions. It represents the
8502 // logical addresses of the adapter (e.g. IP address, or WWPN).
8503 //
8504 // Type: string[]
8505 // RequirementLevel: Recommended
8506 // Stability: Development
8507 //
8508 // Examples: "172.16.8.21", "57.11.193.42"
8509 HwNetworkLogicalAddressesKey = attribute.Key("hw.network.logical_addresses")
8510
8511 // HwNetworkPhysicalAddressKey is the attribute Key conforming to the
8512 // "hw.network.physical_address" semantic conventions. It represents the
8513 // physical address of the adapter (e.g. MAC address, or WWNN).
8514 //
8515 // Type: string
8516 // RequirementLevel: Recommended
8517 // Stability: Development
8518 //
8519 // Examples: "00-90-F5-E9-7B-36"
8520 HwNetworkPhysicalAddressKey = attribute.Key("hw.network.physical_address")
8521
8522 // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
8523 // conventions. It represents the unique identifier of the parent component
8524 // (typically the `hw.id` attribute of the enclosure, or disk controller).
8525 //
8526 // Type: string
8527 // RequirementLevel: Recommended
8528 // Stability: Development
8529 //
8530 // Examples: "dellStorage_perc_0"
8531 HwParentKey = attribute.Key("hw.parent")
8532
8533 // HwPhysicalDiskSmartAttributeKey is the attribute Key conforming to the
8534 // "hw.physical_disk.smart_attribute" semantic conventions. It represents the
8535 // [S.M.A.R.T.] (Self-Monitoring, Analysis, and Reporting Technology) attribute
8536 // of the physical disk.
8537 //
8538 // Type: string
8539 // RequirementLevel: Recommended
8540 // Stability: Development
8541 //
8542 // Examples: "Spin Retry Count", "Seek Error Rate", "Raw Read Error Rate"
8543 //
8544 // [S.M.A.R.T.]: https://wikipedia.org/wiki/S.M.A.R.T.
8545 HwPhysicalDiskSmartAttributeKey = attribute.Key("hw.physical_disk.smart_attribute")
8546
8547 // HwPhysicalDiskStateKey is the attribute Key conforming to the
8548 // "hw.physical_disk.state" semantic conventions. It represents the state of the
8549 // physical disk endurance utilization.
8550 //
8551 // Type: Enum
8552 // RequirementLevel: Recommended
8553 // Stability: Development
8554 //
8555 // Examples:
8556 HwPhysicalDiskStateKey = attribute.Key("hw.physical_disk.state")
8557
8558 // HwPhysicalDiskTypeKey is the attribute Key conforming to the
8559 // "hw.physical_disk.type" semantic conventions. It represents the type of the
8560 // physical disk.
8561 //
8562 // Type: string
8563 // RequirementLevel: Recommended
8564 // Stability: Development
8565 //
8566 // Examples: "HDD", "SSD", "10K"
8567 HwPhysicalDiskTypeKey = attribute.Key("hw.physical_disk.type")
8568
8569 // HwSensorLocationKey is the attribute Key conforming to the
8570 // "hw.sensor_location" semantic conventions. It represents the location of the
8571 // sensor.
8572 //
8573 // Type: string
8574 // RequirementLevel: Recommended
8575 // Stability: Development
8576 //
8577 // Examples: "cpu0", "ps1", "INLET", "CPU0_DIE", "AMBIENT", "MOTHERBOARD", "PS0
8578 // V3_3", "MAIN_12V", "CPU_VCORE"
8579 HwSensorLocationKey = attribute.Key("hw.sensor_location")
8580
8581 // HwSerialNumberKey is the attribute Key conforming to the "hw.serial_number"
8582 // semantic conventions. It represents the serial number of the hardware
8583 // component.
8584 //
8585 // Type: string
8586 // RequirementLevel: Recommended
8587 // Stability: Development
8588 //
8589 // Examples: "CNFCP0123456789"
8590 HwSerialNumberKey = attribute.Key("hw.serial_number")
8591
8592 // HwStateKey is the attribute Key conforming to the "hw.state" semantic
8593 // conventions. It represents the current state of the component.
8594 //
8595 // Type: Enum
8596 // RequirementLevel: Recommended
8597 // Stability: Development
8598 //
8599 // Examples:
8600 HwStateKey = attribute.Key("hw.state")
8601
8602 // HwTapeDriveOperationTypeKey is the attribute Key conforming to the
8603 // "hw.tape_drive.operation_type" semantic conventions. It represents the type
8604 // of tape drive operation.
8605 //
8606 // Type: Enum
8607 // RequirementLevel: Recommended
8608 // Stability: Development
8609 //
8610 // Examples:
8611 HwTapeDriveOperationTypeKey = attribute.Key("hw.tape_drive.operation_type")
8612
8613 // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
8614 // conventions. It represents the type of the component.
8615 //
8616 // Type: Enum
8617 // RequirementLevel: Recommended
8618 // Stability: Development
8619 //
8620 // Examples:
8621 // Note: Describes the category of the hardware component for which `hw.state`
8622 // is being reported. For example, `hw.type=temperature` along with
8623 // `hw.state=degraded` would indicate that the temperature of the hardware
8624 // component has been reported as `degraded`.
8625 HwTypeKey = attribute.Key("hw.type")
8626
8627 // HwVendorKey is the attribute Key conforming to the "hw.vendor" semantic
8628 // conventions. It represents the vendor name of the hardware component.
8629 //
8630 // Type: string
8631 // RequirementLevel: Recommended
8632 // Stability: Development
8633 //
8634 // Examples: "Dell", "HP", "Intel", "AMD", "LSI", "Lenovo"
8635 HwVendorKey = attribute.Key("hw.vendor")
8636 )
8637
8638 // HwBatteryCapacity returns an attribute KeyValue conforming to the
8639 // "hw.battery.capacity" semantic conventions. It represents the design capacity
8640 // in Watts-hours or Amper-hours.
8641 func HwBatteryCapacity(val string) attribute.KeyValue {
8642 return HwBatteryCapacityKey.String(val)
8643 }
8644
8645 // HwBatteryChemistry returns an attribute KeyValue conforming to the
8646 // "hw.battery.chemistry" semantic conventions. It represents the battery
8647 // [chemistry], e.g. Lithium-Ion, Nickel-Cadmium, etc.
8648 //
8649 // [chemistry]: https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html
8650 func HwBatteryChemistry(val string) attribute.KeyValue {
8651 return HwBatteryChemistryKey.String(val)
8652 }
8653
8654 // HwBiosVersion returns an attribute KeyValue conforming to the
8655 // "hw.bios_version" semantic conventions. It represents the BIOS version of the
8656 // hardware component.
8657 func HwBiosVersion(val string) attribute.KeyValue {
8658 return HwBiosVersionKey.String(val)
8659 }
8660
8661 // HwDriverVersion returns an attribute KeyValue conforming to the
8662 // "hw.driver_version" semantic conventions. It represents the driver version for
8663 // the hardware component.
8664 func HwDriverVersion(val string) attribute.KeyValue {
8665 return HwDriverVersionKey.String(val)
8666 }
8667
8668 // HwEnclosureType returns an attribute KeyValue conforming to the
8669 // "hw.enclosure.type" semantic conventions. It represents the type of the
8670 // enclosure (useful for modular systems).
8671 func HwEnclosureType(val string) attribute.KeyValue {
8672 return HwEnclosureTypeKey.String(val)
8673 }
8674
8675 // HwFirmwareVersion returns an attribute KeyValue conforming to the
8676 // "hw.firmware_version" semantic conventions. It represents the firmware version
8677 // of the hardware component.
8678 func HwFirmwareVersion(val string) attribute.KeyValue {
8679 return HwFirmwareVersionKey.String(val)
8680 }
8681
8682 // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
8683 // conventions. It represents an identifier for the hardware component, unique
8684 // within the monitored host.
8685 func HwID(val string) attribute.KeyValue {
8686 return HwIDKey.String(val)
8687 }
8688
8689 // HwLogicalDiskRaidLevel returns an attribute KeyValue conforming to the
8690 // "hw.logical_disk.raid_level" semantic conventions. It represents the RAID
8691 // Level of the logical disk.
8692 func HwLogicalDiskRaidLevel(val string) attribute.KeyValue {
8693 return HwLogicalDiskRaidLevelKey.String(val)
8694 }
8695
8696 // HwMemoryType returns an attribute KeyValue conforming to the "hw.memory.type"
8697 // semantic conventions. It represents the type of the memory module.
8698 func HwMemoryType(val string) attribute.KeyValue {
8699 return HwMemoryTypeKey.String(val)
8700 }
8701
8702 // HwModel returns an attribute KeyValue conforming to the "hw.model" semantic
8703 // conventions. It represents the descriptive model name of the hardware
8704 // component.
8705 func HwModel(val string) attribute.KeyValue {
8706 return HwModelKey.String(val)
8707 }
8708
8709 // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
8710 // conventions. It represents an easily-recognizable name for the hardware
8711 // component.
8712 func HwName(val string) attribute.KeyValue {
8713 return HwNameKey.String(val)
8714 }
8715
8716 // HwNetworkLogicalAddresses returns an attribute KeyValue conforming to the
8717 // "hw.network.logical_addresses" semantic conventions. It represents the logical
8718 // addresses of the adapter (e.g. IP address, or WWPN).
8719 func HwNetworkLogicalAddresses(val ...string) attribute.KeyValue {
8720 return HwNetworkLogicalAddressesKey.StringSlice(val)
8721 }
8722
8723 // HwNetworkPhysicalAddress returns an attribute KeyValue conforming to the
8724 // "hw.network.physical_address" semantic conventions. It represents the physical
8725 // address of the adapter (e.g. MAC address, or WWNN).
8726 func HwNetworkPhysicalAddress(val string) attribute.KeyValue {
8727 return HwNetworkPhysicalAddressKey.String(val)
8728 }
8729
8730 // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
8731 // conventions. It represents the unique identifier of the parent component
8732 // (typically the `hw.id` attribute of the enclosure, or disk controller).
8733 func HwParent(val string) attribute.KeyValue {
8734 return HwParentKey.String(val)
8735 }
8736
8737 // HwPhysicalDiskSmartAttribute returns an attribute KeyValue conforming to the
8738 // "hw.physical_disk.smart_attribute" semantic conventions. It represents the
8739 // [S.M.A.R.T.] (Self-Monitoring, Analysis, and Reporting Technology) attribute
8740 // of the physical disk.
8741 //
8742 // [S.M.A.R.T.]: https://wikipedia.org/wiki/S.M.A.R.T.
8743 func HwPhysicalDiskSmartAttribute(val string) attribute.KeyValue {
8744 return HwPhysicalDiskSmartAttributeKey.String(val)
8745 }
8746
8747 // HwPhysicalDiskType returns an attribute KeyValue conforming to the
8748 // "hw.physical_disk.type" semantic conventions. It represents the type of the
8749 // physical disk.
8750 func HwPhysicalDiskType(val string) attribute.KeyValue {
8751 return HwPhysicalDiskTypeKey.String(val)
8752 }
8753
8754 // HwSensorLocation returns an attribute KeyValue conforming to the
8755 // "hw.sensor_location" semantic conventions. It represents the location of the
8756 // sensor.
8757 func HwSensorLocation(val string) attribute.KeyValue {
8758 return HwSensorLocationKey.String(val)
8759 }
8760
8761 // HwSerialNumber returns an attribute KeyValue conforming to the
8762 // "hw.serial_number" semantic conventions. It represents the serial number of
8763 // the hardware component.
8764 func HwSerialNumber(val string) attribute.KeyValue {
8765 return HwSerialNumberKey.String(val)
8766 }
8767
8768 // HwVendor returns an attribute KeyValue conforming to the "hw.vendor" semantic
8769 // conventions. It represents the vendor name of the hardware component.
8770 func HwVendor(val string) attribute.KeyValue {
8771 return HwVendorKey.String(val)
8772 }
8773
8774 // Enum values for hw.battery.state
8775 var (
8776 // Charging
8777 // Stability: development
8778 HwBatteryStateCharging = HwBatteryStateKey.String("charging")
8779 // Discharging
8780 // Stability: development
8781 HwBatteryStateDischarging = HwBatteryStateKey.String("discharging")
8782 )
8783
8784 // Enum values for hw.gpu.task
8785 var (
8786 // Decoder
8787 // Stability: development
8788 HwGpuTaskDecoder = HwGpuTaskKey.String("decoder")
8789 // Encoder
8790 // Stability: development
8791 HwGpuTaskEncoder = HwGpuTaskKey.String("encoder")
8792 // General
8793 // Stability: development
8794 HwGpuTaskGeneral = HwGpuTaskKey.String("general")
8795 )
8796
8797 // Enum values for hw.limit_type
8798 var (
8799 // Critical
8800 // Stability: development
8801 HwLimitTypeCritical = HwLimitTypeKey.String("critical")
8802 // Degraded
8803 // Stability: development
8804 HwLimitTypeDegraded = HwLimitTypeKey.String("degraded")
8805 // High Critical
8806 // Stability: development
8807 HwLimitTypeHighCritical = HwLimitTypeKey.String("high.critical")
8808 // High Degraded
8809 // Stability: development
8810 HwLimitTypeHighDegraded = HwLimitTypeKey.String("high.degraded")
8811 // Low Critical
8812 // Stability: development
8813 HwLimitTypeLowCritical = HwLimitTypeKey.String("low.critical")
8814 // Low Degraded
8815 // Stability: development
8816 HwLimitTypeLowDegraded = HwLimitTypeKey.String("low.degraded")
8817 // Maximum
8818 // Stability: development
8819 HwLimitTypeMax = HwLimitTypeKey.String("max")
8820 // Throttled
8821 // Stability: development
8822 HwLimitTypeThrottled = HwLimitTypeKey.String("throttled")
8823 // Turbo
8824 // Stability: development
8825 HwLimitTypeTurbo = HwLimitTypeKey.String("turbo")
8826 )
8827
8828 // Enum values for hw.logical_disk.state
8829 var (
8830 // Used
8831 // Stability: development
8832 HwLogicalDiskStateUsed = HwLogicalDiskStateKey.String("used")
8833 // Free
8834 // Stability: development
8835 HwLogicalDiskStateFree = HwLogicalDiskStateKey.String("free")
8836 )
8837
8838 // Enum values for hw.physical_disk.state
8839 var (
8840 // Remaining
8841 // Stability: development
8842 HwPhysicalDiskStateRemaining = HwPhysicalDiskStateKey.String("remaining")
8843 )
8844
8845 // Enum values for hw.state
8846 var (
8847 // Degraded
8848 // Stability: development
8849 HwStateDegraded = HwStateKey.String("degraded")
8850 // Failed
8851 // Stability: development
8852 HwStateFailed = HwStateKey.String("failed")
8853 // Needs Cleaning
8854 // Stability: development
8855 HwStateNeedsCleaning = HwStateKey.String("needs_cleaning")
8856 // OK
8857 // Stability: development
8858 HwStateOk = HwStateKey.String("ok")
8859 // Predicted Failure
8860 // Stability: development
8861 HwStatePredictedFailure = HwStateKey.String("predicted_failure")
8862 )
8863
8864 // Enum values for hw.tape_drive.operation_type
8865 var (
8866 // Mount
8867 // Stability: development
8868 HwTapeDriveOperationTypeMount = HwTapeDriveOperationTypeKey.String("mount")
8869 // Unmount
8870 // Stability: development
8871 HwTapeDriveOperationTypeUnmount = HwTapeDriveOperationTypeKey.String("unmount")
8872 // Clean
8873 // Stability: development
8874 HwTapeDriveOperationTypeClean = HwTapeDriveOperationTypeKey.String("clean")
8875 )
8876
8877 // Enum values for hw.type
8878 var (
8879 // Battery
8880 // Stability: development
8881 HwTypeBattery = HwTypeKey.String("battery")
8882 // CPU
8883 // Stability: development
8884 HwTypeCPU = HwTypeKey.String("cpu")
8885 // Disk controller
8886 // Stability: development
8887 HwTypeDiskController = HwTypeKey.String("disk_controller")
8888 // Enclosure
8889 // Stability: development
8890 HwTypeEnclosure = HwTypeKey.String("enclosure")
8891 // Fan
8892 // Stability: development
8893 HwTypeFan = HwTypeKey.String("fan")
8894 // GPU
8895 // Stability: development
8896 HwTypeGpu = HwTypeKey.String("gpu")
8897 // Logical disk
8898 // Stability: development
8899 HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
8900 // Memory
8901 // Stability: development
8902 HwTypeMemory = HwTypeKey.String("memory")
8903 // Network
8904 // Stability: development
8905 HwTypeNetwork = HwTypeKey.String("network")
8906 // Physical disk
8907 // Stability: development
8908 HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
8909 // Power supply
8910 // Stability: development
8911 HwTypePowerSupply = HwTypeKey.String("power_supply")
8912 // Tape drive
8913 // Stability: development
8914 HwTypeTapeDrive = HwTypeKey.String("tape_drive")
8915 // Temperature
8916 // Stability: development
8917 HwTypeTemperature = HwTypeKey.String("temperature")
8918 // Voltage
8919 // Stability: development
8920 HwTypeVoltage = HwTypeKey.String("voltage")
8921 )
8922
8923 // Namespace: ios
8924 const (
8925 // IOSAppStateKey is the attribute Key conforming to the "ios.app.state"
8926 // semantic conventions. It represents the this attribute represents the state
8927 // of the application.
8928 //
8929 // Type: Enum
8930 // RequirementLevel: Recommended
8931 // Stability: Development
8932 //
8933 // Examples:
8934 // Note: The iOS lifecycle states are defined in the
8935 // [UIApplicationDelegate documentation], and from which the `OS terminology`
8936 // column values are derived.
8937 //
8938 // [UIApplicationDelegate documentation]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate
8939 IOSAppStateKey = attribute.Key("ios.app.state")
8940 )
8941
8942 // Enum values for ios.app.state
8943 var (
8944 // The app has become `active`. Associated with UIKit notification
8945 // `applicationDidBecomeActive`.
8946 //
8947 // Stability: development
8948 IOSAppStateActive = IOSAppStateKey.String("active")
8949 // The app is now `inactive`. Associated with UIKit notification
8950 // `applicationWillResignActive`.
8951 //
8952 // Stability: development
8953 IOSAppStateInactive = IOSAppStateKey.String("inactive")
8954 // The app is now in the background. This value is associated with UIKit
8955 // notification `applicationDidEnterBackground`.
8956 //
8957 // Stability: development
8958 IOSAppStateBackground = IOSAppStateKey.String("background")
8959 // The app is now in the foreground. This value is associated with UIKit
8960 // notification `applicationWillEnterForeground`.
8961 //
8962 // Stability: development
8963 IOSAppStateForeground = IOSAppStateKey.String("foreground")
8964 // The app is about to terminate. Associated with UIKit notification
8965 // `applicationWillTerminate`.
8966 //
8967 // Stability: development
8968 IOSAppStateTerminate = IOSAppStateKey.String("terminate")
8969 )
8970
8971 // Namespace: jsonrpc
8972 const (
8973 // JSONRPCProtocolVersionKey is the attribute Key conforming to the
8974 // "jsonrpc.protocol.version" semantic conventions. It represents the protocol
8975 // version, as specified in the `jsonrpc` property of the request and its
8976 // corresponding response.
8977 //
8978 // Type: string
8979 // RequirementLevel: Recommended
8980 // Stability: Development
8981 //
8982 // Examples: "2.0", "1.0"
8983 JSONRPCProtocolVersionKey = attribute.Key("jsonrpc.protocol.version")
8984
8985 // JSONRPCRequestIDKey is the attribute Key conforming to the
8986 // "jsonrpc.request.id" semantic conventions. It represents a string
8987 // representation of the `id` property of the request and its corresponding
8988 // response.
8989 //
8990 // Type: string
8991 // RequirementLevel: Recommended
8992 // Stability: Development
8993 //
8994 // Examples: "10", "request-7"
8995 // Note: Under the [JSON-RPC specification], the `id` property may be a string,
8996 // number, null, or omitted entirely. When omitted, the request is treated as a
8997 // notification. Using `null` is not equivalent to omitting the `id`, but it is
8998 // discouraged.
8999 // Instrumentations SHOULD NOT capture this attribute when the `id` is `null` or
9000 // omitted.
9001 //
9002 // [JSON-RPC specification]: https://www.jsonrpc.org/specification
9003 JSONRPCRequestIDKey = attribute.Key("jsonrpc.request.id")
9004 )
9005
9006 // JSONRPCProtocolVersion returns an attribute KeyValue conforming to the
9007 // "jsonrpc.protocol.version" semantic conventions. It represents the protocol
9008 // version, as specified in the `jsonrpc` property of the request and its
9009 // corresponding response.
9010 func JSONRPCProtocolVersion(val string) attribute.KeyValue {
9011 return JSONRPCProtocolVersionKey.String(val)
9012 }
9013
9014 // JSONRPCRequestID returns an attribute KeyValue conforming to the
9015 // "jsonrpc.request.id" semantic conventions. It represents a string
9016 // representation of the `id` property of the request and its corresponding
9017 // response.
9018 func JSONRPCRequestID(val string) attribute.KeyValue {
9019 return JSONRPCRequestIDKey.String(val)
9020 }
9021
9022 // Namespace: k8s
9023 const (
9024 // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
9025 // semantic conventions. It represents the name of the cluster.
9026 //
9027 // Type: string
9028 // RequirementLevel: Recommended
9029 // Stability: Beta
9030 //
9031 // Examples: "opentelemetry-cluster"
9032 K8SClusterNameKey = attribute.Key("k8s.cluster.name")
9033
9034 // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
9035 // semantic conventions. It represents a pseudo-ID for the cluster, set to the
9036 // UID of the `kube-system` namespace.
9037 //
9038 // Type: string
9039 // RequirementLevel: Recommended
9040 // Stability: Beta
9041 //
9042 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
9043 // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
9044 // added, we will recommend collecting the `k8s.cluster.uid` through the
9045 // official APIs. In the meantime, we are able to use the `uid` of the
9046 // `kube-system` namespace as a proxy for cluster ID. Read on for the
9047 // rationale.
9048 //
9049 // Every object created in a K8s cluster is assigned a distinct UID. The
9050 // `kube-system` namespace is used by Kubernetes itself and will exist
9051 // for the lifetime of the cluster. Using the `uid` of the `kube-system`
9052 // namespace is a reasonable proxy for the K8s ClusterID as it will only
9053 // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
9054 // UUIDs as standardized by
9055 // [ISO/IEC 9834-8 and ITU-T X.667].
9056 // Which states:
9057 //
9058 // > If generated according to one of the mechanisms defined in Rec.
9059 // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
9060 // > different from all other UUIDs generated before 3603 A.D., or is
9061 // > extremely likely to be different (depending on the mechanism chosen).
9062 //
9063 // Therefore, UIDs between clusters should be extremely unlikely to
9064 // conflict.
9065 //
9066 // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
9067 K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
9068
9069 // K8SContainerNameKey is the attribute Key conforming to the
9070 // "k8s.container.name" semantic conventions. It represents the name of the
9071 // Container from Pod specification, must be unique within a Pod. Container
9072 // runtime usually uses different globally unique name (`container.name`).
9073 //
9074 // Type: string
9075 // RequirementLevel: Recommended
9076 // Stability: Beta
9077 //
9078 // Examples: "redis"
9079 K8SContainerNameKey = attribute.Key("k8s.container.name")
9080
9081 // K8SContainerRestartCountKey is the attribute Key conforming to the
9082 // "k8s.container.restart_count" semantic conventions. It represents the number
9083 // of times the container was restarted. This attribute can be used to identify
9084 // a particular container (running or stopped) within a container spec.
9085 //
9086 // Type: int
9087 // RequirementLevel: Recommended
9088 // Stability: Beta
9089 //
9090 // Examples:
9091 K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
9092
9093 // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
9094 // the "k8s.container.status.last_terminated_reason" semantic conventions. It
9095 // represents the last terminated reason of the Container.
9096 //
9097 // Type: string
9098 // RequirementLevel: Recommended
9099 // Stability: Development
9100 //
9101 // Examples: "Evicted", "Error"
9102 K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
9103
9104 // K8SContainerStatusReasonKey is the attribute Key conforming to the
9105 // "k8s.container.status.reason" semantic conventions. It represents the reason
9106 // for the container state. Corresponds to the `reason` field of the:
9107 // [K8s ContainerStateWaiting] or [K8s ContainerStateTerminated].
9108 //
9109 // Type: Enum
9110 // RequirementLevel: Recommended
9111 // Stability: Development
9112 //
9113 // Examples: "ContainerCreating", "CrashLoopBackOff",
9114 // "CreateContainerConfigError", "ErrImagePull", "ImagePullBackOff",
9115 // "OOMKilled", "Completed", "Error", "ContainerCannotRun"
9116 //
9117 // [K8s ContainerStateWaiting]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstatewaiting-v1-core
9118 // [K8s ContainerStateTerminated]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstateterminated-v1-core
9119 K8SContainerStatusReasonKey = attribute.Key("k8s.container.status.reason")
9120
9121 // K8SContainerStatusStateKey is the attribute Key conforming to the
9122 // "k8s.container.status.state" semantic conventions. It represents the state of
9123 // the container. [K8s ContainerState].
9124 //
9125 // Type: Enum
9126 // RequirementLevel: Recommended
9127 // Stability: Development
9128 //
9129 // Examples: "terminated", "running", "waiting"
9130 //
9131 // [K8s ContainerState]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstate-v1-core
9132 K8SContainerStatusStateKey = attribute.Key("k8s.container.status.state")
9133
9134 // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
9135 // semantic conventions. It represents the name of the CronJob.
9136 //
9137 // Type: string
9138 // RequirementLevel: Recommended
9139 // Stability: Beta
9140 //
9141 // Examples: "opentelemetry"
9142 K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
9143
9144 // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
9145 // semantic conventions. It represents the UID of the CronJob.
9146 //
9147 // Type: string
9148 // RequirementLevel: Recommended
9149 // Stability: Beta
9150 //
9151 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9152 K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
9153
9154 // K8SDaemonSetNameKey is the attribute Key conforming to the
9155 // "k8s.daemonset.name" semantic conventions. It represents the name of the
9156 // DaemonSet.
9157 //
9158 // Type: string
9159 // RequirementLevel: Recommended
9160 // Stability: Beta
9161 //
9162 // Examples: "opentelemetry"
9163 K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
9164
9165 // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
9166 // semantic conventions. It represents the UID of the DaemonSet.
9167 //
9168 // Type: string
9169 // RequirementLevel: Recommended
9170 // Stability: Beta
9171 //
9172 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9173 K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
9174
9175 // K8SDeploymentNameKey is the attribute Key conforming to the
9176 // "k8s.deployment.name" semantic conventions. It represents the name of the
9177 // Deployment.
9178 //
9179 // Type: string
9180 // RequirementLevel: Recommended
9181 // Stability: Beta
9182 //
9183 // Examples: "opentelemetry"
9184 K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
9185
9186 // K8SDeploymentUIDKey is the attribute Key conforming to the
9187 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
9188 // Deployment.
9189 //
9190 // Type: string
9191 // RequirementLevel: Recommended
9192 // Stability: Beta
9193 //
9194 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9195 K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
9196
9197 // K8SHPAMetricTypeKey is the attribute Key conforming to the
9198 // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
9199 // source for the horizontal pod autoscaler.
9200 //
9201 // Type: string
9202 // RequirementLevel: Recommended
9203 // Stability: Development
9204 //
9205 // Examples: "Resource", "ContainerResource"
9206 // Note: This attribute reflects the `type` field of spec.metrics[] in the HPA.
9207 K8SHPAMetricTypeKey = attribute.Key("k8s.hpa.metric.type")
9208
9209 // K8SHPANameKey is the attribute Key conforming to the "k8s.hpa.name" semantic
9210 // conventions. It represents the name of the horizontal pod autoscaler.
9211 //
9212 // Type: string
9213 // RequirementLevel: Recommended
9214 // Stability: Development
9215 //
9216 // Examples: "opentelemetry"
9217 K8SHPANameKey = attribute.Key("k8s.hpa.name")
9218
9219 // K8SHPAScaletargetrefAPIVersionKey is the attribute Key conforming to the
9220 // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
9221 // API version of the target resource to scale for the HorizontalPodAutoscaler.
9222 //
9223 // Type: string
9224 // RequirementLevel: Recommended
9225 // Stability: Development
9226 //
9227 // Examples: "apps/v1", "autoscaling/v2"
9228 // Note: This maps to the `apiVersion` field in the `scaleTargetRef` of the HPA
9229 // spec.
9230 K8SHPAScaletargetrefAPIVersionKey = attribute.Key("k8s.hpa.scaletargetref.api_version")
9231
9232 // K8SHPAScaletargetrefKindKey is the attribute Key conforming to the
9233 // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
9234 // the target resource to scale for the HorizontalPodAutoscaler.
9235 //
9236 // Type: string
9237 // RequirementLevel: Recommended
9238 // Stability: Development
9239 //
9240 // Examples: "Deployment", "StatefulSet"
9241 // Note: This maps to the `kind` field in the `scaleTargetRef` of the HPA spec.
9242 K8SHPAScaletargetrefKindKey = attribute.Key("k8s.hpa.scaletargetref.kind")
9243
9244 // K8SHPAScaletargetrefNameKey is the attribute Key conforming to the
9245 // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
9246 // the target resource to scale for the HorizontalPodAutoscaler.
9247 //
9248 // Type: string
9249 // RequirementLevel: Recommended
9250 // Stability: Development
9251 //
9252 // Examples: "my-deployment", "my-statefulset"
9253 // Note: This maps to the `name` field in the `scaleTargetRef` of the HPA spec.
9254 K8SHPAScaletargetrefNameKey = attribute.Key("k8s.hpa.scaletargetref.name")
9255
9256 // K8SHPAUIDKey is the attribute Key conforming to the "k8s.hpa.uid" semantic
9257 // conventions. It represents the UID of the horizontal pod autoscaler.
9258 //
9259 // Type: string
9260 // RequirementLevel: Recommended
9261 // Stability: Development
9262 //
9263 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9264 K8SHPAUIDKey = attribute.Key("k8s.hpa.uid")
9265
9266 // K8SHugepageSizeKey is the attribute Key conforming to the "k8s.hugepage.size"
9267 // semantic conventions. It represents the size (identifier) of the K8s huge
9268 // page.
9269 //
9270 // Type: string
9271 // RequirementLevel: Recommended
9272 // Stability: Development
9273 //
9274 // Examples: "2Mi"
9275 K8SHugepageSizeKey = attribute.Key("k8s.hugepage.size")
9276
9277 // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
9278 // conventions. It represents the name of the Job.
9279 //
9280 // Type: string
9281 // RequirementLevel: Recommended
9282 // Stability: Beta
9283 //
9284 // Examples: "opentelemetry"
9285 K8SJobNameKey = attribute.Key("k8s.job.name")
9286
9287 // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
9288 // conventions. It represents the UID of the Job.
9289 //
9290 // Type: string
9291 // RequirementLevel: Recommended
9292 // Stability: Beta
9293 //
9294 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9295 K8SJobUIDKey = attribute.Key("k8s.job.uid")
9296
9297 // K8SNamespaceNameKey is the attribute Key conforming to the
9298 // "k8s.namespace.name" semantic conventions. It represents the name of the
9299 // namespace that the pod is running in.
9300 //
9301 // Type: string
9302 // RequirementLevel: Recommended
9303 // Stability: Beta
9304 //
9305 // Examples: "default"
9306 K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
9307
9308 // K8SNamespacePhaseKey is the attribute Key conforming to the
9309 // "k8s.namespace.phase" semantic conventions. It represents the phase of the
9310 // K8s namespace.
9311 //
9312 // Type: Enum
9313 // RequirementLevel: Recommended
9314 // Stability: Development
9315 //
9316 // Examples: "active", "terminating"
9317 // Note: This attribute aligns with the `phase` field of the
9318 // [K8s NamespaceStatus]
9319 //
9320 // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core
9321 K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase")
9322
9323 // K8SNodeConditionStatusKey is the attribute Key conforming to the
9324 // "k8s.node.condition.status" semantic conventions. It represents the status of
9325 // the condition, one of True, False, Unknown.
9326 //
9327 // Type: Enum
9328 // RequirementLevel: Recommended
9329 // Stability: Development
9330 //
9331 // Examples: "true", "false", "unknown"
9332 // Note: This attribute aligns with the `status` field of the
9333 // [NodeCondition]
9334 //
9335 // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
9336 K8SNodeConditionStatusKey = attribute.Key("k8s.node.condition.status")
9337
9338 // K8SNodeConditionTypeKey is the attribute Key conforming to the
9339 // "k8s.node.condition.type" semantic conventions. It represents the condition
9340 // type of a K8s Node.
9341 //
9342 // Type: Enum
9343 // RequirementLevel: Recommended
9344 // Stability: Development
9345 //
9346 // Examples: "Ready", "DiskPressure"
9347 // Note: K8s Node conditions as described
9348 // by [K8s documentation].
9349 //
9350 // This attribute aligns with the `type` field of the
9351 // [NodeCondition]
9352 //
9353 // The set of possible values is not limited to those listed here. Managed
9354 // Kubernetes environments,
9355 // or custom controllers MAY introduce additional node condition types.
9356 // When this occurs, the exact value as reported by the Kubernetes API SHOULD be
9357 // used.
9358 //
9359 // [K8s documentation]: https://v1-32.docs.kubernetes.io/docs/reference/node/node-status/#condition
9360 // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
9361 K8SNodeConditionTypeKey = attribute.Key("k8s.node.condition.type")
9362
9363 // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
9364 // semantic conventions. It represents the name of the Node.
9365 //
9366 // Type: string
9367 // RequirementLevel: Recommended
9368 // Stability: Beta
9369 //
9370 // Examples: "node-1"
9371 K8SNodeNameKey = attribute.Key("k8s.node.name")
9372
9373 // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
9374 // conventions. It represents the UID of the Node.
9375 //
9376 // Type: string
9377 // RequirementLevel: Recommended
9378 // Stability: Beta
9379 //
9380 // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
9381 K8SNodeUIDKey = attribute.Key("k8s.node.uid")
9382
9383 // K8SPodHostnameKey is the attribute Key conforming to the "k8s.pod.hostname"
9384 // semantic conventions. It represents the specifies the hostname of the Pod.
9385 //
9386 // Type: string
9387 // RequirementLevel: Recommended
9388 // Stability: Beta
9389 //
9390 // Examples: "collector-gateway"
9391 // Note: The K8s Pod spec has an optional hostname field, which can be used to
9392 // specify a hostname.
9393 // Refer to [K8s docs]
9394 // for more information about this field.
9395 //
9396 // This attribute aligns with the `hostname` field of the
9397 // [K8s PodSpec].
9398 //
9399 // [K8s docs]: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-hostname-and-subdomain-field
9400 // [K8s PodSpec]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#podspec-v1-core
9401 K8SPodHostnameKey = attribute.Key("k8s.pod.hostname")
9402
9403 // K8SPodIPKey is the attribute Key conforming to the "k8s.pod.ip" semantic
9404 // conventions. It represents the IP address allocated to the Pod.
9405 //
9406 // Type: string
9407 // RequirementLevel: Recommended
9408 // Stability: Beta
9409 //
9410 // Examples: "172.18.0.2"
9411 // Note: This attribute aligns with the `podIP` field of the
9412 // [K8s PodStatus].
9413 //
9414 // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#podstatus-v1-core
9415 K8SPodIPKey = attribute.Key("k8s.pod.ip")
9416
9417 // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
9418 // conventions. It represents the name of the Pod.
9419 //
9420 // Type: string
9421 // RequirementLevel: Recommended
9422 // Stability: Beta
9423 //
9424 // Examples: "opentelemetry-pod-autoconf"
9425 K8SPodNameKey = attribute.Key("k8s.pod.name")
9426
9427 // K8SPodStartTimeKey is the attribute Key conforming to the
9428 // "k8s.pod.start_time" semantic conventions. It represents the start timestamp
9429 // of the Pod.
9430 //
9431 // Type: string
9432 // RequirementLevel: Recommended
9433 // Stability: Beta
9434 //
9435 // Examples: "2025-12-04T08:41:03Z"
9436 // Note: Date and time at which the object was acknowledged by the Kubelet.
9437 // This is before the Kubelet pulled the container image(s) for the pod.
9438 //
9439 // This attribute aligns with the `startTime` field of the
9440 // [K8s PodStatus],
9441 // in ISO 8601 (RFC 3339 compatible) format.
9442 //
9443 // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#podstatus-v1-core
9444 K8SPodStartTimeKey = attribute.Key("k8s.pod.start_time")
9445
9446 // K8SPodStatusPhaseKey is the attribute Key conforming to the
9447 // "k8s.pod.status.phase" semantic conventions. It represents the phase for the
9448 // pod. Corresponds to the `phase` field of the: [K8s PodStatus].
9449 //
9450 // Type: Enum
9451 // RequirementLevel: Recommended
9452 // Stability: Development
9453 //
9454 // Examples: "Pending", "Running"
9455 //
9456 // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#podstatus-v1-core
9457 K8SPodStatusPhaseKey = attribute.Key("k8s.pod.status.phase")
9458
9459 // K8SPodStatusReasonKey is the attribute Key conforming to the
9460 // "k8s.pod.status.reason" semantic conventions. It represents the reason for
9461 // the pod state. Corresponds to the `reason` field of the: [K8s PodStatus].
9462 //
9463 // Type: Enum
9464 // RequirementLevel: Recommended
9465 // Stability: Development
9466 //
9467 // Examples: "Evicted", "NodeAffinity"
9468 //
9469 // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#podstatus-v1-core
9470 K8SPodStatusReasonKey = attribute.Key("k8s.pod.status.reason")
9471
9472 // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
9473 // conventions. It represents the UID of the Pod.
9474 //
9475 // Type: string
9476 // RequirementLevel: Recommended
9477 // Stability: Beta
9478 //
9479 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9480 K8SPodUIDKey = attribute.Key("k8s.pod.uid")
9481
9482 // K8SReplicaSetNameKey is the attribute Key conforming to the
9483 // "k8s.replicaset.name" semantic conventions. It represents the name of the
9484 // ReplicaSet.
9485 //
9486 // Type: string
9487 // RequirementLevel: Recommended
9488 // Stability: Beta
9489 //
9490 // Examples: "opentelemetry"
9491 K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
9492
9493 // K8SReplicaSetUIDKey is the attribute Key conforming to the
9494 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
9495 // ReplicaSet.
9496 //
9497 // Type: string
9498 // RequirementLevel: Recommended
9499 // Stability: Beta
9500 //
9501 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9502 K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
9503
9504 // K8SReplicationControllerNameKey is the attribute Key conforming to the
9505 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
9506 // of the replication controller.
9507 //
9508 // Type: string
9509 // RequirementLevel: Recommended
9510 // Stability: Development
9511 //
9512 // Examples: "opentelemetry"
9513 K8SReplicationControllerNameKey = attribute.Key("k8s.replicationcontroller.name")
9514
9515 // K8SReplicationControllerUIDKey is the attribute Key conforming to the
9516 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID
9517 // of the replication controller.
9518 //
9519 // Type: string
9520 // RequirementLevel: Recommended
9521 // Stability: Development
9522 //
9523 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9524 K8SReplicationControllerUIDKey = attribute.Key("k8s.replicationcontroller.uid")
9525
9526 // K8SResourceQuotaNameKey is the attribute Key conforming to the
9527 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
9528 // resource quota.
9529 //
9530 // Type: string
9531 // RequirementLevel: Recommended
9532 // Stability: Development
9533 //
9534 // Examples: "opentelemetry"
9535 K8SResourceQuotaNameKey = attribute.Key("k8s.resourcequota.name")
9536
9537 // K8SResourceQuotaResourceNameKey is the attribute Key conforming to the
9538 // "k8s.resourcequota.resource_name" semantic conventions. It represents the
9539 // name of the K8s resource a resource quota defines.
9540 //
9541 // Type: string
9542 // RequirementLevel: Recommended
9543 // Stability: Development
9544 //
9545 // Examples: "count/replicationcontrollers"
9546 // Note: The value for this attribute can be either the full
9547 // `count/<resource>[.<group>]` string (e.g., count/deployments.apps,
9548 // count/pods), or, for certain core Kubernetes resources, just the resource
9549 // name (e.g., pods, services, configmaps). Both forms are supported by
9550 // Kubernetes for object count quotas. See
9551 // [Kubernetes Resource Quotas documentation] for more details.
9552 //
9553 // [Kubernetes Resource Quotas documentation]: https://kubernetes.io/docs/concepts/policy/resource-quotas/#quota-on-object-count
9554 K8SResourceQuotaResourceNameKey = attribute.Key("k8s.resourcequota.resource_name")
9555
9556 // K8SResourceQuotaUIDKey is the attribute Key conforming to the
9557 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
9558 // resource quota.
9559 //
9560 // Type: string
9561 // RequirementLevel: Recommended
9562 // Stability: Development
9563 //
9564 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9565 K8SResourceQuotaUIDKey = attribute.Key("k8s.resourcequota.uid")
9566
9567 // K8SServiceEndpointAddressTypeKey is the attribute Key conforming to the
9568 // "k8s.service.endpoint.address_type" semantic conventions. It represents the
9569 // address type of the service endpoint.
9570 //
9571 // Type: Enum
9572 // RequirementLevel: Recommended
9573 // Stability: Development
9574 //
9575 // Examples: "IPv4", "IPv6"
9576 // Note: The network address family or type of the endpoint.
9577 // This attribute aligns with the `addressType` field of the
9578 // [K8s EndpointSlice].
9579 // It is used to differentiate metrics when a Service is backed by multiple
9580 // address types
9581 // (e.g., in dual-stack clusters).
9582 //
9583 // [K8s EndpointSlice]: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/
9584 K8SServiceEndpointAddressTypeKey = attribute.Key("k8s.service.endpoint.address_type")
9585
9586 // K8SServiceEndpointConditionKey is the attribute Key conforming to the
9587 // "k8s.service.endpoint.condition" semantic conventions. It represents the
9588 // condition of the service endpoint.
9589 //
9590 // Type: Enum
9591 // RequirementLevel: Recommended
9592 // Stability: Development
9593 //
9594 // Examples: "ready", "serving", "terminating"
9595 // Note: The current operational condition of the service endpoint.
9596 // An endpoint can have multiple conditions set at once (e.g., both `serving`
9597 // and `terminating` during rollout).
9598 // This attribute aligns with the condition fields in the [K8s EndpointSlice].
9599 //
9600 // [K8s EndpointSlice]: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/
9601 K8SServiceEndpointConditionKey = attribute.Key("k8s.service.endpoint.condition")
9602
9603 // K8SServiceEndpointZoneKey is the attribute Key conforming to the
9604 // "k8s.service.endpoint.zone" semantic conventions. It represents the zone of
9605 // the service endpoint.
9606 //
9607 // Type: string
9608 // RequirementLevel: Recommended
9609 // Stability: Development
9610 //
9611 // Examples: "us-east-1a", "us-west-2b", "zone-a", ""
9612 // Note: The zone where the endpoint is located, typically corresponding to a
9613 // failure domain.
9614 // This attribute aligns with the `zone` field of endpoints in the
9615 // [K8s EndpointSlice].
9616 // It enables zone-aware monitoring of service endpoint distribution and
9617 // supports
9618 // features like [Topology Aware Routing].
9619 //
9620 // If the zone is not populated (e.g., nodes without the
9621 // `topology.kubernetes.io/zone` label),
9622 // the attribute value will be an empty string.
9623 //
9624 // [K8s EndpointSlice]: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/
9625 // [Topology Aware Routing]: https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/
9626 K8SServiceEndpointZoneKey = attribute.Key("k8s.service.endpoint.zone")
9627
9628 // K8SServiceNameKey is the attribute Key conforming to the "k8s.service.name"
9629 // semantic conventions. It represents the name of the Service.
9630 //
9631 // Type: string
9632 // RequirementLevel: Recommended
9633 // Stability: Development
9634 //
9635 // Examples: "my-service"
9636 K8SServiceNameKey = attribute.Key("k8s.service.name")
9637
9638 // K8SServicePublishNotReadyAddressesKey is the attribute Key conforming to the
9639 // "k8s.service.publish_not_ready_addresses" semantic conventions. It represents
9640 // the whether the Service publishes not-ready endpoints.
9641 //
9642 // Type: boolean
9643 // RequirementLevel: Recommended
9644 // Stability: Development
9645 //
9646 // Examples: true, false
9647 // Note: Whether the Service is configured to publish endpoints before the pods
9648 // are ready.
9649 // This attribute is typically used to indicate that a Service (such as a
9650 // headless
9651 // Service for a StatefulSet) allows peer discovery before pods pass their
9652 // readiness probes.
9653 // It aligns with the `publishNotReadyAddresses` field of the
9654 // [K8s ServiceSpec].
9655 //
9656 // [K8s ServiceSpec]: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/#ServiceSpec
9657 K8SServicePublishNotReadyAddressesKey = attribute.Key("k8s.service.publish_not_ready_addresses")
9658
9659 // K8SServiceTrafficDistributionKey is the attribute Key conforming to the
9660 // "k8s.service.traffic_distribution" semantic conventions. It represents the
9661 // traffic distribution policy for the Service.
9662 //
9663 // Type: string
9664 // RequirementLevel: Recommended
9665 // Stability: Development
9666 //
9667 // Examples: "PreferSameZone", "PreferSameNode"
9668 // Note: Specifies how traffic is distributed to endpoints for this Service.
9669 // This attribute aligns with the `trafficDistribution` field of the
9670 // [K8s ServiceSpec].
9671 // Known values include `PreferSameZone` (prefer endpoints in the same zone as
9672 // the client) and
9673 // `PreferSameNode` (prefer endpoints on the same node, fallback to same zone,
9674 // then cluster-wide).
9675 // If this field is not set on the Service, the attribute SHOULD NOT be emitted.
9676 // When not set, Kubernetes distributes traffic evenly across all endpoints
9677 // cluster-wide.
9678 //
9679 // [K8s ServiceSpec]: https://kubernetes.io/docs/reference/networking/virtual-ips/#traffic-distribution
9680 K8SServiceTrafficDistributionKey = attribute.Key("k8s.service.traffic_distribution")
9681
9682 // K8SServiceTypeKey is the attribute Key conforming to the "k8s.service.type"
9683 // semantic conventions. It represents the type of the Kubernetes Service.
9684 //
9685 // Type: Enum
9686 // RequirementLevel: Recommended
9687 // Stability: Development
9688 //
9689 // Examples: "ClusterIP", "NodePort", "LoadBalancer"
9690 // Note: This attribute aligns with the `type` field of the
9691 // [K8s ServiceSpec].
9692 //
9693 // [K8s ServiceSpec]: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/#ServiceSpec
9694 K8SServiceTypeKey = attribute.Key("k8s.service.type")
9695
9696 // K8SServiceUIDKey is the attribute Key conforming to the "k8s.service.uid"
9697 // semantic conventions. It represents the UID of the Service.
9698 //
9699 // Type: string
9700 // RequirementLevel: Recommended
9701 // Stability: Development
9702 //
9703 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9704 K8SServiceUIDKey = attribute.Key("k8s.service.uid")
9705
9706 // K8SStatefulSetNameKey is the attribute Key conforming to the
9707 // "k8s.statefulset.name" semantic conventions. It represents the name of the
9708 // StatefulSet.
9709 //
9710 // Type: string
9711 // RequirementLevel: Recommended
9712 // Stability: Beta
9713 //
9714 // Examples: "opentelemetry"
9715 K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
9716
9717 // K8SStatefulSetUIDKey is the attribute Key conforming to the
9718 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
9719 // StatefulSet.
9720 //
9721 // Type: string
9722 // RequirementLevel: Recommended
9723 // Stability: Beta
9724 //
9725 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9726 K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
9727
9728 // K8SStorageclassNameKey is the attribute Key conforming to the
9729 // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
9730 // [StorageClass] object.
9731 //
9732 // Type: string
9733 // RequirementLevel: Recommended
9734 // Stability: Development
9735 //
9736 // Examples: "gold.storageclass.storage.k8s.io"
9737 //
9738 // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
9739 K8SStorageclassNameKey = attribute.Key("k8s.storageclass.name")
9740
9741 // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
9742 // semantic conventions. It represents the name of the K8s volume.
9743 //
9744 // Type: string
9745 // RequirementLevel: Recommended
9746 // Stability: Development
9747 //
9748 // Examples: "volume0"
9749 K8SVolumeNameKey = attribute.Key("k8s.volume.name")
9750
9751 // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
9752 // semantic conventions. It represents the type of the K8s volume.
9753 //
9754 // Type: Enum
9755 // RequirementLevel: Recommended
9756 // Stability: Development
9757 //
9758 // Examples: "emptyDir", "persistentVolumeClaim"
9759 K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
9760 )
9761
9762 // K8SClusterName returns an attribute KeyValue conforming to the
9763 // "k8s.cluster.name" semantic conventions. It represents the name of the
9764 // cluster.
9765 func K8SClusterName(val string) attribute.KeyValue {
9766 return K8SClusterNameKey.String(val)
9767 }
9768
9769 // K8SClusterUID returns an attribute KeyValue conforming to the
9770 // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
9771 // cluster, set to the UID of the `kube-system` namespace.
9772 func K8SClusterUID(val string) attribute.KeyValue {
9773 return K8SClusterUIDKey.String(val)
9774 }
9775
9776 // K8SContainerName returns an attribute KeyValue conforming to the
9777 // "k8s.container.name" semantic conventions. It represents the name of the
9778 // Container from Pod specification, must be unique within a Pod. Container
9779 // runtime usually uses different globally unique name (`container.name`).
9780 func K8SContainerName(val string) attribute.KeyValue {
9781 return K8SContainerNameKey.String(val)
9782 }
9783
9784 // K8SContainerRestartCount returns an attribute KeyValue conforming to the
9785 // "k8s.container.restart_count" semantic conventions. It represents the number
9786 // of times the container was restarted. This attribute can be used to identify a
9787 // particular container (running or stopped) within a container spec.
9788 func K8SContainerRestartCount(val int) attribute.KeyValue {
9789 return K8SContainerRestartCountKey.Int(val)
9790 }
9791
9792 // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
9793 // conforming to the "k8s.container.status.last_terminated_reason" semantic
9794 // conventions. It represents the last terminated reason of the Container.
9795 func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
9796 return K8SContainerStatusLastTerminatedReasonKey.String(val)
9797 }
9798
9799 // K8SCronJobAnnotation returns an attribute KeyValue conforming to the
9800 // "k8s.cronjob.annotation" semantic conventions. It represents the cronjob
9801 // annotation placed on the CronJob, the `<key>` being the annotation name, the
9802 // value being the annotation value.
9803 func K8SCronJobAnnotation(key string, val string) attribute.KeyValue {
9804 return attribute.String("k8s.cronjob.annotation."+key, val)
9805 }
9806
9807 // K8SCronJobLabel returns an attribute KeyValue conforming to the
9808 // "k8s.cronjob.label" semantic conventions. It represents the label placed on
9809 // the CronJob, the `<key>` being the label name, the value being the label
9810 // value.
9811 func K8SCronJobLabel(key string, val string) attribute.KeyValue {
9812 return attribute.String("k8s.cronjob.label."+key, val)
9813 }
9814
9815 // K8SCronJobName returns an attribute KeyValue conforming to the
9816 // "k8s.cronjob.name" semantic conventions. It represents the name of the
9817 // CronJob.
9818 func K8SCronJobName(val string) attribute.KeyValue {
9819 return K8SCronJobNameKey.String(val)
9820 }
9821
9822 // K8SCronJobUID returns an attribute KeyValue conforming to the
9823 // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
9824 func K8SCronJobUID(val string) attribute.KeyValue {
9825 return K8SCronJobUIDKey.String(val)
9826 }
9827
9828 // K8SDaemonSetAnnotation returns an attribute KeyValue conforming to the
9829 // "k8s.daemonset.annotation" semantic conventions. It represents the annotation
9830 // placed on the DaemonSet, the `<key>` being the annotation name, the value
9831 // being the annotation value, even if the value is empty.
9832 func K8SDaemonSetAnnotation(key string, val string) attribute.KeyValue {
9833 return attribute.String("k8s.daemonset.annotation."+key, val)
9834 }
9835
9836 // K8SDaemonSetLabel returns an attribute KeyValue conforming to the
9837 // "k8s.daemonset.label" semantic conventions. It represents the label placed on
9838 // the DaemonSet, the `<key>` being the label name, the value being the label
9839 // value, even if the value is empty.
9840 func K8SDaemonSetLabel(key string, val string) attribute.KeyValue {
9841 return attribute.String("k8s.daemonset.label."+key, val)
9842 }
9843
9844 // K8SDaemonSetName returns an attribute KeyValue conforming to the
9845 // "k8s.daemonset.name" semantic conventions. It represents the name of the
9846 // DaemonSet.
9847 func K8SDaemonSetName(val string) attribute.KeyValue {
9848 return K8SDaemonSetNameKey.String(val)
9849 }
9850
9851 // K8SDaemonSetUID returns an attribute KeyValue conforming to the
9852 // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
9853 // DaemonSet.
9854 func K8SDaemonSetUID(val string) attribute.KeyValue {
9855 return K8SDaemonSetUIDKey.String(val)
9856 }
9857
9858 // K8SDeploymentAnnotation returns an attribute KeyValue conforming to the
9859 // "k8s.deployment.annotation" semantic conventions. It represents the annotation
9860 // placed on the Deployment, the `<key>` being the annotation name, the value
9861 // being the annotation value, even if the value is empty.
9862 func K8SDeploymentAnnotation(key string, val string) attribute.KeyValue {
9863 return attribute.String("k8s.deployment.annotation."+key, val)
9864 }
9865
9866 // K8SDeploymentLabel returns an attribute KeyValue conforming to the
9867 // "k8s.deployment.label" semantic conventions. It represents the label placed on
9868 // the Deployment, the `<key>` being the label name, the value being the label
9869 // value, even if the value is empty.
9870 func K8SDeploymentLabel(key string, val string) attribute.KeyValue {
9871 return attribute.String("k8s.deployment.label."+key, val)
9872 }
9873
9874 // K8SDeploymentName returns an attribute KeyValue conforming to the
9875 // "k8s.deployment.name" semantic conventions. It represents the name of the
9876 // Deployment.
9877 func K8SDeploymentName(val string) attribute.KeyValue {
9878 return K8SDeploymentNameKey.String(val)
9879 }
9880
9881 // K8SDeploymentUID returns an attribute KeyValue conforming to the
9882 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
9883 // Deployment.
9884 func K8SDeploymentUID(val string) attribute.KeyValue {
9885 return K8SDeploymentUIDKey.String(val)
9886 }
9887
9888 // K8SHPAMetricType returns an attribute KeyValue conforming to the
9889 // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
9890 // source for the horizontal pod autoscaler.
9891 func K8SHPAMetricType(val string) attribute.KeyValue {
9892 return K8SHPAMetricTypeKey.String(val)
9893 }
9894
9895 // K8SHPAName returns an attribute KeyValue conforming to the "k8s.hpa.name"
9896 // semantic conventions. It represents the name of the horizontal pod autoscaler.
9897 func K8SHPAName(val string) attribute.KeyValue {
9898 return K8SHPANameKey.String(val)
9899 }
9900
9901 // K8SHPAScaletargetrefAPIVersion returns an attribute KeyValue conforming to the
9902 // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
9903 // API version of the target resource to scale for the HorizontalPodAutoscaler.
9904 func K8SHPAScaletargetrefAPIVersion(val string) attribute.KeyValue {
9905 return K8SHPAScaletargetrefAPIVersionKey.String(val)
9906 }
9907
9908 // K8SHPAScaletargetrefKind returns an attribute KeyValue conforming to the
9909 // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
9910 // the target resource to scale for the HorizontalPodAutoscaler.
9911 func K8SHPAScaletargetrefKind(val string) attribute.KeyValue {
9912 return K8SHPAScaletargetrefKindKey.String(val)
9913 }
9914
9915 // K8SHPAScaletargetrefName returns an attribute KeyValue conforming to the
9916 // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
9917 // the target resource to scale for the HorizontalPodAutoscaler.
9918 func K8SHPAScaletargetrefName(val string) attribute.KeyValue {
9919 return K8SHPAScaletargetrefNameKey.String(val)
9920 }
9921
9922 // K8SHPAUID returns an attribute KeyValue conforming to the "k8s.hpa.uid"
9923 // semantic conventions. It represents the UID of the horizontal pod autoscaler.
9924 func K8SHPAUID(val string) attribute.KeyValue {
9925 return K8SHPAUIDKey.String(val)
9926 }
9927
9928 // K8SHugepageSize returns an attribute KeyValue conforming to the
9929 // "k8s.hugepage.size" semantic conventions. It represents the size (identifier)
9930 // of the K8s huge page.
9931 func K8SHugepageSize(val string) attribute.KeyValue {
9932 return K8SHugepageSizeKey.String(val)
9933 }
9934
9935 // K8SJobAnnotation returns an attribute KeyValue conforming to the
9936 // "k8s.job.annotation" semantic conventions. It represents the annotation placed
9937 // on the Job, the `<key>` being the annotation name, the value being the
9938 // annotation value, even if the value is empty.
9939 func K8SJobAnnotation(key string, val string) attribute.KeyValue {
9940 return attribute.String("k8s.job.annotation."+key, val)
9941 }
9942
9943 // K8SJobLabel returns an attribute KeyValue conforming to the "k8s.job.label"
9944 // semantic conventions. It represents the label placed on the Job, the `<key>`
9945 // being the label name, the value being the label value, even if the value is
9946 // empty.
9947 func K8SJobLabel(key string, val string) attribute.KeyValue {
9948 return attribute.String("k8s.job.label."+key, val)
9949 }
9950
9951 // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
9952 // semantic conventions. It represents the name of the Job.
9953 func K8SJobName(val string) attribute.KeyValue {
9954 return K8SJobNameKey.String(val)
9955 }
9956
9957 // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
9958 // semantic conventions. It represents the UID of the Job.
9959 func K8SJobUID(val string) attribute.KeyValue {
9960 return K8SJobUIDKey.String(val)
9961 }
9962
9963 // K8SNamespaceAnnotation returns an attribute KeyValue conforming to the
9964 // "k8s.namespace.annotation" semantic conventions. It represents the annotation
9965 // placed on the Namespace, the `<key>` being the annotation name, the value
9966 // being the annotation value, even if the value is empty.
9967 func K8SNamespaceAnnotation(key string, val string) attribute.KeyValue {
9968 return attribute.String("k8s.namespace.annotation."+key, val)
9969 }
9970
9971 // K8SNamespaceLabel returns an attribute KeyValue conforming to the
9972 // "k8s.namespace.label" semantic conventions. It represents the label placed on
9973 // the Namespace, the `<key>` being the label name, the value being the label
9974 // value, even if the value is empty.
9975 func K8SNamespaceLabel(key string, val string) attribute.KeyValue {
9976 return attribute.String("k8s.namespace.label."+key, val)
9977 }
9978
9979 // K8SNamespaceName returns an attribute KeyValue conforming to the
9980 // "k8s.namespace.name" semantic conventions. It represents the name of the
9981 // namespace that the pod is running in.
9982 func K8SNamespaceName(val string) attribute.KeyValue {
9983 return K8SNamespaceNameKey.String(val)
9984 }
9985
9986 // K8SNodeAnnotation returns an attribute KeyValue conforming to the
9987 // "k8s.node.annotation" semantic conventions. It represents the annotation
9988 // placed on the Node, the `<key>` being the annotation name, the value being the
9989 // annotation value, even if the value is empty.
9990 func K8SNodeAnnotation(key string, val string) attribute.KeyValue {
9991 return attribute.String("k8s.node.annotation."+key, val)
9992 }
9993
9994 // K8SNodeLabel returns an attribute KeyValue conforming to the "k8s.node.label"
9995 // semantic conventions. It represents the label placed on the Node, the `<key>`
9996 // being the label name, the value being the label value, even if the value is
9997 // empty.
9998 func K8SNodeLabel(key string, val string) attribute.KeyValue {
9999 return attribute.String("k8s.node.label."+key, val)
10000 }
10001
10002 // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
10003 // semantic conventions. It represents the name of the Node.
10004 func K8SNodeName(val string) attribute.KeyValue {
10005 return K8SNodeNameKey.String(val)
10006 }
10007
10008 // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
10009 // semantic conventions. It represents the UID of the Node.
10010 func K8SNodeUID(val string) attribute.KeyValue {
10011 return K8SNodeUIDKey.String(val)
10012 }
10013
10014 // K8SPodAnnotation returns an attribute KeyValue conforming to the
10015 // "k8s.pod.annotation" semantic conventions. It represents the annotation placed
10016 // on the Pod, the `<key>` being the annotation name, the value being the
10017 // annotation value.
10018 func K8SPodAnnotation(key string, val string) attribute.KeyValue {
10019 return attribute.String("k8s.pod.annotation."+key, val)
10020 }
10021
10022 // K8SPodHostname returns an attribute KeyValue conforming to the
10023 // "k8s.pod.hostname" semantic conventions. It represents the specifies the
10024 // hostname of the Pod.
10025 func K8SPodHostname(val string) attribute.KeyValue {
10026 return K8SPodHostnameKey.String(val)
10027 }
10028
10029 // K8SPodIP returns an attribute KeyValue conforming to the "k8s.pod.ip" semantic
10030 // conventions. It represents the IP address allocated to the Pod.
10031 func K8SPodIP(val string) attribute.KeyValue {
10032 return K8SPodIPKey.String(val)
10033 }
10034
10035 // K8SPodLabel returns an attribute KeyValue conforming to the "k8s.pod.label"
10036 // semantic conventions. It represents the label placed on the Pod, the `<key>`
10037 // being the label name, the value being the label value.
10038 func K8SPodLabel(key string, val string) attribute.KeyValue {
10039 return attribute.String("k8s.pod.label."+key, val)
10040 }
10041
10042 // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
10043 // semantic conventions. It represents the name of the Pod.
10044 func K8SPodName(val string) attribute.KeyValue {
10045 return K8SPodNameKey.String(val)
10046 }
10047
10048 // K8SPodStartTime returns an attribute KeyValue conforming to the
10049 // "k8s.pod.start_time" semantic conventions. It represents the start timestamp
10050 // of the Pod.
10051 func K8SPodStartTime(val string) attribute.KeyValue {
10052 return K8SPodStartTimeKey.String(val)
10053 }
10054
10055 // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
10056 // semantic conventions. It represents the UID of the Pod.
10057 func K8SPodUID(val string) attribute.KeyValue {
10058 return K8SPodUIDKey.String(val)
10059 }
10060
10061 // K8SReplicaSetAnnotation returns an attribute KeyValue conforming to the
10062 // "k8s.replicaset.annotation" semantic conventions. It represents the annotation
10063 // placed on the ReplicaSet, the `<key>` being the annotation name, the value
10064 // being the annotation value, even if the value is empty.
10065 func K8SReplicaSetAnnotation(key string, val string) attribute.KeyValue {
10066 return attribute.String("k8s.replicaset.annotation."+key, val)
10067 }
10068
10069 // K8SReplicaSetLabel returns an attribute KeyValue conforming to the
10070 // "k8s.replicaset.label" semantic conventions. It represents the label placed on
10071 // the ReplicaSet, the `<key>` being the label name, the value being the label
10072 // value, even if the value is empty.
10073 func K8SReplicaSetLabel(key string, val string) attribute.KeyValue {
10074 return attribute.String("k8s.replicaset.label."+key, val)
10075 }
10076
10077 // K8SReplicaSetName returns an attribute KeyValue conforming to the
10078 // "k8s.replicaset.name" semantic conventions. It represents the name of the
10079 // ReplicaSet.
10080 func K8SReplicaSetName(val string) attribute.KeyValue {
10081 return K8SReplicaSetNameKey.String(val)
10082 }
10083
10084 // K8SReplicaSetUID returns an attribute KeyValue conforming to the
10085 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
10086 // ReplicaSet.
10087 func K8SReplicaSetUID(val string) attribute.KeyValue {
10088 return K8SReplicaSetUIDKey.String(val)
10089 }
10090
10091 // K8SReplicationControllerName returns an attribute KeyValue conforming to the
10092 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
10093 // of the replication controller.
10094 func K8SReplicationControllerName(val string) attribute.KeyValue {
10095 return K8SReplicationControllerNameKey.String(val)
10096 }
10097
10098 // K8SReplicationControllerUID returns an attribute KeyValue conforming to the
10099 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID of
10100 // the replication controller.
10101 func K8SReplicationControllerUID(val string) attribute.KeyValue {
10102 return K8SReplicationControllerUIDKey.String(val)
10103 }
10104
10105 // K8SResourceQuotaName returns an attribute KeyValue conforming to the
10106 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
10107 // resource quota.
10108 func K8SResourceQuotaName(val string) attribute.KeyValue {
10109 return K8SResourceQuotaNameKey.String(val)
10110 }
10111
10112 // K8SResourceQuotaResourceName returns an attribute KeyValue conforming to the
10113 // "k8s.resourcequota.resource_name" semantic conventions. It represents the name
10114 // of the K8s resource a resource quota defines.
10115 func K8SResourceQuotaResourceName(val string) attribute.KeyValue {
10116 return K8SResourceQuotaResourceNameKey.String(val)
10117 }
10118
10119 // K8SResourceQuotaUID returns an attribute KeyValue conforming to the
10120 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
10121 // resource quota.
10122 func K8SResourceQuotaUID(val string) attribute.KeyValue {
10123 return K8SResourceQuotaUIDKey.String(val)
10124 }
10125
10126 // K8SServiceAnnotation returns an attribute KeyValue conforming to the
10127 // "k8s.service.annotation" semantic conventions. It represents the annotation
10128 // placed on the Service, the `<key>` being the annotation name, the value being
10129 // the annotation value, even if the value is empty.
10130 func K8SServiceAnnotation(key string, val string) attribute.KeyValue {
10131 return attribute.String("k8s.service.annotation."+key, val)
10132 }
10133
10134 // K8SServiceEndpointZone returns an attribute KeyValue conforming to the
10135 // "k8s.service.endpoint.zone" semantic conventions. It represents the zone of
10136 // the service endpoint.
10137 func K8SServiceEndpointZone(val string) attribute.KeyValue {
10138 return K8SServiceEndpointZoneKey.String(val)
10139 }
10140
10141 // K8SServiceLabel returns an attribute KeyValue conforming to the
10142 // "k8s.service.label" semantic conventions. It represents the label placed on
10143 // the Service, the `<key>` being the label name, the value being the label
10144 // value, even if the value is empty.
10145 func K8SServiceLabel(key string, val string) attribute.KeyValue {
10146 return attribute.String("k8s.service.label."+key, val)
10147 }
10148
10149 // K8SServiceName returns an attribute KeyValue conforming to the
10150 // "k8s.service.name" semantic conventions. It represents the name of the
10151 // Service.
10152 func K8SServiceName(val string) attribute.KeyValue {
10153 return K8SServiceNameKey.String(val)
10154 }
10155
10156 // K8SServicePublishNotReadyAddresses returns an attribute KeyValue conforming to
10157 // the "k8s.service.publish_not_ready_addresses" semantic conventions. It
10158 // represents the whether the Service publishes not-ready endpoints.
10159 func K8SServicePublishNotReadyAddresses(val bool) attribute.KeyValue {
10160 return K8SServicePublishNotReadyAddressesKey.Bool(val)
10161 }
10162
10163 // K8SServiceSelector returns an attribute KeyValue conforming to the
10164 // "k8s.service.selector" semantic conventions. It represents the selector
10165 // key-value pair placed on the Service, the `<key>` being the selector key, the
10166 // value being the selector value.
10167 func K8SServiceSelector(key string, val string) attribute.KeyValue {
10168 return attribute.String("k8s.service.selector."+key, val)
10169 }
10170
10171 // K8SServiceTrafficDistribution returns an attribute KeyValue conforming to the
10172 // "k8s.service.traffic_distribution" semantic conventions. It represents the
10173 // traffic distribution policy for the Service.
10174 func K8SServiceTrafficDistribution(val string) attribute.KeyValue {
10175 return K8SServiceTrafficDistributionKey.String(val)
10176 }
10177
10178 // K8SServiceUID returns an attribute KeyValue conforming to the
10179 // "k8s.service.uid" semantic conventions. It represents the UID of the Service.
10180 func K8SServiceUID(val string) attribute.KeyValue {
10181 return K8SServiceUIDKey.String(val)
10182 }
10183
10184 // K8SStatefulSetAnnotation returns an attribute KeyValue conforming to the
10185 // "k8s.statefulset.annotation" semantic conventions. It represents the
10186 // annotation placed on the StatefulSet, the `<key>` being the annotation name,
10187 // the value being the annotation value, even if the value is empty.
10188 func K8SStatefulSetAnnotation(key string, val string) attribute.KeyValue {
10189 return attribute.String("k8s.statefulset.annotation."+key, val)
10190 }
10191
10192 // K8SStatefulSetLabel returns an attribute KeyValue conforming to the
10193 // "k8s.statefulset.label" semantic conventions. It represents the label placed
10194 // on the StatefulSet, the `<key>` being the label name, the value being the
10195 // label value, even if the value is empty.
10196 func K8SStatefulSetLabel(key string, val string) attribute.KeyValue {
10197 return attribute.String("k8s.statefulset.label."+key, val)
10198 }
10199
10200 // K8SStatefulSetName returns an attribute KeyValue conforming to the
10201 // "k8s.statefulset.name" semantic conventions. It represents the name of the
10202 // StatefulSet.
10203 func K8SStatefulSetName(val string) attribute.KeyValue {
10204 return K8SStatefulSetNameKey.String(val)
10205 }
10206
10207 // K8SStatefulSetUID returns an attribute KeyValue conforming to the
10208 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
10209 // StatefulSet.
10210 func K8SStatefulSetUID(val string) attribute.KeyValue {
10211 return K8SStatefulSetUIDKey.String(val)
10212 }
10213
10214 // K8SStorageclassName returns an attribute KeyValue conforming to the
10215 // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
10216 // [StorageClass] object.
10217 //
10218 // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
10219 func K8SStorageclassName(val string) attribute.KeyValue {
10220 return K8SStorageclassNameKey.String(val)
10221 }
10222
10223 // K8SVolumeName returns an attribute KeyValue conforming to the
10224 // "k8s.volume.name" semantic conventions. It represents the name of the K8s
10225 // volume.
10226 func K8SVolumeName(val string) attribute.KeyValue {
10227 return K8SVolumeNameKey.String(val)
10228 }
10229
10230 // Enum values for k8s.container.status.reason
10231 var (
10232 // The container is being created.
10233 // Stability: development
10234 K8SContainerStatusReasonContainerCreating = K8SContainerStatusReasonKey.String("ContainerCreating")
10235 // The container is in a crash loop back off state.
10236 // Stability: development
10237 K8SContainerStatusReasonCrashLoopBackOff = K8SContainerStatusReasonKey.String("CrashLoopBackOff")
10238 // There was an error creating the container configuration.
10239 // Stability: development
10240 K8SContainerStatusReasonCreateContainerConfigError = K8SContainerStatusReasonKey.String("CreateContainerConfigError")
10241 // There was an error pulling the container image.
10242 // Stability: development
10243 K8SContainerStatusReasonErrImagePull = K8SContainerStatusReasonKey.String("ErrImagePull")
10244 // The container image pull is in back off state.
10245 // Stability: development
10246 K8SContainerStatusReasonImagePullBackOff = K8SContainerStatusReasonKey.String("ImagePullBackOff")
10247 // The container was killed due to out of memory.
10248 // Stability: development
10249 K8SContainerStatusReasonOomKilled = K8SContainerStatusReasonKey.String("OOMKilled")
10250 // The container has completed execution.
10251 // Stability: development
10252 K8SContainerStatusReasonCompleted = K8SContainerStatusReasonKey.String("Completed")
10253 // There was an error with the container.
10254 // Stability: development
10255 K8SContainerStatusReasonError = K8SContainerStatusReasonKey.String("Error")
10256 // The container cannot run.
10257 // Stability: development
10258 K8SContainerStatusReasonContainerCannotRun = K8SContainerStatusReasonKey.String("ContainerCannotRun")
10259 )
10260
10261 // Enum values for k8s.container.status.state
10262 var (
10263 // The container has terminated.
10264 // Stability: development
10265 K8SContainerStatusStateTerminated = K8SContainerStatusStateKey.String("terminated")
10266 // The container is running.
10267 // Stability: development
10268 K8SContainerStatusStateRunning = K8SContainerStatusStateKey.String("running")
10269 // The container is waiting.
10270 // Stability: development
10271 K8SContainerStatusStateWaiting = K8SContainerStatusStateKey.String("waiting")
10272 )
10273
10274 // Enum values for k8s.namespace.phase
10275 var (
10276 // Active namespace phase as described by [K8s API]
10277 // Stability: development
10278 //
10279 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
10280 K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active")
10281 // Terminating namespace phase as described by [K8s API]
10282 // Stability: development
10283 //
10284 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
10285 K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating")
10286 )
10287
10288 // Enum values for k8s.node.condition.status
10289 var (
10290 // condition_true
10291 // Stability: development
10292 K8SNodeConditionStatusConditionTrue = K8SNodeConditionStatusKey.String("true")
10293 // condition_false
10294 // Stability: development
10295 K8SNodeConditionStatusConditionFalse = K8SNodeConditionStatusKey.String("false")
10296 // condition_unknown
10297 // Stability: development
10298 K8SNodeConditionStatusConditionUnknown = K8SNodeConditionStatusKey.String("unknown")
10299 )
10300
10301 // Enum values for k8s.node.condition.type
10302 var (
10303 // The node is healthy and ready to accept pods
10304 // Stability: development
10305 K8SNodeConditionTypeReady = K8SNodeConditionTypeKey.String("Ready")
10306 // Pressure exists on the disk size—that is, if the disk capacity is low
10307 // Stability: development
10308 K8SNodeConditionTypeDiskPressure = K8SNodeConditionTypeKey.String("DiskPressure")
10309 // Pressure exists on the node memory—that is, if the node memory is low
10310 // Stability: development
10311 K8SNodeConditionTypeMemoryPressure = K8SNodeConditionTypeKey.String("MemoryPressure")
10312 // Pressure exists on the processes—that is, if there are too many processes
10313 // on the node
10314 // Stability: development
10315 K8SNodeConditionTypePIDPressure = K8SNodeConditionTypeKey.String("PIDPressure")
10316 // The network for the node is not correctly configured
10317 // Stability: development
10318 K8SNodeConditionTypeNetworkUnavailable = K8SNodeConditionTypeKey.String("NetworkUnavailable")
10319 )
10320
10321 // Enum values for k8s.pod.status.phase
10322 var (
10323 // The pod has been accepted by the system, but one or more of the containers
10324 // has not been started. This includes time before being bound to a node, as
10325 // well as time spent pulling images onto the host.
10326 //
10327 // Stability: development
10328 K8SPodStatusPhasePending = K8SPodStatusPhaseKey.String("Pending")
10329 // The pod has been bound to a node and all of the containers have been started.
10330 // At least one container is still running or is in the process of being
10331 // restarted.
10332 //
10333 // Stability: development
10334 K8SPodStatusPhaseRunning = K8SPodStatusPhaseKey.String("Running")
10335 // All containers in the pod have voluntarily terminated with a container exit
10336 // code of 0, and the system is not going to restart any of these containers.
10337 //
10338 // Stability: development
10339 K8SPodStatusPhaseSucceeded = K8SPodStatusPhaseKey.String("Succeeded")
10340 // All containers in the pod have terminated, and at least one container has
10341 // terminated in a failure (exited with a non-zero exit code or was stopped by
10342 // the system).
10343 //
10344 // Stability: development
10345 K8SPodStatusPhaseFailed = K8SPodStatusPhaseKey.String("Failed")
10346 // For some reason the state of the pod could not be obtained, typically due to
10347 // an error in communicating with the host of the pod.
10348 //
10349 // Stability: development
10350 K8SPodStatusPhaseUnknown = K8SPodStatusPhaseKey.String("Unknown")
10351 )
10352
10353 // Enum values for k8s.pod.status.reason
10354 var (
10355 // The pod is evicted.
10356 // Stability: development
10357 K8SPodStatusReasonEvicted = K8SPodStatusReasonKey.String("Evicted")
10358 // The pod is in a status because of its node affinity
10359 // Stability: development
10360 K8SPodStatusReasonNodeAffinity = K8SPodStatusReasonKey.String("NodeAffinity")
10361 // The reason on a pod when its state cannot be confirmed as kubelet is
10362 // unresponsive on the node it is (was) running.
10363 //
10364 // Stability: development
10365 K8SPodStatusReasonNodeLost = K8SPodStatusReasonKey.String("NodeLost")
10366 // The node is shutdown
10367 // Stability: development
10368 K8SPodStatusReasonShutdown = K8SPodStatusReasonKey.String("Shutdown")
10369 // The pod was rejected admission to the node because of an error during
10370 // admission that could not be categorized.
10371 //
10372 // Stability: development
10373 K8SPodStatusReasonUnexpectedAdmissionError = K8SPodStatusReasonKey.String("UnexpectedAdmissionError")
10374 )
10375
10376 // Enum values for k8s.service.endpoint.address_type
10377 var (
10378 // IPv4 address type
10379 // Stability: development
10380 K8SServiceEndpointAddressTypeIPv4 = K8SServiceEndpointAddressTypeKey.String("IPv4")
10381 // IPv6 address type
10382 // Stability: development
10383 K8SServiceEndpointAddressTypeIPv6 = K8SServiceEndpointAddressTypeKey.String("IPv6")
10384 // FQDN address type
10385 // Stability: development
10386 K8SServiceEndpointAddressTypeFqdn = K8SServiceEndpointAddressTypeKey.String("FQDN")
10387 )
10388
10389 // Enum values for k8s.service.endpoint.condition
10390 var (
10391 // The endpoint is ready to receive new connections.
10392 // Stability: development
10393 K8SServiceEndpointConditionReady = K8SServiceEndpointConditionKey.String("ready")
10394 // The endpoint is currently handling traffic.
10395 // Stability: development
10396 K8SServiceEndpointConditionServing = K8SServiceEndpointConditionKey.String("serving")
10397 // The endpoint is in the process of shutting down.
10398 // Stability: development
10399 K8SServiceEndpointConditionTerminating = K8SServiceEndpointConditionKey.String("terminating")
10400 )
10401
10402 // Enum values for k8s.service.type
10403 var (
10404 // ClusterIP service type
10405 // Stability: development
10406 K8SServiceTypeClusterIP = K8SServiceTypeKey.String("ClusterIP")
10407 // NodePort service type
10408 // Stability: development
10409 K8SServiceTypeNodePort = K8SServiceTypeKey.String("NodePort")
10410 // LoadBalancer service type
10411 // Stability: development
10412 K8SServiceTypeLoadBalancer = K8SServiceTypeKey.String("LoadBalancer")
10413 // ExternalName service type
10414 // Stability: development
10415 K8SServiceTypeExternalName = K8SServiceTypeKey.String("ExternalName")
10416 )
10417
10418 // Enum values for k8s.volume.type
10419 var (
10420 // A [persistentVolumeClaim] volume
10421 // Stability: development
10422 //
10423 // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
10424 K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
10425 // A [configMap] volume
10426 // Stability: development
10427 //
10428 // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
10429 K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
10430 // A [downwardAPI] volume
10431 // Stability: development
10432 //
10433 // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
10434 K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
10435 // An [emptyDir] volume
10436 // Stability: development
10437 //
10438 // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
10439 K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
10440 // A [secret] volume
10441 // Stability: development
10442 //
10443 // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
10444 K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
10445 // A [local] volume
10446 // Stability: development
10447 //
10448 // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local
10449 K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
10450 )
10451
10452 // Namespace: log
10453 const (
10454 // LogFileNameKey is the attribute Key conforming to the "log.file.name"
10455 // semantic conventions. It represents the basename of the file.
10456 //
10457 // Type: string
10458 // RequirementLevel: Recommended
10459 // Stability: Development
10460 //
10461 // Examples: "audit.log"
10462 LogFileNameKey = attribute.Key("log.file.name")
10463
10464 // LogFileNameResolvedKey is the attribute Key conforming to the
10465 // "log.file.name_resolved" semantic conventions. It represents the basename of
10466 // the file, with symlinks resolved.
10467 //
10468 // Type: string
10469 // RequirementLevel: Recommended
10470 // Stability: Development
10471 //
10472 // Examples: "uuid.log"
10473 LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
10474
10475 // LogFilePathKey is the attribute Key conforming to the "log.file.path"
10476 // semantic conventions. It represents the full path to the file.
10477 //
10478 // Type: string
10479 // RequirementLevel: Recommended
10480 // Stability: Development
10481 //
10482 // Examples: "/var/log/mysql/audit.log"
10483 LogFilePathKey = attribute.Key("log.file.path")
10484
10485 // LogFilePathResolvedKey is the attribute Key conforming to the
10486 // "log.file.path_resolved" semantic conventions. It represents the full path to
10487 // the file, with symlinks resolved.
10488 //
10489 // Type: string
10490 // RequirementLevel: Recommended
10491 // Stability: Development
10492 //
10493 // Examples: "/var/lib/docker/uuid.log"
10494 LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
10495
10496 // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
10497 // conventions. It represents the stream associated with the log. See below for
10498 // a list of well-known values.
10499 //
10500 // Type: Enum
10501 // RequirementLevel: Recommended
10502 // Stability: Development
10503 //
10504 // Examples:
10505 LogIostreamKey = attribute.Key("log.iostream")
10506
10507 // LogRecordOriginalKey is the attribute Key conforming to the
10508 // "log.record.original" semantic conventions. It represents the complete
10509 // original Log Record.
10510 //
10511 // Type: string
10512 // RequirementLevel: Recommended
10513 // Stability: Development
10514 //
10515 // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
10516 // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
10517 // Note: This value MAY be added when processing a Log Record which was
10518 // originally transmitted as a string or equivalent data type AND the Body field
10519 // of the Log Record does not contain the same value. (e.g. a syslog or a log
10520 // record read from a file.)
10521 LogRecordOriginalKey = attribute.Key("log.record.original")
10522
10523 // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
10524 // semantic conventions. It represents a unique identifier for the Log Record.
10525 //
10526 // Type: string
10527 // RequirementLevel: Recommended
10528 // Stability: Development
10529 //
10530 // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
10531 // Note: If an id is provided, other log records with the same id will be
10532 // considered duplicates and can be removed safely. This means, that two
10533 // distinguishable log records MUST have different values.
10534 // The id MAY be an
10535 // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
10536 // identifiers (e.g. UUID) may be used as needed.
10537 //
10538 // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
10539 LogRecordUIDKey = attribute.Key("log.record.uid")
10540 )
10541
10542 // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
10543 // semantic conventions. It represents the basename of the file.
10544 func LogFileName(val string) attribute.KeyValue {
10545 return LogFileNameKey.String(val)
10546 }
10547
10548 // LogFileNameResolved returns an attribute KeyValue conforming to the
10549 // "log.file.name_resolved" semantic conventions. It represents the basename of
10550 // the file, with symlinks resolved.
10551 func LogFileNameResolved(val string) attribute.KeyValue {
10552 return LogFileNameResolvedKey.String(val)
10553 }
10554
10555 // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
10556 // semantic conventions. It represents the full path to the file.
10557 func LogFilePath(val string) attribute.KeyValue {
10558 return LogFilePathKey.String(val)
10559 }
10560
10561 // LogFilePathResolved returns an attribute KeyValue conforming to the
10562 // "log.file.path_resolved" semantic conventions. It represents the full path to
10563 // the file, with symlinks resolved.
10564 func LogFilePathResolved(val string) attribute.KeyValue {
10565 return LogFilePathResolvedKey.String(val)
10566 }
10567
10568 // LogRecordOriginal returns an attribute KeyValue conforming to the
10569 // "log.record.original" semantic conventions. It represents the complete
10570 // original Log Record.
10571 func LogRecordOriginal(val string) attribute.KeyValue {
10572 return LogRecordOriginalKey.String(val)
10573 }
10574
10575 // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
10576 // semantic conventions. It represents a unique identifier for the Log Record.
10577 func LogRecordUID(val string) attribute.KeyValue {
10578 return LogRecordUIDKey.String(val)
10579 }
10580
10581 // Enum values for log.iostream
10582 var (
10583 // Logs from stdout stream
10584 // Stability: development
10585 LogIostreamStdout = LogIostreamKey.String("stdout")
10586 // Events from stderr stream
10587 // Stability: development
10588 LogIostreamStderr = LogIostreamKey.String("stderr")
10589 )
10590
10591 // Namespace: mainframe
10592 const (
10593 // MainframeLparNameKey is the attribute Key conforming to the
10594 // "mainframe.lpar.name" semantic conventions. It represents the name of the
10595 // logical partition that hosts a systems with a mainframe operating system.
10596 //
10597 // Type: string
10598 // RequirementLevel: Recommended
10599 // Stability: Development
10600 //
10601 // Examples: "LPAR01"
10602 MainframeLparNameKey = attribute.Key("mainframe.lpar.name")
10603 )
10604
10605 // MainframeLparName returns an attribute KeyValue conforming to the
10606 // "mainframe.lpar.name" semantic conventions. It represents the name of the
10607 // logical partition that hosts a systems with a mainframe operating system.
10608 func MainframeLparName(val string) attribute.KeyValue {
10609 return MainframeLparNameKey.String(val)
10610 }
10611
10612 // Namespace: mcp
10613 const (
10614 // McpMethodNameKey is the attribute Key conforming to the "mcp.method.name"
10615 // semantic conventions. It represents the name of the request or notification
10616 // method.
10617 //
10618 // Type: Enum
10619 // RequirementLevel: Recommended
10620 // Stability: Development
10621 //
10622 // Examples:
10623 McpMethodNameKey = attribute.Key("mcp.method.name")
10624
10625 // McpProtocolVersionKey is the attribute Key conforming to the
10626 // "mcp.protocol.version" semantic conventions. It represents the [version] of
10627 // the Model Context Protocol used.
10628 //
10629 // Type: string
10630 // RequirementLevel: Recommended
10631 // Stability: Development
10632 //
10633 // Examples: "2025-06-18"
10634 //
10635 // [version]: https://modelcontextprotocol.io/specification/versioning
10636 McpProtocolVersionKey = attribute.Key("mcp.protocol.version")
10637
10638 // McpResourceURIKey is the attribute Key conforming to the "mcp.resource.uri"
10639 // semantic conventions. It represents the value of the resource uri.
10640 //
10641 // Type: string
10642 // RequirementLevel: Recommended
10643 // Stability: Development
10644 //
10645 // Examples: "postgres://database/customers/schema",
10646 // "file:///home/user/documents/report.pdf"
10647 // Note: This is a URI of the resource provided in the following requests or
10648 // notifications: `resources/read`, `resources/subscribe`,
10649 // `resources/unsubscribe`, or `notifications/resources/updated`.
10650 McpResourceURIKey = attribute.Key("mcp.resource.uri")
10651
10652 // McpSessionIDKey is the attribute Key conforming to the "mcp.session.id"
10653 // semantic conventions. It represents the identifies [MCP session].
10654 //
10655 // Type: string
10656 // RequirementLevel: Recommended
10657 // Stability: Development
10658 //
10659 // Examples: "191c4850af6c49e08843a3f6c80e5046"
10660 //
10661 // [MCP session]: https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#session-management
10662 McpSessionIDKey = attribute.Key("mcp.session.id")
10663 )
10664
10665 // McpProtocolVersion returns an attribute KeyValue conforming to the
10666 // "mcp.protocol.version" semantic conventions. It represents the [version] of
10667 // the Model Context Protocol used.
10668 //
10669 // [version]: https://modelcontextprotocol.io/specification/versioning
10670 func McpProtocolVersion(val string) attribute.KeyValue {
10671 return McpProtocolVersionKey.String(val)
10672 }
10673
10674 // McpResourceURI returns an attribute KeyValue conforming to the
10675 // "mcp.resource.uri" semantic conventions. It represents the value of the
10676 // resource uri.
10677 func McpResourceURI(val string) attribute.KeyValue {
10678 return McpResourceURIKey.String(val)
10679 }
10680
10681 // McpSessionID returns an attribute KeyValue conforming to the "mcp.session.id"
10682 // semantic conventions. It represents the identifies [MCP session].
10683 //
10684 // [MCP session]: https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#session-management
10685 func McpSessionID(val string) attribute.KeyValue {
10686 return McpSessionIDKey.String(val)
10687 }
10688
10689 // Enum values for mcp.method.name
10690 var (
10691 // Notification cancelling a previously-issued request.
10692 //
10693 // Stability: development
10694 McpMethodNameNotificationsCancelled = McpMethodNameKey.String("notifications/cancelled")
10695 // Request to initialize the MCP client.
10696 //
10697 // Stability: development
10698 McpMethodNameInitialize = McpMethodNameKey.String("initialize")
10699 // Notification indicating that the MCP client has been initialized.
10700 //
10701 // Stability: development
10702 McpMethodNameNotificationsInitialized = McpMethodNameKey.String("notifications/initialized")
10703 // Notification indicating the progress for a long-running operation.
10704 //
10705 // Stability: development
10706 McpMethodNameNotificationsProgress = McpMethodNameKey.String("notifications/progress")
10707 // Request to check that the other party is still alive.
10708 //
10709 // Stability: development
10710 McpMethodNamePing = McpMethodNameKey.String("ping")
10711 // Request to list resources available on server.
10712 //
10713 // Stability: development
10714 McpMethodNameResourcesList = McpMethodNameKey.String("resources/list")
10715 // Request to list resource templates available on server.
10716 //
10717 // Stability: development
10718 McpMethodNameResourcesTemplatesList = McpMethodNameKey.String("resources/templates/list")
10719 // Request to read a resource.
10720 //
10721 // Stability: development
10722 McpMethodNameResourcesRead = McpMethodNameKey.String("resources/read")
10723 // Notification indicating that the list of resources has changed.
10724 //
10725 // Stability: development
10726 McpMethodNameNotificationsResourcesListChanged = McpMethodNameKey.String("notifications/resources/list_changed")
10727 // Request to subscribe to a resource.
10728 //
10729 // Stability: development
10730 McpMethodNameResourcesSubscribe = McpMethodNameKey.String("resources/subscribe")
10731 // Request to unsubscribe from resource updates.
10732 //
10733 // Stability: development
10734 McpMethodNameResourcesUnsubscribe = McpMethodNameKey.String("resources/unsubscribe")
10735 // Notification indicating that a resource has been updated.
10736 //
10737 // Stability: development
10738 McpMethodNameNotificationsResourcesUpdated = McpMethodNameKey.String("notifications/resources/updated")
10739 // Request to list prompts available on server.
10740 //
10741 // Stability: development
10742 McpMethodNamePromptsList = McpMethodNameKey.String("prompts/list")
10743 // Request to get a prompt.
10744 //
10745 // Stability: development
10746 McpMethodNamePromptsGet = McpMethodNameKey.String("prompts/get")
10747 // Notification indicating that the list of prompts has changed.
10748 //
10749 // Stability: development
10750 McpMethodNameNotificationsPromptsListChanged = McpMethodNameKey.String("notifications/prompts/list_changed")
10751 // Request to list tools available on server.
10752 //
10753 // Stability: development
10754 McpMethodNameToolsList = McpMethodNameKey.String("tools/list")
10755 // Request to call a tool.
10756 //
10757 // Stability: development
10758 McpMethodNameToolsCall = McpMethodNameKey.String("tools/call")
10759 // Notification indicating that the list of tools has changed.
10760 //
10761 // Stability: development
10762 McpMethodNameNotificationsToolsListChanged = McpMethodNameKey.String("notifications/tools/list_changed")
10763 // Request to set the logging level.
10764 //
10765 // Stability: development
10766 McpMethodNameLoggingSetLevel = McpMethodNameKey.String("logging/setLevel")
10767 // Notification indicating that a message has been received.
10768 //
10769 // Stability: development
10770 McpMethodNameNotificationsMessage = McpMethodNameKey.String("notifications/message")
10771 // Request to create a sampling message.
10772 //
10773 // Stability: development
10774 McpMethodNameSamplingCreateMessage = McpMethodNameKey.String("sampling/createMessage")
10775 // Request to complete a prompt.
10776 //
10777 // Stability: development
10778 McpMethodNameCompletionComplete = McpMethodNameKey.String("completion/complete")
10779 // Request to list roots available on server.
10780 //
10781 // Stability: development
10782 McpMethodNameRootsList = McpMethodNameKey.String("roots/list")
10783 // Notification indicating that the list of roots has changed.
10784 //
10785 // Stability: development
10786 McpMethodNameNotificationsRootsListChanged = McpMethodNameKey.String("notifications/roots/list_changed")
10787 // Request from the server to elicit additional information from the user via
10788 // the client
10789 //
10790 // Stability: development
10791 McpMethodNameElicitationCreate = McpMethodNameKey.String("elicitation/create")
10792 )
10793
10794 // Namespace: messaging
10795 const (
10796 // MessagingBatchMessageCountKey is the attribute Key conforming to the
10797 // "messaging.batch.message_count" semantic conventions. It represents the
10798 // number of messages sent, received, or processed in the scope of the batching
10799 // operation.
10800 //
10801 // Type: int
10802 // RequirementLevel: Recommended
10803 // Stability: Development
10804 //
10805 // Examples: 0, 1, 2
10806 // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
10807 // spans that operate with a single message. When a messaging client library
10808 // supports both batch and single-message API for the same operation,
10809 // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
10810 // and SHOULD NOT use it for single-message APIs.
10811 MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
10812
10813 // MessagingClientIDKey is the attribute Key conforming to the
10814 // "messaging.client.id" semantic conventions. It represents a unique identifier
10815 // for the client that consumes or produces a message.
10816 //
10817 // Type: string
10818 // RequirementLevel: Recommended
10819 // Stability: Development
10820 //
10821 // Examples: "client-5", "myhost@8742@s8083jm"
10822 MessagingClientIDKey = attribute.Key("messaging.client.id")
10823
10824 // MessagingConsumerGroupNameKey is the attribute Key conforming to the
10825 // "messaging.consumer.group.name" semantic conventions. It represents the name
10826 // of the consumer group with which a consumer is associated.
10827 //
10828 // Type: string
10829 // RequirementLevel: Recommended
10830 // Stability: Development
10831 //
10832 // Examples: "my-group", "indexer"
10833 // Note: Semantic conventions for individual messaging systems SHOULD document
10834 // whether `messaging.consumer.group.name` is applicable and what it means in
10835 // the context of that system.
10836 MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
10837
10838 // MessagingDestinationAnonymousKey is the attribute Key conforming to the
10839 // "messaging.destination.anonymous" semantic conventions. It represents a
10840 // boolean that is true if the message destination is anonymous (could be
10841 // unnamed or have auto-generated name).
10842 //
10843 // Type: boolean
10844 // RequirementLevel: Recommended
10845 // Stability: Development
10846 //
10847 // Examples:
10848 MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
10849
10850 // MessagingDestinationNameKey is the attribute Key conforming to the
10851 // "messaging.destination.name" semantic conventions. It represents the message
10852 // destination name.
10853 //
10854 // Type: string
10855 // RequirementLevel: Recommended
10856 // Stability: Development
10857 //
10858 // Examples: "MyQueue", "MyTopic"
10859 // Note: Destination name SHOULD uniquely identify a specific queue, topic or
10860 // other entity within the broker. If
10861 // the broker doesn't have such notion, the destination name SHOULD uniquely
10862 // identify the broker.
10863 MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
10864
10865 // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
10866 // "messaging.destination.partition.id" semantic conventions. It represents the
10867 // identifier of the partition messages are sent to or received from, unique
10868 // within the `messaging.destination.name`.
10869 //
10870 // Type: string
10871 // RequirementLevel: Recommended
10872 // Stability: Development
10873 //
10874 // Examples: 1
10875 MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
10876
10877 // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
10878 // the "messaging.destination.subscription.name" semantic conventions. It
10879 // represents the name of the destination subscription from which a message is
10880 // consumed.
10881 //
10882 // Type: string
10883 // RequirementLevel: Recommended
10884 // Stability: Development
10885 //
10886 // Examples: "subscription-a"
10887 // Note: Semantic conventions for individual messaging systems SHOULD document
10888 // whether `messaging.destination.subscription.name` is applicable and what it
10889 // means in the context of that system.
10890 MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
10891
10892 // MessagingDestinationTemplateKey is the attribute Key conforming to the
10893 // "messaging.destination.template" semantic conventions. It represents the low
10894 // cardinality representation of the messaging destination name.
10895 //
10896 // Type: string
10897 // RequirementLevel: Recommended
10898 // Stability: Development
10899 //
10900 // Examples: "/customers/{customerId}"
10901 // Note: Destination names could be constructed from templates. An example would
10902 // be a destination name involving a user name or product id. Although the
10903 // destination name in this case is of high cardinality, the underlying template
10904 // is of low cardinality and can be effectively used for grouping and
10905 // aggregation.
10906 MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
10907
10908 // MessagingDestinationTemporaryKey is the attribute Key conforming to the
10909 // "messaging.destination.temporary" semantic conventions. It represents a
10910 // boolean that is true if the message destination is temporary and might not
10911 // exist anymore after messages are processed.
10912 //
10913 // Type: boolean
10914 // RequirementLevel: Recommended
10915 // Stability: Development
10916 //
10917 // Examples:
10918 MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
10919
10920 // MessagingEventHubsMessageEnqueuedTimeKey is the attribute Key conforming to
10921 // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
10922 // represents the UTC epoch seconds at which the message has been accepted and
10923 // stored in the entity.
10924 //
10925 // Type: int
10926 // RequirementLevel: Recommended
10927 // Stability: Development
10928 MessagingEventHubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
10929
10930 // MessagingGCPPubSubMessageAckDeadlineKey is the attribute Key conforming to
10931 // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
10932 // represents the ack deadline in seconds set for the modify ack deadline
10933 // request.
10934 //
10935 // Type: int
10936 // RequirementLevel: Recommended
10937 // Stability: Development
10938 MessagingGCPPubSubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
10939
10940 // MessagingGCPPubSubMessageAckIDKey is the attribute Key conforming to the
10941 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
10942 // ack id for a given message.
10943 //
10944 // Type: string
10945 // RequirementLevel: Recommended
10946 // Stability: Development
10947 //
10948 // Examples: ack_id
10949 MessagingGCPPubSubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
10950
10951 // MessagingGCPPubSubMessageDeliveryAttemptKey is the attribute Key conforming
10952 // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
10953 // It represents the delivery attempt for a given message.
10954 //
10955 // Type: int
10956 // RequirementLevel: Recommended
10957 // Stability: Development
10958 MessagingGCPPubSubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
10959
10960 // MessagingGCPPubSubMessageOrderingKeyKey is the attribute Key conforming to
10961 // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
10962 // represents the ordering key for a given message. If the attribute is not
10963 // present, the message does not have an ordering key.
10964 //
10965 // Type: string
10966 // RequirementLevel: Recommended
10967 // Stability: Development
10968 //
10969 // Examples: ordering_key
10970 MessagingGCPPubSubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
10971
10972 // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
10973 // "messaging.kafka.message.key" semantic conventions. It represents the message
10974 // keys in Kafka are used for grouping alike messages to ensure they're
10975 // processed on the same partition. They differ from `messaging.message.id` in
10976 // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
10977 //
10978 // Type: string
10979 // RequirementLevel: Recommended
10980 // Stability: Development
10981 //
10982 // Examples: myKey
10983 // Note: If the key type is not string, it's string representation has to be
10984 // supplied for the attribute. If the key has no unambiguous, canonical string
10985 // form, don't include its value.
10986 MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
10987
10988 // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
10989 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
10990 // boolean that is true if the message is a tombstone.
10991 //
10992 // Type: boolean
10993 // RequirementLevel: Recommended
10994 // Stability: Development
10995 //
10996 // Examples:
10997 MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
10998
10999 // MessagingKafkaOffsetKey is the attribute Key conforming to the
11000 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
11001 // record in the corresponding Kafka partition.
11002 //
11003 // Type: int
11004 // RequirementLevel: Recommended
11005 // Stability: Development
11006 MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
11007
11008 // MessagingMessageBodySizeKey is the attribute Key conforming to the
11009 // "messaging.message.body.size" semantic conventions. It represents the size of
11010 // the message body in bytes.
11011 //
11012 // Type: int
11013 // RequirementLevel: Recommended
11014 // Stability: Development
11015 //
11016 // Note: This can refer to both the compressed or uncompressed body size. If
11017 // both sizes are known, the uncompressed
11018 // body size should be used.
11019 MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
11020
11021 // MessagingMessageConversationIDKey is the attribute Key conforming to the
11022 // "messaging.message.conversation_id" semantic conventions. It represents the
11023 // conversation ID identifying the conversation to which the message belongs,
11024 // represented as a string. Sometimes called "Correlation ID".
11025 //
11026 // Type: string
11027 // RequirementLevel: Recommended
11028 // Stability: Development
11029 //
11030 // Examples: MyConversationId
11031 MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
11032
11033 // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
11034 // "messaging.message.envelope.size" semantic conventions. It represents the
11035 // size of the message body and metadata in bytes.
11036 //
11037 // Type: int
11038 // RequirementLevel: Recommended
11039 // Stability: Development
11040 //
11041 // Note: This can refer to both the compressed or uncompressed size. If both
11042 // sizes are known, the uncompressed
11043 // size should be used.
11044 MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
11045
11046 // MessagingMessageIDKey is the attribute Key conforming to the
11047 // "messaging.message.id" semantic conventions. It represents a value used by
11048 // the messaging system as an identifier for the message, represented as a
11049 // string.
11050 //
11051 // Type: string
11052 // RequirementLevel: Recommended
11053 // Stability: Development
11054 //
11055 // Examples: 452a7c7c7c7048c2f887f61572b18fc2
11056 MessagingMessageIDKey = attribute.Key("messaging.message.id")
11057
11058 // MessagingOperationNameKey is the attribute Key conforming to the
11059 // "messaging.operation.name" semantic conventions. It represents the
11060 // system-specific name of the messaging operation.
11061 //
11062 // Type: string
11063 // RequirementLevel: Recommended
11064 // Stability: Development
11065 //
11066 // Examples: "ack", "nack", "send"
11067 MessagingOperationNameKey = attribute.Key("messaging.operation.name")
11068
11069 // MessagingOperationTypeKey is the attribute Key conforming to the
11070 // "messaging.operation.type" semantic conventions. It represents a string
11071 // identifying the type of the messaging operation.
11072 //
11073 // Type: Enum
11074 // RequirementLevel: Recommended
11075 // Stability: Development
11076 //
11077 // Examples:
11078 // Note: If a custom value is used, it MUST be of low cardinality.
11079 MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
11080
11081 // MessagingRabbitMQDestinationRoutingKeyKey is the attribute Key conforming to
11082 // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
11083 // represents the rabbitMQ message routing key.
11084 //
11085 // Type: string
11086 // RequirementLevel: Recommended
11087 // Stability: Development
11088 //
11089 // Examples: myKey
11090 MessagingRabbitMQDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
11091
11092 // MessagingRabbitMQMessageDeliveryTagKey is the attribute Key conforming to the
11093 // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
11094 // the rabbitMQ message delivery tag.
11095 //
11096 // Type: int
11097 // RequirementLevel: Recommended
11098 // Stability: Development
11099 MessagingRabbitMQMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
11100
11101 // MessagingRocketMQConsumptionModelKey is the attribute Key conforming to the
11102 // "messaging.rocketmq.consumption_model" semantic conventions. It represents
11103 // the model of message consumption. This only applies to consumer spans.
11104 //
11105 // Type: Enum
11106 // RequirementLevel: Recommended
11107 // Stability: Development
11108 //
11109 // Examples:
11110 MessagingRocketMQConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
11111
11112 // MessagingRocketMQMessageDelayTimeLevelKey is the attribute Key conforming to
11113 // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
11114 // represents the delay time level for delay message, which determines the
11115 // message delay time.
11116 //
11117 // Type: int
11118 // RequirementLevel: Recommended
11119 // Stability: Development
11120 MessagingRocketMQMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
11121
11122 // MessagingRocketMQMessageDeliveryTimestampKey is the attribute Key conforming
11123 // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
11124 // It represents the timestamp in milliseconds that the delay message is
11125 // expected to be delivered to consumer.
11126 //
11127 // Type: int
11128 // RequirementLevel: Recommended
11129 // Stability: Development
11130 MessagingRocketMQMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
11131
11132 // MessagingRocketMQMessageGroupKey is the attribute Key conforming to the
11133 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
11134 // is essential for FIFO message. Messages that belong to the same message group
11135 // are always processed one by one within the same consumer group.
11136 //
11137 // Type: string
11138 // RequirementLevel: Recommended
11139 // Stability: Development
11140 //
11141 // Examples: myMessageGroup
11142 MessagingRocketMQMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
11143
11144 // MessagingRocketMQMessageKeysKey is the attribute Key conforming to the
11145 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
11146 // key(s) of message, another way to mark message besides message id.
11147 //
11148 // Type: string[]
11149 // RequirementLevel: Recommended
11150 // Stability: Development
11151 //
11152 // Examples: "keyA", "keyB"
11153 MessagingRocketMQMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
11154
11155 // MessagingRocketMQMessageTagKey is the attribute Key conforming to the
11156 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
11157 // secondary classifier of message besides topic.
11158 //
11159 // Type: string
11160 // RequirementLevel: Recommended
11161 // Stability: Development
11162 //
11163 // Examples: tagA
11164 MessagingRocketMQMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
11165
11166 // MessagingRocketMQMessageTypeKey is the attribute Key conforming to the
11167 // "messaging.rocketmq.message.type" semantic conventions. It represents the
11168 // type of message.
11169 //
11170 // Type: Enum
11171 // RequirementLevel: Recommended
11172 // Stability: Development
11173 //
11174 // Examples:
11175 MessagingRocketMQMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
11176
11177 // MessagingRocketMQNamespaceKey is the attribute Key conforming to the
11178 // "messaging.rocketmq.namespace" semantic conventions. It represents the
11179 // namespace of RocketMQ resources, resources in different namespaces are
11180 // individual.
11181 //
11182 // Type: string
11183 // RequirementLevel: Recommended
11184 // Stability: Development
11185 //
11186 // Examples: myNamespace
11187 MessagingRocketMQNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
11188
11189 // MessagingServiceBusDispositionStatusKey is the attribute Key conforming to
11190 // the "messaging.servicebus.disposition_status" semantic conventions. It
11191 // represents the describes the [settlement type].
11192 //
11193 // Type: Enum
11194 // RequirementLevel: Recommended
11195 // Stability: Development
11196 //
11197 // Examples:
11198 //
11199 // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
11200 MessagingServiceBusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
11201
11202 // MessagingServiceBusMessageDeliveryCountKey is the attribute Key conforming to
11203 // the "messaging.servicebus.message.delivery_count" semantic conventions. It
11204 // represents the number of deliveries that have been attempted for this
11205 // message.
11206 //
11207 // Type: int
11208 // RequirementLevel: Recommended
11209 // Stability: Development
11210 MessagingServiceBusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
11211
11212 // MessagingServiceBusMessageEnqueuedTimeKey is the attribute Key conforming to
11213 // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
11214 // represents the UTC epoch seconds at which the message has been accepted and
11215 // stored in the entity.
11216 //
11217 // Type: int
11218 // RequirementLevel: Recommended
11219 // Stability: Development
11220 MessagingServiceBusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
11221
11222 // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
11223 // semantic conventions. It represents the messaging system as identified by the
11224 // client instrumentation.
11225 //
11226 // Type: Enum
11227 // RequirementLevel: Recommended
11228 // Stability: Development
11229 //
11230 // Examples:
11231 // Note: The actual messaging system may differ from the one known by the
11232 // client. For example, when using Kafka client libraries to communicate with
11233 // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
11234 // instrumentation's best knowledge.
11235 MessagingSystemKey = attribute.Key("messaging.system")
11236 )
11237
11238 // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
11239 // "messaging.batch.message_count" semantic conventions. It represents the number
11240 // of messages sent, received, or processed in the scope of the batching
11241 // operation.
11242 func MessagingBatchMessageCount(val int) attribute.KeyValue {
11243 return MessagingBatchMessageCountKey.Int(val)
11244 }
11245
11246 // MessagingClientID returns an attribute KeyValue conforming to the
11247 // "messaging.client.id" semantic conventions. It represents a unique identifier
11248 // for the client that consumes or produces a message.
11249 func MessagingClientID(val string) attribute.KeyValue {
11250 return MessagingClientIDKey.String(val)
11251 }
11252
11253 // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
11254 // "messaging.consumer.group.name" semantic conventions. It represents the name
11255 // of the consumer group with which a consumer is associated.
11256 func MessagingConsumerGroupName(val string) attribute.KeyValue {
11257 return MessagingConsumerGroupNameKey.String(val)
11258 }
11259
11260 // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
11261 // "messaging.destination.anonymous" semantic conventions. It represents a
11262 // boolean that is true if the message destination is anonymous (could be unnamed
11263 // or have auto-generated name).
11264 func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
11265 return MessagingDestinationAnonymousKey.Bool(val)
11266 }
11267
11268 // MessagingDestinationName returns an attribute KeyValue conforming to the
11269 // "messaging.destination.name" semantic conventions. It represents the message
11270 // destination name.
11271 func MessagingDestinationName(val string) attribute.KeyValue {
11272 return MessagingDestinationNameKey.String(val)
11273 }
11274
11275 // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
11276 // the "messaging.destination.partition.id" semantic conventions. It represents
11277 // the identifier of the partition messages are sent to or received from, unique
11278 // within the `messaging.destination.name`.
11279 func MessagingDestinationPartitionID(val string) attribute.KeyValue {
11280 return MessagingDestinationPartitionIDKey.String(val)
11281 }
11282
11283 // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
11284 // to the "messaging.destination.subscription.name" semantic conventions. It
11285 // represents the name of the destination subscription from which a message is
11286 // consumed.
11287 func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
11288 return MessagingDestinationSubscriptionNameKey.String(val)
11289 }
11290
11291 // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
11292 // "messaging.destination.template" semantic conventions. It represents the low
11293 // cardinality representation of the messaging destination name.
11294 func MessagingDestinationTemplate(val string) attribute.KeyValue {
11295 return MessagingDestinationTemplateKey.String(val)
11296 }
11297
11298 // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
11299 // "messaging.destination.temporary" semantic conventions. It represents a
11300 // boolean that is true if the message destination is temporary and might not
11301 // exist anymore after messages are processed.
11302 func MessagingDestinationTemporary(val bool) attribute.KeyValue {
11303 return MessagingDestinationTemporaryKey.Bool(val)
11304 }
11305
11306 // MessagingEventHubsMessageEnqueuedTime returns an attribute KeyValue conforming
11307 // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
11308 // represents the UTC epoch seconds at which the message has been accepted and
11309 // stored in the entity.
11310 func MessagingEventHubsMessageEnqueuedTime(val int) attribute.KeyValue {
11311 return MessagingEventHubsMessageEnqueuedTimeKey.Int(val)
11312 }
11313
11314 // MessagingGCPPubSubMessageAckDeadline returns an attribute KeyValue conforming
11315 // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
11316 // represents the ack deadline in seconds set for the modify ack deadline
11317 // request.
11318 func MessagingGCPPubSubMessageAckDeadline(val int) attribute.KeyValue {
11319 return MessagingGCPPubSubMessageAckDeadlineKey.Int(val)
11320 }
11321
11322 // MessagingGCPPubSubMessageAckID returns an attribute KeyValue conforming to the
11323 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
11324 // ack id for a given message.
11325 func MessagingGCPPubSubMessageAckID(val string) attribute.KeyValue {
11326 return MessagingGCPPubSubMessageAckIDKey.String(val)
11327 }
11328
11329 // MessagingGCPPubSubMessageDeliveryAttempt returns an attribute KeyValue
11330 // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
11331 // conventions. It represents the delivery attempt for a given message.
11332 func MessagingGCPPubSubMessageDeliveryAttempt(val int) attribute.KeyValue {
11333 return MessagingGCPPubSubMessageDeliveryAttemptKey.Int(val)
11334 }
11335
11336 // MessagingGCPPubSubMessageOrderingKey returns an attribute KeyValue conforming
11337 // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
11338 // represents the ordering key for a given message. If the attribute is not
11339 // present, the message does not have an ordering key.
11340 func MessagingGCPPubSubMessageOrderingKey(val string) attribute.KeyValue {
11341 return MessagingGCPPubSubMessageOrderingKeyKey.String(val)
11342 }
11343
11344 // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
11345 // "messaging.kafka.message.key" semantic conventions. It represents the message
11346 // keys in Kafka are used for grouping alike messages to ensure they're processed
11347 // on the same partition. They differ from `messaging.message.id` in that they're
11348 // not unique. If the key is `null`, the attribute MUST NOT be set.
11349 func MessagingKafkaMessageKey(val string) attribute.KeyValue {
11350 return MessagingKafkaMessageKeyKey.String(val)
11351 }
11352
11353 // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
11354 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
11355 // boolean that is true if the message is a tombstone.
11356 func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
11357 return MessagingKafkaMessageTombstoneKey.Bool(val)
11358 }
11359
11360 // MessagingKafkaOffset returns an attribute KeyValue conforming to the
11361 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
11362 // record in the corresponding Kafka partition.
11363 func MessagingKafkaOffset(val int) attribute.KeyValue {
11364 return MessagingKafkaOffsetKey.Int(val)
11365 }
11366
11367 // MessagingMessageBodySize returns an attribute KeyValue conforming to the
11368 // "messaging.message.body.size" semantic conventions. It represents the size of
11369 // the message body in bytes.
11370 func MessagingMessageBodySize(val int) attribute.KeyValue {
11371 return MessagingMessageBodySizeKey.Int(val)
11372 }
11373
11374 // MessagingMessageConversationID returns an attribute KeyValue conforming to the
11375 // "messaging.message.conversation_id" semantic conventions. It represents the
11376 // conversation ID identifying the conversation to which the message belongs,
11377 // represented as a string. Sometimes called "Correlation ID".
11378 func MessagingMessageConversationID(val string) attribute.KeyValue {
11379 return MessagingMessageConversationIDKey.String(val)
11380 }
11381
11382 // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
11383 // "messaging.message.envelope.size" semantic conventions. It represents the size
11384 // of the message body and metadata in bytes.
11385 func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
11386 return MessagingMessageEnvelopeSizeKey.Int(val)
11387 }
11388
11389 // MessagingMessageID returns an attribute KeyValue conforming to the
11390 // "messaging.message.id" semantic conventions. It represents a value used by the
11391 // messaging system as an identifier for the message, represented as a string.
11392 func MessagingMessageID(val string) attribute.KeyValue {
11393 return MessagingMessageIDKey.String(val)
11394 }
11395
11396 // MessagingOperationName returns an attribute KeyValue conforming to the
11397 // "messaging.operation.name" semantic conventions. It represents the
11398 // system-specific name of the messaging operation.
11399 func MessagingOperationName(val string) attribute.KeyValue {
11400 return MessagingOperationNameKey.String(val)
11401 }
11402
11403 // MessagingRabbitMQDestinationRoutingKey returns an attribute KeyValue
11404 // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
11405 // conventions. It represents the rabbitMQ message routing key.
11406 func MessagingRabbitMQDestinationRoutingKey(val string) attribute.KeyValue {
11407 return MessagingRabbitMQDestinationRoutingKeyKey.String(val)
11408 }
11409
11410 // MessagingRabbitMQMessageDeliveryTag returns an attribute KeyValue conforming
11411 // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
11412 // represents the rabbitMQ message delivery tag.
11413 func MessagingRabbitMQMessageDeliveryTag(val int) attribute.KeyValue {
11414 return MessagingRabbitMQMessageDeliveryTagKey.Int(val)
11415 }
11416
11417 // MessagingRocketMQMessageDelayTimeLevel returns an attribute KeyValue
11418 // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
11419 // conventions. It represents the delay time level for delay message, which
11420 // determines the message delay time.
11421 func MessagingRocketMQMessageDelayTimeLevel(val int) attribute.KeyValue {
11422 return MessagingRocketMQMessageDelayTimeLevelKey.Int(val)
11423 }
11424
11425 // MessagingRocketMQMessageDeliveryTimestamp returns an attribute KeyValue
11426 // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
11427 // conventions. It represents the timestamp in milliseconds that the delay
11428 // message is expected to be delivered to consumer.
11429 func MessagingRocketMQMessageDeliveryTimestamp(val int) attribute.KeyValue {
11430 return MessagingRocketMQMessageDeliveryTimestampKey.Int(val)
11431 }
11432
11433 // MessagingRocketMQMessageGroup returns an attribute KeyValue conforming to the
11434 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
11435 // is essential for FIFO message. Messages that belong to the same message group
11436 // are always processed one by one within the same consumer group.
11437 func MessagingRocketMQMessageGroup(val string) attribute.KeyValue {
11438 return MessagingRocketMQMessageGroupKey.String(val)
11439 }
11440
11441 // MessagingRocketMQMessageKeys returns an attribute KeyValue conforming to the
11442 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
11443 // key(s) of message, another way to mark message besides message id.
11444 func MessagingRocketMQMessageKeys(val ...string) attribute.KeyValue {
11445 return MessagingRocketMQMessageKeysKey.StringSlice(val)
11446 }
11447
11448 // MessagingRocketMQMessageTag returns an attribute KeyValue conforming to the
11449 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
11450 // secondary classifier of message besides topic.
11451 func MessagingRocketMQMessageTag(val string) attribute.KeyValue {
11452 return MessagingRocketMQMessageTagKey.String(val)
11453 }
11454
11455 // MessagingRocketMQNamespace returns an attribute KeyValue conforming to the
11456 // "messaging.rocketmq.namespace" semantic conventions. It represents the
11457 // namespace of RocketMQ resources, resources in different namespaces are
11458 // individual.
11459 func MessagingRocketMQNamespace(val string) attribute.KeyValue {
11460 return MessagingRocketMQNamespaceKey.String(val)
11461 }
11462
11463 // MessagingServiceBusMessageDeliveryCount returns an attribute KeyValue
11464 // conforming to the "messaging.servicebus.message.delivery_count" semantic
11465 // conventions. It represents the number of deliveries that have been attempted
11466 // for this message.
11467 func MessagingServiceBusMessageDeliveryCount(val int) attribute.KeyValue {
11468 return MessagingServiceBusMessageDeliveryCountKey.Int(val)
11469 }
11470
11471 // MessagingServiceBusMessageEnqueuedTime returns an attribute KeyValue
11472 // conforming to the "messaging.servicebus.message.enqueued_time" semantic
11473 // conventions. It represents the UTC epoch seconds at which the message has been
11474 // accepted and stored in the entity.
11475 func MessagingServiceBusMessageEnqueuedTime(val int) attribute.KeyValue {
11476 return MessagingServiceBusMessageEnqueuedTimeKey.Int(val)
11477 }
11478
11479 // Enum values for messaging.operation.type
11480 var (
11481 // A message is created. "Create" spans always refer to a single message and are
11482 // used to provide a unique creation context for messages in batch sending
11483 // scenarios.
11484 //
11485 // Stability: development
11486 MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
11487 // One or more messages are provided for sending to an intermediary. If a single
11488 // message is sent, the context of the "Send" span can be used as the creation
11489 // context and no "Create" span needs to be created.
11490 //
11491 // Stability: development
11492 MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
11493 // One or more messages are requested by a consumer. This operation refers to
11494 // pull-based scenarios, where consumers explicitly call methods of messaging
11495 // SDKs to receive messages.
11496 //
11497 // Stability: development
11498 MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
11499 // One or more messages are processed by a consumer.
11500 //
11501 // Stability: development
11502 MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
11503 // One or more messages are settled.
11504 //
11505 // Stability: development
11506 MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
11507 )
11508
11509 // Enum values for messaging.rocketmq.consumption_model
11510 var (
11511 // Clustering consumption model
11512 // Stability: development
11513 MessagingRocketMQConsumptionModelClustering = MessagingRocketMQConsumptionModelKey.String("clustering")
11514 // Broadcasting consumption model
11515 // Stability: development
11516 MessagingRocketMQConsumptionModelBroadcasting = MessagingRocketMQConsumptionModelKey.String("broadcasting")
11517 )
11518
11519 // Enum values for messaging.rocketmq.message.type
11520 var (
11521 // Normal message
11522 // Stability: development
11523 MessagingRocketMQMessageTypeNormal = MessagingRocketMQMessageTypeKey.String("normal")
11524 // FIFO message
11525 // Stability: development
11526 MessagingRocketMQMessageTypeFifo = MessagingRocketMQMessageTypeKey.String("fifo")
11527 // Delay message
11528 // Stability: development
11529 MessagingRocketMQMessageTypeDelay = MessagingRocketMQMessageTypeKey.String("delay")
11530 // Transaction message
11531 // Stability: development
11532 MessagingRocketMQMessageTypeTransaction = MessagingRocketMQMessageTypeKey.String("transaction")
11533 )
11534
11535 // Enum values for messaging.servicebus.disposition_status
11536 var (
11537 // Message is completed
11538 // Stability: development
11539 MessagingServiceBusDispositionStatusComplete = MessagingServiceBusDispositionStatusKey.String("complete")
11540 // Message is abandoned
11541 // Stability: development
11542 MessagingServiceBusDispositionStatusAbandon = MessagingServiceBusDispositionStatusKey.String("abandon")
11543 // Message is sent to dead letter queue
11544 // Stability: development
11545 MessagingServiceBusDispositionStatusDeadLetter = MessagingServiceBusDispositionStatusKey.String("dead_letter")
11546 // Message is deferred
11547 // Stability: development
11548 MessagingServiceBusDispositionStatusDefer = MessagingServiceBusDispositionStatusKey.String("defer")
11549 )
11550
11551 // Enum values for messaging.system
11552 var (
11553 // Apache ActiveMQ
11554 // Stability: development
11555 MessagingSystemActiveMQ = MessagingSystemKey.String("activemq")
11556 // Amazon Simple Notification Service (SNS)
11557 // Stability: development
11558 MessagingSystemAWSSNS = MessagingSystemKey.String("aws.sns")
11559 // Amazon Simple Queue Service (SQS)
11560 // Stability: development
11561 MessagingSystemAWSSQS = MessagingSystemKey.String("aws_sqs")
11562 // Azure Event Grid
11563 // Stability: development
11564 MessagingSystemEventGrid = MessagingSystemKey.String("eventgrid")
11565 // Azure Event Hubs
11566 // Stability: development
11567 MessagingSystemEventHubs = MessagingSystemKey.String("eventhubs")
11568 // Azure Service Bus
11569 // Stability: development
11570 MessagingSystemServiceBus = MessagingSystemKey.String("servicebus")
11571 // Google Cloud Pub/Sub
11572 // Stability: development
11573 MessagingSystemGCPPubSub = MessagingSystemKey.String("gcp_pubsub")
11574 // Java Message Service
11575 // Stability: development
11576 MessagingSystemJMS = MessagingSystemKey.String("jms")
11577 // Apache Kafka
11578 // Stability: development
11579 MessagingSystemKafka = MessagingSystemKey.String("kafka")
11580 // RabbitMQ
11581 // Stability: development
11582 MessagingSystemRabbitMQ = MessagingSystemKey.String("rabbitmq")
11583 // Apache RocketMQ
11584 // Stability: development
11585 MessagingSystemRocketMQ = MessagingSystemKey.String("rocketmq")
11586 // Apache Pulsar
11587 // Stability: development
11588 MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
11589 )
11590
11591 // Namespace: network
11592 const (
11593 // NetworkCarrierICCKey is the attribute Key conforming to the
11594 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
11595 // alpha-2 2-character country code associated with the mobile carrier network.
11596 //
11597 // Type: string
11598 // RequirementLevel: Recommended
11599 // Stability: Development
11600 //
11601 // Examples: DE
11602 NetworkCarrierICCKey = attribute.Key("network.carrier.icc")
11603
11604 // NetworkCarrierMCCKey is the attribute Key conforming to the
11605 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
11606 // country code.
11607 //
11608 // Type: string
11609 // RequirementLevel: Recommended
11610 // Stability: Development
11611 //
11612 // Examples: 310
11613 NetworkCarrierMCCKey = attribute.Key("network.carrier.mcc")
11614
11615 // NetworkCarrierMNCKey is the attribute Key conforming to the
11616 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
11617 // network code.
11618 //
11619 // Type: string
11620 // RequirementLevel: Recommended
11621 // Stability: Development
11622 //
11623 // Examples: 001
11624 NetworkCarrierMNCKey = attribute.Key("network.carrier.mnc")
11625
11626 // NetworkCarrierNameKey is the attribute Key conforming to the
11627 // "network.carrier.name" semantic conventions. It represents the name of the
11628 // mobile carrier.
11629 //
11630 // Type: string
11631 // RequirementLevel: Recommended
11632 // Stability: Development
11633 //
11634 // Examples: sprint
11635 NetworkCarrierNameKey = attribute.Key("network.carrier.name")
11636
11637 // NetworkConnectionStateKey is the attribute Key conforming to the
11638 // "network.connection.state" semantic conventions. It represents the state of
11639 // network connection.
11640 //
11641 // Type: Enum
11642 // RequirementLevel: Recommended
11643 // Stability: Development
11644 //
11645 // Examples: "close_wait"
11646 // Note: Connection states are defined as part of the [rfc9293]
11647 //
11648 // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2
11649 NetworkConnectionStateKey = attribute.Key("network.connection.state")
11650
11651 // NetworkConnectionSubtypeKey is the attribute Key conforming to the
11652 // "network.connection.subtype" semantic conventions. It represents the this
11653 // describes more details regarding the connection.type. It may be the type of
11654 // cell technology connection, but it could be used for describing details about
11655 // a wifi connection.
11656 //
11657 // Type: Enum
11658 // RequirementLevel: Recommended
11659 // Stability: Development
11660 //
11661 // Examples: LTE
11662 NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
11663
11664 // NetworkConnectionTypeKey is the attribute Key conforming to the
11665 // "network.connection.type" semantic conventions. It represents the internet
11666 // connection type.
11667 //
11668 // Type: Enum
11669 // RequirementLevel: Recommended
11670 // Stability: Development
11671 //
11672 // Examples: wifi
11673 NetworkConnectionTypeKey = attribute.Key("network.connection.type")
11674
11675 // NetworkInterfaceNameKey is the attribute Key conforming to the
11676 // "network.interface.name" semantic conventions. It represents the network
11677 // interface name.
11678 //
11679 // Type: string
11680 // RequirementLevel: Recommended
11681 // Stability: Development
11682 //
11683 // Examples: "lo", "eth0"
11684 NetworkInterfaceNameKey = attribute.Key("network.interface.name")
11685
11686 // NetworkIODirectionKey is the attribute Key conforming to the
11687 // "network.io.direction" semantic conventions. It represents the network IO
11688 // operation direction.
11689 //
11690 // Type: Enum
11691 // RequirementLevel: Recommended
11692 // Stability: Development
11693 //
11694 // Examples: "transmit"
11695 NetworkIODirectionKey = attribute.Key("network.io.direction")
11696
11697 // NetworkLocalAddressKey is the attribute Key conforming to the
11698 // "network.local.address" semantic conventions. It represents the local address
11699 // of the network connection - IP address or Unix domain socket name.
11700 //
11701 // Type: string
11702 // RequirementLevel: Recommended
11703 // Stability: Stable
11704 //
11705 // Examples: "10.1.2.80", "/tmp/my.sock"
11706 NetworkLocalAddressKey = attribute.Key("network.local.address")
11707
11708 // NetworkLocalPortKey is the attribute Key conforming to the
11709 // "network.local.port" semantic conventions. It represents the local port
11710 // number of the network connection.
11711 //
11712 // Type: int
11713 // RequirementLevel: Recommended
11714 // Stability: Stable
11715 //
11716 // Examples: 65123
11717 NetworkLocalPortKey = attribute.Key("network.local.port")
11718
11719 // NetworkPeerAddressKey is the attribute Key conforming to the
11720 // "network.peer.address" semantic conventions. It represents the peer address
11721 // of the network connection - IP address or Unix domain socket name.
11722 //
11723 // Type: string
11724 // RequirementLevel: Recommended
11725 // Stability: Stable
11726 //
11727 // Examples: "10.1.2.80", "/tmp/my.sock"
11728 NetworkPeerAddressKey = attribute.Key("network.peer.address")
11729
11730 // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
11731 // semantic conventions. It represents the peer port number of the network
11732 // connection.
11733 //
11734 // Type: int
11735 // RequirementLevel: Recommended
11736 // Stability: Stable
11737 //
11738 // Examples: 65123
11739 NetworkPeerPortKey = attribute.Key("network.peer.port")
11740
11741 // NetworkProtocolNameKey is the attribute Key conforming to the
11742 // "network.protocol.name" semantic conventions. It represents the
11743 // [OSI application layer] or non-OSI equivalent.
11744 //
11745 // Type: string
11746 // RequirementLevel: Recommended
11747 // Stability: Stable
11748 //
11749 // Examples: "amqp", "http", "mqtt"
11750 // Note: The value SHOULD be normalized to lowercase.
11751 //
11752 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
11753 NetworkProtocolNameKey = attribute.Key("network.protocol.name")
11754
11755 // NetworkProtocolVersionKey is the attribute Key conforming to the
11756 // "network.protocol.version" semantic conventions. It represents the actual
11757 // version of the protocol used for network communication.
11758 //
11759 // Type: string
11760 // RequirementLevel: Recommended
11761 // Stability: Stable
11762 //
11763 // Examples: "1.1", "2"
11764 // Note: If protocol version is subject to negotiation (for example using [ALPN]
11765 // ), this attribute SHOULD be set to the negotiated version. If the actual
11766 // protocol version is not known, this attribute SHOULD NOT be set.
11767 //
11768 // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
11769 NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
11770
11771 // NetworkTransportKey is the attribute Key conforming to the
11772 // "network.transport" semantic conventions. It represents the
11773 // [OSI transport layer] or [inter-process communication method].
11774 //
11775 // Type: Enum
11776 // RequirementLevel: Recommended
11777 // Stability: Stable
11778 //
11779 // Examples: "tcp", "udp"
11780 // Note: The value SHOULD be normalized to lowercase.
11781 //
11782 // Consider always setting the transport when setting a port number, since
11783 // a port number is ambiguous without knowing the transport. For example
11784 // different processes could be listening on TCP port 12345 and UDP port 12345.
11785 //
11786 // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer
11787 // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
11788 NetworkTransportKey = attribute.Key("network.transport")
11789
11790 // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
11791 // conventions. It represents the [OSI network layer] or non-OSI equivalent.
11792 //
11793 // Type: Enum
11794 // RequirementLevel: Recommended
11795 // Stability: Stable
11796 //
11797 // Examples: "ipv4", "ipv6"
11798 // Note: The value SHOULD be normalized to lowercase.
11799 //
11800 // [OSI network layer]: https://wikipedia.org/wiki/Network_layer
11801 NetworkTypeKey = attribute.Key("network.type")
11802 )
11803
11804 // NetworkCarrierICC returns an attribute KeyValue conforming to the
11805 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
11806 // alpha-2 2-character country code associated with the mobile carrier network.
11807 func NetworkCarrierICC(val string) attribute.KeyValue {
11808 return NetworkCarrierICCKey.String(val)
11809 }
11810
11811 // NetworkCarrierMCC returns an attribute KeyValue conforming to the
11812 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
11813 // country code.
11814 func NetworkCarrierMCC(val string) attribute.KeyValue {
11815 return NetworkCarrierMCCKey.String(val)
11816 }
11817
11818 // NetworkCarrierMNC returns an attribute KeyValue conforming to the
11819 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
11820 // network code.
11821 func NetworkCarrierMNC(val string) attribute.KeyValue {
11822 return NetworkCarrierMNCKey.String(val)
11823 }
11824
11825 // NetworkCarrierName returns an attribute KeyValue conforming to the
11826 // "network.carrier.name" semantic conventions. It represents the name of the
11827 // mobile carrier.
11828 func NetworkCarrierName(val string) attribute.KeyValue {
11829 return NetworkCarrierNameKey.String(val)
11830 }
11831
11832 // NetworkInterfaceName returns an attribute KeyValue conforming to the
11833 // "network.interface.name" semantic conventions. It represents the network
11834 // interface name.
11835 func NetworkInterfaceName(val string) attribute.KeyValue {
11836 return NetworkInterfaceNameKey.String(val)
11837 }
11838
11839 // NetworkLocalAddress returns an attribute KeyValue conforming to the
11840 // "network.local.address" semantic conventions. It represents the local address
11841 // of the network connection - IP address or Unix domain socket name.
11842 func NetworkLocalAddress(val string) attribute.KeyValue {
11843 return NetworkLocalAddressKey.String(val)
11844 }
11845
11846 // NetworkLocalPort returns an attribute KeyValue conforming to the
11847 // "network.local.port" semantic conventions. It represents the local port number
11848 // of the network connection.
11849 func NetworkLocalPort(val int) attribute.KeyValue {
11850 return NetworkLocalPortKey.Int(val)
11851 }
11852
11853 // NetworkPeerAddress returns an attribute KeyValue conforming to the
11854 // "network.peer.address" semantic conventions. It represents the peer address of
11855 // the network connection - IP address or Unix domain socket name.
11856 func NetworkPeerAddress(val string) attribute.KeyValue {
11857 return NetworkPeerAddressKey.String(val)
11858 }
11859
11860 // NetworkPeerPort returns an attribute KeyValue conforming to the
11861 // "network.peer.port" semantic conventions. It represents the peer port number
11862 // of the network connection.
11863 func NetworkPeerPort(val int) attribute.KeyValue {
11864 return NetworkPeerPortKey.Int(val)
11865 }
11866
11867 // NetworkProtocolName returns an attribute KeyValue conforming to the
11868 // "network.protocol.name" semantic conventions. It represents the
11869 // [OSI application layer] or non-OSI equivalent.
11870 //
11871 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
11872 func NetworkProtocolName(val string) attribute.KeyValue {
11873 return NetworkProtocolNameKey.String(val)
11874 }
11875
11876 // NetworkProtocolVersion returns an attribute KeyValue conforming to the
11877 // "network.protocol.version" semantic conventions. It represents the actual
11878 // version of the protocol used for network communication.
11879 func NetworkProtocolVersion(val string) attribute.KeyValue {
11880 return NetworkProtocolVersionKey.String(val)
11881 }
11882
11883 // Enum values for network.connection.state
11884 var (
11885 // closed
11886 // Stability: development
11887 NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed")
11888 // close_wait
11889 // Stability: development
11890 NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait")
11891 // closing
11892 // Stability: development
11893 NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing")
11894 // established
11895 // Stability: development
11896 NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established")
11897 // fin_wait_1
11898 // Stability: development
11899 NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1")
11900 // fin_wait_2
11901 // Stability: development
11902 NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2")
11903 // last_ack
11904 // Stability: development
11905 NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack")
11906 // listen
11907 // Stability: development
11908 NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen")
11909 // syn_received
11910 // Stability: development
11911 NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received")
11912 // syn_sent
11913 // Stability: development
11914 NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent")
11915 // time_wait
11916 // Stability: development
11917 NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait")
11918 )
11919
11920 // Enum values for network.connection.subtype
11921 var (
11922 // GPRS
11923 // Stability: development
11924 NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
11925 // EDGE
11926 // Stability: development
11927 NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
11928 // UMTS
11929 // Stability: development
11930 NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
11931 // CDMA
11932 // Stability: development
11933 NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
11934 // EVDO Rel. 0
11935 // Stability: development
11936 NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
11937 // EVDO Rev. A
11938 // Stability: development
11939 NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
11940 // CDMA2000 1XRTT
11941 // Stability: development
11942 NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
11943 // HSDPA
11944 // Stability: development
11945 NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
11946 // HSUPA
11947 // Stability: development
11948 NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
11949 // HSPA
11950 // Stability: development
11951 NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
11952 // IDEN
11953 // Stability: development
11954 NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
11955 // EVDO Rev. B
11956 // Stability: development
11957 NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
11958 // LTE
11959 // Stability: development
11960 NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
11961 // EHRPD
11962 // Stability: development
11963 NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
11964 // HSPAP
11965 // Stability: development
11966 NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
11967 // GSM
11968 // Stability: development
11969 NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
11970 // TD-SCDMA
11971 // Stability: development
11972 NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
11973 // IWLAN
11974 // Stability: development
11975 NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
11976 // 5G NR (New Radio)
11977 // Stability: development
11978 NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
11979 // 5G NRNSA (New Radio Non-Standalone)
11980 // Stability: development
11981 NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
11982 // LTE CA
11983 // Stability: development
11984 NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
11985 )
11986
11987 // Enum values for network.connection.type
11988 var (
11989 // wifi
11990 // Stability: development
11991 NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
11992 // wired
11993 // Stability: development
11994 NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
11995 // cell
11996 // Stability: development
11997 NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
11998 // unavailable
11999 // Stability: development
12000 NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
12001 // unknown
12002 // Stability: development
12003 NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
12004 )
12005
12006 // Enum values for network.io.direction
12007 var (
12008 // transmit
12009 // Stability: development
12010 NetworkIODirectionTransmit = NetworkIODirectionKey.String("transmit")
12011 // receive
12012 // Stability: development
12013 NetworkIODirectionReceive = NetworkIODirectionKey.String("receive")
12014 )
12015
12016 // Enum values for network.transport
12017 var (
12018 // TCP
12019 // Stability: stable
12020 NetworkTransportTCP = NetworkTransportKey.String("tcp")
12021 // UDP
12022 // Stability: stable
12023 NetworkTransportUDP = NetworkTransportKey.String("udp")
12024 // Named or anonymous pipe.
12025 // Stability: stable
12026 NetworkTransportPipe = NetworkTransportKey.String("pipe")
12027 // Unix domain socket
12028 // Stability: stable
12029 NetworkTransportUnix = NetworkTransportKey.String("unix")
12030 // QUIC
12031 // Stability: stable
12032 NetworkTransportQUIC = NetworkTransportKey.String("quic")
12033 )
12034
12035 // Enum values for network.type
12036 var (
12037 // IPv4
12038 // Stability: stable
12039 NetworkTypeIPv4 = NetworkTypeKey.String("ipv4")
12040 // IPv6
12041 // Stability: stable
12042 NetworkTypeIPv6 = NetworkTypeKey.String("ipv6")
12043 )
12044
12045 // Namespace: nfs
12046 const (
12047 // NfsOperationNameKey is the attribute Key conforming to the
12048 // "nfs.operation.name" semantic conventions. It represents the NFSv4+ operation
12049 // name.
12050 //
12051 // Type: string
12052 // RequirementLevel: Recommended
12053 // Stability: Development
12054 //
12055 // Examples: "OPEN", "READ", "GETATTR"
12056 NfsOperationNameKey = attribute.Key("nfs.operation.name")
12057
12058 // NfsServerRepcacheStatusKey is the attribute Key conforming to the
12059 // "nfs.server.repcache.status" semantic conventions. It represents the linux:
12060 // one of "hit" (NFSD_STATS_RC_HITS), "miss" (NFSD_STATS_RC_MISSES), or
12061 // "nocache" (NFSD_STATS_RC_NOCACHE -- uncacheable).
12062 //
12063 // Type: string
12064 // RequirementLevel: Recommended
12065 // Stability: Development
12066 //
12067 // Examples: hit
12068 NfsServerRepcacheStatusKey = attribute.Key("nfs.server.repcache.status")
12069 )
12070
12071 // NfsOperationName returns an attribute KeyValue conforming to the
12072 // "nfs.operation.name" semantic conventions. It represents the NFSv4+ operation
12073 // name.
12074 func NfsOperationName(val string) attribute.KeyValue {
12075 return NfsOperationNameKey.String(val)
12076 }
12077
12078 // NfsServerRepcacheStatus returns an attribute KeyValue conforming to the
12079 // "nfs.server.repcache.status" semantic conventions. It represents the linux:
12080 // one of "hit" (NFSD_STATS_RC_HITS), "miss" (NFSD_STATS_RC_MISSES), or "nocache"
12081 // (NFSD_STATS_RC_NOCACHE -- uncacheable).
12082 func NfsServerRepcacheStatus(val string) attribute.KeyValue {
12083 return NfsServerRepcacheStatusKey.String(val)
12084 }
12085
12086 // Namespace: oci
12087 const (
12088 // OCIManifestDigestKey is the attribute Key conforming to the
12089 // "oci.manifest.digest" semantic conventions. It represents the digest of the
12090 // OCI image manifest. For container images specifically is the digest by which
12091 // the container image is known.
12092 //
12093 // Type: string
12094 // RequirementLevel: Recommended
12095 // Stability: Development
12096 //
12097 // Examples:
12098 // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
12099 // Note: Follows [OCI Image Manifest Specification], and specifically the
12100 // [Digest property].
12101 // An example can be found in [Example Image Manifest].
12102 //
12103 // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
12104 // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
12105 // [Example Image Manifest]: https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest
12106 OCIManifestDigestKey = attribute.Key("oci.manifest.digest")
12107 )
12108
12109 // OCIManifestDigest returns an attribute KeyValue conforming to the
12110 // "oci.manifest.digest" semantic conventions. It represents the digest of the
12111 // OCI image manifest. For container images specifically is the digest by which
12112 // the container image is known.
12113 func OCIManifestDigest(val string) attribute.KeyValue {
12114 return OCIManifestDigestKey.String(val)
12115 }
12116
12117 // Namespace: onc_rpc
12118 const (
12119 // OncRPCProcedureNameKey is the attribute Key conforming to the
12120 // "onc_rpc.procedure.name" semantic conventions. It represents the ONC/Sun RPC
12121 // procedure name.
12122 //
12123 // Type: string
12124 // RequirementLevel: Recommended
12125 // Stability: Development
12126 //
12127 // Examples: "OPEN", "READ", "GETATTR"
12128 OncRPCProcedureNameKey = attribute.Key("onc_rpc.procedure.name")
12129
12130 // OncRPCProcedureNumberKey is the attribute Key conforming to the
12131 // "onc_rpc.procedure.number" semantic conventions. It represents the ONC/Sun
12132 // RPC procedure number.
12133 //
12134 // Type: int
12135 // RequirementLevel: Recommended
12136 // Stability: Development
12137 //
12138 // Examples:
12139 OncRPCProcedureNumberKey = attribute.Key("onc_rpc.procedure.number")
12140
12141 // OncRPCProgramNameKey is the attribute Key conforming to the
12142 // "onc_rpc.program.name" semantic conventions. It represents the ONC/Sun RPC
12143 // program name.
12144 //
12145 // Type: string
12146 // RequirementLevel: Recommended
12147 // Stability: Development
12148 //
12149 // Examples: "portmapper", "nfs"
12150 OncRPCProgramNameKey = attribute.Key("onc_rpc.program.name")
12151
12152 // OncRPCVersionKey is the attribute Key conforming to the "onc_rpc.version"
12153 // semantic conventions. It represents the ONC/Sun RPC program version.
12154 //
12155 // Type: int
12156 // RequirementLevel: Recommended
12157 // Stability: Development
12158 //
12159 // Examples:
12160 OncRPCVersionKey = attribute.Key("onc_rpc.version")
12161 )
12162
12163 // OncRPCProcedureName returns an attribute KeyValue conforming to the
12164 // "onc_rpc.procedure.name" semantic conventions. It represents the ONC/Sun RPC
12165 // procedure name.
12166 func OncRPCProcedureName(val string) attribute.KeyValue {
12167 return OncRPCProcedureNameKey.String(val)
12168 }
12169
12170 // OncRPCProcedureNumber returns an attribute KeyValue conforming to the
12171 // "onc_rpc.procedure.number" semantic conventions. It represents the ONC/Sun RPC
12172 // procedure number.
12173 func OncRPCProcedureNumber(val int) attribute.KeyValue {
12174 return OncRPCProcedureNumberKey.Int(val)
12175 }
12176
12177 // OncRPCProgramName returns an attribute KeyValue conforming to the
12178 // "onc_rpc.program.name" semantic conventions. It represents the ONC/Sun RPC
12179 // program name.
12180 func OncRPCProgramName(val string) attribute.KeyValue {
12181 return OncRPCProgramNameKey.String(val)
12182 }
12183
12184 // OncRPCVersion returns an attribute KeyValue conforming to the
12185 // "onc_rpc.version" semantic conventions. It represents the ONC/Sun RPC program
12186 // version.
12187 func OncRPCVersion(val int) attribute.KeyValue {
12188 return OncRPCVersionKey.Int(val)
12189 }
12190
12191 // Namespace: openai
12192 const (
12193 // OpenAIAPITypeKey is the attribute Key conforming to the "openai.api.type"
12194 // semantic conventions. It represents the type of OpenAI API being used.
12195 //
12196 // Type: Enum
12197 // RequirementLevel: Recommended
12198 // Stability: Development
12199 //
12200 // Examples:
12201 OpenAIAPITypeKey = attribute.Key("openai.api.type")
12202
12203 // OpenAIRequestServiceTierKey is the attribute Key conforming to the
12204 // "openai.request.service_tier" semantic conventions. It represents the service
12205 // tier requested. May be a specific tier, default, or auto.
12206 //
12207 // Type: Enum
12208 // RequirementLevel: Recommended
12209 // Stability: Development
12210 //
12211 // Examples: "auto", "default"
12212 OpenAIRequestServiceTierKey = attribute.Key("openai.request.service_tier")
12213
12214 // OpenAIResponseServiceTierKey is the attribute Key conforming to the
12215 // "openai.response.service_tier" semantic conventions. It represents the
12216 // service tier used for the response.
12217 //
12218 // Type: string
12219 // RequirementLevel: Recommended
12220 // Stability: Development
12221 //
12222 // Examples: "scale", "default"
12223 OpenAIResponseServiceTierKey = attribute.Key("openai.response.service_tier")
12224
12225 // OpenAIResponseSystemFingerprintKey is the attribute Key conforming to the
12226 // "openai.response.system_fingerprint" semantic conventions. It represents a
12227 // fingerprint to track any eventual change in the Generative AI environment.
12228 //
12229 // Type: string
12230 // RequirementLevel: Recommended
12231 // Stability: Development
12232 //
12233 // Examples: "fp_44709d6fcb"
12234 OpenAIResponseSystemFingerprintKey = attribute.Key("openai.response.system_fingerprint")
12235 )
12236
12237 // OpenAIResponseServiceTier returns an attribute KeyValue conforming to the
12238 // "openai.response.service_tier" semantic conventions. It represents the service
12239 // tier used for the response.
12240 func OpenAIResponseServiceTier(val string) attribute.KeyValue {
12241 return OpenAIResponseServiceTierKey.String(val)
12242 }
12243
12244 // OpenAIResponseSystemFingerprint returns an attribute KeyValue conforming to
12245 // the "openai.response.system_fingerprint" semantic conventions. It represents a
12246 // fingerprint to track any eventual change in the Generative AI environment.
12247 func OpenAIResponseSystemFingerprint(val string) attribute.KeyValue {
12248 return OpenAIResponseSystemFingerprintKey.String(val)
12249 }
12250
12251 // Enum values for openai.api.type
12252 var (
12253 // The OpenAI [Chat Completions API].
12254 // Stability: development
12255 //
12256 // [Chat Completions API]: https://developers.openai.com/api/reference/chat-completions/overview
12257 OpenAIAPITypeChatCompletions = OpenAIAPITypeKey.String("chat_completions")
12258 // The OpenAI [Responses API].
12259 // Stability: development
12260 //
12261 // [Responses API]: https://developers.openai.com/api/reference/responses/overview
12262 OpenAIAPITypeResponses = OpenAIAPITypeKey.String("responses")
12263 )
12264
12265 // Enum values for openai.request.service_tier
12266 var (
12267 // The system will utilize scale tier credits until they are exhausted.
12268 // Stability: development
12269 OpenAIRequestServiceTierAuto = OpenAIRequestServiceTierKey.String("auto")
12270 // The system will utilize the default scale tier.
12271 // Stability: development
12272 OpenAIRequestServiceTierDefault = OpenAIRequestServiceTierKey.String("default")
12273 )
12274
12275 // Namespace: openshift
12276 const (
12277 // OpenShiftClusterquotaNameKey is the attribute Key conforming to the
12278 // "openshift.clusterquota.name" semantic conventions. It represents the name of
12279 // the cluster quota.
12280 //
12281 // Type: string
12282 // RequirementLevel: Recommended
12283 // Stability: Development
12284 //
12285 // Examples: "opentelemetry"
12286 OpenShiftClusterquotaNameKey = attribute.Key("openshift.clusterquota.name")
12287
12288 // OpenShiftClusterquotaUIDKey is the attribute Key conforming to the
12289 // "openshift.clusterquota.uid" semantic conventions. It represents the UID of
12290 // the cluster quota.
12291 //
12292 // Type: string
12293 // RequirementLevel: Recommended
12294 // Stability: Development
12295 //
12296 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
12297 OpenShiftClusterquotaUIDKey = attribute.Key("openshift.clusterquota.uid")
12298 )
12299
12300 // OpenShiftClusterquotaName returns an attribute KeyValue conforming to the
12301 // "openshift.clusterquota.name" semantic conventions. It represents the name of
12302 // the cluster quota.
12303 func OpenShiftClusterquotaName(val string) attribute.KeyValue {
12304 return OpenShiftClusterquotaNameKey.String(val)
12305 }
12306
12307 // OpenShiftClusterquotaUID returns an attribute KeyValue conforming to the
12308 // "openshift.clusterquota.uid" semantic conventions. It represents the UID of
12309 // the cluster quota.
12310 func OpenShiftClusterquotaUID(val string) attribute.KeyValue {
12311 return OpenShiftClusterquotaUIDKey.String(val)
12312 }
12313
12314 // Namespace: opentracing
12315 const (
12316 // OpenTracingRefTypeKey is the attribute Key conforming to the
12317 // "opentracing.ref_type" semantic conventions. It represents the parent-child
12318 // Reference type.
12319 //
12320 // Type: Enum
12321 // RequirementLevel: Recommended
12322 // Stability: Development
12323 //
12324 // Examples:
12325 // Note: The causal relationship between a child Span and a parent Span.
12326 OpenTracingRefTypeKey = attribute.Key("opentracing.ref_type")
12327 )
12328
12329 // Enum values for opentracing.ref_type
12330 var (
12331 // The parent Span depends on the child Span in some capacity
12332 // Stability: development
12333 OpenTracingRefTypeChildOf = OpenTracingRefTypeKey.String("child_of")
12334 // The parent Span doesn't depend in any way on the result of the child Span
12335 // Stability: development
12336 OpenTracingRefTypeFollowsFrom = OpenTracingRefTypeKey.String("follows_from")
12337 )
12338
12339 // Namespace: oracle
12340 const (
12341 // OracleDBDomainKey is the attribute Key conforming to the "oracle.db.domain"
12342 // semantic conventions. It represents the database domain associated with the
12343 // connection.
12344 //
12345 // Type: string
12346 // RequirementLevel: Recommended
12347 // Stability: Development
12348 //
12349 // Examples: "example.com", "corp.internal", "prod.db.local"
12350 // Note: This attribute SHOULD be set to the value of the `DB_DOMAIN`
12351 // initialization parameter,
12352 // as exposed in `v$parameter`. `DB_DOMAIN` defines the domain portion of the
12353 // global
12354 // database name and SHOULD be configured when a database is, or may become,
12355 // part of a
12356 // distributed environment. Its value consists of one or more valid identifiers
12357 // (alphanumeric ASCII characters) separated by periods.
12358 OracleDBDomainKey = attribute.Key("oracle.db.domain")
12359
12360 // OracleDBInstanceNameKey is the attribute Key conforming to the
12361 // "oracle.db.instance.name" semantic conventions. It represents the instance
12362 // name associated with the connection in an Oracle Real Application Clusters
12363 // environment.
12364 //
12365 // Type: string
12366 // RequirementLevel: Recommended
12367 // Stability: Development
12368 //
12369 // Examples: "ORCL1", "ORCL2", "ORCL3"
12370 // Note: There can be multiple instances associated with a single database
12371 // service. It indicates the
12372 // unique instance name to which the connection is currently bound. For non-RAC
12373 // databases, this value
12374 // defaults to the `oracle.db.name`.
12375 OracleDBInstanceNameKey = attribute.Key("oracle.db.instance.name")
12376
12377 // OracleDBNameKey is the attribute Key conforming to the "oracle.db.name"
12378 // semantic conventions. It represents the database name associated with the
12379 // connection.
12380 //
12381 // Type: string
12382 // RequirementLevel: Recommended
12383 // Stability: Development
12384 //
12385 // Examples: "ORCL1", "FREE"
12386 // Note: This attribute SHOULD be set to the value of the parameter `DB_NAME`
12387 // exposed in `v$parameter`.
12388 OracleDBNameKey = attribute.Key("oracle.db.name")
12389
12390 // OracleDBPdbKey is the attribute Key conforming to the "oracle.db.pdb"
12391 // semantic conventions. It represents the pluggable database (PDB) name
12392 // associated with the connection.
12393 //
12394 // Type: string
12395 // RequirementLevel: Recommended
12396 // Stability: Development
12397 //
12398 // Examples: "PDB1", "FREEPDB"
12399 // Note: This attribute SHOULD reflect the PDB that the session is currently
12400 // connected to.
12401 // If instrumentation cannot reliably obtain the active PDB name for each
12402 // operation
12403 // without issuing an additional query (such as `SELECT SYS_CONTEXT`), it is
12404 // RECOMMENDED to fall back to the PDB name specified at connection
12405 // establishment.
12406 OracleDBPdbKey = attribute.Key("oracle.db.pdb")
12407
12408 // OracleDBServiceKey is the attribute Key conforming to the "oracle.db.service"
12409 // semantic conventions. It represents the service name currently associated
12410 // with the database connection.
12411 //
12412 // Type: string
12413 // RequirementLevel: Recommended
12414 // Stability: Development
12415 //
12416 // Examples: "order-processing-service", "db_low.adb.oraclecloud.com",
12417 // "db_high.adb.oraclecloud.com"
12418 // Note: The effective service name for a connection can change during its
12419 // lifetime,
12420 // for example after executing sql, `ALTER SESSION`. If an instrumentation
12421 // cannot reliably
12422 // obtain the current service name for each operation without issuing an
12423 // additional
12424 // query (such as `SELECT SYS_CONTEXT`), it is RECOMMENDED to fall back to the
12425 // service name originally provided at connection establishment.
12426 OracleDBServiceKey = attribute.Key("oracle.db.service")
12427 )
12428
12429 // OracleDBDomain returns an attribute KeyValue conforming to the
12430 // "oracle.db.domain" semantic conventions. It represents the database domain
12431 // associated with the connection.
12432 func OracleDBDomain(val string) attribute.KeyValue {
12433 return OracleDBDomainKey.String(val)
12434 }
12435
12436 // OracleDBInstanceName returns an attribute KeyValue conforming to the
12437 // "oracle.db.instance.name" semantic conventions. It represents the instance
12438 // name associated with the connection in an Oracle Real Application Clusters
12439 // environment.
12440 func OracleDBInstanceName(val string) attribute.KeyValue {
12441 return OracleDBInstanceNameKey.String(val)
12442 }
12443
12444 // OracleDBName returns an attribute KeyValue conforming to the "oracle.db.name"
12445 // semantic conventions. It represents the database name associated with the
12446 // connection.
12447 func OracleDBName(val string) attribute.KeyValue {
12448 return OracleDBNameKey.String(val)
12449 }
12450
12451 // OracleDBPdb returns an attribute KeyValue conforming to the "oracle.db.pdb"
12452 // semantic conventions. It represents the pluggable database (PDB) name
12453 // associated with the connection.
12454 func OracleDBPdb(val string) attribute.KeyValue {
12455 return OracleDBPdbKey.String(val)
12456 }
12457
12458 // OracleDBService returns an attribute KeyValue conforming to the
12459 // "oracle.db.service" semantic conventions. It represents the service name
12460 // currently associated with the database connection.
12461 func OracleDBService(val string) attribute.KeyValue {
12462 return OracleDBServiceKey.String(val)
12463 }
12464
12465 // Namespace: oracle_cloud
12466 const (
12467 // OracleCloudRealmKey is the attribute Key conforming to the
12468 // "oracle_cloud.realm" semantic conventions. It represents the OCI realm
12469 // identifier that indicates the isolated partition in which the tenancy and its
12470 // resources reside.
12471 //
12472 // Type: string
12473 // RequirementLevel: Recommended
12474 // Stability: Development
12475 //
12476 // Examples: "oc1", "oc2"
12477 // Note: See [OCI documentation on realms]
12478 //
12479 // [OCI documentation on realms]: https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm
12480 OracleCloudRealmKey = attribute.Key("oracle_cloud.realm")
12481 )
12482
12483 // OracleCloudRealm returns an attribute KeyValue conforming to the
12484 // "oracle_cloud.realm" semantic conventions. It represents the OCI realm
12485 // identifier that indicates the isolated partition in which the tenancy and its
12486 // resources reside.
12487 func OracleCloudRealm(val string) attribute.KeyValue {
12488 return OracleCloudRealmKey.String(val)
12489 }
12490
12491 // Namespace: os
12492 const (
12493 // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
12494 // conventions. It represents the unique identifier for a particular build or
12495 // compilation of the operating system.
12496 //
12497 // Type: string
12498 // RequirementLevel: Recommended
12499 // Stability: Development
12500 //
12501 // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
12502 OSBuildIDKey = attribute.Key("os.build_id")
12503
12504 // OSDescriptionKey is the attribute Key conforming to the "os.description"
12505 // semantic conventions. It represents the human readable (not intended to be
12506 // parsed) OS version information, like e.g. reported by `ver` or
12507 // `lsb_release -a` commands.
12508 //
12509 // Type: string
12510 // RequirementLevel: Recommended
12511 // Stability: Development
12512 //
12513 // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
12514 OSDescriptionKey = attribute.Key("os.description")
12515
12516 // OSNameKey is the attribute Key conforming to the "os.name" semantic
12517 // conventions. It represents the human readable operating system name.
12518 //
12519 // Type: string
12520 // RequirementLevel: Recommended
12521 // Stability: Development
12522 //
12523 // Examples: "iOS", "Android", "Ubuntu"
12524 OSNameKey = attribute.Key("os.name")
12525
12526 // OSTypeKey is the attribute Key conforming to the "os.type" semantic
12527 // conventions. It represents the operating system type.
12528 //
12529 // Type: Enum
12530 // RequirementLevel: Recommended
12531 // Stability: Development
12532 //
12533 // Examples:
12534 OSTypeKey = attribute.Key("os.type")
12535
12536 // OSVersionKey is the attribute Key conforming to the "os.version" semantic
12537 // conventions. It represents the version string of the operating system as
12538 // defined in [Version Attributes].
12539 //
12540 // Type: string
12541 // RequirementLevel: Recommended
12542 // Stability: Development
12543 //
12544 // Examples: "14.2.1", "18.04.1"
12545 //
12546 // [Version Attributes]: /docs/resource/README.md#version-attributes
12547 OSVersionKey = attribute.Key("os.version")
12548 )
12549
12550 // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
12551 // semantic conventions. It represents the unique identifier for a particular
12552 // build or compilation of the operating system.
12553 func OSBuildID(val string) attribute.KeyValue {
12554 return OSBuildIDKey.String(val)
12555 }
12556
12557 // OSDescription returns an attribute KeyValue conforming to the "os.description"
12558 // semantic conventions. It represents the human readable (not intended to be
12559 // parsed) OS version information, like e.g. reported by `ver` or
12560 // `lsb_release -a` commands.
12561 func OSDescription(val string) attribute.KeyValue {
12562 return OSDescriptionKey.String(val)
12563 }
12564
12565 // OSName returns an attribute KeyValue conforming to the "os.name" semantic
12566 // conventions. It represents the human readable operating system name.
12567 func OSName(val string) attribute.KeyValue {
12568 return OSNameKey.String(val)
12569 }
12570
12571 // OSVersion returns an attribute KeyValue conforming to the "os.version"
12572 // semantic conventions. It represents the version string of the operating system
12573 // as defined in [Version Attributes].
12574 //
12575 // [Version Attributes]: /docs/resource/README.md#version-attributes
12576 func OSVersion(val string) attribute.KeyValue {
12577 return OSVersionKey.String(val)
12578 }
12579
12580 // Enum values for os.type
12581 var (
12582 // Microsoft Windows
12583 // Stability: development
12584 OSTypeWindows = OSTypeKey.String("windows")
12585 // Linux
12586 // Stability: development
12587 OSTypeLinux = OSTypeKey.String("linux")
12588 // Apple Darwin
12589 // Stability: development
12590 OSTypeDarwin = OSTypeKey.String("darwin")
12591 // FreeBSD
12592 // Stability: development
12593 OSTypeFreeBSD = OSTypeKey.String("freebsd")
12594 // NetBSD
12595 // Stability: development
12596 OSTypeNetBSD = OSTypeKey.String("netbsd")
12597 // OpenBSD
12598 // Stability: development
12599 OSTypeOpenBSD = OSTypeKey.String("openbsd")
12600 // DragonFly BSD
12601 // Stability: development
12602 OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
12603 // HP-UX (Hewlett Packard Unix)
12604 // Stability: development
12605 OSTypeHPUX = OSTypeKey.String("hpux")
12606 // AIX (Advanced Interactive eXecutive)
12607 // Stability: development
12608 OSTypeAIX = OSTypeKey.String("aix")
12609 // SunOS, Oracle Solaris
12610 // Stability: development
12611 OSTypeSolaris = OSTypeKey.String("solaris")
12612 // IBM z/OS
12613 // Stability: development
12614 OSTypeZOS = OSTypeKey.String("zos")
12615 )
12616
12617 // Namespace: otel
12618 const (
12619 // OTelComponentNameKey is the attribute Key conforming to the
12620 // "otel.component.name" semantic conventions. It represents a name uniquely
12621 // identifying the instance of the OpenTelemetry component within its containing
12622 // SDK instance.
12623 //
12624 // Type: string
12625 // RequirementLevel: Recommended
12626 // Stability: Development
12627 //
12628 // Examples: "otlp_grpc_span_exporter/0", "custom-name"
12629 // Note: Implementations SHOULD ensure a low cardinality for this attribute,
12630 // even across application or SDK restarts.
12631 // E.g. implementations MUST NOT use UUIDs as values for this attribute.
12632 //
12633 // Implementations MAY achieve these goals by following a
12634 // `<otel.component.type>/<instance-counter>` pattern, e.g.
12635 // `batching_span_processor/0`.
12636 // Hereby `otel.component.type` refers to the corresponding attribute value of
12637 // the component.
12638 //
12639 // The value of `instance-counter` MAY be automatically assigned by the
12640 // component and uniqueness within the enclosing SDK instance MUST be
12641 // guaranteed.
12642 // For example, `<instance-counter>` MAY be implemented by using a monotonically
12643 // increasing counter (starting with `0`), which is incremented every time an
12644 // instance of the given component type is started.
12645 //
12646 // With this implementation, for example the first Batching Span Processor would
12647 // have `batching_span_processor/0`
12648 // as `otel.component.name`, the second one `batching_span_processor/1` and so
12649 // on.
12650 // These values will therefore be reused in the case of an application restart.
12651 OTelComponentNameKey = attribute.Key("otel.component.name")
12652
12653 // OTelComponentTypeKey is the attribute Key conforming to the
12654 // "otel.component.type" semantic conventions. It represents a name identifying
12655 // the type of the OpenTelemetry component.
12656 //
12657 // Type: Enum
12658 // RequirementLevel: Recommended
12659 // Stability: Development
12660 //
12661 // Examples: "batching_span_processor", "com.example.MySpanExporter"
12662 // Note: If none of the standardized values apply, implementations SHOULD use
12663 // the language-defined name of the type.
12664 // E.g. for Java the fully qualified classname SHOULD be used in this case.
12665 OTelComponentTypeKey = attribute.Key("otel.component.type")
12666
12667 // OTelEventNameKey is the attribute Key conforming to the "otel.event.name"
12668 // semantic conventions. It represents the identifies the class / type of event.
12669 //
12670 // Type: string
12671 // RequirementLevel: Recommended
12672 // Stability: Development
12673 //
12674 // Examples: "browser.mouse.click", "device.app.lifecycle"
12675 // Note: This attribute SHOULD be used by non-OTLP exporters when destination
12676 // does not support `EventName` or equivalent field. This attribute MAY be used
12677 // by applications using existing logging libraries so that it can be used to
12678 // set the `EventName` field by Collector or SDK components.
12679 OTelEventNameKey = attribute.Key("otel.event.name")
12680
12681 // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
12682 // semantic conventions. It represents the name of the instrumentation scope - (
12683 // `InstrumentationScope.Name` in OTLP).
12684 //
12685 // Type: string
12686 // RequirementLevel: Recommended
12687 // Stability: Stable
12688 //
12689 // Examples: "io.opentelemetry.contrib.mongodb"
12690 OTelScopeNameKey = attribute.Key("otel.scope.name")
12691
12692 // OTelScopeSchemaURLKey is the attribute Key conforming to the
12693 // "otel.scope.schema_url" semantic conventions. It represents the schema URL of
12694 // the instrumentation scope.
12695 //
12696 // Type: string
12697 // RequirementLevel: Recommended
12698 // Stability: Development
12699 //
12700 // Examples: "https://opentelemetry.io/schemas/1.31.0"
12701 OTelScopeSchemaURLKey = attribute.Key("otel.scope.schema_url")
12702
12703 // OTelScopeVersionKey is the attribute Key conforming to the
12704 // "otel.scope.version" semantic conventions. It represents the version of the
12705 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
12706 //
12707 // Type: string
12708 // RequirementLevel: Recommended
12709 // Stability: Stable
12710 //
12711 // Examples: "1.0.0"
12712 OTelScopeVersionKey = attribute.Key("otel.scope.version")
12713
12714 // OTelSpanParentOriginKey is the attribute Key conforming to the
12715 // "otel.span.parent.origin" semantic conventions. It represents the determines
12716 // whether the span has a parent span, and if so,
12717 // [whether it is a remote parent].
12718 //
12719 // Type: Enum
12720 // RequirementLevel: Recommended
12721 // Stability: Development
12722 //
12723 // Examples:
12724 //
12725 // [whether it is a remote parent]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
12726 OTelSpanParentOriginKey = attribute.Key("otel.span.parent.origin")
12727
12728 // OTelSpanSamplingResultKey is the attribute Key conforming to the
12729 // "otel.span.sampling_result" semantic conventions. It represents the result
12730 // value of the sampler for this span.
12731 //
12732 // Type: Enum
12733 // RequirementLevel: Recommended
12734 // Stability: Development
12735 //
12736 // Examples:
12737 OTelSpanSamplingResultKey = attribute.Key("otel.span.sampling_result")
12738
12739 // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
12740 // semantic conventions. It represents the name of the code, either "OK" or
12741 // "ERROR". MUST NOT be set if the status code is UNSET.
12742 //
12743 // Type: Enum
12744 // RequirementLevel: Recommended
12745 // Stability: Stable
12746 //
12747 // Examples:
12748 OTelStatusCodeKey = attribute.Key("otel.status_code")
12749
12750 // OTelStatusDescriptionKey is the attribute Key conforming to the
12751 // "otel.status_description" semantic conventions. It represents the description
12752 // of the Status if it has a value, otherwise not set.
12753 //
12754 // Type: string
12755 // RequirementLevel: Recommended
12756 // Stability: Stable
12757 //
12758 // Examples: "resource not found"
12759 OTelStatusDescriptionKey = attribute.Key("otel.status_description")
12760 )
12761
12762 // OTelComponentName returns an attribute KeyValue conforming to the
12763 // "otel.component.name" semantic conventions. It represents a name uniquely
12764 // identifying the instance of the OpenTelemetry component within its containing
12765 // SDK instance.
12766 func OTelComponentName(val string) attribute.KeyValue {
12767 return OTelComponentNameKey.String(val)
12768 }
12769
12770 // OTelEventName returns an attribute KeyValue conforming to the
12771 // "otel.event.name" semantic conventions. It represents the identifies the class
12772 // / type of event.
12773 func OTelEventName(val string) attribute.KeyValue {
12774 return OTelEventNameKey.String(val)
12775 }
12776
12777 // OTelScopeName returns an attribute KeyValue conforming to the
12778 // "otel.scope.name" semantic conventions. It represents the name of the
12779 // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
12780 func OTelScopeName(val string) attribute.KeyValue {
12781 return OTelScopeNameKey.String(val)
12782 }
12783
12784 // OTelScopeSchemaURL returns an attribute KeyValue conforming to the
12785 // "otel.scope.schema_url" semantic conventions. It represents the schema URL of
12786 // the instrumentation scope.
12787 func OTelScopeSchemaURL(val string) attribute.KeyValue {
12788 return OTelScopeSchemaURLKey.String(val)
12789 }
12790
12791 // OTelScopeVersion returns an attribute KeyValue conforming to the
12792 // "otel.scope.version" semantic conventions. It represents the version of the
12793 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
12794 func OTelScopeVersion(val string) attribute.KeyValue {
12795 return OTelScopeVersionKey.String(val)
12796 }
12797
12798 // OTelStatusDescription returns an attribute KeyValue conforming to the
12799 // "otel.status_description" semantic conventions. It represents the description
12800 // of the Status if it has a value, otherwise not set.
12801 func OTelStatusDescription(val string) attribute.KeyValue {
12802 return OTelStatusDescriptionKey.String(val)
12803 }
12804
12805 // Enum values for otel.component.type
12806 var (
12807 // The builtin SDK batching span processor
12808 //
12809 // Stability: development
12810 OTelComponentTypeBatchingSpanProcessor = OTelComponentTypeKey.String("batching_span_processor")
12811 // The builtin SDK simple span processor
12812 //
12813 // Stability: development
12814 OTelComponentTypeSimpleSpanProcessor = OTelComponentTypeKey.String("simple_span_processor")
12815 // The builtin SDK batching log record processor
12816 //
12817 // Stability: development
12818 OTelComponentTypeBatchingLogProcessor = OTelComponentTypeKey.String("batching_log_processor")
12819 // The builtin SDK simple log record processor
12820 //
12821 // Stability: development
12822 OTelComponentTypeSimpleLogProcessor = OTelComponentTypeKey.String("simple_log_processor")
12823 // OTLP span exporter over gRPC with protobuf serialization
12824 //
12825 // Stability: development
12826 OTelComponentTypeOtlpGRPCSpanExporter = OTelComponentTypeKey.String("otlp_grpc_span_exporter")
12827 // OTLP span exporter over HTTP with protobuf serialization
12828 //
12829 // Stability: development
12830 OTelComponentTypeOtlpHTTPSpanExporter = OTelComponentTypeKey.String("otlp_http_span_exporter")
12831 // OTLP span exporter over HTTP with JSON serialization
12832 //
12833 // Stability: development
12834 OTelComponentTypeOtlpHTTPJSONSpanExporter = OTelComponentTypeKey.String("otlp_http_json_span_exporter")
12835 // Zipkin span exporter over HTTP
12836 //
12837 // Stability: development
12838 OTelComponentTypeZipkinHTTPSpanExporter = OTelComponentTypeKey.String("zipkin_http_span_exporter")
12839 // OTLP log record exporter over gRPC with protobuf serialization
12840 //
12841 // Stability: development
12842 OTelComponentTypeOtlpGRPCLogExporter = OTelComponentTypeKey.String("otlp_grpc_log_exporter")
12843 // OTLP log record exporter over HTTP with protobuf serialization
12844 //
12845 // Stability: development
12846 OTelComponentTypeOtlpHTTPLogExporter = OTelComponentTypeKey.String("otlp_http_log_exporter")
12847 // OTLP log record exporter over HTTP with JSON serialization
12848 //
12849 // Stability: development
12850 OTelComponentTypeOtlpHTTPJSONLogExporter = OTelComponentTypeKey.String("otlp_http_json_log_exporter")
12851 // The builtin SDK periodically exporting metric reader
12852 //
12853 // Stability: development
12854 OTelComponentTypePeriodicMetricReader = OTelComponentTypeKey.String("periodic_metric_reader")
12855 // OTLP metric exporter over gRPC with protobuf serialization
12856 //
12857 // Stability: development
12858 OTelComponentTypeOtlpGRPCMetricExporter = OTelComponentTypeKey.String("otlp_grpc_metric_exporter")
12859 // OTLP metric exporter over HTTP with protobuf serialization
12860 //
12861 // Stability: development
12862 OTelComponentTypeOtlpHTTPMetricExporter = OTelComponentTypeKey.String("otlp_http_metric_exporter")
12863 // OTLP metric exporter over HTTP with JSON serialization
12864 //
12865 // Stability: development
12866 OTelComponentTypeOtlpHTTPJSONMetricExporter = OTelComponentTypeKey.String("otlp_http_json_metric_exporter")
12867 // Prometheus metric exporter over HTTP with the default text-based format
12868 //
12869 // Stability: development
12870 OTelComponentTypePrometheusHTTPTextMetricExporter = OTelComponentTypeKey.String("prometheus_http_text_metric_exporter")
12871 )
12872
12873 // Enum values for otel.span.parent.origin
12874 var (
12875 // The span does not have a parent, it is a root span
12876 // Stability: development
12877 OTelSpanParentOriginNone = OTelSpanParentOriginKey.String("none")
12878 // The span has a parent and the parent's span context [isRemote()] is false
12879 // Stability: development
12880 //
12881 // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
12882 OTelSpanParentOriginLocal = OTelSpanParentOriginKey.String("local")
12883 // The span has a parent and the parent's span context [isRemote()] is true
12884 // Stability: development
12885 //
12886 // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
12887 OTelSpanParentOriginRemote = OTelSpanParentOriginKey.String("remote")
12888 )
12889
12890 // Enum values for otel.span.sampling_result
12891 var (
12892 // The span is not sampled and not recording
12893 // Stability: development
12894 OTelSpanSamplingResultDrop = OTelSpanSamplingResultKey.String("DROP")
12895 // The span is not sampled, but recording
12896 // Stability: development
12897 OTelSpanSamplingResultRecordOnly = OTelSpanSamplingResultKey.String("RECORD_ONLY")
12898 // The span is sampled and recording
12899 // Stability: development
12900 OTelSpanSamplingResultRecordAndSample = OTelSpanSamplingResultKey.String("RECORD_AND_SAMPLE")
12901 )
12902
12903 // Enum values for otel.status_code
12904 var (
12905 // The operation has been validated by an Application developer or Operator to
12906 // have completed successfully.
12907 // Stability: stable
12908 OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
12909 // The operation contains an error.
12910 // Stability: stable
12911 OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
12912 )
12913
12914 // Namespace: pprof
12915 const (
12916 // PprofLocationIsFoldedKey is the attribute Key conforming to the
12917 // "pprof.location.is_folded" semantic conventions. It represents the provides
12918 // an indication that multiple symbols map to this location's address, for
12919 // example due to identical code folding by the linker. In that case the line
12920 // information represents one of the multiple symbols. This field must be
12921 // recomputed when the symbolization state of the profile changes.
12922 //
12923 // Type: boolean
12924 // RequirementLevel: Recommended
12925 // Stability: Development
12926 //
12927 // Examples:
12928 PprofLocationIsFoldedKey = attribute.Key("pprof.location.is_folded")
12929
12930 // PprofMappingHasFilenamesKey is the attribute Key conforming to the
12931 // "pprof.mapping.has_filenames" semantic conventions. It represents the
12932 // indicates that there are filenames related to this mapping.
12933 //
12934 // Type: boolean
12935 // RequirementLevel: Recommended
12936 // Stability: Development
12937 //
12938 // Examples:
12939 PprofMappingHasFilenamesKey = attribute.Key("pprof.mapping.has_filenames")
12940
12941 // PprofMappingHasFunctionsKey is the attribute Key conforming to the
12942 // "pprof.mapping.has_functions" semantic conventions. It represents the
12943 // indicates that there are functions related to this mapping.
12944 //
12945 // Type: boolean
12946 // RequirementLevel: Recommended
12947 // Stability: Development
12948 //
12949 // Examples:
12950 PprofMappingHasFunctionsKey = attribute.Key("pprof.mapping.has_functions")
12951
12952 // PprofMappingHasInlineFramesKey is the attribute Key conforming to the
12953 // "pprof.mapping.has_inline_frames" semantic conventions. It represents the
12954 // indicates that there are inline frames related to this mapping.
12955 //
12956 // Type: boolean
12957 // RequirementLevel: Recommended
12958 // Stability: Development
12959 //
12960 // Examples:
12961 PprofMappingHasInlineFramesKey = attribute.Key("pprof.mapping.has_inline_frames")
12962
12963 // PprofMappingHasLineNumbersKey is the attribute Key conforming to the
12964 // "pprof.mapping.has_line_numbers" semantic conventions. It represents the
12965 // indicates that there are line numbers related to this mapping.
12966 //
12967 // Type: boolean
12968 // RequirementLevel: Recommended
12969 // Stability: Development
12970 //
12971 // Examples:
12972 PprofMappingHasLineNumbersKey = attribute.Key("pprof.mapping.has_line_numbers")
12973
12974 // PprofProfileCommentKey is the attribute Key conforming to the
12975 // "pprof.profile.comment" semantic conventions. It represents the free-form
12976 // text associated with the profile. This field should not be used to store any
12977 // machine-readable information, it is only for human-friendly content.
12978 //
12979 // Type: string[]
12980 // RequirementLevel: Recommended
12981 // Stability: Development
12982 //
12983 // Examples: "hello world", "bazinga"
12984 PprofProfileCommentKey = attribute.Key("pprof.profile.comment")
12985
12986 // PprofProfileDocURLKey is the attribute Key conforming to the
12987 // "pprof.profile.doc_url" semantic conventions. It represents the documentation
12988 // link for this profile type.
12989 //
12990 // Type: string
12991 // RequirementLevel: Recommended
12992 // Stability: Development
12993 //
12994 // Examples: "http://pprof.example.com/cpu-profile.html"
12995 // Note: The URL must be absolute and may be missing if the profile was
12996 // generated by code that did not supply a link
12997 PprofProfileDocURLKey = attribute.Key("pprof.profile.doc_url")
12998
12999 // PprofProfileDropFramesKey is the attribute Key conforming to the
13000 // "pprof.profile.drop_frames" semantic conventions. It represents the frames
13001 // with Function.function_name fully matching the regexp will be dropped from
13002 // the samples, along with their successors.
13003 //
13004 // Type: string
13005 // RequirementLevel: Recommended
13006 // Stability: Development
13007 //
13008 // Examples: "/foobar/"
13009 PprofProfileDropFramesKey = attribute.Key("pprof.profile.drop_frames")
13010
13011 // PprofProfileKeepFramesKey is the attribute Key conforming to the
13012 // "pprof.profile.keep_frames" semantic conventions. It represents the frames
13013 // with Function.function_name fully matching the regexp will be kept, even if
13014 // it matches drop_frames.
13015 //
13016 // Type: string
13017 // RequirementLevel: Recommended
13018 // Stability: Development
13019 //
13020 // Examples: "/bazinga/"
13021 PprofProfileKeepFramesKey = attribute.Key("pprof.profile.keep_frames")
13022
13023 // PprofScopeDefaultSampleTypeKey is the attribute Key conforming to the
13024 // "pprof.scope.default_sample_type" semantic conventions. It represents the
13025 // records the pprof's default_sample_type in the original profile. Not set if
13026 // the default sample type was missing.
13027 //
13028 // Type: string
13029 // RequirementLevel: Recommended
13030 // Stability: Development
13031 //
13032 // Examples: "cpu"
13033 // Note: This attribute, if present, MUST be set at the scope level
13034 // (resource_profiles[].scope_profiles[].scope.attributes[]).
13035 PprofScopeDefaultSampleTypeKey = attribute.Key("pprof.scope.default_sample_type")
13036
13037 // PprofScopeSampleTypeOrderKey is the attribute Key conforming to the
13038 // "pprof.scope.sample_type_order" semantic conventions. It represents the
13039 // records the indexes of the sample types in the original profile.
13040 //
13041 // Type: int[]
13042 // RequirementLevel: Recommended
13043 // Stability: Development
13044 //
13045 // Examples: 3, 0, 1, 2
13046 // Note: This attribute, if present, MUST be set at the scope level
13047 // (resource_profiles[].scope_profiles[].scope.attributes[]).
13048 PprofScopeSampleTypeOrderKey = attribute.Key("pprof.scope.sample_type_order")
13049 )
13050
13051 // PprofLocationIsFolded returns an attribute KeyValue conforming to the
13052 // "pprof.location.is_folded" semantic conventions. It represents the provides an
13053 // indication that multiple symbols map to this location's address, for example
13054 // due to identical code folding by the linker. In that case the line information
13055 // represents one of the multiple symbols. This field must be recomputed when the
13056 // symbolization state of the profile changes.
13057 func PprofLocationIsFolded(val bool) attribute.KeyValue {
13058 return PprofLocationIsFoldedKey.Bool(val)
13059 }
13060
13061 // PprofMappingHasFilenames returns an attribute KeyValue conforming to the
13062 // "pprof.mapping.has_filenames" semantic conventions. It represents the
13063 // indicates that there are filenames related to this mapping.
13064 func PprofMappingHasFilenames(val bool) attribute.KeyValue {
13065 return PprofMappingHasFilenamesKey.Bool(val)
13066 }
13067
13068 // PprofMappingHasFunctions returns an attribute KeyValue conforming to the
13069 // "pprof.mapping.has_functions" semantic conventions. It represents the
13070 // indicates that there are functions related to this mapping.
13071 func PprofMappingHasFunctions(val bool) attribute.KeyValue {
13072 return PprofMappingHasFunctionsKey.Bool(val)
13073 }
13074
13075 // PprofMappingHasInlineFrames returns an attribute KeyValue conforming to the
13076 // "pprof.mapping.has_inline_frames" semantic conventions. It represents the
13077 // indicates that there are inline frames related to this mapping.
13078 func PprofMappingHasInlineFrames(val bool) attribute.KeyValue {
13079 return PprofMappingHasInlineFramesKey.Bool(val)
13080 }
13081
13082 // PprofMappingHasLineNumbers returns an attribute KeyValue conforming to the
13083 // "pprof.mapping.has_line_numbers" semantic conventions. It represents the
13084 // indicates that there are line numbers related to this mapping.
13085 func PprofMappingHasLineNumbers(val bool) attribute.KeyValue {
13086 return PprofMappingHasLineNumbersKey.Bool(val)
13087 }
13088
13089 // PprofProfileComment returns an attribute KeyValue conforming to the
13090 // "pprof.profile.comment" semantic conventions. It represents the free-form text
13091 // associated with the profile. This field should not be used to store any
13092 // machine-readable information, it is only for human-friendly content.
13093 func PprofProfileComment(val ...string) attribute.KeyValue {
13094 return PprofProfileCommentKey.StringSlice(val)
13095 }
13096
13097 // PprofProfileDocURL returns an attribute KeyValue conforming to the
13098 // "pprof.profile.doc_url" semantic conventions. It represents the documentation
13099 // link for this profile type.
13100 func PprofProfileDocURL(val string) attribute.KeyValue {
13101 return PprofProfileDocURLKey.String(val)
13102 }
13103
13104 // PprofProfileDropFrames returns an attribute KeyValue conforming to the
13105 // "pprof.profile.drop_frames" semantic conventions. It represents the frames
13106 // with Function.function_name fully matching the regexp will be dropped from the
13107 // samples, along with their successors.
13108 func PprofProfileDropFrames(val string) attribute.KeyValue {
13109 return PprofProfileDropFramesKey.String(val)
13110 }
13111
13112 // PprofProfileKeepFrames returns an attribute KeyValue conforming to the
13113 // "pprof.profile.keep_frames" semantic conventions. It represents the frames
13114 // with Function.function_name fully matching the regexp will be kept, even if it
13115 // matches drop_frames.
13116 func PprofProfileKeepFrames(val string) attribute.KeyValue {
13117 return PprofProfileKeepFramesKey.String(val)
13118 }
13119
13120 // PprofScopeDefaultSampleType returns an attribute KeyValue conforming to the
13121 // "pprof.scope.default_sample_type" semantic conventions. It represents the
13122 // records the pprof's default_sample_type in the original profile. Not set if
13123 // the default sample type was missing.
13124 func PprofScopeDefaultSampleType(val string) attribute.KeyValue {
13125 return PprofScopeDefaultSampleTypeKey.String(val)
13126 }
13127
13128 // PprofScopeSampleTypeOrder returns an attribute KeyValue conforming to the
13129 // "pprof.scope.sample_type_order" semantic conventions. It represents the
13130 // records the indexes of the sample types in the original profile.
13131 func PprofScopeSampleTypeOrder(val ...int) attribute.KeyValue {
13132 return PprofScopeSampleTypeOrderKey.IntSlice(val)
13133 }
13134
13135 // Namespace: process
13136 const (
13137 // ProcessArgsCountKey is the attribute Key conforming to the
13138 // "process.args_count" semantic conventions. It represents the length of the
13139 // process.command_args array.
13140 //
13141 // Type: int
13142 // RequirementLevel: Recommended
13143 // Stability: Development
13144 //
13145 // Examples: 4
13146 // Note: This field can be useful for querying or performing bucket analysis on
13147 // how many arguments were provided to start a process. More arguments may be an
13148 // indication of suspicious activity.
13149 ProcessArgsCountKey = attribute.Key("process.args_count")
13150
13151 // ProcessCommandKey is the attribute Key conforming to the "process.command"
13152 // semantic conventions. It represents the command used to launch the process
13153 // (i.e. the command name). On Linux based systems, can be set to the zeroth
13154 // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
13155 // extracted from `GetCommandLineW`.
13156 //
13157 // Type: string
13158 // RequirementLevel: Recommended
13159 // Stability: Development
13160 //
13161 // Examples: "cmd/otelcol"
13162 ProcessCommandKey = attribute.Key("process.command")
13163
13164 // ProcessCommandArgsKey is the attribute Key conforming to the
13165 // "process.command_args" semantic conventions. It represents the all the
13166 // command arguments (including the command/executable itself) as received by
13167 // the process. On Linux-based systems (and some other Unixoid systems
13168 // supporting procfs), can be set according to the list of null-delimited
13169 // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
13170 // would be the full argv vector passed to `main`. SHOULD NOT be collected by
13171 // default unless there is sanitization that excludes sensitive data.
13172 //
13173 // Type: string[]
13174 // RequirementLevel: Recommended
13175 // Stability: Development
13176 //
13177 // Examples: "cmd/otecol", "--config=config.yaml"
13178 ProcessCommandArgsKey = attribute.Key("process.command_args")
13179
13180 // ProcessCommandLineKey is the attribute Key conforming to the
13181 // "process.command_line" semantic conventions. It represents the full command
13182 // used to launch the process as a single string representing the full command.
13183 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
13184 // you have to assemble it just for monitoring; use `process.command_args`
13185 // instead. SHOULD NOT be collected by default unless there is sanitization that
13186 // excludes sensitive data.
13187 //
13188 // Type: string
13189 // RequirementLevel: Recommended
13190 // Stability: Development
13191 //
13192 // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
13193 ProcessCommandLineKey = attribute.Key("process.command_line")
13194
13195 // ProcessContextSwitchTypeKey is the attribute Key conforming to the
13196 // "process.context_switch.type" semantic conventions. It represents the
13197 // specifies whether the context switches for this data point were voluntary or
13198 // involuntary.
13199 //
13200 // Type: Enum
13201 // RequirementLevel: Recommended
13202 // Stability: Development
13203 //
13204 // Examples:
13205 ProcessContextSwitchTypeKey = attribute.Key("process.context_switch.type")
13206
13207 // ProcessCreationTimeKey is the attribute Key conforming to the
13208 // "process.creation.time" semantic conventions. It represents the date and time
13209 // the process was created, in ISO 8601 format.
13210 //
13211 // Type: string
13212 // RequirementLevel: Recommended
13213 // Stability: Development
13214 //
13215 // Examples: "2023-11-21T09:25:34.853Z"
13216 ProcessCreationTimeKey = attribute.Key("process.creation.time")
13217
13218 // ProcessExecutableBuildIDGNUKey is the attribute Key conforming to the
13219 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
13220 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
13221 //
13222 // Type: string
13223 // RequirementLevel: Recommended
13224 // Stability: Development
13225 //
13226 // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
13227 ProcessExecutableBuildIDGNUKey = attribute.Key("process.executable.build_id.gnu")
13228
13229 // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the
13230 // "process.executable.build_id.go" semantic conventions. It represents the Go
13231 // build ID as retrieved by `go tool buildid <go executable>`.
13232 //
13233 // Type: string
13234 // RequirementLevel: Recommended
13235 // Stability: Development
13236 //
13237 // Examples:
13238 // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
13239 ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
13240
13241 // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the
13242 // "process.executable.build_id.htlhash" semantic conventions. It represents the
13243 // profiling specific build ID for executables. See the OTel specification for
13244 // Profiles for more information.
13245 //
13246 // Type: string
13247 // RequirementLevel: Recommended
13248 // Stability: Development
13249 //
13250 // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
13251 ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash")
13252
13253 // ProcessExecutableNameKey is the attribute Key conforming to the
13254 // "process.executable.name" semantic conventions. It represents the name of the
13255 // process executable. On Linux based systems, this SHOULD be set to the base
13256 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to
13257 // the base name of `GetProcessImageFileNameW`.
13258 //
13259 // Type: string
13260 // RequirementLevel: Recommended
13261 // Stability: Development
13262 //
13263 // Examples: "otelcol"
13264 ProcessExecutableNameKey = attribute.Key("process.executable.name")
13265
13266 // ProcessExecutablePathKey is the attribute Key conforming to the
13267 // "process.executable.path" semantic conventions. It represents the full path
13268 // to the process executable. On Linux based systems, can be set to the target
13269 // of `proc/[pid]/exe`. On Windows, can be set to the result of
13270 // `GetProcessImageFileNameW`.
13271 //
13272 // Type: string
13273 // RequirementLevel: Recommended
13274 // Stability: Development
13275 //
13276 // Examples: "/usr/bin/cmd/otelcol"
13277 ProcessExecutablePathKey = attribute.Key("process.executable.path")
13278
13279 // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
13280 // semantic conventions. It represents the exit code of the process.
13281 //
13282 // Type: int
13283 // RequirementLevel: Recommended
13284 // Stability: Development
13285 //
13286 // Examples: 127
13287 ProcessExitCodeKey = attribute.Key("process.exit.code")
13288
13289 // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
13290 // semantic conventions. It represents the date and time the process exited, in
13291 // ISO 8601 format.
13292 //
13293 // Type: string
13294 // RequirementLevel: Recommended
13295 // Stability: Development
13296 //
13297 // Examples: "2023-11-21T09:26:12.315Z"
13298 ProcessExitTimeKey = attribute.Key("process.exit.time")
13299
13300 // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
13301 // "process.group_leader.pid" semantic conventions. It represents the PID of the
13302 // process's group leader. This is also the process group ID (PGID) of the
13303 // process.
13304 //
13305 // Type: int
13306 // RequirementLevel: Recommended
13307 // Stability: Development
13308 //
13309 // Examples: 23
13310 ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
13311
13312 // ProcessInteractiveKey is the attribute Key conforming to the
13313 // "process.interactive" semantic conventions. It represents the whether the
13314 // process is connected to an interactive shell.
13315 //
13316 // Type: boolean
13317 // RequirementLevel: Recommended
13318 // Stability: Development
13319 //
13320 // Examples:
13321 ProcessInteractiveKey = attribute.Key("process.interactive")
13322
13323 // ProcessLinuxCgroupKey is the attribute Key conforming to the
13324 // "process.linux.cgroup" semantic conventions. It represents the control group
13325 // associated with the process.
13326 //
13327 // Type: string
13328 // RequirementLevel: Recommended
13329 // Stability: Development
13330 //
13331 // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope",
13332 // "0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"
13333 // Note: Control groups (cgroups) are a kernel feature used to organize and
13334 // manage process resources. This attribute provides the path(s) to the
13335 // cgroup(s) associated with the process, which should match the contents of the
13336 // [/proc/[PID]/cgroup] file.
13337 //
13338 // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html
13339 ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup")
13340
13341 // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
13342 // semantic conventions. It represents the username of the user that owns the
13343 // process.
13344 //
13345 // Type: string
13346 // RequirementLevel: Recommended
13347 // Stability: Development
13348 //
13349 // Examples: "root"
13350 ProcessOwnerKey = attribute.Key("process.owner")
13351
13352 // ProcessParentPIDKey is the attribute Key conforming to the
13353 // "process.parent_pid" semantic conventions. It represents the parent Process
13354 // identifier (PPID).
13355 //
13356 // Type: int
13357 // RequirementLevel: Recommended
13358 // Stability: Development
13359 //
13360 // Examples: 111
13361 ProcessParentPIDKey = attribute.Key("process.parent_pid")
13362
13363 // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
13364 // conventions. It represents the process identifier (PID).
13365 //
13366 // Type: int
13367 // RequirementLevel: Recommended
13368 // Stability: Development
13369 //
13370 // Examples: 1234
13371 ProcessPIDKey = attribute.Key("process.pid")
13372
13373 // ProcessRealUserIDKey is the attribute Key conforming to the
13374 // "process.real_user.id" semantic conventions. It represents the real user ID
13375 // (RUID) of the process.
13376 //
13377 // Type: int
13378 // RequirementLevel: Recommended
13379 // Stability: Development
13380 //
13381 // Examples: 1000
13382 ProcessRealUserIDKey = attribute.Key("process.real_user.id")
13383
13384 // ProcessRealUserNameKey is the attribute Key conforming to the
13385 // "process.real_user.name" semantic conventions. It represents the username of
13386 // the real user of the process.
13387 //
13388 // Type: string
13389 // RequirementLevel: Recommended
13390 // Stability: Development
13391 //
13392 // Examples: "operator"
13393 ProcessRealUserNameKey = attribute.Key("process.real_user.name")
13394
13395 // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
13396 // "process.runtime.description" semantic conventions. It represents an
13397 // additional description about the runtime of the process, for example a
13398 // specific vendor customization of the runtime environment.
13399 //
13400 // Type: string
13401 // RequirementLevel: Recommended
13402 // Stability: Development
13403 //
13404 // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
13405 ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
13406
13407 // ProcessRuntimeNameKey is the attribute Key conforming to the
13408 // "process.runtime.name" semantic conventions. It represents the name of the
13409 // runtime of this process.
13410 //
13411 // Type: string
13412 // RequirementLevel: Recommended
13413 // Stability: Development
13414 //
13415 // Examples: "OpenJDK Runtime Environment"
13416 ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
13417
13418 // ProcessRuntimeVersionKey is the attribute Key conforming to the
13419 // "process.runtime.version" semantic conventions. It represents the version of
13420 // the runtime of this process, as returned by the runtime without modification.
13421 //
13422 // Type: string
13423 // RequirementLevel: Recommended
13424 // Stability: Development
13425 //
13426 // Examples: 14.0.2
13427 ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
13428
13429 // ProcessSavedUserIDKey is the attribute Key conforming to the
13430 // "process.saved_user.id" semantic conventions. It represents the saved user ID
13431 // (SUID) of the process.
13432 //
13433 // Type: int
13434 // RequirementLevel: Recommended
13435 // Stability: Development
13436 //
13437 // Examples: 1002
13438 ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
13439
13440 // ProcessSavedUserNameKey is the attribute Key conforming to the
13441 // "process.saved_user.name" semantic conventions. It represents the username of
13442 // the saved user.
13443 //
13444 // Type: string
13445 // RequirementLevel: Recommended
13446 // Stability: Development
13447 //
13448 // Examples: "operator"
13449 ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
13450
13451 // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
13452 // "process.session_leader.pid" semantic conventions. It represents the PID of
13453 // the process's session leader. This is also the session ID (SID) of the
13454 // process.
13455 //
13456 // Type: int
13457 // RequirementLevel: Recommended
13458 // Stability: Development
13459 //
13460 // Examples: 14
13461 ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
13462
13463 // ProcessStateKey is the attribute Key conforming to the "process.state"
13464 // semantic conventions. It represents the process state, e.g.,
13465 // [Linux Process State Codes].
13466 //
13467 // Type: Enum
13468 // RequirementLevel: Recommended
13469 // Stability: Development
13470 //
13471 // Examples: "running"
13472 //
13473 // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
13474 ProcessStateKey = attribute.Key("process.state")
13475
13476 // ProcessTitleKey is the attribute Key conforming to the "process.title"
13477 // semantic conventions. It represents the process title (proctitle).
13478 //
13479 // Type: string
13480 // RequirementLevel: Recommended
13481 // Stability: Development
13482 //
13483 // Examples: "cat /etc/hostname", "xfce4-session", "bash"
13484 // Note: In many Unix-like systems, process title (proctitle), is the string
13485 // that represents the name or command line of a running process, displayed by
13486 // system monitoring tools like ps, top, and htop.
13487 ProcessTitleKey = attribute.Key("process.title")
13488
13489 // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
13490 // semantic conventions. It represents the effective user ID (EUID) of the
13491 // process.
13492 //
13493 // Type: int
13494 // RequirementLevel: Recommended
13495 // Stability: Development
13496 //
13497 // Examples: 1001
13498 ProcessUserIDKey = attribute.Key("process.user.id")
13499
13500 // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
13501 // semantic conventions. It represents the username of the effective user of the
13502 // process.
13503 //
13504 // Type: string
13505 // RequirementLevel: Recommended
13506 // Stability: Development
13507 //
13508 // Examples: "root"
13509 ProcessUserNameKey = attribute.Key("process.user.name")
13510
13511 // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
13512 // conventions. It represents the virtual process identifier.
13513 //
13514 // Type: int
13515 // RequirementLevel: Recommended
13516 // Stability: Development
13517 //
13518 // Examples: 12
13519 // Note: The process ID within a PID namespace. This is not necessarily unique
13520 // across all processes on the host but it is unique within the process
13521 // namespace that the process exists within.
13522 ProcessVpidKey = attribute.Key("process.vpid")
13523
13524 // ProcessWorkingDirectoryKey is the attribute Key conforming to the
13525 // "process.working_directory" semantic conventions. It represents the working
13526 // directory of the process.
13527 //
13528 // Type: string
13529 // RequirementLevel: Recommended
13530 // Stability: Development
13531 //
13532 // Examples: "/root"
13533 ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
13534 )
13535
13536 // ProcessArgsCount returns an attribute KeyValue conforming to the
13537 // "process.args_count" semantic conventions. It represents the length of the
13538 // process.command_args array.
13539 func ProcessArgsCount(val int) attribute.KeyValue {
13540 return ProcessArgsCountKey.Int(val)
13541 }
13542
13543 // ProcessCommand returns an attribute KeyValue conforming to the
13544 // "process.command" semantic conventions. It represents the command used to
13545 // launch the process (i.e. the command name). On Linux based systems, can be set
13546 // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
13547 // first parameter extracted from `GetCommandLineW`.
13548 func ProcessCommand(val string) attribute.KeyValue {
13549 return ProcessCommandKey.String(val)
13550 }
13551
13552 // ProcessCommandArgs returns an attribute KeyValue conforming to the
13553 // "process.command_args" semantic conventions. It represents the all the command
13554 // arguments (including the command/executable itself) as received by the
13555 // process. On Linux-based systems (and some other Unixoid systems supporting
13556 // procfs), can be set according to the list of null-delimited strings extracted
13557 // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
13558 // argv vector passed to `main`. SHOULD NOT be collected by default unless there
13559 // is sanitization that excludes sensitive data.
13560 func ProcessCommandArgs(val ...string) attribute.KeyValue {
13561 return ProcessCommandArgsKey.StringSlice(val)
13562 }
13563
13564 // ProcessCommandLine returns an attribute KeyValue conforming to the
13565 // "process.command_line" semantic conventions. It represents the full command
13566 // used to launch the process as a single string representing the full command.
13567 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
13568 // you have to assemble it just for monitoring; use `process.command_args`
13569 // instead. SHOULD NOT be collected by default unless there is sanitization that
13570 // excludes sensitive data.
13571 func ProcessCommandLine(val string) attribute.KeyValue {
13572 return ProcessCommandLineKey.String(val)
13573 }
13574
13575 // ProcessCreationTime returns an attribute KeyValue conforming to the
13576 // "process.creation.time" semantic conventions. It represents the date and time
13577 // the process was created, in ISO 8601 format.
13578 func ProcessCreationTime(val string) attribute.KeyValue {
13579 return ProcessCreationTimeKey.String(val)
13580 }
13581
13582 // ProcessEnvironmentVariable returns an attribute KeyValue conforming to the
13583 // "process.environment_variable" semantic conventions. It represents the process
13584 // environment variables, `<key>` being the environment variable name, the value
13585 // being the environment variable value.
13586 func ProcessEnvironmentVariable(key string, val string) attribute.KeyValue {
13587 return attribute.String("process.environment_variable."+key, val)
13588 }
13589
13590 // ProcessExecutableBuildIDGNU returns an attribute KeyValue conforming to the
13591 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
13592 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
13593 func ProcessExecutableBuildIDGNU(val string) attribute.KeyValue {
13594 return ProcessExecutableBuildIDGNUKey.String(val)
13595 }
13596
13597 // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the
13598 // "process.executable.build_id.go" semantic conventions. It represents the Go
13599 // build ID as retrieved by `go tool buildid <go executable>`.
13600 func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
13601 return ProcessExecutableBuildIDGoKey.String(val)
13602 }
13603
13604 // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to
13605 // the "process.executable.build_id.htlhash" semantic conventions. It represents
13606 // the profiling specific build ID for executables. See the OTel specification
13607 // for Profiles for more information.
13608 func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue {
13609 return ProcessExecutableBuildIDHtlhashKey.String(val)
13610 }
13611
13612 // ProcessExecutableName returns an attribute KeyValue conforming to the
13613 // "process.executable.name" semantic conventions. It represents the name of the
13614 // process executable. On Linux based systems, this SHOULD be set to the base
13615 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the
13616 // base name of `GetProcessImageFileNameW`.
13617 func ProcessExecutableName(val string) attribute.KeyValue {
13618 return ProcessExecutableNameKey.String(val)
13619 }
13620
13621 // ProcessExecutablePath returns an attribute KeyValue conforming to the
13622 // "process.executable.path" semantic conventions. It represents the full path to
13623 // the process executable. On Linux based systems, can be set to the target of
13624 // `proc/[pid]/exe`. On Windows, can be set to the result of
13625 // `GetProcessImageFileNameW`.
13626 func ProcessExecutablePath(val string) attribute.KeyValue {
13627 return ProcessExecutablePathKey.String(val)
13628 }
13629
13630 // ProcessExitCode returns an attribute KeyValue conforming to the
13631 // "process.exit.code" semantic conventions. It represents the exit code of the
13632 // process.
13633 func ProcessExitCode(val int) attribute.KeyValue {
13634 return ProcessExitCodeKey.Int(val)
13635 }
13636
13637 // ProcessExitTime returns an attribute KeyValue conforming to the
13638 // "process.exit.time" semantic conventions. It represents the date and time the
13639 // process exited, in ISO 8601 format.
13640 func ProcessExitTime(val string) attribute.KeyValue {
13641 return ProcessExitTimeKey.String(val)
13642 }
13643
13644 // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
13645 // "process.group_leader.pid" semantic conventions. It represents the PID of the
13646 // process's group leader. This is also the process group ID (PGID) of the
13647 // process.
13648 func ProcessGroupLeaderPID(val int) attribute.KeyValue {
13649 return ProcessGroupLeaderPIDKey.Int(val)
13650 }
13651
13652 // ProcessInteractive returns an attribute KeyValue conforming to the
13653 // "process.interactive" semantic conventions. It represents the whether the
13654 // process is connected to an interactive shell.
13655 func ProcessInteractive(val bool) attribute.KeyValue {
13656 return ProcessInteractiveKey.Bool(val)
13657 }
13658
13659 // ProcessLinuxCgroup returns an attribute KeyValue conforming to the
13660 // "process.linux.cgroup" semantic conventions. It represents the control group
13661 // associated with the process.
13662 func ProcessLinuxCgroup(val string) attribute.KeyValue {
13663 return ProcessLinuxCgroupKey.String(val)
13664 }
13665
13666 // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
13667 // semantic conventions. It represents the username of the user that owns the
13668 // process.
13669 func ProcessOwner(val string) attribute.KeyValue {
13670 return ProcessOwnerKey.String(val)
13671 }
13672
13673 // ProcessParentPID returns an attribute KeyValue conforming to the
13674 // "process.parent_pid" semantic conventions. It represents the parent Process
13675 // identifier (PPID).
13676 func ProcessParentPID(val int) attribute.KeyValue {
13677 return ProcessParentPIDKey.Int(val)
13678 }
13679
13680 // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
13681 // semantic conventions. It represents the process identifier (PID).
13682 func ProcessPID(val int) attribute.KeyValue {
13683 return ProcessPIDKey.Int(val)
13684 }
13685
13686 // ProcessRealUserID returns an attribute KeyValue conforming to the
13687 // "process.real_user.id" semantic conventions. It represents the real user ID
13688 // (RUID) of the process.
13689 func ProcessRealUserID(val int) attribute.KeyValue {
13690 return ProcessRealUserIDKey.Int(val)
13691 }
13692
13693 // ProcessRealUserName returns an attribute KeyValue conforming to the
13694 // "process.real_user.name" semantic conventions. It represents the username of
13695 // the real user of the process.
13696 func ProcessRealUserName(val string) attribute.KeyValue {
13697 return ProcessRealUserNameKey.String(val)
13698 }
13699
13700 // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
13701 // "process.runtime.description" semantic conventions. It represents an
13702 // additional description about the runtime of the process, for example a
13703 // specific vendor customization of the runtime environment.
13704 func ProcessRuntimeDescription(val string) attribute.KeyValue {
13705 return ProcessRuntimeDescriptionKey.String(val)
13706 }
13707
13708 // ProcessRuntimeName returns an attribute KeyValue conforming to the
13709 // "process.runtime.name" semantic conventions. It represents the name of the
13710 // runtime of this process.
13711 func ProcessRuntimeName(val string) attribute.KeyValue {
13712 return ProcessRuntimeNameKey.String(val)
13713 }
13714
13715 // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
13716 // "process.runtime.version" semantic conventions. It represents the version of
13717 // the runtime of this process, as returned by the runtime without modification.
13718 func ProcessRuntimeVersion(val string) attribute.KeyValue {
13719 return ProcessRuntimeVersionKey.String(val)
13720 }
13721
13722 // ProcessSavedUserID returns an attribute KeyValue conforming to the
13723 // "process.saved_user.id" semantic conventions. It represents the saved user ID
13724 // (SUID) of the process.
13725 func ProcessSavedUserID(val int) attribute.KeyValue {
13726 return ProcessSavedUserIDKey.Int(val)
13727 }
13728
13729 // ProcessSavedUserName returns an attribute KeyValue conforming to the
13730 // "process.saved_user.name" semantic conventions. It represents the username of
13731 // the saved user.
13732 func ProcessSavedUserName(val string) attribute.KeyValue {
13733 return ProcessSavedUserNameKey.String(val)
13734 }
13735
13736 // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
13737 // "process.session_leader.pid" semantic conventions. It represents the PID of
13738 // the process's session leader. This is also the session ID (SID) of the
13739 // process.
13740 func ProcessSessionLeaderPID(val int) attribute.KeyValue {
13741 return ProcessSessionLeaderPIDKey.Int(val)
13742 }
13743
13744 // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
13745 // semantic conventions. It represents the process title (proctitle).
13746 func ProcessTitle(val string) attribute.KeyValue {
13747 return ProcessTitleKey.String(val)
13748 }
13749
13750 // ProcessUserID returns an attribute KeyValue conforming to the
13751 // "process.user.id" semantic conventions. It represents the effective user ID
13752 // (EUID) of the process.
13753 func ProcessUserID(val int) attribute.KeyValue {
13754 return ProcessUserIDKey.Int(val)
13755 }
13756
13757 // ProcessUserName returns an attribute KeyValue conforming to the
13758 // "process.user.name" semantic conventions. It represents the username of the
13759 // effective user of the process.
13760 func ProcessUserName(val string) attribute.KeyValue {
13761 return ProcessUserNameKey.String(val)
13762 }
13763
13764 // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
13765 // semantic conventions. It represents the virtual process identifier.
13766 func ProcessVpid(val int) attribute.KeyValue {
13767 return ProcessVpidKey.Int(val)
13768 }
13769
13770 // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
13771 // "process.working_directory" semantic conventions. It represents the working
13772 // directory of the process.
13773 func ProcessWorkingDirectory(val string) attribute.KeyValue {
13774 return ProcessWorkingDirectoryKey.String(val)
13775 }
13776
13777 // Enum values for process.context_switch.type
13778 var (
13779 // voluntary
13780 // Stability: development
13781 ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
13782 // involuntary
13783 // Stability: development
13784 ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
13785 )
13786
13787 // Enum values for process.state
13788 var (
13789 // running
13790 // Stability: development
13791 ProcessStateRunning = ProcessStateKey.String("running")
13792 // sleeping
13793 // Stability: development
13794 ProcessStateSleeping = ProcessStateKey.String("sleeping")
13795 // stopped
13796 // Stability: development
13797 ProcessStateStopped = ProcessStateKey.String("stopped")
13798 // defunct
13799 // Stability: development
13800 ProcessStateDefunct = ProcessStateKey.String("defunct")
13801 )
13802
13803 // Namespace: profile
13804 const (
13805 // ProfileFrameTypeKey is the attribute Key conforming to the
13806 // "profile.frame.type" semantic conventions. It represents the describes the
13807 // interpreter or compiler of a single frame.
13808 //
13809 // Type: Enum
13810 // RequirementLevel: Recommended
13811 // Stability: Development
13812 //
13813 // Examples: "cpython"
13814 ProfileFrameTypeKey = attribute.Key("profile.frame.type")
13815 )
13816
13817 // Enum values for profile.frame.type
13818 var (
13819 // [.NET]
13820 //
13821 // Stability: development
13822 //
13823 // [.NET]: https://wikipedia.org/wiki/.NET
13824 ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
13825 // [JVM]
13826 //
13827 // Stability: development
13828 //
13829 // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
13830 ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
13831 // [Kernel]
13832 //
13833 // Stability: development
13834 //
13835 // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
13836 ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
13837 // Can be one of but not limited to [C], [C++], [Go] or [Rust]. If possible, a
13838 // more precise value MUST be used.
13839 //
13840 // Stability: development
13841 //
13842 // [C]: https://wikipedia.org/wiki/C_(programming_language)
13843 // [C++]: https://wikipedia.org/wiki/C%2B%2B
13844 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
13845 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
13846 ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
13847 // [Perl]
13848 //
13849 // Stability: development
13850 //
13851 // [Perl]: https://wikipedia.org/wiki/Perl
13852 ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
13853 // [PHP]
13854 //
13855 // Stability: development
13856 //
13857 // [PHP]: https://wikipedia.org/wiki/PHP
13858 ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
13859 // [Python]
13860 //
13861 // Stability: development
13862 //
13863 // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
13864 ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
13865 // [Ruby]
13866 //
13867 // Stability: development
13868 //
13869 // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
13870 ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
13871 // [V8JS]
13872 //
13873 // Stability: development
13874 //
13875 // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
13876 ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
13877 // [Erlang]
13878 //
13879 // Stability: development
13880 //
13881 // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)
13882 ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam")
13883 // [Go],
13884 //
13885 // Stability: development
13886 //
13887 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
13888 ProfileFrameTypeGo = ProfileFrameTypeKey.String("go")
13889 // [Rust]
13890 //
13891 // Stability: development
13892 //
13893 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
13894 ProfileFrameTypeRust = ProfileFrameTypeKey.String("rust")
13895 )
13896
13897 // Namespace: rpc
13898 const (
13899 // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
13900 // conventions. It represents the fully-qualified logical name of the method
13901 // from the RPC interface perspective.
13902 //
13903 // Type: string
13904 // RequirementLevel: Recommended
13905 // Stability: Release_Candidate
13906 //
13907 // Examples: "com.example.ExampleService/exampleMethod", "EchoService/Echo",
13908 // "_OTHER"
13909 // Note: The method name MAY have unbounded cardinality in edge or error cases.
13910 //
13911 // Some RPC frameworks or libraries provide a fixed set of recognized methods
13912 // for client stubs and server implementations. Instrumentations for such
13913 // frameworks MUST set this attribute to the original method name only
13914 // when the method is recognized by the framework or library.
13915 //
13916 // When the method is not recognized, for example, when the server receives
13917 // a request for a method that is not predefined on the server, or when
13918 // instrumentation is not able to reliably detect if the method is predefined,
13919 // the attribute MUST be set to `_OTHER`. In such cases, tracing
13920 // instrumentations MUST also set `rpc.method_original` attribute to
13921 // the original method value.
13922 //
13923 // If the RPC instrumentation could end up converting valid RPC methods to
13924 // `_OTHER`, then it SHOULD provide a way to configure the list of recognized
13925 // RPC methods.
13926 //
13927 // The `rpc.method` can be different from the name of any implementing
13928 // method/function.
13929 // The `code.function.name` attribute may be used to record the fully-qualified
13930 // method actually executing the call on the server side, or the
13931 // RPC client stub method on the client side.
13932 RPCMethodKey = attribute.Key("rpc.method")
13933
13934 // RPCMethodOriginalKey is the attribute Key conforming to the
13935 // "rpc.method_original" semantic conventions. It represents the original name
13936 // of the method used by the client.
13937 //
13938 // Type: string
13939 // RequirementLevel: Recommended
13940 // Stability: Release_Candidate
13941 //
13942 // Examples: "com.myservice.EchoService/catchAll",
13943 // "com.myservice.EchoService/unknownMethod", "InvalidMethod"
13944 RPCMethodOriginalKey = attribute.Key("rpc.method_original")
13945
13946 // RPCResponseStatusCodeKey is the attribute Key conforming to the
13947 // "rpc.response.status_code" semantic conventions. It represents the status
13948 // code of the RPC returned by the RPC server or generated by the client.
13949 //
13950 // Type: string
13951 // RequirementLevel: Recommended
13952 // Stability: Release_Candidate
13953 //
13954 // Examples: "OK", "DEADLINE_EXCEEDED", "-32602"
13955 // Note: Usually it represents an error code, but may also represent partial
13956 // success, warning, or differentiate between various types of successful
13957 // outcomes.
13958 // Semantic conventions for individual RPC frameworks SHOULD document what
13959 // `rpc.response.status_code` means in the context of that system and which
13960 // values are considered to represent errors.
13961 RPCResponseStatusCodeKey = attribute.Key("rpc.response.status_code")
13962
13963 // RPCSystemNameKey is the attribute Key conforming to the "rpc.system.name"
13964 // semantic conventions. It represents the Remote Procedure Call (RPC) system.
13965 //
13966 // Type: Enum
13967 // RequirementLevel: Recommended
13968 // Stability: Release_Candidate
13969 //
13970 // Examples:
13971 // Note: The client and server RPC systems may differ for the same RPC
13972 // interaction. For example, a client may use Apache Dubbo or Connect RPC to
13973 // communicate with a server that uses gRPC since both protocols provide
13974 // compatibility with gRPC.
13975 RPCSystemNameKey = attribute.Key("rpc.system.name")
13976 )
13977
13978 // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
13979 // semantic conventions. It represents the fully-qualified logical name of the
13980 // method from the RPC interface perspective.
13981 func RPCMethod(val string) attribute.KeyValue {
13982 return RPCMethodKey.String(val)
13983 }
13984
13985 // RPCMethodOriginal returns an attribute KeyValue conforming to the
13986 // "rpc.method_original" semantic conventions. It represents the original name of
13987 // the method used by the client.
13988 func RPCMethodOriginal(val string) attribute.KeyValue {
13989 return RPCMethodOriginalKey.String(val)
13990 }
13991
13992 // RPCRequestMetadata returns an attribute KeyValue conforming to the
13993 // "rpc.request.metadata" semantic conventions. It represents the RPC request
13994 // metadata, `<key>` being the normalized RPC metadata key (lowercase), the value
13995 // being the metadata values.
13996 func RPCRequestMetadata(key string, val ...string) attribute.KeyValue {
13997 return attribute.StringSlice("rpc.request.metadata."+key, val)
13998 }
13999
14000 // RPCResponseMetadata returns an attribute KeyValue conforming to the
14001 // "rpc.response.metadata" semantic conventions. It represents the RPC response
14002 // metadata, `<key>` being the normalized RPC metadata key (lowercase), the value
14003 // being the metadata values.
14004 func RPCResponseMetadata(key string, val ...string) attribute.KeyValue {
14005 return attribute.StringSlice("rpc.response.metadata."+key, val)
14006 }
14007
14008 // RPCResponseStatusCode returns an attribute KeyValue conforming to the
14009 // "rpc.response.status_code" semantic conventions. It represents the status code
14010 // of the RPC returned by the RPC server or generated by the client.
14011 func RPCResponseStatusCode(val string) attribute.KeyValue {
14012 return RPCResponseStatusCodeKey.String(val)
14013 }
14014
14015 // Enum values for rpc.system.name
14016 var (
14017 // [gRPC]
14018 // Stability: release_candidate
14019 //
14020 // [gRPC]: https://grpc.io/
14021 RPCSystemNameGRPC = RPCSystemNameKey.String("grpc")
14022 // [Apache Dubbo]
14023 // Stability: release_candidate
14024 //
14025 // [Apache Dubbo]: https://dubbo.apache.org/
14026 RPCSystemNameDubbo = RPCSystemNameKey.String("dubbo")
14027 // [Connect RPC]
14028 // Stability: development
14029 //
14030 // [Connect RPC]: https://connectrpc.com/
14031 RPCSystemNameConnectrpc = RPCSystemNameKey.String("connectrpc")
14032 // [JSON-RPC]
14033 // Stability: development
14034 //
14035 // [JSON-RPC]: https://www.jsonrpc.org/
14036 RPCSystemNameJSONRPC = RPCSystemNameKey.String("jsonrpc")
14037 )
14038
14039 // Namespace: security_rule
14040 const (
14041 // SecurityRuleCategoryKey is the attribute Key conforming to the
14042 // "security_rule.category" semantic conventions. It represents a categorization
14043 // value keyword used by the entity using the rule for detection of this event.
14044 //
14045 // Type: string
14046 // RequirementLevel: Recommended
14047 // Stability: Development
14048 //
14049 // Examples: "Attempted Information Leak"
14050 SecurityRuleCategoryKey = attribute.Key("security_rule.category")
14051
14052 // SecurityRuleDescriptionKey is the attribute Key conforming to the
14053 // "security_rule.description" semantic conventions. It represents the
14054 // description of the rule generating the event.
14055 //
14056 // Type: string
14057 // RequirementLevel: Recommended
14058 // Stability: Development
14059 //
14060 // Examples: "Block requests to public DNS over HTTPS / TLS protocols"
14061 SecurityRuleDescriptionKey = attribute.Key("security_rule.description")
14062
14063 // SecurityRuleLicenseKey is the attribute Key conforming to the
14064 // "security_rule.license" semantic conventions. It represents the name of the
14065 // license under which the rule used to generate this event is made available.
14066 //
14067 // Type: string
14068 // RequirementLevel: Recommended
14069 // Stability: Development
14070 //
14071 // Examples: "Apache 2.0"
14072 SecurityRuleLicenseKey = attribute.Key("security_rule.license")
14073
14074 // SecurityRuleNameKey is the attribute Key conforming to the
14075 // "security_rule.name" semantic conventions. It represents the name of the rule
14076 // or signature generating the event.
14077 //
14078 // Type: string
14079 // RequirementLevel: Recommended
14080 // Stability: Development
14081 //
14082 // Examples: "BLOCK_DNS_over_TLS"
14083 SecurityRuleNameKey = attribute.Key("security_rule.name")
14084
14085 // SecurityRuleReferenceKey is the attribute Key conforming to the
14086 // "security_rule.reference" semantic conventions. It represents the reference
14087 // URL to additional information about the rule used to generate this event.
14088 //
14089 // Type: string
14090 // RequirementLevel: Recommended
14091 // Stability: Development
14092 //
14093 // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS"
14094 // Note: The URL can point to the vendor’s documentation about the rule. If
14095 // that’s not available, it can also be a link to a more general page
14096 // describing this type of alert.
14097 SecurityRuleReferenceKey = attribute.Key("security_rule.reference")
14098
14099 // SecurityRuleRulesetNameKey is the attribute Key conforming to the
14100 // "security_rule.ruleset.name" semantic conventions. It represents the name of
14101 // the ruleset, policy, group, or parent category in which the rule used to
14102 // generate this event is a member.
14103 //
14104 // Type: string
14105 // RequirementLevel: Recommended
14106 // Stability: Development
14107 //
14108 // Examples: "Standard_Protocol_Filters"
14109 SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name")
14110
14111 // SecurityRuleUUIDKey is the attribute Key conforming to the
14112 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
14113 // unique within the scope of a set or group of agents, observers, or other
14114 // entities using the rule for detection of this event.
14115 //
14116 // Type: string
14117 // RequirementLevel: Recommended
14118 // Stability: Development
14119 //
14120 // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011"
14121 SecurityRuleUUIDKey = attribute.Key("security_rule.uuid")
14122
14123 // SecurityRuleVersionKey is the attribute Key conforming to the
14124 // "security_rule.version" semantic conventions. It represents the version /
14125 // revision of the rule being used for analysis.
14126 //
14127 // Type: string
14128 // RequirementLevel: Recommended
14129 // Stability: Development
14130 //
14131 // Examples: "1.0.0"
14132 SecurityRuleVersionKey = attribute.Key("security_rule.version")
14133 )
14134
14135 // SecurityRuleCategory returns an attribute KeyValue conforming to the
14136 // "security_rule.category" semantic conventions. It represents a categorization
14137 // value keyword used by the entity using the rule for detection of this event.
14138 func SecurityRuleCategory(val string) attribute.KeyValue {
14139 return SecurityRuleCategoryKey.String(val)
14140 }
14141
14142 // SecurityRuleDescription returns an attribute KeyValue conforming to the
14143 // "security_rule.description" semantic conventions. It represents the
14144 // description of the rule generating the event.
14145 func SecurityRuleDescription(val string) attribute.KeyValue {
14146 return SecurityRuleDescriptionKey.String(val)
14147 }
14148
14149 // SecurityRuleLicense returns an attribute KeyValue conforming to the
14150 // "security_rule.license" semantic conventions. It represents the name of the
14151 // license under which the rule used to generate this event is made available.
14152 func SecurityRuleLicense(val string) attribute.KeyValue {
14153 return SecurityRuleLicenseKey.String(val)
14154 }
14155
14156 // SecurityRuleName returns an attribute KeyValue conforming to the
14157 // "security_rule.name" semantic conventions. It represents the name of the rule
14158 // or signature generating the event.
14159 func SecurityRuleName(val string) attribute.KeyValue {
14160 return SecurityRuleNameKey.String(val)
14161 }
14162
14163 // SecurityRuleReference returns an attribute KeyValue conforming to the
14164 // "security_rule.reference" semantic conventions. It represents the reference
14165 // URL to additional information about the rule used to generate this event.
14166 func SecurityRuleReference(val string) attribute.KeyValue {
14167 return SecurityRuleReferenceKey.String(val)
14168 }
14169
14170 // SecurityRuleRulesetName returns an attribute KeyValue conforming to the
14171 // "security_rule.ruleset.name" semantic conventions. It represents the name of
14172 // the ruleset, policy, group, or parent category in which the rule used to
14173 // generate this event is a member.
14174 func SecurityRuleRulesetName(val string) attribute.KeyValue {
14175 return SecurityRuleRulesetNameKey.String(val)
14176 }
14177
14178 // SecurityRuleUUID returns an attribute KeyValue conforming to the
14179 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
14180 // unique within the scope of a set or group of agents, observers, or other
14181 // entities using the rule for detection of this event.
14182 func SecurityRuleUUID(val string) attribute.KeyValue {
14183 return SecurityRuleUUIDKey.String(val)
14184 }
14185
14186 // SecurityRuleVersion returns an attribute KeyValue conforming to the
14187 // "security_rule.version" semantic conventions. It represents the version /
14188 // revision of the rule being used for analysis.
14189 func SecurityRuleVersion(val string) attribute.KeyValue {
14190 return SecurityRuleVersionKey.String(val)
14191 }
14192
14193 // Namespace: server
14194 const (
14195 // ServerAddressKey is the attribute Key conforming to the "server.address"
14196 // semantic conventions. It represents the server domain name if available
14197 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
14198 //
14199 // Type: string
14200 // RequirementLevel: Recommended
14201 // Stability: Stable
14202 //
14203 // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
14204 // Note: When observed from the client side, and when communicating through an
14205 // intermediary, `server.address` SHOULD represent the server address behind any
14206 // intermediaries, for example proxies, if it's available.
14207 ServerAddressKey = attribute.Key("server.address")
14208
14209 // ServerPortKey is the attribute Key conforming to the "server.port" semantic
14210 // conventions. It represents the server port number.
14211 //
14212 // Type: int
14213 // RequirementLevel: Recommended
14214 // Stability: Stable
14215 //
14216 // Examples: 80, 8080, 443
14217 // Note: When observed from the client side, and when communicating through an
14218 // intermediary, `server.port` SHOULD represent the server port behind any
14219 // intermediaries, for example proxies, if it's available.
14220 ServerPortKey = attribute.Key("server.port")
14221 )
14222
14223 // ServerAddress returns an attribute KeyValue conforming to the "server.address"
14224 // semantic conventions. It represents the server domain name if available
14225 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
14226 func ServerAddress(val string) attribute.KeyValue {
14227 return ServerAddressKey.String(val)
14228 }
14229
14230 // ServerPort returns an attribute KeyValue conforming to the "server.port"
14231 // semantic conventions. It represents the server port number.
14232 func ServerPort(val int) attribute.KeyValue {
14233 return ServerPortKey.Int(val)
14234 }
14235
14236 // Namespace: service
14237 const (
14238 // ServiceCriticalityKey is the attribute Key conforming to the
14239 // "service.criticality" semantic conventions. It represents the operational
14240 // criticality of the service.
14241 //
14242 // Type: Enum
14243 // RequirementLevel: Recommended
14244 // Stability: Development
14245 //
14246 // Examples: "critical", "high", "medium", "low"
14247 // Note: Application developers are encouraged to set `service.criticality` to
14248 // express the operational importance of their services. Telemetry consumers MAY
14249 // use this attribute to optimize telemetry collection or improve user
14250 // experience.
14251 ServiceCriticalityKey = attribute.Key("service.criticality")
14252
14253 // ServiceInstanceIDKey is the attribute Key conforming to the
14254 // "service.instance.id" semantic conventions. It represents the string ID of
14255 // the service instance.
14256 //
14257 // Type: string
14258 // RequirementLevel: Recommended
14259 // Stability: Stable
14260 //
14261 // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
14262 // Note: MUST be unique for each instance of the same
14263 // `service.namespace,service.name` pair (in other words
14264 // `service.namespace,service.name,service.instance.id` triplet MUST be globally
14265 // unique). The ID helps to
14266 // distinguish instances of the same service that exist at the same time (e.g.
14267 // instances of a horizontally scaled
14268 // service).
14269 //
14270 // Implementations, such as SDKs, are recommended to generate a random Version 1
14271 // or Version 4 [RFC
14272 // 4122] UUID, but are free to use an inherent unique ID as
14273 // the source of
14274 // this value if stability is desirable. In that case, the ID SHOULD be used as
14275 // source of a UUID Version 5 and
14276 // SHOULD use the following UUID as the namespace:
14277 // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
14278 //
14279 // UUIDs are typically recommended, as only an opaque value for the purposes of
14280 // identifying a service instance is
14281 // needed. Similar to what can be seen in the man page for the
14282 // [`/etc/machine-id`] file, the underlying
14283 // data, such as pod name and namespace should be treated as confidential, being
14284 // the user's choice to expose it
14285 // or not via another resource attribute.
14286 //
14287 // For applications running behind an application server (like unicorn), we do
14288 // not recommend using one identifier
14289 // for all processes participating in the application. Instead, it's recommended
14290 // each division (e.g. a worker
14291 // thread in unicorn) to have its own instance.id.
14292 //
14293 // It's not recommended for a Collector to set `service.instance.id` if it can't
14294 // unambiguously determine the
14295 // service instance that is generating that telemetry. For instance, creating an
14296 // UUID based on `pod.name` will
14297 // likely be wrong, as the Collector might not know from which container within
14298 // that pod the telemetry originated.
14299 // However, Collectors can set the `service.instance.id` if they can
14300 // unambiguously determine the service instance
14301 // for that telemetry. This is typically the case for scraping receivers, as
14302 // they know the target address and
14303 // port.
14304 //
14305 // [RFC
14306 // 4122]: https://www.ietf.org/rfc/rfc4122.txt
14307 // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html
14308 ServiceInstanceIDKey = attribute.Key("service.instance.id")
14309
14310 // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
14311 // conventions. It represents the logical name of the service.
14312 //
14313 // Type: string
14314 // RequirementLevel: Recommended
14315 // Stability: Stable
14316 //
14317 // Examples: "shoppingcart"
14318 // Note: MUST be the same for all instances of horizontally scaled services. If
14319 // the value was not specified, SDKs MUST fallback to `unknown_service:`
14320 // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
14321 // If `process.executable.name` is not available, the value MUST be set to
14322 // `unknown_service`.
14323 //
14324 // [`process.executable.name`]: process.md
14325 ServiceNameKey = attribute.Key("service.name")
14326
14327 // ServiceNamespaceKey is the attribute Key conforming to the
14328 // "service.namespace" semantic conventions. It represents a namespace for
14329 // `service.name`.
14330 //
14331 // Type: string
14332 // RequirementLevel: Recommended
14333 // Stability: Stable
14334 //
14335 // Examples: "Shop"
14336 // Note: A string value having a meaning that helps to distinguish a group of
14337 // services, for example the team name that owns a group of services.
14338 // `service.name` is expected to be unique within the same namespace. If
14339 // `service.namespace` is not specified in the Resource then `service.name` is
14340 // expected to be unique for all services that have no explicit namespace
14341 // defined (so the empty/unspecified namespace is simply one more valid
14342 // namespace). Zero-length namespace string is assumed equal to unspecified
14343 // namespace.
14344 ServiceNamespaceKey = attribute.Key("service.namespace")
14345
14346 // ServicePeerNameKey is the attribute Key conforming to the "service.peer.name"
14347 // semantic conventions. It represents the logical name of the service on the
14348 // other side of the connection. SHOULD be equal to the actual [`service.name`]
14349 // resource attribute of the remote service if any.
14350 //
14351 // Type: string
14352 // RequirementLevel: Recommended
14353 // Stability: Development
14354 //
14355 // Examples: "shoppingcart"
14356 //
14357 // [`service.name`]: /docs/resource/README.md#service
14358 ServicePeerNameKey = attribute.Key("service.peer.name")
14359
14360 // ServicePeerNamespaceKey is the attribute Key conforming to the
14361 // "service.peer.namespace" semantic conventions. It represents the logical
14362 // namespace of the service on the other side of the connection. SHOULD be equal
14363 // to the actual [`service.namespace`] resource attribute of the remote service
14364 // if any.
14365 //
14366 // Type: string
14367 // RequirementLevel: Recommended
14368 // Stability: Development
14369 //
14370 // Examples: "Shop"
14371 //
14372 // [`service.namespace`]: /docs/resource/README.md#service
14373 ServicePeerNamespaceKey = attribute.Key("service.peer.namespace")
14374
14375 // ServiceVersionKey is the attribute Key conforming to the "service.version"
14376 // semantic conventions. It represents the version string of the service
14377 // component. The format is not defined by these conventions.
14378 //
14379 // Type: string
14380 // RequirementLevel: Recommended
14381 // Stability: Stable
14382 //
14383 // Examples: "2.0.0", "a01dbef8a"
14384 ServiceVersionKey = attribute.Key("service.version")
14385 )
14386
14387 // ServiceInstanceID returns an attribute KeyValue conforming to the
14388 // "service.instance.id" semantic conventions. It represents the string ID of the
14389 // service instance.
14390 func ServiceInstanceID(val string) attribute.KeyValue {
14391 return ServiceInstanceIDKey.String(val)
14392 }
14393
14394 // ServiceName returns an attribute KeyValue conforming to the "service.name"
14395 // semantic conventions. It represents the logical name of the service.
14396 func ServiceName(val string) attribute.KeyValue {
14397 return ServiceNameKey.String(val)
14398 }
14399
14400 // ServiceNamespace returns an attribute KeyValue conforming to the
14401 // "service.namespace" semantic conventions. It represents a namespace for
14402 // `service.name`.
14403 func ServiceNamespace(val string) attribute.KeyValue {
14404 return ServiceNamespaceKey.String(val)
14405 }
14406
14407 // ServicePeerName returns an attribute KeyValue conforming to the
14408 // "service.peer.name" semantic conventions. It represents the logical name of
14409 // the service on the other side of the connection. SHOULD be equal to the actual
14410 // [`service.name`] resource attribute of the remote service if any.
14411 //
14412 // [`service.name`]: /docs/resource/README.md#service
14413 func ServicePeerName(val string) attribute.KeyValue {
14414 return ServicePeerNameKey.String(val)
14415 }
14416
14417 // ServicePeerNamespace returns an attribute KeyValue conforming to the
14418 // "service.peer.namespace" semantic conventions. It represents the logical
14419 // namespace of the service on the other side of the connection. SHOULD be equal
14420 // to the actual [`service.namespace`] resource attribute of the remote service
14421 // if any.
14422 //
14423 // [`service.namespace`]: /docs/resource/README.md#service
14424 func ServicePeerNamespace(val string) attribute.KeyValue {
14425 return ServicePeerNamespaceKey.String(val)
14426 }
14427
14428 // ServiceVersion returns an attribute KeyValue conforming to the
14429 // "service.version" semantic conventions. It represents the version string of
14430 // the service component. The format is not defined by these conventions.
14431 func ServiceVersion(val string) attribute.KeyValue {
14432 return ServiceVersionKey.String(val)
14433 }
14434
14435 // Enum values for service.criticality
14436 var (
14437 // Service is business-critical; downtime directly impacts revenue, user
14438 // experience, or core functionality.
14439 //
14440 // Stability: development
14441 ServiceCriticalityCritical = ServiceCriticalityKey.String("critical")
14442 // Service is important but has degradation tolerance or fallback mechanisms.
14443 //
14444 // Stability: development
14445 ServiceCriticalityHigh = ServiceCriticalityKey.String("high")
14446 // Service provides supplementary functionality; degradation has limited user
14447 // impact.
14448 //
14449 // Stability: development
14450 ServiceCriticalityMedium = ServiceCriticalityKey.String("medium")
14451 // Service is non-essential to core operations; used for background tasks or
14452 // internal tools.
14453 //
14454 // Stability: development
14455 ServiceCriticalityLow = ServiceCriticalityKey.String("low")
14456 )
14457
14458 // Namespace: session
14459 const (
14460 // SessionIDKey is the attribute Key conforming to the "session.id" semantic
14461 // conventions. It represents a unique id to identify a session.
14462 //
14463 // Type: string
14464 // RequirementLevel: Recommended
14465 // Stability: Development
14466 //
14467 // Examples: 00112233-4455-6677-8899-aabbccddeeff
14468 SessionIDKey = attribute.Key("session.id")
14469
14470 // SessionPreviousIDKey is the attribute Key conforming to the
14471 // "session.previous_id" semantic conventions. It represents the previous
14472 // `session.id` for this user, when known.
14473 //
14474 // Type: string
14475 // RequirementLevel: Recommended
14476 // Stability: Development
14477 //
14478 // Examples: 00112233-4455-6677-8899-aabbccddeeff
14479 SessionPreviousIDKey = attribute.Key("session.previous_id")
14480 )
14481
14482 // SessionID returns an attribute KeyValue conforming to the "session.id"
14483 // semantic conventions. It represents a unique id to identify a session.
14484 func SessionID(val string) attribute.KeyValue {
14485 return SessionIDKey.String(val)
14486 }
14487
14488 // SessionPreviousID returns an attribute KeyValue conforming to the
14489 // "session.previous_id" semantic conventions. It represents the previous
14490 // `session.id` for this user, when known.
14491 func SessionPreviousID(val string) attribute.KeyValue {
14492 return SessionPreviousIDKey.String(val)
14493 }
14494
14495 // Namespace: signalr
14496 const (
14497 // SignalRConnectionStatusKey is the attribute Key conforming to the
14498 // "signalr.connection.status" semantic conventions. It represents the signalR
14499 // HTTP connection closure status.
14500 //
14501 // Type: Enum
14502 // RequirementLevel: Recommended
14503 // Stability: Stable
14504 //
14505 // Examples: "app_shutdown", "timeout"
14506 SignalRConnectionStatusKey = attribute.Key("signalr.connection.status")
14507
14508 // SignalRTransportKey is the attribute Key conforming to the
14509 // "signalr.transport" semantic conventions. It represents the
14510 // [SignalR transport type].
14511 //
14512 // Type: Enum
14513 // RequirementLevel: Recommended
14514 // Stability: Stable
14515 //
14516 // Examples: "web_sockets", "long_polling"
14517 //
14518 // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
14519 SignalRTransportKey = attribute.Key("signalr.transport")
14520 )
14521
14522 // Enum values for signalr.connection.status
14523 var (
14524 // The connection was closed normally.
14525 // Stability: stable
14526 SignalRConnectionStatusNormalClosure = SignalRConnectionStatusKey.String("normal_closure")
14527 // The connection was closed due to a timeout.
14528 // Stability: stable
14529 SignalRConnectionStatusTimeout = SignalRConnectionStatusKey.String("timeout")
14530 // The connection was closed because the app is shutting down.
14531 // Stability: stable
14532 SignalRConnectionStatusAppShutdown = SignalRConnectionStatusKey.String("app_shutdown")
14533 )
14534
14535 // Enum values for signalr.transport
14536 var (
14537 // ServerSentEvents protocol
14538 // Stability: stable
14539 SignalRTransportServerSentEvents = SignalRTransportKey.String("server_sent_events")
14540 // LongPolling protocol
14541 // Stability: stable
14542 SignalRTransportLongPolling = SignalRTransportKey.String("long_polling")
14543 // WebSockets protocol
14544 // Stability: stable
14545 SignalRTransportWebSockets = SignalRTransportKey.String("web_sockets")
14546 )
14547
14548 // Namespace: source
14549 const (
14550 // SourceAddressKey is the attribute Key conforming to the "source.address"
14551 // semantic conventions. It represents the source address - domain name if
14552 // available without reverse DNS lookup; otherwise, IP address or Unix domain
14553 // socket name.
14554 //
14555 // Type: string
14556 // RequirementLevel: Recommended
14557 // Stability: Development
14558 //
14559 // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
14560 // Note: When observed from the destination side, and when communicating through
14561 // an intermediary, `source.address` SHOULD represent the source address behind
14562 // any intermediaries, for example proxies, if it's available.
14563 SourceAddressKey = attribute.Key("source.address")
14564
14565 // SourcePortKey is the attribute Key conforming to the "source.port" semantic
14566 // conventions. It represents the source port number.
14567 //
14568 // Type: int
14569 // RequirementLevel: Recommended
14570 // Stability: Development
14571 //
14572 // Examples: 3389, 2888
14573 SourcePortKey = attribute.Key("source.port")
14574 )
14575
14576 // SourceAddress returns an attribute KeyValue conforming to the "source.address"
14577 // semantic conventions. It represents the source address - domain name if
14578 // available without reverse DNS lookup; otherwise, IP address or Unix domain
14579 // socket name.
14580 func SourceAddress(val string) attribute.KeyValue {
14581 return SourceAddressKey.String(val)
14582 }
14583
14584 // SourcePort returns an attribute KeyValue conforming to the "source.port"
14585 // semantic conventions. It represents the source port number.
14586 func SourcePort(val int) attribute.KeyValue {
14587 return SourcePortKey.Int(val)
14588 }
14589
14590 // Namespace: system
14591 const (
14592 // SystemDeviceKey is the attribute Key conforming to the "system.device"
14593 // semantic conventions. It represents the device identifier.
14594 //
14595 // Type: string
14596 // RequirementLevel: Recommended
14597 // Stability: Development
14598 //
14599 // Examples: "(identifier)"
14600 SystemDeviceKey = attribute.Key("system.device")
14601
14602 // SystemFilesystemModeKey is the attribute Key conforming to the
14603 // "system.filesystem.mode" semantic conventions. It represents the filesystem
14604 // mode.
14605 //
14606 // Type: string
14607 // RequirementLevel: Recommended
14608 // Stability: Development
14609 //
14610 // Examples: "rw, ro"
14611 SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
14612
14613 // SystemFilesystemMountpointKey is the attribute Key conforming to the
14614 // "system.filesystem.mountpoint" semantic conventions. It represents the
14615 // filesystem mount path.
14616 //
14617 // Type: string
14618 // RequirementLevel: Recommended
14619 // Stability: Development
14620 //
14621 // Examples: "/mnt/data"
14622 SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
14623
14624 // SystemFilesystemStateKey is the attribute Key conforming to the
14625 // "system.filesystem.state" semantic conventions. It represents the filesystem
14626 // state.
14627 //
14628 // Type: Enum
14629 // RequirementLevel: Recommended
14630 // Stability: Development
14631 //
14632 // Examples: "used"
14633 SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
14634
14635 // SystemFilesystemTypeKey is the attribute Key conforming to the
14636 // "system.filesystem.type" semantic conventions. It represents the filesystem
14637 // type.
14638 //
14639 // Type: Enum
14640 // RequirementLevel: Recommended
14641 // Stability: Development
14642 //
14643 // Examples: "ext4"
14644 SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
14645
14646 // SystemMemoryLinuxSlabStateKey is the attribute Key conforming to the
14647 // "system.memory.linux.slab.state" semantic conventions. It represents the
14648 // Linux Slab memory state.
14649 //
14650 // Type: Enum
14651 // RequirementLevel: Recommended
14652 // Stability: Development
14653 //
14654 // Examples: "reclaimable", "unreclaimable"
14655 SystemMemoryLinuxSlabStateKey = attribute.Key("system.memory.linux.slab.state")
14656
14657 // SystemMemoryStateKey is the attribute Key conforming to the
14658 // "system.memory.state" semantic conventions. It represents the memory state.
14659 //
14660 // Type: Enum
14661 // RequirementLevel: Recommended
14662 // Stability: Development
14663 //
14664 // Examples: "free", "cached"
14665 SystemMemoryStateKey = attribute.Key("system.memory.state")
14666
14667 // SystemPagingDirectionKey is the attribute Key conforming to the
14668 // "system.paging.direction" semantic conventions. It represents the paging
14669 // access direction.
14670 //
14671 // Type: Enum
14672 // RequirementLevel: Recommended
14673 // Stability: Development
14674 //
14675 // Examples: "in"
14676 SystemPagingDirectionKey = attribute.Key("system.paging.direction")
14677
14678 // SystemPagingFaultTypeKey is the attribute Key conforming to the
14679 // "system.paging.fault.type" semantic conventions. It represents the paging
14680 // fault type.
14681 //
14682 // Type: Enum
14683 // RequirementLevel: Recommended
14684 // Stability: Development
14685 //
14686 // Examples: "minor"
14687 SystemPagingFaultTypeKey = attribute.Key("system.paging.fault.type")
14688
14689 // SystemPagingStateKey is the attribute Key conforming to the
14690 // "system.paging.state" semantic conventions. It represents the memory paging
14691 // state.
14692 //
14693 // Type: Enum
14694 // RequirementLevel: Recommended
14695 // Stability: Development
14696 //
14697 // Examples: "free"
14698 SystemPagingStateKey = attribute.Key("system.paging.state")
14699 )
14700
14701 // SystemDevice returns an attribute KeyValue conforming to the "system.device"
14702 // semantic conventions. It represents the device identifier.
14703 func SystemDevice(val string) attribute.KeyValue {
14704 return SystemDeviceKey.String(val)
14705 }
14706
14707 // SystemFilesystemMode returns an attribute KeyValue conforming to the
14708 // "system.filesystem.mode" semantic conventions. It represents the filesystem
14709 // mode.
14710 func SystemFilesystemMode(val string) attribute.KeyValue {
14711 return SystemFilesystemModeKey.String(val)
14712 }
14713
14714 // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
14715 // "system.filesystem.mountpoint" semantic conventions. It represents the
14716 // filesystem mount path.
14717 func SystemFilesystemMountpoint(val string) attribute.KeyValue {
14718 return SystemFilesystemMountpointKey.String(val)
14719 }
14720
14721 // Enum values for system.filesystem.state
14722 var (
14723 // used
14724 // Stability: development
14725 SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
14726 // free
14727 // Stability: development
14728 SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
14729 // reserved
14730 // Stability: development
14731 SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
14732 )
14733
14734 // Enum values for system.filesystem.type
14735 var (
14736 // fat32
14737 // Stability: development
14738 SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
14739 // exfat
14740 // Stability: development
14741 SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
14742 // ntfs
14743 // Stability: development
14744 SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
14745 // refs
14746 // Stability: development
14747 SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
14748 // hfsplus
14749 // Stability: development
14750 SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
14751 // ext4
14752 // Stability: development
14753 SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
14754 )
14755
14756 // Enum values for system.memory.linux.slab.state
14757 var (
14758 // reclaimable
14759 // Stability: development
14760 SystemMemoryLinuxSlabStateReclaimable = SystemMemoryLinuxSlabStateKey.String("reclaimable")
14761 // unreclaimable
14762 // Stability: development
14763 SystemMemoryLinuxSlabStateUnreclaimable = SystemMemoryLinuxSlabStateKey.String("unreclaimable")
14764 )
14765
14766 // Enum values for system.memory.state
14767 var (
14768 // Actual used virtual memory in bytes.
14769 // Stability: development
14770 SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
14771 // free
14772 // Stability: development
14773 SystemMemoryStateFree = SystemMemoryStateKey.String("free")
14774 // buffers
14775 // Stability: development
14776 SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
14777 // cached
14778 // Stability: development
14779 SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
14780 )
14781
14782 // Enum values for system.paging.direction
14783 var (
14784 // in
14785 // Stability: development
14786 SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
14787 // out
14788 // Stability: development
14789 SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
14790 )
14791
14792 // Enum values for system.paging.fault.type
14793 var (
14794 // major
14795 // Stability: development
14796 SystemPagingFaultTypeMajor = SystemPagingFaultTypeKey.String("major")
14797 // minor
14798 // Stability: development
14799 SystemPagingFaultTypeMinor = SystemPagingFaultTypeKey.String("minor")
14800 )
14801
14802 // Enum values for system.paging.state
14803 var (
14804 // used
14805 // Stability: development
14806 SystemPagingStateUsed = SystemPagingStateKey.String("used")
14807 // free
14808 // Stability: development
14809 SystemPagingStateFree = SystemPagingStateKey.String("free")
14810 )
14811
14812 // Namespace: telemetry
14813 const (
14814 // TelemetryDistroNameKey is the attribute Key conforming to the
14815 // "telemetry.distro.name" semantic conventions. It represents the name of the
14816 // auto instrumentation agent or distribution, if used.
14817 //
14818 // Type: string
14819 // RequirementLevel: Recommended
14820 // Stability: Development
14821 //
14822 // Examples: "parts-unlimited-java"
14823 // Note: Official auto instrumentation agents and distributions SHOULD set the
14824 // `telemetry.distro.name` attribute to
14825 // a string starting with `opentelemetry-`, e.g.
14826 // `opentelemetry-java-instrumentation`.
14827 TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
14828
14829 // TelemetryDistroVersionKey is the attribute Key conforming to the
14830 // "telemetry.distro.version" semantic conventions. It represents the version
14831 // string of the auto instrumentation agent or distribution, if used.
14832 //
14833 // Type: string
14834 // RequirementLevel: Recommended
14835 // Stability: Development
14836 //
14837 // Examples: "1.2.3"
14838 TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
14839
14840 // TelemetrySDKLanguageKey is the attribute Key conforming to the
14841 // "telemetry.sdk.language" semantic conventions. It represents the language of
14842 // the telemetry SDK.
14843 //
14844 // Type: Enum
14845 // RequirementLevel: Recommended
14846 // Stability: Stable
14847 //
14848 // Examples:
14849 TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
14850
14851 // TelemetrySDKNameKey is the attribute Key conforming to the
14852 // "telemetry.sdk.name" semantic conventions. It represents the name of the
14853 // telemetry SDK as defined above.
14854 //
14855 // Type: string
14856 // RequirementLevel: Recommended
14857 // Stability: Stable
14858 //
14859 // Examples: "opentelemetry"
14860 // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
14861 // `opentelemetry`.
14862 // If another SDK, like a fork or a vendor-provided implementation, is used,
14863 // this SDK MUST set the
14864 // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
14865 // this SDK's main entry point
14866 // or another suitable identifier depending on the language.
14867 // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
14868 // All custom identifiers SHOULD be stable across different versions of an
14869 // implementation.
14870 TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
14871
14872 // TelemetrySDKVersionKey is the attribute Key conforming to the
14873 // "telemetry.sdk.version" semantic conventions. It represents the version
14874 // string of the telemetry SDK.
14875 //
14876 // Type: string
14877 // RequirementLevel: Recommended
14878 // Stability: Stable
14879 //
14880 // Examples: "1.2.3"
14881 TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
14882 )
14883
14884 // TelemetryDistroName returns an attribute KeyValue conforming to the
14885 // "telemetry.distro.name" semantic conventions. It represents the name of the
14886 // auto instrumentation agent or distribution, if used.
14887 func TelemetryDistroName(val string) attribute.KeyValue {
14888 return TelemetryDistroNameKey.String(val)
14889 }
14890
14891 // TelemetryDistroVersion returns an attribute KeyValue conforming to the
14892 // "telemetry.distro.version" semantic conventions. It represents the version
14893 // string of the auto instrumentation agent or distribution, if used.
14894 func TelemetryDistroVersion(val string) attribute.KeyValue {
14895 return TelemetryDistroVersionKey.String(val)
14896 }
14897
14898 // TelemetrySDKName returns an attribute KeyValue conforming to the
14899 // "telemetry.sdk.name" semantic conventions. It represents the name of the
14900 // telemetry SDK as defined above.
14901 func TelemetrySDKName(val string) attribute.KeyValue {
14902 return TelemetrySDKNameKey.String(val)
14903 }
14904
14905 // TelemetrySDKVersion returns an attribute KeyValue conforming to the
14906 // "telemetry.sdk.version" semantic conventions. It represents the version string
14907 // of the telemetry SDK.
14908 func TelemetrySDKVersion(val string) attribute.KeyValue {
14909 return TelemetrySDKVersionKey.String(val)
14910 }
14911
14912 // Enum values for telemetry.sdk.language
14913 var (
14914 // cpp
14915 // Stability: stable
14916 TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
14917 // dotnet
14918 // Stability: stable
14919 TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
14920 // erlang
14921 // Stability: stable
14922 TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
14923 // go
14924 // Stability: stable
14925 TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
14926 // java
14927 // Stability: stable
14928 TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
14929 // nodejs
14930 // Stability: stable
14931 TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
14932 // php
14933 // Stability: stable
14934 TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
14935 // python
14936 // Stability: stable
14937 TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
14938 // ruby
14939 // Stability: stable
14940 TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
14941 // rust
14942 // Stability: stable
14943 TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
14944 // swift
14945 // Stability: stable
14946 TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
14947 // webjs
14948 // Stability: stable
14949 TelemetrySDKLanguageWebJS = TelemetrySDKLanguageKey.String("webjs")
14950 )
14951
14952 // Namespace: test
14953 const (
14954 // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
14955 // semantic conventions. It represents the fully qualified human readable name
14956 // of the [test case].
14957 //
14958 // Type: string
14959 // RequirementLevel: Recommended
14960 // Stability: Development
14961 //
14962 // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
14963 // "ExampleTestCase1_test1"
14964 //
14965 // [test case]: https://wikipedia.org/wiki/Test_case
14966 TestCaseNameKey = attribute.Key("test.case.name")
14967
14968 // TestCaseResultStatusKey is the attribute Key conforming to the
14969 // "test.case.result.status" semantic conventions. It represents the status of
14970 // the actual test case result from test execution.
14971 //
14972 // Type: Enum
14973 // RequirementLevel: Recommended
14974 // Stability: Development
14975 //
14976 // Examples: "pass", "fail"
14977 TestCaseResultStatusKey = attribute.Key("test.case.result.status")
14978
14979 // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
14980 // semantic conventions. It represents the human readable name of a [test suite]
14981 // .
14982 //
14983 // Type: string
14984 // RequirementLevel: Recommended
14985 // Stability: Development
14986 //
14987 // Examples: "TestSuite1"
14988 //
14989 // [test suite]: https://wikipedia.org/wiki/Test_suite
14990 TestSuiteNameKey = attribute.Key("test.suite.name")
14991
14992 // TestSuiteRunStatusKey is the attribute Key conforming to the
14993 // "test.suite.run.status" semantic conventions. It represents the status of the
14994 // test suite run.
14995 //
14996 // Type: Enum
14997 // RequirementLevel: Recommended
14998 // Stability: Development
14999 //
15000 // Examples: "success", "failure", "skipped", "aborted", "timed_out",
15001 // "in_progress"
15002 TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
15003 )
15004
15005 // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
15006 // semantic conventions. It represents the fully qualified human readable name of
15007 // the [test case].
15008 //
15009 // [test case]: https://wikipedia.org/wiki/Test_case
15010 func TestCaseName(val string) attribute.KeyValue {
15011 return TestCaseNameKey.String(val)
15012 }
15013
15014 // TestSuiteName returns an attribute KeyValue conforming to the
15015 // "test.suite.name" semantic conventions. It represents the human readable name
15016 // of a [test suite].
15017 //
15018 // [test suite]: https://wikipedia.org/wiki/Test_suite
15019 func TestSuiteName(val string) attribute.KeyValue {
15020 return TestSuiteNameKey.String(val)
15021 }
15022
15023 // Enum values for test.case.result.status
15024 var (
15025 // pass
15026 // Stability: development
15027 TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
15028 // fail
15029 // Stability: development
15030 TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
15031 )
15032
15033 // Enum values for test.suite.run.status
15034 var (
15035 // success
15036 // Stability: development
15037 TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
15038 // failure
15039 // Stability: development
15040 TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
15041 // skipped
15042 // Stability: development
15043 TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
15044 // aborted
15045 // Stability: development
15046 TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
15047 // timed_out
15048 // Stability: development
15049 TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
15050 // in_progress
15051 // Stability: development
15052 TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
15053 )
15054
15055 // Namespace: thread
15056 const (
15057 // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
15058 // conventions. It represents the current "managed" thread ID (as opposed to OS
15059 // thread ID).
15060 //
15061 // Type: int
15062 // RequirementLevel: Recommended
15063 // Stability: Development
15064 //
15065 // Note:
15066 // Examples of where the value can be extracted from:
15067 //
15068 // | Language or platform | Source |
15069 // | --- | --- |
15070 // | JVM | `Thread.currentThread().threadId()` |
15071 // | .NET | `Thread.CurrentThread.ManagedThreadId` |
15072 // | Python | `threading.current_thread().ident` |
15073 // | Ruby | `Thread.current.object_id` |
15074 // | C++ | `std::this_thread::get_id()` |
15075 // | Erlang | `erlang:self()` |
15076 ThreadIDKey = attribute.Key("thread.id")
15077
15078 // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
15079 // conventions. It represents the current thread name.
15080 //
15081 // Type: string
15082 // RequirementLevel: Recommended
15083 // Stability: Development
15084 //
15085 // Examples: main
15086 // Note:
15087 // Examples of where the value can be extracted from:
15088 //
15089 // | Language or platform | Source |
15090 // | --- | --- |
15091 // | JVM | `Thread.currentThread().getName()` |
15092 // | .NET | `Thread.CurrentThread.Name` |
15093 // | Python | `threading.current_thread().name` |
15094 // | Ruby | `Thread.current.name` |
15095 // | Erlang | `erlang:process_info(self(), registered_name)` |
15096 ThreadNameKey = attribute.Key("thread.name")
15097 )
15098
15099 // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
15100 // conventions. It represents the current "managed" thread ID (as opposed to OS
15101 // thread ID).
15102 func ThreadID(val int) attribute.KeyValue {
15103 return ThreadIDKey.Int(val)
15104 }
15105
15106 // ThreadName returns an attribute KeyValue conforming to the "thread.name"
15107 // semantic conventions. It represents the current thread name.
15108 func ThreadName(val string) attribute.KeyValue {
15109 return ThreadNameKey.String(val)
15110 }
15111
15112 // Namespace: tls
15113 const (
15114 // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
15115 // conventions. It represents the string indicating the [cipher] used during the
15116 // current connection.
15117 //
15118 // Type: string
15119 // RequirementLevel: Recommended
15120 // Stability: Development
15121 //
15122 // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
15123 // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
15124 // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
15125 // of the [registered TLS Cipher Suits].
15126 //
15127 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
15128 // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
15129 TLSCipherKey = attribute.Key("tls.cipher")
15130
15131 // TLSClientCertificateKey is the attribute Key conforming to the
15132 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
15133 // stand-alone certificate offered by the client. This is usually
15134 // mutually-exclusive of `client.certificate_chain` since this value also exists
15135 // in that list.
15136 //
15137 // Type: string
15138 // RequirementLevel: Recommended
15139 // Stability: Development
15140 //
15141 // Examples: "MII..."
15142 TLSClientCertificateKey = attribute.Key("tls.client.certificate")
15143
15144 // TLSClientCertificateChainKey is the attribute Key conforming to the
15145 // "tls.client.certificate_chain" semantic conventions. It represents the array
15146 // of PEM-encoded certificates that make up the certificate chain offered by the
15147 // client. This is usually mutually-exclusive of `client.certificate` since that
15148 // value should be the first certificate in the chain.
15149 //
15150 // Type: string[]
15151 // RequirementLevel: Recommended
15152 // Stability: Development
15153 //
15154 // Examples: "MII...", "MI..."
15155 TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
15156
15157 // TLSClientHashMd5Key is the attribute Key conforming to the
15158 // "tls.client.hash.md5" semantic conventions. It represents the certificate
15159 // fingerprint using the MD5 digest of DER-encoded version of certificate
15160 // offered by the client. For consistency with other hash values, this value
15161 // should be formatted as an uppercase hash.
15162 //
15163 // Type: string
15164 // RequirementLevel: Recommended
15165 // Stability: Development
15166 //
15167 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
15168 TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
15169
15170 // TLSClientHashSha1Key is the attribute Key conforming to the
15171 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
15172 // fingerprint using the SHA1 digest of DER-encoded version of certificate
15173 // offered by the client. For consistency with other hash values, this value
15174 // should be formatted as an uppercase hash.
15175 //
15176 // Type: string
15177 // RequirementLevel: Recommended
15178 // Stability: Development
15179 //
15180 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
15181 TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
15182
15183 // TLSClientHashSha256Key is the attribute Key conforming to the
15184 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
15185 // fingerprint using the SHA256 digest of DER-encoded version of certificate
15186 // offered by the client. For consistency with other hash values, this value
15187 // should be formatted as an uppercase hash.
15188 //
15189 // Type: string
15190 // RequirementLevel: Recommended
15191 // Stability: Development
15192 //
15193 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
15194 TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
15195
15196 // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
15197 // semantic conventions. It represents the distinguished name of [subject] of
15198 // the issuer of the x.509 certificate presented by the client.
15199 //
15200 // Type: string
15201 // RequirementLevel: Recommended
15202 // Stability: Development
15203 //
15204 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
15205 //
15206 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
15207 TLSClientIssuerKey = attribute.Key("tls.client.issuer")
15208
15209 // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
15210 // semantic conventions. It represents a hash that identifies clients based on
15211 // how they perform an SSL/TLS handshake.
15212 //
15213 // Type: string
15214 // RequirementLevel: Recommended
15215 // Stability: Development
15216 //
15217 // Examples: "d4e5b18d6b55c71272893221c96ba240"
15218 TLSClientJa3Key = attribute.Key("tls.client.ja3")
15219
15220 // TLSClientNotAfterKey is the attribute Key conforming to the
15221 // "tls.client.not_after" semantic conventions. It represents the date/Time
15222 // indicating when client certificate is no longer considered valid.
15223 //
15224 // Type: string
15225 // RequirementLevel: Recommended
15226 // Stability: Development
15227 //
15228 // Examples: "2021-01-01T00:00:00.000Z"
15229 TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
15230
15231 // TLSClientNotBeforeKey is the attribute Key conforming to the
15232 // "tls.client.not_before" semantic conventions. It represents the date/Time
15233 // indicating when client certificate is first considered valid.
15234 //
15235 // Type: string
15236 // RequirementLevel: Recommended
15237 // Stability: Development
15238 //
15239 // Examples: "1970-01-01T00:00:00.000Z"
15240 TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
15241
15242 // TLSClientSubjectKey is the attribute Key conforming to the
15243 // "tls.client.subject" semantic conventions. It represents the distinguished
15244 // name of subject of the x.509 certificate presented by the client.
15245 //
15246 // Type: string
15247 // RequirementLevel: Recommended
15248 // Stability: Development
15249 //
15250 // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
15251 TLSClientSubjectKey = attribute.Key("tls.client.subject")
15252
15253 // TLSClientSupportedCiphersKey is the attribute Key conforming to the
15254 // "tls.client.supported_ciphers" semantic conventions. It represents the array
15255 // of ciphers offered by the client during the client hello.
15256 //
15257 // Type: string[]
15258 // RequirementLevel: Recommended
15259 // Stability: Development
15260 //
15261 // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
15262 // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
15263 TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
15264
15265 // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
15266 // conventions. It represents the string indicating the curve used for the given
15267 // cipher, when applicable.
15268 //
15269 // Type: string
15270 // RequirementLevel: Recommended
15271 // Stability: Development
15272 //
15273 // Examples: "secp256r1"
15274 TLSCurveKey = attribute.Key("tls.curve")
15275
15276 // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
15277 // semantic conventions. It represents the boolean flag indicating if the TLS
15278 // negotiation was successful and transitioned to an encrypted tunnel.
15279 //
15280 // Type: boolean
15281 // RequirementLevel: Recommended
15282 // Stability: Development
15283 //
15284 // Examples: true
15285 TLSEstablishedKey = attribute.Key("tls.established")
15286
15287 // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
15288 // semantic conventions. It represents the string indicating the protocol being
15289 // tunneled. Per the values in the [IANA registry], this string should be lower
15290 // case.
15291 //
15292 // Type: string
15293 // RequirementLevel: Recommended
15294 // Stability: Development
15295 //
15296 // Examples: "http/1.1"
15297 //
15298 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
15299 TLSNextProtocolKey = attribute.Key("tls.next_protocol")
15300
15301 // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
15302 // semantic conventions. It represents the normalized lowercase protocol name
15303 // parsed from original string of the negotiated [SSL/TLS protocol version].
15304 //
15305 // Type: Enum
15306 // RequirementLevel: Recommended
15307 // Stability: Development
15308 //
15309 // Examples:
15310 //
15311 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
15312 TLSProtocolNameKey = attribute.Key("tls.protocol.name")
15313
15314 // TLSProtocolVersionKey is the attribute Key conforming to the
15315 // "tls.protocol.version" semantic conventions. It represents the numeric part
15316 // of the version parsed from the original string of the negotiated
15317 // [SSL/TLS protocol version].
15318 //
15319 // Type: string
15320 // RequirementLevel: Recommended
15321 // Stability: Development
15322 //
15323 // Examples: "1.2", "3"
15324 //
15325 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
15326 TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
15327
15328 // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
15329 // conventions. It represents the boolean flag indicating if this TLS connection
15330 // was resumed from an existing TLS negotiation.
15331 //
15332 // Type: boolean
15333 // RequirementLevel: Recommended
15334 // Stability: Development
15335 //
15336 // Examples: true
15337 TLSResumedKey = attribute.Key("tls.resumed")
15338
15339 // TLSServerCertificateKey is the attribute Key conforming to the
15340 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
15341 // stand-alone certificate offered by the server. This is usually
15342 // mutually-exclusive of `server.certificate_chain` since this value also exists
15343 // in that list.
15344 //
15345 // Type: string
15346 // RequirementLevel: Recommended
15347 // Stability: Development
15348 //
15349 // Examples: "MII..."
15350 TLSServerCertificateKey = attribute.Key("tls.server.certificate")
15351
15352 // TLSServerCertificateChainKey is the attribute Key conforming to the
15353 // "tls.server.certificate_chain" semantic conventions. It represents the array
15354 // of PEM-encoded certificates that make up the certificate chain offered by the
15355 // server. This is usually mutually-exclusive of `server.certificate` since that
15356 // value should be the first certificate in the chain.
15357 //
15358 // Type: string[]
15359 // RequirementLevel: Recommended
15360 // Stability: Development
15361 //
15362 // Examples: "MII...", "MI..."
15363 TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
15364
15365 // TLSServerHashMd5Key is the attribute Key conforming to the
15366 // "tls.server.hash.md5" semantic conventions. It represents the certificate
15367 // fingerprint using the MD5 digest of DER-encoded version of certificate
15368 // offered by the server. For consistency with other hash values, this value
15369 // should be formatted as an uppercase hash.
15370 //
15371 // Type: string
15372 // RequirementLevel: Recommended
15373 // Stability: Development
15374 //
15375 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
15376 TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
15377
15378 // TLSServerHashSha1Key is the attribute Key conforming to the
15379 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
15380 // fingerprint using the SHA1 digest of DER-encoded version of certificate
15381 // offered by the server. For consistency with other hash values, this value
15382 // should be formatted as an uppercase hash.
15383 //
15384 // Type: string
15385 // RequirementLevel: Recommended
15386 // Stability: Development
15387 //
15388 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
15389 TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
15390
15391 // TLSServerHashSha256Key is the attribute Key conforming to the
15392 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
15393 // fingerprint using the SHA256 digest of DER-encoded version of certificate
15394 // offered by the server. For consistency with other hash values, this value
15395 // should be formatted as an uppercase hash.
15396 //
15397 // Type: string
15398 // RequirementLevel: Recommended
15399 // Stability: Development
15400 //
15401 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
15402 TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
15403
15404 // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
15405 // semantic conventions. It represents the distinguished name of [subject] of
15406 // the issuer of the x.509 certificate presented by the client.
15407 //
15408 // Type: string
15409 // RequirementLevel: Recommended
15410 // Stability: Development
15411 //
15412 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
15413 //
15414 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
15415 TLSServerIssuerKey = attribute.Key("tls.server.issuer")
15416
15417 // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
15418 // semantic conventions. It represents a hash that identifies servers based on
15419 // how they perform an SSL/TLS handshake.
15420 //
15421 // Type: string
15422 // RequirementLevel: Recommended
15423 // Stability: Development
15424 //
15425 // Examples: "d4e5b18d6b55c71272893221c96ba240"
15426 TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
15427
15428 // TLSServerNotAfterKey is the attribute Key conforming to the
15429 // "tls.server.not_after" semantic conventions. It represents the date/Time
15430 // indicating when server certificate is no longer considered valid.
15431 //
15432 // Type: string
15433 // RequirementLevel: Recommended
15434 // Stability: Development
15435 //
15436 // Examples: "2021-01-01T00:00:00.000Z"
15437 TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
15438
15439 // TLSServerNotBeforeKey is the attribute Key conforming to the
15440 // "tls.server.not_before" semantic conventions. It represents the date/Time
15441 // indicating when server certificate is first considered valid.
15442 //
15443 // Type: string
15444 // RequirementLevel: Recommended
15445 // Stability: Development
15446 //
15447 // Examples: "1970-01-01T00:00:00.000Z"
15448 TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
15449
15450 // TLSServerSubjectKey is the attribute Key conforming to the
15451 // "tls.server.subject" semantic conventions. It represents the distinguished
15452 // name of subject of the x.509 certificate presented by the server.
15453 //
15454 // Type: string
15455 // RequirementLevel: Recommended
15456 // Stability: Development
15457 //
15458 // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
15459 TLSServerSubjectKey = attribute.Key("tls.server.subject")
15460 )
15461
15462 // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
15463 // semantic conventions. It represents the string indicating the [cipher] used
15464 // during the current connection.
15465 //
15466 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
15467 func TLSCipher(val string) attribute.KeyValue {
15468 return TLSCipherKey.String(val)
15469 }
15470
15471 // TLSClientCertificate returns an attribute KeyValue conforming to the
15472 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
15473 // stand-alone certificate offered by the client. This is usually
15474 // mutually-exclusive of `client.certificate_chain` since this value also exists
15475 // in that list.
15476 func TLSClientCertificate(val string) attribute.KeyValue {
15477 return TLSClientCertificateKey.String(val)
15478 }
15479
15480 // TLSClientCertificateChain returns an attribute KeyValue conforming to the
15481 // "tls.client.certificate_chain" semantic conventions. It represents the array
15482 // of PEM-encoded certificates that make up the certificate chain offered by the
15483 // client. This is usually mutually-exclusive of `client.certificate` since that
15484 // value should be the first certificate in the chain.
15485 func TLSClientCertificateChain(val ...string) attribute.KeyValue {
15486 return TLSClientCertificateChainKey.StringSlice(val)
15487 }
15488
15489 // TLSClientHashMd5 returns an attribute KeyValue conforming to the
15490 // "tls.client.hash.md5" semantic conventions. It represents the certificate
15491 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
15492 // by the client. For consistency with other hash values, this value should be
15493 // formatted as an uppercase hash.
15494 func TLSClientHashMd5(val string) attribute.KeyValue {
15495 return TLSClientHashMd5Key.String(val)
15496 }
15497
15498 // TLSClientHashSha1 returns an attribute KeyValue conforming to the
15499 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
15500 // fingerprint using the SHA1 digest of DER-encoded version of certificate
15501 // offered by the client. For consistency with other hash values, this value
15502 // should be formatted as an uppercase hash.
15503 func TLSClientHashSha1(val string) attribute.KeyValue {
15504 return TLSClientHashSha1Key.String(val)
15505 }
15506
15507 // TLSClientHashSha256 returns an attribute KeyValue conforming to the
15508 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
15509 // fingerprint using the SHA256 digest of DER-encoded version of certificate
15510 // offered by the client. For consistency with other hash values, this value
15511 // should be formatted as an uppercase hash.
15512 func TLSClientHashSha256(val string) attribute.KeyValue {
15513 return TLSClientHashSha256Key.String(val)
15514 }
15515
15516 // TLSClientIssuer returns an attribute KeyValue conforming to the
15517 // "tls.client.issuer" semantic conventions. It represents the distinguished name
15518 // of [subject] of the issuer of the x.509 certificate presented by the client.
15519 //
15520 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
15521 func TLSClientIssuer(val string) attribute.KeyValue {
15522 return TLSClientIssuerKey.String(val)
15523 }
15524
15525 // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
15526 // semantic conventions. It represents a hash that identifies clients based on
15527 // how they perform an SSL/TLS handshake.
15528 func TLSClientJa3(val string) attribute.KeyValue {
15529 return TLSClientJa3Key.String(val)
15530 }
15531
15532 // TLSClientNotAfter returns an attribute KeyValue conforming to the
15533 // "tls.client.not_after" semantic conventions. It represents the date/Time
15534 // indicating when client certificate is no longer considered valid.
15535 func TLSClientNotAfter(val string) attribute.KeyValue {
15536 return TLSClientNotAfterKey.String(val)
15537 }
15538
15539 // TLSClientNotBefore returns an attribute KeyValue conforming to the
15540 // "tls.client.not_before" semantic conventions. It represents the date/Time
15541 // indicating when client certificate is first considered valid.
15542 func TLSClientNotBefore(val string) attribute.KeyValue {
15543 return TLSClientNotBeforeKey.String(val)
15544 }
15545
15546 // TLSClientSubject returns an attribute KeyValue conforming to the
15547 // "tls.client.subject" semantic conventions. It represents the distinguished
15548 // name of subject of the x.509 certificate presented by the client.
15549 func TLSClientSubject(val string) attribute.KeyValue {
15550 return TLSClientSubjectKey.String(val)
15551 }
15552
15553 // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
15554 // "tls.client.supported_ciphers" semantic conventions. It represents the array
15555 // of ciphers offered by the client during the client hello.
15556 func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
15557 return TLSClientSupportedCiphersKey.StringSlice(val)
15558 }
15559
15560 // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
15561 // conventions. It represents the string indicating the curve used for the given
15562 // cipher, when applicable.
15563 func TLSCurve(val string) attribute.KeyValue {
15564 return TLSCurveKey.String(val)
15565 }
15566
15567 // TLSEstablished returns an attribute KeyValue conforming to the
15568 // "tls.established" semantic conventions. It represents the boolean flag
15569 // indicating if the TLS negotiation was successful and transitioned to an
15570 // encrypted tunnel.
15571 func TLSEstablished(val bool) attribute.KeyValue {
15572 return TLSEstablishedKey.Bool(val)
15573 }
15574
15575 // TLSNextProtocol returns an attribute KeyValue conforming to the
15576 // "tls.next_protocol" semantic conventions. It represents the string indicating
15577 // the protocol being tunneled. Per the values in the [IANA registry], this
15578 // string should be lower case.
15579 //
15580 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
15581 func TLSNextProtocol(val string) attribute.KeyValue {
15582 return TLSNextProtocolKey.String(val)
15583 }
15584
15585 // TLSProtocolVersion returns an attribute KeyValue conforming to the
15586 // "tls.protocol.version" semantic conventions. It represents the numeric part of
15587 // the version parsed from the original string of the negotiated
15588 // [SSL/TLS protocol version].
15589 //
15590 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
15591 func TLSProtocolVersion(val string) attribute.KeyValue {
15592 return TLSProtocolVersionKey.String(val)
15593 }
15594
15595 // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
15596 // semantic conventions. It represents the boolean flag indicating if this TLS
15597 // connection was resumed from an existing TLS negotiation.
15598 func TLSResumed(val bool) attribute.KeyValue {
15599 return TLSResumedKey.Bool(val)
15600 }
15601
15602 // TLSServerCertificate returns an attribute KeyValue conforming to the
15603 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
15604 // stand-alone certificate offered by the server. This is usually
15605 // mutually-exclusive of `server.certificate_chain` since this value also exists
15606 // in that list.
15607 func TLSServerCertificate(val string) attribute.KeyValue {
15608 return TLSServerCertificateKey.String(val)
15609 }
15610
15611 // TLSServerCertificateChain returns an attribute KeyValue conforming to the
15612 // "tls.server.certificate_chain" semantic conventions. It represents the array
15613 // of PEM-encoded certificates that make up the certificate chain offered by the
15614 // server. This is usually mutually-exclusive of `server.certificate` since that
15615 // value should be the first certificate in the chain.
15616 func TLSServerCertificateChain(val ...string) attribute.KeyValue {
15617 return TLSServerCertificateChainKey.StringSlice(val)
15618 }
15619
15620 // TLSServerHashMd5 returns an attribute KeyValue conforming to the
15621 // "tls.server.hash.md5" semantic conventions. It represents the certificate
15622 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
15623 // by the server. For consistency with other hash values, this value should be
15624 // formatted as an uppercase hash.
15625 func TLSServerHashMd5(val string) attribute.KeyValue {
15626 return TLSServerHashMd5Key.String(val)
15627 }
15628
15629 // TLSServerHashSha1 returns an attribute KeyValue conforming to the
15630 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
15631 // fingerprint using the SHA1 digest of DER-encoded version of certificate
15632 // offered by the server. For consistency with other hash values, this value
15633 // should be formatted as an uppercase hash.
15634 func TLSServerHashSha1(val string) attribute.KeyValue {
15635 return TLSServerHashSha1Key.String(val)
15636 }
15637
15638 // TLSServerHashSha256 returns an attribute KeyValue conforming to the
15639 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
15640 // fingerprint using the SHA256 digest of DER-encoded version of certificate
15641 // offered by the server. For consistency with other hash values, this value
15642 // should be formatted as an uppercase hash.
15643 func TLSServerHashSha256(val string) attribute.KeyValue {
15644 return TLSServerHashSha256Key.String(val)
15645 }
15646
15647 // TLSServerIssuer returns an attribute KeyValue conforming to the
15648 // "tls.server.issuer" semantic conventions. It represents the distinguished name
15649 // of [subject] of the issuer of the x.509 certificate presented by the client.
15650 //
15651 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
15652 func TLSServerIssuer(val string) attribute.KeyValue {
15653 return TLSServerIssuerKey.String(val)
15654 }
15655
15656 // TLSServerJa3s returns an attribute KeyValue conforming to the
15657 // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
15658 // servers based on how they perform an SSL/TLS handshake.
15659 func TLSServerJa3s(val string) attribute.KeyValue {
15660 return TLSServerJa3sKey.String(val)
15661 }
15662
15663 // TLSServerNotAfter returns an attribute KeyValue conforming to the
15664 // "tls.server.not_after" semantic conventions. It represents the date/Time
15665 // indicating when server certificate is no longer considered valid.
15666 func TLSServerNotAfter(val string) attribute.KeyValue {
15667 return TLSServerNotAfterKey.String(val)
15668 }
15669
15670 // TLSServerNotBefore returns an attribute KeyValue conforming to the
15671 // "tls.server.not_before" semantic conventions. It represents the date/Time
15672 // indicating when server certificate is first considered valid.
15673 func TLSServerNotBefore(val string) attribute.KeyValue {
15674 return TLSServerNotBeforeKey.String(val)
15675 }
15676
15677 // TLSServerSubject returns an attribute KeyValue conforming to the
15678 // "tls.server.subject" semantic conventions. It represents the distinguished
15679 // name of subject of the x.509 certificate presented by the server.
15680 func TLSServerSubject(val string) attribute.KeyValue {
15681 return TLSServerSubjectKey.String(val)
15682 }
15683
15684 // Enum values for tls.protocol.name
15685 var (
15686 // ssl
15687 // Stability: development
15688 TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
15689 // tls
15690 // Stability: development
15691 TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
15692 )
15693
15694 // Namespace: url
15695 const (
15696 // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
15697 // conventions. It represents the domain extracted from the `url.full`, such as
15698 // "opentelemetry.io".
15699 //
15700 // Type: string
15701 // RequirementLevel: Recommended
15702 // Stability: Development
15703 //
15704 // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
15705 // "[1080:0:0:0:8:800:200C:417A]"
15706 // Note: In some cases a URL may refer to an IP and/or port directly, without a
15707 // domain name. In this case, the IP address would go to the domain field. If
15708 // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
15709 // and `]` characters should also be captured in the domain field.
15710 //
15711 // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
15712 URLDomainKey = attribute.Key("url.domain")
15713
15714 // URLExtensionKey is the attribute Key conforming to the "url.extension"
15715 // semantic conventions. It represents the file extension extracted from the
15716 // `url.full`, excluding the leading dot.
15717 //
15718 // Type: string
15719 // RequirementLevel: Recommended
15720 // Stability: Development
15721 //
15722 // Examples: "png", "gz"
15723 // Note: The file extension is only set if it exists, as not every url has a
15724 // file extension. When the file name has multiple extensions `example.tar.gz`,
15725 // only the last one should be captured `gz`, not `tar.gz`.
15726 URLExtensionKey = attribute.Key("url.extension")
15727
15728 // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
15729 // conventions. It represents the [URI fragment] component.
15730 //
15731 // Type: string
15732 // RequirementLevel: Recommended
15733 // Stability: Stable
15734 //
15735 // Examples: "SemConv"
15736 //
15737 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
15738 URLFragmentKey = attribute.Key("url.fragment")
15739
15740 // URLFullKey is the attribute Key conforming to the "url.full" semantic
15741 // conventions. It represents the absolute URL describing a network resource
15742 // according to [RFC3986].
15743 //
15744 // Type: string
15745 // RequirementLevel: Recommended
15746 // Stability: Stable
15747 //
15748 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
15749 // Note: For network calls, URL usually has
15750 // `scheme://host[:port][path][?query][#fragment]` format, where the fragment
15751 // is not transmitted over HTTP, but if it is known, it SHOULD be included
15752 // nevertheless.
15753 //
15754 // `url.full` MUST NOT contain credentials passed via URL in form of
15755 // `https://username:[email protected]/`.
15756 // In such case username and password SHOULD be redacted and attribute's value
15757 // SHOULD be `https://REDACTED:[email protected]/`.
15758 //
15759 // `url.full` SHOULD capture the absolute URL when it is available (or can be
15760 // reconstructed).
15761 //
15762 // Sensitive content provided in `url.full` SHOULD be scrubbed when
15763 // instrumentations can identify it.
15764 //
15765 //
15766 // Query string values for the following keys SHOULD be redacted by default and
15767 // replaced by the
15768 // value `REDACTED`:
15769 //
15770 // - [`AWSAccessKeyId`]
15771 // - [`Signature`]
15772 // - [`sig`]
15773 // - [`X-Goog-Signature`]
15774 //
15775 // This list is subject to change over time.
15776 //
15777 // Matching of query parameter keys against the sensitive list SHOULD be
15778 // case-sensitive.
15779 //
15780 //
15781 // Instrumentation MAY provide a way to override this list via declarative
15782 // configuration.
15783 // If so, it SHOULD use the `sensitive_query_parameters` property
15784 // (an array of case-sensitive strings with minimum items 0) under
15785 // `.instrumentation/development.general.sanitization.url`.
15786 // This list is a full override of the default sensitive query parameter keys,
15787 // it is not a list of keys in addition to the defaults.
15788 //
15789 // When a query string value is redacted, the query string key SHOULD still be
15790 // preserved, e.g.
15791 // `https://www.example.com/path?color=blue&sig=REDACTED`.
15792 //
15793 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
15794 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
15795 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
15796 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
15797 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
15798 URLFullKey = attribute.Key("url.full")
15799
15800 // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
15801 // conventions. It represents the unmodified original URL as seen in the event
15802 // source.
15803 //
15804 // Type: string
15805 // RequirementLevel: Recommended
15806 // Stability: Development
15807 //
15808 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
15809 // "search?q=OpenTelemetry"
15810 // Note: In network monitoring, the observed URL may be a full URL, whereas in
15811 // access logs, the URL is often just represented as a path. This field is meant
15812 // to represent the URL as it was observed, complete or not.
15813 // `url.original` might contain credentials passed via URL in form of
15814 // `https://username:[email protected]/`. In such case password and
15815 // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
15816 URLOriginalKey = attribute.Key("url.original")
15817
15818 // URLPathKey is the attribute Key conforming to the "url.path" semantic
15819 // conventions. It represents the [URI path] component.
15820 //
15821 // Type: string
15822 // RequirementLevel: Recommended
15823 // Stability: Stable
15824 //
15825 // Examples: "/search"
15826 // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
15827 // instrumentations can identify it.
15828 //
15829 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
15830 URLPathKey = attribute.Key("url.path")
15831
15832 // URLPortKey is the attribute Key conforming to the "url.port" semantic
15833 // conventions. It represents the port extracted from the `url.full`.
15834 //
15835 // Type: int
15836 // RequirementLevel: Recommended
15837 // Stability: Development
15838 //
15839 // Examples: 443
15840 URLPortKey = attribute.Key("url.port")
15841
15842 // URLQueryKey is the attribute Key conforming to the "url.query" semantic
15843 // conventions. It represents the [URI query] component.
15844 //
15845 // Type: string
15846 // RequirementLevel: Recommended
15847 // Stability: Stable
15848 //
15849 // Examples: "q=OpenTelemetry"
15850 // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
15851 // instrumentations can identify it.
15852 //
15853 //
15854 // Query string values for the following keys SHOULD be redacted by default and
15855 // replaced by the value `REDACTED`:
15856 //
15857 // - [`AWSAccessKeyId`]
15858 // - [`Signature`]
15859 // - [`sig`]
15860 // - [`X-Goog-Signature`]
15861 //
15862 // This list is subject to change over time.
15863 //
15864 // Matching of query parameter keys against the sensitive list SHOULD be
15865 // case-sensitive.
15866 //
15867 // Instrumentation MAY provide a way to override this list via declarative
15868 // configuration.
15869 // If so, it SHOULD use the `sensitive_query_parameters` property
15870 // (an array of case-sensitive strings with minimum items 0) under
15871 // `.instrumentation/development.general.sanitization.url`.
15872 // This list is a full override of the default sensitive query parameter keys,
15873 // it is not a list of keys in addition to the defaults.
15874 //
15875 // When a query string value is redacted, the query string key SHOULD still be
15876 // preserved, e.g.
15877 // `q=OpenTelemetry&sig=REDACTED`.
15878 //
15879 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
15880 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
15881 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
15882 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
15883 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
15884 URLQueryKey = attribute.Key("url.query")
15885
15886 // URLRegisteredDomainKey is the attribute Key conforming to the
15887 // "url.registered_domain" semantic conventions. It represents the highest
15888 // registered url domain, stripped of the subdomain.
15889 //
15890 // Type: string
15891 // RequirementLevel: Recommended
15892 // Stability: Development
15893 //
15894 // Examples: "example.com", "foo.co.uk"
15895 // Note: This value can be determined precisely with the [public suffix list].
15896 // For example, the registered domain for `foo.example.com` is `example.com`.
15897 // Trying to approximate this by simply taking the last two labels will not work
15898 // well for TLDs such as `co.uk`.
15899 //
15900 // [public suffix list]: https://publicsuffix.org/
15901 URLRegisteredDomainKey = attribute.Key("url.registered_domain")
15902
15903 // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
15904 // conventions. It represents the [URI scheme] component identifying the used
15905 // protocol.
15906 //
15907 // Type: string
15908 // RequirementLevel: Recommended
15909 // Stability: Stable
15910 //
15911 // Examples: "https", "ftp", "telnet"
15912 //
15913 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
15914 URLSchemeKey = attribute.Key("url.scheme")
15915
15916 // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
15917 // semantic conventions. It represents the subdomain portion of a fully
15918 // qualified domain name includes all of the names except the host name under
15919 // the registered_domain. In a partially qualified domain, or if the
15920 // qualification level of the full name cannot be determined, subdomain contains
15921 // all of the names below the registered domain.
15922 //
15923 // Type: string
15924 // RequirementLevel: Recommended
15925 // Stability: Development
15926 //
15927 // Examples: "east", "sub2.sub1"
15928 // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
15929 // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
15930 // subdomain field should contain `sub2.sub1`, with no trailing period.
15931 URLSubdomainKey = attribute.Key("url.subdomain")
15932
15933 // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
15934 // conventions. It represents the low-cardinality template of an
15935 // [absolute path reference].
15936 //
15937 // Type: string
15938 // RequirementLevel: Recommended
15939 // Stability: Development
15940 //
15941 // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
15942 //
15943 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
15944 URLTemplateKey = attribute.Key("url.template")
15945
15946 // URLTopLevelDomainKey is the attribute Key conforming to the
15947 // "url.top_level_domain" semantic conventions. It represents the effective top
15948 // level domain (eTLD), also known as the domain suffix, is the last part of the
15949 // domain name. For example, the top level domain for example.com is `com`.
15950 //
15951 // Type: string
15952 // RequirementLevel: Recommended
15953 // Stability: Development
15954 //
15955 // Examples: "com", "co.uk"
15956 // Note: This value can be determined precisely with the [public suffix list].
15957 //
15958 // [public suffix list]: https://publicsuffix.org/
15959 URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
15960 )
15961
15962 // URLDomain returns an attribute KeyValue conforming to the "url.domain"
15963 // semantic conventions. It represents the domain extracted from the `url.full`,
15964 // such as "opentelemetry.io".
15965 func URLDomain(val string) attribute.KeyValue {
15966 return URLDomainKey.String(val)
15967 }
15968
15969 // URLExtension returns an attribute KeyValue conforming to the "url.extension"
15970 // semantic conventions. It represents the file extension extracted from the
15971 // `url.full`, excluding the leading dot.
15972 func URLExtension(val string) attribute.KeyValue {
15973 return URLExtensionKey.String(val)
15974 }
15975
15976 // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
15977 // semantic conventions. It represents the [URI fragment] component.
15978 //
15979 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
15980 func URLFragment(val string) attribute.KeyValue {
15981 return URLFragmentKey.String(val)
15982 }
15983
15984 // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
15985 // conventions. It represents the absolute URL describing a network resource
15986 // according to [RFC3986].
15987 //
15988 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
15989 func URLFull(val string) attribute.KeyValue {
15990 return URLFullKey.String(val)
15991 }
15992
15993 // URLOriginal returns an attribute KeyValue conforming to the "url.original"
15994 // semantic conventions. It represents the unmodified original URL as seen in the
15995 // event source.
15996 func URLOriginal(val string) attribute.KeyValue {
15997 return URLOriginalKey.String(val)
15998 }
15999
16000 // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
16001 // conventions. It represents the [URI path] component.
16002 //
16003 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
16004 func URLPath(val string) attribute.KeyValue {
16005 return URLPathKey.String(val)
16006 }
16007
16008 // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
16009 // conventions. It represents the port extracted from the `url.full`.
16010 func URLPort(val int) attribute.KeyValue {
16011 return URLPortKey.Int(val)
16012 }
16013
16014 // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
16015 // conventions. It represents the [URI query] component.
16016 //
16017 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
16018 func URLQuery(val string) attribute.KeyValue {
16019 return URLQueryKey.String(val)
16020 }
16021
16022 // URLRegisteredDomain returns an attribute KeyValue conforming to the
16023 // "url.registered_domain" semantic conventions. It represents the highest
16024 // registered url domain, stripped of the subdomain.
16025 func URLRegisteredDomain(val string) attribute.KeyValue {
16026 return URLRegisteredDomainKey.String(val)
16027 }
16028
16029 // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
16030 // semantic conventions. It represents the [URI scheme] component identifying the
16031 // used protocol.
16032 //
16033 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
16034 func URLScheme(val string) attribute.KeyValue {
16035 return URLSchemeKey.String(val)
16036 }
16037
16038 // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
16039 // semantic conventions. It represents the subdomain portion of a fully qualified
16040 // domain name includes all of the names except the host name under the
16041 // registered_domain. In a partially qualified domain, or if the qualification
16042 // level of the full name cannot be determined, subdomain contains all of the
16043 // names below the registered domain.
16044 func URLSubdomain(val string) attribute.KeyValue {
16045 return URLSubdomainKey.String(val)
16046 }
16047
16048 // URLTemplate returns an attribute KeyValue conforming to the "url.template"
16049 // semantic conventions. It represents the low-cardinality template of an
16050 // [absolute path reference].
16051 //
16052 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
16053 func URLTemplate(val string) attribute.KeyValue {
16054 return URLTemplateKey.String(val)
16055 }
16056
16057 // URLTopLevelDomain returns an attribute KeyValue conforming to the
16058 // "url.top_level_domain" semantic conventions. It represents the effective top
16059 // level domain (eTLD), also known as the domain suffix, is the last part of the
16060 // domain name. For example, the top level domain for example.com is `com`.
16061 func URLTopLevelDomain(val string) attribute.KeyValue {
16062 return URLTopLevelDomainKey.String(val)
16063 }
16064
16065 // Namespace: user
16066 const (
16067 // UserEmailKey is the attribute Key conforming to the "user.email" semantic
16068 // conventions. It represents the user email address.
16069 //
16070 // Type: string
16071 // RequirementLevel: Recommended
16072 // Stability: Development
16073 //
16074 // Examples: "[email protected]"
16075 UserEmailKey = attribute.Key("user.email")
16076
16077 // UserFullNameKey is the attribute Key conforming to the "user.full_name"
16078 // semantic conventions. It represents the user's full name.
16079 //
16080 // Type: string
16081 // RequirementLevel: Recommended
16082 // Stability: Development
16083 //
16084 // Examples: "Albert Einstein"
16085 UserFullNameKey = attribute.Key("user.full_name")
16086
16087 // UserHashKey is the attribute Key conforming to the "user.hash" semantic
16088 // conventions. It represents the unique user hash to correlate information for
16089 // a user in anonymized form.
16090 //
16091 // Type: string
16092 // RequirementLevel: Recommended
16093 // Stability: Development
16094 //
16095 // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
16096 // Note: Useful if `user.id` or `user.name` contain confidential information and
16097 // cannot be used.
16098 UserHashKey = attribute.Key("user.hash")
16099
16100 // UserIDKey is the attribute Key conforming to the "user.id" semantic
16101 // conventions. It represents the unique identifier of the user.
16102 //
16103 // Type: string
16104 // RequirementLevel: Recommended
16105 // Stability: Development
16106 //
16107 // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
16108 UserIDKey = attribute.Key("user.id")
16109
16110 // UserNameKey is the attribute Key conforming to the "user.name" semantic
16111 // conventions. It represents the short name or login/username of the user.
16112 //
16113 // Type: string
16114 // RequirementLevel: Recommended
16115 // Stability: Development
16116 //
16117 // Examples: "a.einstein"
16118 UserNameKey = attribute.Key("user.name")
16119
16120 // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
16121 // conventions. It represents the array of user roles at the time of the event.
16122 //
16123 // Type: string[]
16124 // RequirementLevel: Recommended
16125 // Stability: Development
16126 //
16127 // Examples: "admin", "reporting_user"
16128 UserRolesKey = attribute.Key("user.roles")
16129 )
16130
16131 // UserEmail returns an attribute KeyValue conforming to the "user.email"
16132 // semantic conventions. It represents the user email address.
16133 func UserEmail(val string) attribute.KeyValue {
16134 return UserEmailKey.String(val)
16135 }
16136
16137 // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
16138 // semantic conventions. It represents the user's full name.
16139 func UserFullName(val string) attribute.KeyValue {
16140 return UserFullNameKey.String(val)
16141 }
16142
16143 // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
16144 // conventions. It represents the unique user hash to correlate information for a
16145 // user in anonymized form.
16146 func UserHash(val string) attribute.KeyValue {
16147 return UserHashKey.String(val)
16148 }
16149
16150 // UserID returns an attribute KeyValue conforming to the "user.id" semantic
16151 // conventions. It represents the unique identifier of the user.
16152 func UserID(val string) attribute.KeyValue {
16153 return UserIDKey.String(val)
16154 }
16155
16156 // UserName returns an attribute KeyValue conforming to the "user.name" semantic
16157 // conventions. It represents the short name or login/username of the user.
16158 func UserName(val string) attribute.KeyValue {
16159 return UserNameKey.String(val)
16160 }
16161
16162 // UserRoles returns an attribute KeyValue conforming to the "user.roles"
16163 // semantic conventions. It represents the array of user roles at the time of the
16164 // event.
16165 func UserRoles(val ...string) attribute.KeyValue {
16166 return UserRolesKey.StringSlice(val)
16167 }
16168
16169 // Namespace: user_agent
16170 const (
16171 // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
16172 // semantic conventions. It represents the name of the user-agent extracted from
16173 // original. Usually refers to the browser's name.
16174 //
16175 // Type: string
16176 // RequirementLevel: Recommended
16177 // Stability: Development
16178 //
16179 // Examples: "Safari", "YourApp"
16180 // Note: [Example] of extracting browser's name from original string. In the
16181 // case of using a user-agent for non-browser products, such as microservices
16182 // with multiple names/versions inside the `user_agent.original`, the most
16183 // significant name SHOULD be selected. In such a scenario it should align with
16184 // `user_agent.version`
16185 //
16186 // [Example]: https://uaparser.dev/#demo
16187 UserAgentNameKey = attribute.Key("user_agent.name")
16188
16189 // UserAgentOriginalKey is the attribute Key conforming to the
16190 // "user_agent.original" semantic conventions. It represents the value of the
16191 // [HTTP User-Agent] header sent by the client.
16192 //
16193 // Type: string
16194 // RequirementLevel: Recommended
16195 // Stability: Stable
16196 //
16197 // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
16198 // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
16199 // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
16200 // grpc-java-okhttp/1.27.2"
16201 //
16202 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
16203 UserAgentOriginalKey = attribute.Key("user_agent.original")
16204
16205 // UserAgentOSNameKey is the attribute Key conforming to the
16206 // "user_agent.os.name" semantic conventions. It represents the human readable
16207 // operating system name.
16208 //
16209 // Type: string
16210 // RequirementLevel: Recommended
16211 // Stability: Development
16212 //
16213 // Examples: "iOS", "Android", "Ubuntu"
16214 // Note: For mapping user agent strings to OS names, libraries such as
16215 // [ua-parser] can be utilized.
16216 //
16217 // [ua-parser]: https://github.com/ua-parser
16218 UserAgentOSNameKey = attribute.Key("user_agent.os.name")
16219
16220 // UserAgentOSVersionKey is the attribute Key conforming to the
16221 // "user_agent.os.version" semantic conventions. It represents the version
16222 // string of the operating system as defined in [Version Attributes].
16223 //
16224 // Type: string
16225 // RequirementLevel: Recommended
16226 // Stability: Development
16227 //
16228 // Examples: "14.2.1", "18.04.1"
16229 // Note: For mapping user agent strings to OS versions, libraries such as
16230 // [ua-parser] can be utilized.
16231 //
16232 // [Version Attributes]: /docs/resource/README.md#version-attributes
16233 // [ua-parser]: https://github.com/ua-parser
16234 UserAgentOSVersionKey = attribute.Key("user_agent.os.version")
16235
16236 // UserAgentSyntheticTypeKey is the attribute Key conforming to the
16237 // "user_agent.synthetic.type" semantic conventions. It represents the specifies
16238 // the category of synthetic traffic, such as tests or bots.
16239 //
16240 // Type: Enum
16241 // RequirementLevel: Recommended
16242 // Stability: Development
16243 //
16244 // Examples:
16245 // Note: This attribute MAY be derived from the contents of the
16246 // `user_agent.original` attribute. Components that populate the attribute are
16247 // responsible for determining what they consider to be synthetic bot or test
16248 // traffic. This attribute can either be set for self-identification purposes,
16249 // or on telemetry detected to be generated as a result of a synthetic request.
16250 // This attribute is useful for distinguishing between genuine client traffic
16251 // and synthetic traffic generated by bots or tests.
16252 UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type")
16253
16254 // UserAgentVersionKey is the attribute Key conforming to the
16255 // "user_agent.version" semantic conventions. It represents the version of the
16256 // user-agent extracted from original. Usually refers to the browser's version.
16257 //
16258 // Type: string
16259 // RequirementLevel: Recommended
16260 // Stability: Development
16261 //
16262 // Examples: "14.1.2", "1.0.0"
16263 // Note: [Example] of extracting browser's version from original string. In the
16264 // case of using a user-agent for non-browser products, such as microservices
16265 // with multiple names/versions inside the `user_agent.original`, the most
16266 // significant version SHOULD be selected. In such a scenario it should align
16267 // with `user_agent.name`
16268 //
16269 // [Example]: https://uaparser.dev/#demo
16270 UserAgentVersionKey = attribute.Key("user_agent.version")
16271 )
16272
16273 // UserAgentName returns an attribute KeyValue conforming to the
16274 // "user_agent.name" semantic conventions. It represents the name of the
16275 // user-agent extracted from original. Usually refers to the browser's name.
16276 func UserAgentName(val string) attribute.KeyValue {
16277 return UserAgentNameKey.String(val)
16278 }
16279
16280 // UserAgentOriginal returns an attribute KeyValue conforming to the
16281 // "user_agent.original" semantic conventions. It represents the value of the
16282 // [HTTP User-Agent] header sent by the client.
16283 //
16284 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
16285 func UserAgentOriginal(val string) attribute.KeyValue {
16286 return UserAgentOriginalKey.String(val)
16287 }
16288
16289 // UserAgentOSName returns an attribute KeyValue conforming to the
16290 // "user_agent.os.name" semantic conventions. It represents the human readable
16291 // operating system name.
16292 func UserAgentOSName(val string) attribute.KeyValue {
16293 return UserAgentOSNameKey.String(val)
16294 }
16295
16296 // UserAgentOSVersion returns an attribute KeyValue conforming to the
16297 // "user_agent.os.version" semantic conventions. It represents the version string
16298 // of the operating system as defined in [Version Attributes].
16299 //
16300 // [Version Attributes]: /docs/resource/README.md#version-attributes
16301 func UserAgentOSVersion(val string) attribute.KeyValue {
16302 return UserAgentOSVersionKey.String(val)
16303 }
16304
16305 // UserAgentVersion returns an attribute KeyValue conforming to the
16306 // "user_agent.version" semantic conventions. It represents the version of the
16307 // user-agent extracted from original. Usually refers to the browser's version.
16308 func UserAgentVersion(val string) attribute.KeyValue {
16309 return UserAgentVersionKey.String(val)
16310 }
16311
16312 // Enum values for user_agent.synthetic.type
16313 var (
16314 // Bot source.
16315 // Stability: development
16316 UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot")
16317 // Synthetic test source.
16318 // Stability: development
16319 UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test")
16320 )
16321
16322 // Namespace: vcs
16323 const (
16324 // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id"
16325 // semantic conventions. It represents the ID of the change (pull request/merge
16326 // request/changelist) if applicable. This is usually a unique (within
16327 // repository) identifier generated by the VCS system.
16328 //
16329 // Type: string
16330 // RequirementLevel: Recommended
16331 // Stability: Development
16332 //
16333 // Examples: "123"
16334 VCSChangeIDKey = attribute.Key("vcs.change.id")
16335
16336 // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state"
16337 // semantic conventions. It represents the state of the change (pull
16338 // request/merge request/changelist).
16339 //
16340 // Type: Enum
16341 // RequirementLevel: Recommended
16342 // Stability: Development
16343 //
16344 // Examples: "open", "closed", "merged"
16345 VCSChangeStateKey = attribute.Key("vcs.change.state")
16346
16347 // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title"
16348 // semantic conventions. It represents the human readable title of the change
16349 // (pull request/merge request/changelist). This title is often a brief summary
16350 // of the change and may get merged in to a ref as the commit summary.
16351 //
16352 // Type: string
16353 // RequirementLevel: Recommended
16354 // Stability: Development
16355 //
16356 // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
16357 // dependency"
16358 VCSChangeTitleKey = attribute.Key("vcs.change.title")
16359
16360 // VCSLineChangeTypeKey is the attribute Key conforming to the
16361 // "vcs.line_change.type" semantic conventions. It represents the type of line
16362 // change being measured on a branch or change.
16363 //
16364 // Type: Enum
16365 // RequirementLevel: Recommended
16366 // Stability: Development
16367 //
16368 // Examples: "added", "removed"
16369 VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type")
16370
16371 // VCSOwnerNameKey is the attribute Key conforming to the "vcs.owner.name"
16372 // semantic conventions. It represents the group owner within the version
16373 // control system.
16374 //
16375 // Type: string
16376 // RequirementLevel: Recommended
16377 // Stability: Development
16378 //
16379 // Examples: "my-org", "myteam", "business-unit"
16380 VCSOwnerNameKey = attribute.Key("vcs.owner.name")
16381
16382 // VCSProviderNameKey is the attribute Key conforming to the "vcs.provider.name"
16383 // semantic conventions. It represents the name of the version control system
16384 // provider.
16385 //
16386 // Type: Enum
16387 // RequirementLevel: Recommended
16388 // Stability: Development
16389 //
16390 // Examples: "github", "gitlab", "gitea", "bitbucket"
16391 VCSProviderNameKey = attribute.Key("vcs.provider.name")
16392
16393 // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name"
16394 // semantic conventions. It represents the name of the [reference] such as
16395 // **branch** or **tag** in the repository.
16396 //
16397 // Type: string
16398 // RequirementLevel: Recommended
16399 // Stability: Development
16400 //
16401 // Examples: "my-feature-branch", "tag-1-test"
16402 // Note: `base` refers to the starting point of a change. For example, `main`
16403 // would be the base reference of type branch if you've created a new
16404 // reference of type branch from it and created new commits.
16405 //
16406 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
16407 VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name")
16408
16409 // VCSRefBaseRevisionKey is the attribute Key conforming to the
16410 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
16411 // literally [revised version], The revision most often refers to a commit
16412 // object in Git, or a revision number in SVN.
16413 //
16414 // Type: string
16415 // RequirementLevel: Recommended
16416 // Stability: Development
16417 //
16418 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
16419 // "main", "123", "HEAD"
16420 // Note: `base` refers to the starting point of a change. For example, `main`
16421 // would be the base reference of type branch if you've created a new
16422 // reference of type branch from it and created new commits. The
16423 // revision can be a full [hash value (see
16424 // glossary)],
16425 // of the recorded change to a ref within a repository pointing to a
16426 // commit [commit] object. It does
16427 // not necessarily have to be a hash; it can simply define a [revision
16428 // number]
16429 // which is an integer that is monotonically increasing. In cases where
16430 // it is identical to the `ref.base.name`, it SHOULD still be included.
16431 // It is up to the implementer to decide which value to set as the
16432 // revision based on the VCS system and situational context.
16433 //
16434 // [revised version]: https://www.merriam-webster.com/dictionary/revision
16435 // [hash value (see
16436 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
16437 // [commit]: https://git-scm.com/docs/git-commit
16438 // [revision
16439 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
16440 VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision")
16441
16442 // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type"
16443 // semantic conventions. It represents the type of the [reference] in the
16444 // repository.
16445 //
16446 // Type: Enum
16447 // RequirementLevel: Recommended
16448 // Stability: Development
16449 //
16450 // Examples: "branch", "tag"
16451 // Note: `base` refers to the starting point of a change. For example, `main`
16452 // would be the base reference of type branch if you've created a new
16453 // reference of type branch from it and created new commits.
16454 //
16455 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
16456 VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type")
16457
16458 // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name"
16459 // semantic conventions. It represents the name of the [reference] such as
16460 // **branch** or **tag** in the repository.
16461 //
16462 // Type: string
16463 // RequirementLevel: Recommended
16464 // Stability: Development
16465 //
16466 // Examples: "my-feature-branch", "tag-1-test"
16467 // Note: `head` refers to where you are right now; the current reference at a
16468 // given time.
16469 //
16470 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
16471 VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name")
16472
16473 // VCSRefHeadRevisionKey is the attribute Key conforming to the
16474 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
16475 // literally [revised version], The revision most often refers to a commit
16476 // object in Git, or a revision number in SVN.
16477 //
16478 // Type: string
16479 // RequirementLevel: Recommended
16480 // Stability: Development
16481 //
16482 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
16483 // "main", "123", "HEAD"
16484 // Note: `head` refers to where you are right now; the current reference at a
16485 // given time.The revision can be a full [hash value (see
16486 // glossary)],
16487 // of the recorded change to a ref within a repository pointing to a
16488 // commit [commit] object. It does
16489 // not necessarily have to be a hash; it can simply define a [revision
16490 // number]
16491 // which is an integer that is monotonically increasing. In cases where
16492 // it is identical to the `ref.head.name`, it SHOULD still be included.
16493 // It is up to the implementer to decide which value to set as the
16494 // revision based on the VCS system and situational context.
16495 //
16496 // [revised version]: https://www.merriam-webster.com/dictionary/revision
16497 // [hash value (see
16498 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
16499 // [commit]: https://git-scm.com/docs/git-commit
16500 // [revision
16501 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
16502 VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision")
16503
16504 // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type"
16505 // semantic conventions. It represents the type of the [reference] in the
16506 // repository.
16507 //
16508 // Type: Enum
16509 // RequirementLevel: Recommended
16510 // Stability: Development
16511 //
16512 // Examples: "branch", "tag"
16513 // Note: `head` refers to where you are right now; the current reference at a
16514 // given time.
16515 //
16516 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
16517 VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type")
16518
16519 // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic
16520 // conventions. It represents the type of the [reference] in the repository.
16521 //
16522 // Type: Enum
16523 // RequirementLevel: Recommended
16524 // Stability: Development
16525 //
16526 // Examples: "branch", "tag"
16527 //
16528 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
16529 VCSRefTypeKey = attribute.Key("vcs.ref.type")
16530
16531 // VCSRepositoryNameKey is the attribute Key conforming to the
16532 // "vcs.repository.name" semantic conventions. It represents the human readable
16533 // name of the repository. It SHOULD NOT include any additional identifier like
16534 // Group/SubGroup in GitLab or organization in GitHub.
16535 //
16536 // Type: string
16537 // RequirementLevel: Recommended
16538 // Stability: Development
16539 //
16540 // Examples: "semantic-conventions", "my-cool-repo"
16541 // Note: Due to it only being the name, it can clash with forks of the same
16542 // repository if collecting telemetry across multiple orgs or groups in
16543 // the same backends.
16544 VCSRepositoryNameKey = attribute.Key("vcs.repository.name")
16545
16546 // VCSRepositoryURLFullKey is the attribute Key conforming to the
16547 // "vcs.repository.url.full" semantic conventions. It represents the
16548 // [canonical URL] of the repository providing the complete HTTP(S) address in
16549 // order to locate and identify the repository through a browser.
16550 //
16551 // Type: string
16552 // RequirementLevel: Recommended
16553 // Stability: Development
16554 //
16555 // Examples:
16556 // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
16557 // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
16558 // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include
16559 // the `.git` extension.
16560 //
16561 // [canonical URL]: https://support.google.com/webmasters/answer/10347851
16562 VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
16563
16564 // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the
16565 // "vcs.revision_delta.direction" semantic conventions. It represents the type
16566 // of revision comparison.
16567 //
16568 // Type: Enum
16569 // RequirementLevel: Recommended
16570 // Stability: Development
16571 //
16572 // Examples: "ahead", "behind"
16573 VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction")
16574 )
16575
16576 // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id"
16577 // semantic conventions. It represents the ID of the change (pull request/merge
16578 // request/changelist) if applicable. This is usually a unique (within
16579 // repository) identifier generated by the VCS system.
16580 func VCSChangeID(val string) attribute.KeyValue {
16581 return VCSChangeIDKey.String(val)
16582 }
16583
16584 // VCSChangeTitle returns an attribute KeyValue conforming to the
16585 // "vcs.change.title" semantic conventions. It represents the human readable
16586 // title of the change (pull request/merge request/changelist). This title is
16587 // often a brief summary of the change and may get merged in to a ref as the
16588 // commit summary.
16589 func VCSChangeTitle(val string) attribute.KeyValue {
16590 return VCSChangeTitleKey.String(val)
16591 }
16592
16593 // VCSOwnerName returns an attribute KeyValue conforming to the "vcs.owner.name"
16594 // semantic conventions. It represents the group owner within the version control
16595 // system.
16596 func VCSOwnerName(val string) attribute.KeyValue {
16597 return VCSOwnerNameKey.String(val)
16598 }
16599
16600 // VCSRefBaseName returns an attribute KeyValue conforming to the
16601 // "vcs.ref.base.name" semantic conventions. It represents the name of the
16602 // [reference] such as **branch** or **tag** in the repository.
16603 //
16604 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
16605 func VCSRefBaseName(val string) attribute.KeyValue {
16606 return VCSRefBaseNameKey.String(val)
16607 }
16608
16609 // VCSRefBaseRevision returns an attribute KeyValue conforming to the
16610 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
16611 // literally [revised version], The revision most often refers to a commit object
16612 // in Git, or a revision number in SVN.
16613 //
16614 // [revised version]: https://www.merriam-webster.com/dictionary/revision
16615 func VCSRefBaseRevision(val string) attribute.KeyValue {
16616 return VCSRefBaseRevisionKey.String(val)
16617 }
16618
16619 // VCSRefHeadName returns an attribute KeyValue conforming to the
16620 // "vcs.ref.head.name" semantic conventions. It represents the name of the
16621 // [reference] such as **branch** or **tag** in the repository.
16622 //
16623 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
16624 func VCSRefHeadName(val string) attribute.KeyValue {
16625 return VCSRefHeadNameKey.String(val)
16626 }
16627
16628 // VCSRefHeadRevision returns an attribute KeyValue conforming to the
16629 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
16630 // literally [revised version], The revision most often refers to a commit object
16631 // in Git, or a revision number in SVN.
16632 //
16633 // [revised version]: https://www.merriam-webster.com/dictionary/revision
16634 func VCSRefHeadRevision(val string) attribute.KeyValue {
16635 return VCSRefHeadRevisionKey.String(val)
16636 }
16637
16638 // VCSRepositoryName returns an attribute KeyValue conforming to the
16639 // "vcs.repository.name" semantic conventions. It represents the human readable
16640 // name of the repository. It SHOULD NOT include any additional identifier like
16641 // Group/SubGroup in GitLab or organization in GitHub.
16642 func VCSRepositoryName(val string) attribute.KeyValue {
16643 return VCSRepositoryNameKey.String(val)
16644 }
16645
16646 // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
16647 // "vcs.repository.url.full" semantic conventions. It represents the
16648 // [canonical URL] of the repository providing the complete HTTP(S) address in
16649 // order to locate and identify the repository through a browser.
16650 //
16651 // [canonical URL]: https://support.google.com/webmasters/answer/10347851
16652 func VCSRepositoryURLFull(val string) attribute.KeyValue {
16653 return VCSRepositoryURLFullKey.String(val)
16654 }
16655
16656 // Enum values for vcs.change.state
16657 var (
16658 // Open means the change is currently active and under review. It hasn't been
16659 // merged into the target branch yet, and it's still possible to make changes or
16660 // add comments.
16661 // Stability: development
16662 VCSChangeStateOpen = VCSChangeStateKey.String("open")
16663 // WIP (work-in-progress, draft) means the change is still in progress and not
16664 // yet ready for a full review. It might still undergo significant changes.
16665 // Stability: development
16666 VCSChangeStateWip = VCSChangeStateKey.String("wip")
16667 // Closed means the merge request has been closed without merging. This can
16668 // happen for various reasons, such as the changes being deemed unnecessary, the
16669 // issue being resolved in another way, or the author deciding to withdraw the
16670 // request.
16671 // Stability: development
16672 VCSChangeStateClosed = VCSChangeStateKey.String("closed")
16673 // Merged indicates that the change has been successfully integrated into the
16674 // target codebase.
16675 // Stability: development
16676 VCSChangeStateMerged = VCSChangeStateKey.String("merged")
16677 )
16678
16679 // Enum values for vcs.line_change.type
16680 var (
16681 // How many lines were added.
16682 // Stability: development
16683 VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added")
16684 // How many lines were removed.
16685 // Stability: development
16686 VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed")
16687 )
16688
16689 // Enum values for vcs.provider.name
16690 var (
16691 // [GitHub]
16692 // Stability: development
16693 //
16694 // [GitHub]: https://github.com
16695 VCSProviderNameGithub = VCSProviderNameKey.String("github")
16696 // [GitLab]
16697 // Stability: development
16698 //
16699 // [GitLab]: https://gitlab.com
16700 VCSProviderNameGitlab = VCSProviderNameKey.String("gitlab")
16701 // [Gitea]
16702 // Stability: development
16703 //
16704 // [Gitea]: https://gitea.io
16705 VCSProviderNameGitea = VCSProviderNameKey.String("gitea")
16706 // [Bitbucket]
16707 // Stability: development
16708 //
16709 // [Bitbucket]: https://bitbucket.org
16710 VCSProviderNameBitbucket = VCSProviderNameKey.String("bitbucket")
16711 )
16712
16713 // Enum values for vcs.ref.base.type
16714 var (
16715 // [branch]
16716 // Stability: development
16717 //
16718 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
16719 VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch")
16720 // [tag]
16721 // Stability: development
16722 //
16723 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
16724 VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag")
16725 )
16726
16727 // Enum values for vcs.ref.head.type
16728 var (
16729 // [branch]
16730 // Stability: development
16731 //
16732 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
16733 VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch")
16734 // [tag]
16735 // Stability: development
16736 //
16737 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
16738 VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag")
16739 )
16740
16741 // Enum values for vcs.ref.type
16742 var (
16743 // [branch]
16744 // Stability: development
16745 //
16746 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
16747 VCSRefTypeBranch = VCSRefTypeKey.String("branch")
16748 // [tag]
16749 // Stability: development
16750 //
16751 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
16752 VCSRefTypeTag = VCSRefTypeKey.String("tag")
16753 )
16754
16755 // Enum values for vcs.revision_delta.direction
16756 var (
16757 // How many revisions the change is behind the target ref.
16758 // Stability: development
16759 VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind")
16760 // How many revisions the change is ahead of the target ref.
16761 // Stability: development
16762 VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead")
16763 )
16764
16765 // Namespace: webengine
16766 const (
16767 // WebEngineDescriptionKey is the attribute Key conforming to the
16768 // "webengine.description" semantic conventions. It represents the additional
16769 // description of the web engine (e.g. detailed version and edition
16770 // information).
16771 //
16772 // Type: string
16773 // RequirementLevel: Recommended
16774 // Stability: Development
16775 //
16776 // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
16777 // 2.2.2.Final"
16778 WebEngineDescriptionKey = attribute.Key("webengine.description")
16779
16780 // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
16781 // semantic conventions. It represents the name of the web engine.
16782 //
16783 // Type: string
16784 // RequirementLevel: Recommended
16785 // Stability: Development
16786 //
16787 // Examples: "WildFly"
16788 WebEngineNameKey = attribute.Key("webengine.name")
16789
16790 // WebEngineVersionKey is the attribute Key conforming to the
16791 // "webengine.version" semantic conventions. It represents the version of the
16792 // web engine.
16793 //
16794 // Type: string
16795 // RequirementLevel: Recommended
16796 // Stability: Development
16797 //
16798 // Examples: "21.0.0"
16799 WebEngineVersionKey = attribute.Key("webengine.version")
16800 )
16801
16802 // WebEngineDescription returns an attribute KeyValue conforming to the
16803 // "webengine.description" semantic conventions. It represents the additional
16804 // description of the web engine (e.g. detailed version and edition information).
16805 func WebEngineDescription(val string) attribute.KeyValue {
16806 return WebEngineDescriptionKey.String(val)
16807 }
16808
16809 // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
16810 // semantic conventions. It represents the name of the web engine.
16811 func WebEngineName(val string) attribute.KeyValue {
16812 return WebEngineNameKey.String(val)
16813 }
16814
16815 // WebEngineVersion returns an attribute KeyValue conforming to the
16816 // "webengine.version" semantic conventions. It represents the version of the web
16817 // engine.
16818 func WebEngineVersion(val string) attribute.KeyValue {
16819 return WebEngineVersionKey.String(val)
16820 }
16821
16822 // Namespace: zos
16823 const (
16824 // ZOSSmfIDKey is the attribute Key conforming to the "zos.smf.id" semantic
16825 // conventions. It represents the System Management Facility (SMF) Identifier
16826 // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
16827 // and is used for system and performance analysis.
16828 //
16829 // Type: string
16830 // RequirementLevel: Recommended
16831 // Stability: Development
16832 //
16833 // Examples: "SYS1"
16834 ZOSSmfIDKey = attribute.Key("zos.smf.id")
16835
16836 // ZOSSysplexNameKey is the attribute Key conforming to the "zos.sysplex.name"
16837 // semantic conventions. It represents the name of the SYSPLEX to which the z/OS
16838 // system belongs too.
16839 //
16840 // Type: string
16841 // RequirementLevel: Recommended
16842 // Stability: Development
16843 //
16844 // Examples: "SYSPLEX1"
16845 ZOSSysplexNameKey = attribute.Key("zos.sysplex.name")
16846 )
16847
16848 // ZOSSmfID returns an attribute KeyValue conforming to the "zos.smf.id" semantic
16849 // conventions. It represents the System Management Facility (SMF) Identifier
16850 // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
16851 // and is used for system and performance analysis.
16852 func ZOSSmfID(val string) attribute.KeyValue {
16853 return ZOSSmfIDKey.String(val)
16854 }
16855
16856 // ZOSSysplexName returns an attribute KeyValue conforming to the
16857 // "zos.sysplex.name" semantic conventions. It represents the name of the SYSPLEX
16858 // to which the z/OS system belongs too.
16859 func ZOSSysplexName(val string) attribute.KeyValue {
16860 return ZOSSysplexNameKey.String(val)
16861 }