Debian Codegraph @

semconv/v1.38.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.38.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 // Alibaba Cloud Elastic Compute Service
2696 // Stability: development
2697 CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
2698 // Alibaba Cloud Function Compute
2699 // Stability: development
2700 CloudPlatformAlibabaCloudFC = CloudPlatformKey.String("alibaba_cloud_fc")
2701 // Red Hat OpenShift on Alibaba Cloud
2702 // Stability: development
2703 CloudPlatformAlibabaCloudOpenShift = CloudPlatformKey.String("alibaba_cloud_openshift")
2704 // AWS Elastic Compute Cloud
2705 // Stability: development
2706 CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
2707 // AWS Elastic Container Service
2708 // Stability: development
2709 CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
2710 // AWS Elastic Kubernetes Service
2711 // Stability: development
2712 CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
2713 // AWS Lambda
2714 // Stability: development
2715 CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
2716 // AWS Elastic Beanstalk
2717 // Stability: development
2718 CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
2719 // AWS App Runner
2720 // Stability: development
2721 CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
2722 // Red Hat OpenShift on AWS (ROSA)
2723 // Stability: development
2724 CloudPlatformAWSOpenShift = CloudPlatformKey.String("aws_openshift")
2725 // Azure Virtual Machines
2726 // Stability: development
2727 CloudPlatformAzureVM = CloudPlatformKey.String("azure.vm")
2728 // Azure Container Apps
2729 // Stability: development
2730 CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure.container_apps")
2731 // Azure Container Instances
2732 // Stability: development
2733 CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure.container_instances")
2734 // Azure Kubernetes Service
2735 // Stability: development
2736 CloudPlatformAzureAKS = CloudPlatformKey.String("azure.aks")
2737 // Azure Functions
2738 // Stability: development
2739 CloudPlatformAzureFunctions = CloudPlatformKey.String("azure.functions")
2740 // Azure App Service
2741 // Stability: development
2742 CloudPlatformAzureAppService = CloudPlatformKey.String("azure.app_service")
2743 // Azure Red Hat OpenShift
2744 // Stability: development
2745 CloudPlatformAzureOpenShift = CloudPlatformKey.String("azure.openshift")
2746 // Google Bare Metal Solution (BMS)
2747 // Stability: development
2748 CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
2749 // Google Cloud Compute Engine (GCE)
2750 // Stability: development
2751 CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
2752 // Google Cloud Run
2753 // Stability: development
2754 CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
2755 // Google Cloud Kubernetes Engine (GKE)
2756 // Stability: development
2757 CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
2758 // Google Cloud Functions (GCF)
2759 // Stability: development
2760 CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
2761 // Google Cloud App Engine (GAE)
2762 // Stability: development
2763 CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
2764 // Red Hat OpenShift on Google Cloud
2765 // Stability: development
2766 CloudPlatformGCPOpenShift = CloudPlatformKey.String("gcp_openshift")
2767 // Red Hat OpenShift on IBM Cloud
2768 // Stability: development
2769 CloudPlatformIBMCloudOpenShift = CloudPlatformKey.String("ibm_cloud_openshift")
2770 // Compute on Oracle Cloud Infrastructure (OCI)
2771 // Stability: development
2772 CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute")
2773 // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI)
2774 // Stability: development
2775 CloudPlatformOracleCloudOKE = CloudPlatformKey.String("oracle_cloud_oke")
2776 // Tencent Cloud Cloud Virtual Machine (CVM)
2777 // Stability: development
2778 CloudPlatformTencentCloudCVM = CloudPlatformKey.String("tencent_cloud_cvm")
2779 // Tencent Cloud Elastic Kubernetes Service (EKS)
2780 // Stability: development
2781 CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
2782 // Tencent Cloud Serverless Cloud Function (SCF)
2783 // Stability: development
2784 CloudPlatformTencentCloudSCF = CloudPlatformKey.String("tencent_cloud_scf")
2785 )
2786
2787 // Enum values for cloud.provider
2788 var (
2789 // Alibaba Cloud
2790 // Stability: development
2791 CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
2792 // Amazon Web Services
2793 // Stability: development
2794 CloudProviderAWS = CloudProviderKey.String("aws")
2795 // Microsoft Azure
2796 // Stability: development
2797 CloudProviderAzure = CloudProviderKey.String("azure")
2798 // Google Cloud Platform
2799 // Stability: development
2800 CloudProviderGCP = CloudProviderKey.String("gcp")
2801 // Heroku Platform as a Service
2802 // Stability: development
2803 CloudProviderHeroku = CloudProviderKey.String("heroku")
2804 // IBM Cloud
2805 // Stability: development
2806 CloudProviderIBMCloud = CloudProviderKey.String("ibm_cloud")
2807 // Oracle Cloud Infrastructure (OCI)
2808 // Stability: development
2809 CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud")
2810 // Tencent Cloud
2811 // Stability: development
2812 CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
2813 )
2814
2815 // Namespace: cloudevents
2816 const (
2817 // CloudEventsEventIDKey is the attribute Key conforming to the
2818 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2819 // uniquely identifies the event.
2820 //
2821 // Type: string
2822 // RequirementLevel: Recommended
2823 // Stability: Development
2824 //
2825 // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
2826 //
2827 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2828 CloudEventsEventIDKey = attribute.Key("cloudevents.event_id")
2829
2830 // CloudEventsEventSourceKey is the attribute Key conforming to the
2831 // "cloudevents.event_source" semantic conventions. It represents the [source]
2832 // identifies the context in which an event happened.
2833 //
2834 // Type: string
2835 // RequirementLevel: Recommended
2836 // Stability: Development
2837 //
2838 // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
2839 // "my-service"
2840 //
2841 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2842 CloudEventsEventSourceKey = attribute.Key("cloudevents.event_source")
2843
2844 // CloudEventsEventSpecVersionKey is the attribute Key conforming to the
2845 // "cloudevents.event_spec_version" semantic conventions. It represents the
2846 // [version of the CloudEvents specification] which the event uses.
2847 //
2848 // Type: string
2849 // RequirementLevel: Recommended
2850 // Stability: Development
2851 //
2852 // Examples: 1.0
2853 //
2854 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2855 CloudEventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
2856
2857 // CloudEventsEventSubjectKey is the attribute Key conforming to the
2858 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2859 // of the event in the context of the event producer (identified by source).
2860 //
2861 // Type: string
2862 // RequirementLevel: Recommended
2863 // Stability: Development
2864 //
2865 // Examples: mynewfile.jpg
2866 //
2867 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2868 CloudEventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
2869
2870 // CloudEventsEventTypeKey is the attribute Key conforming to the
2871 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2872 // contains a value describing the type of event related to the originating
2873 // occurrence.
2874 //
2875 // Type: string
2876 // RequirementLevel: Recommended
2877 // Stability: Development
2878 //
2879 // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
2880 //
2881 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2882 CloudEventsEventTypeKey = attribute.Key("cloudevents.event_type")
2883 )
2884
2885 // CloudEventsEventID returns an attribute KeyValue conforming to the
2886 // "cloudevents.event_id" semantic conventions. It represents the [event_id]
2887 // uniquely identifies the event.
2888 //
2889 // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
2890 func CloudEventsEventID(val string) attribute.KeyValue {
2891 return CloudEventsEventIDKey.String(val)
2892 }
2893
2894 // CloudEventsEventSource returns an attribute KeyValue conforming to the
2895 // "cloudevents.event_source" semantic conventions. It represents the [source]
2896 // identifies the context in which an event happened.
2897 //
2898 // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
2899 func CloudEventsEventSource(val string) attribute.KeyValue {
2900 return CloudEventsEventSourceKey.String(val)
2901 }
2902
2903 // CloudEventsEventSpecVersion returns an attribute KeyValue conforming to the
2904 // "cloudevents.event_spec_version" semantic conventions. It represents the
2905 // [version of the CloudEvents specification] which the event uses.
2906 //
2907 // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
2908 func CloudEventsEventSpecVersion(val string) attribute.KeyValue {
2909 return CloudEventsEventSpecVersionKey.String(val)
2910 }
2911
2912 // CloudEventsEventSubject returns an attribute KeyValue conforming to the
2913 // "cloudevents.event_subject" semantic conventions. It represents the [subject]
2914 // of the event in the context of the event producer (identified by source).
2915 //
2916 // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
2917 func CloudEventsEventSubject(val string) attribute.KeyValue {
2918 return CloudEventsEventSubjectKey.String(val)
2919 }
2920
2921 // CloudEventsEventType returns an attribute KeyValue conforming to the
2922 // "cloudevents.event_type" semantic conventions. It represents the [event_type]
2923 // contains a value describing the type of event related to the originating
2924 // occurrence.
2925 //
2926 // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
2927 func CloudEventsEventType(val string) attribute.KeyValue {
2928 return CloudEventsEventTypeKey.String(val)
2929 }
2930
2931 // Namespace: cloudfoundry
2932 const (
2933 // CloudFoundryAppIDKey is the attribute Key conforming to the
2934 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
2935 // application.
2936 //
2937 // Type: string
2938 // RequirementLevel: Recommended
2939 // Stability: Development
2940 //
2941 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2942 // Note: Application instrumentation should use the value from environment
2943 // variable `VCAP_APPLICATION.application_id`. This is the same value as
2944 // reported by `cf app <app-name> --guid`.
2945 CloudFoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
2946
2947 // CloudFoundryAppInstanceIDKey is the attribute Key conforming to the
2948 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
2949 // of the application instance. 0 when just one instance is active.
2950 //
2951 // Type: string
2952 // RequirementLevel: Recommended
2953 // Stability: Development
2954 //
2955 // Examples: "0", "1"
2956 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
2957 // .
2958 // It is used for logs and metrics emitted by CloudFoundry. It is
2959 // supposed to contain the application instance index for applications
2960 // deployed on the runtime.
2961 //
2962 // Application instrumentation should use the value from environment
2963 // variable `CF_INSTANCE_INDEX`.
2964 //
2965 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
2966 CloudFoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
2967
2968 // CloudFoundryAppNameKey is the attribute Key conforming to the
2969 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
2970 // application.
2971 //
2972 // Type: string
2973 // RequirementLevel: Recommended
2974 // Stability: Development
2975 //
2976 // Examples: "my-app-name"
2977 // Note: Application instrumentation should use the value from environment
2978 // variable `VCAP_APPLICATION.application_name`. This is the same value
2979 // as reported by `cf apps`.
2980 CloudFoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
2981
2982 // CloudFoundryOrgIDKey is the attribute Key conforming to the
2983 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
2984 // CloudFoundry org the application is running in.
2985 //
2986 // Type: string
2987 // RequirementLevel: Recommended
2988 // Stability: Development
2989 //
2990 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
2991 // Note: Application instrumentation should use the value from environment
2992 // variable `VCAP_APPLICATION.org_id`. This is the same value as
2993 // reported by `cf org <org-name> --guid`.
2994 CloudFoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
2995
2996 // CloudFoundryOrgNameKey is the attribute Key conforming to the
2997 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
2998 // CloudFoundry organization the app is running in.
2999 //
3000 // Type: string
3001 // RequirementLevel: Recommended
3002 // Stability: Development
3003 //
3004 // Examples: "my-org-name"
3005 // Note: Application instrumentation should use the value from environment
3006 // variable `VCAP_APPLICATION.org_name`. This is the same value as
3007 // reported by `cf orgs`.
3008 CloudFoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
3009
3010 // CloudFoundryProcessIDKey is the attribute Key conforming to the
3011 // "cloudfoundry.process.id" semantic conventions. It represents the UID
3012 // identifying the process.
3013 //
3014 // Type: string
3015 // RequirementLevel: Recommended
3016 // Stability: Development
3017 //
3018 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
3019 // Note: Application instrumentation should use the value from environment
3020 // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
3021 // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
3022 // For system components, this could be the actual PID.
3023 CloudFoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
3024
3025 // CloudFoundryProcessTypeKey is the attribute Key conforming to the
3026 // "cloudfoundry.process.type" semantic conventions. It represents the type of
3027 // process.
3028 //
3029 // Type: string
3030 // RequirementLevel: Recommended
3031 // Stability: Development
3032 //
3033 // Examples: "web"
3034 // Note: CloudFoundry applications can consist of multiple jobs. Usually the
3035 // main process will be of type `web`. There can be additional background
3036 // tasks or side-cars with different process types.
3037 CloudFoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
3038
3039 // CloudFoundrySpaceIDKey is the attribute Key conforming to the
3040 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
3041 // CloudFoundry space the application is running in.
3042 //
3043 // Type: string
3044 // RequirementLevel: Recommended
3045 // Stability: Development
3046 //
3047 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
3048 // Note: Application instrumentation should use the value from environment
3049 // variable `VCAP_APPLICATION.space_id`. This is the same value as
3050 // reported by `cf space <space-name> --guid`.
3051 CloudFoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
3052
3053 // CloudFoundrySpaceNameKey is the attribute Key conforming to the
3054 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
3055 // CloudFoundry space the application is running in.
3056 //
3057 // Type: string
3058 // RequirementLevel: Recommended
3059 // Stability: Development
3060 //
3061 // Examples: "my-space-name"
3062 // Note: Application instrumentation should use the value from environment
3063 // variable `VCAP_APPLICATION.space_name`. This is the same value as
3064 // reported by `cf spaces`.
3065 CloudFoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
3066
3067 // CloudFoundrySystemIDKey is the attribute Key conforming to the
3068 // "cloudfoundry.system.id" semantic conventions. It represents a guid or
3069 // another name describing the event source.
3070 //
3071 // Type: string
3072 // RequirementLevel: Recommended
3073 // Stability: Development
3074 //
3075 // Examples: "cf/gorouter"
3076 // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
3077 // It is used for logs and metrics emitted by CloudFoundry. It is
3078 // supposed to contain the component name, e.g. "gorouter", for
3079 // CloudFoundry components.
3080 //
3081 // When system components are instrumented, values from the
3082 // [Bosh spec]
3083 // should be used. The `system.id` should be set to
3084 // `spec.deployment/spec.name`.
3085 //
3086 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
3087 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
3088 CloudFoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
3089
3090 // CloudFoundrySystemInstanceIDKey is the attribute Key conforming to the
3091 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
3092 // describing the concrete instance of the event source.
3093 //
3094 // Type: string
3095 // RequirementLevel: Recommended
3096 // Stability: Development
3097 //
3098 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
3099 // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
3100 // .
3101 // It is used for logs and metrics emitted by CloudFoundry. It is
3102 // supposed to contain the vm id for CloudFoundry components.
3103 //
3104 // When system components are instrumented, values from the
3105 // [Bosh spec]
3106 // should be used. The `system.instance.id` should be set to `spec.id`.
3107 //
3108 // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
3109 // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
3110 CloudFoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
3111 )
3112
3113 // CloudFoundryAppID returns an attribute KeyValue conforming to the
3114 // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
3115 // application.
3116 func CloudFoundryAppID(val string) attribute.KeyValue {
3117 return CloudFoundryAppIDKey.String(val)
3118 }
3119
3120 // CloudFoundryAppInstanceID returns an attribute KeyValue conforming to the
3121 // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
3122 // of the application instance. 0 when just one instance is active.
3123 func CloudFoundryAppInstanceID(val string) attribute.KeyValue {
3124 return CloudFoundryAppInstanceIDKey.String(val)
3125 }
3126
3127 // CloudFoundryAppName returns an attribute KeyValue conforming to the
3128 // "cloudfoundry.app.name" semantic conventions. It represents the name of the
3129 // application.
3130 func CloudFoundryAppName(val string) attribute.KeyValue {
3131 return CloudFoundryAppNameKey.String(val)
3132 }
3133
3134 // CloudFoundryOrgID returns an attribute KeyValue conforming to the
3135 // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
3136 // CloudFoundry org the application is running in.
3137 func CloudFoundryOrgID(val string) attribute.KeyValue {
3138 return CloudFoundryOrgIDKey.String(val)
3139 }
3140
3141 // CloudFoundryOrgName returns an attribute KeyValue conforming to the
3142 // "cloudfoundry.org.name" semantic conventions. It represents the name of the
3143 // CloudFoundry organization the app is running in.
3144 func CloudFoundryOrgName(val string) attribute.KeyValue {
3145 return CloudFoundryOrgNameKey.String(val)
3146 }
3147
3148 // CloudFoundryProcessID returns an attribute KeyValue conforming to the
3149 // "cloudfoundry.process.id" semantic conventions. It represents the UID
3150 // identifying the process.
3151 func CloudFoundryProcessID(val string) attribute.KeyValue {
3152 return CloudFoundryProcessIDKey.String(val)
3153 }
3154
3155 // CloudFoundryProcessType returns an attribute KeyValue conforming to the
3156 // "cloudfoundry.process.type" semantic conventions. It represents the type of
3157 // process.
3158 func CloudFoundryProcessType(val string) attribute.KeyValue {
3159 return CloudFoundryProcessTypeKey.String(val)
3160 }
3161
3162 // CloudFoundrySpaceID returns an attribute KeyValue conforming to the
3163 // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
3164 // CloudFoundry space the application is running in.
3165 func CloudFoundrySpaceID(val string) attribute.KeyValue {
3166 return CloudFoundrySpaceIDKey.String(val)
3167 }
3168
3169 // CloudFoundrySpaceName returns an attribute KeyValue conforming to the
3170 // "cloudfoundry.space.name" semantic conventions. It represents the name of the
3171 // CloudFoundry space the application is running in.
3172 func CloudFoundrySpaceName(val string) attribute.KeyValue {
3173 return CloudFoundrySpaceNameKey.String(val)
3174 }
3175
3176 // CloudFoundrySystemID returns an attribute KeyValue conforming to the
3177 // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
3178 // name describing the event source.
3179 func CloudFoundrySystemID(val string) attribute.KeyValue {
3180 return CloudFoundrySystemIDKey.String(val)
3181 }
3182
3183 // CloudFoundrySystemInstanceID returns an attribute KeyValue conforming to the
3184 // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
3185 // describing the concrete instance of the event source.
3186 func CloudFoundrySystemInstanceID(val string) attribute.KeyValue {
3187 return CloudFoundrySystemInstanceIDKey.String(val)
3188 }
3189
3190 // Namespace: code
3191 const (
3192 // CodeColumnNumberKey is the attribute Key conforming to the
3193 // "code.column.number" semantic conventions. It represents the column number in
3194 // `code.file.path` best representing the operation. It SHOULD point within the
3195 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3196 // the Profile signal since the data is already captured in 'message Line'. This
3197 // constraint is imposed to prevent redundancy and maintain data integrity.
3198 //
3199 // Type: int
3200 // RequirementLevel: Recommended
3201 // Stability: Stable
3202 CodeColumnNumberKey = attribute.Key("code.column.number")
3203
3204 // CodeFilePathKey is the attribute Key conforming to the "code.file.path"
3205 // semantic conventions. It represents the source code file name that identifies
3206 // the code unit as uniquely as possible (preferably an absolute file path).
3207 // This attribute MUST NOT be used on the Profile signal since the data is
3208 // already captured in 'message Function'. This constraint is imposed to prevent
3209 // redundancy and maintain data integrity.
3210 //
3211 // Type: string
3212 // RequirementLevel: Recommended
3213 // Stability: Stable
3214 //
3215 // Examples: /usr/local/MyApplication/content_root/app/index.php
3216 CodeFilePathKey = attribute.Key("code.file.path")
3217
3218 // CodeFunctionNameKey is the attribute Key conforming to the
3219 // "code.function.name" semantic conventions. It represents the method or
3220 // function fully-qualified name without arguments. The value should fit the
3221 // natural representation of the language runtime, which is also likely the same
3222 // used within `code.stacktrace` attribute value. This attribute MUST NOT be
3223 // used on the Profile signal since the data is already captured in 'message
3224 // Function'. This constraint is imposed to prevent redundancy and maintain data
3225 // integrity.
3226 //
3227 // Type: string
3228 // RequirementLevel: Recommended
3229 // Stability: Stable
3230 //
3231 // Examples: "com.example.MyHttpService.serveRequest",
3232 // "GuzzleHttp\Client::transfer", "fopen"
3233 // Note: Values and format depends on each language runtime, thus it is
3234 // impossible to provide an exhaustive list of examples.
3235 // The values are usually the same (or prefixes of) the ones found in native
3236 // stack trace representation stored in
3237 // `code.stacktrace` without information on arguments.
3238 //
3239 // Examples:
3240 //
3241 // - Java method: `com.example.MyHttpService.serveRequest`
3242 // - Java anonymous class method: `com.mycompany.Main$1.myMethod`
3243 // - Java lambda method:
3244 // `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod`
3245 // - PHP function: `GuzzleHttp\Client::transfer`
3246 // - Go function: `github.com/my/repo/pkg.foo.func5`
3247 // - Elixir: `OpenTelemetry.Ctx.new`
3248 // - Erlang: `opentelemetry_ctx:new`
3249 // - Rust: `playground::my_module::my_cool_func`
3250 // - C function: `fopen`
3251 CodeFunctionNameKey = attribute.Key("code.function.name")
3252
3253 // CodeLineNumberKey is the attribute Key conforming to the "code.line.number"
3254 // semantic conventions. It represents the line number in `code.file.path` best
3255 // representing the operation. It SHOULD point within the code unit named in
3256 // `code.function.name`. This attribute MUST NOT be used on the Profile signal
3257 // since the data is already captured in 'message Line'. This constraint is
3258 // imposed to prevent redundancy and maintain data integrity.
3259 //
3260 // Type: int
3261 // RequirementLevel: Recommended
3262 // Stability: Stable
3263 CodeLineNumberKey = attribute.Key("code.line.number")
3264
3265 // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
3266 // semantic conventions. It represents a stacktrace as a string in the natural
3267 // representation for the language runtime. The representation is identical to
3268 // [`exception.stacktrace`]. This attribute MUST NOT be used on the Profile
3269 // signal since the data is already captured in 'message Location'. This
3270 // constraint is imposed to prevent redundancy and maintain data integrity.
3271 //
3272 // Type: string
3273 // RequirementLevel: Recommended
3274 // Stability: Stable
3275 //
3276 // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
3277 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
3278 // com.example.GenerateTrace.main(GenerateTrace.java:5)
3279 //
3280 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
3281 CodeStacktraceKey = attribute.Key("code.stacktrace")
3282 )
3283
3284 // CodeColumnNumber returns an attribute KeyValue conforming to the
3285 // "code.column.number" semantic conventions. It represents the column number in
3286 // `code.file.path` best representing the operation. It SHOULD point within the
3287 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3288 // the Profile signal since the data is already captured in 'message Line'. This
3289 // constraint is imposed to prevent redundancy and maintain data integrity.
3290 func CodeColumnNumber(val int) attribute.KeyValue {
3291 return CodeColumnNumberKey.Int(val)
3292 }
3293
3294 // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path"
3295 // semantic conventions. It represents the source code file name that identifies
3296 // the code unit as uniquely as possible (preferably an absolute file path). This
3297 // attribute MUST NOT be used on the Profile signal since the data is already
3298 // captured in 'message Function'. This constraint is imposed to prevent
3299 // redundancy and maintain data integrity.
3300 func CodeFilePath(val string) attribute.KeyValue {
3301 return CodeFilePathKey.String(val)
3302 }
3303
3304 // CodeFunctionName returns an attribute KeyValue conforming to the
3305 // "code.function.name" semantic conventions. It represents the method or
3306 // function fully-qualified name without arguments. The value should fit the
3307 // natural representation of the language runtime, which is also likely the same
3308 // used within `code.stacktrace` attribute value. This attribute MUST NOT be used
3309 // on the Profile signal since the data is already captured in 'message
3310 // Function'. This constraint is imposed to prevent redundancy and maintain data
3311 // integrity.
3312 func CodeFunctionName(val string) attribute.KeyValue {
3313 return CodeFunctionNameKey.String(val)
3314 }
3315
3316 // CodeLineNumber returns an attribute KeyValue conforming to the
3317 // "code.line.number" semantic conventions. It represents the line number in
3318 // `code.file.path` best representing the operation. It SHOULD point within the
3319 // code unit named in `code.function.name`. This attribute MUST NOT be used on
3320 // the Profile signal since the data is already captured in 'message Line'. This
3321 // constraint is imposed to prevent redundancy and maintain data integrity.
3322 func CodeLineNumber(val int) attribute.KeyValue {
3323 return CodeLineNumberKey.Int(val)
3324 }
3325
3326 // CodeStacktrace returns an attribute KeyValue conforming to the
3327 // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
3328 // in the natural representation for the language runtime. The representation is
3329 // identical to [`exception.stacktrace`]. This attribute MUST NOT be used on the
3330 // Profile signal since the data is already captured in 'message Location'. This
3331 // constraint is imposed to prevent redundancy and maintain data integrity.
3332 //
3333 // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
3334 func CodeStacktrace(val string) attribute.KeyValue {
3335 return CodeStacktraceKey.String(val)
3336 }
3337
3338 // Namespace: container
3339 const (
3340 // ContainerCommandKey is the attribute Key conforming to the
3341 // "container.command" semantic conventions. It represents the command used to
3342 // run the container (i.e. the command name).
3343 //
3344 // Type: string
3345 // RequirementLevel: Recommended
3346 // Stability: Development
3347 //
3348 // Examples: "otelcontribcol"
3349 // Note: If using embedded credentials or sensitive data, it is recommended to
3350 // remove them to prevent potential leakage.
3351 ContainerCommandKey = attribute.Key("container.command")
3352
3353 // ContainerCommandArgsKey is the attribute Key conforming to the
3354 // "container.command_args" semantic conventions. It represents the all the
3355 // command arguments (including the command/executable itself) run by the
3356 // container.
3357 //
3358 // Type: string[]
3359 // RequirementLevel: Recommended
3360 // Stability: Development
3361 //
3362 // Examples: "otelcontribcol", "--config", "config.yaml"
3363 ContainerCommandArgsKey = attribute.Key("container.command_args")
3364
3365 // ContainerCommandLineKey is the attribute Key conforming to the
3366 // "container.command_line" semantic conventions. It represents the full command
3367 // run by the container as a single string representing the full command.
3368 //
3369 // Type: string
3370 // RequirementLevel: Recommended
3371 // Stability: Development
3372 //
3373 // Examples: "otelcontribcol --config config.yaml"
3374 ContainerCommandLineKey = attribute.Key("container.command_line")
3375
3376 // ContainerCSIPluginNameKey is the attribute Key conforming to the
3377 // "container.csi.plugin.name" semantic conventions. It represents the name of
3378 // the CSI ([Container Storage Interface]) plugin used by the volume.
3379 //
3380 // Type: string
3381 // RequirementLevel: Recommended
3382 // Stability: Development
3383 //
3384 // Examples: "pd.csi.storage.gke.io"
3385 // Note: This can sometimes be referred to as a "driver" in CSI implementations.
3386 // This should represent the `name` field of the GetPluginInfo RPC.
3387 //
3388 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3389 ContainerCSIPluginNameKey = attribute.Key("container.csi.plugin.name")
3390
3391 // ContainerCSIVolumeIDKey is the attribute Key conforming to the
3392 // "container.csi.volume.id" semantic conventions. It represents the unique
3393 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3394 //
3395 // Type: string
3396 // RequirementLevel: Recommended
3397 // Stability: Development
3398 //
3399 // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
3400 // Note: This can sometimes be referred to as a "volume handle" in CSI
3401 // implementations. This should represent the `Volume.volume_id` field in CSI
3402 // spec.
3403 //
3404 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3405 ContainerCSIVolumeIDKey = attribute.Key("container.csi.volume.id")
3406
3407 // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
3408 // conventions. It represents the container ID. Usually a UUID, as for example
3409 // used to [identify Docker containers]. The UUID might be abbreviated.
3410 //
3411 // Type: string
3412 // RequirementLevel: Recommended
3413 // Stability: Development
3414 //
3415 // Examples: "a3bf90e006b2"
3416 //
3417 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3418 ContainerIDKey = attribute.Key("container.id")
3419
3420 // ContainerImageIDKey is the attribute Key conforming to the
3421 // "container.image.id" semantic conventions. It represents the runtime specific
3422 // image identifier. Usually a hash algorithm followed by a UUID.
3423 //
3424 // Type: string
3425 // RequirementLevel: Recommended
3426 // Stability: Development
3427 //
3428 // Examples:
3429 // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
3430 // Note: Docker defines a sha256 of the image id; `container.image.id`
3431 // corresponds to the `Image` field from the Docker container inspect [API]
3432 // endpoint.
3433 // K8s defines a link to the container registry repository with digest
3434 // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
3435 // .
3436 // The ID is assigned by the container runtime and can vary in different
3437 // environments. Consider using `oci.manifest.digest` if it is important to
3438 // identify the same image in different environments/runtimes.
3439 //
3440 // [API]: https://docs.docker.com/reference/api/engine/version/v1.43/#tag/Container/operation/ContainerInspect
3441 ContainerImageIDKey = attribute.Key("container.image.id")
3442
3443 // ContainerImageNameKey is the attribute Key conforming to the
3444 // "container.image.name" semantic conventions. It represents the name of the
3445 // image the container was built on.
3446 //
3447 // Type: string
3448 // RequirementLevel: Recommended
3449 // Stability: Development
3450 //
3451 // Examples: "gcr.io/opentelemetry/operator"
3452 ContainerImageNameKey = attribute.Key("container.image.name")
3453
3454 // ContainerImageRepoDigestsKey is the attribute Key conforming to the
3455 // "container.image.repo_digests" semantic conventions. It represents the repo
3456 // digests of the container image as provided by the container runtime.
3457 //
3458 // Type: string[]
3459 // RequirementLevel: Recommended
3460 // Stability: Development
3461 //
3462 // Examples:
3463 // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
3464 // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
3465 // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
3466 //
3467 // [Docker]: https://docs.docker.com/reference/api/engine/version/v1.43/#tag/Image/operation/ImageInspect
3468 // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
3469 ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
3470
3471 // ContainerImageTagsKey is the attribute Key conforming to the
3472 // "container.image.tags" semantic conventions. It represents the container
3473 // image tags. An example can be found in [Docker Image Inspect]. Should be only
3474 // the `<tag>` section of the full name for example from
3475 // `registry.example.com/my-org/my-image:<tag>`.
3476 //
3477 // Type: string[]
3478 // RequirementLevel: Recommended
3479 // Stability: Development
3480 //
3481 // Examples: "v1.27.1", "3.5.7-0"
3482 //
3483 // [Docker Image Inspect]: https://docs.docker.com/reference/api/engine/version/v1.43/#tag/Image/operation/ImageInspect
3484 ContainerImageTagsKey = attribute.Key("container.image.tags")
3485
3486 // ContainerNameKey is the attribute Key conforming to the "container.name"
3487 // semantic conventions. It represents the container name used by container
3488 // runtime.
3489 //
3490 // Type: string
3491 // RequirementLevel: Recommended
3492 // Stability: Development
3493 //
3494 // Examples: "opentelemetry-autoconf"
3495 ContainerNameKey = attribute.Key("container.name")
3496
3497 // ContainerRuntimeDescriptionKey is the attribute Key conforming to the
3498 // "container.runtime.description" semantic conventions. It represents a
3499 // description about the runtime which could include, for example details about
3500 // the CRI/API version being used or other customisations.
3501 //
3502 // Type: string
3503 // RequirementLevel: Recommended
3504 // Stability: Development
3505 //
3506 // Examples: "docker://19.3.1 - CRI: 1.22.0"
3507 ContainerRuntimeDescriptionKey = attribute.Key("container.runtime.description")
3508
3509 // ContainerRuntimeNameKey is the attribute Key conforming to the
3510 // "container.runtime.name" semantic conventions. It represents the container
3511 // runtime managing this container.
3512 //
3513 // Type: string
3514 // RequirementLevel: Recommended
3515 // Stability: Development
3516 //
3517 // Examples: "docker", "containerd", "rkt"
3518 ContainerRuntimeNameKey = attribute.Key("container.runtime.name")
3519
3520 // ContainerRuntimeVersionKey is the attribute Key conforming to the
3521 // "container.runtime.version" semantic conventions. It represents the version
3522 // of the runtime of this process, as returned by the runtime without
3523 // modification.
3524 //
3525 // Type: string
3526 // RequirementLevel: Recommended
3527 // Stability: Development
3528 //
3529 // Examples: 1.0.0
3530 ContainerRuntimeVersionKey = attribute.Key("container.runtime.version")
3531 )
3532
3533 // ContainerCommand returns an attribute KeyValue conforming to the
3534 // "container.command" semantic conventions. It represents the command used to
3535 // run the container (i.e. the command name).
3536 func ContainerCommand(val string) attribute.KeyValue {
3537 return ContainerCommandKey.String(val)
3538 }
3539
3540 // ContainerCommandArgs returns an attribute KeyValue conforming to the
3541 // "container.command_args" semantic conventions. It represents the all the
3542 // command arguments (including the command/executable itself) run by the
3543 // container.
3544 func ContainerCommandArgs(val ...string) attribute.KeyValue {
3545 return ContainerCommandArgsKey.StringSlice(val)
3546 }
3547
3548 // ContainerCommandLine returns an attribute KeyValue conforming to the
3549 // "container.command_line" semantic conventions. It represents the full command
3550 // run by the container as a single string representing the full command.
3551 func ContainerCommandLine(val string) attribute.KeyValue {
3552 return ContainerCommandLineKey.String(val)
3553 }
3554
3555 // ContainerCSIPluginName returns an attribute KeyValue conforming to the
3556 // "container.csi.plugin.name" semantic conventions. It represents the name of
3557 // the CSI ([Container Storage Interface]) plugin used by the volume.
3558 //
3559 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3560 func ContainerCSIPluginName(val string) attribute.KeyValue {
3561 return ContainerCSIPluginNameKey.String(val)
3562 }
3563
3564 // ContainerCSIVolumeID returns an attribute KeyValue conforming to the
3565 // "container.csi.volume.id" semantic conventions. It represents the unique
3566 // volume ID returned by the CSI ([Container Storage Interface]) plugin.
3567 //
3568 // [Container Storage Interface]: https://github.com/container-storage-interface/spec
3569 func ContainerCSIVolumeID(val string) attribute.KeyValue {
3570 return ContainerCSIVolumeIDKey.String(val)
3571 }
3572
3573 // ContainerID returns an attribute KeyValue conforming to the "container.id"
3574 // semantic conventions. It represents the container ID. Usually a UUID, as for
3575 // example used to [identify Docker containers]. The UUID might be abbreviated.
3576 //
3577 // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
3578 func ContainerID(val string) attribute.KeyValue {
3579 return ContainerIDKey.String(val)
3580 }
3581
3582 // ContainerImageID returns an attribute KeyValue conforming to the
3583 // "container.image.id" semantic conventions. It represents the runtime specific
3584 // image identifier. Usually a hash algorithm followed by a UUID.
3585 func ContainerImageID(val string) attribute.KeyValue {
3586 return ContainerImageIDKey.String(val)
3587 }
3588
3589 // ContainerImageName returns an attribute KeyValue conforming to the
3590 // "container.image.name" semantic conventions. It represents the name of the
3591 // image the container was built on.
3592 func ContainerImageName(val string) attribute.KeyValue {
3593 return ContainerImageNameKey.String(val)
3594 }
3595
3596 // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
3597 // "container.image.repo_digests" semantic conventions. It represents the repo
3598 // digests of the container image as provided by the container runtime.
3599 func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
3600 return ContainerImageRepoDigestsKey.StringSlice(val)
3601 }
3602
3603 // ContainerImageTags returns an attribute KeyValue conforming to the
3604 // "container.image.tags" semantic conventions. It represents the container image
3605 // tags. An example can be found in [Docker Image Inspect]. Should be only the
3606 // `<tag>` section of the full name for example from
3607 // `registry.example.com/my-org/my-image:<tag>`.
3608 //
3609 // [Docker Image Inspect]: https://docs.docker.com/reference/api/engine/version/v1.43/#tag/Image/operation/ImageInspect
3610 func ContainerImageTags(val ...string) attribute.KeyValue {
3611 return ContainerImageTagsKey.StringSlice(val)
3612 }
3613
3614 // ContainerLabel returns an attribute KeyValue conforming to the
3615 // "container.label" semantic conventions. It represents the container labels,
3616 // `<key>` being the label name, the value being the label value.
3617 func ContainerLabel(key string, val string) attribute.KeyValue {
3618 return attribute.String("container.label."+key, val)
3619 }
3620
3621 // ContainerName returns an attribute KeyValue conforming to the "container.name"
3622 // semantic conventions. It represents the container name used by container
3623 // runtime.
3624 func ContainerName(val string) attribute.KeyValue {
3625 return ContainerNameKey.String(val)
3626 }
3627
3628 // ContainerRuntimeDescription returns an attribute KeyValue conforming to the
3629 // "container.runtime.description" semantic conventions. It represents a
3630 // description about the runtime which could include, for example details about
3631 // the CRI/API version being used or other customisations.
3632 func ContainerRuntimeDescription(val string) attribute.KeyValue {
3633 return ContainerRuntimeDescriptionKey.String(val)
3634 }
3635
3636 // ContainerRuntimeName returns an attribute KeyValue conforming to the
3637 // "container.runtime.name" semantic conventions. It represents the container
3638 // runtime managing this container.
3639 func ContainerRuntimeName(val string) attribute.KeyValue {
3640 return ContainerRuntimeNameKey.String(val)
3641 }
3642
3643 // ContainerRuntimeVersion returns an attribute KeyValue conforming to the
3644 // "container.runtime.version" semantic conventions. It represents the version of
3645 // the runtime of this process, as returned by the runtime without modification.
3646 func ContainerRuntimeVersion(val string) attribute.KeyValue {
3647 return ContainerRuntimeVersionKey.String(val)
3648 }
3649
3650 // Namespace: cpu
3651 const (
3652 // CPULogicalNumberKey is the attribute Key conforming to the
3653 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3654 // number [0..n-1].
3655 //
3656 // Type: int
3657 // RequirementLevel: Recommended
3658 // Stability: Development
3659 //
3660 // Examples: 1
3661 CPULogicalNumberKey = attribute.Key("cpu.logical_number")
3662
3663 // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
3664 // conventions. It represents the mode of the CPU.
3665 //
3666 // Type: Enum
3667 // RequirementLevel: Recommended
3668 // Stability: Development
3669 //
3670 // Examples: "user", "system"
3671 CPUModeKey = attribute.Key("cpu.mode")
3672 )
3673
3674 // CPULogicalNumber returns an attribute KeyValue conforming to the
3675 // "cpu.logical_number" semantic conventions. It represents the logical CPU
3676 // number [0..n-1].
3677 func CPULogicalNumber(val int) attribute.KeyValue {
3678 return CPULogicalNumberKey.Int(val)
3679 }
3680
3681 // Enum values for cpu.mode
3682 var (
3683 // User
3684 // Stability: development
3685 CPUModeUser = CPUModeKey.String("user")
3686 // System
3687 // Stability: development
3688 CPUModeSystem = CPUModeKey.String("system")
3689 // Nice
3690 // Stability: development
3691 CPUModeNice = CPUModeKey.String("nice")
3692 // Idle
3693 // Stability: development
3694 CPUModeIdle = CPUModeKey.String("idle")
3695 // IO Wait
3696 // Stability: development
3697 CPUModeIOWait = CPUModeKey.String("iowait")
3698 // Interrupt
3699 // Stability: development
3700 CPUModeInterrupt = CPUModeKey.String("interrupt")
3701 // Steal
3702 // Stability: development
3703 CPUModeSteal = CPUModeKey.String("steal")
3704 // Kernel
3705 // Stability: development
3706 CPUModeKernel = CPUModeKey.String("kernel")
3707 )
3708
3709 // Namespace: db
3710 const (
3711 // DBClientConnectionPoolNameKey is the attribute Key conforming to the
3712 // "db.client.connection.pool.name" semantic conventions. It represents the name
3713 // of the connection pool; unique within the instrumented application. In case
3714 // the connection pool implementation doesn't provide a name, instrumentation
3715 // SHOULD use a combination of parameters that would make the name unique, for
3716 // example, combining attributes `server.address`, `server.port`, and
3717 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3718 // Instrumentations that generate connection pool name following different
3719 // patterns SHOULD document it.
3720 //
3721 // Type: string
3722 // RequirementLevel: Recommended
3723 // Stability: Development
3724 //
3725 // Examples: "myDataSource"
3726 DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
3727
3728 // DBClientConnectionStateKey is the attribute Key conforming to the
3729 // "db.client.connection.state" semantic conventions. It represents the state of
3730 // a connection in the pool.
3731 //
3732 // Type: Enum
3733 // RequirementLevel: Recommended
3734 // Stability: Development
3735 //
3736 // Examples: "idle"
3737 DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
3738
3739 // DBCollectionNameKey is the attribute Key conforming to the
3740 // "db.collection.name" semantic conventions. It represents the name of a
3741 // collection (table, container) within the database.
3742 //
3743 // Type: string
3744 // RequirementLevel: Recommended
3745 // Stability: Stable
3746 //
3747 // Examples: "public.users", "customers"
3748 // Note: It is RECOMMENDED to capture the value as provided by the application
3749 // without attempting to do any case normalization.
3750 //
3751 // The collection name SHOULD NOT be extracted from `db.query.text`,
3752 // when the database system supports query text with multiple collections
3753 // in non-batch operations.
3754 //
3755 // For batch operations, if the individual operations are known to have the same
3756 // collection name then that collection name SHOULD be used.
3757 DBCollectionNameKey = attribute.Key("db.collection.name")
3758
3759 // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
3760 // conventions. It represents the name of the database, fully qualified within
3761 // the server address and port.
3762 //
3763 // Type: string
3764 // RequirementLevel: Recommended
3765 // Stability: Stable
3766 //
3767 // Examples: "customers", "test.users"
3768 // Note: If a database system has multiple namespace components, they SHOULD be
3769 // concatenated from the most general to the most specific namespace component,
3770 // using `|` as a separator between the components. Any missing components (and
3771 // their associated separators) SHOULD be omitted.
3772 // Semantic conventions for individual database systems SHOULD document what
3773 // `db.namespace` means in the context of that system.
3774 // It is RECOMMENDED to capture the value as provided by the application without
3775 // attempting to do any case normalization.
3776 DBNamespaceKey = attribute.Key("db.namespace")
3777
3778 // DBOperationBatchSizeKey is the attribute Key conforming to the
3779 // "db.operation.batch.size" semantic conventions. It represents the number of
3780 // queries included in a batch operation.
3781 //
3782 // Type: int
3783 // RequirementLevel: Recommended
3784 // Stability: Stable
3785 //
3786 // Examples: 2, 3, 4
3787 // Note: Operations are only considered batches when they contain two or more
3788 // operations, and so `db.operation.batch.size` SHOULD never be `1`.
3789 DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
3790
3791 // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
3792 // semantic conventions. It represents the name of the operation or command
3793 // being executed.
3794 //
3795 // Type: string
3796 // RequirementLevel: Recommended
3797 // Stability: Stable
3798 //
3799 // Examples: "findAndModify", "HMSET", "SELECT"
3800 // Note: It is RECOMMENDED to capture the value as provided by the application
3801 // without attempting to do any case normalization.
3802 //
3803 // The operation name SHOULD NOT be extracted from `db.query.text`,
3804 // when the database system supports query text with multiple operations
3805 // in non-batch operations.
3806 //
3807 // If spaces can occur in the operation name, multiple consecutive spaces
3808 // SHOULD be normalized to a single space.
3809 //
3810 // For batch operations, if the individual operations are known to have the same
3811 // operation name
3812 // then that operation name SHOULD be used prepended by `BATCH `,
3813 // otherwise `db.operation.name` SHOULD be `BATCH` or some other database
3814 // system specific term if more applicable.
3815 DBOperationNameKey = attribute.Key("db.operation.name")
3816
3817 // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary"
3818 // semantic conventions. It represents the low cardinality summary of a database
3819 // query.
3820 //
3821 // Type: string
3822 // RequirementLevel: Recommended
3823 // Stability: Stable
3824 //
3825 // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get
3826 // user by id"
3827 // Note: The query summary describes a class of database queries and is useful
3828 // as a grouping key, especially when analyzing telemetry for database
3829 // calls involving complex queries.
3830 //
3831 // Summary may be available to the instrumentation through
3832 // instrumentation hooks or other means. If it is not available,
3833 // instrumentations
3834 // that support query parsing SHOULD generate a summary following
3835 // [Generating query summary]
3836 // section.
3837 //
3838 // [Generating query summary]: /docs/database/database-spans.md#generating-a-summary-of-the-query
3839 DBQuerySummaryKey = attribute.Key("db.query.summary")
3840
3841 // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
3842 // semantic conventions. It represents the database query being executed.
3843 //
3844 // Type: string
3845 // RequirementLevel: Recommended
3846 // Stability: Stable
3847 //
3848 // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?"
3849 // Note: For sanitization see [Sanitization of `db.query.text`].
3850 // For batch operations, if the individual operations are known to have the same
3851 // query text then that query text SHOULD be used, otherwise all of the
3852 // individual query texts SHOULD be concatenated with separator `; ` or some
3853 // other database system specific separator if more applicable.
3854 // Parameterized query text SHOULD NOT be sanitized. Even though parameterized
3855 // query text can potentially have sensitive data, by using a parameterized
3856 // query the user is giving a strong signal that any sensitive data will be
3857 // passed as parameter values, and the benefit to observability of capturing the
3858 // static part of the query text by default outweighs the risk.
3859 //
3860 // [Sanitization of `db.query.text`]: /docs/database/database-spans.md#sanitization-of-dbquerytext
3861 DBQueryTextKey = attribute.Key("db.query.text")
3862
3863 // DBResponseReturnedRowsKey is the attribute Key conforming to the
3864 // "db.response.returned_rows" semantic conventions. It represents the number of
3865 // rows returned by the operation.
3866 //
3867 // Type: int
3868 // RequirementLevel: Recommended
3869 // Stability: Development
3870 //
3871 // Examples: 10, 30, 1000
3872 DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows")
3873
3874 // DBResponseStatusCodeKey is the attribute Key conforming to the
3875 // "db.response.status_code" semantic conventions. It represents the database
3876 // response status code.
3877 //
3878 // Type: string
3879 // RequirementLevel: Recommended
3880 // Stability: Stable
3881 //
3882 // Examples: "102", "ORA-17002", "08P01", "404"
3883 // Note: The status code returned by the database. Usually it represents an
3884 // error code, but may also represent partial success, warning, or differentiate
3885 // between various types of successful outcomes.
3886 // Semantic conventions for individual database systems SHOULD document what
3887 // `db.response.status_code` means in the context of that system.
3888 DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
3889
3890 // DBStoredProcedureNameKey is the attribute Key conforming to the
3891 // "db.stored_procedure.name" semantic conventions. It represents the name of a
3892 // stored procedure within the database.
3893 //
3894 // Type: string
3895 // RequirementLevel: Recommended
3896 // Stability: Stable
3897 //
3898 // Examples: "GetCustomer"
3899 // Note: It is RECOMMENDED to capture the value as provided by the application
3900 // without attempting to do any case normalization.
3901 //
3902 // For batch operations, if the individual operations are known to have the same
3903 // stored procedure name then that stored procedure name SHOULD be used.
3904 DBStoredProcedureNameKey = attribute.Key("db.stored_procedure.name")
3905
3906 // DBSystemNameKey is the attribute Key conforming to the "db.system.name"
3907 // semantic conventions. It represents the database management system (DBMS)
3908 // product as identified by the client instrumentation.
3909 //
3910 // Type: Enum
3911 // RequirementLevel: Recommended
3912 // Stability: Stable
3913 //
3914 // Examples:
3915 // Note: The actual DBMS may differ from the one identified by the client. For
3916 // example, when using PostgreSQL client libraries to connect to a CockroachDB,
3917 // the `db.system.name` is set to `postgresql` based on the instrumentation's
3918 // best knowledge.
3919 DBSystemNameKey = attribute.Key("db.system.name")
3920 )
3921
3922 // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
3923 // "db.client.connection.pool.name" semantic conventions. It represents the name
3924 // of the connection pool; unique within the instrumented application. In case
3925 // the connection pool implementation doesn't provide a name, instrumentation
3926 // SHOULD use a combination of parameters that would make the name unique, for
3927 // example, combining attributes `server.address`, `server.port`, and
3928 // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
3929 // Instrumentations that generate connection pool name following different
3930 // patterns SHOULD document it.
3931 func DBClientConnectionPoolName(val string) attribute.KeyValue {
3932 return DBClientConnectionPoolNameKey.String(val)
3933 }
3934
3935 // DBCollectionName returns an attribute KeyValue conforming to the
3936 // "db.collection.name" semantic conventions. It represents the name of a
3937 // collection (table, container) within the database.
3938 func DBCollectionName(val string) attribute.KeyValue {
3939 return DBCollectionNameKey.String(val)
3940 }
3941
3942 // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
3943 // semantic conventions. It represents the name of the database, fully qualified
3944 // within the server address and port.
3945 func DBNamespace(val string) attribute.KeyValue {
3946 return DBNamespaceKey.String(val)
3947 }
3948
3949 // DBOperationBatchSize returns an attribute KeyValue conforming to the
3950 // "db.operation.batch.size" semantic conventions. It represents the number of
3951 // queries included in a batch operation.
3952 func DBOperationBatchSize(val int) attribute.KeyValue {
3953 return DBOperationBatchSizeKey.Int(val)
3954 }
3955
3956 // DBOperationName returns an attribute KeyValue conforming to the
3957 // "db.operation.name" semantic conventions. It represents the name of the
3958 // operation or command being executed.
3959 func DBOperationName(val string) attribute.KeyValue {
3960 return DBOperationNameKey.String(val)
3961 }
3962
3963 // DBOperationParameter returns an attribute KeyValue conforming to the
3964 // "db.operation.parameter" semantic conventions. It represents a database
3965 // operation parameter, with `<key>` being the parameter name, and the attribute
3966 // value being a string representation of the parameter value.
3967 func DBOperationParameter(key string, val string) attribute.KeyValue {
3968 return attribute.String("db.operation.parameter."+key, val)
3969 }
3970
3971 // DBQueryParameter returns an attribute KeyValue conforming to the
3972 // "db.query.parameter" semantic conventions. It represents a database query
3973 // parameter, with `<key>` being the parameter name, and the attribute value
3974 // being a string representation of the parameter value.
3975 func DBQueryParameter(key string, val string) attribute.KeyValue {
3976 return attribute.String("db.query.parameter."+key, val)
3977 }
3978
3979 // DBQuerySummary returns an attribute KeyValue conforming to the
3980 // "db.query.summary" semantic conventions. It represents the low cardinality
3981 // summary of a database query.
3982 func DBQuerySummary(val string) attribute.KeyValue {
3983 return DBQuerySummaryKey.String(val)
3984 }
3985
3986 // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
3987 // semantic conventions. It represents the database query being executed.
3988 func DBQueryText(val string) attribute.KeyValue {
3989 return DBQueryTextKey.String(val)
3990 }
3991
3992 // DBResponseReturnedRows returns an attribute KeyValue conforming to the
3993 // "db.response.returned_rows" semantic conventions. It represents the number of
3994 // rows returned by the operation.
3995 func DBResponseReturnedRows(val int) attribute.KeyValue {
3996 return DBResponseReturnedRowsKey.Int(val)
3997 }
3998
3999 // DBResponseStatusCode returns an attribute KeyValue conforming to the
4000 // "db.response.status_code" semantic conventions. It represents the database
4001 // response status code.
4002 func DBResponseStatusCode(val string) attribute.KeyValue {
4003 return DBResponseStatusCodeKey.String(val)
4004 }
4005
4006 // DBStoredProcedureName returns an attribute KeyValue conforming to the
4007 // "db.stored_procedure.name" semantic conventions. It represents the name of a
4008 // stored procedure within the database.
4009 func DBStoredProcedureName(val string) attribute.KeyValue {
4010 return DBStoredProcedureNameKey.String(val)
4011 }
4012
4013 // Enum values for db.client.connection.state
4014 var (
4015 // idle
4016 // Stability: development
4017 DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
4018 // used
4019 // Stability: development
4020 DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
4021 )
4022
4023 // Enum values for db.system.name
4024 var (
4025 // Some other SQL database. Fallback only.
4026 // Stability: development
4027 DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql")
4028 // [Adabas (Adaptable Database System)]
4029 // Stability: development
4030 //
4031 // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas
4032 DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas")
4033 // [Actian Ingres]
4034 // Stability: development
4035 //
4036 // [Actian Ingres]: https://www.actian.com/databases/ingres/
4037 DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres")
4038 // [Amazon DynamoDB]
4039 // Stability: development
4040 //
4041 // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/
4042 DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb")
4043 // [Amazon Redshift]
4044 // Stability: development
4045 //
4046 // [Amazon Redshift]: https://aws.amazon.com/redshift/
4047 DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift")
4048 // [Azure Cosmos DB]
4049 // Stability: development
4050 //
4051 // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db
4052 DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb")
4053 // [InterSystems Caché]
4054 // Stability: development
4055 //
4056 // [InterSystems Caché]: https://www.intersystems.com/products/cache/
4057 DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache")
4058 // [Apache Cassandra]
4059 // Stability: development
4060 //
4061 // [Apache Cassandra]: https://cassandra.apache.org/
4062 DBSystemNameCassandra = DBSystemNameKey.String("cassandra")
4063 // [ClickHouse]
4064 // Stability: development
4065 //
4066 // [ClickHouse]: https://clickhouse.com/
4067 DBSystemNameClickHouse = DBSystemNameKey.String("clickhouse")
4068 // [CockroachDB]
4069 // Stability: development
4070 //
4071 // [CockroachDB]: https://www.cockroachlabs.com/
4072 DBSystemNameCockroachDB = DBSystemNameKey.String("cockroachdb")
4073 // [Couchbase]
4074 // Stability: development
4075 //
4076 // [Couchbase]: https://www.couchbase.com/
4077 DBSystemNameCouchbase = DBSystemNameKey.String("couchbase")
4078 // [Apache CouchDB]
4079 // Stability: development
4080 //
4081 // [Apache CouchDB]: https://couchdb.apache.org/
4082 DBSystemNameCouchDB = DBSystemNameKey.String("couchdb")
4083 // [Apache Derby]
4084 // Stability: development
4085 //
4086 // [Apache Derby]: https://db.apache.org/derby/
4087 DBSystemNameDerby = DBSystemNameKey.String("derby")
4088 // [Elasticsearch]
4089 // Stability: development
4090 //
4091 // [Elasticsearch]: https://www.elastic.co/elasticsearch
4092 DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch")
4093 // [Firebird]
4094 // Stability: development
4095 //
4096 // [Firebird]: https://www.firebirdsql.org/
4097 DBSystemNameFirebirdSQL = DBSystemNameKey.String("firebirdsql")
4098 // [Google Cloud Spanner]
4099 // Stability: development
4100 //
4101 // [Google Cloud Spanner]: https://cloud.google.com/spanner
4102 DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner")
4103 // [Apache Geode]
4104 // Stability: development
4105 //
4106 // [Apache Geode]: https://geode.apache.org/
4107 DBSystemNameGeode = DBSystemNameKey.String("geode")
4108 // [H2 Database]
4109 // Stability: development
4110 //
4111 // [H2 Database]: https://h2database.com/
4112 DBSystemNameH2database = DBSystemNameKey.String("h2database")
4113 // [Apache HBase]
4114 // Stability: development
4115 //
4116 // [Apache HBase]: https://hbase.apache.org/
4117 DBSystemNameHBase = DBSystemNameKey.String("hbase")
4118 // [Apache Hive]
4119 // Stability: development
4120 //
4121 // [Apache Hive]: https://hive.apache.org/
4122 DBSystemNameHive = DBSystemNameKey.String("hive")
4123 // [HyperSQL Database]
4124 // Stability: development
4125 //
4126 // [HyperSQL Database]: https://hsqldb.org/
4127 DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb")
4128 // [IBM Db2]
4129 // Stability: development
4130 //
4131 // [IBM Db2]: https://www.ibm.com/db2
4132 DBSystemNameIBMDB2 = DBSystemNameKey.String("ibm.db2")
4133 // [IBM Informix]
4134 // Stability: development
4135 //
4136 // [IBM Informix]: https://www.ibm.com/products/informix
4137 DBSystemNameIBMInformix = DBSystemNameKey.String("ibm.informix")
4138 // [IBM Netezza]
4139 // Stability: development
4140 //
4141 // [IBM Netezza]: https://www.ibm.com/products/netezza
4142 DBSystemNameIBMNetezza = DBSystemNameKey.String("ibm.netezza")
4143 // [InfluxDB]
4144 // Stability: development
4145 //
4146 // [InfluxDB]: https://www.influxdata.com/
4147 DBSystemNameInfluxDB = DBSystemNameKey.String("influxdb")
4148 // [Instant]
4149 // Stability: development
4150 //
4151 // [Instant]: https://www.instantdb.com/
4152 DBSystemNameInstantDB = DBSystemNameKey.String("instantdb")
4153 // [MariaDB]
4154 // Stability: stable
4155 //
4156 // [MariaDB]: https://mariadb.org/
4157 DBSystemNameMariaDB = DBSystemNameKey.String("mariadb")
4158 // [Memcached]
4159 // Stability: development
4160 //
4161 // [Memcached]: https://memcached.org/
4162 DBSystemNameMemcached = DBSystemNameKey.String("memcached")
4163 // [MongoDB]
4164 // Stability: development
4165 //
4166 // [MongoDB]: https://www.mongodb.com/
4167 DBSystemNameMongoDB = DBSystemNameKey.String("mongodb")
4168 // [Microsoft SQL Server]
4169 // Stability: stable
4170 //
4171 // [Microsoft SQL Server]: https://www.microsoft.com/sql-server
4172 DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server")
4173 // [MySQL]
4174 // Stability: stable
4175 //
4176 // [MySQL]: https://www.mysql.com/
4177 DBSystemNameMySQL = DBSystemNameKey.String("mysql")
4178 // [Neo4j]
4179 // Stability: development
4180 //
4181 // [Neo4j]: https://neo4j.com/
4182 DBSystemNameNeo4j = DBSystemNameKey.String("neo4j")
4183 // [OpenSearch]
4184 // Stability: development
4185 //
4186 // [OpenSearch]: https://opensearch.org/
4187 DBSystemNameOpenSearch = DBSystemNameKey.String("opensearch")
4188 // [Oracle Database]
4189 // Stability: development
4190 //
4191 // [Oracle Database]: https://www.oracle.com/database/
4192 DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db")
4193 // [PostgreSQL]
4194 // Stability: stable
4195 //
4196 // [PostgreSQL]: https://www.postgresql.org/
4197 DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql")
4198 // [Redis]
4199 // Stability: development
4200 //
4201 // [Redis]: https://redis.io/
4202 DBSystemNameRedis = DBSystemNameKey.String("redis")
4203 // [SAP HANA]
4204 // Stability: development
4205 //
4206 // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html
4207 DBSystemNameSAPHANA = DBSystemNameKey.String("sap.hana")
4208 // [SAP MaxDB]
4209 // Stability: development
4210 //
4211 // [SAP MaxDB]: https://maxdb.sap.com/
4212 DBSystemNameSAPMaxDB = DBSystemNameKey.String("sap.maxdb")
4213 // [SQLite]
4214 // Stability: development
4215 //
4216 // [SQLite]: https://www.sqlite.org/
4217 DBSystemNameSQLite = DBSystemNameKey.String("sqlite")
4218 // [Teradata]
4219 // Stability: development
4220 //
4221 // [Teradata]: https://www.teradata.com/
4222 DBSystemNameTeradata = DBSystemNameKey.String("teradata")
4223 // [Trino]
4224 // Stability: development
4225 //
4226 // [Trino]: https://trino.io/
4227 DBSystemNameTrino = DBSystemNameKey.String("trino")
4228 )
4229
4230 // Namespace: deployment
4231 const (
4232 // DeploymentEnvironmentNameKey is the attribute Key conforming to the
4233 // "deployment.environment.name" semantic conventions. It represents the name of
4234 // the [deployment environment] (aka deployment tier).
4235 //
4236 // Type: string
4237 // RequirementLevel: Recommended
4238 // Stability: Development
4239 //
4240 // Examples: "staging", "production"
4241 // Note: `deployment.environment.name` does not affect the uniqueness
4242 // constraints defined through
4243 // the `service.namespace`, `service.name` and `service.instance.id` resource
4244 // attributes.
4245 // This implies that resources carrying the following attribute combinations
4246 // MUST be
4247 // considered to be identifying the same service:
4248 //
4249 // - `service.name=frontend`, `deployment.environment.name=production`
4250 // - `service.name=frontend`, `deployment.environment.name=staging`.
4251 //
4252 //
4253 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
4254 DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
4255
4256 // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
4257 // semantic conventions. It represents the id of the deployment.
4258 //
4259 // Type: string
4260 // RequirementLevel: Recommended
4261 // Stability: Development
4262 //
4263 // Examples: "1208"
4264 DeploymentIDKey = attribute.Key("deployment.id")
4265
4266 // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
4267 // semantic conventions. It represents the name of the deployment.
4268 //
4269 // Type: string
4270 // RequirementLevel: Recommended
4271 // Stability: Development
4272 //
4273 // Examples: "deploy my app", "deploy-frontend"
4274 DeploymentNameKey = attribute.Key("deployment.name")
4275
4276 // DeploymentStatusKey is the attribute Key conforming to the
4277 // "deployment.status" semantic conventions. It represents the status of the
4278 // deployment.
4279 //
4280 // Type: Enum
4281 // RequirementLevel: Recommended
4282 // Stability: Development
4283 //
4284 // Examples:
4285 DeploymentStatusKey = attribute.Key("deployment.status")
4286 )
4287
4288 // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
4289 // "deployment.environment.name" semantic conventions. It represents the name of
4290 // the [deployment environment] (aka deployment tier).
4291 //
4292 // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
4293 func DeploymentEnvironmentName(val string) attribute.KeyValue {
4294 return DeploymentEnvironmentNameKey.String(val)
4295 }
4296
4297 // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
4298 // semantic conventions. It represents the id of the deployment.
4299 func DeploymentID(val string) attribute.KeyValue {
4300 return DeploymentIDKey.String(val)
4301 }
4302
4303 // DeploymentName returns an attribute KeyValue conforming to the
4304 // "deployment.name" semantic conventions. It represents the name of the
4305 // deployment.
4306 func DeploymentName(val string) attribute.KeyValue {
4307 return DeploymentNameKey.String(val)
4308 }
4309
4310 // Enum values for deployment.status
4311 var (
4312 // failed
4313 // Stability: development
4314 DeploymentStatusFailed = DeploymentStatusKey.String("failed")
4315 // succeeded
4316 // Stability: development
4317 DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
4318 )
4319
4320 // Namespace: destination
4321 const (
4322 // DestinationAddressKey is the attribute Key conforming to the
4323 // "destination.address" semantic conventions. It represents the destination
4324 // address - domain name if available without reverse DNS lookup; otherwise, IP
4325 // address or Unix domain socket name.
4326 //
4327 // Type: string
4328 // RequirementLevel: Recommended
4329 // Stability: Development
4330 //
4331 // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
4332 // Note: When observed from the source side, and when communicating through an
4333 // intermediary, `destination.address` SHOULD represent the destination address
4334 // behind any intermediaries, for example proxies, if it's available.
4335 DestinationAddressKey = attribute.Key("destination.address")
4336
4337 // DestinationPortKey is the attribute Key conforming to the "destination.port"
4338 // semantic conventions. It represents the destination port number.
4339 //
4340 // Type: int
4341 // RequirementLevel: Recommended
4342 // Stability: Development
4343 //
4344 // Examples: 3389, 2888
4345 DestinationPortKey = attribute.Key("destination.port")
4346 )
4347
4348 // DestinationAddress returns an attribute KeyValue conforming to the
4349 // "destination.address" semantic conventions. It represents the destination
4350 // address - domain name if available without reverse DNS lookup; otherwise, IP
4351 // address or Unix domain socket name.
4352 func DestinationAddress(val string) attribute.KeyValue {
4353 return DestinationAddressKey.String(val)
4354 }
4355
4356 // DestinationPort returns an attribute KeyValue conforming to the
4357 // "destination.port" semantic conventions. It represents the destination port
4358 // number.
4359 func DestinationPort(val int) attribute.KeyValue {
4360 return DestinationPortKey.Int(val)
4361 }
4362
4363 // Namespace: device
4364 const (
4365 // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
4366 // conventions. It represents a unique identifier representing the device.
4367 //
4368 // Type: string
4369 // RequirementLevel: Recommended
4370 // Stability: Development
4371 //
4372 // Examples: "123456789012345", "01:23:45:67:89:AB"
4373 // Note: Its value SHOULD be identical for all apps on a device and it SHOULD
4374 // NOT change if an app is uninstalled and re-installed.
4375 // However, it might be resettable by the user for all apps on a device.
4376 // Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) MAY be
4377 // used as values.
4378 //
4379 // More information about Android identifier best practices can be found in the
4380 // [Android user data IDs guide].
4381 //
4382 // > [!WARNING]> This attribute may contain sensitive (PII) information. Caution
4383 // > should be taken when storing personal data or anything which can identify a
4384 // > user. GDPR and data protection laws may apply,
4385 // > ensure you do your own due diligence.> Due to these reasons, this
4386 // > identifier is not recommended for consumer applications and will likely
4387 // > result in rejection from both Google Play and App Store.
4388 // > However, it may be appropriate for specific enterprise scenarios, such as
4389 // > kiosk devices or enterprise-managed devices, with appropriate compliance
4390 // > clearance.
4391 // > Any instrumentation providing this identifier MUST implement it as an
4392 // > opt-in feature.> See [`app.installation.id`]> for a more
4393 // > privacy-preserving alternative.
4394 //
4395 // [Android user data IDs guide]: https://developer.android.com/training/articles/user-data-ids
4396 // [`app.installation.id`]: /docs/registry/attributes/app.md#app-installation-id
4397 DeviceIDKey = attribute.Key("device.id")
4398
4399 // DeviceManufacturerKey is the attribute Key conforming to the
4400 // "device.manufacturer" semantic conventions. It represents the name of the
4401 // device manufacturer.
4402 //
4403 // Type: string
4404 // RequirementLevel: Recommended
4405 // Stability: Development
4406 //
4407 // Examples: "Apple", "Samsung"
4408 // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
4409 // hardcode the value `Apple`.
4410 //
4411 // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
4412 DeviceManufacturerKey = attribute.Key("device.manufacturer")
4413
4414 // DeviceModelIdentifierKey is the attribute Key conforming to the
4415 // "device.model.identifier" semantic conventions. It represents the model
4416 // identifier for the device.
4417 //
4418 // Type: string
4419 // RequirementLevel: Recommended
4420 // Stability: Development
4421 //
4422 // Examples: "iPhone3,4", "SM-G920F"
4423 // Note: It's recommended this value represents a machine-readable version of
4424 // the model identifier rather than the market or consumer-friendly name of the
4425 // device.
4426 DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
4427
4428 // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
4429 // semantic conventions. It represents the marketing name for the device model.
4430 //
4431 // Type: string
4432 // RequirementLevel: Recommended
4433 // Stability: Development
4434 //
4435 // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
4436 // Note: It's recommended this value represents a human-readable version of the
4437 // device model rather than a machine-readable alternative.
4438 DeviceModelNameKey = attribute.Key("device.model.name")
4439 )
4440
4441 // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
4442 // conventions. It represents a unique identifier representing the device.
4443 func DeviceID(val string) attribute.KeyValue {
4444 return DeviceIDKey.String(val)
4445 }
4446
4447 // DeviceManufacturer returns an attribute KeyValue conforming to the
4448 // "device.manufacturer" semantic conventions. It represents the name of the
4449 // device manufacturer.
4450 func DeviceManufacturer(val string) attribute.KeyValue {
4451 return DeviceManufacturerKey.String(val)
4452 }
4453
4454 // DeviceModelIdentifier returns an attribute KeyValue conforming to the
4455 // "device.model.identifier" semantic conventions. It represents the model
4456 // identifier for the device.
4457 func DeviceModelIdentifier(val string) attribute.KeyValue {
4458 return DeviceModelIdentifierKey.String(val)
4459 }
4460
4461 // DeviceModelName returns an attribute KeyValue conforming to the
4462 // "device.model.name" semantic conventions. It represents the marketing name for
4463 // the device model.
4464 func DeviceModelName(val string) attribute.KeyValue {
4465 return DeviceModelNameKey.String(val)
4466 }
4467
4468 // Namespace: disk
4469 const (
4470 // DiskIODirectionKey is the attribute Key conforming to the "disk.io.direction"
4471 // semantic conventions. It represents the disk IO operation direction.
4472 //
4473 // Type: Enum
4474 // RequirementLevel: Recommended
4475 // Stability: Development
4476 //
4477 // Examples: "read"
4478 DiskIODirectionKey = attribute.Key("disk.io.direction")
4479 )
4480
4481 // Enum values for disk.io.direction
4482 var (
4483 // read
4484 // Stability: development
4485 DiskIODirectionRead = DiskIODirectionKey.String("read")
4486 // write
4487 // Stability: development
4488 DiskIODirectionWrite = DiskIODirectionKey.String("write")
4489 )
4490
4491 // Namespace: dns
4492 const (
4493 // DNSAnswersKey is the attribute Key conforming to the "dns.answers" semantic
4494 // conventions. It represents the list of IPv4 or IPv6 addresses resolved during
4495 // DNS lookup.
4496 //
4497 // Type: string[]
4498 // RequirementLevel: Recommended
4499 // Stability: Development
4500 //
4501 // Examples: "10.0.0.1", "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
4502 DNSAnswersKey = attribute.Key("dns.answers")
4503
4504 // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
4505 // semantic conventions. It represents the name being queried.
4506 //
4507 // Type: string
4508 // RequirementLevel: Recommended
4509 // Stability: Development
4510 //
4511 // Examples: "www.example.com", "opentelemetry.io"
4512 // Note: The name represents the queried domain name as it appears in the DNS
4513 // query without any additional normalization.
4514 DNSQuestionNameKey = attribute.Key("dns.question.name")
4515 )
4516
4517 // DNSAnswers returns an attribute KeyValue conforming to the "dns.answers"
4518 // semantic conventions. It represents the list of IPv4 or IPv6 addresses
4519 // resolved during DNS lookup.
4520 func DNSAnswers(val ...string) attribute.KeyValue {
4521 return DNSAnswersKey.StringSlice(val)
4522 }
4523
4524 // DNSQuestionName returns an attribute KeyValue conforming to the
4525 // "dns.question.name" semantic conventions. It represents the name being
4526 // queried.
4527 func DNSQuestionName(val string) attribute.KeyValue {
4528 return DNSQuestionNameKey.String(val)
4529 }
4530
4531 // Namespace: elasticsearch
4532 const (
4533 // ElasticsearchNodeNameKey is the attribute Key conforming to the
4534 // "elasticsearch.node.name" semantic conventions. It represents the represents
4535 // the human-readable identifier of the node/instance to which a request was
4536 // routed.
4537 //
4538 // Type: string
4539 // RequirementLevel: Recommended
4540 // Stability: Development
4541 //
4542 // Examples: "instance-0000000001"
4543 ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name")
4544 )
4545
4546 // ElasticsearchNodeName returns an attribute KeyValue conforming to the
4547 // "elasticsearch.node.name" semantic conventions. It represents the represents
4548 // the human-readable identifier of the node/instance to which a request was
4549 // routed.
4550 func ElasticsearchNodeName(val string) attribute.KeyValue {
4551 return ElasticsearchNodeNameKey.String(val)
4552 }
4553
4554 // Namespace: enduser
4555 const (
4556 // EnduserIDKey is the attribute Key conforming to the "enduser.id" semantic
4557 // conventions. It represents the unique identifier of an end user in the
4558 // system. It maybe a username, email address, or other identifier.
4559 //
4560 // Type: string
4561 // RequirementLevel: Recommended
4562 // Stability: Development
4563 //
4564 // Examples: "username"
4565 // Note: Unique identifier of an end user in the system.
4566 //
4567 // > [!Warning]
4568 // > This field contains sensitive (PII) information.
4569 EnduserIDKey = attribute.Key("enduser.id")
4570
4571 // EnduserPseudoIDKey is the attribute Key conforming to the "enduser.pseudo.id"
4572 // semantic conventions. It represents the pseudonymous identifier of an end
4573 // user. This identifier should be a random value that is not directly linked or
4574 // associated with the end user's actual identity.
4575 //
4576 // Type: string
4577 // RequirementLevel: Recommended
4578 // Stability: Development
4579 //
4580 // Examples: "QdH5CAWJgqVT4rOr0qtumf"
4581 // Note: Pseudonymous identifier of an end user.
4582 //
4583 // > [!Warning]
4584 // > This field contains sensitive (linkable PII) information.
4585 EnduserPseudoIDKey = attribute.Key("enduser.pseudo.id")
4586 )
4587
4588 // EnduserID returns an attribute KeyValue conforming to the "enduser.id"
4589 // semantic conventions. It represents the unique identifier of an end user in
4590 // the system. It maybe a username, email address, or other identifier.
4591 func EnduserID(val string) attribute.KeyValue {
4592 return EnduserIDKey.String(val)
4593 }
4594
4595 // EnduserPseudoID returns an attribute KeyValue conforming to the
4596 // "enduser.pseudo.id" semantic conventions. It represents the pseudonymous
4597 // identifier of an end user. This identifier should be a random value that is
4598 // not directly linked or associated with the end user's actual identity.
4599 func EnduserPseudoID(val string) attribute.KeyValue {
4600 return EnduserPseudoIDKey.String(val)
4601 }
4602
4603 // Namespace: error
4604 const (
4605 // ErrorMessageKey is the attribute Key conforming to the "error.message"
4606 // semantic conventions. It represents a message providing more detail about an
4607 // error in human-readable form.
4608 //
4609 // Type: string
4610 // RequirementLevel: Recommended
4611 // Stability: Development
4612 //
4613 // Examples: "Unexpected input type: string", "The user has exceeded their
4614 // storage quota"
4615 // Note: `error.message` should provide additional context and detail about an
4616 // error.
4617 // It is NOT RECOMMENDED to duplicate the value of `error.type` in
4618 // `error.message`.
4619 // It is also NOT RECOMMENDED to duplicate the value of `exception.message` in
4620 // `error.message`.
4621 //
4622 // `error.message` is NOT RECOMMENDED for metrics or spans due to its unbounded
4623 // cardinality and overlap with span status.
4624 ErrorMessageKey = attribute.Key("error.message")
4625
4626 // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
4627 // conventions. It represents the describes a class of error the operation ended
4628 // with.
4629 //
4630 // Type: Enum
4631 // RequirementLevel: Recommended
4632 // Stability: Stable
4633 //
4634 // Examples: "timeout", "java.net.UnknownHostException",
4635 // "server_certificate_invalid", "500"
4636 // Note: The `error.type` SHOULD be predictable, and SHOULD have low
4637 // cardinality.
4638 //
4639 // When `error.type` is set to a type (e.g., an exception type), its
4640 // canonical class name identifying the type within the artifact SHOULD be used.
4641 //
4642 // Instrumentations SHOULD document the list of errors they report.
4643 //
4644 // The cardinality of `error.type` within one instrumentation library SHOULD be
4645 // low.
4646 // Telemetry consumers that aggregate data from multiple instrumentation
4647 // libraries and applications
4648 // should be prepared for `error.type` to have high cardinality at query time
4649 // when no
4650 // additional filters are applied.
4651 //
4652 // If the operation has completed successfully, instrumentations SHOULD NOT set
4653 // `error.type`.
4654 //
4655 // If a specific domain defines its own set of error identifiers (such as HTTP
4656 // or gRPC status codes),
4657 // it's RECOMMENDED to:
4658 //
4659 // - Use a domain-specific attribute
4660 // - Set `error.type` to capture all errors, regardless of whether they are
4661 // defined within the domain-specific set or not.
4662 ErrorTypeKey = attribute.Key("error.type")
4663 )
4664
4665 // ErrorMessage returns an attribute KeyValue conforming to the "error.message"
4666 // semantic conventions. It represents a message providing more detail about an
4667 // error in human-readable form.
4668 func ErrorMessage(val string) attribute.KeyValue {
4669 return ErrorMessageKey.String(val)
4670 }
4671
4672 // Enum values for error.type
4673 var (
4674 // A fallback error value to be used when the instrumentation doesn't define a
4675 // custom value.
4676 //
4677 // Stability: stable
4678 ErrorTypeOther = ErrorTypeKey.String("_OTHER")
4679 )
4680
4681 // Namespace: exception
4682 const (
4683 // ExceptionMessageKey is the attribute Key conforming to the
4684 // "exception.message" semantic conventions. It represents the exception
4685 // message.
4686 //
4687 // Type: string
4688 // RequirementLevel: Recommended
4689 // Stability: Stable
4690 //
4691 // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
4692 ExceptionMessageKey = attribute.Key("exception.message")
4693
4694 // ExceptionStacktraceKey is the attribute Key conforming to the
4695 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4696 // string in the natural representation for the language runtime. The
4697 // representation is to be determined and documented by each language SIG.
4698 //
4699 // Type: string
4700 // RequirementLevel: Recommended
4701 // Stability: Stable
4702 //
4703 // Examples: Exception in thread "main" java.lang.RuntimeException: Test
4704 // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
4705 // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
4706 // com.example.GenerateTrace.main(GenerateTrace.java:5)
4707 ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
4708
4709 // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
4710 // semantic conventions. It represents the type of the exception (its
4711 // fully-qualified class name, if applicable). The dynamic type of the exception
4712 // should be preferred over the static type in languages that support it.
4713 //
4714 // Type: string
4715 // RequirementLevel: Recommended
4716 // Stability: Stable
4717 //
4718 // Examples: "java.net.ConnectException", "OSError"
4719 ExceptionTypeKey = attribute.Key("exception.type")
4720 )
4721
4722 // ExceptionMessage returns an attribute KeyValue conforming to the
4723 // "exception.message" semantic conventions. It represents the exception message.
4724 func ExceptionMessage(val string) attribute.KeyValue {
4725 return ExceptionMessageKey.String(val)
4726 }
4727
4728 // ExceptionStacktrace returns an attribute KeyValue conforming to the
4729 // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
4730 // string in the natural representation for the language runtime. The
4731 // representation is to be determined and documented by each language SIG.
4732 func ExceptionStacktrace(val string) attribute.KeyValue {
4733 return ExceptionStacktraceKey.String(val)
4734 }
4735
4736 // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
4737 // semantic conventions. It represents the type of the exception (its
4738 // fully-qualified class name, if applicable). The dynamic type of the exception
4739 // should be preferred over the static type in languages that support it.
4740 func ExceptionType(val string) attribute.KeyValue {
4741 return ExceptionTypeKey.String(val)
4742 }
4743
4744 // Namespace: faas
4745 const (
4746 // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
4747 // semantic conventions. It represents a boolean that is true if the serverless
4748 // function is executed for the first time (aka cold-start).
4749 //
4750 // Type: boolean
4751 // RequirementLevel: Recommended
4752 // Stability: Development
4753 //
4754 // Examples:
4755 FaaSColdstartKey = attribute.Key("faas.coldstart")
4756
4757 // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
4758 // conventions. It represents a string containing the schedule period as
4759 // [Cron Expression].
4760 //
4761 // Type: string
4762 // RequirementLevel: Recommended
4763 // Stability: Development
4764 //
4765 // Examples: 0/5 * * * ? *
4766 //
4767 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4768 FaaSCronKey = attribute.Key("faas.cron")
4769
4770 // FaaSDocumentCollectionKey is the attribute Key conforming to the
4771 // "faas.document.collection" semantic conventions. It represents the name of
4772 // the source on which the triggering operation was performed. For example, in
4773 // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
4774 // database name.
4775 //
4776 // Type: string
4777 // RequirementLevel: Recommended
4778 // Stability: Development
4779 //
4780 // Examples: "myBucketName", "myDbName"
4781 FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
4782
4783 // FaaSDocumentNameKey is the attribute Key conforming to the
4784 // "faas.document.name" semantic conventions. It represents the document
4785 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
4786 // the name of the file, and in Cosmos DB the table name.
4787 //
4788 // Type: string
4789 // RequirementLevel: Recommended
4790 // Stability: Development
4791 //
4792 // Examples: "myFile.txt", "myTableName"
4793 FaaSDocumentNameKey = attribute.Key("faas.document.name")
4794
4795 // FaaSDocumentOperationKey is the attribute Key conforming to the
4796 // "faas.document.operation" semantic conventions. It represents the describes
4797 // the type of the operation that was performed on the data.
4798 //
4799 // Type: Enum
4800 // RequirementLevel: Recommended
4801 // Stability: Development
4802 //
4803 // Examples:
4804 FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
4805
4806 // FaaSDocumentTimeKey is the attribute Key conforming to the
4807 // "faas.document.time" semantic conventions. It represents a string containing
4808 // the time when the data was accessed in the [ISO 8601] format expressed in
4809 // [UTC].
4810 //
4811 // Type: string
4812 // RequirementLevel: Recommended
4813 // Stability: Development
4814 //
4815 // Examples: 2020-01-23T13:47:06Z
4816 //
4817 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4818 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4819 FaaSDocumentTimeKey = attribute.Key("faas.document.time")
4820
4821 // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
4822 // semantic conventions. It represents the execution environment ID as a string,
4823 // that will be potentially reused for other invocations to the same
4824 // function/function version.
4825 //
4826 // Type: string
4827 // RequirementLevel: Recommended
4828 // Stability: Development
4829 //
4830 // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
4831 // Note: - **AWS Lambda:** Use the (full) log stream name.
4832 FaaSInstanceKey = attribute.Key("faas.instance")
4833
4834 // FaaSInvocationIDKey is the attribute Key conforming to the
4835 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
4836 // the current function invocation.
4837 //
4838 // Type: string
4839 // RequirementLevel: Recommended
4840 // Stability: Development
4841 //
4842 // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
4843 FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
4844
4845 // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
4846 // semantic conventions. It represents the name of the invoked function.
4847 //
4848 // Type: string
4849 // RequirementLevel: Recommended
4850 // Stability: Development
4851 //
4852 // Examples: my-function
4853 // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
4854 // function.
4855 FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
4856
4857 // FaaSInvokedProviderKey is the attribute Key conforming to the
4858 // "faas.invoked_provider" semantic conventions. It represents the cloud
4859 // provider of the invoked function.
4860 //
4861 // Type: Enum
4862 // RequirementLevel: Recommended
4863 // Stability: Development
4864 //
4865 // Examples:
4866 // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
4867 // invoked function.
4868 FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
4869
4870 // FaaSInvokedRegionKey is the attribute Key conforming to the
4871 // "faas.invoked_region" semantic conventions. It represents the cloud region of
4872 // the invoked function.
4873 //
4874 // Type: string
4875 // RequirementLevel: Recommended
4876 // Stability: Development
4877 //
4878 // Examples: eu-central-1
4879 // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
4880 // function.
4881 FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
4882
4883 // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
4884 // semantic conventions. It represents the amount of memory available to the
4885 // serverless function converted to Bytes.
4886 //
4887 // Type: int
4888 // RequirementLevel: Recommended
4889 // Stability: Development
4890 //
4891 // Note: It's recommended to set this attribute since e.g. too little memory can
4892 // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
4893 // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
4894 // information (which must be multiplied by 1,048,576).
4895 FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
4896
4897 // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
4898 // conventions. It represents the name of the single function that this runtime
4899 // instance executes.
4900 //
4901 // Type: string
4902 // RequirementLevel: Recommended
4903 // Stability: Development
4904 //
4905 // Examples: "my-function", "myazurefunctionapp/some-function-name"
4906 // Note: This is the name of the function as configured/deployed on the FaaS
4907 // platform and is usually different from the name of the callback
4908 // function (which may be stored in the
4909 // [`code.namespace`/`code.function.name`]
4910 // span attributes).
4911 //
4912 // For some cloud providers, the above definition is ambiguous. The following
4913 // definition of function name MUST be used for this attribute
4914 // (and consequently the span name) for the listed cloud providers/products:
4915 //
4916 // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
4917 // followed by a forward slash followed by the function name (this form
4918 // can also be seen in the resource JSON for the function).
4919 // This means that a span attribute MUST be used, as an Azure function
4920 // app can host multiple functions that would usually share
4921 // a TracerProvider (see also the `cloud.resource_id` attribute).
4922 //
4923 //
4924 // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes
4925 FaaSNameKey = attribute.Key("faas.name")
4926
4927 // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
4928 // conventions. It represents a string containing the function invocation time
4929 // in the [ISO 8601] format expressed in [UTC].
4930 //
4931 // Type: string
4932 // RequirementLevel: Recommended
4933 // Stability: Development
4934 //
4935 // Examples: 2020-01-23T13:47:06Z
4936 //
4937 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
4938 // [UTC]: https://www.w3.org/TR/NOTE-datetime
4939 FaaSTimeKey = attribute.Key("faas.time")
4940
4941 // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
4942 // conventions. It represents the type of the trigger which caused this function
4943 // invocation.
4944 //
4945 // Type: Enum
4946 // RequirementLevel: Recommended
4947 // Stability: Development
4948 //
4949 // Examples:
4950 FaaSTriggerKey = attribute.Key("faas.trigger")
4951
4952 // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
4953 // conventions. It represents the immutable version of the function being
4954 // executed.
4955 //
4956 // Type: string
4957 // RequirementLevel: Recommended
4958 // Stability: Development
4959 //
4960 // Examples: "26", "pinkfroid-00002"
4961 // Note: Depending on the cloud provider and platform, use:
4962 //
4963 // - **AWS Lambda:** The [function version]
4964 // (an integer represented as a decimal string).
4965 // - **Google Cloud Run (Services):** The [revision]
4966 // (i.e., the function name plus the revision suffix).
4967 // - **Google Cloud Functions:** The value of the
4968 // [`K_REVISION` environment variable].
4969 // - **Azure Functions:** Not applicable. Do not set this attribute.
4970 //
4971 //
4972 // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
4973 // [revision]: https://cloud.google.com/run/docs/managing/revisions
4974 // [`K_REVISION` environment variable]: https://cloud.google.com/run/docs/container-contract#services-env-vars
4975 FaaSVersionKey = attribute.Key("faas.version")
4976 )
4977
4978 // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
4979 // semantic conventions. It represents a boolean that is true if the serverless
4980 // function is executed for the first time (aka cold-start).
4981 func FaaSColdstart(val bool) attribute.KeyValue {
4982 return FaaSColdstartKey.Bool(val)
4983 }
4984
4985 // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
4986 // conventions. It represents a string containing the schedule period as
4987 // [Cron Expression].
4988 //
4989 // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
4990 func FaaSCron(val string) attribute.KeyValue {
4991 return FaaSCronKey.String(val)
4992 }
4993
4994 // FaaSDocumentCollection returns an attribute KeyValue conforming to the
4995 // "faas.document.collection" semantic conventions. It represents the name of the
4996 // source on which the triggering operation was performed. For example, in Cloud
4997 // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
4998 // name.
4999 func FaaSDocumentCollection(val string) attribute.KeyValue {
5000 return FaaSDocumentCollectionKey.String(val)
5001 }
5002
5003 // FaaSDocumentName returns an attribute KeyValue conforming to the
5004 // "faas.document.name" semantic conventions. It represents the document
5005 // name/table subjected to the operation. For example, in Cloud Storage or S3 is
5006 // the name of the file, and in Cosmos DB the table name.
5007 func FaaSDocumentName(val string) attribute.KeyValue {
5008 return FaaSDocumentNameKey.String(val)
5009 }
5010
5011 // FaaSDocumentTime returns an attribute KeyValue conforming to the
5012 // "faas.document.time" semantic conventions. It represents a string containing
5013 // the time when the data was accessed in the [ISO 8601] format expressed in
5014 // [UTC].
5015 //
5016 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
5017 // [UTC]: https://www.w3.org/TR/NOTE-datetime
5018 func FaaSDocumentTime(val string) attribute.KeyValue {
5019 return FaaSDocumentTimeKey.String(val)
5020 }
5021
5022 // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
5023 // semantic conventions. It represents the execution environment ID as a string,
5024 // that will be potentially reused for other invocations to the same
5025 // function/function version.
5026 func FaaSInstance(val string) attribute.KeyValue {
5027 return FaaSInstanceKey.String(val)
5028 }
5029
5030 // FaaSInvocationID returns an attribute KeyValue conforming to the
5031 // "faas.invocation_id" semantic conventions. It represents the invocation ID of
5032 // the current function invocation.
5033 func FaaSInvocationID(val string) attribute.KeyValue {
5034 return FaaSInvocationIDKey.String(val)
5035 }
5036
5037 // FaaSInvokedName returns an attribute KeyValue conforming to the
5038 // "faas.invoked_name" semantic conventions. It represents the name of the
5039 // invoked function.
5040 func FaaSInvokedName(val string) attribute.KeyValue {
5041 return FaaSInvokedNameKey.String(val)
5042 }
5043
5044 // FaaSInvokedRegion returns an attribute KeyValue conforming to the
5045 // "faas.invoked_region" semantic conventions. It represents the cloud region of
5046 // the invoked function.
5047 func FaaSInvokedRegion(val string) attribute.KeyValue {
5048 return FaaSInvokedRegionKey.String(val)
5049 }
5050
5051 // FaaSMaxMemory returns an attribute KeyValue conforming to the
5052 // "faas.max_memory" semantic conventions. It represents the amount of memory
5053 // available to the serverless function converted to Bytes.
5054 func FaaSMaxMemory(val int) attribute.KeyValue {
5055 return FaaSMaxMemoryKey.Int(val)
5056 }
5057
5058 // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
5059 // conventions. It represents the name of the single function that this runtime
5060 // instance executes.
5061 func FaaSName(val string) attribute.KeyValue {
5062 return FaaSNameKey.String(val)
5063 }
5064
5065 // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
5066 // conventions. It represents a string containing the function invocation time in
5067 // the [ISO 8601] format expressed in [UTC].
5068 //
5069 // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
5070 // [UTC]: https://www.w3.org/TR/NOTE-datetime
5071 func FaaSTime(val string) attribute.KeyValue {
5072 return FaaSTimeKey.String(val)
5073 }
5074
5075 // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
5076 // semantic conventions. It represents the immutable version of the function
5077 // being executed.
5078 func FaaSVersion(val string) attribute.KeyValue {
5079 return FaaSVersionKey.String(val)
5080 }
5081
5082 // Enum values for faas.document.operation
5083 var (
5084 // When a new object is created.
5085 // Stability: development
5086 FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
5087 // When an object is modified.
5088 // Stability: development
5089 FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
5090 // When an object is deleted.
5091 // Stability: development
5092 FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
5093 )
5094
5095 // Enum values for faas.invoked_provider
5096 var (
5097 // Alibaba Cloud
5098 // Stability: development
5099 FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
5100 // Amazon Web Services
5101 // Stability: development
5102 FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
5103 // Microsoft Azure
5104 // Stability: development
5105 FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
5106 // Google Cloud Platform
5107 // Stability: development
5108 FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
5109 // Tencent Cloud
5110 // Stability: development
5111 FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
5112 )
5113
5114 // Enum values for faas.trigger
5115 var (
5116 // A response to some data source operation such as a database or filesystem
5117 // read/write
5118 // Stability: development
5119 FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
5120 // To provide an answer to an inbound HTTP request
5121 // Stability: development
5122 FaaSTriggerHTTP = FaaSTriggerKey.String("http")
5123 // A function is set to be executed when messages are sent to a messaging system
5124 // Stability: development
5125 FaaSTriggerPubSub = FaaSTriggerKey.String("pubsub")
5126 // A function is scheduled to be executed regularly
5127 // Stability: development
5128 FaaSTriggerTimer = FaaSTriggerKey.String("timer")
5129 // If none of the others apply
5130 // Stability: development
5131 FaaSTriggerOther = FaaSTriggerKey.String("other")
5132 )
5133
5134 // Namespace: feature_flag
5135 const (
5136 // FeatureFlagContextIDKey is the attribute Key conforming to the
5137 // "feature_flag.context.id" semantic conventions. It represents the unique
5138 // identifier for the flag evaluation context. For example, the targeting key.
5139 //
5140 // Type: string
5141 // RequirementLevel: Recommended
5142 // Stability: Release_Candidate
5143 //
5144 // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db"
5145 FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id")
5146
5147 // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
5148 // semantic conventions. It represents the lookup key of the feature flag.
5149 //
5150 // Type: string
5151 // RequirementLevel: Recommended
5152 // Stability: Release_Candidate
5153 //
5154 // Examples: "logo-color"
5155 FeatureFlagKeyKey = attribute.Key("feature_flag.key")
5156
5157 // FeatureFlagProviderNameKey is the attribute Key conforming to the
5158 // "feature_flag.provider.name" semantic conventions. It represents the
5159 // identifies the feature flag provider.
5160 //
5161 // Type: string
5162 // RequirementLevel: Recommended
5163 // Stability: Release_Candidate
5164 //
5165 // Examples: "Flag Manager"
5166 FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider.name")
5167
5168 // FeatureFlagResultReasonKey is the attribute Key conforming to the
5169 // "feature_flag.result.reason" semantic conventions. It represents the reason
5170 // code which shows how a feature flag value was determined.
5171 //
5172 // Type: Enum
5173 // RequirementLevel: Recommended
5174 // Stability: Release_Candidate
5175 //
5176 // Examples: "static", "targeting_match", "error", "default"
5177 FeatureFlagResultReasonKey = attribute.Key("feature_flag.result.reason")
5178
5179 // FeatureFlagResultValueKey is the attribute Key conforming to the
5180 // "feature_flag.result.value" semantic conventions. It represents the evaluated
5181 // value of the feature flag.
5182 //
5183 // Type: any
5184 // RequirementLevel: Recommended
5185 // Stability: Release_Candidate
5186 //
5187 // Examples: "#ff0000", true, 3
5188 // Note: With some feature flag providers, feature flag results can be quite
5189 // large or contain private or sensitive details.
5190 // Because of this, `feature_flag.result.variant` is often the preferred
5191 // attribute if it is available.
5192 //
5193 // It may be desirable to redact or otherwise limit the size and scope of
5194 // `feature_flag.result.value` if possible.
5195 // Because the evaluated flag value is unstructured and may be any type, it is
5196 // left to the instrumentation author to determine how best to achieve this.
5197 FeatureFlagResultValueKey = attribute.Key("feature_flag.result.value")
5198
5199 // FeatureFlagResultVariantKey is the attribute Key conforming to the
5200 // "feature_flag.result.variant" semantic conventions. It represents a semantic
5201 // identifier for an evaluated flag value.
5202 //
5203 // Type: string
5204 // RequirementLevel: Recommended
5205 // Stability: Release_Candidate
5206 //
5207 // Examples: "red", "true", "on"
5208 // Note: A semantic identifier, commonly referred to as a variant, provides a
5209 // means
5210 // for referring to a value without including the value itself. This can
5211 // provide additional context for understanding the meaning behind a value.
5212 // For example, the variant `red` maybe be used for the value `#c05543`.
5213 FeatureFlagResultVariantKey = attribute.Key("feature_flag.result.variant")
5214
5215 // FeatureFlagSetIDKey is the attribute Key conforming to the
5216 // "feature_flag.set.id" semantic conventions. It represents the identifier of
5217 // the [flag set] to which the feature flag belongs.
5218 //
5219 // Type: string
5220 // RequirementLevel: Recommended
5221 // Stability: Release_Candidate
5222 //
5223 // Examples: "proj-1", "ab98sgs", "service1/dev"
5224 //
5225 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
5226 FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id")
5227
5228 // FeatureFlagVersionKey is the attribute Key conforming to the
5229 // "feature_flag.version" semantic conventions. It represents the version of the
5230 // ruleset used during the evaluation. This may be any stable value which
5231 // uniquely identifies the ruleset.
5232 //
5233 // Type: string
5234 // RequirementLevel: Recommended
5235 // Stability: Release_Candidate
5236 //
5237 // Examples: "1", "01ABCDEF"
5238 FeatureFlagVersionKey = attribute.Key("feature_flag.version")
5239 )
5240
5241 // FeatureFlagContextID returns an attribute KeyValue conforming to the
5242 // "feature_flag.context.id" semantic conventions. It represents the unique
5243 // identifier for the flag evaluation context. For example, the targeting key.
5244 func FeatureFlagContextID(val string) attribute.KeyValue {
5245 return FeatureFlagContextIDKey.String(val)
5246 }
5247
5248 // FeatureFlagKey returns an attribute KeyValue conforming to the
5249 // "feature_flag.key" semantic conventions. It represents the lookup key of the
5250 // feature flag.
5251 func FeatureFlagKey(val string) attribute.KeyValue {
5252 return FeatureFlagKeyKey.String(val)
5253 }
5254
5255 // FeatureFlagProviderName returns an attribute KeyValue conforming to the
5256 // "feature_flag.provider.name" semantic conventions. It represents the
5257 // identifies the feature flag provider.
5258 func FeatureFlagProviderName(val string) attribute.KeyValue {
5259 return FeatureFlagProviderNameKey.String(val)
5260 }
5261
5262 // FeatureFlagResultVariant returns an attribute KeyValue conforming to the
5263 // "feature_flag.result.variant" semantic conventions. It represents a semantic
5264 // identifier for an evaluated flag value.
5265 func FeatureFlagResultVariant(val string) attribute.KeyValue {
5266 return FeatureFlagResultVariantKey.String(val)
5267 }
5268
5269 // FeatureFlagSetID returns an attribute KeyValue conforming to the
5270 // "feature_flag.set.id" semantic conventions. It represents the identifier of
5271 // the [flag set] to which the feature flag belongs.
5272 //
5273 // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
5274 func FeatureFlagSetID(val string) attribute.KeyValue {
5275 return FeatureFlagSetIDKey.String(val)
5276 }
5277
5278 // FeatureFlagVersion returns an attribute KeyValue conforming to the
5279 // "feature_flag.version" semantic conventions. It represents the version of the
5280 // ruleset used during the evaluation. This may be any stable value which
5281 // uniquely identifies the ruleset.
5282 func FeatureFlagVersion(val string) attribute.KeyValue {
5283 return FeatureFlagVersionKey.String(val)
5284 }
5285
5286 // Enum values for feature_flag.result.reason
5287 var (
5288 // The resolved value is static (no dynamic evaluation).
5289 // Stability: release_candidate
5290 FeatureFlagResultReasonStatic = FeatureFlagResultReasonKey.String("static")
5291 // The resolved value fell back to a pre-configured value (no dynamic evaluation
5292 // occurred or dynamic evaluation yielded no result).
5293 // Stability: release_candidate
5294 FeatureFlagResultReasonDefault = FeatureFlagResultReasonKey.String("default")
5295 // The resolved value was the result of a dynamic evaluation, such as a rule or
5296 // specific user-targeting.
5297 // Stability: release_candidate
5298 FeatureFlagResultReasonTargetingMatch = FeatureFlagResultReasonKey.String("targeting_match")
5299 // The resolved value was the result of pseudorandom assignment.
5300 // Stability: release_candidate
5301 FeatureFlagResultReasonSplit = FeatureFlagResultReasonKey.String("split")
5302 // The resolved value was retrieved from cache.
5303 // Stability: release_candidate
5304 FeatureFlagResultReasonCached = FeatureFlagResultReasonKey.String("cached")
5305 // The resolved value was the result of the flag being disabled in the
5306 // management system.
5307 // Stability: release_candidate
5308 FeatureFlagResultReasonDisabled = FeatureFlagResultReasonKey.String("disabled")
5309 // The reason for the resolved value could not be determined.
5310 // Stability: release_candidate
5311 FeatureFlagResultReasonUnknown = FeatureFlagResultReasonKey.String("unknown")
5312 // The resolved value is non-authoritative or possibly out of date
5313 // Stability: release_candidate
5314 FeatureFlagResultReasonStale = FeatureFlagResultReasonKey.String("stale")
5315 // The resolved value was the result of an error.
5316 // Stability: release_candidate
5317 FeatureFlagResultReasonError = FeatureFlagResultReasonKey.String("error")
5318 )
5319
5320 // Namespace: file
5321 const (
5322 // FileAccessedKey is the attribute Key conforming to the "file.accessed"
5323 // semantic conventions. It represents the time when the file was last accessed,
5324 // in ISO 8601 format.
5325 //
5326 // Type: string
5327 // RequirementLevel: Recommended
5328 // Stability: Development
5329 //
5330 // Examples: "2021-01-01T12:00:00Z"
5331 // Note: This attribute might not be supported by some file systems — NFS,
5332 // FAT32, in embedded OS, etc.
5333 FileAccessedKey = attribute.Key("file.accessed")
5334
5335 // FileAttributesKey is the attribute Key conforming to the "file.attributes"
5336 // semantic conventions. It represents the array of file attributes.
5337 //
5338 // Type: string[]
5339 // RequirementLevel: Recommended
5340 // Stability: Development
5341 //
5342 // Examples: "readonly", "hidden"
5343 // Note: Attributes names depend on the OS or file system. Here’s a
5344 // non-exhaustive list of values expected for this attribute: `archive`,
5345 // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
5346 // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
5347 // `write`.
5348 FileAttributesKey = attribute.Key("file.attributes")
5349
5350 // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
5351 // conventions. It represents the time when the file attributes or metadata was
5352 // last changed, in ISO 8601 format.
5353 //
5354 // Type: string
5355 // RequirementLevel: Recommended
5356 // Stability: Development
5357 //
5358 // Examples: "2021-01-01T12:00:00Z"
5359 // Note: `file.changed` captures the time when any of the file's properties or
5360 // attributes (including the content) are changed, while `file.modified`
5361 // captures the timestamp when the file content is modified.
5362 FileChangedKey = attribute.Key("file.changed")
5363
5364 // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
5365 // conventions. It represents the time when the file was created, in ISO 8601
5366 // format.
5367 //
5368 // Type: string
5369 // RequirementLevel: Recommended
5370 // Stability: Development
5371 //
5372 // Examples: "2021-01-01T12:00:00Z"
5373 // Note: This attribute might not be supported by some file systems — NFS,
5374 // FAT32, in embedded OS, etc.
5375 FileCreatedKey = attribute.Key("file.created")
5376
5377 // FileDirectoryKey is the attribute Key conforming to the "file.directory"
5378 // semantic conventions. It represents the directory where the file is located.
5379 // It should include the drive letter, when appropriate.
5380 //
5381 // Type: string
5382 // RequirementLevel: Recommended
5383 // Stability: Development
5384 //
5385 // Examples: "/home/user", "C:\Program Files\MyApp"
5386 FileDirectoryKey = attribute.Key("file.directory")
5387
5388 // FileExtensionKey is the attribute Key conforming to the "file.extension"
5389 // semantic conventions. It represents the file extension, excluding the leading
5390 // dot.
5391 //
5392 // Type: string
5393 // RequirementLevel: Recommended
5394 // Stability: Development
5395 //
5396 // Examples: "png", "gz"
5397 // Note: When the file name has multiple extensions (example.tar.gz), only the
5398 // last one should be captured ("gz", not "tar.gz").
5399 FileExtensionKey = attribute.Key("file.extension")
5400
5401 // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
5402 // semantic conventions. It represents the name of the fork. A fork is
5403 // additional data associated with a filesystem object.
5404 //
5405 // Type: string
5406 // RequirementLevel: Recommended
5407 // Stability: Development
5408 //
5409 // Examples: "Zone.Identifier"
5410 // Note: On Linux, a resource fork is used to store additional data with a
5411 // filesystem object. A file always has at least one fork for the data portion,
5412 // and additional forks may exist.
5413 // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
5414 // data stream for a file is just called $DATA. Zone.Identifier is commonly used
5415 // by Windows to track contents downloaded from the Internet. An ADS is
5416 // typically of the form: C:\path\to\filename.extension:some_fork_name, and
5417 // some_fork_name is the value that should populate `fork_name`.
5418 // `filename.extension` should populate `file.name`, and `extension` should
5419 // populate `file.extension`. The full path, `file.path`, will include the fork
5420 // name.
5421 FileForkNameKey = attribute.Key("file.fork_name")
5422
5423 // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
5424 // semantic conventions. It represents the primary Group ID (GID) of the file.
5425 //
5426 // Type: string
5427 // RequirementLevel: Recommended
5428 // Stability: Development
5429 //
5430 // Examples: "1000"
5431 FileGroupIDKey = attribute.Key("file.group.id")
5432
5433 // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
5434 // semantic conventions. It represents the primary group name of the file.
5435 //
5436 // Type: string
5437 // RequirementLevel: Recommended
5438 // Stability: Development
5439 //
5440 // Examples: "users"
5441 FileGroupNameKey = attribute.Key("file.group.name")
5442
5443 // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
5444 // conventions. It represents the inode representing the file in the filesystem.
5445 //
5446 // Type: string
5447 // RequirementLevel: Recommended
5448 // Stability: Development
5449 //
5450 // Examples: "256383"
5451 FileInodeKey = attribute.Key("file.inode")
5452
5453 // FileModeKey is the attribute Key conforming to the "file.mode" semantic
5454 // conventions. It represents the mode of the file in octal representation.
5455 //
5456 // Type: string
5457 // RequirementLevel: Recommended
5458 // Stability: Development
5459 //
5460 // Examples: "0640"
5461 FileModeKey = attribute.Key("file.mode")
5462
5463 // FileModifiedKey is the attribute Key conforming to the "file.modified"
5464 // semantic conventions. It represents the time when the file content was last
5465 // modified, in ISO 8601 format.
5466 //
5467 // Type: string
5468 // RequirementLevel: Recommended
5469 // Stability: Development
5470 //
5471 // Examples: "2021-01-01T12:00:00Z"
5472 FileModifiedKey = attribute.Key("file.modified")
5473
5474 // FileNameKey is the attribute Key conforming to the "file.name" semantic
5475 // conventions. It represents the name of the file including the extension,
5476 // without the directory.
5477 //
5478 // Type: string
5479 // RequirementLevel: Recommended
5480 // Stability: Development
5481 //
5482 // Examples: "example.png"
5483 FileNameKey = attribute.Key("file.name")
5484
5485 // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
5486 // semantic conventions. It represents the user ID (UID) or security identifier
5487 // (SID) of the file owner.
5488 //
5489 // Type: string
5490 // RequirementLevel: Recommended
5491 // Stability: Development
5492 //
5493 // Examples: "1000"
5494 FileOwnerIDKey = attribute.Key("file.owner.id")
5495
5496 // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
5497 // semantic conventions. It represents the username of the file owner.
5498 //
5499 // Type: string
5500 // RequirementLevel: Recommended
5501 // Stability: Development
5502 //
5503 // Examples: "root"
5504 FileOwnerNameKey = attribute.Key("file.owner.name")
5505
5506 // FilePathKey is the attribute Key conforming to the "file.path" semantic
5507 // conventions. It represents the full path to the file, including the file
5508 // name. It should include the drive letter, when appropriate.
5509 //
5510 // Type: string
5511 // RequirementLevel: Recommended
5512 // Stability: Development
5513 //
5514 // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
5515 FilePathKey = attribute.Key("file.path")
5516
5517 // FileSizeKey is the attribute Key conforming to the "file.size" semantic
5518 // conventions. It represents the file size in bytes.
5519 //
5520 // Type: int
5521 // RequirementLevel: Recommended
5522 // Stability: Development
5523 //
5524 // Examples:
5525 FileSizeKey = attribute.Key("file.size")
5526
5527 // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
5528 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5529 // to the target of a symbolic link.
5530 //
5531 // Type: string
5532 // RequirementLevel: Recommended
5533 // Stability: Development
5534 //
5535 // Examples: "/usr/bin/python3"
5536 // Note: This attribute is only applicable to symbolic links.
5537 FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
5538 )
5539
5540 // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
5541 // semantic conventions. It represents the time when the file was last accessed,
5542 // in ISO 8601 format.
5543 func FileAccessed(val string) attribute.KeyValue {
5544 return FileAccessedKey.String(val)
5545 }
5546
5547 // FileAttributes returns an attribute KeyValue conforming to the
5548 // "file.attributes" semantic conventions. It represents the array of file
5549 // attributes.
5550 func FileAttributes(val ...string) attribute.KeyValue {
5551 return FileAttributesKey.StringSlice(val)
5552 }
5553
5554 // FileChanged returns an attribute KeyValue conforming to the "file.changed"
5555 // semantic conventions. It represents the time when the file attributes or
5556 // metadata was last changed, in ISO 8601 format.
5557 func FileChanged(val string) attribute.KeyValue {
5558 return FileChangedKey.String(val)
5559 }
5560
5561 // FileCreated returns an attribute KeyValue conforming to the "file.created"
5562 // semantic conventions. It represents the time when the file was created, in ISO
5563 // 8601 format.
5564 func FileCreated(val string) attribute.KeyValue {
5565 return FileCreatedKey.String(val)
5566 }
5567
5568 // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
5569 // semantic conventions. It represents the directory where the file is located.
5570 // It should include the drive letter, when appropriate.
5571 func FileDirectory(val string) attribute.KeyValue {
5572 return FileDirectoryKey.String(val)
5573 }
5574
5575 // FileExtension returns an attribute KeyValue conforming to the "file.extension"
5576 // semantic conventions. It represents the file extension, excluding the leading
5577 // dot.
5578 func FileExtension(val string) attribute.KeyValue {
5579 return FileExtensionKey.String(val)
5580 }
5581
5582 // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
5583 // semantic conventions. It represents the name of the fork. A fork is additional
5584 // data associated with a filesystem object.
5585 func FileForkName(val string) attribute.KeyValue {
5586 return FileForkNameKey.String(val)
5587 }
5588
5589 // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
5590 // semantic conventions. It represents the primary Group ID (GID) of the file.
5591 func FileGroupID(val string) attribute.KeyValue {
5592 return FileGroupIDKey.String(val)
5593 }
5594
5595 // FileGroupName returns an attribute KeyValue conforming to the
5596 // "file.group.name" semantic conventions. It represents the primary group name
5597 // of the file.
5598 func FileGroupName(val string) attribute.KeyValue {
5599 return FileGroupNameKey.String(val)
5600 }
5601
5602 // FileInode returns an attribute KeyValue conforming to the "file.inode"
5603 // semantic conventions. It represents the inode representing the file in the
5604 // filesystem.
5605 func FileInode(val string) attribute.KeyValue {
5606 return FileInodeKey.String(val)
5607 }
5608
5609 // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
5610 // conventions. It represents the mode of the file in octal representation.
5611 func FileMode(val string) attribute.KeyValue {
5612 return FileModeKey.String(val)
5613 }
5614
5615 // FileModified returns an attribute KeyValue conforming to the "file.modified"
5616 // semantic conventions. It represents the time when the file content was last
5617 // modified, in ISO 8601 format.
5618 func FileModified(val string) attribute.KeyValue {
5619 return FileModifiedKey.String(val)
5620 }
5621
5622 // FileName returns an attribute KeyValue conforming to the "file.name" semantic
5623 // conventions. It represents the name of the file including the extension,
5624 // without the directory.
5625 func FileName(val string) attribute.KeyValue {
5626 return FileNameKey.String(val)
5627 }
5628
5629 // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
5630 // semantic conventions. It represents the user ID (UID) or security identifier
5631 // (SID) of the file owner.
5632 func FileOwnerID(val string) attribute.KeyValue {
5633 return FileOwnerIDKey.String(val)
5634 }
5635
5636 // FileOwnerName returns an attribute KeyValue conforming to the
5637 // "file.owner.name" semantic conventions. It represents the username of the file
5638 // owner.
5639 func FileOwnerName(val string) attribute.KeyValue {
5640 return FileOwnerNameKey.String(val)
5641 }
5642
5643 // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
5644 // conventions. It represents the full path to the file, including the file name.
5645 // It should include the drive letter, when appropriate.
5646 func FilePath(val string) attribute.KeyValue {
5647 return FilePathKey.String(val)
5648 }
5649
5650 // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
5651 // conventions. It represents the file size in bytes.
5652 func FileSize(val int) attribute.KeyValue {
5653 return FileSizeKey.Int(val)
5654 }
5655
5656 // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
5657 // "file.symbolic_link.target_path" semantic conventions. It represents the path
5658 // to the target of a symbolic link.
5659 func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
5660 return FileSymbolicLinkTargetPathKey.String(val)
5661 }
5662
5663 // Namespace: gcp
5664 const (
5665 // GCPAppHubApplicationContainerKey is the attribute Key conforming to the
5666 // "gcp.apphub.application.container" semantic conventions. It represents the
5667 // container within GCP where the AppHub application is defined.
5668 //
5669 // Type: string
5670 // RequirementLevel: Recommended
5671 // Stability: Development
5672 //
5673 // Examples: "projects/my-container-project"
5674 GCPAppHubApplicationContainerKey = attribute.Key("gcp.apphub.application.container")
5675
5676 // GCPAppHubApplicationIDKey is the attribute Key conforming to the
5677 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5678 // the application as configured in AppHub.
5679 //
5680 // Type: string
5681 // RequirementLevel: Recommended
5682 // Stability: Development
5683 //
5684 // Examples: "my-application"
5685 GCPAppHubApplicationIDKey = attribute.Key("gcp.apphub.application.id")
5686
5687 // GCPAppHubApplicationLocationKey is the attribute Key conforming to the
5688 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5689 // zone or region where the application is defined.
5690 //
5691 // Type: string
5692 // RequirementLevel: Recommended
5693 // Stability: Development
5694 //
5695 // Examples: "us-central1"
5696 GCPAppHubApplicationLocationKey = attribute.Key("gcp.apphub.application.location")
5697
5698 // GCPAppHubServiceCriticalityTypeKey is the attribute Key conforming to the
5699 // "gcp.apphub.service.criticality_type" semantic conventions. It represents the
5700 // criticality of a service indicates its importance to the business.
5701 //
5702 // Type: Enum
5703 // RequirementLevel: Recommended
5704 // Stability: Development
5705 //
5706 // Examples:
5707 // Note: [See AppHub type enum]
5708 //
5709 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5710 GCPAppHubServiceCriticalityTypeKey = attribute.Key("gcp.apphub.service.criticality_type")
5711
5712 // GCPAppHubServiceEnvironmentTypeKey is the attribute Key conforming to the
5713 // "gcp.apphub.service.environment_type" semantic conventions. It represents the
5714 // environment of a service is the stage of a software lifecycle.
5715 //
5716 // Type: Enum
5717 // RequirementLevel: Recommended
5718 // Stability: Development
5719 //
5720 // Examples:
5721 // Note: [See AppHub environment type]
5722 //
5723 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5724 GCPAppHubServiceEnvironmentTypeKey = attribute.Key("gcp.apphub.service.environment_type")
5725
5726 // GCPAppHubServiceIDKey is the attribute Key conforming to the
5727 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5728 // service as configured in AppHub.
5729 //
5730 // Type: string
5731 // RequirementLevel: Recommended
5732 // Stability: Development
5733 //
5734 // Examples: "my-service"
5735 GCPAppHubServiceIDKey = attribute.Key("gcp.apphub.service.id")
5736
5737 // GCPAppHubWorkloadCriticalityTypeKey is the attribute Key conforming to the
5738 // "gcp.apphub.workload.criticality_type" semantic conventions. It represents
5739 // the criticality of a workload indicates its importance to the business.
5740 //
5741 // Type: Enum
5742 // RequirementLevel: Recommended
5743 // Stability: Development
5744 //
5745 // Examples:
5746 // Note: [See AppHub type enum]
5747 //
5748 // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5749 GCPAppHubWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub.workload.criticality_type")
5750
5751 // GCPAppHubWorkloadEnvironmentTypeKey is the attribute Key conforming to the
5752 // "gcp.apphub.workload.environment_type" semantic conventions. It represents
5753 // the environment of a workload is the stage of a software lifecycle.
5754 //
5755 // Type: Enum
5756 // RequirementLevel: Recommended
5757 // Stability: Development
5758 //
5759 // Examples:
5760 // Note: [See AppHub environment type]
5761 //
5762 // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5763 GCPAppHubWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub.workload.environment_type")
5764
5765 // GCPAppHubWorkloadIDKey is the attribute Key conforming to the
5766 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5767 // workload as configured in AppHub.
5768 //
5769 // Type: string
5770 // RequirementLevel: Recommended
5771 // Stability: Development
5772 //
5773 // Examples: "my-workload"
5774 GCPAppHubWorkloadIDKey = attribute.Key("gcp.apphub.workload.id")
5775
5776 // GCPAppHubDestinationApplicationContainerKey is the attribute Key conforming
5777 // to the "gcp.apphub_destination.application.container" semantic conventions.
5778 // It represents the container within GCP where the AppHub destination
5779 // application is defined.
5780 //
5781 // Type: string
5782 // RequirementLevel: Recommended
5783 // Stability: Development
5784 //
5785 // Examples: "projects/my-container-project"
5786 GCPAppHubDestinationApplicationContainerKey = attribute.Key("gcp.apphub_destination.application.container")
5787
5788 // GCPAppHubDestinationApplicationIDKey is the attribute Key conforming to the
5789 // "gcp.apphub_destination.application.id" semantic conventions. It represents
5790 // the name of the destination application as configured in AppHub.
5791 //
5792 // Type: string
5793 // RequirementLevel: Recommended
5794 // Stability: Development
5795 //
5796 // Examples: "my-application"
5797 GCPAppHubDestinationApplicationIDKey = attribute.Key("gcp.apphub_destination.application.id")
5798
5799 // GCPAppHubDestinationApplicationLocationKey is the attribute Key conforming to
5800 // the "gcp.apphub_destination.application.location" semantic conventions. It
5801 // represents the GCP zone or region where the destination application is
5802 // defined.
5803 //
5804 // Type: string
5805 // RequirementLevel: Recommended
5806 // Stability: Development
5807 //
5808 // Examples: "us-central1"
5809 GCPAppHubDestinationApplicationLocationKey = attribute.Key("gcp.apphub_destination.application.location")
5810
5811 // GCPAppHubDestinationServiceCriticalityTypeKey is the attribute Key conforming
5812 // to the "gcp.apphub_destination.service.criticality_type" semantic
5813 // conventions. It represents the criticality of a destination workload
5814 // indicates its importance to the business as specified in [AppHub type enum].
5815 //
5816 // Type: Enum
5817 // RequirementLevel: Recommended
5818 // Stability: Development
5819 //
5820 // Examples:
5821 //
5822 // [AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5823 GCPAppHubDestinationServiceCriticalityTypeKey = attribute.Key("gcp.apphub_destination.service.criticality_type")
5824
5825 // GCPAppHubDestinationServiceEnvironmentTypeKey is the attribute Key conforming
5826 // to the "gcp.apphub_destination.service.environment_type" semantic
5827 // conventions. It represents the software lifecycle stage of a destination
5828 // service as defined [AppHub environment type].
5829 //
5830 // Type: Enum
5831 // RequirementLevel: Recommended
5832 // Stability: Development
5833 //
5834 // Examples:
5835 //
5836 // [AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5837 GCPAppHubDestinationServiceEnvironmentTypeKey = attribute.Key("gcp.apphub_destination.service.environment_type")
5838
5839 // GCPAppHubDestinationServiceIDKey is the attribute Key conforming to the
5840 // "gcp.apphub_destination.service.id" semantic conventions. It represents the
5841 // name of the destination service as configured in AppHub.
5842 //
5843 // Type: string
5844 // RequirementLevel: Recommended
5845 // Stability: Development
5846 //
5847 // Examples: "my-service"
5848 GCPAppHubDestinationServiceIDKey = attribute.Key("gcp.apphub_destination.service.id")
5849
5850 // GCPAppHubDestinationWorkloadCriticalityTypeKey is the attribute Key
5851 // conforming to the "gcp.apphub_destination.workload.criticality_type" semantic
5852 // conventions. It represents the criticality of a destination workload
5853 // indicates its importance to the business as specified in [AppHub type enum].
5854 //
5855 // Type: Enum
5856 // RequirementLevel: Recommended
5857 // Stability: Development
5858 //
5859 // Examples:
5860 //
5861 // [AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
5862 GCPAppHubDestinationWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub_destination.workload.criticality_type")
5863
5864 // GCPAppHubDestinationWorkloadEnvironmentTypeKey is the attribute Key
5865 // conforming to the "gcp.apphub_destination.workload.environment_type" semantic
5866 // conventions. It represents the environment of a destination workload is the
5867 // stage of a software lifecycle as provided in the [AppHub environment type].
5868 //
5869 // Type: Enum
5870 // RequirementLevel: Recommended
5871 // Stability: Development
5872 //
5873 // Examples:
5874 //
5875 // [AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
5876 GCPAppHubDestinationWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub_destination.workload.environment_type")
5877
5878 // GCPAppHubDestinationWorkloadIDKey is the attribute Key conforming to the
5879 // "gcp.apphub_destination.workload.id" semantic conventions. It represents the
5880 // name of the destination workload as configured in AppHub.
5881 //
5882 // Type: string
5883 // RequirementLevel: Recommended
5884 // Stability: Development
5885 //
5886 // Examples: "my-workload"
5887 GCPAppHubDestinationWorkloadIDKey = attribute.Key("gcp.apphub_destination.workload.id")
5888
5889 // GCPClientServiceKey is the attribute Key conforming to the
5890 // "gcp.client.service" semantic conventions. It represents the identifies the
5891 // Google Cloud service for which the official client library is intended.
5892 //
5893 // Type: string
5894 // RequirementLevel: Recommended
5895 // Stability: Development
5896 //
5897 // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
5898 // Note: Intended to be a stable identifier for Google Cloud client libraries
5899 // that is uniform across implementation languages. The value should be derived
5900 // from the canonical service domain for the service; for example,
5901 // 'foo.googleapis.com' should result in a value of 'foo'.
5902 GCPClientServiceKey = attribute.Key("gcp.client.service")
5903
5904 // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
5905 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
5906 // the Cloud Run [execution] being run for the Job, as set by the
5907 // [`CLOUD_RUN_EXECUTION`] environment variable.
5908 //
5909 // Type: string
5910 // RequirementLevel: Recommended
5911 // Stability: Development
5912 //
5913 // Examples: "job-name-xxxx", "sample-job-mdw84"
5914 //
5915 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
5916 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5917 GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
5918
5919 // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
5920 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
5921 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
5922 // environment variable.
5923 //
5924 // Type: int
5925 // RequirementLevel: Recommended
5926 // Stability: Development
5927 //
5928 // Examples: 0, 1
5929 //
5930 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
5931 GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
5932
5933 // GCPGCEInstanceHostnameKey is the attribute Key conforming to the
5934 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
5935 // of a GCE instance. This is the full value of the default or [custom hostname]
5936 // .
5937 //
5938 // Type: string
5939 // RequirementLevel: Recommended
5940 // Stability: Development
5941 //
5942 // Examples: "my-host1234.example.com",
5943 // "sample-vm.us-west1-b.c.my-project.internal"
5944 //
5945 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
5946 GCPGCEInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
5947
5948 // GCPGCEInstanceNameKey is the attribute Key conforming to the
5949 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
5950 // of a GCE instance. This is the value provided by `host.name`, the visible
5951 // name of the instance in the Cloud Console UI, and the prefix for the default
5952 // hostname of the instance as defined by the [default internal DNS name].
5953 //
5954 // Type: string
5955 // RequirementLevel: Recommended
5956 // Stability: Development
5957 //
5958 // Examples: "instance-1", "my-vm-name"
5959 //
5960 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
5961 GCPGCEInstanceNameKey = attribute.Key("gcp.gce.instance.name")
5962 )
5963
5964 // GCPAppHubApplicationContainer returns an attribute KeyValue conforming to the
5965 // "gcp.apphub.application.container" semantic conventions. It represents the
5966 // container within GCP where the AppHub application is defined.
5967 func GCPAppHubApplicationContainer(val string) attribute.KeyValue {
5968 return GCPAppHubApplicationContainerKey.String(val)
5969 }
5970
5971 // GCPAppHubApplicationID returns an attribute KeyValue conforming to the
5972 // "gcp.apphub.application.id" semantic conventions. It represents the name of
5973 // the application as configured in AppHub.
5974 func GCPAppHubApplicationID(val string) attribute.KeyValue {
5975 return GCPAppHubApplicationIDKey.String(val)
5976 }
5977
5978 // GCPAppHubApplicationLocation returns an attribute KeyValue conforming to the
5979 // "gcp.apphub.application.location" semantic conventions. It represents the GCP
5980 // zone or region where the application is defined.
5981 func GCPAppHubApplicationLocation(val string) attribute.KeyValue {
5982 return GCPAppHubApplicationLocationKey.String(val)
5983 }
5984
5985 // GCPAppHubServiceID returns an attribute KeyValue conforming to the
5986 // "gcp.apphub.service.id" semantic conventions. It represents the name of the
5987 // service as configured in AppHub.
5988 func GCPAppHubServiceID(val string) attribute.KeyValue {
5989 return GCPAppHubServiceIDKey.String(val)
5990 }
5991
5992 // GCPAppHubWorkloadID returns an attribute KeyValue conforming to the
5993 // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
5994 // workload as configured in AppHub.
5995 func GCPAppHubWorkloadID(val string) attribute.KeyValue {
5996 return GCPAppHubWorkloadIDKey.String(val)
5997 }
5998
5999 // GCPAppHubDestinationApplicationContainer returns an attribute KeyValue
6000 // conforming to the "gcp.apphub_destination.application.container" semantic
6001 // conventions. It represents the container within GCP where the AppHub
6002 // destination application is defined.
6003 func GCPAppHubDestinationApplicationContainer(val string) attribute.KeyValue {
6004 return GCPAppHubDestinationApplicationContainerKey.String(val)
6005 }
6006
6007 // GCPAppHubDestinationApplicationID returns an attribute KeyValue conforming to
6008 // the "gcp.apphub_destination.application.id" semantic conventions. It
6009 // represents the name of the destination application as configured in AppHub.
6010 func GCPAppHubDestinationApplicationID(val string) attribute.KeyValue {
6011 return GCPAppHubDestinationApplicationIDKey.String(val)
6012 }
6013
6014 // GCPAppHubDestinationApplicationLocation returns an attribute KeyValue
6015 // conforming to the "gcp.apphub_destination.application.location" semantic
6016 // conventions. It represents the GCP zone or region where the destination
6017 // application is defined.
6018 func GCPAppHubDestinationApplicationLocation(val string) attribute.KeyValue {
6019 return GCPAppHubDestinationApplicationLocationKey.String(val)
6020 }
6021
6022 // GCPAppHubDestinationServiceID returns an attribute KeyValue conforming to the
6023 // "gcp.apphub_destination.service.id" semantic conventions. It represents the
6024 // name of the destination service as configured in AppHub.
6025 func GCPAppHubDestinationServiceID(val string) attribute.KeyValue {
6026 return GCPAppHubDestinationServiceIDKey.String(val)
6027 }
6028
6029 // GCPAppHubDestinationWorkloadID returns an attribute KeyValue conforming to the
6030 // "gcp.apphub_destination.workload.id" semantic conventions. It represents the
6031 // name of the destination workload as configured in AppHub.
6032 func GCPAppHubDestinationWorkloadID(val string) attribute.KeyValue {
6033 return GCPAppHubDestinationWorkloadIDKey.String(val)
6034 }
6035
6036 // GCPClientService returns an attribute KeyValue conforming to the
6037 // "gcp.client.service" semantic conventions. It represents the identifies the
6038 // Google Cloud service for which the official client library is intended.
6039 func GCPClientService(val string) attribute.KeyValue {
6040 return GCPClientServiceKey.String(val)
6041 }
6042
6043 // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
6044 // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
6045 // the Cloud Run [execution] being run for the Job, as set by the
6046 // [`CLOUD_RUN_EXECUTION`] environment variable.
6047 //
6048 // [execution]: https://cloud.google.com/run/docs/managing/job-executions
6049 // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
6050 func GCPCloudRunJobExecution(val string) attribute.KeyValue {
6051 return GCPCloudRunJobExecutionKey.String(val)
6052 }
6053
6054 // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
6055 // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
6056 // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
6057 // environment variable.
6058 //
6059 // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
6060 func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
6061 return GCPCloudRunJobTaskIndexKey.Int(val)
6062 }
6063
6064 // GCPGCEInstanceHostname returns an attribute KeyValue conforming to the
6065 // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
6066 // of a GCE instance. This is the full value of the default or [custom hostname]
6067 // .
6068 //
6069 // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
6070 func GCPGCEInstanceHostname(val string) attribute.KeyValue {
6071 return GCPGCEInstanceHostnameKey.String(val)
6072 }
6073
6074 // GCPGCEInstanceName returns an attribute KeyValue conforming to the
6075 // "gcp.gce.instance.name" semantic conventions. It represents the instance name
6076 // of a GCE instance. This is the value provided by `host.name`, the visible name
6077 // of the instance in the Cloud Console UI, and the prefix for the default
6078 // hostname of the instance as defined by the [default internal DNS name].
6079 //
6080 // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
6081 func GCPGCEInstanceName(val string) attribute.KeyValue {
6082 return GCPGCEInstanceNameKey.String(val)
6083 }
6084
6085 // Enum values for gcp.apphub.service.criticality_type
6086 var (
6087 // Mission critical service.
6088 // Stability: development
6089 GCPAppHubServiceCriticalityTypeMissionCritical = GCPAppHubServiceCriticalityTypeKey.String("MISSION_CRITICAL")
6090 // High impact.
6091 // Stability: development
6092 GCPAppHubServiceCriticalityTypeHigh = GCPAppHubServiceCriticalityTypeKey.String("HIGH")
6093 // Medium impact.
6094 // Stability: development
6095 GCPAppHubServiceCriticalityTypeMedium = GCPAppHubServiceCriticalityTypeKey.String("MEDIUM")
6096 // Low impact.
6097 // Stability: development
6098 GCPAppHubServiceCriticalityTypeLow = GCPAppHubServiceCriticalityTypeKey.String("LOW")
6099 )
6100
6101 // Enum values for gcp.apphub.service.environment_type
6102 var (
6103 // Production environment.
6104 // Stability: development
6105 GCPAppHubServiceEnvironmentTypeProduction = GCPAppHubServiceEnvironmentTypeKey.String("PRODUCTION")
6106 // Staging environment.
6107 // Stability: development
6108 GCPAppHubServiceEnvironmentTypeStaging = GCPAppHubServiceEnvironmentTypeKey.String("STAGING")
6109 // Test environment.
6110 // Stability: development
6111 GCPAppHubServiceEnvironmentTypeTest = GCPAppHubServiceEnvironmentTypeKey.String("TEST")
6112 // Development environment.
6113 // Stability: development
6114 GCPAppHubServiceEnvironmentTypeDevelopment = GCPAppHubServiceEnvironmentTypeKey.String("DEVELOPMENT")
6115 )
6116
6117 // Enum values for gcp.apphub.workload.criticality_type
6118 var (
6119 // Mission critical service.
6120 // Stability: development
6121 GCPAppHubWorkloadCriticalityTypeMissionCritical = GCPAppHubWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
6122 // High impact.
6123 // Stability: development
6124 GCPAppHubWorkloadCriticalityTypeHigh = GCPAppHubWorkloadCriticalityTypeKey.String("HIGH")
6125 // Medium impact.
6126 // Stability: development
6127 GCPAppHubWorkloadCriticalityTypeMedium = GCPAppHubWorkloadCriticalityTypeKey.String("MEDIUM")
6128 // Low impact.
6129 // Stability: development
6130 GCPAppHubWorkloadCriticalityTypeLow = GCPAppHubWorkloadCriticalityTypeKey.String("LOW")
6131 )
6132
6133 // Enum values for gcp.apphub.workload.environment_type
6134 var (
6135 // Production environment.
6136 // Stability: development
6137 GCPAppHubWorkloadEnvironmentTypeProduction = GCPAppHubWorkloadEnvironmentTypeKey.String("PRODUCTION")
6138 // Staging environment.
6139 // Stability: development
6140 GCPAppHubWorkloadEnvironmentTypeStaging = GCPAppHubWorkloadEnvironmentTypeKey.String("STAGING")
6141 // Test environment.
6142 // Stability: development
6143 GCPAppHubWorkloadEnvironmentTypeTest = GCPAppHubWorkloadEnvironmentTypeKey.String("TEST")
6144 // Development environment.
6145 // Stability: development
6146 GCPAppHubWorkloadEnvironmentTypeDevelopment = GCPAppHubWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
6147 )
6148
6149 // Enum values for gcp.apphub_destination.service.criticality_type
6150 var (
6151 // Mission critical service.
6152 // Stability: development
6153 GCPAppHubDestinationServiceCriticalityTypeMissionCritical = GCPAppHubDestinationServiceCriticalityTypeKey.String("MISSION_CRITICAL")
6154 // High impact.
6155 // Stability: development
6156 GCPAppHubDestinationServiceCriticalityTypeHigh = GCPAppHubDestinationServiceCriticalityTypeKey.String("HIGH")
6157 // Medium impact.
6158 // Stability: development
6159 GCPAppHubDestinationServiceCriticalityTypeMedium = GCPAppHubDestinationServiceCriticalityTypeKey.String("MEDIUM")
6160 // Low impact.
6161 // Stability: development
6162 GCPAppHubDestinationServiceCriticalityTypeLow = GCPAppHubDestinationServiceCriticalityTypeKey.String("LOW")
6163 )
6164
6165 // Enum values for gcp.apphub_destination.service.environment_type
6166 var (
6167 // Production environment.
6168 // Stability: development
6169 GCPAppHubDestinationServiceEnvironmentTypeProduction = GCPAppHubDestinationServiceEnvironmentTypeKey.String("PRODUCTION")
6170 // Staging environment.
6171 // Stability: development
6172 GCPAppHubDestinationServiceEnvironmentTypeStaging = GCPAppHubDestinationServiceEnvironmentTypeKey.String("STAGING")
6173 // Test environment.
6174 // Stability: development
6175 GCPAppHubDestinationServiceEnvironmentTypeTest = GCPAppHubDestinationServiceEnvironmentTypeKey.String("TEST")
6176 // Development environment.
6177 // Stability: development
6178 GCPAppHubDestinationServiceEnvironmentTypeDevelopment = GCPAppHubDestinationServiceEnvironmentTypeKey.String("DEVELOPMENT")
6179 )
6180
6181 // Enum values for gcp.apphub_destination.workload.criticality_type
6182 var (
6183 // Mission critical service.
6184 // Stability: development
6185 GCPAppHubDestinationWorkloadCriticalityTypeMissionCritical = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
6186 // High impact.
6187 // Stability: development
6188 GCPAppHubDestinationWorkloadCriticalityTypeHigh = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("HIGH")
6189 // Medium impact.
6190 // Stability: development
6191 GCPAppHubDestinationWorkloadCriticalityTypeMedium = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("MEDIUM")
6192 // Low impact.
6193 // Stability: development
6194 GCPAppHubDestinationWorkloadCriticalityTypeLow = GCPAppHubDestinationWorkloadCriticalityTypeKey.String("LOW")
6195 )
6196
6197 // Enum values for gcp.apphub_destination.workload.environment_type
6198 var (
6199 // Production environment.
6200 // Stability: development
6201 GCPAppHubDestinationWorkloadEnvironmentTypeProduction = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("PRODUCTION")
6202 // Staging environment.
6203 // Stability: development
6204 GCPAppHubDestinationWorkloadEnvironmentTypeStaging = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("STAGING")
6205 // Test environment.
6206 // Stability: development
6207 GCPAppHubDestinationWorkloadEnvironmentTypeTest = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("TEST")
6208 // Development environment.
6209 // Stability: development
6210 GCPAppHubDestinationWorkloadEnvironmentTypeDevelopment = GCPAppHubDestinationWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
6211 )
6212
6213 // Namespace: gen_ai
6214 const (
6215 // GenAIAgentDescriptionKey is the attribute Key conforming to the
6216 // "gen_ai.agent.description" semantic conventions. It represents the free-form
6217 // description of the GenAI agent provided by the application.
6218 //
6219 // Type: string
6220 // RequirementLevel: Recommended
6221 // Stability: Development
6222 //
6223 // Examples: "Helps with math problems", "Generates fiction stories"
6224 GenAIAgentDescriptionKey = attribute.Key("gen_ai.agent.description")
6225
6226 // GenAIAgentIDKey is the attribute Key conforming to the "gen_ai.agent.id"
6227 // semantic conventions. It represents the unique identifier of the GenAI agent.
6228 //
6229 // Type: string
6230 // RequirementLevel: Recommended
6231 // Stability: Development
6232 //
6233 // Examples: "asst_5j66UpCpwteGg4YSxUnt7lPY"
6234 GenAIAgentIDKey = attribute.Key("gen_ai.agent.id")
6235
6236 // GenAIAgentNameKey is the attribute Key conforming to the "gen_ai.agent.name"
6237 // semantic conventions. It represents the human-readable name of the GenAI
6238 // agent provided by the application.
6239 //
6240 // Type: string
6241 // RequirementLevel: Recommended
6242 // Stability: Development
6243 //
6244 // Examples: "Math Tutor", "Fiction Writer"
6245 GenAIAgentNameKey = attribute.Key("gen_ai.agent.name")
6246
6247 // GenAIConversationIDKey is the attribute Key conforming to the
6248 // "gen_ai.conversation.id" semantic conventions. It represents the unique
6249 // identifier for a conversation (session, thread), used to store and correlate
6250 // messages within this conversation.
6251 //
6252 // Type: string
6253 // RequirementLevel: Recommended
6254 // Stability: Development
6255 //
6256 // Examples: "conv_5j66UpCpwteGg4YSxUnt7lPY"
6257 GenAIConversationIDKey = attribute.Key("gen_ai.conversation.id")
6258
6259 // GenAIDataSourceIDKey is the attribute Key conforming to the
6260 // "gen_ai.data_source.id" semantic conventions. It represents the data source
6261 // identifier.
6262 //
6263 // Type: string
6264 // RequirementLevel: Recommended
6265 // Stability: Development
6266 //
6267 // Examples: "H7STPQYOND"
6268 // Note: Data sources are used by AI agents and RAG applications to store
6269 // grounding data. A data source may be an external database, object store,
6270 // document collection, website, or any other storage system used by the GenAI
6271 // agent or application. The `gen_ai.data_source.id` SHOULD match the identifier
6272 // used by the GenAI system rather than a name specific to the external storage,
6273 // such as a database or object store. Semantic conventions referencing
6274 // `gen_ai.data_source.id` MAY also leverage additional attributes, such as
6275 // `db.*`, to further identify and describe the data source.
6276 GenAIDataSourceIDKey = attribute.Key("gen_ai.data_source.id")
6277
6278 // GenAIEmbeddingsDimensionCountKey is the attribute Key conforming to the
6279 // "gen_ai.embeddings.dimension.count" semantic conventions. It represents the
6280 // number of dimensions the resulting output embeddings should have.
6281 //
6282 // Type: int
6283 // RequirementLevel: Recommended
6284 // Stability: Development
6285 //
6286 // Examples: 512, 1024
6287 GenAIEmbeddingsDimensionCountKey = attribute.Key("gen_ai.embeddings.dimension.count")
6288
6289 // GenAIEvaluationExplanationKey is the attribute Key conforming to the
6290 // "gen_ai.evaluation.explanation" semantic conventions. It represents a
6291 // free-form explanation for the assigned score provided by the evaluator.
6292 //
6293 // Type: string
6294 // RequirementLevel: Recommended
6295 // Stability: Development
6296 //
6297 // Examples: "The response is factually accurate but lacks sufficient detail to
6298 // fully address the question."
6299 GenAIEvaluationExplanationKey = attribute.Key("gen_ai.evaluation.explanation")
6300
6301 // GenAIEvaluationNameKey is the attribute Key conforming to the
6302 // "gen_ai.evaluation.name" semantic conventions. It represents the name of the
6303 // evaluation metric used for the GenAI response.
6304 //
6305 // Type: string
6306 // RequirementLevel: Recommended
6307 // Stability: Development
6308 //
6309 // Examples: "Relevance", "IntentResolution"
6310 GenAIEvaluationNameKey = attribute.Key("gen_ai.evaluation.name")
6311
6312 // GenAIEvaluationScoreLabelKey is the attribute Key conforming to the
6313 // "gen_ai.evaluation.score.label" semantic conventions. It represents the human
6314 // readable label for evaluation.
6315 //
6316 // Type: string
6317 // RequirementLevel: Recommended
6318 // Stability: Development
6319 //
6320 // Examples: "relevant", "not_relevant", "correct", "incorrect", "pass", "fail"
6321 // Note: This attribute provides a human-readable interpretation of the
6322 // evaluation score produced by an evaluator. For example, a score value of 1
6323 // could mean "relevant" in one evaluation system and "not relevant" in another,
6324 // depending on the scoring range and evaluator. The label SHOULD have low
6325 // cardinality. Possible values depend on the evaluation metric and evaluator
6326 // used; implementations SHOULD document the possible values.
6327 GenAIEvaluationScoreLabelKey = attribute.Key("gen_ai.evaluation.score.label")
6328
6329 // GenAIEvaluationScoreValueKey is the attribute Key conforming to the
6330 // "gen_ai.evaluation.score.value" semantic conventions. It represents the
6331 // evaluation score returned by the evaluator.
6332 //
6333 // Type: double
6334 // RequirementLevel: Recommended
6335 // Stability: Development
6336 //
6337 // Examples: 4.0
6338 GenAIEvaluationScoreValueKey = attribute.Key("gen_ai.evaluation.score.value")
6339
6340 // GenAIInputMessagesKey is the attribute Key conforming to the
6341 // "gen_ai.input.messages" semantic conventions. It represents the chat history
6342 // provided to the model as an input.
6343 //
6344 // Type: any
6345 // RequirementLevel: Recommended
6346 // Stability: Development
6347 //
6348 // Examples: "[\n {\n "role": "user",\n "parts": [\n {\n "type": "text",\n
6349 // "content": "Weather in Paris?"\n }\n ]\n },\n {\n "role": "assistant",\n
6350 // "parts": [\n {\n "type": "tool_call",\n "id":
6351 // "call_VSPygqKTWdrhaFErNvMV18Yl",\n "name": "get_weather",\n "arguments": {\n
6352 // "location": "Paris"\n }\n }\n ]\n },\n {\n "role": "tool",\n "parts": [\n {\n
6353 // "type": "tool_call_response",\n "id": " call_VSPygqKTWdrhaFErNvMV18Yl",\n
6354 // "result": "rainy, 57°F"\n }\n ]\n }\n]\n"
6355 // Note: Instrumentations MUST follow [Input messages JSON schema].
6356 // When the attribute is recorded on events, it MUST be recorded in structured
6357 // form. When recorded on spans, it MAY be recorded as a JSON string if
6358 // structured
6359 // format is not supported and SHOULD be recorded in structured form otherwise.
6360 //
6361 // Messages MUST be provided in the order they were sent to the model.
6362 // Instrumentations MAY provide a way for users to filter or truncate
6363 // input messages.
6364 //
6365 // > [!Warning]
6366 // > This attribute is likely to contain sensitive information including
6367 // > user/PII data.
6368 //
6369 // See [Recording content on attributes]
6370 // section for more details.
6371 //
6372 // [Input messages JSON schema]: /docs/gen-ai/gen-ai-input-messages.json
6373 // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
6374 GenAIInputMessagesKey = attribute.Key("gen_ai.input.messages")
6375
6376 // GenAIOperationNameKey is the attribute Key conforming to the
6377 // "gen_ai.operation.name" semantic conventions. It represents the name of the
6378 // operation being performed.
6379 //
6380 // Type: Enum
6381 // RequirementLevel: Recommended
6382 // Stability: Development
6383 //
6384 // Examples:
6385 // Note: If one of the predefined values applies, but specific system uses a
6386 // different name it's RECOMMENDED to document it in the semantic conventions
6387 // for specific GenAI system and use system-specific name in the
6388 // instrumentation. If a different name is not documented, instrumentation
6389 // libraries SHOULD use applicable predefined value.
6390 GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
6391
6392 // GenAIOutputMessagesKey is the attribute Key conforming to the
6393 // "gen_ai.output.messages" semantic conventions. It represents the messages
6394 // returned by the model where each message represents a specific model response
6395 // (choice, candidate).
6396 //
6397 // Type: any
6398 // RequirementLevel: Recommended
6399 // Stability: Development
6400 //
6401 // Examples: "[\n {\n "role": "assistant",\n "parts": [\n {\n "type": "text",\n
6402 // "content": "The weather in Paris is currently rainy with a temperature of
6403 // 57°F."\n }\n ],\n "finish_reason": "stop"\n }\n]\n"
6404 // Note: Instrumentations MUST follow [Output messages JSON schema]
6405 //
6406 // Each message represents a single output choice/candidate generated by
6407 // the model. Each message corresponds to exactly one generation
6408 // (choice/candidate) and vice versa - one choice cannot be split across
6409 // multiple messages or one message cannot contain parts from multiple choices.
6410 //
6411 // When the attribute is recorded on events, it MUST be recorded in structured
6412 // form. When recorded on spans, it MAY be recorded as a JSON string if
6413 // structured
6414 // format is not supported and SHOULD be recorded in structured form otherwise.
6415 //
6416 // Instrumentations MAY provide a way for users to filter or truncate
6417 // output messages.
6418 //
6419 // > [!Warning]
6420 // > This attribute is likely to contain sensitive information including
6421 // > user/PII data.
6422 //
6423 // See [Recording content on attributes]
6424 // section for more details.
6425 //
6426 // [Output messages JSON schema]: /docs/gen-ai/gen-ai-output-messages.json
6427 // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
6428 GenAIOutputMessagesKey = attribute.Key("gen_ai.output.messages")
6429
6430 // GenAIOutputTypeKey is the attribute Key conforming to the
6431 // "gen_ai.output.type" semantic conventions. It represents the represents the
6432 // content type requested by the client.
6433 //
6434 // Type: Enum
6435 // RequirementLevel: Recommended
6436 // Stability: Development
6437 //
6438 // Examples:
6439 // Note: This attribute SHOULD be used when the client requests output of a
6440 // specific type. The model may return zero or more outputs of this type.
6441 // This attribute specifies the output modality and not the actual output
6442 // format. For example, if an image is requested, the actual output could be a
6443 // URL pointing to an image file.
6444 // Additional output format details may be recorded in the future in the
6445 // `gen_ai.output.{type}.*` attributes.
6446 GenAIOutputTypeKey = attribute.Key("gen_ai.output.type")
6447
6448 // GenAIProviderNameKey is the attribute Key conforming to the
6449 // "gen_ai.provider.name" semantic conventions. It represents the Generative AI
6450 // provider as identified by the client or server instrumentation.
6451 //
6452 // Type: Enum
6453 // RequirementLevel: Recommended
6454 // Stability: Development
6455 //
6456 // Examples:
6457 // Note: The attribute SHOULD be set based on the instrumentation's best
6458 // knowledge and may differ from the actual model provider.
6459 //
6460 // Multiple providers, including Azure OpenAI, Gemini, and AI hosting platforms
6461 // are accessible using the OpenAI REST API and corresponding client libraries,
6462 // but may proxy or host models from different providers.
6463 //
6464 // The `gen_ai.request.model`, `gen_ai.response.model`, and `server.address`
6465 // attributes may help identify the actual system in use.
6466 //
6467 // The `gen_ai.provider.name` attribute acts as a discriminator that
6468 // identifies the GenAI telemetry format flavor specific to that provider
6469 // within GenAI semantic conventions.
6470 // It SHOULD be set consistently with provider-specific attributes and signals.
6471 // For example, GenAI spans, metrics, and events related to AWS Bedrock
6472 // should have the `gen_ai.provider.name` set to `aws.bedrock` and include
6473 // applicable `aws.bedrock.*` attributes and are not expected to include
6474 // `openai.*` attributes.
6475 GenAIProviderNameKey = attribute.Key("gen_ai.provider.name")
6476
6477 // GenAIRequestChoiceCountKey is the attribute Key conforming to the
6478 // "gen_ai.request.choice.count" semantic conventions. It represents the target
6479 // number of candidate completions to return.
6480 //
6481 // Type: int
6482 // RequirementLevel: Recommended
6483 // Stability: Development
6484 //
6485 // Examples: 3
6486 GenAIRequestChoiceCountKey = attribute.Key("gen_ai.request.choice.count")
6487
6488 // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the
6489 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
6490 // encoding formats requested in an embeddings operation, if specified.
6491 //
6492 // Type: string[]
6493 // RequirementLevel: Recommended
6494 // Stability: Development
6495 //
6496 // Examples: "base64"], ["float", "binary"
6497 // Note: In some GenAI systems the encoding formats are called embedding types.
6498 // Also, some GenAI systems only accept a single format per request.
6499 GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats")
6500
6501 // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
6502 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
6503 // frequency penalty setting for the GenAI request.
6504 //
6505 // Type: double
6506 // RequirementLevel: Recommended
6507 // Stability: Development
6508 //
6509 // Examples: 0.1
6510 GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
6511
6512 // GenAIRequestMaxTokensKey is the attribute Key conforming to the
6513 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
6514 // number of tokens the model generates for a request.
6515 //
6516 // Type: int
6517 // RequirementLevel: Recommended
6518 // Stability: Development
6519 //
6520 // Examples: 100
6521 GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
6522
6523 // GenAIRequestModelKey is the attribute Key conforming to the
6524 // "gen_ai.request.model" semantic conventions. It represents the name of the
6525 // GenAI model a request is being made to.
6526 //
6527 // Type: string
6528 // RequirementLevel: Recommended
6529 // Stability: Development
6530 //
6531 // Examples: gpt-4
6532 GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
6533
6534 // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
6535 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
6536 // presence penalty setting for the GenAI request.
6537 //
6538 // Type: double
6539 // RequirementLevel: Recommended
6540 // Stability: Development
6541 //
6542 // Examples: 0.1
6543 GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
6544
6545 // GenAIRequestSeedKey is the attribute Key conforming to the
6546 // "gen_ai.request.seed" semantic conventions. It represents the requests with
6547 // same seed value more likely to return same result.
6548 //
6549 // Type: int
6550 // RequirementLevel: Recommended
6551 // Stability: Development
6552 //
6553 // Examples: 100
6554 GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed")
6555
6556 // GenAIRequestStopSequencesKey is the attribute Key conforming to the
6557 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
6558 // of sequences that the model will use to stop generating further tokens.
6559 //
6560 // Type: string[]
6561 // RequirementLevel: Recommended
6562 // Stability: Development
6563 //
6564 // Examples: "forest", "lived"
6565 GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
6566
6567 // GenAIRequestTemperatureKey is the attribute Key conforming to the
6568 // "gen_ai.request.temperature" semantic conventions. It represents the
6569 // temperature setting for the GenAI request.
6570 //
6571 // Type: double
6572 // RequirementLevel: Recommended
6573 // Stability: Development
6574 //
6575 // Examples: 0.0
6576 GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
6577
6578 // GenAIRequestTopKKey is the attribute Key conforming to the
6579 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
6580 // setting for the GenAI request.
6581 //
6582 // Type: double
6583 // RequirementLevel: Recommended
6584 // Stability: Development
6585 //
6586 // Examples: 1.0
6587 GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
6588
6589 // GenAIRequestTopPKey is the attribute Key conforming to the
6590 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
6591 // setting for the GenAI request.
6592 //
6593 // Type: double
6594 // RequirementLevel: Recommended
6595 // Stability: Development
6596 //
6597 // Examples: 1.0
6598 GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
6599
6600 // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
6601 // "gen_ai.response.finish_reasons" semantic conventions. It represents the
6602 // array of reasons the model stopped generating tokens, corresponding to each
6603 // generation received.
6604 //
6605 // Type: string[]
6606 // RequirementLevel: Recommended
6607 // Stability: Development
6608 //
6609 // Examples: "stop"], ["stop", "length"
6610 GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
6611
6612 // GenAIResponseIDKey is the attribute Key conforming to the
6613 // "gen_ai.response.id" semantic conventions. It represents the unique
6614 // identifier for the completion.
6615 //
6616 // Type: string
6617 // RequirementLevel: Recommended
6618 // Stability: Development
6619 //
6620 // Examples: "chatcmpl-123"
6621 GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
6622
6623 // GenAIResponseModelKey is the attribute Key conforming to the
6624 // "gen_ai.response.model" semantic conventions. It represents the name of the
6625 // model that generated the response.
6626 //
6627 // Type: string
6628 // RequirementLevel: Recommended
6629 // Stability: Development
6630 //
6631 // Examples: "gpt-4-0613"
6632 GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
6633
6634 // GenAISystemInstructionsKey is the attribute Key conforming to the
6635 // "gen_ai.system_instructions" semantic conventions. It represents the system
6636 // message or instructions provided to the GenAI model separately from the chat
6637 // history.
6638 //
6639 // Type: any
6640 // RequirementLevel: Recommended
6641 // Stability: Development
6642 //
6643 // Examples: "[\n {\n "type": "text",\n "content": "You are an Agent that greet
6644 // users, always use greetings tool to respond"\n }\n]\n", "[\n {\n "type":
6645 // "text",\n "content": "You are a language translator."\n },\n {\n "type":
6646 // "text",\n "content": "Your mission is to translate text in English to
6647 // French."\n }\n]\n"
6648 // Note: This attribute SHOULD be used when the corresponding provider or API
6649 // allows to provide system instructions or messages separately from the
6650 // chat history.
6651 //
6652 // Instructions that are part of the chat history SHOULD be recorded in
6653 // `gen_ai.input.messages` attribute instead.
6654 //
6655 // Instrumentations MUST follow [System instructions JSON schema].
6656 //
6657 // When recorded on spans, it MAY be recorded as a JSON string if structured
6658 // format is not supported and SHOULD be recorded in structured form otherwise.
6659 //
6660 // Instrumentations MAY provide a way for users to filter or truncate
6661 // system instructions.
6662 //
6663 // > [!Warning]
6664 // > This attribute may contain sensitive information.
6665 //
6666 // See [Recording content on attributes]
6667 // section for more details.
6668 //
6669 // [System instructions JSON schema]: /docs/gen-ai/gen-ai-system-instructions.json
6670 // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
6671 GenAISystemInstructionsKey = attribute.Key("gen_ai.system_instructions")
6672
6673 // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
6674 // semantic conventions. It represents the type of token being counted.
6675 //
6676 // Type: Enum
6677 // RequirementLevel: Recommended
6678 // Stability: Development
6679 //
6680 // Examples: "input", "output"
6681 GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
6682
6683 // GenAIToolCallArgumentsKey is the attribute Key conforming to the
6684 // "gen_ai.tool.call.arguments" semantic conventions. It represents the
6685 // parameters passed to the tool call.
6686 //
6687 // Type: any
6688 // RequirementLevel: Recommended
6689 // Stability: Development
6690 //
6691 // Examples: "{\n "location": "San Francisco?",\n "date": "2025-10-01"\n}\n"
6692 // Note: > [!WARNING]
6693 //
6694 // > This attribute may contain sensitive information.
6695 //
6696 // It's expected to be an object - in case a serialized string is available
6697 // to the instrumentation, the instrumentation SHOULD do the best effort to
6698 // deserialize it to an object. When recorded on spans, it MAY be recorded as a
6699 // JSON string if structured format is not supported and SHOULD be recorded in
6700 // structured form otherwise.
6701 GenAIToolCallArgumentsKey = attribute.Key("gen_ai.tool.call.arguments")
6702
6703 // GenAIToolCallIDKey is the attribute Key conforming to the
6704 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
6705 // identifier.
6706 //
6707 // Type: string
6708 // RequirementLevel: Recommended
6709 // Stability: Development
6710 //
6711 // Examples: "call_mszuSIzqtI65i1wAUOE8w5H4"
6712 GenAIToolCallIDKey = attribute.Key("gen_ai.tool.call.id")
6713
6714 // GenAIToolCallResultKey is the attribute Key conforming to the
6715 // "gen_ai.tool.call.result" semantic conventions. It represents the result
6716 // returned by the tool call (if any and if execution was successful).
6717 //
6718 // Type: any
6719 // RequirementLevel: Recommended
6720 // Stability: Development
6721 //
6722 // Examples: "{\n "temperature_range": {\n "high": 75,\n "low": 60\n },\n
6723 // "conditions": "sunny"\n}\n"
6724 // Note: > [!WARNING]
6725 //
6726 // > This attribute may contain sensitive information.
6727 //
6728 // It's expected to be an object - in case a serialized string is available
6729 // to the instrumentation, the instrumentation SHOULD do the best effort to
6730 // deserialize it to an object. When recorded on spans, it MAY be recorded as a
6731 // JSON string if structured format is not supported and SHOULD be recorded in
6732 // structured form otherwise.
6733 GenAIToolCallResultKey = attribute.Key("gen_ai.tool.call.result")
6734
6735 // GenAIToolDefinitionsKey is the attribute Key conforming to the
6736 // "gen_ai.tool.definitions" semantic conventions. It represents the list of
6737 // source system tool definitions available to the GenAI agent or model.
6738 //
6739 // Type: any
6740 // RequirementLevel: Recommended
6741 // Stability: Development
6742 //
6743 // Examples: "[\n {\n "type": "function",\n "name": "get_current_weather",\n
6744 // "description": "Get the current weather in a given location",\n "parameters":
6745 // {\n "type": "object",\n "properties": {\n "location": {\n "type": "string",\n
6746 // "description": "The city and state, e.g. San Francisco, CA"\n },\n "unit":
6747 // {\n "type": "string",\n "enum": [\n "celsius",\n "fahrenheit"\n ]\n }\n },\n
6748 // "required": [\n "location",\n "unit"\n ]\n }\n }\n]\n"
6749 // Note: The value of this attribute matches source system tool definition
6750 // format.
6751 //
6752 // It's expected to be an array of objects where each object represents a tool
6753 // definition. In case a serialized string is available
6754 // to the instrumentation, the instrumentation SHOULD do the best effort to
6755 // deserialize it to an array. When recorded on spans, it MAY be recorded as a
6756 // JSON string if structured format is not supported and SHOULD be recorded in
6757 // structured form otherwise.
6758 //
6759 // Since this attribute could be large, it's NOT RECOMMENDED to populate
6760 // it by default. Instrumentations MAY provide a way to enable
6761 // populating this attribute.
6762 GenAIToolDefinitionsKey = attribute.Key("gen_ai.tool.definitions")
6763
6764 // GenAIToolDescriptionKey is the attribute Key conforming to the
6765 // "gen_ai.tool.description" semantic conventions. It represents the tool
6766 // description.
6767 //
6768 // Type: string
6769 // RequirementLevel: Recommended
6770 // Stability: Development
6771 //
6772 // Examples: "Multiply two numbers"
6773 GenAIToolDescriptionKey = attribute.Key("gen_ai.tool.description")
6774
6775 // GenAIToolNameKey is the attribute Key conforming to the "gen_ai.tool.name"
6776 // semantic conventions. It represents the name of the tool utilized by the
6777 // agent.
6778 //
6779 // Type: string
6780 // RequirementLevel: Recommended
6781 // Stability: Development
6782 //
6783 // Examples: "Flights"
6784 GenAIToolNameKey = attribute.Key("gen_ai.tool.name")
6785
6786 // GenAIToolTypeKey is the attribute Key conforming to the "gen_ai.tool.type"
6787 // semantic conventions. It represents the type of the tool utilized by the
6788 // agent.
6789 //
6790 // Type: string
6791 // RequirementLevel: Recommended
6792 // Stability: Development
6793 //
6794 // Examples: "function", "extension", "datastore"
6795 // Note: Extension: A tool executed on the agent-side to directly call external
6796 // APIs, bridging the gap between the agent and real-world systems.
6797 // Agent-side operations involve actions that are performed by the agent on the
6798 // server or within the agent's controlled environment.
6799 // Function: A tool executed on the client-side, where the agent generates
6800 // parameters for a predefined function, and the client executes the logic.
6801 // Client-side operations are actions taken on the user's end or within the
6802 // client application.
6803 // Datastore: A tool used by the agent to access and query structured or
6804 // unstructured external data for retrieval-augmented tasks or knowledge
6805 // updates.
6806 GenAIToolTypeKey = attribute.Key("gen_ai.tool.type")
6807
6808 // GenAIUsageInputTokensKey is the attribute Key conforming to the
6809 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
6810 // tokens used in the GenAI input (prompt).
6811 //
6812 // Type: int
6813 // RequirementLevel: Recommended
6814 // Stability: Development
6815 //
6816 // Examples: 100
6817 GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
6818
6819 // GenAIUsageOutputTokensKey is the attribute Key conforming to the
6820 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
6821 // of tokens used in the GenAI response (completion).
6822 //
6823 // Type: int
6824 // RequirementLevel: Recommended
6825 // Stability: Development
6826 //
6827 // Examples: 180
6828 GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
6829 )
6830
6831 // GenAIAgentDescription returns an attribute KeyValue conforming to the
6832 // "gen_ai.agent.description" semantic conventions. It represents the free-form
6833 // description of the GenAI agent provided by the application.
6834 func GenAIAgentDescription(val string) attribute.KeyValue {
6835 return GenAIAgentDescriptionKey.String(val)
6836 }
6837
6838 // GenAIAgentID returns an attribute KeyValue conforming to the "gen_ai.agent.id"
6839 // semantic conventions. It represents the unique identifier of the GenAI agent.
6840 func GenAIAgentID(val string) attribute.KeyValue {
6841 return GenAIAgentIDKey.String(val)
6842 }
6843
6844 // GenAIAgentName returns an attribute KeyValue conforming to the
6845 // "gen_ai.agent.name" semantic conventions. It represents the human-readable
6846 // name of the GenAI agent provided by the application.
6847 func GenAIAgentName(val string) attribute.KeyValue {
6848 return GenAIAgentNameKey.String(val)
6849 }
6850
6851 // GenAIConversationID returns an attribute KeyValue conforming to the
6852 // "gen_ai.conversation.id" semantic conventions. It represents the unique
6853 // identifier for a conversation (session, thread), used to store and correlate
6854 // messages within this conversation.
6855 func GenAIConversationID(val string) attribute.KeyValue {
6856 return GenAIConversationIDKey.String(val)
6857 }
6858
6859 // GenAIDataSourceID returns an attribute KeyValue conforming to the
6860 // "gen_ai.data_source.id" semantic conventions. It represents the data source
6861 // identifier.
6862 func GenAIDataSourceID(val string) attribute.KeyValue {
6863 return GenAIDataSourceIDKey.String(val)
6864 }
6865
6866 // GenAIEmbeddingsDimensionCount returns an attribute KeyValue conforming to the
6867 // "gen_ai.embeddings.dimension.count" semantic conventions. It represents the
6868 // number of dimensions the resulting output embeddings should have.
6869 func GenAIEmbeddingsDimensionCount(val int) attribute.KeyValue {
6870 return GenAIEmbeddingsDimensionCountKey.Int(val)
6871 }
6872
6873 // GenAIEvaluationExplanation returns an attribute KeyValue conforming to the
6874 // "gen_ai.evaluation.explanation" semantic conventions. It represents a
6875 // free-form explanation for the assigned score provided by the evaluator.
6876 func GenAIEvaluationExplanation(val string) attribute.KeyValue {
6877 return GenAIEvaluationExplanationKey.String(val)
6878 }
6879
6880 // GenAIEvaluationName returns an attribute KeyValue conforming to the
6881 // "gen_ai.evaluation.name" semantic conventions. It represents the name of the
6882 // evaluation metric used for the GenAI response.
6883 func GenAIEvaluationName(val string) attribute.KeyValue {
6884 return GenAIEvaluationNameKey.String(val)
6885 }
6886
6887 // GenAIEvaluationScoreLabel returns an attribute KeyValue conforming to the
6888 // "gen_ai.evaluation.score.label" semantic conventions. It represents the human
6889 // readable label for evaluation.
6890 func GenAIEvaluationScoreLabel(val string) attribute.KeyValue {
6891 return GenAIEvaluationScoreLabelKey.String(val)
6892 }
6893
6894 // GenAIEvaluationScoreValue returns an attribute KeyValue conforming to the
6895 // "gen_ai.evaluation.score.value" semantic conventions. It represents the
6896 // evaluation score returned by the evaluator.
6897 func GenAIEvaluationScoreValue(val float64) attribute.KeyValue {
6898 return GenAIEvaluationScoreValueKey.Float64(val)
6899 }
6900
6901 // GenAIRequestChoiceCount returns an attribute KeyValue conforming to the
6902 // "gen_ai.request.choice.count" semantic conventions. It represents the target
6903 // number of candidate completions to return.
6904 func GenAIRequestChoiceCount(val int) attribute.KeyValue {
6905 return GenAIRequestChoiceCountKey.Int(val)
6906 }
6907
6908 // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the
6909 // "gen_ai.request.encoding_formats" semantic conventions. It represents the
6910 // encoding formats requested in an embeddings operation, if specified.
6911 func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue {
6912 return GenAIRequestEncodingFormatsKey.StringSlice(val)
6913 }
6914
6915 // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
6916 // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
6917 // frequency penalty setting for the GenAI request.
6918 func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
6919 return GenAIRequestFrequencyPenaltyKey.Float64(val)
6920 }
6921
6922 // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
6923 // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
6924 // number of tokens the model generates for a request.
6925 func GenAIRequestMaxTokens(val int) attribute.KeyValue {
6926 return GenAIRequestMaxTokensKey.Int(val)
6927 }
6928
6929 // GenAIRequestModel returns an attribute KeyValue conforming to the
6930 // "gen_ai.request.model" semantic conventions. It represents the name of the
6931 // GenAI model a request is being made to.
6932 func GenAIRequestModel(val string) attribute.KeyValue {
6933 return GenAIRequestModelKey.String(val)
6934 }
6935
6936 // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
6937 // "gen_ai.request.presence_penalty" semantic conventions. It represents the
6938 // presence penalty setting for the GenAI request.
6939 func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
6940 return GenAIRequestPresencePenaltyKey.Float64(val)
6941 }
6942
6943 // GenAIRequestSeed returns an attribute KeyValue conforming to the
6944 // "gen_ai.request.seed" semantic conventions. It represents the requests with
6945 // same seed value more likely to return same result.
6946 func GenAIRequestSeed(val int) attribute.KeyValue {
6947 return GenAIRequestSeedKey.Int(val)
6948 }
6949
6950 // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
6951 // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
6952 // of sequences that the model will use to stop generating further tokens.
6953 func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
6954 return GenAIRequestStopSequencesKey.StringSlice(val)
6955 }
6956
6957 // GenAIRequestTemperature returns an attribute KeyValue conforming to the
6958 // "gen_ai.request.temperature" semantic conventions. It represents the
6959 // temperature setting for the GenAI request.
6960 func GenAIRequestTemperature(val float64) attribute.KeyValue {
6961 return GenAIRequestTemperatureKey.Float64(val)
6962 }
6963
6964 // GenAIRequestTopK returns an attribute KeyValue conforming to the
6965 // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
6966 // setting for the GenAI request.
6967 func GenAIRequestTopK(val float64) attribute.KeyValue {
6968 return GenAIRequestTopKKey.Float64(val)
6969 }
6970
6971 // GenAIRequestTopP returns an attribute KeyValue conforming to the
6972 // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
6973 // setting for the GenAI request.
6974 func GenAIRequestTopP(val float64) attribute.KeyValue {
6975 return GenAIRequestTopPKey.Float64(val)
6976 }
6977
6978 // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
6979 // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
6980 // of reasons the model stopped generating tokens, corresponding to each
6981 // generation received.
6982 func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
6983 return GenAIResponseFinishReasonsKey.StringSlice(val)
6984 }
6985
6986 // GenAIResponseID returns an attribute KeyValue conforming to the
6987 // "gen_ai.response.id" semantic conventions. It represents the unique identifier
6988 // for the completion.
6989 func GenAIResponseID(val string) attribute.KeyValue {
6990 return GenAIResponseIDKey.String(val)
6991 }
6992
6993 // GenAIResponseModel returns an attribute KeyValue conforming to the
6994 // "gen_ai.response.model" semantic conventions. It represents the name of the
6995 // model that generated the response.
6996 func GenAIResponseModel(val string) attribute.KeyValue {
6997 return GenAIResponseModelKey.String(val)
6998 }
6999
7000 // GenAIToolCallID returns an attribute KeyValue conforming to the
7001 // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
7002 // identifier.
7003 func GenAIToolCallID(val string) attribute.KeyValue {
7004 return GenAIToolCallIDKey.String(val)
7005 }
7006
7007 // GenAIToolDescription returns an attribute KeyValue conforming to the
7008 // "gen_ai.tool.description" semantic conventions. It represents the tool
7009 // description.
7010 func GenAIToolDescription(val string) attribute.KeyValue {
7011 return GenAIToolDescriptionKey.String(val)
7012 }
7013
7014 // GenAIToolName returns an attribute KeyValue conforming to the
7015 // "gen_ai.tool.name" semantic conventions. It represents the name of the tool
7016 // utilized by the agent.
7017 func GenAIToolName(val string) attribute.KeyValue {
7018 return GenAIToolNameKey.String(val)
7019 }
7020
7021 // GenAIToolType returns an attribute KeyValue conforming to the
7022 // "gen_ai.tool.type" semantic conventions. It represents the type of the tool
7023 // utilized by the agent.
7024 func GenAIToolType(val string) attribute.KeyValue {
7025 return GenAIToolTypeKey.String(val)
7026 }
7027
7028 // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
7029 // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
7030 // tokens used in the GenAI input (prompt).
7031 func GenAIUsageInputTokens(val int) attribute.KeyValue {
7032 return GenAIUsageInputTokensKey.Int(val)
7033 }
7034
7035 // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
7036 // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
7037 // tokens used in the GenAI response (completion).
7038 func GenAIUsageOutputTokens(val int) attribute.KeyValue {
7039 return GenAIUsageOutputTokensKey.Int(val)
7040 }
7041
7042 // Enum values for gen_ai.operation.name
7043 var (
7044 // Chat completion operation such as [OpenAI Chat API]
7045 // Stability: development
7046 //
7047 // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
7048 GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
7049 // Multimodal content generation operation such as [Gemini Generate Content]
7050 // Stability: development
7051 //
7052 // [Gemini Generate Content]: https://ai.google.dev/api/generate-content
7053 GenAIOperationNameGenerateContent = GenAIOperationNameKey.String("generate_content")
7054 // Text completions operation such as [OpenAI Completions API (Legacy)]
7055 // Stability: development
7056 //
7057 // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
7058 GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
7059 // Embeddings operation such as [OpenAI Create embeddings API]
7060 // Stability: development
7061 //
7062 // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create
7063 GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings")
7064 // Create GenAI agent
7065 // Stability: development
7066 GenAIOperationNameCreateAgent = GenAIOperationNameKey.String("create_agent")
7067 // Invoke GenAI agent
7068 // Stability: development
7069 GenAIOperationNameInvokeAgent = GenAIOperationNameKey.String("invoke_agent")
7070 // Execute a tool
7071 // Stability: development
7072 GenAIOperationNameExecuteTool = GenAIOperationNameKey.String("execute_tool")
7073 )
7074
7075 // Enum values for gen_ai.output.type
7076 var (
7077 // Plain text
7078 // Stability: development
7079 GenAIOutputTypeText = GenAIOutputTypeKey.String("text")
7080 // JSON object with known or unknown schema
7081 // Stability: development
7082 GenAIOutputTypeJSON = GenAIOutputTypeKey.String("json")
7083 // Image
7084 // Stability: development
7085 GenAIOutputTypeImage = GenAIOutputTypeKey.String("image")
7086 // Speech
7087 // Stability: development
7088 GenAIOutputTypeSpeech = GenAIOutputTypeKey.String("speech")
7089 )
7090
7091 // Enum values for gen_ai.provider.name
7092 var (
7093 // [OpenAI]
7094 // Stability: development
7095 //
7096 // [OpenAI]: https://openai.com/
7097 GenAIProviderNameOpenAI = GenAIProviderNameKey.String("openai")
7098 // Any Google generative AI endpoint
7099 // Stability: development
7100 GenAIProviderNameGCPGenAI = GenAIProviderNameKey.String("gcp.gen_ai")
7101 // [Vertex AI]
7102 // Stability: development
7103 //
7104 // [Vertex AI]: https://cloud.google.com/vertex-ai
7105 GenAIProviderNameGCPVertexAI = GenAIProviderNameKey.String("gcp.vertex_ai")
7106 // [Gemini]
7107 // Stability: development
7108 //
7109 // [Gemini]: https://cloud.google.com/products/gemini
7110 GenAIProviderNameGCPGemini = GenAIProviderNameKey.String("gcp.gemini")
7111 // [Anthropic]
7112 // Stability: development
7113 //
7114 // [Anthropic]: https://www.anthropic.com/
7115 GenAIProviderNameAnthropic = GenAIProviderNameKey.String("anthropic")
7116 // [Cohere]
7117 // Stability: development
7118 //
7119 // [Cohere]: https://cohere.com/
7120 GenAIProviderNameCohere = GenAIProviderNameKey.String("cohere")
7121 // Azure AI Inference
7122 // Stability: development
7123 GenAIProviderNameAzureAIInference = GenAIProviderNameKey.String("azure.ai.inference")
7124 // [Azure OpenAI]
7125 // Stability: development
7126 //
7127 // [Azure OpenAI]: https://azure.microsoft.com/products/ai-services/openai-service/
7128 GenAIProviderNameAzureAIOpenAI = GenAIProviderNameKey.String("azure.ai.openai")
7129 // [IBM Watsonx AI]
7130 // Stability: development
7131 //
7132 // [IBM Watsonx AI]: https://www.ibm.com/products/watsonx-ai
7133 GenAIProviderNameIBMWatsonxAI = GenAIProviderNameKey.String("ibm.watsonx.ai")
7134 // [AWS Bedrock]
7135 // Stability: development
7136 //
7137 // [AWS Bedrock]: https://aws.amazon.com/bedrock
7138 GenAIProviderNameAWSBedrock = GenAIProviderNameKey.String("aws.bedrock")
7139 // [Perplexity]
7140 // Stability: development
7141 //
7142 // [Perplexity]: https://www.perplexity.ai/
7143 GenAIProviderNamePerplexity = GenAIProviderNameKey.String("perplexity")
7144 // [xAI]
7145 // Stability: development
7146 //
7147 // [xAI]: https://x.ai/
7148 GenAIProviderNameXAI = GenAIProviderNameKey.String("x_ai")
7149 // [DeepSeek]
7150 // Stability: development
7151 //
7152 // [DeepSeek]: https://www.deepseek.com/
7153 GenAIProviderNameDeepseek = GenAIProviderNameKey.String("deepseek")
7154 // [Groq]
7155 // Stability: development
7156 //
7157 // [Groq]: https://groq.com/
7158 GenAIProviderNameGroq = GenAIProviderNameKey.String("groq")
7159 // [Mistral AI]
7160 // Stability: development
7161 //
7162 // [Mistral AI]: https://mistral.ai/
7163 GenAIProviderNameMistralAI = GenAIProviderNameKey.String("mistral_ai")
7164 )
7165
7166 // Enum values for gen_ai.token.type
7167 var (
7168 // Input tokens (prompt, input, etc.)
7169 // Stability: development
7170 GenAITokenTypeInput = GenAITokenTypeKey.String("input")
7171 // Output tokens (completion, response, etc.)
7172 // Stability: development
7173 GenAITokenTypeOutput = GenAITokenTypeKey.String("output")
7174 )
7175
7176 // Namespace: geo
7177 const (
7178 // GeoContinentCodeKey is the attribute Key conforming to the
7179 // "geo.continent.code" semantic conventions. It represents the two-letter code
7180 // representing continent’s name.
7181 //
7182 // Type: Enum
7183 // RequirementLevel: Recommended
7184 // Stability: Development
7185 //
7186 // Examples:
7187 GeoContinentCodeKey = attribute.Key("geo.continent.code")
7188
7189 // GeoCountryISOCodeKey is the attribute Key conforming to the
7190 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
7191 // Country Code ([ISO 3166-1 alpha2]).
7192 //
7193 // Type: string
7194 // RequirementLevel: Recommended
7195 // Stability: Development
7196 //
7197 // Examples: "CA"
7198 //
7199 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
7200 GeoCountryISOCodeKey = attribute.Key("geo.country.iso_code")
7201
7202 // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name"
7203 // semantic conventions. It represents the locality name. Represents the name of
7204 // a city, town, village, or similar populated place.
7205 //
7206 // Type: string
7207 // RequirementLevel: Recommended
7208 // Stability: Development
7209 //
7210 // Examples: "Montreal", "Berlin"
7211 GeoLocalityNameKey = attribute.Key("geo.locality.name")
7212
7213 // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat"
7214 // semantic conventions. It represents the latitude of the geo location in
7215 // [WGS84].
7216 //
7217 // Type: double
7218 // RequirementLevel: Recommended
7219 // Stability: Development
7220 //
7221 // Examples: 45.505918
7222 //
7223 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
7224 GeoLocationLatKey = attribute.Key("geo.location.lat")
7225
7226 // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon"
7227 // semantic conventions. It represents the longitude of the geo location in
7228 // [WGS84].
7229 //
7230 // Type: double
7231 // RequirementLevel: Recommended
7232 // Stability: Development
7233 //
7234 // Examples: -73.61483
7235 //
7236 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
7237 GeoLocationLonKey = attribute.Key("geo.location.lon")
7238
7239 // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code"
7240 // semantic conventions. It represents the postal code associated with the
7241 // location. Values appropriate for this field may also be known as a postcode
7242 // or ZIP code and will vary widely from country to country.
7243 //
7244 // Type: string
7245 // RequirementLevel: Recommended
7246 // Stability: Development
7247 //
7248 // Examples: "94040"
7249 GeoPostalCodeKey = attribute.Key("geo.postal_code")
7250
7251 // GeoRegionISOCodeKey is the attribute Key conforming to the
7252 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
7253 // ([ISO 3166-2]).
7254 //
7255 // Type: string
7256 // RequirementLevel: Recommended
7257 // Stability: Development
7258 //
7259 // Examples: "CA-QC"
7260 //
7261 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
7262 GeoRegionISOCodeKey = attribute.Key("geo.region.iso_code")
7263 )
7264
7265 // GeoCountryISOCode returns an attribute KeyValue conforming to the
7266 // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
7267 // Country Code ([ISO 3166-1 alpha2]).
7268 //
7269 // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
7270 func GeoCountryISOCode(val string) attribute.KeyValue {
7271 return GeoCountryISOCodeKey.String(val)
7272 }
7273
7274 // GeoLocalityName returns an attribute KeyValue conforming to the
7275 // "geo.locality.name" semantic conventions. It represents the locality name.
7276 // Represents the name of a city, town, village, or similar populated place.
7277 func GeoLocalityName(val string) attribute.KeyValue {
7278 return GeoLocalityNameKey.String(val)
7279 }
7280
7281 // GeoLocationLat returns an attribute KeyValue conforming to the
7282 // "geo.location.lat" semantic conventions. It represents the latitude of the geo
7283 // location in [WGS84].
7284 //
7285 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
7286 func GeoLocationLat(val float64) attribute.KeyValue {
7287 return GeoLocationLatKey.Float64(val)
7288 }
7289
7290 // GeoLocationLon returns an attribute KeyValue conforming to the
7291 // "geo.location.lon" semantic conventions. It represents the longitude of the
7292 // geo location in [WGS84].
7293 //
7294 // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
7295 func GeoLocationLon(val float64) attribute.KeyValue {
7296 return GeoLocationLonKey.Float64(val)
7297 }
7298
7299 // GeoPostalCode returns an attribute KeyValue conforming to the
7300 // "geo.postal_code" semantic conventions. It represents the postal code
7301 // associated with the location. Values appropriate for this field may also be
7302 // known as a postcode or ZIP code and will vary widely from country to country.
7303 func GeoPostalCode(val string) attribute.KeyValue {
7304 return GeoPostalCodeKey.String(val)
7305 }
7306
7307 // GeoRegionISOCode returns an attribute KeyValue conforming to the
7308 // "geo.region.iso_code" semantic conventions. It represents the region ISO code
7309 // ([ISO 3166-2]).
7310 //
7311 // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
7312 func GeoRegionISOCode(val string) attribute.KeyValue {
7313 return GeoRegionISOCodeKey.String(val)
7314 }
7315
7316 // Enum values for geo.continent.code
7317 var (
7318 // Africa
7319 // Stability: development
7320 GeoContinentCodeAf = GeoContinentCodeKey.String("AF")
7321 // Antarctica
7322 // Stability: development
7323 GeoContinentCodeAn = GeoContinentCodeKey.String("AN")
7324 // Asia
7325 // Stability: development
7326 GeoContinentCodeAs = GeoContinentCodeKey.String("AS")
7327 // Europe
7328 // Stability: development
7329 GeoContinentCodeEu = GeoContinentCodeKey.String("EU")
7330 // North America
7331 // Stability: development
7332 GeoContinentCodeNa = GeoContinentCodeKey.String("NA")
7333 // Oceania
7334 // Stability: development
7335 GeoContinentCodeOc = GeoContinentCodeKey.String("OC")
7336 // South America
7337 // Stability: development
7338 GeoContinentCodeSa = GeoContinentCodeKey.String("SA")
7339 )
7340
7341 // Namespace: go
7342 const (
7343 // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
7344 // semantic conventions. It represents the type of memory.
7345 //
7346 // Type: Enum
7347 // RequirementLevel: Recommended
7348 // Stability: Development
7349 //
7350 // Examples: "other", "stack"
7351 GoMemoryTypeKey = attribute.Key("go.memory.type")
7352 )
7353
7354 // Enum values for go.memory.type
7355 var (
7356 // Memory allocated from the heap that is reserved for stack space, whether or
7357 // not it is currently in-use.
7358 // Stability: development
7359 GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
7360 // Memory used by the Go runtime, excluding other categories of memory usage
7361 // described in this enumeration.
7362 // Stability: development
7363 GoMemoryTypeOther = GoMemoryTypeKey.String("other")
7364 )
7365
7366 // Namespace: graphql
7367 const (
7368 // GraphQLDocumentKey is the attribute Key conforming to the "graphql.document"
7369 // semantic conventions. It represents the GraphQL document being executed.
7370 //
7371 // Type: string
7372 // RequirementLevel: Recommended
7373 // Stability: Development
7374 //
7375 // Examples: query findBookById { bookById(id: ?) { name } }
7376 // Note: The value may be sanitized to exclude sensitive information.
7377 GraphQLDocumentKey = attribute.Key("graphql.document")
7378
7379 // GraphQLOperationNameKey is the attribute Key conforming to the
7380 // "graphql.operation.name" semantic conventions. It represents the name of the
7381 // operation being executed.
7382 //
7383 // Type: string
7384 // RequirementLevel: Recommended
7385 // Stability: Development
7386 //
7387 // Examples: findBookById
7388 GraphQLOperationNameKey = attribute.Key("graphql.operation.name")
7389
7390 // GraphQLOperationTypeKey is the attribute Key conforming to the
7391 // "graphql.operation.type" semantic conventions. It represents the type of the
7392 // operation being executed.
7393 //
7394 // Type: Enum
7395 // RequirementLevel: Recommended
7396 // Stability: Development
7397 //
7398 // Examples: "query", "mutation", "subscription"
7399 GraphQLOperationTypeKey = attribute.Key("graphql.operation.type")
7400 )
7401
7402 // GraphQLDocument returns an attribute KeyValue conforming to the
7403 // "graphql.document" semantic conventions. It represents the GraphQL document
7404 // being executed.
7405 func GraphQLDocument(val string) attribute.KeyValue {
7406 return GraphQLDocumentKey.String(val)
7407 }
7408
7409 // GraphQLOperationName returns an attribute KeyValue conforming to the
7410 // "graphql.operation.name" semantic conventions. It represents the name of the
7411 // operation being executed.
7412 func GraphQLOperationName(val string) attribute.KeyValue {
7413 return GraphQLOperationNameKey.String(val)
7414 }
7415
7416 // Enum values for graphql.operation.type
7417 var (
7418 // GraphQL query
7419 // Stability: development
7420 GraphQLOperationTypeQuery = GraphQLOperationTypeKey.String("query")
7421 // GraphQL mutation
7422 // Stability: development
7423 GraphQLOperationTypeMutation = GraphQLOperationTypeKey.String("mutation")
7424 // GraphQL subscription
7425 // Stability: development
7426 GraphQLOperationTypeSubscription = GraphQLOperationTypeKey.String("subscription")
7427 )
7428
7429 // Namespace: heroku
7430 const (
7431 // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
7432 // semantic conventions. It represents the unique identifier for the
7433 // application.
7434 //
7435 // Type: string
7436 // RequirementLevel: Recommended
7437 // Stability: Development
7438 //
7439 // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
7440 HerokuAppIDKey = attribute.Key("heroku.app.id")
7441
7442 // HerokuReleaseCommitKey is the attribute Key conforming to the
7443 // "heroku.release.commit" semantic conventions. It represents the commit hash
7444 // for the current release.
7445 //
7446 // Type: string
7447 // RequirementLevel: Recommended
7448 // Stability: Development
7449 //
7450 // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
7451 HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
7452
7453 // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
7454 // "heroku.release.creation_timestamp" semantic conventions. It represents the
7455 // time and date the release was created.
7456 //
7457 // Type: string
7458 // RequirementLevel: Recommended
7459 // Stability: Development
7460 //
7461 // Examples: "2022-10-23T18:00:42Z"
7462 HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
7463 )
7464
7465 // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
7466 // semantic conventions. It represents the unique identifier for the application.
7467 func HerokuAppID(val string) attribute.KeyValue {
7468 return HerokuAppIDKey.String(val)
7469 }
7470
7471 // HerokuReleaseCommit returns an attribute KeyValue conforming to the
7472 // "heroku.release.commit" semantic conventions. It represents the commit hash
7473 // for the current release.
7474 func HerokuReleaseCommit(val string) attribute.KeyValue {
7475 return HerokuReleaseCommitKey.String(val)
7476 }
7477
7478 // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
7479 // "heroku.release.creation_timestamp" semantic conventions. It represents the
7480 // time and date the release was created.
7481 func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
7482 return HerokuReleaseCreationTimestampKey.String(val)
7483 }
7484
7485 // Namespace: host
7486 const (
7487 // HostArchKey is the attribute Key conforming to the "host.arch" semantic
7488 // conventions. It represents the CPU architecture the host system is running
7489 // on.
7490 //
7491 // Type: Enum
7492 // RequirementLevel: Recommended
7493 // Stability: Development
7494 //
7495 // Examples:
7496 HostArchKey = attribute.Key("host.arch")
7497
7498 // HostCPUCacheL2SizeKey is the attribute Key conforming to the
7499 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
7500 // level 2 memory cache available to the processor (in Bytes).
7501 //
7502 // Type: int
7503 // RequirementLevel: Recommended
7504 // Stability: Development
7505 //
7506 // Examples: 12288000
7507 HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
7508
7509 // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
7510 // semantic conventions. It represents the family or generation of the CPU.
7511 //
7512 // Type: string
7513 // RequirementLevel: Recommended
7514 // Stability: Development
7515 //
7516 // Examples: "6", "PA-RISC 1.1e"
7517 HostCPUFamilyKey = attribute.Key("host.cpu.family")
7518
7519 // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
7520 // semantic conventions. It represents the model identifier. It provides more
7521 // granular information about the CPU, distinguishing it from other CPUs within
7522 // the same family.
7523 //
7524 // Type: string
7525 // RequirementLevel: Recommended
7526 // Stability: Development
7527 //
7528 // Examples: "6", "9000/778/B180L"
7529 HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
7530
7531 // HostCPUModelNameKey is the attribute Key conforming to the
7532 // "host.cpu.model.name" semantic conventions. It represents the model
7533 // designation of the processor.
7534 //
7535 // Type: string
7536 // RequirementLevel: Recommended
7537 // Stability: Development
7538 //
7539 // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
7540 HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
7541
7542 // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
7543 // semantic conventions. It represents the stepping or core revisions.
7544 //
7545 // Type: string
7546 // RequirementLevel: Recommended
7547 // Stability: Development
7548 //
7549 // Examples: "1", "r1p1"
7550 HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
7551
7552 // HostCPUVendorIDKey is the attribute Key conforming to the
7553 // "host.cpu.vendor.id" semantic conventions. It represents the processor
7554 // manufacturer identifier. A maximum 12-character string.
7555 //
7556 // Type: string
7557 // RequirementLevel: Recommended
7558 // Stability: Development
7559 //
7560 // Examples: "GenuineIntel"
7561 // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
7562 // registers. Writing these to memory in this order results in a 12-character
7563 // string.
7564 //
7565 // [CPUID]: https://wiki.osdev.org/CPUID
7566 HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
7567
7568 // HostIDKey is the attribute Key conforming to the "host.id" semantic
7569 // conventions. It represents the unique host ID. For Cloud, this must be the
7570 // instance_id assigned by the cloud provider. For non-containerized systems,
7571 // this should be the `machine-id`. See the table below for the sources to use
7572 // to determine the `machine-id` based on operating system.
7573 //
7574 // Type: string
7575 // RequirementLevel: Recommended
7576 // Stability: Development
7577 //
7578 // Examples: "fdbf79e8af94cb7f9e8df36789187052"
7579 HostIDKey = attribute.Key("host.id")
7580
7581 // HostImageIDKey is the attribute Key conforming to the "host.image.id"
7582 // semantic conventions. It represents the VM image ID or host OS image ID. For
7583 // Cloud, this value is from the provider.
7584 //
7585 // Type: string
7586 // RequirementLevel: Recommended
7587 // Stability: Development
7588 //
7589 // Examples: "ami-07b06b442921831e5"
7590 HostImageIDKey = attribute.Key("host.image.id")
7591
7592 // HostImageNameKey is the attribute Key conforming to the "host.image.name"
7593 // semantic conventions. It represents the name of the VM image or OS install
7594 // the host was instantiated from.
7595 //
7596 // Type: string
7597 // RequirementLevel: Recommended
7598 // Stability: Development
7599 //
7600 // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
7601 HostImageNameKey = attribute.Key("host.image.name")
7602
7603 // HostImageVersionKey is the attribute Key conforming to the
7604 // "host.image.version" semantic conventions. It represents the version string
7605 // of the VM image or host OS as defined in [Version Attributes].
7606 //
7607 // Type: string
7608 // RequirementLevel: Recommended
7609 // Stability: Development
7610 //
7611 // Examples: "0.1"
7612 //
7613 // [Version Attributes]: /docs/resource/README.md#version-attributes
7614 HostImageVersionKey = attribute.Key("host.image.version")
7615
7616 // HostIPKey is the attribute Key conforming to the "host.ip" semantic
7617 // conventions. It represents the available IP addresses of the host, excluding
7618 // loopback interfaces.
7619 //
7620 // Type: string[]
7621 // RequirementLevel: Recommended
7622 // Stability: Development
7623 //
7624 // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
7625 // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
7626 // addresses MUST be specified in the [RFC 5952] format.
7627 //
7628 // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
7629 HostIPKey = attribute.Key("host.ip")
7630
7631 // HostMacKey is the attribute Key conforming to the "host.mac" semantic
7632 // conventions. It represents the available MAC addresses of the host, excluding
7633 // loopback interfaces.
7634 //
7635 // Type: string[]
7636 // RequirementLevel: Recommended
7637 // Stability: Development
7638 //
7639 // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
7640 // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
7641 // hyphen-separated octets in uppercase hexadecimal form from most to least
7642 // significant.
7643 //
7644 // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
7645 HostMacKey = attribute.Key("host.mac")
7646
7647 // HostNameKey is the attribute Key conforming to the "host.name" semantic
7648 // conventions. It represents the name of the host. On Unix systems, it may
7649 // contain what the hostname command returns, or the fully qualified hostname,
7650 // or another name specified by the user.
7651 //
7652 // Type: string
7653 // RequirementLevel: Recommended
7654 // Stability: Development
7655 //
7656 // Examples: "opentelemetry-test"
7657 HostNameKey = attribute.Key("host.name")
7658
7659 // HostTypeKey is the attribute Key conforming to the "host.type" semantic
7660 // conventions. It represents the type of host. For Cloud, this must be the
7661 // machine type.
7662 //
7663 // Type: string
7664 // RequirementLevel: Recommended
7665 // Stability: Development
7666 //
7667 // Examples: "n1-standard-1"
7668 HostTypeKey = attribute.Key("host.type")
7669 )
7670
7671 // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
7672 // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
7673 // level 2 memory cache available to the processor (in Bytes).
7674 func HostCPUCacheL2Size(val int) attribute.KeyValue {
7675 return HostCPUCacheL2SizeKey.Int(val)
7676 }
7677
7678 // HostCPUFamily returns an attribute KeyValue conforming to the
7679 // "host.cpu.family" semantic conventions. It represents the family or generation
7680 // of the CPU.
7681 func HostCPUFamily(val string) attribute.KeyValue {
7682 return HostCPUFamilyKey.String(val)
7683 }
7684
7685 // HostCPUModelID returns an attribute KeyValue conforming to the
7686 // "host.cpu.model.id" semantic conventions. It represents the model identifier.
7687 // It provides more granular information about the CPU, distinguishing it from
7688 // other CPUs within the same family.
7689 func HostCPUModelID(val string) attribute.KeyValue {
7690 return HostCPUModelIDKey.String(val)
7691 }
7692
7693 // HostCPUModelName returns an attribute KeyValue conforming to the
7694 // "host.cpu.model.name" semantic conventions. It represents the model
7695 // designation of the processor.
7696 func HostCPUModelName(val string) attribute.KeyValue {
7697 return HostCPUModelNameKey.String(val)
7698 }
7699
7700 // HostCPUStepping returns an attribute KeyValue conforming to the
7701 // "host.cpu.stepping" semantic conventions. It represents the stepping or core
7702 // revisions.
7703 func HostCPUStepping(val string) attribute.KeyValue {
7704 return HostCPUSteppingKey.String(val)
7705 }
7706
7707 // HostCPUVendorID returns an attribute KeyValue conforming to the
7708 // "host.cpu.vendor.id" semantic conventions. It represents the processor
7709 // manufacturer identifier. A maximum 12-character string.
7710 func HostCPUVendorID(val string) attribute.KeyValue {
7711 return HostCPUVendorIDKey.String(val)
7712 }
7713
7714 // HostID returns an attribute KeyValue conforming to the "host.id" semantic
7715 // conventions. It represents the unique host ID. For Cloud, this must be the
7716 // instance_id assigned by the cloud provider. For non-containerized systems,
7717 // this should be the `machine-id`. See the table below for the sources to use to
7718 // determine the `machine-id` based on operating system.
7719 func HostID(val string) attribute.KeyValue {
7720 return HostIDKey.String(val)
7721 }
7722
7723 // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
7724 // semantic conventions. It represents the VM image ID or host OS image ID. For
7725 // Cloud, this value is from the provider.
7726 func HostImageID(val string) attribute.KeyValue {
7727 return HostImageIDKey.String(val)
7728 }
7729
7730 // HostImageName returns an attribute KeyValue conforming to the
7731 // "host.image.name" semantic conventions. It represents the name of the VM image
7732 // or OS install the host was instantiated from.
7733 func HostImageName(val string) attribute.KeyValue {
7734 return HostImageNameKey.String(val)
7735 }
7736
7737 // HostImageVersion returns an attribute KeyValue conforming to the
7738 // "host.image.version" semantic conventions. It represents the version string of
7739 // the VM image or host OS as defined in [Version Attributes].
7740 //
7741 // [Version Attributes]: /docs/resource/README.md#version-attributes
7742 func HostImageVersion(val string) attribute.KeyValue {
7743 return HostImageVersionKey.String(val)
7744 }
7745
7746 // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
7747 // conventions. It represents the available IP addresses of the host, excluding
7748 // loopback interfaces.
7749 func HostIP(val ...string) attribute.KeyValue {
7750 return HostIPKey.StringSlice(val)
7751 }
7752
7753 // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
7754 // conventions. It represents the available MAC addresses of the host, excluding
7755 // loopback interfaces.
7756 func HostMac(val ...string) attribute.KeyValue {
7757 return HostMacKey.StringSlice(val)
7758 }
7759
7760 // HostName returns an attribute KeyValue conforming to the "host.name" semantic
7761 // conventions. It represents the name of the host. On Unix systems, it may
7762 // contain what the hostname command returns, or the fully qualified hostname, or
7763 // another name specified by the user.
7764 func HostName(val string) attribute.KeyValue {
7765 return HostNameKey.String(val)
7766 }
7767
7768 // HostType returns an attribute KeyValue conforming to the "host.type" semantic
7769 // conventions. It represents the type of host. For Cloud, this must be the
7770 // machine type.
7771 func HostType(val string) attribute.KeyValue {
7772 return HostTypeKey.String(val)
7773 }
7774
7775 // Enum values for host.arch
7776 var (
7777 // AMD64
7778 // Stability: development
7779 HostArchAMD64 = HostArchKey.String("amd64")
7780 // ARM32
7781 // Stability: development
7782 HostArchARM32 = HostArchKey.String("arm32")
7783 // ARM64
7784 // Stability: development
7785 HostArchARM64 = HostArchKey.String("arm64")
7786 // Itanium
7787 // Stability: development
7788 HostArchIA64 = HostArchKey.String("ia64")
7789 // 32-bit PowerPC
7790 // Stability: development
7791 HostArchPPC32 = HostArchKey.String("ppc32")
7792 // 64-bit PowerPC
7793 // Stability: development
7794 HostArchPPC64 = HostArchKey.String("ppc64")
7795 // IBM z/Architecture
7796 // Stability: development
7797 HostArchS390x = HostArchKey.String("s390x")
7798 // 32-bit x86
7799 // Stability: development
7800 HostArchX86 = HostArchKey.String("x86")
7801 )
7802
7803 // Namespace: http
7804 const (
7805 // HTTPConnectionStateKey is the attribute Key conforming to the
7806 // "http.connection.state" semantic conventions. It represents the state of the
7807 // HTTP connection in the HTTP connection pool.
7808 //
7809 // Type: Enum
7810 // RequirementLevel: Recommended
7811 // Stability: Development
7812 //
7813 // Examples: "active", "idle"
7814 HTTPConnectionStateKey = attribute.Key("http.connection.state")
7815
7816 // HTTPRequestBodySizeKey is the attribute Key conforming to the
7817 // "http.request.body.size" semantic conventions. It represents the size of the
7818 // request payload body in bytes. This is the number of bytes transferred
7819 // excluding headers and is often, but not always, present as the
7820 // [Content-Length] header. For requests using transport encoding, this should
7821 // be the compressed size.
7822 //
7823 // Type: int
7824 // RequirementLevel: Recommended
7825 // Stability: Development
7826 //
7827 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7828 HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
7829
7830 // HTTPRequestMethodKey is the attribute Key conforming to the
7831 // "http.request.method" semantic conventions. It represents the HTTP request
7832 // method.
7833 //
7834 // Type: Enum
7835 // RequirementLevel: Recommended
7836 // Stability: Stable
7837 //
7838 // Examples: "GET", "POST", "HEAD"
7839 // Note: HTTP request method value SHOULD be "known" to the instrumentation.
7840 // By default, this convention defines "known" methods as the ones listed in
7841 // [RFC9110],
7842 // the PATCH method defined in [RFC5789]
7843 // and the QUERY method defined in [httpbis-safe-method-w-body].
7844 //
7845 // If the HTTP request method is not known to instrumentation, it MUST set the
7846 // `http.request.method` attribute to `_OTHER`.
7847 //
7848 // If the HTTP instrumentation could end up converting valid HTTP request
7849 // methods to `_OTHER`, then it MUST provide a way to override
7850 // the list of known HTTP methods. If this override is done via environment
7851 // variable, then the environment variable MUST be named
7852 // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
7853 // case-sensitive known HTTP methods
7854 // (this list MUST be a full override of the default known method, it is not a
7855 // list of known methods in addition to the defaults).
7856 //
7857 // HTTP method names are case-sensitive and `http.request.method` attribute
7858 // value MUST match a known HTTP method name exactly.
7859 // Instrumentations for specific web frameworks that consider HTTP methods to be
7860 // case insensitive, SHOULD populate a canonical equivalent.
7861 // Tracing instrumentations that do so, MUST also set
7862 // `http.request.method_original` to the original value.
7863 //
7864 // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
7865 // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
7866 // [httpbis-safe-method-w-body]: https://datatracker.ietf.org/doc/draft-ietf-httpbis-safe-method-w-body/?include_text=1
7867 HTTPRequestMethodKey = attribute.Key("http.request.method")
7868
7869 // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
7870 // "http.request.method_original" semantic conventions. It represents the
7871 // original HTTP method sent by the client in the request line.
7872 //
7873 // Type: string
7874 // RequirementLevel: Recommended
7875 // Stability: Stable
7876 //
7877 // Examples: "GeT", "ACL", "foo"
7878 HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
7879
7880 // HTTPRequestResendCountKey is the attribute Key conforming to the
7881 // "http.request.resend_count" semantic conventions. It represents the ordinal
7882 // number of request resending attempt (for any reason, including redirects).
7883 //
7884 // Type: int
7885 // RequirementLevel: Recommended
7886 // Stability: Stable
7887 //
7888 // Note: The resend count SHOULD be updated each time an HTTP request gets
7889 // resent by the client, regardless of what was the cause of the resending (e.g.
7890 // redirection, authorization failure, 503 Server Unavailable, network issues,
7891 // or any other).
7892 HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
7893
7894 // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
7895 // semantic conventions. It represents the total size of the request in bytes.
7896 // This should be the total number of bytes sent over the wire, including the
7897 // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
7898 // body if any.
7899 //
7900 // Type: int
7901 // RequirementLevel: Recommended
7902 // Stability: Development
7903 HTTPRequestSizeKey = attribute.Key("http.request.size")
7904
7905 // HTTPResponseBodySizeKey is the attribute Key conforming to the
7906 // "http.response.body.size" semantic conventions. It represents the size of the
7907 // response payload body in bytes. This is the number of bytes transferred
7908 // excluding headers and is often, but not always, present as the
7909 // [Content-Length] header. For requests using transport encoding, this should
7910 // be the compressed size.
7911 //
7912 // Type: int
7913 // RequirementLevel: Recommended
7914 // Stability: Development
7915 //
7916 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7917 HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
7918
7919 // HTTPResponseSizeKey is the attribute Key conforming to the
7920 // "http.response.size" semantic conventions. It represents the total size of
7921 // the response in bytes. This should be the total number of bytes sent over the
7922 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
7923 // headers, and response body and trailers if any.
7924 //
7925 // Type: int
7926 // RequirementLevel: Recommended
7927 // Stability: Development
7928 HTTPResponseSizeKey = attribute.Key("http.response.size")
7929
7930 // HTTPResponseStatusCodeKey is the attribute Key conforming to the
7931 // "http.response.status_code" semantic conventions. It represents the
7932 // [HTTP response status code].
7933 //
7934 // Type: int
7935 // RequirementLevel: Recommended
7936 // Stability: Stable
7937 //
7938 // Examples: 200
7939 //
7940 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
7941 HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
7942
7943 // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
7944 // conventions. It represents the matched route template for the request. This
7945 // MUST be low-cardinality and include all static path segments, with dynamic
7946 // path segments represented with placeholders.
7947 //
7948 // Type: string
7949 // RequirementLevel: Recommended
7950 // Stability: Stable
7951 //
7952 // Examples: "/users/:userID?", "my-controller/my-action/{id?}"
7953 // Note: MUST NOT be populated when this is not supported by the HTTP server
7954 // framework as the route attribute should have low-cardinality and the URI path
7955 // can NOT substitute it.
7956 // SHOULD include the [application root] if there is one.
7957 //
7958 // A static path segment is a part of the route template with a fixed,
7959 // low-cardinality value. This includes literal strings like `/users/` and
7960 // placeholders that
7961 // are constrained to a finite, predefined set of values, e.g. `{controller}` or
7962 // `{action}`.
7963 //
7964 // A dynamic path segment is a placeholder for a value that can have high
7965 // cardinality and is not constrained to a predefined list like static path
7966 // segments.
7967 //
7968 // Instrumentations SHOULD use routing information provided by the corresponding
7969 // web framework. They SHOULD pick the most precise source of routing
7970 // information and MAY
7971 // support custom route formatting. Instrumentations SHOULD document the format
7972 // and the API used to obtain the route string.
7973 //
7974 // [application root]: /docs/http/http-spans.md#http-server-definitions
7975 HTTPRouteKey = attribute.Key("http.route")
7976 )
7977
7978 // HTTPRequestBodySize returns an attribute KeyValue conforming to the
7979 // "http.request.body.size" semantic conventions. It represents the size of the
7980 // request payload body in bytes. This is the number of bytes transferred
7981 // excluding headers and is often, but not always, present as the
7982 // [Content-Length] header. For requests using transport encoding, this should be
7983 // the compressed size.
7984 //
7985 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
7986 func HTTPRequestBodySize(val int) attribute.KeyValue {
7987 return HTTPRequestBodySizeKey.Int(val)
7988 }
7989
7990 // HTTPRequestHeader returns an attribute KeyValue conforming to the
7991 // "http.request.header" semantic conventions. It represents the HTTP request
7992 // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
7993 // being the header values.
7994 func HTTPRequestHeader(key string, val ...string) attribute.KeyValue {
7995 return attribute.StringSlice("http.request.header."+key, val)
7996 }
7997
7998 // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
7999 // "http.request.method_original" semantic conventions. It represents the
8000 // original HTTP method sent by the client in the request line.
8001 func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
8002 return HTTPRequestMethodOriginalKey.String(val)
8003 }
8004
8005 // HTTPRequestResendCount returns an attribute KeyValue conforming to the
8006 // "http.request.resend_count" semantic conventions. It represents the ordinal
8007 // number of request resending attempt (for any reason, including redirects).
8008 func HTTPRequestResendCount(val int) attribute.KeyValue {
8009 return HTTPRequestResendCountKey.Int(val)
8010 }
8011
8012 // HTTPRequestSize returns an attribute KeyValue conforming to the
8013 // "http.request.size" semantic conventions. It represents the total size of the
8014 // request in bytes. This should be the total number of bytes sent over the wire,
8015 // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
8016 // and request body if any.
8017 func HTTPRequestSize(val int) attribute.KeyValue {
8018 return HTTPRequestSizeKey.Int(val)
8019 }
8020
8021 // HTTPResponseBodySize returns an attribute KeyValue conforming to the
8022 // "http.response.body.size" semantic conventions. It represents the size of the
8023 // response payload body in bytes. This is the number of bytes transferred
8024 // excluding headers and is often, but not always, present as the
8025 // [Content-Length] header. For requests using transport encoding, this should be
8026 // the compressed size.
8027 //
8028 // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
8029 func HTTPResponseBodySize(val int) attribute.KeyValue {
8030 return HTTPResponseBodySizeKey.Int(val)
8031 }
8032
8033 // HTTPResponseHeader returns an attribute KeyValue conforming to the
8034 // "http.response.header" semantic conventions. It represents the HTTP response
8035 // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
8036 // being the header values.
8037 func HTTPResponseHeader(key string, val ...string) attribute.KeyValue {
8038 return attribute.StringSlice("http.response.header."+key, val)
8039 }
8040
8041 // HTTPResponseSize returns an attribute KeyValue conforming to the
8042 // "http.response.size" semantic conventions. It represents the total size of the
8043 // response in bytes. This should be the total number of bytes sent over the
8044 // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
8045 // headers, and response body and trailers if any.
8046 func HTTPResponseSize(val int) attribute.KeyValue {
8047 return HTTPResponseSizeKey.Int(val)
8048 }
8049
8050 // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
8051 // "http.response.status_code" semantic conventions. It represents the
8052 // [HTTP response status code].
8053 //
8054 // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
8055 func HTTPResponseStatusCode(val int) attribute.KeyValue {
8056 return HTTPResponseStatusCodeKey.Int(val)
8057 }
8058
8059 // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
8060 // semantic conventions. It represents the matched route template for the
8061 // request. This MUST be low-cardinality and include all static path segments,
8062 // with dynamic path segments represented with placeholders.
8063 func HTTPRoute(val string) attribute.KeyValue {
8064 return HTTPRouteKey.String(val)
8065 }
8066
8067 // Enum values for http.connection.state
8068 var (
8069 // active state.
8070 // Stability: development
8071 HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
8072 // idle state.
8073 // Stability: development
8074 HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
8075 )
8076
8077 // Enum values for http.request.method
8078 var (
8079 // CONNECT method.
8080 // Stability: stable
8081 HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
8082 // DELETE method.
8083 // Stability: stable
8084 HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
8085 // GET method.
8086 // Stability: stable
8087 HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
8088 // HEAD method.
8089 // Stability: stable
8090 HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
8091 // OPTIONS method.
8092 // Stability: stable
8093 HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
8094 // PATCH method.
8095 // Stability: stable
8096 HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
8097 // POST method.
8098 // Stability: stable
8099 HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
8100 // PUT method.
8101 // Stability: stable
8102 HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
8103 // TRACE method.
8104 // Stability: stable
8105 HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
8106 // QUERY method.
8107 // Stability: development
8108 HTTPRequestMethodQuery = HTTPRequestMethodKey.String("QUERY")
8109 // Any HTTP method that the instrumentation has no prior knowledge of.
8110 // Stability: stable
8111 HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
8112 )
8113
8114 // Namespace: hw
8115 const (
8116 // HwBatteryCapacityKey is the attribute Key conforming to the
8117 // "hw.battery.capacity" semantic conventions. It represents the design capacity
8118 // in Watts-hours or Amper-hours.
8119 //
8120 // Type: string
8121 // RequirementLevel: Recommended
8122 // Stability: Development
8123 //
8124 // Examples: "9.3Ah", "50Wh"
8125 HwBatteryCapacityKey = attribute.Key("hw.battery.capacity")
8126
8127 // HwBatteryChemistryKey is the attribute Key conforming to the
8128 // "hw.battery.chemistry" semantic conventions. It represents the battery
8129 // [chemistry], e.g. Lithium-Ion, Nickel-Cadmium, etc.
8130 //
8131 // Type: string
8132 // RequirementLevel: Recommended
8133 // Stability: Development
8134 //
8135 // Examples: "Li-ion", "NiMH"
8136 //
8137 // [chemistry]: https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html
8138 HwBatteryChemistryKey = attribute.Key("hw.battery.chemistry")
8139
8140 // HwBatteryStateKey is the attribute Key conforming to the "hw.battery.state"
8141 // semantic conventions. It represents the current state of the battery.
8142 //
8143 // Type: Enum
8144 // RequirementLevel: Recommended
8145 // Stability: Development
8146 //
8147 // Examples:
8148 HwBatteryStateKey = attribute.Key("hw.battery.state")
8149
8150 // HwBiosVersionKey is the attribute Key conforming to the "hw.bios_version"
8151 // semantic conventions. It represents the BIOS version of the hardware
8152 // component.
8153 //
8154 // Type: string
8155 // RequirementLevel: Recommended
8156 // Stability: Development
8157 //
8158 // Examples: "1.2.3"
8159 HwBiosVersionKey = attribute.Key("hw.bios_version")
8160
8161 // HwDriverVersionKey is the attribute Key conforming to the "hw.driver_version"
8162 // semantic conventions. It represents the driver version for the hardware
8163 // component.
8164 //
8165 // Type: string
8166 // RequirementLevel: Recommended
8167 // Stability: Development
8168 //
8169 // Examples: "10.2.1-3"
8170 HwDriverVersionKey = attribute.Key("hw.driver_version")
8171
8172 // HwEnclosureTypeKey is the attribute Key conforming to the "hw.enclosure.type"
8173 // semantic conventions. It represents the type of the enclosure (useful for
8174 // modular systems).
8175 //
8176 // Type: string
8177 // RequirementLevel: Recommended
8178 // Stability: Development
8179 //
8180 // Examples: "Computer", "Storage", "Switch"
8181 HwEnclosureTypeKey = attribute.Key("hw.enclosure.type")
8182
8183 // HwFirmwareVersionKey is the attribute Key conforming to the
8184 // "hw.firmware_version" semantic conventions. It represents the firmware
8185 // version of the hardware component.
8186 //
8187 // Type: string
8188 // RequirementLevel: Recommended
8189 // Stability: Development
8190 //
8191 // Examples: "2.0.1"
8192 HwFirmwareVersionKey = attribute.Key("hw.firmware_version")
8193
8194 // HwGpuTaskKey is the attribute Key conforming to the "hw.gpu.task" semantic
8195 // conventions. It represents the type of task the GPU is performing.
8196 //
8197 // Type: Enum
8198 // RequirementLevel: Recommended
8199 // Stability: Development
8200 //
8201 // Examples:
8202 HwGpuTaskKey = attribute.Key("hw.gpu.task")
8203
8204 // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
8205 // It represents an identifier for the hardware component, unique within the
8206 // monitored host.
8207 //
8208 // Type: string
8209 // RequirementLevel: Recommended
8210 // Stability: Development
8211 //
8212 // Examples: "win32battery_battery_testsysa33_1"
8213 HwIDKey = attribute.Key("hw.id")
8214
8215 // HwLimitTypeKey is the attribute Key conforming to the "hw.limit_type"
8216 // semantic conventions. It represents the type of limit for hardware
8217 // components.
8218 //
8219 // Type: Enum
8220 // RequirementLevel: Recommended
8221 // Stability: Development
8222 //
8223 // Examples:
8224 HwLimitTypeKey = attribute.Key("hw.limit_type")
8225
8226 // HwLogicalDiskRaidLevelKey is the attribute Key conforming to the
8227 // "hw.logical_disk.raid_level" semantic conventions. It represents the RAID
8228 // Level of the logical disk.
8229 //
8230 // Type: string
8231 // RequirementLevel: Recommended
8232 // Stability: Development
8233 //
8234 // Examples: "RAID0+1", "RAID5", "RAID10"
8235 HwLogicalDiskRaidLevelKey = attribute.Key("hw.logical_disk.raid_level")
8236
8237 // HwLogicalDiskStateKey is the attribute Key conforming to the
8238 // "hw.logical_disk.state" semantic conventions. It represents the state of the
8239 // logical disk space usage.
8240 //
8241 // Type: Enum
8242 // RequirementLevel: Recommended
8243 // Stability: Development
8244 //
8245 // Examples:
8246 HwLogicalDiskStateKey = attribute.Key("hw.logical_disk.state")
8247
8248 // HwMemoryTypeKey is the attribute Key conforming to the "hw.memory.type"
8249 // semantic conventions. It represents the type of the memory module.
8250 //
8251 // Type: string
8252 // RequirementLevel: Recommended
8253 // Stability: Development
8254 //
8255 // Examples: "DDR4", "DDR5", "LPDDR5"
8256 HwMemoryTypeKey = attribute.Key("hw.memory.type")
8257
8258 // HwModelKey is the attribute Key conforming to the "hw.model" semantic
8259 // conventions. It represents the descriptive model name of the hardware
8260 // component.
8261 //
8262 // Type: string
8263 // RequirementLevel: Recommended
8264 // Stability: Development
8265 //
8266 // Examples: "PERC H740P", "Intel(R) Core(TM) i7-10700K", "Dell XPS 15 Battery"
8267 HwModelKey = attribute.Key("hw.model")
8268
8269 // HwNameKey is the attribute Key conforming to the "hw.name" semantic
8270 // conventions. It represents an easily-recognizable name for the hardware
8271 // component.
8272 //
8273 // Type: string
8274 // RequirementLevel: Recommended
8275 // Stability: Development
8276 //
8277 // Examples: "eth0"
8278 HwNameKey = attribute.Key("hw.name")
8279
8280 // HwNetworkLogicalAddressesKey is the attribute Key conforming to the
8281 // "hw.network.logical_addresses" semantic conventions. It represents the
8282 // logical addresses of the adapter (e.g. IP address, or WWPN).
8283 //
8284 // Type: string[]
8285 // RequirementLevel: Recommended
8286 // Stability: Development
8287 //
8288 // Examples: "172.16.8.21", "57.11.193.42"
8289 HwNetworkLogicalAddressesKey = attribute.Key("hw.network.logical_addresses")
8290
8291 // HwNetworkPhysicalAddressKey is the attribute Key conforming to the
8292 // "hw.network.physical_address" semantic conventions. It represents the
8293 // physical address of the adapter (e.g. MAC address, or WWNN).
8294 //
8295 // Type: string
8296 // RequirementLevel: Recommended
8297 // Stability: Development
8298 //
8299 // Examples: "00-90-F5-E9-7B-36"
8300 HwNetworkPhysicalAddressKey = attribute.Key("hw.network.physical_address")
8301
8302 // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
8303 // conventions. It represents the unique identifier of the parent component
8304 // (typically the `hw.id` attribute of the enclosure, or disk controller).
8305 //
8306 // Type: string
8307 // RequirementLevel: Recommended
8308 // Stability: Development
8309 //
8310 // Examples: "dellStorage_perc_0"
8311 HwParentKey = attribute.Key("hw.parent")
8312
8313 // HwPhysicalDiskSmartAttributeKey is the attribute Key conforming to the
8314 // "hw.physical_disk.smart_attribute" semantic conventions. It represents the
8315 // [S.M.A.R.T.] (Self-Monitoring, Analysis, and Reporting Technology) attribute
8316 // of the physical disk.
8317 //
8318 // Type: string
8319 // RequirementLevel: Recommended
8320 // Stability: Development
8321 //
8322 // Examples: "Spin Retry Count", "Seek Error Rate", "Raw Read Error Rate"
8323 //
8324 // [S.M.A.R.T.]: https://wikipedia.org/wiki/S.M.A.R.T.
8325 HwPhysicalDiskSmartAttributeKey = attribute.Key("hw.physical_disk.smart_attribute")
8326
8327 // HwPhysicalDiskStateKey is the attribute Key conforming to the
8328 // "hw.physical_disk.state" semantic conventions. It represents the state of the
8329 // physical disk endurance utilization.
8330 //
8331 // Type: Enum
8332 // RequirementLevel: Recommended
8333 // Stability: Development
8334 //
8335 // Examples:
8336 HwPhysicalDiskStateKey = attribute.Key("hw.physical_disk.state")
8337
8338 // HwPhysicalDiskTypeKey is the attribute Key conforming to the
8339 // "hw.physical_disk.type" semantic conventions. It represents the type of the
8340 // physical disk.
8341 //
8342 // Type: string
8343 // RequirementLevel: Recommended
8344 // Stability: Development
8345 //
8346 // Examples: "HDD", "SSD", "10K"
8347 HwPhysicalDiskTypeKey = attribute.Key("hw.physical_disk.type")
8348
8349 // HwSensorLocationKey is the attribute Key conforming to the
8350 // "hw.sensor_location" semantic conventions. It represents the location of the
8351 // sensor.
8352 //
8353 // Type: string
8354 // RequirementLevel: Recommended
8355 // Stability: Development
8356 //
8357 // Examples: "cpu0", "ps1", "INLET", "CPU0_DIE", "AMBIENT", "MOTHERBOARD", "PS0
8358 // V3_3", "MAIN_12V", "CPU_VCORE"
8359 HwSensorLocationKey = attribute.Key("hw.sensor_location")
8360
8361 // HwSerialNumberKey is the attribute Key conforming to the "hw.serial_number"
8362 // semantic conventions. It represents the serial number of the hardware
8363 // component.
8364 //
8365 // Type: string
8366 // RequirementLevel: Recommended
8367 // Stability: Development
8368 //
8369 // Examples: "CNFCP0123456789"
8370 HwSerialNumberKey = attribute.Key("hw.serial_number")
8371
8372 // HwStateKey is the attribute Key conforming to the "hw.state" semantic
8373 // conventions. It represents the current state of the component.
8374 //
8375 // Type: Enum
8376 // RequirementLevel: Recommended
8377 // Stability: Development
8378 //
8379 // Examples:
8380 HwStateKey = attribute.Key("hw.state")
8381
8382 // HwTapeDriveOperationTypeKey is the attribute Key conforming to the
8383 // "hw.tape_drive.operation_type" semantic conventions. It represents the type
8384 // of tape drive operation.
8385 //
8386 // Type: Enum
8387 // RequirementLevel: Recommended
8388 // Stability: Development
8389 //
8390 // Examples:
8391 HwTapeDriveOperationTypeKey = attribute.Key("hw.tape_drive.operation_type")
8392
8393 // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
8394 // conventions. It represents the type of the component.
8395 //
8396 // Type: Enum
8397 // RequirementLevel: Recommended
8398 // Stability: Development
8399 //
8400 // Examples:
8401 // Note: Describes the category of the hardware component for which `hw.state`
8402 // is being reported. For example, `hw.type=temperature` along with
8403 // `hw.state=degraded` would indicate that the temperature of the hardware
8404 // component has been reported as `degraded`.
8405 HwTypeKey = attribute.Key("hw.type")
8406
8407 // HwVendorKey is the attribute Key conforming to the "hw.vendor" semantic
8408 // conventions. It represents the vendor name of the hardware component.
8409 //
8410 // Type: string
8411 // RequirementLevel: Recommended
8412 // Stability: Development
8413 //
8414 // Examples: "Dell", "HP", "Intel", "AMD", "LSI", "Lenovo"
8415 HwVendorKey = attribute.Key("hw.vendor")
8416 )
8417
8418 // HwBatteryCapacity returns an attribute KeyValue conforming to the
8419 // "hw.battery.capacity" semantic conventions. It represents the design capacity
8420 // in Watts-hours or Amper-hours.
8421 func HwBatteryCapacity(val string) attribute.KeyValue {
8422 return HwBatteryCapacityKey.String(val)
8423 }
8424
8425 // HwBatteryChemistry returns an attribute KeyValue conforming to the
8426 // "hw.battery.chemistry" semantic conventions. It represents the battery
8427 // [chemistry], e.g. Lithium-Ion, Nickel-Cadmium, etc.
8428 //
8429 // [chemistry]: https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html
8430 func HwBatteryChemistry(val string) attribute.KeyValue {
8431 return HwBatteryChemistryKey.String(val)
8432 }
8433
8434 // HwBiosVersion returns an attribute KeyValue conforming to the
8435 // "hw.bios_version" semantic conventions. It represents the BIOS version of the
8436 // hardware component.
8437 func HwBiosVersion(val string) attribute.KeyValue {
8438 return HwBiosVersionKey.String(val)
8439 }
8440
8441 // HwDriverVersion returns an attribute KeyValue conforming to the
8442 // "hw.driver_version" semantic conventions. It represents the driver version for
8443 // the hardware component.
8444 func HwDriverVersion(val string) attribute.KeyValue {
8445 return HwDriverVersionKey.String(val)
8446 }
8447
8448 // HwEnclosureType returns an attribute KeyValue conforming to the
8449 // "hw.enclosure.type" semantic conventions. It represents the type of the
8450 // enclosure (useful for modular systems).
8451 func HwEnclosureType(val string) attribute.KeyValue {
8452 return HwEnclosureTypeKey.String(val)
8453 }
8454
8455 // HwFirmwareVersion returns an attribute KeyValue conforming to the
8456 // "hw.firmware_version" semantic conventions. It represents the firmware version
8457 // of the hardware component.
8458 func HwFirmwareVersion(val string) attribute.KeyValue {
8459 return HwFirmwareVersionKey.String(val)
8460 }
8461
8462 // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
8463 // conventions. It represents an identifier for the hardware component, unique
8464 // within the monitored host.
8465 func HwID(val string) attribute.KeyValue {
8466 return HwIDKey.String(val)
8467 }
8468
8469 // HwLogicalDiskRaidLevel returns an attribute KeyValue conforming to the
8470 // "hw.logical_disk.raid_level" semantic conventions. It represents the RAID
8471 // Level of the logical disk.
8472 func HwLogicalDiskRaidLevel(val string) attribute.KeyValue {
8473 return HwLogicalDiskRaidLevelKey.String(val)
8474 }
8475
8476 // HwMemoryType returns an attribute KeyValue conforming to the "hw.memory.type"
8477 // semantic conventions. It represents the type of the memory module.
8478 func HwMemoryType(val string) attribute.KeyValue {
8479 return HwMemoryTypeKey.String(val)
8480 }
8481
8482 // HwModel returns an attribute KeyValue conforming to the "hw.model" semantic
8483 // conventions. It represents the descriptive model name of the hardware
8484 // component.
8485 func HwModel(val string) attribute.KeyValue {
8486 return HwModelKey.String(val)
8487 }
8488
8489 // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
8490 // conventions. It represents an easily-recognizable name for the hardware
8491 // component.
8492 func HwName(val string) attribute.KeyValue {
8493 return HwNameKey.String(val)
8494 }
8495
8496 // HwNetworkLogicalAddresses returns an attribute KeyValue conforming to the
8497 // "hw.network.logical_addresses" semantic conventions. It represents the logical
8498 // addresses of the adapter (e.g. IP address, or WWPN).
8499 func HwNetworkLogicalAddresses(val ...string) attribute.KeyValue {
8500 return HwNetworkLogicalAddressesKey.StringSlice(val)
8501 }
8502
8503 // HwNetworkPhysicalAddress returns an attribute KeyValue conforming to the
8504 // "hw.network.physical_address" semantic conventions. It represents the physical
8505 // address of the adapter (e.g. MAC address, or WWNN).
8506 func HwNetworkPhysicalAddress(val string) attribute.KeyValue {
8507 return HwNetworkPhysicalAddressKey.String(val)
8508 }
8509
8510 // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
8511 // conventions. It represents the unique identifier of the parent component
8512 // (typically the `hw.id` attribute of the enclosure, or disk controller).
8513 func HwParent(val string) attribute.KeyValue {
8514 return HwParentKey.String(val)
8515 }
8516
8517 // HwPhysicalDiskSmartAttribute returns an attribute KeyValue conforming to the
8518 // "hw.physical_disk.smart_attribute" semantic conventions. It represents the
8519 // [S.M.A.R.T.] (Self-Monitoring, Analysis, and Reporting Technology) attribute
8520 // of the physical disk.
8521 //
8522 // [S.M.A.R.T.]: https://wikipedia.org/wiki/S.M.A.R.T.
8523 func HwPhysicalDiskSmartAttribute(val string) attribute.KeyValue {
8524 return HwPhysicalDiskSmartAttributeKey.String(val)
8525 }
8526
8527 // HwPhysicalDiskType returns an attribute KeyValue conforming to the
8528 // "hw.physical_disk.type" semantic conventions. It represents the type of the
8529 // physical disk.
8530 func HwPhysicalDiskType(val string) attribute.KeyValue {
8531 return HwPhysicalDiskTypeKey.String(val)
8532 }
8533
8534 // HwSensorLocation returns an attribute KeyValue conforming to the
8535 // "hw.sensor_location" semantic conventions. It represents the location of the
8536 // sensor.
8537 func HwSensorLocation(val string) attribute.KeyValue {
8538 return HwSensorLocationKey.String(val)
8539 }
8540
8541 // HwSerialNumber returns an attribute KeyValue conforming to the
8542 // "hw.serial_number" semantic conventions. It represents the serial number of
8543 // the hardware component.
8544 func HwSerialNumber(val string) attribute.KeyValue {
8545 return HwSerialNumberKey.String(val)
8546 }
8547
8548 // HwVendor returns an attribute KeyValue conforming to the "hw.vendor" semantic
8549 // conventions. It represents the vendor name of the hardware component.
8550 func HwVendor(val string) attribute.KeyValue {
8551 return HwVendorKey.String(val)
8552 }
8553
8554 // Enum values for hw.battery.state
8555 var (
8556 // Charging
8557 // Stability: development
8558 HwBatteryStateCharging = HwBatteryStateKey.String("charging")
8559 // Discharging
8560 // Stability: development
8561 HwBatteryStateDischarging = HwBatteryStateKey.String("discharging")
8562 )
8563
8564 // Enum values for hw.gpu.task
8565 var (
8566 // Decoder
8567 // Stability: development
8568 HwGpuTaskDecoder = HwGpuTaskKey.String("decoder")
8569 // Encoder
8570 // Stability: development
8571 HwGpuTaskEncoder = HwGpuTaskKey.String("encoder")
8572 // General
8573 // Stability: development
8574 HwGpuTaskGeneral = HwGpuTaskKey.String("general")
8575 )
8576
8577 // Enum values for hw.limit_type
8578 var (
8579 // Critical
8580 // Stability: development
8581 HwLimitTypeCritical = HwLimitTypeKey.String("critical")
8582 // Degraded
8583 // Stability: development
8584 HwLimitTypeDegraded = HwLimitTypeKey.String("degraded")
8585 // High Critical
8586 // Stability: development
8587 HwLimitTypeHighCritical = HwLimitTypeKey.String("high.critical")
8588 // High Degraded
8589 // Stability: development
8590 HwLimitTypeHighDegraded = HwLimitTypeKey.String("high.degraded")
8591 // Low Critical
8592 // Stability: development
8593 HwLimitTypeLowCritical = HwLimitTypeKey.String("low.critical")
8594 // Low Degraded
8595 // Stability: development
8596 HwLimitTypeLowDegraded = HwLimitTypeKey.String("low.degraded")
8597 // Maximum
8598 // Stability: development
8599 HwLimitTypeMax = HwLimitTypeKey.String("max")
8600 // Throttled
8601 // Stability: development
8602 HwLimitTypeThrottled = HwLimitTypeKey.String("throttled")
8603 // Turbo
8604 // Stability: development
8605 HwLimitTypeTurbo = HwLimitTypeKey.String("turbo")
8606 )
8607
8608 // Enum values for hw.logical_disk.state
8609 var (
8610 // Used
8611 // Stability: development
8612 HwLogicalDiskStateUsed = HwLogicalDiskStateKey.String("used")
8613 // Free
8614 // Stability: development
8615 HwLogicalDiskStateFree = HwLogicalDiskStateKey.String("free")
8616 )
8617
8618 // Enum values for hw.physical_disk.state
8619 var (
8620 // Remaining
8621 // Stability: development
8622 HwPhysicalDiskStateRemaining = HwPhysicalDiskStateKey.String("remaining")
8623 )
8624
8625 // Enum values for hw.state
8626 var (
8627 // Degraded
8628 // Stability: development
8629 HwStateDegraded = HwStateKey.String("degraded")
8630 // Failed
8631 // Stability: development
8632 HwStateFailed = HwStateKey.String("failed")
8633 // Needs Cleaning
8634 // Stability: development
8635 HwStateNeedsCleaning = HwStateKey.String("needs_cleaning")
8636 // OK
8637 // Stability: development
8638 HwStateOk = HwStateKey.String("ok")
8639 // Predicted Failure
8640 // Stability: development
8641 HwStatePredictedFailure = HwStateKey.String("predicted_failure")
8642 )
8643
8644 // Enum values for hw.tape_drive.operation_type
8645 var (
8646 // Mount
8647 // Stability: development
8648 HwTapeDriveOperationTypeMount = HwTapeDriveOperationTypeKey.String("mount")
8649 // Unmount
8650 // Stability: development
8651 HwTapeDriveOperationTypeUnmount = HwTapeDriveOperationTypeKey.String("unmount")
8652 // Clean
8653 // Stability: development
8654 HwTapeDriveOperationTypeClean = HwTapeDriveOperationTypeKey.String("clean")
8655 )
8656
8657 // Enum values for hw.type
8658 var (
8659 // Battery
8660 // Stability: development
8661 HwTypeBattery = HwTypeKey.String("battery")
8662 // CPU
8663 // Stability: development
8664 HwTypeCPU = HwTypeKey.String("cpu")
8665 // Disk controller
8666 // Stability: development
8667 HwTypeDiskController = HwTypeKey.String("disk_controller")
8668 // Enclosure
8669 // Stability: development
8670 HwTypeEnclosure = HwTypeKey.String("enclosure")
8671 // Fan
8672 // Stability: development
8673 HwTypeFan = HwTypeKey.String("fan")
8674 // GPU
8675 // Stability: development
8676 HwTypeGpu = HwTypeKey.String("gpu")
8677 // Logical disk
8678 // Stability: development
8679 HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
8680 // Memory
8681 // Stability: development
8682 HwTypeMemory = HwTypeKey.String("memory")
8683 // Network
8684 // Stability: development
8685 HwTypeNetwork = HwTypeKey.String("network")
8686 // Physical disk
8687 // Stability: development
8688 HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
8689 // Power supply
8690 // Stability: development
8691 HwTypePowerSupply = HwTypeKey.String("power_supply")
8692 // Tape drive
8693 // Stability: development
8694 HwTypeTapeDrive = HwTypeKey.String("tape_drive")
8695 // Temperature
8696 // Stability: development
8697 HwTypeTemperature = HwTypeKey.String("temperature")
8698 // Voltage
8699 // Stability: development
8700 HwTypeVoltage = HwTypeKey.String("voltage")
8701 )
8702
8703 // Namespace: ios
8704 const (
8705 // IOSAppStateKey is the attribute Key conforming to the "ios.app.state"
8706 // semantic conventions. It represents the this attribute represents the state
8707 // of the application.
8708 //
8709 // Type: Enum
8710 // RequirementLevel: Recommended
8711 // Stability: Development
8712 //
8713 // Examples:
8714 // Note: The iOS lifecycle states are defined in the
8715 // [UIApplicationDelegate documentation], and from which the `OS terminology`
8716 // column values are derived.
8717 //
8718 // [UIApplicationDelegate documentation]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate
8719 IOSAppStateKey = attribute.Key("ios.app.state")
8720 )
8721
8722 // Enum values for ios.app.state
8723 var (
8724 // The app has become `active`. Associated with UIKit notification
8725 // `applicationDidBecomeActive`.
8726 //
8727 // Stability: development
8728 IOSAppStateActive = IOSAppStateKey.String("active")
8729 // The app is now `inactive`. Associated with UIKit notification
8730 // `applicationWillResignActive`.
8731 //
8732 // Stability: development
8733 IOSAppStateInactive = IOSAppStateKey.String("inactive")
8734 // The app is now in the background. This value is associated with UIKit
8735 // notification `applicationDidEnterBackground`.
8736 //
8737 // Stability: development
8738 IOSAppStateBackground = IOSAppStateKey.String("background")
8739 // The app is now in the foreground. This value is associated with UIKit
8740 // notification `applicationWillEnterForeground`.
8741 //
8742 // Stability: development
8743 IOSAppStateForeground = IOSAppStateKey.String("foreground")
8744 // The app is about to terminate. Associated with UIKit notification
8745 // `applicationWillTerminate`.
8746 //
8747 // Stability: development
8748 IOSAppStateTerminate = IOSAppStateKey.String("terminate")
8749 )
8750
8751 // Namespace: k8s
8752 const (
8753 // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
8754 // semantic conventions. It represents the name of the cluster.
8755 //
8756 // Type: string
8757 // RequirementLevel: Recommended
8758 // Stability: Development
8759 //
8760 // Examples: "opentelemetry-cluster"
8761 K8SClusterNameKey = attribute.Key("k8s.cluster.name")
8762
8763 // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
8764 // semantic conventions. It represents a pseudo-ID for the cluster, set to the
8765 // UID of the `kube-system` namespace.
8766 //
8767 // Type: string
8768 // RequirementLevel: Recommended
8769 // Stability: Development
8770 //
8771 // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
8772 // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
8773 // added, we will recommend collecting the `k8s.cluster.uid` through the
8774 // official APIs. In the meantime, we are able to use the `uid` of the
8775 // `kube-system` namespace as a proxy for cluster ID. Read on for the
8776 // rationale.
8777 //
8778 // Every object created in a K8s cluster is assigned a distinct UID. The
8779 // `kube-system` namespace is used by Kubernetes itself and will exist
8780 // for the lifetime of the cluster. Using the `uid` of the `kube-system`
8781 // namespace is a reasonable proxy for the K8s ClusterID as it will only
8782 // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
8783 // UUIDs as standardized by
8784 // [ISO/IEC 9834-8 and ITU-T X.667].
8785 // Which states:
8786 //
8787 // > If generated according to one of the mechanisms defined in Rec.
8788 // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
8789 // > different from all other UUIDs generated before 3603 A.D., or is
8790 // > extremely likely to be different (depending on the mechanism chosen).
8791 //
8792 // Therefore, UIDs between clusters should be extremely unlikely to
8793 // conflict.
8794 //
8795 // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
8796 K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
8797
8798 // K8SContainerNameKey is the attribute Key conforming to the
8799 // "k8s.container.name" semantic conventions. It represents the name of the
8800 // Container from Pod specification, must be unique within a Pod. Container
8801 // runtime usually uses different globally unique name (`container.name`).
8802 //
8803 // Type: string
8804 // RequirementLevel: Recommended
8805 // Stability: Development
8806 //
8807 // Examples: "redis"
8808 K8SContainerNameKey = attribute.Key("k8s.container.name")
8809
8810 // K8SContainerRestartCountKey is the attribute Key conforming to the
8811 // "k8s.container.restart_count" semantic conventions. It represents the number
8812 // of times the container was restarted. This attribute can be used to identify
8813 // a particular container (running or stopped) within a container spec.
8814 //
8815 // Type: int
8816 // RequirementLevel: Recommended
8817 // Stability: Development
8818 //
8819 // Examples:
8820 K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
8821
8822 // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
8823 // the "k8s.container.status.last_terminated_reason" semantic conventions. It
8824 // represents the last terminated reason of the Container.
8825 //
8826 // Type: string
8827 // RequirementLevel: Recommended
8828 // Stability: Development
8829 //
8830 // Examples: "Evicted", "Error"
8831 K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
8832
8833 // K8SContainerStatusReasonKey is the attribute Key conforming to the
8834 // "k8s.container.status.reason" semantic conventions. It represents the reason
8835 // for the container state. Corresponds to the `reason` field of the:
8836 // [K8s ContainerStateWaiting] or [K8s ContainerStateTerminated].
8837 //
8838 // Type: Enum
8839 // RequirementLevel: Recommended
8840 // Stability: Development
8841 //
8842 // Examples: "ContainerCreating", "CrashLoopBackOff",
8843 // "CreateContainerConfigError", "ErrImagePull", "ImagePullBackOff",
8844 // "OOMKilled", "Completed", "Error", "ContainerCannotRun"
8845 //
8846 // [K8s ContainerStateWaiting]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstatewaiting-v1-core
8847 // [K8s ContainerStateTerminated]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstateterminated-v1-core
8848 K8SContainerStatusReasonKey = attribute.Key("k8s.container.status.reason")
8849
8850 // K8SContainerStatusStateKey is the attribute Key conforming to the
8851 // "k8s.container.status.state" semantic conventions. It represents the state of
8852 // the container. [K8s ContainerState].
8853 //
8854 // Type: Enum
8855 // RequirementLevel: Recommended
8856 // Stability: Development
8857 //
8858 // Examples: "terminated", "running", "waiting"
8859 //
8860 // [K8s ContainerState]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstate-v1-core
8861 K8SContainerStatusStateKey = attribute.Key("k8s.container.status.state")
8862
8863 // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
8864 // semantic conventions. It represents the name of the CronJob.
8865 //
8866 // Type: string
8867 // RequirementLevel: Recommended
8868 // Stability: Development
8869 //
8870 // Examples: "opentelemetry"
8871 K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
8872
8873 // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
8874 // semantic conventions. It represents the UID of the CronJob.
8875 //
8876 // Type: string
8877 // RequirementLevel: Recommended
8878 // Stability: Development
8879 //
8880 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8881 K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
8882
8883 // K8SDaemonSetNameKey is the attribute Key conforming to the
8884 // "k8s.daemonset.name" semantic conventions. It represents the name of the
8885 // DaemonSet.
8886 //
8887 // Type: string
8888 // RequirementLevel: Recommended
8889 // Stability: Development
8890 //
8891 // Examples: "opentelemetry"
8892 K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
8893
8894 // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
8895 // semantic conventions. It represents the UID of the DaemonSet.
8896 //
8897 // Type: string
8898 // RequirementLevel: Recommended
8899 // Stability: Development
8900 //
8901 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8902 K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
8903
8904 // K8SDeploymentNameKey is the attribute Key conforming to the
8905 // "k8s.deployment.name" semantic conventions. It represents the name of the
8906 // Deployment.
8907 //
8908 // Type: string
8909 // RequirementLevel: Recommended
8910 // Stability: Development
8911 //
8912 // Examples: "opentelemetry"
8913 K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
8914
8915 // K8SDeploymentUIDKey is the attribute Key conforming to the
8916 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
8917 // Deployment.
8918 //
8919 // Type: string
8920 // RequirementLevel: Recommended
8921 // Stability: Development
8922 //
8923 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8924 K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
8925
8926 // K8SHPAMetricTypeKey is the attribute Key conforming to the
8927 // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
8928 // source for the horizontal pod autoscaler.
8929 //
8930 // Type: string
8931 // RequirementLevel: Recommended
8932 // Stability: Development
8933 //
8934 // Examples: "Resource", "ContainerResource"
8935 // Note: This attribute reflects the `type` field of spec.metrics[] in the HPA.
8936 K8SHPAMetricTypeKey = attribute.Key("k8s.hpa.metric.type")
8937
8938 // K8SHPANameKey is the attribute Key conforming to the "k8s.hpa.name" semantic
8939 // conventions. It represents the name of the horizontal pod autoscaler.
8940 //
8941 // Type: string
8942 // RequirementLevel: Recommended
8943 // Stability: Development
8944 //
8945 // Examples: "opentelemetry"
8946 K8SHPANameKey = attribute.Key("k8s.hpa.name")
8947
8948 // K8SHPAScaletargetrefAPIVersionKey is the attribute Key conforming to the
8949 // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
8950 // API version of the target resource to scale for the HorizontalPodAutoscaler.
8951 //
8952 // Type: string
8953 // RequirementLevel: Recommended
8954 // Stability: Development
8955 //
8956 // Examples: "apps/v1", "autoscaling/v2"
8957 // Note: This maps to the `apiVersion` field in the `scaleTargetRef` of the HPA
8958 // spec.
8959 K8SHPAScaletargetrefAPIVersionKey = attribute.Key("k8s.hpa.scaletargetref.api_version")
8960
8961 // K8SHPAScaletargetrefKindKey is the attribute Key conforming to the
8962 // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
8963 // the target resource to scale for the HorizontalPodAutoscaler.
8964 //
8965 // Type: string
8966 // RequirementLevel: Recommended
8967 // Stability: Development
8968 //
8969 // Examples: "Deployment", "StatefulSet"
8970 // Note: This maps to the `kind` field in the `scaleTargetRef` of the HPA spec.
8971 K8SHPAScaletargetrefKindKey = attribute.Key("k8s.hpa.scaletargetref.kind")
8972
8973 // K8SHPAScaletargetrefNameKey is the attribute Key conforming to the
8974 // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
8975 // the target resource to scale for the HorizontalPodAutoscaler.
8976 //
8977 // Type: string
8978 // RequirementLevel: Recommended
8979 // Stability: Development
8980 //
8981 // Examples: "my-deployment", "my-statefulset"
8982 // Note: This maps to the `name` field in the `scaleTargetRef` of the HPA spec.
8983 K8SHPAScaletargetrefNameKey = attribute.Key("k8s.hpa.scaletargetref.name")
8984
8985 // K8SHPAUIDKey is the attribute Key conforming to the "k8s.hpa.uid" semantic
8986 // conventions. It represents the UID of the horizontal pod autoscaler.
8987 //
8988 // Type: string
8989 // RequirementLevel: Recommended
8990 // Stability: Development
8991 //
8992 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
8993 K8SHPAUIDKey = attribute.Key("k8s.hpa.uid")
8994
8995 // K8SHugepageSizeKey is the attribute Key conforming to the "k8s.hugepage.size"
8996 // semantic conventions. It represents the size (identifier) of the K8s huge
8997 // page.
8998 //
8999 // Type: string
9000 // RequirementLevel: Recommended
9001 // Stability: Development
9002 //
9003 // Examples: "2Mi"
9004 K8SHugepageSizeKey = attribute.Key("k8s.hugepage.size")
9005
9006 // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
9007 // conventions. It represents the name of the Job.
9008 //
9009 // Type: string
9010 // RequirementLevel: Recommended
9011 // Stability: Development
9012 //
9013 // Examples: "opentelemetry"
9014 K8SJobNameKey = attribute.Key("k8s.job.name")
9015
9016 // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
9017 // conventions. It represents the UID of the Job.
9018 //
9019 // Type: string
9020 // RequirementLevel: Recommended
9021 // Stability: Development
9022 //
9023 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9024 K8SJobUIDKey = attribute.Key("k8s.job.uid")
9025
9026 // K8SNamespaceNameKey is the attribute Key conforming to the
9027 // "k8s.namespace.name" semantic conventions. It represents the name of the
9028 // namespace that the pod is running in.
9029 //
9030 // Type: string
9031 // RequirementLevel: Recommended
9032 // Stability: Development
9033 //
9034 // Examples: "default"
9035 K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
9036
9037 // K8SNamespacePhaseKey is the attribute Key conforming to the
9038 // "k8s.namespace.phase" semantic conventions. It represents the phase of the
9039 // K8s namespace.
9040 //
9041 // Type: Enum
9042 // RequirementLevel: Recommended
9043 // Stability: Development
9044 //
9045 // Examples: "active", "terminating"
9046 // Note: This attribute aligns with the `phase` field of the
9047 // [K8s NamespaceStatus]
9048 //
9049 // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core
9050 K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase")
9051
9052 // K8SNodeConditionStatusKey is the attribute Key conforming to the
9053 // "k8s.node.condition.status" semantic conventions. It represents the status of
9054 // the condition, one of True, False, Unknown.
9055 //
9056 // Type: Enum
9057 // RequirementLevel: Recommended
9058 // Stability: Development
9059 //
9060 // Examples: "true", "false", "unknown"
9061 // Note: This attribute aligns with the `status` field of the
9062 // [NodeCondition]
9063 //
9064 // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
9065 K8SNodeConditionStatusKey = attribute.Key("k8s.node.condition.status")
9066
9067 // K8SNodeConditionTypeKey is the attribute Key conforming to the
9068 // "k8s.node.condition.type" semantic conventions. It represents the condition
9069 // type of a K8s Node.
9070 //
9071 // Type: Enum
9072 // RequirementLevel: Recommended
9073 // Stability: Development
9074 //
9075 // Examples: "Ready", "DiskPressure"
9076 // Note: K8s Node conditions as described
9077 // by [K8s documentation].
9078 //
9079 // This attribute aligns with the `type` field of the
9080 // [NodeCondition]
9081 //
9082 // The set of possible values is not limited to those listed here. Managed
9083 // Kubernetes environments,
9084 // or custom controllers MAY introduce additional node condition types.
9085 // When this occurs, the exact value as reported by the Kubernetes API SHOULD be
9086 // used.
9087 //
9088 // [K8s documentation]: https://v1-32.docs.kubernetes.io/docs/reference/node/node-status/#condition
9089 // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
9090 K8SNodeConditionTypeKey = attribute.Key("k8s.node.condition.type")
9091
9092 // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
9093 // semantic conventions. It represents the name of the Node.
9094 //
9095 // Type: string
9096 // RequirementLevel: Recommended
9097 // Stability: Development
9098 //
9099 // Examples: "node-1"
9100 K8SNodeNameKey = attribute.Key("k8s.node.name")
9101
9102 // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
9103 // conventions. It represents the UID of the Node.
9104 //
9105 // Type: string
9106 // RequirementLevel: Recommended
9107 // Stability: Development
9108 //
9109 // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
9110 K8SNodeUIDKey = attribute.Key("k8s.node.uid")
9111
9112 // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
9113 // conventions. It represents the name of the Pod.
9114 //
9115 // Type: string
9116 // RequirementLevel: Recommended
9117 // Stability: Development
9118 //
9119 // Examples: "opentelemetry-pod-autoconf"
9120 K8SPodNameKey = attribute.Key("k8s.pod.name")
9121
9122 // K8SPodStatusPhaseKey is the attribute Key conforming to the
9123 // "k8s.pod.status.phase" semantic conventions. It represents the phase for the
9124 // pod. Corresponds to the `phase` field of the: [K8s PodStatus].
9125 //
9126 // Type: Enum
9127 // RequirementLevel: Recommended
9128 // Stability: Development
9129 //
9130 // Examples: "Pending", "Running"
9131 //
9132 // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#podstatus-v1-core
9133 K8SPodStatusPhaseKey = attribute.Key("k8s.pod.status.phase")
9134
9135 // K8SPodStatusReasonKey is the attribute Key conforming to the
9136 // "k8s.pod.status.reason" semantic conventions. It represents the reason for
9137 // the pod state. Corresponds to the `reason` field of the: [K8s PodStatus].
9138 //
9139 // Type: Enum
9140 // RequirementLevel: Recommended
9141 // Stability: Development
9142 //
9143 // Examples: "Evicted", "NodeAffinity"
9144 //
9145 // [K8s PodStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#podstatus-v1-core
9146 K8SPodStatusReasonKey = attribute.Key("k8s.pod.status.reason")
9147
9148 // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
9149 // conventions. It represents the UID of the Pod.
9150 //
9151 // Type: string
9152 // RequirementLevel: Recommended
9153 // Stability: Development
9154 //
9155 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9156 K8SPodUIDKey = attribute.Key("k8s.pod.uid")
9157
9158 // K8SReplicaSetNameKey is the attribute Key conforming to the
9159 // "k8s.replicaset.name" semantic conventions. It represents the name of the
9160 // ReplicaSet.
9161 //
9162 // Type: string
9163 // RequirementLevel: Recommended
9164 // Stability: Development
9165 //
9166 // Examples: "opentelemetry"
9167 K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
9168
9169 // K8SReplicaSetUIDKey is the attribute Key conforming to the
9170 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
9171 // ReplicaSet.
9172 //
9173 // Type: string
9174 // RequirementLevel: Recommended
9175 // Stability: Development
9176 //
9177 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9178 K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
9179
9180 // K8SReplicationControllerNameKey is the attribute Key conforming to the
9181 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
9182 // of the replication controller.
9183 //
9184 // Type: string
9185 // RequirementLevel: Recommended
9186 // Stability: Development
9187 //
9188 // Examples: "opentelemetry"
9189 K8SReplicationControllerNameKey = attribute.Key("k8s.replicationcontroller.name")
9190
9191 // K8SReplicationControllerUIDKey is the attribute Key conforming to the
9192 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID
9193 // of the replication controller.
9194 //
9195 // Type: string
9196 // RequirementLevel: Recommended
9197 // Stability: Development
9198 //
9199 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9200 K8SReplicationControllerUIDKey = attribute.Key("k8s.replicationcontroller.uid")
9201
9202 // K8SResourceQuotaNameKey is the attribute Key conforming to the
9203 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
9204 // resource quota.
9205 //
9206 // Type: string
9207 // RequirementLevel: Recommended
9208 // Stability: Development
9209 //
9210 // Examples: "opentelemetry"
9211 K8SResourceQuotaNameKey = attribute.Key("k8s.resourcequota.name")
9212
9213 // K8SResourceQuotaResourceNameKey is the attribute Key conforming to the
9214 // "k8s.resourcequota.resource_name" semantic conventions. It represents the
9215 // name of the K8s resource a resource quota defines.
9216 //
9217 // Type: string
9218 // RequirementLevel: Recommended
9219 // Stability: Development
9220 //
9221 // Examples: "count/replicationcontrollers"
9222 // Note: The value for this attribute can be either the full
9223 // `count/<resource>[.<group>]` string (e.g., count/deployments.apps,
9224 // count/pods), or, for certain core Kubernetes resources, just the resource
9225 // name (e.g., pods, services, configmaps). Both forms are supported by
9226 // Kubernetes for object count quotas. See
9227 // [Kubernetes Resource Quotas documentation] for more details.
9228 //
9229 // [Kubernetes Resource Quotas documentation]: https://kubernetes.io/docs/concepts/policy/resource-quotas/#quota-on-object-count
9230 K8SResourceQuotaResourceNameKey = attribute.Key("k8s.resourcequota.resource_name")
9231
9232 // K8SResourceQuotaUIDKey is the attribute Key conforming to the
9233 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
9234 // resource quota.
9235 //
9236 // Type: string
9237 // RequirementLevel: Recommended
9238 // Stability: Development
9239 //
9240 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9241 K8SResourceQuotaUIDKey = attribute.Key("k8s.resourcequota.uid")
9242
9243 // K8SStatefulSetNameKey is the attribute Key conforming to the
9244 // "k8s.statefulset.name" semantic conventions. It represents the name of the
9245 // StatefulSet.
9246 //
9247 // Type: string
9248 // RequirementLevel: Recommended
9249 // Stability: Development
9250 //
9251 // Examples: "opentelemetry"
9252 K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
9253
9254 // K8SStatefulSetUIDKey is the attribute Key conforming to the
9255 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
9256 // StatefulSet.
9257 //
9258 // Type: string
9259 // RequirementLevel: Recommended
9260 // Stability: Development
9261 //
9262 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
9263 K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
9264
9265 // K8SStorageclassNameKey is the attribute Key conforming to the
9266 // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
9267 // [StorageClass] object.
9268 //
9269 // Type: string
9270 // RequirementLevel: Recommended
9271 // Stability: Development
9272 //
9273 // Examples: "gold.storageclass.storage.k8s.io"
9274 //
9275 // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
9276 K8SStorageclassNameKey = attribute.Key("k8s.storageclass.name")
9277
9278 // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
9279 // semantic conventions. It represents the name of the K8s volume.
9280 //
9281 // Type: string
9282 // RequirementLevel: Recommended
9283 // Stability: Development
9284 //
9285 // Examples: "volume0"
9286 K8SVolumeNameKey = attribute.Key("k8s.volume.name")
9287
9288 // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
9289 // semantic conventions. It represents the type of the K8s volume.
9290 //
9291 // Type: Enum
9292 // RequirementLevel: Recommended
9293 // Stability: Development
9294 //
9295 // Examples: "emptyDir", "persistentVolumeClaim"
9296 K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
9297 )
9298
9299 // K8SClusterName returns an attribute KeyValue conforming to the
9300 // "k8s.cluster.name" semantic conventions. It represents the name of the
9301 // cluster.
9302 func K8SClusterName(val string) attribute.KeyValue {
9303 return K8SClusterNameKey.String(val)
9304 }
9305
9306 // K8SClusterUID returns an attribute KeyValue conforming to the
9307 // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
9308 // cluster, set to the UID of the `kube-system` namespace.
9309 func K8SClusterUID(val string) attribute.KeyValue {
9310 return K8SClusterUIDKey.String(val)
9311 }
9312
9313 // K8SContainerName returns an attribute KeyValue conforming to the
9314 // "k8s.container.name" semantic conventions. It represents the name of the
9315 // Container from Pod specification, must be unique within a Pod. Container
9316 // runtime usually uses different globally unique name (`container.name`).
9317 func K8SContainerName(val string) attribute.KeyValue {
9318 return K8SContainerNameKey.String(val)
9319 }
9320
9321 // K8SContainerRestartCount returns an attribute KeyValue conforming to the
9322 // "k8s.container.restart_count" semantic conventions. It represents the number
9323 // of times the container was restarted. This attribute can be used to identify a
9324 // particular container (running or stopped) within a container spec.
9325 func K8SContainerRestartCount(val int) attribute.KeyValue {
9326 return K8SContainerRestartCountKey.Int(val)
9327 }
9328
9329 // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
9330 // conforming to the "k8s.container.status.last_terminated_reason" semantic
9331 // conventions. It represents the last terminated reason of the Container.
9332 func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
9333 return K8SContainerStatusLastTerminatedReasonKey.String(val)
9334 }
9335
9336 // K8SCronJobAnnotation returns an attribute KeyValue conforming to the
9337 // "k8s.cronjob.annotation" semantic conventions. It represents the cronjob
9338 // annotation placed on the CronJob, the `<key>` being the annotation name, the
9339 // value being the annotation value.
9340 func K8SCronJobAnnotation(key string, val string) attribute.KeyValue {
9341 return attribute.String("k8s.cronjob.annotation."+key, val)
9342 }
9343
9344 // K8SCronJobLabel returns an attribute KeyValue conforming to the
9345 // "k8s.cronjob.label" semantic conventions. It represents the label placed on
9346 // the CronJob, the `<key>` being the label name, the value being the label
9347 // value.
9348 func K8SCronJobLabel(key string, val string) attribute.KeyValue {
9349 return attribute.String("k8s.cronjob.label."+key, val)
9350 }
9351
9352 // K8SCronJobName returns an attribute KeyValue conforming to the
9353 // "k8s.cronjob.name" semantic conventions. It represents the name of the
9354 // CronJob.
9355 func K8SCronJobName(val string) attribute.KeyValue {
9356 return K8SCronJobNameKey.String(val)
9357 }
9358
9359 // K8SCronJobUID returns an attribute KeyValue conforming to the
9360 // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
9361 func K8SCronJobUID(val string) attribute.KeyValue {
9362 return K8SCronJobUIDKey.String(val)
9363 }
9364
9365 // K8SDaemonSetAnnotation returns an attribute KeyValue conforming to the
9366 // "k8s.daemonset.annotation" semantic conventions. It represents the annotation
9367 // placed on the DaemonSet, the `<key>` being the annotation name, the value
9368 // being the annotation value, even if the value is empty.
9369 func K8SDaemonSetAnnotation(key string, val string) attribute.KeyValue {
9370 return attribute.String("k8s.daemonset.annotation."+key, val)
9371 }
9372
9373 // K8SDaemonSetLabel returns an attribute KeyValue conforming to the
9374 // "k8s.daemonset.label" semantic conventions. It represents the label placed on
9375 // the DaemonSet, the `<key>` being the label name, the value being the label
9376 // value, even if the value is empty.
9377 func K8SDaemonSetLabel(key string, val string) attribute.KeyValue {
9378 return attribute.String("k8s.daemonset.label."+key, val)
9379 }
9380
9381 // K8SDaemonSetName returns an attribute KeyValue conforming to the
9382 // "k8s.daemonset.name" semantic conventions. It represents the name of the
9383 // DaemonSet.
9384 func K8SDaemonSetName(val string) attribute.KeyValue {
9385 return K8SDaemonSetNameKey.String(val)
9386 }
9387
9388 // K8SDaemonSetUID returns an attribute KeyValue conforming to the
9389 // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
9390 // DaemonSet.
9391 func K8SDaemonSetUID(val string) attribute.KeyValue {
9392 return K8SDaemonSetUIDKey.String(val)
9393 }
9394
9395 // K8SDeploymentAnnotation returns an attribute KeyValue conforming to the
9396 // "k8s.deployment.annotation" semantic conventions. It represents the annotation
9397 // placed on the Deployment, the `<key>` being the annotation name, the value
9398 // being the annotation value, even if the value is empty.
9399 func K8SDeploymentAnnotation(key string, val string) attribute.KeyValue {
9400 return attribute.String("k8s.deployment.annotation."+key, val)
9401 }
9402
9403 // K8SDeploymentLabel returns an attribute KeyValue conforming to the
9404 // "k8s.deployment.label" semantic conventions. It represents the label placed on
9405 // the Deployment, the `<key>` being the label name, the value being the label
9406 // value, even if the value is empty.
9407 func K8SDeploymentLabel(key string, val string) attribute.KeyValue {
9408 return attribute.String("k8s.deployment.label."+key, val)
9409 }
9410
9411 // K8SDeploymentName returns an attribute KeyValue conforming to the
9412 // "k8s.deployment.name" semantic conventions. It represents the name of the
9413 // Deployment.
9414 func K8SDeploymentName(val string) attribute.KeyValue {
9415 return K8SDeploymentNameKey.String(val)
9416 }
9417
9418 // K8SDeploymentUID returns an attribute KeyValue conforming to the
9419 // "k8s.deployment.uid" semantic conventions. It represents the UID of the
9420 // Deployment.
9421 func K8SDeploymentUID(val string) attribute.KeyValue {
9422 return K8SDeploymentUIDKey.String(val)
9423 }
9424
9425 // K8SHPAMetricType returns an attribute KeyValue conforming to the
9426 // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
9427 // source for the horizontal pod autoscaler.
9428 func K8SHPAMetricType(val string) attribute.KeyValue {
9429 return K8SHPAMetricTypeKey.String(val)
9430 }
9431
9432 // K8SHPAName returns an attribute KeyValue conforming to the "k8s.hpa.name"
9433 // semantic conventions. It represents the name of the horizontal pod autoscaler.
9434 func K8SHPAName(val string) attribute.KeyValue {
9435 return K8SHPANameKey.String(val)
9436 }
9437
9438 // K8SHPAScaletargetrefAPIVersion returns an attribute KeyValue conforming to the
9439 // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
9440 // API version of the target resource to scale for the HorizontalPodAutoscaler.
9441 func K8SHPAScaletargetrefAPIVersion(val string) attribute.KeyValue {
9442 return K8SHPAScaletargetrefAPIVersionKey.String(val)
9443 }
9444
9445 // K8SHPAScaletargetrefKind returns an attribute KeyValue conforming to the
9446 // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
9447 // the target resource to scale for the HorizontalPodAutoscaler.
9448 func K8SHPAScaletargetrefKind(val string) attribute.KeyValue {
9449 return K8SHPAScaletargetrefKindKey.String(val)
9450 }
9451
9452 // K8SHPAScaletargetrefName returns an attribute KeyValue conforming to the
9453 // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
9454 // the target resource to scale for the HorizontalPodAutoscaler.
9455 func K8SHPAScaletargetrefName(val string) attribute.KeyValue {
9456 return K8SHPAScaletargetrefNameKey.String(val)
9457 }
9458
9459 // K8SHPAUID returns an attribute KeyValue conforming to the "k8s.hpa.uid"
9460 // semantic conventions. It represents the UID of the horizontal pod autoscaler.
9461 func K8SHPAUID(val string) attribute.KeyValue {
9462 return K8SHPAUIDKey.String(val)
9463 }
9464
9465 // K8SHugepageSize returns an attribute KeyValue conforming to the
9466 // "k8s.hugepage.size" semantic conventions. It represents the size (identifier)
9467 // of the K8s huge page.
9468 func K8SHugepageSize(val string) attribute.KeyValue {
9469 return K8SHugepageSizeKey.String(val)
9470 }
9471
9472 // K8SJobAnnotation returns an attribute KeyValue conforming to the
9473 // "k8s.job.annotation" semantic conventions. It represents the annotation placed
9474 // on the Job, the `<key>` being the annotation name, the value being the
9475 // annotation value, even if the value is empty.
9476 func K8SJobAnnotation(key string, val string) attribute.KeyValue {
9477 return attribute.String("k8s.job.annotation."+key, val)
9478 }
9479
9480 // K8SJobLabel returns an attribute KeyValue conforming to the "k8s.job.label"
9481 // semantic conventions. It represents the label placed on the Job, the `<key>`
9482 // being the label name, the value being the label value, even if the value is
9483 // empty.
9484 func K8SJobLabel(key string, val string) attribute.KeyValue {
9485 return attribute.String("k8s.job.label."+key, val)
9486 }
9487
9488 // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
9489 // semantic conventions. It represents the name of the Job.
9490 func K8SJobName(val string) attribute.KeyValue {
9491 return K8SJobNameKey.String(val)
9492 }
9493
9494 // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
9495 // semantic conventions. It represents the UID of the Job.
9496 func K8SJobUID(val string) attribute.KeyValue {
9497 return K8SJobUIDKey.String(val)
9498 }
9499
9500 // K8SNamespaceAnnotation returns an attribute KeyValue conforming to the
9501 // "k8s.namespace.annotation" semantic conventions. It represents the annotation
9502 // placed on the Namespace, the `<key>` being the annotation name, the value
9503 // being the annotation value, even if the value is empty.
9504 func K8SNamespaceAnnotation(key string, val string) attribute.KeyValue {
9505 return attribute.String("k8s.namespace.annotation."+key, val)
9506 }
9507
9508 // K8SNamespaceLabel returns an attribute KeyValue conforming to the
9509 // "k8s.namespace.label" semantic conventions. It represents the label placed on
9510 // the Namespace, the `<key>` being the label name, the value being the label
9511 // value, even if the value is empty.
9512 func K8SNamespaceLabel(key string, val string) attribute.KeyValue {
9513 return attribute.String("k8s.namespace.label."+key, val)
9514 }
9515
9516 // K8SNamespaceName returns an attribute KeyValue conforming to the
9517 // "k8s.namespace.name" semantic conventions. It represents the name of the
9518 // namespace that the pod is running in.
9519 func K8SNamespaceName(val string) attribute.KeyValue {
9520 return K8SNamespaceNameKey.String(val)
9521 }
9522
9523 // K8SNodeAnnotation returns an attribute KeyValue conforming to the
9524 // "k8s.node.annotation" semantic conventions. It represents the annotation
9525 // placed on the Node, the `<key>` being the annotation name, the value being the
9526 // annotation value, even if the value is empty.
9527 func K8SNodeAnnotation(key string, val string) attribute.KeyValue {
9528 return attribute.String("k8s.node.annotation."+key, val)
9529 }
9530
9531 // K8SNodeLabel returns an attribute KeyValue conforming to the "k8s.node.label"
9532 // semantic conventions. It represents the label placed on the Node, the `<key>`
9533 // being the label name, the value being the label value, even if the value is
9534 // empty.
9535 func K8SNodeLabel(key string, val string) attribute.KeyValue {
9536 return attribute.String("k8s.node.label."+key, val)
9537 }
9538
9539 // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
9540 // semantic conventions. It represents the name of the Node.
9541 func K8SNodeName(val string) attribute.KeyValue {
9542 return K8SNodeNameKey.String(val)
9543 }
9544
9545 // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
9546 // semantic conventions. It represents the UID of the Node.
9547 func K8SNodeUID(val string) attribute.KeyValue {
9548 return K8SNodeUIDKey.String(val)
9549 }
9550
9551 // K8SPodAnnotation returns an attribute KeyValue conforming to the
9552 // "k8s.pod.annotation" semantic conventions. It represents the annotation placed
9553 // on the Pod, the `<key>` being the annotation name, the value being the
9554 // annotation value.
9555 func K8SPodAnnotation(key string, val string) attribute.KeyValue {
9556 return attribute.String("k8s.pod.annotation."+key, val)
9557 }
9558
9559 // K8SPodLabel returns an attribute KeyValue conforming to the "k8s.pod.label"
9560 // semantic conventions. It represents the label placed on the Pod, the `<key>`
9561 // being the label name, the value being the label value.
9562 func K8SPodLabel(key string, val string) attribute.KeyValue {
9563 return attribute.String("k8s.pod.label."+key, val)
9564 }
9565
9566 // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
9567 // semantic conventions. It represents the name of the Pod.
9568 func K8SPodName(val string) attribute.KeyValue {
9569 return K8SPodNameKey.String(val)
9570 }
9571
9572 // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
9573 // semantic conventions. It represents the UID of the Pod.
9574 func K8SPodUID(val string) attribute.KeyValue {
9575 return K8SPodUIDKey.String(val)
9576 }
9577
9578 // K8SReplicaSetAnnotation returns an attribute KeyValue conforming to the
9579 // "k8s.replicaset.annotation" semantic conventions. It represents the annotation
9580 // placed on the ReplicaSet, the `<key>` being the annotation name, the value
9581 // being the annotation value, even if the value is empty.
9582 func K8SReplicaSetAnnotation(key string, val string) attribute.KeyValue {
9583 return attribute.String("k8s.replicaset.annotation."+key, val)
9584 }
9585
9586 // K8SReplicaSetLabel returns an attribute KeyValue conforming to the
9587 // "k8s.replicaset.label" semantic conventions. It represents the label placed on
9588 // the ReplicaSet, the `<key>` being the label name, the value being the label
9589 // value, even if the value is empty.
9590 func K8SReplicaSetLabel(key string, val string) attribute.KeyValue {
9591 return attribute.String("k8s.replicaset.label."+key, val)
9592 }
9593
9594 // K8SReplicaSetName returns an attribute KeyValue conforming to the
9595 // "k8s.replicaset.name" semantic conventions. It represents the name of the
9596 // ReplicaSet.
9597 func K8SReplicaSetName(val string) attribute.KeyValue {
9598 return K8SReplicaSetNameKey.String(val)
9599 }
9600
9601 // K8SReplicaSetUID returns an attribute KeyValue conforming to the
9602 // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
9603 // ReplicaSet.
9604 func K8SReplicaSetUID(val string) attribute.KeyValue {
9605 return K8SReplicaSetUIDKey.String(val)
9606 }
9607
9608 // K8SReplicationControllerName returns an attribute KeyValue conforming to the
9609 // "k8s.replicationcontroller.name" semantic conventions. It represents the name
9610 // of the replication controller.
9611 func K8SReplicationControllerName(val string) attribute.KeyValue {
9612 return K8SReplicationControllerNameKey.String(val)
9613 }
9614
9615 // K8SReplicationControllerUID returns an attribute KeyValue conforming to the
9616 // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID of
9617 // the replication controller.
9618 func K8SReplicationControllerUID(val string) attribute.KeyValue {
9619 return K8SReplicationControllerUIDKey.String(val)
9620 }
9621
9622 // K8SResourceQuotaName returns an attribute KeyValue conforming to the
9623 // "k8s.resourcequota.name" semantic conventions. It represents the name of the
9624 // resource quota.
9625 func K8SResourceQuotaName(val string) attribute.KeyValue {
9626 return K8SResourceQuotaNameKey.String(val)
9627 }
9628
9629 // K8SResourceQuotaResourceName returns an attribute KeyValue conforming to the
9630 // "k8s.resourcequota.resource_name" semantic conventions. It represents the name
9631 // of the K8s resource a resource quota defines.
9632 func K8SResourceQuotaResourceName(val string) attribute.KeyValue {
9633 return K8SResourceQuotaResourceNameKey.String(val)
9634 }
9635
9636 // K8SResourceQuotaUID returns an attribute KeyValue conforming to the
9637 // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
9638 // resource quota.
9639 func K8SResourceQuotaUID(val string) attribute.KeyValue {
9640 return K8SResourceQuotaUIDKey.String(val)
9641 }
9642
9643 // K8SStatefulSetAnnotation returns an attribute KeyValue conforming to the
9644 // "k8s.statefulset.annotation" semantic conventions. It represents the
9645 // annotation placed on the StatefulSet, the `<key>` being the annotation name,
9646 // the value being the annotation value, even if the value is empty.
9647 func K8SStatefulSetAnnotation(key string, val string) attribute.KeyValue {
9648 return attribute.String("k8s.statefulset.annotation."+key, val)
9649 }
9650
9651 // K8SStatefulSetLabel returns an attribute KeyValue conforming to the
9652 // "k8s.statefulset.label" semantic conventions. It represents the label placed
9653 // on the StatefulSet, the `<key>` being the label name, the value being the
9654 // label value, even if the value is empty.
9655 func K8SStatefulSetLabel(key string, val string) attribute.KeyValue {
9656 return attribute.String("k8s.statefulset.label."+key, val)
9657 }
9658
9659 // K8SStatefulSetName returns an attribute KeyValue conforming to the
9660 // "k8s.statefulset.name" semantic conventions. It represents the name of the
9661 // StatefulSet.
9662 func K8SStatefulSetName(val string) attribute.KeyValue {
9663 return K8SStatefulSetNameKey.String(val)
9664 }
9665
9666 // K8SStatefulSetUID returns an attribute KeyValue conforming to the
9667 // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
9668 // StatefulSet.
9669 func K8SStatefulSetUID(val string) attribute.KeyValue {
9670 return K8SStatefulSetUIDKey.String(val)
9671 }
9672
9673 // K8SStorageclassName returns an attribute KeyValue conforming to the
9674 // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
9675 // [StorageClass] object.
9676 //
9677 // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
9678 func K8SStorageclassName(val string) attribute.KeyValue {
9679 return K8SStorageclassNameKey.String(val)
9680 }
9681
9682 // K8SVolumeName returns an attribute KeyValue conforming to the
9683 // "k8s.volume.name" semantic conventions. It represents the name of the K8s
9684 // volume.
9685 func K8SVolumeName(val string) attribute.KeyValue {
9686 return K8SVolumeNameKey.String(val)
9687 }
9688
9689 // Enum values for k8s.container.status.reason
9690 var (
9691 // The container is being created.
9692 // Stability: development
9693 K8SContainerStatusReasonContainerCreating = K8SContainerStatusReasonKey.String("ContainerCreating")
9694 // The container is in a crash loop back off state.
9695 // Stability: development
9696 K8SContainerStatusReasonCrashLoopBackOff = K8SContainerStatusReasonKey.String("CrashLoopBackOff")
9697 // There was an error creating the container configuration.
9698 // Stability: development
9699 K8SContainerStatusReasonCreateContainerConfigError = K8SContainerStatusReasonKey.String("CreateContainerConfigError")
9700 // There was an error pulling the container image.
9701 // Stability: development
9702 K8SContainerStatusReasonErrImagePull = K8SContainerStatusReasonKey.String("ErrImagePull")
9703 // The container image pull is in back off state.
9704 // Stability: development
9705 K8SContainerStatusReasonImagePullBackOff = K8SContainerStatusReasonKey.String("ImagePullBackOff")
9706 // The container was killed due to out of memory.
9707 // Stability: development
9708 K8SContainerStatusReasonOomKilled = K8SContainerStatusReasonKey.String("OOMKilled")
9709 // The container has completed execution.
9710 // Stability: development
9711 K8SContainerStatusReasonCompleted = K8SContainerStatusReasonKey.String("Completed")
9712 // There was an error with the container.
9713 // Stability: development
9714 K8SContainerStatusReasonError = K8SContainerStatusReasonKey.String("Error")
9715 // The container cannot run.
9716 // Stability: development
9717 K8SContainerStatusReasonContainerCannotRun = K8SContainerStatusReasonKey.String("ContainerCannotRun")
9718 )
9719
9720 // Enum values for k8s.container.status.state
9721 var (
9722 // The container has terminated.
9723 // Stability: development
9724 K8SContainerStatusStateTerminated = K8SContainerStatusStateKey.String("terminated")
9725 // The container is running.
9726 // Stability: development
9727 K8SContainerStatusStateRunning = K8SContainerStatusStateKey.String("running")
9728 // The container is waiting.
9729 // Stability: development
9730 K8SContainerStatusStateWaiting = K8SContainerStatusStateKey.String("waiting")
9731 )
9732
9733 // Enum values for k8s.namespace.phase
9734 var (
9735 // Active namespace phase as described by [K8s API]
9736 // Stability: development
9737 //
9738 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
9739 K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active")
9740 // Terminating namespace phase as described by [K8s API]
9741 // Stability: development
9742 //
9743 // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase
9744 K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating")
9745 )
9746
9747 // Enum values for k8s.node.condition.status
9748 var (
9749 // condition_true
9750 // Stability: development
9751 K8SNodeConditionStatusConditionTrue = K8SNodeConditionStatusKey.String("true")
9752 // condition_false
9753 // Stability: development
9754 K8SNodeConditionStatusConditionFalse = K8SNodeConditionStatusKey.String("false")
9755 // condition_unknown
9756 // Stability: development
9757 K8SNodeConditionStatusConditionUnknown = K8SNodeConditionStatusKey.String("unknown")
9758 )
9759
9760 // Enum values for k8s.node.condition.type
9761 var (
9762 // The node is healthy and ready to accept pods
9763 // Stability: development
9764 K8SNodeConditionTypeReady = K8SNodeConditionTypeKey.String("Ready")
9765 // Pressure exists on the disk size—that is, if the disk capacity is low
9766 // Stability: development
9767 K8SNodeConditionTypeDiskPressure = K8SNodeConditionTypeKey.String("DiskPressure")
9768 // Pressure exists on the node memory—that is, if the node memory is low
9769 // Stability: development
9770 K8SNodeConditionTypeMemoryPressure = K8SNodeConditionTypeKey.String("MemoryPressure")
9771 // Pressure exists on the processes—that is, if there are too many processes
9772 // on the node
9773 // Stability: development
9774 K8SNodeConditionTypePIDPressure = K8SNodeConditionTypeKey.String("PIDPressure")
9775 // The network for the node is not correctly configured
9776 // Stability: development
9777 K8SNodeConditionTypeNetworkUnavailable = K8SNodeConditionTypeKey.String("NetworkUnavailable")
9778 )
9779
9780 // Enum values for k8s.pod.status.phase
9781 var (
9782 // The pod has been accepted by the system, but one or more of the containers
9783 // has not been started. This includes time before being bound to a node, as
9784 // well as time spent pulling images onto the host.
9785 //
9786 // Stability: development
9787 K8SPodStatusPhasePending = K8SPodStatusPhaseKey.String("Pending")
9788 // The pod has been bound to a node and all of the containers have been started.
9789 // At least one container is still running or is in the process of being
9790 // restarted.
9791 //
9792 // Stability: development
9793 K8SPodStatusPhaseRunning = K8SPodStatusPhaseKey.String("Running")
9794 // All containers in the pod have voluntarily terminated with a container exit
9795 // code of 0, and the system is not going to restart any of these containers.
9796 //
9797 // Stability: development
9798 K8SPodStatusPhaseSucceeded = K8SPodStatusPhaseKey.String("Succeeded")
9799 // All containers in the pod have terminated, and at least one container has
9800 // terminated in a failure (exited with a non-zero exit code or was stopped by
9801 // the system).
9802 //
9803 // Stability: development
9804 K8SPodStatusPhaseFailed = K8SPodStatusPhaseKey.String("Failed")
9805 // For some reason the state of the pod could not be obtained, typically due to
9806 // an error in communicating with the host of the pod.
9807 //
9808 // Stability: development
9809 K8SPodStatusPhaseUnknown = K8SPodStatusPhaseKey.String("Unknown")
9810 )
9811
9812 // Enum values for k8s.pod.status.reason
9813 var (
9814 // The pod is evicted.
9815 // Stability: development
9816 K8SPodStatusReasonEvicted = K8SPodStatusReasonKey.String("Evicted")
9817 // The pod is in a status because of its node affinity
9818 // Stability: development
9819 K8SPodStatusReasonNodeAffinity = K8SPodStatusReasonKey.String("NodeAffinity")
9820 // The reason on a pod when its state cannot be confirmed as kubelet is
9821 // unresponsive on the node it is (was) running.
9822 //
9823 // Stability: development
9824 K8SPodStatusReasonNodeLost = K8SPodStatusReasonKey.String("NodeLost")
9825 // The node is shutdown
9826 // Stability: development
9827 K8SPodStatusReasonShutdown = K8SPodStatusReasonKey.String("Shutdown")
9828 // The pod was rejected admission to the node because of an error during
9829 // admission that could not be categorized.
9830 //
9831 // Stability: development
9832 K8SPodStatusReasonUnexpectedAdmissionError = K8SPodStatusReasonKey.String("UnexpectedAdmissionError")
9833 )
9834
9835 // Enum values for k8s.volume.type
9836 var (
9837 // A [persistentVolumeClaim] volume
9838 // Stability: development
9839 //
9840 // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
9841 K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
9842 // A [configMap] volume
9843 // Stability: development
9844 //
9845 // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
9846 K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
9847 // A [downwardAPI] volume
9848 // Stability: development
9849 //
9850 // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
9851 K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
9852 // An [emptyDir] volume
9853 // Stability: development
9854 //
9855 // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
9856 K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
9857 // A [secret] volume
9858 // Stability: development
9859 //
9860 // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
9861 K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
9862 // A [local] volume
9863 // Stability: development
9864 //
9865 // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local
9866 K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
9867 )
9868
9869 // Namespace: linux
9870 const (
9871 // LinuxMemorySlabStateKey is the attribute Key conforming to the
9872 // "linux.memory.slab.state" semantic conventions. It represents the Linux Slab
9873 // memory state.
9874 //
9875 // Type: Enum
9876 // RequirementLevel: Recommended
9877 // Stability: Development
9878 //
9879 // Examples: "reclaimable", "unreclaimable"
9880 LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state")
9881 )
9882
9883 // Enum values for linux.memory.slab.state
9884 var (
9885 // reclaimable
9886 // Stability: development
9887 LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable")
9888 // unreclaimable
9889 // Stability: development
9890 LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable")
9891 )
9892
9893 // Namespace: log
9894 const (
9895 // LogFileNameKey is the attribute Key conforming to the "log.file.name"
9896 // semantic conventions. It represents the basename of the file.
9897 //
9898 // Type: string
9899 // RequirementLevel: Recommended
9900 // Stability: Development
9901 //
9902 // Examples: "audit.log"
9903 LogFileNameKey = attribute.Key("log.file.name")
9904
9905 // LogFileNameResolvedKey is the attribute Key conforming to the
9906 // "log.file.name_resolved" semantic conventions. It represents the basename of
9907 // the file, with symlinks resolved.
9908 //
9909 // Type: string
9910 // RequirementLevel: Recommended
9911 // Stability: Development
9912 //
9913 // Examples: "uuid.log"
9914 LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
9915
9916 // LogFilePathKey is the attribute Key conforming to the "log.file.path"
9917 // semantic conventions. It represents the full path to the file.
9918 //
9919 // Type: string
9920 // RequirementLevel: Recommended
9921 // Stability: Development
9922 //
9923 // Examples: "/var/log/mysql/audit.log"
9924 LogFilePathKey = attribute.Key("log.file.path")
9925
9926 // LogFilePathResolvedKey is the attribute Key conforming to the
9927 // "log.file.path_resolved" semantic conventions. It represents the full path to
9928 // the file, with symlinks resolved.
9929 //
9930 // Type: string
9931 // RequirementLevel: Recommended
9932 // Stability: Development
9933 //
9934 // Examples: "/var/lib/docker/uuid.log"
9935 LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
9936
9937 // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
9938 // conventions. It represents the stream associated with the log. See below for
9939 // a list of well-known values.
9940 //
9941 // Type: Enum
9942 // RequirementLevel: Recommended
9943 // Stability: Development
9944 //
9945 // Examples:
9946 LogIostreamKey = attribute.Key("log.iostream")
9947
9948 // LogRecordOriginalKey is the attribute Key conforming to the
9949 // "log.record.original" semantic conventions. It represents the complete
9950 // original Log Record.
9951 //
9952 // Type: string
9953 // RequirementLevel: Recommended
9954 // Stability: Development
9955 //
9956 // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
9957 // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
9958 // Note: This value MAY be added when processing a Log Record which was
9959 // originally transmitted as a string or equivalent data type AND the Body field
9960 // of the Log Record does not contain the same value. (e.g. a syslog or a log
9961 // record read from a file.)
9962 LogRecordOriginalKey = attribute.Key("log.record.original")
9963
9964 // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
9965 // semantic conventions. It represents a unique identifier for the Log Record.
9966 //
9967 // Type: string
9968 // RequirementLevel: Recommended
9969 // Stability: Development
9970 //
9971 // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
9972 // Note: If an id is provided, other log records with the same id will be
9973 // considered duplicates and can be removed safely. This means, that two
9974 // distinguishable log records MUST have different values.
9975 // The id MAY be an
9976 // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
9977 // identifiers (e.g. UUID) may be used as needed.
9978 //
9979 // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
9980 LogRecordUIDKey = attribute.Key("log.record.uid")
9981 )
9982
9983 // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
9984 // semantic conventions. It represents the basename of the file.
9985 func LogFileName(val string) attribute.KeyValue {
9986 return LogFileNameKey.String(val)
9987 }
9988
9989 // LogFileNameResolved returns an attribute KeyValue conforming to the
9990 // "log.file.name_resolved" semantic conventions. It represents the basename of
9991 // the file, with symlinks resolved.
9992 func LogFileNameResolved(val string) attribute.KeyValue {
9993 return LogFileNameResolvedKey.String(val)
9994 }
9995
9996 // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
9997 // semantic conventions. It represents the full path to the file.
9998 func LogFilePath(val string) attribute.KeyValue {
9999 return LogFilePathKey.String(val)
10000 }
10001
10002 // LogFilePathResolved returns an attribute KeyValue conforming to the
10003 // "log.file.path_resolved" semantic conventions. It represents the full path to
10004 // the file, with symlinks resolved.
10005 func LogFilePathResolved(val string) attribute.KeyValue {
10006 return LogFilePathResolvedKey.String(val)
10007 }
10008
10009 // LogRecordOriginal returns an attribute KeyValue conforming to the
10010 // "log.record.original" semantic conventions. It represents the complete
10011 // original Log Record.
10012 func LogRecordOriginal(val string) attribute.KeyValue {
10013 return LogRecordOriginalKey.String(val)
10014 }
10015
10016 // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
10017 // semantic conventions. It represents a unique identifier for the Log Record.
10018 func LogRecordUID(val string) attribute.KeyValue {
10019 return LogRecordUIDKey.String(val)
10020 }
10021
10022 // Enum values for log.iostream
10023 var (
10024 // Logs from stdout stream
10025 // Stability: development
10026 LogIostreamStdout = LogIostreamKey.String("stdout")
10027 // Events from stderr stream
10028 // Stability: development
10029 LogIostreamStderr = LogIostreamKey.String("stderr")
10030 )
10031
10032 // Namespace: mainframe
10033 const (
10034 // MainframeLparNameKey is the attribute Key conforming to the
10035 // "mainframe.lpar.name" semantic conventions. It represents the name of the
10036 // logical partition that hosts a systems with a mainframe operating system.
10037 //
10038 // Type: string
10039 // RequirementLevel: Recommended
10040 // Stability: Development
10041 //
10042 // Examples: "LPAR01"
10043 MainframeLparNameKey = attribute.Key("mainframe.lpar.name")
10044 )
10045
10046 // MainframeLparName returns an attribute KeyValue conforming to the
10047 // "mainframe.lpar.name" semantic conventions. It represents the name of the
10048 // logical partition that hosts a systems with a mainframe operating system.
10049 func MainframeLparName(val string) attribute.KeyValue {
10050 return MainframeLparNameKey.String(val)
10051 }
10052
10053 // Namespace: messaging
10054 const (
10055 // MessagingBatchMessageCountKey is the attribute Key conforming to the
10056 // "messaging.batch.message_count" semantic conventions. It represents the
10057 // number of messages sent, received, or processed in the scope of the batching
10058 // operation.
10059 //
10060 // Type: int
10061 // RequirementLevel: Recommended
10062 // Stability: Development
10063 //
10064 // Examples: 0, 1, 2
10065 // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
10066 // spans that operate with a single message. When a messaging client library
10067 // supports both batch and single-message API for the same operation,
10068 // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
10069 // and SHOULD NOT use it for single-message APIs.
10070 MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
10071
10072 // MessagingClientIDKey is the attribute Key conforming to the
10073 // "messaging.client.id" semantic conventions. It represents a unique identifier
10074 // for the client that consumes or produces a message.
10075 //
10076 // Type: string
10077 // RequirementLevel: Recommended
10078 // Stability: Development
10079 //
10080 // Examples: "client-5", "myhost@8742@s8083jm"
10081 MessagingClientIDKey = attribute.Key("messaging.client.id")
10082
10083 // MessagingConsumerGroupNameKey is the attribute Key conforming to the
10084 // "messaging.consumer.group.name" semantic conventions. It represents the name
10085 // of the consumer group with which a consumer is associated.
10086 //
10087 // Type: string
10088 // RequirementLevel: Recommended
10089 // Stability: Development
10090 //
10091 // Examples: "my-group", "indexer"
10092 // Note: Semantic conventions for individual messaging systems SHOULD document
10093 // whether `messaging.consumer.group.name` is applicable and what it means in
10094 // the context of that system.
10095 MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
10096
10097 // MessagingDestinationAnonymousKey is the attribute Key conforming to the
10098 // "messaging.destination.anonymous" semantic conventions. It represents a
10099 // boolean that is true if the message destination is anonymous (could be
10100 // unnamed or have auto-generated name).
10101 //
10102 // Type: boolean
10103 // RequirementLevel: Recommended
10104 // Stability: Development
10105 //
10106 // Examples:
10107 MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
10108
10109 // MessagingDestinationNameKey is the attribute Key conforming to the
10110 // "messaging.destination.name" semantic conventions. It represents the message
10111 // destination name.
10112 //
10113 // Type: string
10114 // RequirementLevel: Recommended
10115 // Stability: Development
10116 //
10117 // Examples: "MyQueue", "MyTopic"
10118 // Note: Destination name SHOULD uniquely identify a specific queue, topic or
10119 // other entity within the broker. If
10120 // the broker doesn't have such notion, the destination name SHOULD uniquely
10121 // identify the broker.
10122 MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
10123
10124 // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
10125 // "messaging.destination.partition.id" semantic conventions. It represents the
10126 // identifier of the partition messages are sent to or received from, unique
10127 // within the `messaging.destination.name`.
10128 //
10129 // Type: string
10130 // RequirementLevel: Recommended
10131 // Stability: Development
10132 //
10133 // Examples: 1
10134 MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
10135
10136 // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
10137 // the "messaging.destination.subscription.name" semantic conventions. It
10138 // represents the name of the destination subscription from which a message is
10139 // consumed.
10140 //
10141 // Type: string
10142 // RequirementLevel: Recommended
10143 // Stability: Development
10144 //
10145 // Examples: "subscription-a"
10146 // Note: Semantic conventions for individual messaging systems SHOULD document
10147 // whether `messaging.destination.subscription.name` is applicable and what it
10148 // means in the context of that system.
10149 MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
10150
10151 // MessagingDestinationTemplateKey is the attribute Key conforming to the
10152 // "messaging.destination.template" semantic conventions. It represents the low
10153 // cardinality representation of the messaging destination name.
10154 //
10155 // Type: string
10156 // RequirementLevel: Recommended
10157 // Stability: Development
10158 //
10159 // Examples: "/customers/{customerId}"
10160 // Note: Destination names could be constructed from templates. An example would
10161 // be a destination name involving a user name or product id. Although the
10162 // destination name in this case is of high cardinality, the underlying template
10163 // is of low cardinality and can be effectively used for grouping and
10164 // aggregation.
10165 MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
10166
10167 // MessagingDestinationTemporaryKey is the attribute Key conforming to the
10168 // "messaging.destination.temporary" semantic conventions. It represents a
10169 // boolean that is true if the message destination is temporary and might not
10170 // exist anymore after messages are processed.
10171 //
10172 // Type: boolean
10173 // RequirementLevel: Recommended
10174 // Stability: Development
10175 //
10176 // Examples:
10177 MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
10178
10179 // MessagingEventHubsMessageEnqueuedTimeKey is the attribute Key conforming to
10180 // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
10181 // represents the UTC epoch seconds at which the message has been accepted and
10182 // stored in the entity.
10183 //
10184 // Type: int
10185 // RequirementLevel: Recommended
10186 // Stability: Development
10187 MessagingEventHubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
10188
10189 // MessagingGCPPubSubMessageAckDeadlineKey is the attribute Key conforming to
10190 // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
10191 // represents the ack deadline in seconds set for the modify ack deadline
10192 // request.
10193 //
10194 // Type: int
10195 // RequirementLevel: Recommended
10196 // Stability: Development
10197 MessagingGCPPubSubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
10198
10199 // MessagingGCPPubSubMessageAckIDKey is the attribute Key conforming to the
10200 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
10201 // ack id for a given message.
10202 //
10203 // Type: string
10204 // RequirementLevel: Recommended
10205 // Stability: Development
10206 //
10207 // Examples: ack_id
10208 MessagingGCPPubSubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
10209
10210 // MessagingGCPPubSubMessageDeliveryAttemptKey is the attribute Key conforming
10211 // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
10212 // It represents the delivery attempt for a given message.
10213 //
10214 // Type: int
10215 // RequirementLevel: Recommended
10216 // Stability: Development
10217 MessagingGCPPubSubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
10218
10219 // MessagingGCPPubSubMessageOrderingKeyKey is the attribute Key conforming to
10220 // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
10221 // represents the ordering key for a given message. If the attribute is not
10222 // present, the message does not have an ordering key.
10223 //
10224 // Type: string
10225 // RequirementLevel: Recommended
10226 // Stability: Development
10227 //
10228 // Examples: ordering_key
10229 MessagingGCPPubSubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
10230
10231 // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
10232 // "messaging.kafka.message.key" semantic conventions. It represents the message
10233 // keys in Kafka are used for grouping alike messages to ensure they're
10234 // processed on the same partition. They differ from `messaging.message.id` in
10235 // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
10236 //
10237 // Type: string
10238 // RequirementLevel: Recommended
10239 // Stability: Development
10240 //
10241 // Examples: myKey
10242 // Note: If the key type is not string, it's string representation has to be
10243 // supplied for the attribute. If the key has no unambiguous, canonical string
10244 // form, don't include its value.
10245 MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
10246
10247 // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
10248 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
10249 // boolean that is true if the message is a tombstone.
10250 //
10251 // Type: boolean
10252 // RequirementLevel: Recommended
10253 // Stability: Development
10254 //
10255 // Examples:
10256 MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
10257
10258 // MessagingKafkaOffsetKey is the attribute Key conforming to the
10259 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
10260 // record in the corresponding Kafka partition.
10261 //
10262 // Type: int
10263 // RequirementLevel: Recommended
10264 // Stability: Development
10265 MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
10266
10267 // MessagingMessageBodySizeKey is the attribute Key conforming to the
10268 // "messaging.message.body.size" semantic conventions. It represents the size of
10269 // the message body in bytes.
10270 //
10271 // Type: int
10272 // RequirementLevel: Recommended
10273 // Stability: Development
10274 //
10275 // Note: This can refer to both the compressed or uncompressed body size. If
10276 // both sizes are known, the uncompressed
10277 // body size should be used.
10278 MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
10279
10280 // MessagingMessageConversationIDKey is the attribute Key conforming to the
10281 // "messaging.message.conversation_id" semantic conventions. It represents the
10282 // conversation ID identifying the conversation to which the message belongs,
10283 // represented as a string. Sometimes called "Correlation ID".
10284 //
10285 // Type: string
10286 // RequirementLevel: Recommended
10287 // Stability: Development
10288 //
10289 // Examples: MyConversationId
10290 MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
10291
10292 // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
10293 // "messaging.message.envelope.size" semantic conventions. It represents the
10294 // size of the message body and metadata in bytes.
10295 //
10296 // Type: int
10297 // RequirementLevel: Recommended
10298 // Stability: Development
10299 //
10300 // Note: This can refer to both the compressed or uncompressed size. If both
10301 // sizes are known, the uncompressed
10302 // size should be used.
10303 MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
10304
10305 // MessagingMessageIDKey is the attribute Key conforming to the
10306 // "messaging.message.id" semantic conventions. It represents a value used by
10307 // the messaging system as an identifier for the message, represented as a
10308 // string.
10309 //
10310 // Type: string
10311 // RequirementLevel: Recommended
10312 // Stability: Development
10313 //
10314 // Examples: 452a7c7c7c7048c2f887f61572b18fc2
10315 MessagingMessageIDKey = attribute.Key("messaging.message.id")
10316
10317 // MessagingOperationNameKey is the attribute Key conforming to the
10318 // "messaging.operation.name" semantic conventions. It represents the
10319 // system-specific name of the messaging operation.
10320 //
10321 // Type: string
10322 // RequirementLevel: Recommended
10323 // Stability: Development
10324 //
10325 // Examples: "ack", "nack", "send"
10326 MessagingOperationNameKey = attribute.Key("messaging.operation.name")
10327
10328 // MessagingOperationTypeKey is the attribute Key conforming to the
10329 // "messaging.operation.type" semantic conventions. It represents a string
10330 // identifying the type of the messaging operation.
10331 //
10332 // Type: Enum
10333 // RequirementLevel: Recommended
10334 // Stability: Development
10335 //
10336 // Examples:
10337 // Note: If a custom value is used, it MUST be of low cardinality.
10338 MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
10339
10340 // MessagingRabbitMQDestinationRoutingKeyKey is the attribute Key conforming to
10341 // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
10342 // represents the rabbitMQ message routing key.
10343 //
10344 // Type: string
10345 // RequirementLevel: Recommended
10346 // Stability: Development
10347 //
10348 // Examples: myKey
10349 MessagingRabbitMQDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
10350
10351 // MessagingRabbitMQMessageDeliveryTagKey is the attribute Key conforming to the
10352 // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
10353 // the rabbitMQ message delivery tag.
10354 //
10355 // Type: int
10356 // RequirementLevel: Recommended
10357 // Stability: Development
10358 MessagingRabbitMQMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
10359
10360 // MessagingRocketMQConsumptionModelKey is the attribute Key conforming to the
10361 // "messaging.rocketmq.consumption_model" semantic conventions. It represents
10362 // the model of message consumption. This only applies to consumer spans.
10363 //
10364 // Type: Enum
10365 // RequirementLevel: Recommended
10366 // Stability: Development
10367 //
10368 // Examples:
10369 MessagingRocketMQConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
10370
10371 // MessagingRocketMQMessageDelayTimeLevelKey is the attribute Key conforming to
10372 // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
10373 // represents the delay time level for delay message, which determines the
10374 // message delay time.
10375 //
10376 // Type: int
10377 // RequirementLevel: Recommended
10378 // Stability: Development
10379 MessagingRocketMQMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
10380
10381 // MessagingRocketMQMessageDeliveryTimestampKey is the attribute Key conforming
10382 // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
10383 // It represents the timestamp in milliseconds that the delay message is
10384 // expected to be delivered to consumer.
10385 //
10386 // Type: int
10387 // RequirementLevel: Recommended
10388 // Stability: Development
10389 MessagingRocketMQMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
10390
10391 // MessagingRocketMQMessageGroupKey is the attribute Key conforming to the
10392 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
10393 // is essential for FIFO message. Messages that belong to the same message group
10394 // are always processed one by one within the same consumer group.
10395 //
10396 // Type: string
10397 // RequirementLevel: Recommended
10398 // Stability: Development
10399 //
10400 // Examples: myMessageGroup
10401 MessagingRocketMQMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
10402
10403 // MessagingRocketMQMessageKeysKey is the attribute Key conforming to the
10404 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
10405 // key(s) of message, another way to mark message besides message id.
10406 //
10407 // Type: string[]
10408 // RequirementLevel: Recommended
10409 // Stability: Development
10410 //
10411 // Examples: "keyA", "keyB"
10412 MessagingRocketMQMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
10413
10414 // MessagingRocketMQMessageTagKey is the attribute Key conforming to the
10415 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
10416 // secondary classifier of message besides topic.
10417 //
10418 // Type: string
10419 // RequirementLevel: Recommended
10420 // Stability: Development
10421 //
10422 // Examples: tagA
10423 MessagingRocketMQMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
10424
10425 // MessagingRocketMQMessageTypeKey is the attribute Key conforming to the
10426 // "messaging.rocketmq.message.type" semantic conventions. It represents the
10427 // type of message.
10428 //
10429 // Type: Enum
10430 // RequirementLevel: Recommended
10431 // Stability: Development
10432 //
10433 // Examples:
10434 MessagingRocketMQMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
10435
10436 // MessagingRocketMQNamespaceKey is the attribute Key conforming to the
10437 // "messaging.rocketmq.namespace" semantic conventions. It represents the
10438 // namespace of RocketMQ resources, resources in different namespaces are
10439 // individual.
10440 //
10441 // Type: string
10442 // RequirementLevel: Recommended
10443 // Stability: Development
10444 //
10445 // Examples: myNamespace
10446 MessagingRocketMQNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
10447
10448 // MessagingServiceBusDispositionStatusKey is the attribute Key conforming to
10449 // the "messaging.servicebus.disposition_status" semantic conventions. It
10450 // represents the describes the [settlement type].
10451 //
10452 // Type: Enum
10453 // RequirementLevel: Recommended
10454 // Stability: Development
10455 //
10456 // Examples:
10457 //
10458 // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
10459 MessagingServiceBusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
10460
10461 // MessagingServiceBusMessageDeliveryCountKey is the attribute Key conforming to
10462 // the "messaging.servicebus.message.delivery_count" semantic conventions. It
10463 // represents the number of deliveries that have been attempted for this
10464 // message.
10465 //
10466 // Type: int
10467 // RequirementLevel: Recommended
10468 // Stability: Development
10469 MessagingServiceBusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
10470
10471 // MessagingServiceBusMessageEnqueuedTimeKey is the attribute Key conforming to
10472 // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
10473 // represents the UTC epoch seconds at which the message has been accepted and
10474 // stored in the entity.
10475 //
10476 // Type: int
10477 // RequirementLevel: Recommended
10478 // Stability: Development
10479 MessagingServiceBusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
10480
10481 // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
10482 // semantic conventions. It represents the messaging system as identified by the
10483 // client instrumentation.
10484 //
10485 // Type: Enum
10486 // RequirementLevel: Recommended
10487 // Stability: Development
10488 //
10489 // Examples:
10490 // Note: The actual messaging system may differ from the one known by the
10491 // client. For example, when using Kafka client libraries to communicate with
10492 // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
10493 // instrumentation's best knowledge.
10494 MessagingSystemKey = attribute.Key("messaging.system")
10495 )
10496
10497 // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
10498 // "messaging.batch.message_count" semantic conventions. It represents the number
10499 // of messages sent, received, or processed in the scope of the batching
10500 // operation.
10501 func MessagingBatchMessageCount(val int) attribute.KeyValue {
10502 return MessagingBatchMessageCountKey.Int(val)
10503 }
10504
10505 // MessagingClientID returns an attribute KeyValue conforming to the
10506 // "messaging.client.id" semantic conventions. It represents a unique identifier
10507 // for the client that consumes or produces a message.
10508 func MessagingClientID(val string) attribute.KeyValue {
10509 return MessagingClientIDKey.String(val)
10510 }
10511
10512 // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
10513 // "messaging.consumer.group.name" semantic conventions. It represents the name
10514 // of the consumer group with which a consumer is associated.
10515 func MessagingConsumerGroupName(val string) attribute.KeyValue {
10516 return MessagingConsumerGroupNameKey.String(val)
10517 }
10518
10519 // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
10520 // "messaging.destination.anonymous" semantic conventions. It represents a
10521 // boolean that is true if the message destination is anonymous (could be unnamed
10522 // or have auto-generated name).
10523 func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
10524 return MessagingDestinationAnonymousKey.Bool(val)
10525 }
10526
10527 // MessagingDestinationName returns an attribute KeyValue conforming to the
10528 // "messaging.destination.name" semantic conventions. It represents the message
10529 // destination name.
10530 func MessagingDestinationName(val string) attribute.KeyValue {
10531 return MessagingDestinationNameKey.String(val)
10532 }
10533
10534 // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
10535 // the "messaging.destination.partition.id" semantic conventions. It represents
10536 // the identifier of the partition messages are sent to or received from, unique
10537 // within the `messaging.destination.name`.
10538 func MessagingDestinationPartitionID(val string) attribute.KeyValue {
10539 return MessagingDestinationPartitionIDKey.String(val)
10540 }
10541
10542 // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
10543 // to the "messaging.destination.subscription.name" semantic conventions. It
10544 // represents the name of the destination subscription from which a message is
10545 // consumed.
10546 func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
10547 return MessagingDestinationSubscriptionNameKey.String(val)
10548 }
10549
10550 // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
10551 // "messaging.destination.template" semantic conventions. It represents the low
10552 // cardinality representation of the messaging destination name.
10553 func MessagingDestinationTemplate(val string) attribute.KeyValue {
10554 return MessagingDestinationTemplateKey.String(val)
10555 }
10556
10557 // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
10558 // "messaging.destination.temporary" semantic conventions. It represents a
10559 // boolean that is true if the message destination is temporary and might not
10560 // exist anymore after messages are processed.
10561 func MessagingDestinationTemporary(val bool) attribute.KeyValue {
10562 return MessagingDestinationTemporaryKey.Bool(val)
10563 }
10564
10565 // MessagingEventHubsMessageEnqueuedTime returns an attribute KeyValue conforming
10566 // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
10567 // represents the UTC epoch seconds at which the message has been accepted and
10568 // stored in the entity.
10569 func MessagingEventHubsMessageEnqueuedTime(val int) attribute.KeyValue {
10570 return MessagingEventHubsMessageEnqueuedTimeKey.Int(val)
10571 }
10572
10573 // MessagingGCPPubSubMessageAckDeadline returns an attribute KeyValue conforming
10574 // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
10575 // represents the ack deadline in seconds set for the modify ack deadline
10576 // request.
10577 func MessagingGCPPubSubMessageAckDeadline(val int) attribute.KeyValue {
10578 return MessagingGCPPubSubMessageAckDeadlineKey.Int(val)
10579 }
10580
10581 // MessagingGCPPubSubMessageAckID returns an attribute KeyValue conforming to the
10582 // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
10583 // ack id for a given message.
10584 func MessagingGCPPubSubMessageAckID(val string) attribute.KeyValue {
10585 return MessagingGCPPubSubMessageAckIDKey.String(val)
10586 }
10587
10588 // MessagingGCPPubSubMessageDeliveryAttempt returns an attribute KeyValue
10589 // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
10590 // conventions. It represents the delivery attempt for a given message.
10591 func MessagingGCPPubSubMessageDeliveryAttempt(val int) attribute.KeyValue {
10592 return MessagingGCPPubSubMessageDeliveryAttemptKey.Int(val)
10593 }
10594
10595 // MessagingGCPPubSubMessageOrderingKey returns an attribute KeyValue conforming
10596 // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
10597 // represents the ordering key for a given message. If the attribute is not
10598 // present, the message does not have an ordering key.
10599 func MessagingGCPPubSubMessageOrderingKey(val string) attribute.KeyValue {
10600 return MessagingGCPPubSubMessageOrderingKeyKey.String(val)
10601 }
10602
10603 // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
10604 // "messaging.kafka.message.key" semantic conventions. It represents the message
10605 // keys in Kafka are used for grouping alike messages to ensure they're processed
10606 // on the same partition. They differ from `messaging.message.id` in that they're
10607 // not unique. If the key is `null`, the attribute MUST NOT be set.
10608 func MessagingKafkaMessageKey(val string) attribute.KeyValue {
10609 return MessagingKafkaMessageKeyKey.String(val)
10610 }
10611
10612 // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
10613 // "messaging.kafka.message.tombstone" semantic conventions. It represents a
10614 // boolean that is true if the message is a tombstone.
10615 func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
10616 return MessagingKafkaMessageTombstoneKey.Bool(val)
10617 }
10618
10619 // MessagingKafkaOffset returns an attribute KeyValue conforming to the
10620 // "messaging.kafka.offset" semantic conventions. It represents the offset of a
10621 // record in the corresponding Kafka partition.
10622 func MessagingKafkaOffset(val int) attribute.KeyValue {
10623 return MessagingKafkaOffsetKey.Int(val)
10624 }
10625
10626 // MessagingMessageBodySize returns an attribute KeyValue conforming to the
10627 // "messaging.message.body.size" semantic conventions. It represents the size of
10628 // the message body in bytes.
10629 func MessagingMessageBodySize(val int) attribute.KeyValue {
10630 return MessagingMessageBodySizeKey.Int(val)
10631 }
10632
10633 // MessagingMessageConversationID returns an attribute KeyValue conforming to the
10634 // "messaging.message.conversation_id" semantic conventions. It represents the
10635 // conversation ID identifying the conversation to which the message belongs,
10636 // represented as a string. Sometimes called "Correlation ID".
10637 func MessagingMessageConversationID(val string) attribute.KeyValue {
10638 return MessagingMessageConversationIDKey.String(val)
10639 }
10640
10641 // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
10642 // "messaging.message.envelope.size" semantic conventions. It represents the size
10643 // of the message body and metadata in bytes.
10644 func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
10645 return MessagingMessageEnvelopeSizeKey.Int(val)
10646 }
10647
10648 // MessagingMessageID returns an attribute KeyValue conforming to the
10649 // "messaging.message.id" semantic conventions. It represents a value used by the
10650 // messaging system as an identifier for the message, represented as a string.
10651 func MessagingMessageID(val string) attribute.KeyValue {
10652 return MessagingMessageIDKey.String(val)
10653 }
10654
10655 // MessagingOperationName returns an attribute KeyValue conforming to the
10656 // "messaging.operation.name" semantic conventions. It represents the
10657 // system-specific name of the messaging operation.
10658 func MessagingOperationName(val string) attribute.KeyValue {
10659 return MessagingOperationNameKey.String(val)
10660 }
10661
10662 // MessagingRabbitMQDestinationRoutingKey returns an attribute KeyValue
10663 // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
10664 // conventions. It represents the rabbitMQ message routing key.
10665 func MessagingRabbitMQDestinationRoutingKey(val string) attribute.KeyValue {
10666 return MessagingRabbitMQDestinationRoutingKeyKey.String(val)
10667 }
10668
10669 // MessagingRabbitMQMessageDeliveryTag returns an attribute KeyValue conforming
10670 // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
10671 // represents the rabbitMQ message delivery tag.
10672 func MessagingRabbitMQMessageDeliveryTag(val int) attribute.KeyValue {
10673 return MessagingRabbitMQMessageDeliveryTagKey.Int(val)
10674 }
10675
10676 // MessagingRocketMQMessageDelayTimeLevel returns an attribute KeyValue
10677 // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
10678 // conventions. It represents the delay time level for delay message, which
10679 // determines the message delay time.
10680 func MessagingRocketMQMessageDelayTimeLevel(val int) attribute.KeyValue {
10681 return MessagingRocketMQMessageDelayTimeLevelKey.Int(val)
10682 }
10683
10684 // MessagingRocketMQMessageDeliveryTimestamp returns an attribute KeyValue
10685 // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
10686 // conventions. It represents the timestamp in milliseconds that the delay
10687 // message is expected to be delivered to consumer.
10688 func MessagingRocketMQMessageDeliveryTimestamp(val int) attribute.KeyValue {
10689 return MessagingRocketMQMessageDeliveryTimestampKey.Int(val)
10690 }
10691
10692 // MessagingRocketMQMessageGroup returns an attribute KeyValue conforming to the
10693 // "messaging.rocketmq.message.group" semantic conventions. It represents the it
10694 // is essential for FIFO message. Messages that belong to the same message group
10695 // are always processed one by one within the same consumer group.
10696 func MessagingRocketMQMessageGroup(val string) attribute.KeyValue {
10697 return MessagingRocketMQMessageGroupKey.String(val)
10698 }
10699
10700 // MessagingRocketMQMessageKeys returns an attribute KeyValue conforming to the
10701 // "messaging.rocketmq.message.keys" semantic conventions. It represents the
10702 // key(s) of message, another way to mark message besides message id.
10703 func MessagingRocketMQMessageKeys(val ...string) attribute.KeyValue {
10704 return MessagingRocketMQMessageKeysKey.StringSlice(val)
10705 }
10706
10707 // MessagingRocketMQMessageTag returns an attribute KeyValue conforming to the
10708 // "messaging.rocketmq.message.tag" semantic conventions. It represents the
10709 // secondary classifier of message besides topic.
10710 func MessagingRocketMQMessageTag(val string) attribute.KeyValue {
10711 return MessagingRocketMQMessageTagKey.String(val)
10712 }
10713
10714 // MessagingRocketMQNamespace returns an attribute KeyValue conforming to the
10715 // "messaging.rocketmq.namespace" semantic conventions. It represents the
10716 // namespace of RocketMQ resources, resources in different namespaces are
10717 // individual.
10718 func MessagingRocketMQNamespace(val string) attribute.KeyValue {
10719 return MessagingRocketMQNamespaceKey.String(val)
10720 }
10721
10722 // MessagingServiceBusMessageDeliveryCount returns an attribute KeyValue
10723 // conforming to the "messaging.servicebus.message.delivery_count" semantic
10724 // conventions. It represents the number of deliveries that have been attempted
10725 // for this message.
10726 func MessagingServiceBusMessageDeliveryCount(val int) attribute.KeyValue {
10727 return MessagingServiceBusMessageDeliveryCountKey.Int(val)
10728 }
10729
10730 // MessagingServiceBusMessageEnqueuedTime returns an attribute KeyValue
10731 // conforming to the "messaging.servicebus.message.enqueued_time" semantic
10732 // conventions. It represents the UTC epoch seconds at which the message has been
10733 // accepted and stored in the entity.
10734 func MessagingServiceBusMessageEnqueuedTime(val int) attribute.KeyValue {
10735 return MessagingServiceBusMessageEnqueuedTimeKey.Int(val)
10736 }
10737
10738 // Enum values for messaging.operation.type
10739 var (
10740 // A message is created. "Create" spans always refer to a single message and are
10741 // used to provide a unique creation context for messages in batch sending
10742 // scenarios.
10743 //
10744 // Stability: development
10745 MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
10746 // One or more messages are provided for sending to an intermediary. If a single
10747 // message is sent, the context of the "Send" span can be used as the creation
10748 // context and no "Create" span needs to be created.
10749 //
10750 // Stability: development
10751 MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
10752 // One or more messages are requested by a consumer. This operation refers to
10753 // pull-based scenarios, where consumers explicitly call methods of messaging
10754 // SDKs to receive messages.
10755 //
10756 // Stability: development
10757 MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
10758 // One or more messages are processed by a consumer.
10759 //
10760 // Stability: development
10761 MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
10762 // One or more messages are settled.
10763 //
10764 // Stability: development
10765 MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
10766 )
10767
10768 // Enum values for messaging.rocketmq.consumption_model
10769 var (
10770 // Clustering consumption model
10771 // Stability: development
10772 MessagingRocketMQConsumptionModelClustering = MessagingRocketMQConsumptionModelKey.String("clustering")
10773 // Broadcasting consumption model
10774 // Stability: development
10775 MessagingRocketMQConsumptionModelBroadcasting = MessagingRocketMQConsumptionModelKey.String("broadcasting")
10776 )
10777
10778 // Enum values for messaging.rocketmq.message.type
10779 var (
10780 // Normal message
10781 // Stability: development
10782 MessagingRocketMQMessageTypeNormal = MessagingRocketMQMessageTypeKey.String("normal")
10783 // FIFO message
10784 // Stability: development
10785 MessagingRocketMQMessageTypeFifo = MessagingRocketMQMessageTypeKey.String("fifo")
10786 // Delay message
10787 // Stability: development
10788 MessagingRocketMQMessageTypeDelay = MessagingRocketMQMessageTypeKey.String("delay")
10789 // Transaction message
10790 // Stability: development
10791 MessagingRocketMQMessageTypeTransaction = MessagingRocketMQMessageTypeKey.String("transaction")
10792 )
10793
10794 // Enum values for messaging.servicebus.disposition_status
10795 var (
10796 // Message is completed
10797 // Stability: development
10798 MessagingServiceBusDispositionStatusComplete = MessagingServiceBusDispositionStatusKey.String("complete")
10799 // Message is abandoned
10800 // Stability: development
10801 MessagingServiceBusDispositionStatusAbandon = MessagingServiceBusDispositionStatusKey.String("abandon")
10802 // Message is sent to dead letter queue
10803 // Stability: development
10804 MessagingServiceBusDispositionStatusDeadLetter = MessagingServiceBusDispositionStatusKey.String("dead_letter")
10805 // Message is deferred
10806 // Stability: development
10807 MessagingServiceBusDispositionStatusDefer = MessagingServiceBusDispositionStatusKey.String("defer")
10808 )
10809
10810 // Enum values for messaging.system
10811 var (
10812 // Apache ActiveMQ
10813 // Stability: development
10814 MessagingSystemActiveMQ = MessagingSystemKey.String("activemq")
10815 // Amazon Simple Notification Service (SNS)
10816 // Stability: development
10817 MessagingSystemAWSSNS = MessagingSystemKey.String("aws.sns")
10818 // Amazon Simple Queue Service (SQS)
10819 // Stability: development
10820 MessagingSystemAWSSQS = MessagingSystemKey.String("aws_sqs")
10821 // Azure Event Grid
10822 // Stability: development
10823 MessagingSystemEventGrid = MessagingSystemKey.String("eventgrid")
10824 // Azure Event Hubs
10825 // Stability: development
10826 MessagingSystemEventHubs = MessagingSystemKey.String("eventhubs")
10827 // Azure Service Bus
10828 // Stability: development
10829 MessagingSystemServiceBus = MessagingSystemKey.String("servicebus")
10830 // Google Cloud Pub/Sub
10831 // Stability: development
10832 MessagingSystemGCPPubSub = MessagingSystemKey.String("gcp_pubsub")
10833 // Java Message Service
10834 // Stability: development
10835 MessagingSystemJMS = MessagingSystemKey.String("jms")
10836 // Apache Kafka
10837 // Stability: development
10838 MessagingSystemKafka = MessagingSystemKey.String("kafka")
10839 // RabbitMQ
10840 // Stability: development
10841 MessagingSystemRabbitMQ = MessagingSystemKey.String("rabbitmq")
10842 // Apache RocketMQ
10843 // Stability: development
10844 MessagingSystemRocketMQ = MessagingSystemKey.String("rocketmq")
10845 // Apache Pulsar
10846 // Stability: development
10847 MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
10848 )
10849
10850 // Namespace: network
10851 const (
10852 // NetworkCarrierICCKey is the attribute Key conforming to the
10853 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
10854 // alpha-2 2-character country code associated with the mobile carrier network.
10855 //
10856 // Type: string
10857 // RequirementLevel: Recommended
10858 // Stability: Development
10859 //
10860 // Examples: DE
10861 NetworkCarrierICCKey = attribute.Key("network.carrier.icc")
10862
10863 // NetworkCarrierMCCKey is the attribute Key conforming to the
10864 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
10865 // country code.
10866 //
10867 // Type: string
10868 // RequirementLevel: Recommended
10869 // Stability: Development
10870 //
10871 // Examples: 310
10872 NetworkCarrierMCCKey = attribute.Key("network.carrier.mcc")
10873
10874 // NetworkCarrierMNCKey is the attribute Key conforming to the
10875 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
10876 // network code.
10877 //
10878 // Type: string
10879 // RequirementLevel: Recommended
10880 // Stability: Development
10881 //
10882 // Examples: 001
10883 NetworkCarrierMNCKey = attribute.Key("network.carrier.mnc")
10884
10885 // NetworkCarrierNameKey is the attribute Key conforming to the
10886 // "network.carrier.name" semantic conventions. It represents the name of the
10887 // mobile carrier.
10888 //
10889 // Type: string
10890 // RequirementLevel: Recommended
10891 // Stability: Development
10892 //
10893 // Examples: sprint
10894 NetworkCarrierNameKey = attribute.Key("network.carrier.name")
10895
10896 // NetworkConnectionStateKey is the attribute Key conforming to the
10897 // "network.connection.state" semantic conventions. It represents the state of
10898 // network connection.
10899 //
10900 // Type: Enum
10901 // RequirementLevel: Recommended
10902 // Stability: Development
10903 //
10904 // Examples: "close_wait"
10905 // Note: Connection states are defined as part of the [rfc9293]
10906 //
10907 // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2
10908 NetworkConnectionStateKey = attribute.Key("network.connection.state")
10909
10910 // NetworkConnectionSubtypeKey is the attribute Key conforming to the
10911 // "network.connection.subtype" semantic conventions. It represents the this
10912 // describes more details regarding the connection.type. It may be the type of
10913 // cell technology connection, but it could be used for describing details about
10914 // a wifi connection.
10915 //
10916 // Type: Enum
10917 // RequirementLevel: Recommended
10918 // Stability: Development
10919 //
10920 // Examples: LTE
10921 NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
10922
10923 // NetworkConnectionTypeKey is the attribute Key conforming to the
10924 // "network.connection.type" semantic conventions. It represents the internet
10925 // connection type.
10926 //
10927 // Type: Enum
10928 // RequirementLevel: Recommended
10929 // Stability: Development
10930 //
10931 // Examples: wifi
10932 NetworkConnectionTypeKey = attribute.Key("network.connection.type")
10933
10934 // NetworkInterfaceNameKey is the attribute Key conforming to the
10935 // "network.interface.name" semantic conventions. It represents the network
10936 // interface name.
10937 //
10938 // Type: string
10939 // RequirementLevel: Recommended
10940 // Stability: Development
10941 //
10942 // Examples: "lo", "eth0"
10943 NetworkInterfaceNameKey = attribute.Key("network.interface.name")
10944
10945 // NetworkIODirectionKey is the attribute Key conforming to the
10946 // "network.io.direction" semantic conventions. It represents the network IO
10947 // operation direction.
10948 //
10949 // Type: Enum
10950 // RequirementLevel: Recommended
10951 // Stability: Development
10952 //
10953 // Examples: "transmit"
10954 NetworkIODirectionKey = attribute.Key("network.io.direction")
10955
10956 // NetworkLocalAddressKey is the attribute Key conforming to the
10957 // "network.local.address" semantic conventions. It represents the local address
10958 // of the network connection - IP address or Unix domain socket name.
10959 //
10960 // Type: string
10961 // RequirementLevel: Recommended
10962 // Stability: Stable
10963 //
10964 // Examples: "10.1.2.80", "/tmp/my.sock"
10965 NetworkLocalAddressKey = attribute.Key("network.local.address")
10966
10967 // NetworkLocalPortKey is the attribute Key conforming to the
10968 // "network.local.port" semantic conventions. It represents the local port
10969 // number of the network connection.
10970 //
10971 // Type: int
10972 // RequirementLevel: Recommended
10973 // Stability: Stable
10974 //
10975 // Examples: 65123
10976 NetworkLocalPortKey = attribute.Key("network.local.port")
10977
10978 // NetworkPeerAddressKey is the attribute Key conforming to the
10979 // "network.peer.address" semantic conventions. It represents the peer address
10980 // of the network connection - IP address or Unix domain socket name.
10981 //
10982 // Type: string
10983 // RequirementLevel: Recommended
10984 // Stability: Stable
10985 //
10986 // Examples: "10.1.2.80", "/tmp/my.sock"
10987 NetworkPeerAddressKey = attribute.Key("network.peer.address")
10988
10989 // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
10990 // semantic conventions. It represents the peer port number of the network
10991 // connection.
10992 //
10993 // Type: int
10994 // RequirementLevel: Recommended
10995 // Stability: Stable
10996 //
10997 // Examples: 65123
10998 NetworkPeerPortKey = attribute.Key("network.peer.port")
10999
11000 // NetworkProtocolNameKey is the attribute Key conforming to the
11001 // "network.protocol.name" semantic conventions. It represents the
11002 // [OSI application layer] or non-OSI equivalent.
11003 //
11004 // Type: string
11005 // RequirementLevel: Recommended
11006 // Stability: Stable
11007 //
11008 // Examples: "amqp", "http", "mqtt"
11009 // Note: The value SHOULD be normalized to lowercase.
11010 //
11011 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
11012 NetworkProtocolNameKey = attribute.Key("network.protocol.name")
11013
11014 // NetworkProtocolVersionKey is the attribute Key conforming to the
11015 // "network.protocol.version" semantic conventions. It represents the actual
11016 // version of the protocol used for network communication.
11017 //
11018 // Type: string
11019 // RequirementLevel: Recommended
11020 // Stability: Stable
11021 //
11022 // Examples: "1.1", "2"
11023 // Note: If protocol version is subject to negotiation (for example using [ALPN]
11024 // ), this attribute SHOULD be set to the negotiated version. If the actual
11025 // protocol version is not known, this attribute SHOULD NOT be set.
11026 //
11027 // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
11028 NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
11029
11030 // NetworkTransportKey is the attribute Key conforming to the
11031 // "network.transport" semantic conventions. It represents the
11032 // [OSI transport layer] or [inter-process communication method].
11033 //
11034 // Type: Enum
11035 // RequirementLevel: Recommended
11036 // Stability: Stable
11037 //
11038 // Examples: "tcp", "udp"
11039 // Note: The value SHOULD be normalized to lowercase.
11040 //
11041 // Consider always setting the transport when setting a port number, since
11042 // a port number is ambiguous without knowing the transport. For example
11043 // different processes could be listening on TCP port 12345 and UDP port 12345.
11044 //
11045 // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer
11046 // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
11047 NetworkTransportKey = attribute.Key("network.transport")
11048
11049 // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
11050 // conventions. It represents the [OSI network layer] or non-OSI equivalent.
11051 //
11052 // Type: Enum
11053 // RequirementLevel: Recommended
11054 // Stability: Stable
11055 //
11056 // Examples: "ipv4", "ipv6"
11057 // Note: The value SHOULD be normalized to lowercase.
11058 //
11059 // [OSI network layer]: https://wikipedia.org/wiki/Network_layer
11060 NetworkTypeKey = attribute.Key("network.type")
11061 )
11062
11063 // NetworkCarrierICC returns an attribute KeyValue conforming to the
11064 // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
11065 // alpha-2 2-character country code associated with the mobile carrier network.
11066 func NetworkCarrierICC(val string) attribute.KeyValue {
11067 return NetworkCarrierICCKey.String(val)
11068 }
11069
11070 // NetworkCarrierMCC returns an attribute KeyValue conforming to the
11071 // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
11072 // country code.
11073 func NetworkCarrierMCC(val string) attribute.KeyValue {
11074 return NetworkCarrierMCCKey.String(val)
11075 }
11076
11077 // NetworkCarrierMNC returns an attribute KeyValue conforming to the
11078 // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
11079 // network code.
11080 func NetworkCarrierMNC(val string) attribute.KeyValue {
11081 return NetworkCarrierMNCKey.String(val)
11082 }
11083
11084 // NetworkCarrierName returns an attribute KeyValue conforming to the
11085 // "network.carrier.name" semantic conventions. It represents the name of the
11086 // mobile carrier.
11087 func NetworkCarrierName(val string) attribute.KeyValue {
11088 return NetworkCarrierNameKey.String(val)
11089 }
11090
11091 // NetworkInterfaceName returns an attribute KeyValue conforming to the
11092 // "network.interface.name" semantic conventions. It represents the network
11093 // interface name.
11094 func NetworkInterfaceName(val string) attribute.KeyValue {
11095 return NetworkInterfaceNameKey.String(val)
11096 }
11097
11098 // NetworkLocalAddress returns an attribute KeyValue conforming to the
11099 // "network.local.address" semantic conventions. It represents the local address
11100 // of the network connection - IP address or Unix domain socket name.
11101 func NetworkLocalAddress(val string) attribute.KeyValue {
11102 return NetworkLocalAddressKey.String(val)
11103 }
11104
11105 // NetworkLocalPort returns an attribute KeyValue conforming to the
11106 // "network.local.port" semantic conventions. It represents the local port number
11107 // of the network connection.
11108 func NetworkLocalPort(val int) attribute.KeyValue {
11109 return NetworkLocalPortKey.Int(val)
11110 }
11111
11112 // NetworkPeerAddress returns an attribute KeyValue conforming to the
11113 // "network.peer.address" semantic conventions. It represents the peer address of
11114 // the network connection - IP address or Unix domain socket name.
11115 func NetworkPeerAddress(val string) attribute.KeyValue {
11116 return NetworkPeerAddressKey.String(val)
11117 }
11118
11119 // NetworkPeerPort returns an attribute KeyValue conforming to the
11120 // "network.peer.port" semantic conventions. It represents the peer port number
11121 // of the network connection.
11122 func NetworkPeerPort(val int) attribute.KeyValue {
11123 return NetworkPeerPortKey.Int(val)
11124 }
11125
11126 // NetworkProtocolName returns an attribute KeyValue conforming to the
11127 // "network.protocol.name" semantic conventions. It represents the
11128 // [OSI application layer] or non-OSI equivalent.
11129 //
11130 // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
11131 func NetworkProtocolName(val string) attribute.KeyValue {
11132 return NetworkProtocolNameKey.String(val)
11133 }
11134
11135 // NetworkProtocolVersion returns an attribute KeyValue conforming to the
11136 // "network.protocol.version" semantic conventions. It represents the actual
11137 // version of the protocol used for network communication.
11138 func NetworkProtocolVersion(val string) attribute.KeyValue {
11139 return NetworkProtocolVersionKey.String(val)
11140 }
11141
11142 // Enum values for network.connection.state
11143 var (
11144 // closed
11145 // Stability: development
11146 NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed")
11147 // close_wait
11148 // Stability: development
11149 NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait")
11150 // closing
11151 // Stability: development
11152 NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing")
11153 // established
11154 // Stability: development
11155 NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established")
11156 // fin_wait_1
11157 // Stability: development
11158 NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1")
11159 // fin_wait_2
11160 // Stability: development
11161 NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2")
11162 // last_ack
11163 // Stability: development
11164 NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack")
11165 // listen
11166 // Stability: development
11167 NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen")
11168 // syn_received
11169 // Stability: development
11170 NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received")
11171 // syn_sent
11172 // Stability: development
11173 NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent")
11174 // time_wait
11175 // Stability: development
11176 NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait")
11177 )
11178
11179 // Enum values for network.connection.subtype
11180 var (
11181 // GPRS
11182 // Stability: development
11183 NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
11184 // EDGE
11185 // Stability: development
11186 NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
11187 // UMTS
11188 // Stability: development
11189 NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
11190 // CDMA
11191 // Stability: development
11192 NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
11193 // EVDO Rel. 0
11194 // Stability: development
11195 NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
11196 // EVDO Rev. A
11197 // Stability: development
11198 NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
11199 // CDMA2000 1XRTT
11200 // Stability: development
11201 NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
11202 // HSDPA
11203 // Stability: development
11204 NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
11205 // HSUPA
11206 // Stability: development
11207 NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
11208 // HSPA
11209 // Stability: development
11210 NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
11211 // IDEN
11212 // Stability: development
11213 NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
11214 // EVDO Rev. B
11215 // Stability: development
11216 NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
11217 // LTE
11218 // Stability: development
11219 NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
11220 // EHRPD
11221 // Stability: development
11222 NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
11223 // HSPAP
11224 // Stability: development
11225 NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
11226 // GSM
11227 // Stability: development
11228 NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
11229 // TD-SCDMA
11230 // Stability: development
11231 NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
11232 // IWLAN
11233 // Stability: development
11234 NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
11235 // 5G NR (New Radio)
11236 // Stability: development
11237 NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
11238 // 5G NRNSA (New Radio Non-Standalone)
11239 // Stability: development
11240 NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
11241 // LTE CA
11242 // Stability: development
11243 NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
11244 )
11245
11246 // Enum values for network.connection.type
11247 var (
11248 // wifi
11249 // Stability: development
11250 NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
11251 // wired
11252 // Stability: development
11253 NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
11254 // cell
11255 // Stability: development
11256 NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
11257 // unavailable
11258 // Stability: development
11259 NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
11260 // unknown
11261 // Stability: development
11262 NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
11263 )
11264
11265 // Enum values for network.io.direction
11266 var (
11267 // transmit
11268 // Stability: development
11269 NetworkIODirectionTransmit = NetworkIODirectionKey.String("transmit")
11270 // receive
11271 // Stability: development
11272 NetworkIODirectionReceive = NetworkIODirectionKey.String("receive")
11273 )
11274
11275 // Enum values for network.transport
11276 var (
11277 // TCP
11278 // Stability: stable
11279 NetworkTransportTCP = NetworkTransportKey.String("tcp")
11280 // UDP
11281 // Stability: stable
11282 NetworkTransportUDP = NetworkTransportKey.String("udp")
11283 // Named or anonymous pipe.
11284 // Stability: stable
11285 NetworkTransportPipe = NetworkTransportKey.String("pipe")
11286 // Unix domain socket
11287 // Stability: stable
11288 NetworkTransportUnix = NetworkTransportKey.String("unix")
11289 // QUIC
11290 // Stability: stable
11291 NetworkTransportQUIC = NetworkTransportKey.String("quic")
11292 )
11293
11294 // Enum values for network.type
11295 var (
11296 // IPv4
11297 // Stability: stable
11298 NetworkTypeIPv4 = NetworkTypeKey.String("ipv4")
11299 // IPv6
11300 // Stability: stable
11301 NetworkTypeIPv6 = NetworkTypeKey.String("ipv6")
11302 )
11303
11304 // Namespace: nfs
11305 const (
11306 // NfsOperationNameKey is the attribute Key conforming to the
11307 // "nfs.operation.name" semantic conventions. It represents the NFSv4+ operation
11308 // name.
11309 //
11310 // Type: string
11311 // RequirementLevel: Recommended
11312 // Stability: Development
11313 //
11314 // Examples: "OPEN", "READ", "GETATTR"
11315 NfsOperationNameKey = attribute.Key("nfs.operation.name")
11316
11317 // NfsServerRepcacheStatusKey is the attribute Key conforming to the
11318 // "nfs.server.repcache.status" semantic conventions. It represents the linux:
11319 // one of "hit" (NFSD_STATS_RC_HITS), "miss" (NFSD_STATS_RC_MISSES), or
11320 // "nocache" (NFSD_STATS_RC_NOCACHE -- uncacheable).
11321 //
11322 // Type: string
11323 // RequirementLevel: Recommended
11324 // Stability: Development
11325 //
11326 // Examples: hit
11327 NfsServerRepcacheStatusKey = attribute.Key("nfs.server.repcache.status")
11328 )
11329
11330 // NfsOperationName returns an attribute KeyValue conforming to the
11331 // "nfs.operation.name" semantic conventions. It represents the NFSv4+ operation
11332 // name.
11333 func NfsOperationName(val string) attribute.KeyValue {
11334 return NfsOperationNameKey.String(val)
11335 }
11336
11337 // NfsServerRepcacheStatus returns an attribute KeyValue conforming to the
11338 // "nfs.server.repcache.status" semantic conventions. It represents the linux:
11339 // one of "hit" (NFSD_STATS_RC_HITS), "miss" (NFSD_STATS_RC_MISSES), or "nocache"
11340 // (NFSD_STATS_RC_NOCACHE -- uncacheable).
11341 func NfsServerRepcacheStatus(val string) attribute.KeyValue {
11342 return NfsServerRepcacheStatusKey.String(val)
11343 }
11344
11345 // Namespace: oci
11346 const (
11347 // OCIManifestDigestKey is the attribute Key conforming to the
11348 // "oci.manifest.digest" semantic conventions. It represents the digest of the
11349 // OCI image manifest. For container images specifically is the digest by which
11350 // the container image is known.
11351 //
11352 // Type: string
11353 // RequirementLevel: Recommended
11354 // Stability: Development
11355 //
11356 // Examples:
11357 // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
11358 // Note: Follows [OCI Image Manifest Specification], and specifically the
11359 // [Digest property].
11360 // An example can be found in [Example Image Manifest].
11361 //
11362 // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
11363 // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
11364 // [Example Image Manifest]: https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest
11365 OCIManifestDigestKey = attribute.Key("oci.manifest.digest")
11366 )
11367
11368 // OCIManifestDigest returns an attribute KeyValue conforming to the
11369 // "oci.manifest.digest" semantic conventions. It represents the digest of the
11370 // OCI image manifest. For container images specifically is the digest by which
11371 // the container image is known.
11372 func OCIManifestDigest(val string) attribute.KeyValue {
11373 return OCIManifestDigestKey.String(val)
11374 }
11375
11376 // Namespace: onc_rpc
11377 const (
11378 // OncRPCProcedureNameKey is the attribute Key conforming to the
11379 // "onc_rpc.procedure.name" semantic conventions. It represents the ONC/Sun RPC
11380 // procedure name.
11381 //
11382 // Type: string
11383 // RequirementLevel: Recommended
11384 // Stability: Development
11385 //
11386 // Examples: "OPEN", "READ", "GETATTR"
11387 OncRPCProcedureNameKey = attribute.Key("onc_rpc.procedure.name")
11388
11389 // OncRPCProcedureNumberKey is the attribute Key conforming to the
11390 // "onc_rpc.procedure.number" semantic conventions. It represents the ONC/Sun
11391 // RPC procedure number.
11392 //
11393 // Type: int
11394 // RequirementLevel: Recommended
11395 // Stability: Development
11396 //
11397 // Examples:
11398 OncRPCProcedureNumberKey = attribute.Key("onc_rpc.procedure.number")
11399
11400 // OncRPCProgramNameKey is the attribute Key conforming to the
11401 // "onc_rpc.program.name" semantic conventions. It represents the ONC/Sun RPC
11402 // program name.
11403 //
11404 // Type: string
11405 // RequirementLevel: Recommended
11406 // Stability: Development
11407 //
11408 // Examples: "portmapper", "nfs"
11409 OncRPCProgramNameKey = attribute.Key("onc_rpc.program.name")
11410
11411 // OncRPCVersionKey is the attribute Key conforming to the "onc_rpc.version"
11412 // semantic conventions. It represents the ONC/Sun RPC program version.
11413 //
11414 // Type: int
11415 // RequirementLevel: Recommended
11416 // Stability: Development
11417 //
11418 // Examples:
11419 OncRPCVersionKey = attribute.Key("onc_rpc.version")
11420 )
11421
11422 // OncRPCProcedureName returns an attribute KeyValue conforming to the
11423 // "onc_rpc.procedure.name" semantic conventions. It represents the ONC/Sun RPC
11424 // procedure name.
11425 func OncRPCProcedureName(val string) attribute.KeyValue {
11426 return OncRPCProcedureNameKey.String(val)
11427 }
11428
11429 // OncRPCProcedureNumber returns an attribute KeyValue conforming to the
11430 // "onc_rpc.procedure.number" semantic conventions. It represents the ONC/Sun RPC
11431 // procedure number.
11432 func OncRPCProcedureNumber(val int) attribute.KeyValue {
11433 return OncRPCProcedureNumberKey.Int(val)
11434 }
11435
11436 // OncRPCProgramName returns an attribute KeyValue conforming to the
11437 // "onc_rpc.program.name" semantic conventions. It represents the ONC/Sun RPC
11438 // program name.
11439 func OncRPCProgramName(val string) attribute.KeyValue {
11440 return OncRPCProgramNameKey.String(val)
11441 }
11442
11443 // OncRPCVersion returns an attribute KeyValue conforming to the
11444 // "onc_rpc.version" semantic conventions. It represents the ONC/Sun RPC program
11445 // version.
11446 func OncRPCVersion(val int) attribute.KeyValue {
11447 return OncRPCVersionKey.Int(val)
11448 }
11449
11450 // Namespace: openai
11451 const (
11452 // OpenAIRequestServiceTierKey is the attribute Key conforming to the
11453 // "openai.request.service_tier" semantic conventions. It represents the service
11454 // tier requested. May be a specific tier, default, or auto.
11455 //
11456 // Type: Enum
11457 // RequirementLevel: Recommended
11458 // Stability: Development
11459 //
11460 // Examples: "auto", "default"
11461 OpenAIRequestServiceTierKey = attribute.Key("openai.request.service_tier")
11462
11463 // OpenAIResponseServiceTierKey is the attribute Key conforming to the
11464 // "openai.response.service_tier" semantic conventions. It represents the
11465 // service tier used for the response.
11466 //
11467 // Type: string
11468 // RequirementLevel: Recommended
11469 // Stability: Development
11470 //
11471 // Examples: "scale", "default"
11472 OpenAIResponseServiceTierKey = attribute.Key("openai.response.service_tier")
11473
11474 // OpenAIResponseSystemFingerprintKey is the attribute Key conforming to the
11475 // "openai.response.system_fingerprint" semantic conventions. It represents a
11476 // fingerprint to track any eventual change in the Generative AI environment.
11477 //
11478 // Type: string
11479 // RequirementLevel: Recommended
11480 // Stability: Development
11481 //
11482 // Examples: "fp_44709d6fcb"
11483 OpenAIResponseSystemFingerprintKey = attribute.Key("openai.response.system_fingerprint")
11484 )
11485
11486 // OpenAIResponseServiceTier returns an attribute KeyValue conforming to the
11487 // "openai.response.service_tier" semantic conventions. It represents the service
11488 // tier used for the response.
11489 func OpenAIResponseServiceTier(val string) attribute.KeyValue {
11490 return OpenAIResponseServiceTierKey.String(val)
11491 }
11492
11493 // OpenAIResponseSystemFingerprint returns an attribute KeyValue conforming to
11494 // the "openai.response.system_fingerprint" semantic conventions. It represents a
11495 // fingerprint to track any eventual change in the Generative AI environment.
11496 func OpenAIResponseSystemFingerprint(val string) attribute.KeyValue {
11497 return OpenAIResponseSystemFingerprintKey.String(val)
11498 }
11499
11500 // Enum values for openai.request.service_tier
11501 var (
11502 // The system will utilize scale tier credits until they are exhausted.
11503 // Stability: development
11504 OpenAIRequestServiceTierAuto = OpenAIRequestServiceTierKey.String("auto")
11505 // The system will utilize the default scale tier.
11506 // Stability: development
11507 OpenAIRequestServiceTierDefault = OpenAIRequestServiceTierKey.String("default")
11508 )
11509
11510 // Namespace: openshift
11511 const (
11512 // OpenShiftClusterquotaNameKey is the attribute Key conforming to the
11513 // "openshift.clusterquota.name" semantic conventions. It represents the name of
11514 // the cluster quota.
11515 //
11516 // Type: string
11517 // RequirementLevel: Recommended
11518 // Stability: Development
11519 //
11520 // Examples: "opentelemetry"
11521 OpenShiftClusterquotaNameKey = attribute.Key("openshift.clusterquota.name")
11522
11523 // OpenShiftClusterquotaUIDKey is the attribute Key conforming to the
11524 // "openshift.clusterquota.uid" semantic conventions. It represents the UID of
11525 // the cluster quota.
11526 //
11527 // Type: string
11528 // RequirementLevel: Recommended
11529 // Stability: Development
11530 //
11531 // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
11532 OpenShiftClusterquotaUIDKey = attribute.Key("openshift.clusterquota.uid")
11533 )
11534
11535 // OpenShiftClusterquotaName returns an attribute KeyValue conforming to the
11536 // "openshift.clusterquota.name" semantic conventions. It represents the name of
11537 // the cluster quota.
11538 func OpenShiftClusterquotaName(val string) attribute.KeyValue {
11539 return OpenShiftClusterquotaNameKey.String(val)
11540 }
11541
11542 // OpenShiftClusterquotaUID returns an attribute KeyValue conforming to the
11543 // "openshift.clusterquota.uid" semantic conventions. It represents the UID of
11544 // the cluster quota.
11545 func OpenShiftClusterquotaUID(val string) attribute.KeyValue {
11546 return OpenShiftClusterquotaUIDKey.String(val)
11547 }
11548
11549 // Namespace: opentracing
11550 const (
11551 // OpenTracingRefTypeKey is the attribute Key conforming to the
11552 // "opentracing.ref_type" semantic conventions. It represents the parent-child
11553 // Reference type.
11554 //
11555 // Type: Enum
11556 // RequirementLevel: Recommended
11557 // Stability: Development
11558 //
11559 // Examples:
11560 // Note: The causal relationship between a child Span and a parent Span.
11561 OpenTracingRefTypeKey = attribute.Key("opentracing.ref_type")
11562 )
11563
11564 // Enum values for opentracing.ref_type
11565 var (
11566 // The parent Span depends on the child Span in some capacity
11567 // Stability: development
11568 OpenTracingRefTypeChildOf = OpenTracingRefTypeKey.String("child_of")
11569 // The parent Span doesn't depend in any way on the result of the child Span
11570 // Stability: development
11571 OpenTracingRefTypeFollowsFrom = OpenTracingRefTypeKey.String("follows_from")
11572 )
11573
11574 // Namespace: os
11575 const (
11576 // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
11577 // conventions. It represents the unique identifier for a particular build or
11578 // compilation of the operating system.
11579 //
11580 // Type: string
11581 // RequirementLevel: Recommended
11582 // Stability: Development
11583 //
11584 // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
11585 OSBuildIDKey = attribute.Key("os.build_id")
11586
11587 // OSDescriptionKey is the attribute Key conforming to the "os.description"
11588 // semantic conventions. It represents the human readable (not intended to be
11589 // parsed) OS version information, like e.g. reported by `ver` or
11590 // `lsb_release -a` commands.
11591 //
11592 // Type: string
11593 // RequirementLevel: Recommended
11594 // Stability: Development
11595 //
11596 // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
11597 OSDescriptionKey = attribute.Key("os.description")
11598
11599 // OSNameKey is the attribute Key conforming to the "os.name" semantic
11600 // conventions. It represents the human readable operating system name.
11601 //
11602 // Type: string
11603 // RequirementLevel: Recommended
11604 // Stability: Development
11605 //
11606 // Examples: "iOS", "Android", "Ubuntu"
11607 OSNameKey = attribute.Key("os.name")
11608
11609 // OSTypeKey is the attribute Key conforming to the "os.type" semantic
11610 // conventions. It represents the operating system type.
11611 //
11612 // Type: Enum
11613 // RequirementLevel: Recommended
11614 // Stability: Development
11615 //
11616 // Examples:
11617 OSTypeKey = attribute.Key("os.type")
11618
11619 // OSVersionKey is the attribute Key conforming to the "os.version" semantic
11620 // conventions. It represents the version string of the operating system as
11621 // defined in [Version Attributes].
11622 //
11623 // Type: string
11624 // RequirementLevel: Recommended
11625 // Stability: Development
11626 //
11627 // Examples: "14.2.1", "18.04.1"
11628 //
11629 // [Version Attributes]: /docs/resource/README.md#version-attributes
11630 OSVersionKey = attribute.Key("os.version")
11631 )
11632
11633 // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
11634 // semantic conventions. It represents the unique identifier for a particular
11635 // build or compilation of the operating system.
11636 func OSBuildID(val string) attribute.KeyValue {
11637 return OSBuildIDKey.String(val)
11638 }
11639
11640 // OSDescription returns an attribute KeyValue conforming to the "os.description"
11641 // semantic conventions. It represents the human readable (not intended to be
11642 // parsed) OS version information, like e.g. reported by `ver` or
11643 // `lsb_release -a` commands.
11644 func OSDescription(val string) attribute.KeyValue {
11645 return OSDescriptionKey.String(val)
11646 }
11647
11648 // OSName returns an attribute KeyValue conforming to the "os.name" semantic
11649 // conventions. It represents the human readable operating system name.
11650 func OSName(val string) attribute.KeyValue {
11651 return OSNameKey.String(val)
11652 }
11653
11654 // OSVersion returns an attribute KeyValue conforming to the "os.version"
11655 // semantic conventions. It represents the version string of the operating system
11656 // as defined in [Version Attributes].
11657 //
11658 // [Version Attributes]: /docs/resource/README.md#version-attributes
11659 func OSVersion(val string) attribute.KeyValue {
11660 return OSVersionKey.String(val)
11661 }
11662
11663 // Enum values for os.type
11664 var (
11665 // Microsoft Windows
11666 // Stability: development
11667 OSTypeWindows = OSTypeKey.String("windows")
11668 // Linux
11669 // Stability: development
11670 OSTypeLinux = OSTypeKey.String("linux")
11671 // Apple Darwin
11672 // Stability: development
11673 OSTypeDarwin = OSTypeKey.String("darwin")
11674 // FreeBSD
11675 // Stability: development
11676 OSTypeFreeBSD = OSTypeKey.String("freebsd")
11677 // NetBSD
11678 // Stability: development
11679 OSTypeNetBSD = OSTypeKey.String("netbsd")
11680 // OpenBSD
11681 // Stability: development
11682 OSTypeOpenBSD = OSTypeKey.String("openbsd")
11683 // DragonFly BSD
11684 // Stability: development
11685 OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
11686 // HP-UX (Hewlett Packard Unix)
11687 // Stability: development
11688 OSTypeHPUX = OSTypeKey.String("hpux")
11689 // AIX (Advanced Interactive eXecutive)
11690 // Stability: development
11691 OSTypeAIX = OSTypeKey.String("aix")
11692 // SunOS, Oracle Solaris
11693 // Stability: development
11694 OSTypeSolaris = OSTypeKey.String("solaris")
11695 // IBM z/OS
11696 // Stability: development
11697 OSTypeZOS = OSTypeKey.String("zos")
11698 )
11699
11700 // Namespace: otel
11701 const (
11702 // OTelComponentNameKey is the attribute Key conforming to the
11703 // "otel.component.name" semantic conventions. It represents a name uniquely
11704 // identifying the instance of the OpenTelemetry component within its containing
11705 // SDK instance.
11706 //
11707 // Type: string
11708 // RequirementLevel: Recommended
11709 // Stability: Development
11710 //
11711 // Examples: "otlp_grpc_span_exporter/0", "custom-name"
11712 // Note: Implementations SHOULD ensure a low cardinality for this attribute,
11713 // even across application or SDK restarts.
11714 // E.g. implementations MUST NOT use UUIDs as values for this attribute.
11715 //
11716 // Implementations MAY achieve these goals by following a
11717 // `<otel.component.type>/<instance-counter>` pattern, e.g.
11718 // `batching_span_processor/0`.
11719 // Hereby `otel.component.type` refers to the corresponding attribute value of
11720 // the component.
11721 //
11722 // The value of `instance-counter` MAY be automatically assigned by the
11723 // component and uniqueness within the enclosing SDK instance MUST be
11724 // guaranteed.
11725 // For example, `<instance-counter>` MAY be implemented by using a monotonically
11726 // increasing counter (starting with `0`), which is incremented every time an
11727 // instance of the given component type is started.
11728 //
11729 // With this implementation, for example the first Batching Span Processor would
11730 // have `batching_span_processor/0`
11731 // as `otel.component.name`, the second one `batching_span_processor/1` and so
11732 // on.
11733 // These values will therefore be reused in the case of an application restart.
11734 OTelComponentNameKey = attribute.Key("otel.component.name")
11735
11736 // OTelComponentTypeKey is the attribute Key conforming to the
11737 // "otel.component.type" semantic conventions. It represents a name identifying
11738 // the type of the OpenTelemetry component.
11739 //
11740 // Type: Enum
11741 // RequirementLevel: Recommended
11742 // Stability: Development
11743 //
11744 // Examples: "batching_span_processor", "com.example.MySpanExporter"
11745 // Note: If none of the standardized values apply, implementations SHOULD use
11746 // the language-defined name of the type.
11747 // E.g. for Java the fully qualified classname SHOULD be used in this case.
11748 OTelComponentTypeKey = attribute.Key("otel.component.type")
11749
11750 // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
11751 // semantic conventions. It represents the name of the instrumentation scope - (
11752 // `InstrumentationScope.Name` in OTLP).
11753 //
11754 // Type: string
11755 // RequirementLevel: Recommended
11756 // Stability: Stable
11757 //
11758 // Examples: "io.opentelemetry.contrib.mongodb"
11759 OTelScopeNameKey = attribute.Key("otel.scope.name")
11760
11761 // OTelScopeSchemaURLKey is the attribute Key conforming to the
11762 // "otel.scope.schema_url" semantic conventions. It represents the schema URL of
11763 // the instrumentation scope.
11764 //
11765 // Type: string
11766 // RequirementLevel: Recommended
11767 // Stability: Development
11768 //
11769 // Examples: "https://opentelemetry.io/schemas/1.31.0"
11770 OTelScopeSchemaURLKey = attribute.Key("otel.scope.schema_url")
11771
11772 // OTelScopeVersionKey is the attribute Key conforming to the
11773 // "otel.scope.version" semantic conventions. It represents the version of the
11774 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
11775 //
11776 // Type: string
11777 // RequirementLevel: Recommended
11778 // Stability: Stable
11779 //
11780 // Examples: "1.0.0"
11781 OTelScopeVersionKey = attribute.Key("otel.scope.version")
11782
11783 // OTelSpanParentOriginKey is the attribute Key conforming to the
11784 // "otel.span.parent.origin" semantic conventions. It represents the determines
11785 // whether the span has a parent span, and if so,
11786 // [whether it is a remote parent].
11787 //
11788 // Type: Enum
11789 // RequirementLevel: Recommended
11790 // Stability: Development
11791 //
11792 // Examples:
11793 //
11794 // [whether it is a remote parent]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
11795 OTelSpanParentOriginKey = attribute.Key("otel.span.parent.origin")
11796
11797 // OTelSpanSamplingResultKey is the attribute Key conforming to the
11798 // "otel.span.sampling_result" semantic conventions. It represents the result
11799 // value of the sampler for this span.
11800 //
11801 // Type: Enum
11802 // RequirementLevel: Recommended
11803 // Stability: Development
11804 //
11805 // Examples:
11806 OTelSpanSamplingResultKey = attribute.Key("otel.span.sampling_result")
11807
11808 // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
11809 // semantic conventions. It represents the name of the code, either "OK" or
11810 // "ERROR". MUST NOT be set if the status code is UNSET.
11811 //
11812 // Type: Enum
11813 // RequirementLevel: Recommended
11814 // Stability: Stable
11815 //
11816 // Examples:
11817 OTelStatusCodeKey = attribute.Key("otel.status_code")
11818
11819 // OTelStatusDescriptionKey is the attribute Key conforming to the
11820 // "otel.status_description" semantic conventions. It represents the description
11821 // of the Status if it has a value, otherwise not set.
11822 //
11823 // Type: string
11824 // RequirementLevel: Recommended
11825 // Stability: Stable
11826 //
11827 // Examples: "resource not found"
11828 OTelStatusDescriptionKey = attribute.Key("otel.status_description")
11829 )
11830
11831 // OTelComponentName returns an attribute KeyValue conforming to the
11832 // "otel.component.name" semantic conventions. It represents a name uniquely
11833 // identifying the instance of the OpenTelemetry component within its containing
11834 // SDK instance.
11835 func OTelComponentName(val string) attribute.KeyValue {
11836 return OTelComponentNameKey.String(val)
11837 }
11838
11839 // OTelScopeName returns an attribute KeyValue conforming to the
11840 // "otel.scope.name" semantic conventions. It represents the name of the
11841 // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
11842 func OTelScopeName(val string) attribute.KeyValue {
11843 return OTelScopeNameKey.String(val)
11844 }
11845
11846 // OTelScopeSchemaURL returns an attribute KeyValue conforming to the
11847 // "otel.scope.schema_url" semantic conventions. It represents the schema URL of
11848 // the instrumentation scope.
11849 func OTelScopeSchemaURL(val string) attribute.KeyValue {
11850 return OTelScopeSchemaURLKey.String(val)
11851 }
11852
11853 // OTelScopeVersion returns an attribute KeyValue conforming to the
11854 // "otel.scope.version" semantic conventions. It represents the version of the
11855 // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
11856 func OTelScopeVersion(val string) attribute.KeyValue {
11857 return OTelScopeVersionKey.String(val)
11858 }
11859
11860 // OTelStatusDescription returns an attribute KeyValue conforming to the
11861 // "otel.status_description" semantic conventions. It represents the description
11862 // of the Status if it has a value, otherwise not set.
11863 func OTelStatusDescription(val string) attribute.KeyValue {
11864 return OTelStatusDescriptionKey.String(val)
11865 }
11866
11867 // Enum values for otel.component.type
11868 var (
11869 // The builtin SDK batching span processor
11870 //
11871 // Stability: development
11872 OTelComponentTypeBatchingSpanProcessor = OTelComponentTypeKey.String("batching_span_processor")
11873 // The builtin SDK simple span processor
11874 //
11875 // Stability: development
11876 OTelComponentTypeSimpleSpanProcessor = OTelComponentTypeKey.String("simple_span_processor")
11877 // The builtin SDK batching log record processor
11878 //
11879 // Stability: development
11880 OTelComponentTypeBatchingLogProcessor = OTelComponentTypeKey.String("batching_log_processor")
11881 // The builtin SDK simple log record processor
11882 //
11883 // Stability: development
11884 OTelComponentTypeSimpleLogProcessor = OTelComponentTypeKey.String("simple_log_processor")
11885 // OTLP span exporter over gRPC with protobuf serialization
11886 //
11887 // Stability: development
11888 OTelComponentTypeOtlpGRPCSpanExporter = OTelComponentTypeKey.String("otlp_grpc_span_exporter")
11889 // OTLP span exporter over HTTP with protobuf serialization
11890 //
11891 // Stability: development
11892 OTelComponentTypeOtlpHTTPSpanExporter = OTelComponentTypeKey.String("otlp_http_span_exporter")
11893 // OTLP span exporter over HTTP with JSON serialization
11894 //
11895 // Stability: development
11896 OTelComponentTypeOtlpHTTPJSONSpanExporter = OTelComponentTypeKey.String("otlp_http_json_span_exporter")
11897 // Zipkin span exporter over HTTP
11898 //
11899 // Stability: development
11900 OTelComponentTypeZipkinHTTPSpanExporter = OTelComponentTypeKey.String("zipkin_http_span_exporter")
11901 // OTLP log record exporter over gRPC with protobuf serialization
11902 //
11903 // Stability: development
11904 OTelComponentTypeOtlpGRPCLogExporter = OTelComponentTypeKey.String("otlp_grpc_log_exporter")
11905 // OTLP log record exporter over HTTP with protobuf serialization
11906 //
11907 // Stability: development
11908 OTelComponentTypeOtlpHTTPLogExporter = OTelComponentTypeKey.String("otlp_http_log_exporter")
11909 // OTLP log record exporter over HTTP with JSON serialization
11910 //
11911 // Stability: development
11912 OTelComponentTypeOtlpHTTPJSONLogExporter = OTelComponentTypeKey.String("otlp_http_json_log_exporter")
11913 // The builtin SDK periodically exporting metric reader
11914 //
11915 // Stability: development
11916 OTelComponentTypePeriodicMetricReader = OTelComponentTypeKey.String("periodic_metric_reader")
11917 // OTLP metric exporter over gRPC with protobuf serialization
11918 //
11919 // Stability: development
11920 OTelComponentTypeOtlpGRPCMetricExporter = OTelComponentTypeKey.String("otlp_grpc_metric_exporter")
11921 // OTLP metric exporter over HTTP with protobuf serialization
11922 //
11923 // Stability: development
11924 OTelComponentTypeOtlpHTTPMetricExporter = OTelComponentTypeKey.String("otlp_http_metric_exporter")
11925 // OTLP metric exporter over HTTP with JSON serialization
11926 //
11927 // Stability: development
11928 OTelComponentTypeOtlpHTTPJSONMetricExporter = OTelComponentTypeKey.String("otlp_http_json_metric_exporter")
11929 // Prometheus metric exporter over HTTP with the default text-based format
11930 //
11931 // Stability: development
11932 OTelComponentTypePrometheusHTTPTextMetricExporter = OTelComponentTypeKey.String("prometheus_http_text_metric_exporter")
11933 )
11934
11935 // Enum values for otel.span.parent.origin
11936 var (
11937 // The span does not have a parent, it is a root span
11938 // Stability: development
11939 OTelSpanParentOriginNone = OTelSpanParentOriginKey.String("none")
11940 // The span has a parent and the parent's span context [isRemote()] is false
11941 // Stability: development
11942 //
11943 // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
11944 OTelSpanParentOriginLocal = OTelSpanParentOriginKey.String("local")
11945 // The span has a parent and the parent's span context [isRemote()] is true
11946 // Stability: development
11947 //
11948 // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
11949 OTelSpanParentOriginRemote = OTelSpanParentOriginKey.String("remote")
11950 )
11951
11952 // Enum values for otel.span.sampling_result
11953 var (
11954 // The span is not sampled and not recording
11955 // Stability: development
11956 OTelSpanSamplingResultDrop = OTelSpanSamplingResultKey.String("DROP")
11957 // The span is not sampled, but recording
11958 // Stability: development
11959 OTelSpanSamplingResultRecordOnly = OTelSpanSamplingResultKey.String("RECORD_ONLY")
11960 // The span is sampled and recording
11961 // Stability: development
11962 OTelSpanSamplingResultRecordAndSample = OTelSpanSamplingResultKey.String("RECORD_AND_SAMPLE")
11963 )
11964
11965 // Enum values for otel.status_code
11966 var (
11967 // The operation has been validated by an Application developer or Operator to
11968 // have completed successfully.
11969 // Stability: stable
11970 OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
11971 // The operation contains an error.
11972 // Stability: stable
11973 OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
11974 )
11975
11976 // Namespace: peer
11977 const (
11978 // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic
11979 // conventions. It represents the [`service.name`] of the remote service. SHOULD
11980 // be equal to the actual `service.name` resource attribute of the remote
11981 // service if any.
11982 //
11983 // Type: string
11984 // RequirementLevel: Recommended
11985 // Stability: Development
11986 //
11987 // Examples: AuthTokenCache
11988 // Note: Examples of `peer.service` that users may specify:
11989 //
11990 // - A Redis cache of auth tokens as `peer.service="AuthTokenCache"`.
11991 // - A gRPC service `rpc.service="io.opentelemetry.AuthService"` may be hosted
11992 // in both a gateway, `peer.service="ExternalApiService"` and a backend,
11993 // `peer.service="AuthService"`.
11994 //
11995 //
11996 // [`service.name`]: /docs/resource/README.md#service
11997 PeerServiceKey = attribute.Key("peer.service")
11998 )
11999
12000 // PeerService returns an attribute KeyValue conforming to the "peer.service"
12001 // semantic conventions. It represents the [`service.name`] of the remote
12002 // service. SHOULD be equal to the actual `service.name` resource attribute of
12003 // the remote service if any.
12004 //
12005 // [`service.name`]: /docs/resource/README.md#service
12006 func PeerService(val string) attribute.KeyValue {
12007 return PeerServiceKey.String(val)
12008 }
12009
12010 // Namespace: pprof
12011 const (
12012 // PprofLocationIsFoldedKey is the attribute Key conforming to the
12013 // "pprof.location.is_folded" semantic conventions. It represents the provides
12014 // an indication that multiple symbols map to this location's address, for
12015 // example due to identical code folding by the linker. In that case the line
12016 // information represents one of the multiple symbols. This field must be
12017 // recomputed when the symbolization state of the profile changes.
12018 //
12019 // Type: boolean
12020 // RequirementLevel: Recommended
12021 // Stability: Development
12022 //
12023 // Examples:
12024 PprofLocationIsFoldedKey = attribute.Key("pprof.location.is_folded")
12025
12026 // PprofMappingHasFilenamesKey is the attribute Key conforming to the
12027 // "pprof.mapping.has_filenames" semantic conventions. It represents the
12028 // indicates that there are filenames related to this mapping.
12029 //
12030 // Type: boolean
12031 // RequirementLevel: Recommended
12032 // Stability: Development
12033 //
12034 // Examples:
12035 PprofMappingHasFilenamesKey = attribute.Key("pprof.mapping.has_filenames")
12036
12037 // PprofMappingHasFunctionsKey is the attribute Key conforming to the
12038 // "pprof.mapping.has_functions" semantic conventions. It represents the
12039 // indicates that there are functions related to this mapping.
12040 //
12041 // Type: boolean
12042 // RequirementLevel: Recommended
12043 // Stability: Development
12044 //
12045 // Examples:
12046 PprofMappingHasFunctionsKey = attribute.Key("pprof.mapping.has_functions")
12047
12048 // PprofMappingHasInlineFramesKey is the attribute Key conforming to the
12049 // "pprof.mapping.has_inline_frames" semantic conventions. It represents the
12050 // indicates that there are inline frames related to this mapping.
12051 //
12052 // Type: boolean
12053 // RequirementLevel: Recommended
12054 // Stability: Development
12055 //
12056 // Examples:
12057 PprofMappingHasInlineFramesKey = attribute.Key("pprof.mapping.has_inline_frames")
12058
12059 // PprofMappingHasLineNumbersKey is the attribute Key conforming to the
12060 // "pprof.mapping.has_line_numbers" semantic conventions. It represents the
12061 // indicates that there are line numbers related to this mapping.
12062 //
12063 // Type: boolean
12064 // RequirementLevel: Recommended
12065 // Stability: Development
12066 //
12067 // Examples:
12068 PprofMappingHasLineNumbersKey = attribute.Key("pprof.mapping.has_line_numbers")
12069
12070 // PprofProfileCommentKey is the attribute Key conforming to the
12071 // "pprof.profile.comment" semantic conventions. It represents the free-form
12072 // text associated with the profile. This field should not be used to store any
12073 // machine-readable information, it is only for human-friendly content.
12074 //
12075 // Type: string[]
12076 // RequirementLevel: Recommended
12077 // Stability: Development
12078 //
12079 // Examples: "hello world", "bazinga"
12080 PprofProfileCommentKey = attribute.Key("pprof.profile.comment")
12081 )
12082
12083 // PprofLocationIsFolded returns an attribute KeyValue conforming to the
12084 // "pprof.location.is_folded" semantic conventions. It represents the provides an
12085 // indication that multiple symbols map to this location's address, for example
12086 // due to identical code folding by the linker. In that case the line information
12087 // represents one of the multiple symbols. This field must be recomputed when the
12088 // symbolization state of the profile changes.
12089 func PprofLocationIsFolded(val bool) attribute.KeyValue {
12090 return PprofLocationIsFoldedKey.Bool(val)
12091 }
12092
12093 // PprofMappingHasFilenames returns an attribute KeyValue conforming to the
12094 // "pprof.mapping.has_filenames" semantic conventions. It represents the
12095 // indicates that there are filenames related to this mapping.
12096 func PprofMappingHasFilenames(val bool) attribute.KeyValue {
12097 return PprofMappingHasFilenamesKey.Bool(val)
12098 }
12099
12100 // PprofMappingHasFunctions returns an attribute KeyValue conforming to the
12101 // "pprof.mapping.has_functions" semantic conventions. It represents the
12102 // indicates that there are functions related to this mapping.
12103 func PprofMappingHasFunctions(val bool) attribute.KeyValue {
12104 return PprofMappingHasFunctionsKey.Bool(val)
12105 }
12106
12107 // PprofMappingHasInlineFrames returns an attribute KeyValue conforming to the
12108 // "pprof.mapping.has_inline_frames" semantic conventions. It represents the
12109 // indicates that there are inline frames related to this mapping.
12110 func PprofMappingHasInlineFrames(val bool) attribute.KeyValue {
12111 return PprofMappingHasInlineFramesKey.Bool(val)
12112 }
12113
12114 // PprofMappingHasLineNumbers returns an attribute KeyValue conforming to the
12115 // "pprof.mapping.has_line_numbers" semantic conventions. It represents the
12116 // indicates that there are line numbers related to this mapping.
12117 func PprofMappingHasLineNumbers(val bool) attribute.KeyValue {
12118 return PprofMappingHasLineNumbersKey.Bool(val)
12119 }
12120
12121 // PprofProfileComment returns an attribute KeyValue conforming to the
12122 // "pprof.profile.comment" semantic conventions. It represents the free-form text
12123 // associated with the profile. This field should not be used to store any
12124 // machine-readable information, it is only for human-friendly content.
12125 func PprofProfileComment(val ...string) attribute.KeyValue {
12126 return PprofProfileCommentKey.StringSlice(val)
12127 }
12128
12129 // Namespace: process
12130 const (
12131 // ProcessArgsCountKey is the attribute Key conforming to the
12132 // "process.args_count" semantic conventions. It represents the length of the
12133 // process.command_args array.
12134 //
12135 // Type: int
12136 // RequirementLevel: Recommended
12137 // Stability: Development
12138 //
12139 // Examples: 4
12140 // Note: This field can be useful for querying or performing bucket analysis on
12141 // how many arguments were provided to start a process. More arguments may be an
12142 // indication of suspicious activity.
12143 ProcessArgsCountKey = attribute.Key("process.args_count")
12144
12145 // ProcessCommandKey is the attribute Key conforming to the "process.command"
12146 // semantic conventions. It represents the command used to launch the process
12147 // (i.e. the command name). On Linux based systems, can be set to the zeroth
12148 // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
12149 // extracted from `GetCommandLineW`.
12150 //
12151 // Type: string
12152 // RequirementLevel: Recommended
12153 // Stability: Development
12154 //
12155 // Examples: "cmd/otelcol"
12156 ProcessCommandKey = attribute.Key("process.command")
12157
12158 // ProcessCommandArgsKey is the attribute Key conforming to the
12159 // "process.command_args" semantic conventions. It represents the all the
12160 // command arguments (including the command/executable itself) as received by
12161 // the process. On Linux-based systems (and some other Unixoid systems
12162 // supporting procfs), can be set according to the list of null-delimited
12163 // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
12164 // would be the full argv vector passed to `main`. SHOULD NOT be collected by
12165 // default unless there is sanitization that excludes sensitive data.
12166 //
12167 // Type: string[]
12168 // RequirementLevel: Recommended
12169 // Stability: Development
12170 //
12171 // Examples: "cmd/otecol", "--config=config.yaml"
12172 ProcessCommandArgsKey = attribute.Key("process.command_args")
12173
12174 // ProcessCommandLineKey is the attribute Key conforming to the
12175 // "process.command_line" semantic conventions. It represents the full command
12176 // used to launch the process as a single string representing the full command.
12177 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
12178 // you have to assemble it just for monitoring; use `process.command_args`
12179 // instead. SHOULD NOT be collected by default unless there is sanitization that
12180 // excludes sensitive data.
12181 //
12182 // Type: string
12183 // RequirementLevel: Recommended
12184 // Stability: Development
12185 //
12186 // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
12187 ProcessCommandLineKey = attribute.Key("process.command_line")
12188
12189 // ProcessContextSwitchTypeKey is the attribute Key conforming to the
12190 // "process.context_switch.type" semantic conventions. It represents the
12191 // specifies whether the context switches for this data point were voluntary or
12192 // involuntary.
12193 //
12194 // Type: Enum
12195 // RequirementLevel: Recommended
12196 // Stability: Development
12197 //
12198 // Examples:
12199 ProcessContextSwitchTypeKey = attribute.Key("process.context_switch.type")
12200
12201 // ProcessCreationTimeKey is the attribute Key conforming to the
12202 // "process.creation.time" semantic conventions. It represents the date and time
12203 // the process was created, in ISO 8601 format.
12204 //
12205 // Type: string
12206 // RequirementLevel: Recommended
12207 // Stability: Development
12208 //
12209 // Examples: "2023-11-21T09:25:34.853Z"
12210 ProcessCreationTimeKey = attribute.Key("process.creation.time")
12211
12212 // ProcessExecutableBuildIDGNUKey is the attribute Key conforming to the
12213 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
12214 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
12215 //
12216 // Type: string
12217 // RequirementLevel: Recommended
12218 // Stability: Development
12219 //
12220 // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
12221 ProcessExecutableBuildIDGNUKey = attribute.Key("process.executable.build_id.gnu")
12222
12223 // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the
12224 // "process.executable.build_id.go" semantic conventions. It represents the Go
12225 // build ID as retrieved by `go tool buildid <go executable>`.
12226 //
12227 // Type: string
12228 // RequirementLevel: Recommended
12229 // Stability: Development
12230 //
12231 // Examples:
12232 // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
12233 ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
12234
12235 // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the
12236 // "process.executable.build_id.htlhash" semantic conventions. It represents the
12237 // profiling specific build ID for executables. See the OTel specification for
12238 // Profiles for more information.
12239 //
12240 // Type: string
12241 // RequirementLevel: Recommended
12242 // Stability: Development
12243 //
12244 // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
12245 ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash")
12246
12247 // ProcessExecutableNameKey is the attribute Key conforming to the
12248 // "process.executable.name" semantic conventions. It represents the name of the
12249 // process executable. On Linux based systems, this SHOULD be set to the base
12250 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to
12251 // the base name of `GetProcessImageFileNameW`.
12252 //
12253 // Type: string
12254 // RequirementLevel: Recommended
12255 // Stability: Development
12256 //
12257 // Examples: "otelcol"
12258 ProcessExecutableNameKey = attribute.Key("process.executable.name")
12259
12260 // ProcessExecutablePathKey is the attribute Key conforming to the
12261 // "process.executable.path" semantic conventions. It represents the full path
12262 // to the process executable. On Linux based systems, can be set to the target
12263 // of `proc/[pid]/exe`. On Windows, can be set to the result of
12264 // `GetProcessImageFileNameW`.
12265 //
12266 // Type: string
12267 // RequirementLevel: Recommended
12268 // Stability: Development
12269 //
12270 // Examples: "/usr/bin/cmd/otelcol"
12271 ProcessExecutablePathKey = attribute.Key("process.executable.path")
12272
12273 // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
12274 // semantic conventions. It represents the exit code of the process.
12275 //
12276 // Type: int
12277 // RequirementLevel: Recommended
12278 // Stability: Development
12279 //
12280 // Examples: 127
12281 ProcessExitCodeKey = attribute.Key("process.exit.code")
12282
12283 // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
12284 // semantic conventions. It represents the date and time the process exited, in
12285 // ISO 8601 format.
12286 //
12287 // Type: string
12288 // RequirementLevel: Recommended
12289 // Stability: Development
12290 //
12291 // Examples: "2023-11-21T09:26:12.315Z"
12292 ProcessExitTimeKey = attribute.Key("process.exit.time")
12293
12294 // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
12295 // "process.group_leader.pid" semantic conventions. It represents the PID of the
12296 // process's group leader. This is also the process group ID (PGID) of the
12297 // process.
12298 //
12299 // Type: int
12300 // RequirementLevel: Recommended
12301 // Stability: Development
12302 //
12303 // Examples: 23
12304 ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
12305
12306 // ProcessInteractiveKey is the attribute Key conforming to the
12307 // "process.interactive" semantic conventions. It represents the whether the
12308 // process is connected to an interactive shell.
12309 //
12310 // Type: boolean
12311 // RequirementLevel: Recommended
12312 // Stability: Development
12313 //
12314 // Examples:
12315 ProcessInteractiveKey = attribute.Key("process.interactive")
12316
12317 // ProcessLinuxCgroupKey is the attribute Key conforming to the
12318 // "process.linux.cgroup" semantic conventions. It represents the control group
12319 // associated with the process.
12320 //
12321 // Type: string
12322 // RequirementLevel: Recommended
12323 // Stability: Development
12324 //
12325 // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope",
12326 // "0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"
12327 // Note: Control groups (cgroups) are a kernel feature used to organize and
12328 // manage process resources. This attribute provides the path(s) to the
12329 // cgroup(s) associated with the process, which should match the contents of the
12330 // [/proc/[PID]/cgroup] file.
12331 //
12332 // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html
12333 ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup")
12334
12335 // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
12336 // semantic conventions. It represents the username of the user that owns the
12337 // process.
12338 //
12339 // Type: string
12340 // RequirementLevel: Recommended
12341 // Stability: Development
12342 //
12343 // Examples: "root"
12344 ProcessOwnerKey = attribute.Key("process.owner")
12345
12346 // ProcessParentPIDKey is the attribute Key conforming to the
12347 // "process.parent_pid" semantic conventions. It represents the parent Process
12348 // identifier (PPID).
12349 //
12350 // Type: int
12351 // RequirementLevel: Recommended
12352 // Stability: Development
12353 //
12354 // Examples: 111
12355 ProcessParentPIDKey = attribute.Key("process.parent_pid")
12356
12357 // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
12358 // conventions. It represents the process identifier (PID).
12359 //
12360 // Type: int
12361 // RequirementLevel: Recommended
12362 // Stability: Development
12363 //
12364 // Examples: 1234
12365 ProcessPIDKey = attribute.Key("process.pid")
12366
12367 // ProcessRealUserIDKey is the attribute Key conforming to the
12368 // "process.real_user.id" semantic conventions. It represents the real user ID
12369 // (RUID) of the process.
12370 //
12371 // Type: int
12372 // RequirementLevel: Recommended
12373 // Stability: Development
12374 //
12375 // Examples: 1000
12376 ProcessRealUserIDKey = attribute.Key("process.real_user.id")
12377
12378 // ProcessRealUserNameKey is the attribute Key conforming to the
12379 // "process.real_user.name" semantic conventions. It represents the username of
12380 // the real user of the process.
12381 //
12382 // Type: string
12383 // RequirementLevel: Recommended
12384 // Stability: Development
12385 //
12386 // Examples: "operator"
12387 ProcessRealUserNameKey = attribute.Key("process.real_user.name")
12388
12389 // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
12390 // "process.runtime.description" semantic conventions. It represents an
12391 // additional description about the runtime of the process, for example a
12392 // specific vendor customization of the runtime environment.
12393 //
12394 // Type: string
12395 // RequirementLevel: Recommended
12396 // Stability: Development
12397 //
12398 // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
12399 ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
12400
12401 // ProcessRuntimeNameKey is the attribute Key conforming to the
12402 // "process.runtime.name" semantic conventions. It represents the name of the
12403 // runtime of this process.
12404 //
12405 // Type: string
12406 // RequirementLevel: Recommended
12407 // Stability: Development
12408 //
12409 // Examples: "OpenJDK Runtime Environment"
12410 ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
12411
12412 // ProcessRuntimeVersionKey is the attribute Key conforming to the
12413 // "process.runtime.version" semantic conventions. It represents the version of
12414 // the runtime of this process, as returned by the runtime without modification.
12415 //
12416 // Type: string
12417 // RequirementLevel: Recommended
12418 // Stability: Development
12419 //
12420 // Examples: 14.0.2
12421 ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
12422
12423 // ProcessSavedUserIDKey is the attribute Key conforming to the
12424 // "process.saved_user.id" semantic conventions. It represents the saved user ID
12425 // (SUID) of the process.
12426 //
12427 // Type: int
12428 // RequirementLevel: Recommended
12429 // Stability: Development
12430 //
12431 // Examples: 1002
12432 ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
12433
12434 // ProcessSavedUserNameKey is the attribute Key conforming to the
12435 // "process.saved_user.name" semantic conventions. It represents the username of
12436 // the saved user.
12437 //
12438 // Type: string
12439 // RequirementLevel: Recommended
12440 // Stability: Development
12441 //
12442 // Examples: "operator"
12443 ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
12444
12445 // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
12446 // "process.session_leader.pid" semantic conventions. It represents the PID of
12447 // the process's session leader. This is also the session ID (SID) of the
12448 // process.
12449 //
12450 // Type: int
12451 // RequirementLevel: Recommended
12452 // Stability: Development
12453 //
12454 // Examples: 14
12455 ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
12456
12457 // ProcessStateKey is the attribute Key conforming to the "process.state"
12458 // semantic conventions. It represents the process state, e.g.,
12459 // [Linux Process State Codes].
12460 //
12461 // Type: Enum
12462 // RequirementLevel: Recommended
12463 // Stability: Development
12464 //
12465 // Examples: "running"
12466 //
12467 // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
12468 ProcessStateKey = attribute.Key("process.state")
12469
12470 // ProcessTitleKey is the attribute Key conforming to the "process.title"
12471 // semantic conventions. It represents the process title (proctitle).
12472 //
12473 // Type: string
12474 // RequirementLevel: Recommended
12475 // Stability: Development
12476 //
12477 // Examples: "cat /etc/hostname", "xfce4-session", "bash"
12478 // Note: In many Unix-like systems, process title (proctitle), is the string
12479 // that represents the name or command line of a running process, displayed by
12480 // system monitoring tools like ps, top, and htop.
12481 ProcessTitleKey = attribute.Key("process.title")
12482
12483 // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
12484 // semantic conventions. It represents the effective user ID (EUID) of the
12485 // process.
12486 //
12487 // Type: int
12488 // RequirementLevel: Recommended
12489 // Stability: Development
12490 //
12491 // Examples: 1001
12492 ProcessUserIDKey = attribute.Key("process.user.id")
12493
12494 // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
12495 // semantic conventions. It represents the username of the effective user of the
12496 // process.
12497 //
12498 // Type: string
12499 // RequirementLevel: Recommended
12500 // Stability: Development
12501 //
12502 // Examples: "root"
12503 ProcessUserNameKey = attribute.Key("process.user.name")
12504
12505 // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
12506 // conventions. It represents the virtual process identifier.
12507 //
12508 // Type: int
12509 // RequirementLevel: Recommended
12510 // Stability: Development
12511 //
12512 // Examples: 12
12513 // Note: The process ID within a PID namespace. This is not necessarily unique
12514 // across all processes on the host but it is unique within the process
12515 // namespace that the process exists within.
12516 ProcessVpidKey = attribute.Key("process.vpid")
12517
12518 // ProcessWorkingDirectoryKey is the attribute Key conforming to the
12519 // "process.working_directory" semantic conventions. It represents the working
12520 // directory of the process.
12521 //
12522 // Type: string
12523 // RequirementLevel: Recommended
12524 // Stability: Development
12525 //
12526 // Examples: "/root"
12527 ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
12528 )
12529
12530 // ProcessArgsCount returns an attribute KeyValue conforming to the
12531 // "process.args_count" semantic conventions. It represents the length of the
12532 // process.command_args array.
12533 func ProcessArgsCount(val int) attribute.KeyValue {
12534 return ProcessArgsCountKey.Int(val)
12535 }
12536
12537 // ProcessCommand returns an attribute KeyValue conforming to the
12538 // "process.command" semantic conventions. It represents the command used to
12539 // launch the process (i.e. the command name). On Linux based systems, can be set
12540 // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
12541 // first parameter extracted from `GetCommandLineW`.
12542 func ProcessCommand(val string) attribute.KeyValue {
12543 return ProcessCommandKey.String(val)
12544 }
12545
12546 // ProcessCommandArgs returns an attribute KeyValue conforming to the
12547 // "process.command_args" semantic conventions. It represents the all the command
12548 // arguments (including the command/executable itself) as received by the
12549 // process. On Linux-based systems (and some other Unixoid systems supporting
12550 // procfs), can be set according to the list of null-delimited strings extracted
12551 // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
12552 // argv vector passed to `main`. SHOULD NOT be collected by default unless there
12553 // is sanitization that excludes sensitive data.
12554 func ProcessCommandArgs(val ...string) attribute.KeyValue {
12555 return ProcessCommandArgsKey.StringSlice(val)
12556 }
12557
12558 // ProcessCommandLine returns an attribute KeyValue conforming to the
12559 // "process.command_line" semantic conventions. It represents the full command
12560 // used to launch the process as a single string representing the full command.
12561 // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
12562 // you have to assemble it just for monitoring; use `process.command_args`
12563 // instead. SHOULD NOT be collected by default unless there is sanitization that
12564 // excludes sensitive data.
12565 func ProcessCommandLine(val string) attribute.KeyValue {
12566 return ProcessCommandLineKey.String(val)
12567 }
12568
12569 // ProcessCreationTime returns an attribute KeyValue conforming to the
12570 // "process.creation.time" semantic conventions. It represents the date and time
12571 // the process was created, in ISO 8601 format.
12572 func ProcessCreationTime(val string) attribute.KeyValue {
12573 return ProcessCreationTimeKey.String(val)
12574 }
12575
12576 // ProcessEnvironmentVariable returns an attribute KeyValue conforming to the
12577 // "process.environment_variable" semantic conventions. It represents the process
12578 // environment variables, `<key>` being the environment variable name, the value
12579 // being the environment variable value.
12580 func ProcessEnvironmentVariable(key string, val string) attribute.KeyValue {
12581 return attribute.String("process.environment_variable."+key, val)
12582 }
12583
12584 // ProcessExecutableBuildIDGNU returns an attribute KeyValue conforming to the
12585 // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
12586 // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
12587 func ProcessExecutableBuildIDGNU(val string) attribute.KeyValue {
12588 return ProcessExecutableBuildIDGNUKey.String(val)
12589 }
12590
12591 // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the
12592 // "process.executable.build_id.go" semantic conventions. It represents the Go
12593 // build ID as retrieved by `go tool buildid <go executable>`.
12594 func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
12595 return ProcessExecutableBuildIDGoKey.String(val)
12596 }
12597
12598 // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to
12599 // the "process.executable.build_id.htlhash" semantic conventions. It represents
12600 // the profiling specific build ID for executables. See the OTel specification
12601 // for Profiles for more information.
12602 func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue {
12603 return ProcessExecutableBuildIDHtlhashKey.String(val)
12604 }
12605
12606 // ProcessExecutableName returns an attribute KeyValue conforming to the
12607 // "process.executable.name" semantic conventions. It represents the name of the
12608 // process executable. On Linux based systems, this SHOULD be set to the base
12609 // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the
12610 // base name of `GetProcessImageFileNameW`.
12611 func ProcessExecutableName(val string) attribute.KeyValue {
12612 return ProcessExecutableNameKey.String(val)
12613 }
12614
12615 // ProcessExecutablePath returns an attribute KeyValue conforming to the
12616 // "process.executable.path" semantic conventions. It represents the full path to
12617 // the process executable. On Linux based systems, can be set to the target of
12618 // `proc/[pid]/exe`. On Windows, can be set to the result of
12619 // `GetProcessImageFileNameW`.
12620 func ProcessExecutablePath(val string) attribute.KeyValue {
12621 return ProcessExecutablePathKey.String(val)
12622 }
12623
12624 // ProcessExitCode returns an attribute KeyValue conforming to the
12625 // "process.exit.code" semantic conventions. It represents the exit code of the
12626 // process.
12627 func ProcessExitCode(val int) attribute.KeyValue {
12628 return ProcessExitCodeKey.Int(val)
12629 }
12630
12631 // ProcessExitTime returns an attribute KeyValue conforming to the
12632 // "process.exit.time" semantic conventions. It represents the date and time the
12633 // process exited, in ISO 8601 format.
12634 func ProcessExitTime(val string) attribute.KeyValue {
12635 return ProcessExitTimeKey.String(val)
12636 }
12637
12638 // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
12639 // "process.group_leader.pid" semantic conventions. It represents the PID of the
12640 // process's group leader. This is also the process group ID (PGID) of the
12641 // process.
12642 func ProcessGroupLeaderPID(val int) attribute.KeyValue {
12643 return ProcessGroupLeaderPIDKey.Int(val)
12644 }
12645
12646 // ProcessInteractive returns an attribute KeyValue conforming to the
12647 // "process.interactive" semantic conventions. It represents the whether the
12648 // process is connected to an interactive shell.
12649 func ProcessInteractive(val bool) attribute.KeyValue {
12650 return ProcessInteractiveKey.Bool(val)
12651 }
12652
12653 // ProcessLinuxCgroup returns an attribute KeyValue conforming to the
12654 // "process.linux.cgroup" semantic conventions. It represents the control group
12655 // associated with the process.
12656 func ProcessLinuxCgroup(val string) attribute.KeyValue {
12657 return ProcessLinuxCgroupKey.String(val)
12658 }
12659
12660 // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
12661 // semantic conventions. It represents the username of the user that owns the
12662 // process.
12663 func ProcessOwner(val string) attribute.KeyValue {
12664 return ProcessOwnerKey.String(val)
12665 }
12666
12667 // ProcessParentPID returns an attribute KeyValue conforming to the
12668 // "process.parent_pid" semantic conventions. It represents the parent Process
12669 // identifier (PPID).
12670 func ProcessParentPID(val int) attribute.KeyValue {
12671 return ProcessParentPIDKey.Int(val)
12672 }
12673
12674 // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
12675 // semantic conventions. It represents the process identifier (PID).
12676 func ProcessPID(val int) attribute.KeyValue {
12677 return ProcessPIDKey.Int(val)
12678 }
12679
12680 // ProcessRealUserID returns an attribute KeyValue conforming to the
12681 // "process.real_user.id" semantic conventions. It represents the real user ID
12682 // (RUID) of the process.
12683 func ProcessRealUserID(val int) attribute.KeyValue {
12684 return ProcessRealUserIDKey.Int(val)
12685 }
12686
12687 // ProcessRealUserName returns an attribute KeyValue conforming to the
12688 // "process.real_user.name" semantic conventions. It represents the username of
12689 // the real user of the process.
12690 func ProcessRealUserName(val string) attribute.KeyValue {
12691 return ProcessRealUserNameKey.String(val)
12692 }
12693
12694 // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
12695 // "process.runtime.description" semantic conventions. It represents an
12696 // additional description about the runtime of the process, for example a
12697 // specific vendor customization of the runtime environment.
12698 func ProcessRuntimeDescription(val string) attribute.KeyValue {
12699 return ProcessRuntimeDescriptionKey.String(val)
12700 }
12701
12702 // ProcessRuntimeName returns an attribute KeyValue conforming to the
12703 // "process.runtime.name" semantic conventions. It represents the name of the
12704 // runtime of this process.
12705 func ProcessRuntimeName(val string) attribute.KeyValue {
12706 return ProcessRuntimeNameKey.String(val)
12707 }
12708
12709 // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
12710 // "process.runtime.version" semantic conventions. It represents the version of
12711 // the runtime of this process, as returned by the runtime without modification.
12712 func ProcessRuntimeVersion(val string) attribute.KeyValue {
12713 return ProcessRuntimeVersionKey.String(val)
12714 }
12715
12716 // ProcessSavedUserID returns an attribute KeyValue conforming to the
12717 // "process.saved_user.id" semantic conventions. It represents the saved user ID
12718 // (SUID) of the process.
12719 func ProcessSavedUserID(val int) attribute.KeyValue {
12720 return ProcessSavedUserIDKey.Int(val)
12721 }
12722
12723 // ProcessSavedUserName returns an attribute KeyValue conforming to the
12724 // "process.saved_user.name" semantic conventions. It represents the username of
12725 // the saved user.
12726 func ProcessSavedUserName(val string) attribute.KeyValue {
12727 return ProcessSavedUserNameKey.String(val)
12728 }
12729
12730 // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
12731 // "process.session_leader.pid" semantic conventions. It represents the PID of
12732 // the process's session leader. This is also the session ID (SID) of the
12733 // process.
12734 func ProcessSessionLeaderPID(val int) attribute.KeyValue {
12735 return ProcessSessionLeaderPIDKey.Int(val)
12736 }
12737
12738 // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
12739 // semantic conventions. It represents the process title (proctitle).
12740 func ProcessTitle(val string) attribute.KeyValue {
12741 return ProcessTitleKey.String(val)
12742 }
12743
12744 // ProcessUserID returns an attribute KeyValue conforming to the
12745 // "process.user.id" semantic conventions. It represents the effective user ID
12746 // (EUID) of the process.
12747 func ProcessUserID(val int) attribute.KeyValue {
12748 return ProcessUserIDKey.Int(val)
12749 }
12750
12751 // ProcessUserName returns an attribute KeyValue conforming to the
12752 // "process.user.name" semantic conventions. It represents the username of the
12753 // effective user of the process.
12754 func ProcessUserName(val string) attribute.KeyValue {
12755 return ProcessUserNameKey.String(val)
12756 }
12757
12758 // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
12759 // semantic conventions. It represents the virtual process identifier.
12760 func ProcessVpid(val int) attribute.KeyValue {
12761 return ProcessVpidKey.Int(val)
12762 }
12763
12764 // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
12765 // "process.working_directory" semantic conventions. It represents the working
12766 // directory of the process.
12767 func ProcessWorkingDirectory(val string) attribute.KeyValue {
12768 return ProcessWorkingDirectoryKey.String(val)
12769 }
12770
12771 // Enum values for process.context_switch.type
12772 var (
12773 // voluntary
12774 // Stability: development
12775 ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
12776 // involuntary
12777 // Stability: development
12778 ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
12779 )
12780
12781 // Enum values for process.state
12782 var (
12783 // running
12784 // Stability: development
12785 ProcessStateRunning = ProcessStateKey.String("running")
12786 // sleeping
12787 // Stability: development
12788 ProcessStateSleeping = ProcessStateKey.String("sleeping")
12789 // stopped
12790 // Stability: development
12791 ProcessStateStopped = ProcessStateKey.String("stopped")
12792 // defunct
12793 // Stability: development
12794 ProcessStateDefunct = ProcessStateKey.String("defunct")
12795 )
12796
12797 // Namespace: profile
12798 const (
12799 // ProfileFrameTypeKey is the attribute Key conforming to the
12800 // "profile.frame.type" semantic conventions. It represents the describes the
12801 // interpreter or compiler of a single frame.
12802 //
12803 // Type: Enum
12804 // RequirementLevel: Recommended
12805 // Stability: Development
12806 //
12807 // Examples: "cpython"
12808 ProfileFrameTypeKey = attribute.Key("profile.frame.type")
12809 )
12810
12811 // Enum values for profile.frame.type
12812 var (
12813 // [.NET]
12814 //
12815 // Stability: development
12816 //
12817 // [.NET]: https://wikipedia.org/wiki/.NET
12818 ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
12819 // [JVM]
12820 //
12821 // Stability: development
12822 //
12823 // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
12824 ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
12825 // [Kernel]
12826 //
12827 // Stability: development
12828 //
12829 // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
12830 ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
12831 // Can be one of but not limited to [C], [C++], [Go] or [Rust]. If possible, a
12832 // more precise value MUST be used.
12833 //
12834 // Stability: development
12835 //
12836 // [C]: https://wikipedia.org/wiki/C_(programming_language)
12837 // [C++]: https://wikipedia.org/wiki/C%2B%2B
12838 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
12839 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
12840 ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
12841 // [Perl]
12842 //
12843 // Stability: development
12844 //
12845 // [Perl]: https://wikipedia.org/wiki/Perl
12846 ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
12847 // [PHP]
12848 //
12849 // Stability: development
12850 //
12851 // [PHP]: https://wikipedia.org/wiki/PHP
12852 ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
12853 // [Python]
12854 //
12855 // Stability: development
12856 //
12857 // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
12858 ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
12859 // [Ruby]
12860 //
12861 // Stability: development
12862 //
12863 // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
12864 ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
12865 // [V8JS]
12866 //
12867 // Stability: development
12868 //
12869 // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
12870 ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
12871 // [Erlang]
12872 //
12873 // Stability: development
12874 //
12875 // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)
12876 ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam")
12877 // [Go],
12878 //
12879 // Stability: development
12880 //
12881 // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
12882 ProfileFrameTypeGo = ProfileFrameTypeKey.String("go")
12883 // [Rust]
12884 //
12885 // Stability: development
12886 //
12887 // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
12888 ProfileFrameTypeRust = ProfileFrameTypeKey.String("rust")
12889 )
12890
12891 // Namespace: rpc
12892 const (
12893 // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the
12894 // "rpc.connect_rpc.error_code" semantic conventions. It represents the
12895 // [error codes] of the Connect request. Error codes are always string values.
12896 //
12897 // Type: Enum
12898 // RequirementLevel: Recommended
12899 // Stability: Development
12900 //
12901 // Examples:
12902 //
12903 // [error codes]: https://connectrpc.com//docs/protocol/#error-codes
12904 RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code")
12905
12906 // RPCGRPCStatusCodeKey is the attribute Key conforming to the
12907 // "rpc.grpc.status_code" semantic conventions. It represents the
12908 // [numeric status code] of the gRPC request.
12909 //
12910 // Type: Enum
12911 // RequirementLevel: Recommended
12912 // Stability: Development
12913 //
12914 // Examples:
12915 //
12916 // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md
12917 RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")
12918
12919 // RPCJSONRPCErrorCodeKey is the attribute Key conforming to the
12920 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
12921 // property of response if it is an error response.
12922 //
12923 // Type: int
12924 // RequirementLevel: Recommended
12925 // Stability: Development
12926 //
12927 // Examples: -32700, 100
12928 RPCJSONRPCErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code")
12929
12930 // RPCJSONRPCErrorMessageKey is the attribute Key conforming to the
12931 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
12932 // `error.message` property of response if it is an error response.
12933 //
12934 // Type: string
12935 // RequirementLevel: Recommended
12936 // Stability: Development
12937 //
12938 // Examples: "Parse error", "User already exists"
12939 RPCJSONRPCErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message")
12940
12941 // RPCJSONRPCRequestIDKey is the attribute Key conforming to the
12942 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id`
12943 // property of request or response. Since protocol allows id to be int, string,
12944 // `null` or missing (for notifications), value is expected to be cast to string
12945 // for simplicity. Use empty string in case of `null` value. Omit entirely if
12946 // this is a notification.
12947 //
12948 // Type: string
12949 // RequirementLevel: Recommended
12950 // Stability: Development
12951 //
12952 // Examples: "10", "request-7", ""
12953 RPCJSONRPCRequestIDKey = attribute.Key("rpc.jsonrpc.request_id")
12954
12955 // RPCJSONRPCVersionKey is the attribute Key conforming to the
12956 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol
12957 // version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0
12958 // doesn't specify this, the value can be omitted.
12959 //
12960 // Type: string
12961 // RequirementLevel: Recommended
12962 // Stability: Development
12963 //
12964 // Examples: "2.0", "1.0"
12965 RPCJSONRPCVersionKey = attribute.Key("rpc.jsonrpc.version")
12966
12967 // RPCMessageCompressedSizeKey is the attribute Key conforming to the
12968 // "rpc.message.compressed_size" semantic conventions. It represents the
12969 // compressed size of the message in bytes.
12970 //
12971 // Type: int
12972 // RequirementLevel: Recommended
12973 // Stability: Development
12974 //
12975 // Examples:
12976 RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size")
12977
12978 // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id"
12979 // semantic conventions. It MUST be calculated as two different counters
12980 // starting from `1` one for sent messages and one for received message..
12981 //
12982 // Type: int
12983 // RequirementLevel: Recommended
12984 // Stability: Development
12985 //
12986 // Examples:
12987 // Note: This way we guarantee that the values will be consistent between
12988 // different implementations.
12989 RPCMessageIDKey = attribute.Key("rpc.message.id")
12990
12991 // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type"
12992 // semantic conventions. It represents the whether this is a received or sent
12993 // message.
12994 //
12995 // Type: Enum
12996 // RequirementLevel: Recommended
12997 // Stability: Development
12998 //
12999 // Examples:
13000 RPCMessageTypeKey = attribute.Key("rpc.message.type")
13001
13002 // RPCMessageUncompressedSizeKey is the attribute Key conforming to the
13003 // "rpc.message.uncompressed_size" semantic conventions. It represents the
13004 // uncompressed size of the message in bytes.
13005 //
13006 // Type: int
13007 // RequirementLevel: Recommended
13008 // Stability: Development
13009 //
13010 // Examples:
13011 RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size")
13012
13013 // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
13014 // conventions. It represents the this is the logical name of the method from
13015 // the RPC interface perspective.
13016 //
13017 // Type: string
13018 // RequirementLevel: Recommended
13019 // Stability: Development
13020 //
13021 // Examples: exampleMethod
13022 RPCMethodKey = attribute.Key("rpc.method")
13023
13024 // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic
13025 // conventions. It represents the full (logical) name of the service being
13026 // called, including its package name, if applicable.
13027 //
13028 // Type: string
13029 // RequirementLevel: Recommended
13030 // Stability: Development
13031 //
13032 // Examples: myservice.EchoService
13033 RPCServiceKey = attribute.Key("rpc.service")
13034
13035 // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic
13036 // conventions. It represents a string identifying the remoting system. See
13037 // below for a list of well-known identifiers.
13038 //
13039 // Type: Enum
13040 // RequirementLevel: Recommended
13041 // Stability: Development
13042 //
13043 // Examples:
13044 RPCSystemKey = attribute.Key("rpc.system")
13045 )
13046
13047 // RPCConnectRPCRequestMetadata returns an attribute KeyValue conforming to the
13048 // "rpc.connect_rpc.request.metadata" semantic conventions. It represents the
13049 // connect request metadata, `<key>` being the normalized Connect Metadata key
13050 // (lowercase), the value being the metadata values.
13051 func RPCConnectRPCRequestMetadata(key string, val ...string) attribute.KeyValue {
13052 return attribute.StringSlice("rpc.connect_rpc.request.metadata."+key, val)
13053 }
13054
13055 // RPCConnectRPCResponseMetadata returns an attribute KeyValue conforming to the
13056 // "rpc.connect_rpc.response.metadata" semantic conventions. It represents the
13057 // connect response metadata, `<key>` being the normalized Connect Metadata key
13058 // (lowercase), the value being the metadata values.
13059 func RPCConnectRPCResponseMetadata(key string, val ...string) attribute.KeyValue {
13060 return attribute.StringSlice("rpc.connect_rpc.response.metadata."+key, val)
13061 }
13062
13063 // RPCGRPCRequestMetadata returns an attribute KeyValue conforming to the
13064 // "rpc.grpc.request.metadata" semantic conventions. It represents the gRPC
13065 // request metadata, `<key>` being the normalized gRPC Metadata key (lowercase),
13066 // the value being the metadata values.
13067 func RPCGRPCRequestMetadata(key string, val ...string) attribute.KeyValue {
13068 return attribute.StringSlice("rpc.grpc.request.metadata."+key, val)
13069 }
13070
13071 // RPCGRPCResponseMetadata returns an attribute KeyValue conforming to the
13072 // "rpc.grpc.response.metadata" semantic conventions. It represents the gRPC
13073 // response metadata, `<key>` being the normalized gRPC Metadata key (lowercase),
13074 // the value being the metadata values.
13075 func RPCGRPCResponseMetadata(key string, val ...string) attribute.KeyValue {
13076 return attribute.StringSlice("rpc.grpc.response.metadata."+key, val)
13077 }
13078
13079 // RPCJSONRPCErrorCode returns an attribute KeyValue conforming to the
13080 // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
13081 // property of response if it is an error response.
13082 func RPCJSONRPCErrorCode(val int) attribute.KeyValue {
13083 return RPCJSONRPCErrorCodeKey.Int(val)
13084 }
13085
13086 // RPCJSONRPCErrorMessage returns an attribute KeyValue conforming to the
13087 // "rpc.jsonrpc.error_message" semantic conventions. It represents the
13088 // `error.message` property of response if it is an error response.
13089 func RPCJSONRPCErrorMessage(val string) attribute.KeyValue {
13090 return RPCJSONRPCErrorMessageKey.String(val)
13091 }
13092
13093 // RPCJSONRPCRequestID returns an attribute KeyValue conforming to the
13094 // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property
13095 // of request or response. Since protocol allows id to be int, string, `null` or
13096 // missing (for notifications), value is expected to be cast to string for
13097 // simplicity. Use empty string in case of `null` value. Omit entirely if this is
13098 // a notification.
13099 func RPCJSONRPCRequestID(val string) attribute.KeyValue {
13100 return RPCJSONRPCRequestIDKey.String(val)
13101 }
13102
13103 // RPCJSONRPCVersion returns an attribute KeyValue conforming to the
13104 // "rpc.jsonrpc.version" semantic conventions. It represents the protocol version
13105 // as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't
13106 // specify this, the value can be omitted.
13107 func RPCJSONRPCVersion(val string) attribute.KeyValue {
13108 return RPCJSONRPCVersionKey.String(val)
13109 }
13110
13111 // RPCMessageCompressedSize returns an attribute KeyValue conforming to the
13112 // "rpc.message.compressed_size" semantic conventions. It represents the
13113 // compressed size of the message in bytes.
13114 func RPCMessageCompressedSize(val int) attribute.KeyValue {
13115 return RPCMessageCompressedSizeKey.Int(val)
13116 }
13117
13118 // RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id"
13119 // semantic conventions. It MUST be calculated as two different counters starting
13120 // from `1` one for sent messages and one for received message..
13121 func RPCMessageID(val int) attribute.KeyValue {
13122 return RPCMessageIDKey.Int(val)
13123 }
13124
13125 // RPCMessageUncompressedSize returns an attribute KeyValue conforming to the
13126 // "rpc.message.uncompressed_size" semantic conventions. It represents the
13127 // uncompressed size of the message in bytes.
13128 func RPCMessageUncompressedSize(val int) attribute.KeyValue {
13129 return RPCMessageUncompressedSizeKey.Int(val)
13130 }
13131
13132 // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
13133 // semantic conventions. It represents the this is the logical name of the method
13134 // from the RPC interface perspective.
13135 func RPCMethod(val string) attribute.KeyValue {
13136 return RPCMethodKey.String(val)
13137 }
13138
13139 // RPCService returns an attribute KeyValue conforming to the "rpc.service"
13140 // semantic conventions. It represents the full (logical) name of the service
13141 // being called, including its package name, if applicable.
13142 func RPCService(val string) attribute.KeyValue {
13143 return RPCServiceKey.String(val)
13144 }
13145
13146 // Enum values for rpc.connect_rpc.error_code
13147 var (
13148 // cancelled
13149 // Stability: development
13150 RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled")
13151 // unknown
13152 // Stability: development
13153 RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown")
13154 // invalid_argument
13155 // Stability: development
13156 RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument")
13157 // deadline_exceeded
13158 // Stability: development
13159 RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded")
13160 // not_found
13161 // Stability: development
13162 RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found")
13163 // already_exists
13164 // Stability: development
13165 RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists")
13166 // permission_denied
13167 // Stability: development
13168 RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied")
13169 // resource_exhausted
13170 // Stability: development
13171 RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted")
13172 // failed_precondition
13173 // Stability: development
13174 RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition")
13175 // aborted
13176 // Stability: development
13177 RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted")
13178 // out_of_range
13179 // Stability: development
13180 RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range")
13181 // unimplemented
13182 // Stability: development
13183 RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented")
13184 // internal
13185 // Stability: development
13186 RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal")
13187 // unavailable
13188 // Stability: development
13189 RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable")
13190 // data_loss
13191 // Stability: development
13192 RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss")
13193 // unauthenticated
13194 // Stability: development
13195 RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated")
13196 )
13197
13198 // Enum values for rpc.grpc.status_code
13199 var (
13200 // OK
13201 // Stability: development
13202 RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0)
13203 // CANCELLED
13204 // Stability: development
13205 RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1)
13206 // UNKNOWN
13207 // Stability: development
13208 RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2)
13209 // INVALID_ARGUMENT
13210 // Stability: development
13211 RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3)
13212 // DEADLINE_EXCEEDED
13213 // Stability: development
13214 RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4)
13215 // NOT_FOUND
13216 // Stability: development
13217 RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5)
13218 // ALREADY_EXISTS
13219 // Stability: development
13220 RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6)
13221 // PERMISSION_DENIED
13222 // Stability: development
13223 RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7)
13224 // RESOURCE_EXHAUSTED
13225 // Stability: development
13226 RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8)
13227 // FAILED_PRECONDITION
13228 // Stability: development
13229 RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9)
13230 // ABORTED
13231 // Stability: development
13232 RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10)
13233 // OUT_OF_RANGE
13234 // Stability: development
13235 RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11)
13236 // UNIMPLEMENTED
13237 // Stability: development
13238 RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12)
13239 // INTERNAL
13240 // Stability: development
13241 RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13)
13242 // UNAVAILABLE
13243 // Stability: development
13244 RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14)
13245 // DATA_LOSS
13246 // Stability: development
13247 RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15)
13248 // UNAUTHENTICATED
13249 // Stability: development
13250 RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16)
13251 )
13252
13253 // Enum values for rpc.message.type
13254 var (
13255 // sent
13256 // Stability: development
13257 RPCMessageTypeSent = RPCMessageTypeKey.String("SENT")
13258 // received
13259 // Stability: development
13260 RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")
13261 )
13262
13263 // Enum values for rpc.system
13264 var (
13265 // gRPC
13266 // Stability: development
13267 RPCSystemGRPC = RPCSystemKey.String("grpc")
13268 // Java RMI
13269 // Stability: development
13270 RPCSystemJavaRmi = RPCSystemKey.String("java_rmi")
13271 // .NET WCF
13272 // Stability: development
13273 RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf")
13274 // Apache Dubbo
13275 // Stability: development
13276 RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo")
13277 // Connect RPC
13278 // Stability: development
13279 RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc")
13280 // [ONC RPC (Sun RPC)]
13281 // Stability: development
13282 //
13283 // [ONC RPC (Sun RPC)]: https://datatracker.ietf.org/doc/html/rfc5531
13284 RPCSystemOncRPC = RPCSystemKey.String("onc_rpc")
13285 // JSON-RPC
13286 // Stability: development
13287 RPCSystemJSONRPC = RPCSystemKey.String("jsonrpc")
13288 )
13289
13290 // Namespace: security_rule
13291 const (
13292 // SecurityRuleCategoryKey is the attribute Key conforming to the
13293 // "security_rule.category" semantic conventions. It represents a categorization
13294 // value keyword used by the entity using the rule for detection of this event.
13295 //
13296 // Type: string
13297 // RequirementLevel: Recommended
13298 // Stability: Development
13299 //
13300 // Examples: "Attempted Information Leak"
13301 SecurityRuleCategoryKey = attribute.Key("security_rule.category")
13302
13303 // SecurityRuleDescriptionKey is the attribute Key conforming to the
13304 // "security_rule.description" semantic conventions. It represents the
13305 // description of the rule generating the event.
13306 //
13307 // Type: string
13308 // RequirementLevel: Recommended
13309 // Stability: Development
13310 //
13311 // Examples: "Block requests to public DNS over HTTPS / TLS protocols"
13312 SecurityRuleDescriptionKey = attribute.Key("security_rule.description")
13313
13314 // SecurityRuleLicenseKey is the attribute Key conforming to the
13315 // "security_rule.license" semantic conventions. It represents the name of the
13316 // license under which the rule used to generate this event is made available.
13317 //
13318 // Type: string
13319 // RequirementLevel: Recommended
13320 // Stability: Development
13321 //
13322 // Examples: "Apache 2.0"
13323 SecurityRuleLicenseKey = attribute.Key("security_rule.license")
13324
13325 // SecurityRuleNameKey is the attribute Key conforming to the
13326 // "security_rule.name" semantic conventions. It represents the name of the rule
13327 // or signature generating the event.
13328 //
13329 // Type: string
13330 // RequirementLevel: Recommended
13331 // Stability: Development
13332 //
13333 // Examples: "BLOCK_DNS_over_TLS"
13334 SecurityRuleNameKey = attribute.Key("security_rule.name")
13335
13336 // SecurityRuleReferenceKey is the attribute Key conforming to the
13337 // "security_rule.reference" semantic conventions. It represents the reference
13338 // URL to additional information about the rule used to generate this event.
13339 //
13340 // Type: string
13341 // RequirementLevel: Recommended
13342 // Stability: Development
13343 //
13344 // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS"
13345 // Note: The URL can point to the vendor’s documentation about the rule. If
13346 // that’s not available, it can also be a link to a more general page
13347 // describing this type of alert.
13348 SecurityRuleReferenceKey = attribute.Key("security_rule.reference")
13349
13350 // SecurityRuleRulesetNameKey is the attribute Key conforming to the
13351 // "security_rule.ruleset.name" semantic conventions. It represents the name of
13352 // the ruleset, policy, group, or parent category in which the rule used to
13353 // generate this event is a member.
13354 //
13355 // Type: string
13356 // RequirementLevel: Recommended
13357 // Stability: Development
13358 //
13359 // Examples: "Standard_Protocol_Filters"
13360 SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name")
13361
13362 // SecurityRuleUUIDKey is the attribute Key conforming to the
13363 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
13364 // unique within the scope of a set or group of agents, observers, or other
13365 // entities using the rule for detection of this event.
13366 //
13367 // Type: string
13368 // RequirementLevel: Recommended
13369 // Stability: Development
13370 //
13371 // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011"
13372 SecurityRuleUUIDKey = attribute.Key("security_rule.uuid")
13373
13374 // SecurityRuleVersionKey is the attribute Key conforming to the
13375 // "security_rule.version" semantic conventions. It represents the version /
13376 // revision of the rule being used for analysis.
13377 //
13378 // Type: string
13379 // RequirementLevel: Recommended
13380 // Stability: Development
13381 //
13382 // Examples: "1.0.0"
13383 SecurityRuleVersionKey = attribute.Key("security_rule.version")
13384 )
13385
13386 // SecurityRuleCategory returns an attribute KeyValue conforming to the
13387 // "security_rule.category" semantic conventions. It represents a categorization
13388 // value keyword used by the entity using the rule for detection of this event.
13389 func SecurityRuleCategory(val string) attribute.KeyValue {
13390 return SecurityRuleCategoryKey.String(val)
13391 }
13392
13393 // SecurityRuleDescription returns an attribute KeyValue conforming to the
13394 // "security_rule.description" semantic conventions. It represents the
13395 // description of the rule generating the event.
13396 func SecurityRuleDescription(val string) attribute.KeyValue {
13397 return SecurityRuleDescriptionKey.String(val)
13398 }
13399
13400 // SecurityRuleLicense returns an attribute KeyValue conforming to the
13401 // "security_rule.license" semantic conventions. It represents the name of the
13402 // license under which the rule used to generate this event is made available.
13403 func SecurityRuleLicense(val string) attribute.KeyValue {
13404 return SecurityRuleLicenseKey.String(val)
13405 }
13406
13407 // SecurityRuleName returns an attribute KeyValue conforming to the
13408 // "security_rule.name" semantic conventions. It represents the name of the rule
13409 // or signature generating the event.
13410 func SecurityRuleName(val string) attribute.KeyValue {
13411 return SecurityRuleNameKey.String(val)
13412 }
13413
13414 // SecurityRuleReference returns an attribute KeyValue conforming to the
13415 // "security_rule.reference" semantic conventions. It represents the reference
13416 // URL to additional information about the rule used to generate this event.
13417 func SecurityRuleReference(val string) attribute.KeyValue {
13418 return SecurityRuleReferenceKey.String(val)
13419 }
13420
13421 // SecurityRuleRulesetName returns an attribute KeyValue conforming to the
13422 // "security_rule.ruleset.name" semantic conventions. It represents the name of
13423 // the ruleset, policy, group, or parent category in which the rule used to
13424 // generate this event is a member.
13425 func SecurityRuleRulesetName(val string) attribute.KeyValue {
13426 return SecurityRuleRulesetNameKey.String(val)
13427 }
13428
13429 // SecurityRuleUUID returns an attribute KeyValue conforming to the
13430 // "security_rule.uuid" semantic conventions. It represents a rule ID that is
13431 // unique within the scope of a set or group of agents, observers, or other
13432 // entities using the rule for detection of this event.
13433 func SecurityRuleUUID(val string) attribute.KeyValue {
13434 return SecurityRuleUUIDKey.String(val)
13435 }
13436
13437 // SecurityRuleVersion returns an attribute KeyValue conforming to the
13438 // "security_rule.version" semantic conventions. It represents the version /
13439 // revision of the rule being used for analysis.
13440 func SecurityRuleVersion(val string) attribute.KeyValue {
13441 return SecurityRuleVersionKey.String(val)
13442 }
13443
13444 // Namespace: server
13445 const (
13446 // ServerAddressKey is the attribute Key conforming to the "server.address"
13447 // semantic conventions. It represents the server domain name if available
13448 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
13449 //
13450 // Type: string
13451 // RequirementLevel: Recommended
13452 // Stability: Stable
13453 //
13454 // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
13455 // Note: When observed from the client side, and when communicating through an
13456 // intermediary, `server.address` SHOULD represent the server address behind any
13457 // intermediaries, for example proxies, if it's available.
13458 ServerAddressKey = attribute.Key("server.address")
13459
13460 // ServerPortKey is the attribute Key conforming to the "server.port" semantic
13461 // conventions. It represents the server port number.
13462 //
13463 // Type: int
13464 // RequirementLevel: Recommended
13465 // Stability: Stable
13466 //
13467 // Examples: 80, 8080, 443
13468 // Note: When observed from the client side, and when communicating through an
13469 // intermediary, `server.port` SHOULD represent the server port behind any
13470 // intermediaries, for example proxies, if it's available.
13471 ServerPortKey = attribute.Key("server.port")
13472 )
13473
13474 // ServerAddress returns an attribute KeyValue conforming to the "server.address"
13475 // semantic conventions. It represents the server domain name if available
13476 // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
13477 func ServerAddress(val string) attribute.KeyValue {
13478 return ServerAddressKey.String(val)
13479 }
13480
13481 // ServerPort returns an attribute KeyValue conforming to the "server.port"
13482 // semantic conventions. It represents the server port number.
13483 func ServerPort(val int) attribute.KeyValue {
13484 return ServerPortKey.Int(val)
13485 }
13486
13487 // Namespace: service
13488 const (
13489 // ServiceInstanceIDKey is the attribute Key conforming to the
13490 // "service.instance.id" semantic conventions. It represents the string ID of
13491 // the service instance.
13492 //
13493 // Type: string
13494 // RequirementLevel: Recommended
13495 // Stability: Development
13496 //
13497 // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
13498 // Note: MUST be unique for each instance of the same
13499 // `service.namespace,service.name` pair (in other words
13500 // `service.namespace,service.name,service.instance.id` triplet MUST be globally
13501 // unique). The ID helps to
13502 // distinguish instances of the same service that exist at the same time (e.g.
13503 // instances of a horizontally scaled
13504 // service).
13505 //
13506 // Implementations, such as SDKs, are recommended to generate a random Version 1
13507 // or Version 4 [RFC
13508 // 4122] UUID, but are free to use an inherent unique ID as
13509 // the source of
13510 // this value if stability is desirable. In that case, the ID SHOULD be used as
13511 // source of a UUID Version 5 and
13512 // SHOULD use the following UUID as the namespace:
13513 // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
13514 //
13515 // UUIDs are typically recommended, as only an opaque value for the purposes of
13516 // identifying a service instance is
13517 // needed. Similar to what can be seen in the man page for the
13518 // [`/etc/machine-id`] file, the underlying
13519 // data, such as pod name and namespace should be treated as confidential, being
13520 // the user's choice to expose it
13521 // or not via another resource attribute.
13522 //
13523 // For applications running behind an application server (like unicorn), we do
13524 // not recommend using one identifier
13525 // for all processes participating in the application. Instead, it's recommended
13526 // each division (e.g. a worker
13527 // thread in unicorn) to have its own instance.id.
13528 //
13529 // It's not recommended for a Collector to set `service.instance.id` if it can't
13530 // unambiguously determine the
13531 // service instance that is generating that telemetry. For instance, creating an
13532 // UUID based on `pod.name` will
13533 // likely be wrong, as the Collector might not know from which container within
13534 // that pod the telemetry originated.
13535 // However, Collectors can set the `service.instance.id` if they can
13536 // unambiguously determine the service instance
13537 // for that telemetry. This is typically the case for scraping receivers, as
13538 // they know the target address and
13539 // port.
13540 //
13541 // [RFC
13542 // 4122]: https://www.ietf.org/rfc/rfc4122.txt
13543 // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html
13544 ServiceInstanceIDKey = attribute.Key("service.instance.id")
13545
13546 // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
13547 // conventions. It represents the logical name of the service.
13548 //
13549 // Type: string
13550 // RequirementLevel: Recommended
13551 // Stability: Stable
13552 //
13553 // Examples: "shoppingcart"
13554 // Note: MUST be the same for all instances of horizontally scaled services. If
13555 // the value was not specified, SDKs MUST fallback to `unknown_service:`
13556 // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
13557 // If `process.executable.name` is not available, the value MUST be set to
13558 // `unknown_service`.
13559 //
13560 // [`process.executable.name`]: process.md
13561 ServiceNameKey = attribute.Key("service.name")
13562
13563 // ServiceNamespaceKey is the attribute Key conforming to the
13564 // "service.namespace" semantic conventions. It represents a namespace for
13565 // `service.name`.
13566 //
13567 // Type: string
13568 // RequirementLevel: Recommended
13569 // Stability: Development
13570 //
13571 // Examples: "Shop"
13572 // Note: A string value having a meaning that helps to distinguish a group of
13573 // services, for example the team name that owns a group of services.
13574 // `service.name` is expected to be unique within the same namespace. If
13575 // `service.namespace` is not specified in the Resource then `service.name` is
13576 // expected to be unique for all services that have no explicit namespace
13577 // defined (so the empty/unspecified namespace is simply one more valid
13578 // namespace). Zero-length namespace string is assumed equal to unspecified
13579 // namespace.
13580 ServiceNamespaceKey = attribute.Key("service.namespace")
13581
13582 // ServiceVersionKey is the attribute Key conforming to the "service.version"
13583 // semantic conventions. It represents the version string of the service API or
13584 // implementation. The format is not defined by these conventions.
13585 //
13586 // Type: string
13587 // RequirementLevel: Recommended
13588 // Stability: Stable
13589 //
13590 // Examples: "2.0.0", "a01dbef8a"
13591 ServiceVersionKey = attribute.Key("service.version")
13592 )
13593
13594 // ServiceInstanceID returns an attribute KeyValue conforming to the
13595 // "service.instance.id" semantic conventions. It represents the string ID of the
13596 // service instance.
13597 func ServiceInstanceID(val string) attribute.KeyValue {
13598 return ServiceInstanceIDKey.String(val)
13599 }
13600
13601 // ServiceName returns an attribute KeyValue conforming to the "service.name"
13602 // semantic conventions. It represents the logical name of the service.
13603 func ServiceName(val string) attribute.KeyValue {
13604 return ServiceNameKey.String(val)
13605 }
13606
13607 // ServiceNamespace returns an attribute KeyValue conforming to the
13608 // "service.namespace" semantic conventions. It represents a namespace for
13609 // `service.name`.
13610 func ServiceNamespace(val string) attribute.KeyValue {
13611 return ServiceNamespaceKey.String(val)
13612 }
13613
13614 // ServiceVersion returns an attribute KeyValue conforming to the
13615 // "service.version" semantic conventions. It represents the version string of
13616 // the service API or implementation. The format is not defined by these
13617 // conventions.
13618 func ServiceVersion(val string) attribute.KeyValue {
13619 return ServiceVersionKey.String(val)
13620 }
13621
13622 // Namespace: session
13623 const (
13624 // SessionIDKey is the attribute Key conforming to the "session.id" semantic
13625 // conventions. It represents a unique id to identify a session.
13626 //
13627 // Type: string
13628 // RequirementLevel: Recommended
13629 // Stability: Development
13630 //
13631 // Examples: 00112233-4455-6677-8899-aabbccddeeff
13632 SessionIDKey = attribute.Key("session.id")
13633
13634 // SessionPreviousIDKey is the attribute Key conforming to the
13635 // "session.previous_id" semantic conventions. It represents the previous
13636 // `session.id` for this user, when known.
13637 //
13638 // Type: string
13639 // RequirementLevel: Recommended
13640 // Stability: Development
13641 //
13642 // Examples: 00112233-4455-6677-8899-aabbccddeeff
13643 SessionPreviousIDKey = attribute.Key("session.previous_id")
13644 )
13645
13646 // SessionID returns an attribute KeyValue conforming to the "session.id"
13647 // semantic conventions. It represents a unique id to identify a session.
13648 func SessionID(val string) attribute.KeyValue {
13649 return SessionIDKey.String(val)
13650 }
13651
13652 // SessionPreviousID returns an attribute KeyValue conforming to the
13653 // "session.previous_id" semantic conventions. It represents the previous
13654 // `session.id` for this user, when known.
13655 func SessionPreviousID(val string) attribute.KeyValue {
13656 return SessionPreviousIDKey.String(val)
13657 }
13658
13659 // Namespace: signalr
13660 const (
13661 // SignalRConnectionStatusKey is the attribute Key conforming to the
13662 // "signalr.connection.status" semantic conventions. It represents the signalR
13663 // HTTP connection closure status.
13664 //
13665 // Type: Enum
13666 // RequirementLevel: Recommended
13667 // Stability: Stable
13668 //
13669 // Examples: "app_shutdown", "timeout"
13670 SignalRConnectionStatusKey = attribute.Key("signalr.connection.status")
13671
13672 // SignalRTransportKey is the attribute Key conforming to the
13673 // "signalr.transport" semantic conventions. It represents the
13674 // [SignalR transport type].
13675 //
13676 // Type: Enum
13677 // RequirementLevel: Recommended
13678 // Stability: Stable
13679 //
13680 // Examples: "web_sockets", "long_polling"
13681 //
13682 // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
13683 SignalRTransportKey = attribute.Key("signalr.transport")
13684 )
13685
13686 // Enum values for signalr.connection.status
13687 var (
13688 // The connection was closed normally.
13689 // Stability: stable
13690 SignalRConnectionStatusNormalClosure = SignalRConnectionStatusKey.String("normal_closure")
13691 // The connection was closed due to a timeout.
13692 // Stability: stable
13693 SignalRConnectionStatusTimeout = SignalRConnectionStatusKey.String("timeout")
13694 // The connection was closed because the app is shutting down.
13695 // Stability: stable
13696 SignalRConnectionStatusAppShutdown = SignalRConnectionStatusKey.String("app_shutdown")
13697 )
13698
13699 // Enum values for signalr.transport
13700 var (
13701 // ServerSentEvents protocol
13702 // Stability: stable
13703 SignalRTransportServerSentEvents = SignalRTransportKey.String("server_sent_events")
13704 // LongPolling protocol
13705 // Stability: stable
13706 SignalRTransportLongPolling = SignalRTransportKey.String("long_polling")
13707 // WebSockets protocol
13708 // Stability: stable
13709 SignalRTransportWebSockets = SignalRTransportKey.String("web_sockets")
13710 )
13711
13712 // Namespace: source
13713 const (
13714 // SourceAddressKey is the attribute Key conforming to the "source.address"
13715 // semantic conventions. It represents the source address - domain name if
13716 // available without reverse DNS lookup; otherwise, IP address or Unix domain
13717 // socket name.
13718 //
13719 // Type: string
13720 // RequirementLevel: Recommended
13721 // Stability: Development
13722 //
13723 // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
13724 // Note: When observed from the destination side, and when communicating through
13725 // an intermediary, `source.address` SHOULD represent the source address behind
13726 // any intermediaries, for example proxies, if it's available.
13727 SourceAddressKey = attribute.Key("source.address")
13728
13729 // SourcePortKey is the attribute Key conforming to the "source.port" semantic
13730 // conventions. It represents the source port number.
13731 //
13732 // Type: int
13733 // RequirementLevel: Recommended
13734 // Stability: Development
13735 //
13736 // Examples: 3389, 2888
13737 SourcePortKey = attribute.Key("source.port")
13738 )
13739
13740 // SourceAddress returns an attribute KeyValue conforming to the "source.address"
13741 // semantic conventions. It represents the source address - domain name if
13742 // available without reverse DNS lookup; otherwise, IP address or Unix domain
13743 // socket name.
13744 func SourceAddress(val string) attribute.KeyValue {
13745 return SourceAddressKey.String(val)
13746 }
13747
13748 // SourcePort returns an attribute KeyValue conforming to the "source.port"
13749 // semantic conventions. It represents the source port number.
13750 func SourcePort(val int) attribute.KeyValue {
13751 return SourcePortKey.Int(val)
13752 }
13753
13754 // Namespace: system
13755 const (
13756 // SystemDeviceKey is the attribute Key conforming to the "system.device"
13757 // semantic conventions. It represents the device identifier.
13758 //
13759 // Type: string
13760 // RequirementLevel: Recommended
13761 // Stability: Development
13762 //
13763 // Examples: "(identifier)"
13764 SystemDeviceKey = attribute.Key("system.device")
13765
13766 // SystemFilesystemModeKey is the attribute Key conforming to the
13767 // "system.filesystem.mode" semantic conventions. It represents the filesystem
13768 // mode.
13769 //
13770 // Type: string
13771 // RequirementLevel: Recommended
13772 // Stability: Development
13773 //
13774 // Examples: "rw, ro"
13775 SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
13776
13777 // SystemFilesystemMountpointKey is the attribute Key conforming to the
13778 // "system.filesystem.mountpoint" semantic conventions. It represents the
13779 // filesystem mount path.
13780 //
13781 // Type: string
13782 // RequirementLevel: Recommended
13783 // Stability: Development
13784 //
13785 // Examples: "/mnt/data"
13786 SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
13787
13788 // SystemFilesystemStateKey is the attribute Key conforming to the
13789 // "system.filesystem.state" semantic conventions. It represents the filesystem
13790 // state.
13791 //
13792 // Type: Enum
13793 // RequirementLevel: Recommended
13794 // Stability: Development
13795 //
13796 // Examples: "used"
13797 SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
13798
13799 // SystemFilesystemTypeKey is the attribute Key conforming to the
13800 // "system.filesystem.type" semantic conventions. It represents the filesystem
13801 // type.
13802 //
13803 // Type: Enum
13804 // RequirementLevel: Recommended
13805 // Stability: Development
13806 //
13807 // Examples: "ext4"
13808 SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
13809
13810 // SystemMemoryStateKey is the attribute Key conforming to the
13811 // "system.memory.state" semantic conventions. It represents the memory state.
13812 //
13813 // Type: Enum
13814 // RequirementLevel: Recommended
13815 // Stability: Development
13816 //
13817 // Examples: "free", "cached"
13818 SystemMemoryStateKey = attribute.Key("system.memory.state")
13819
13820 // SystemPagingDirectionKey is the attribute Key conforming to the
13821 // "system.paging.direction" semantic conventions. It represents the paging
13822 // access direction.
13823 //
13824 // Type: Enum
13825 // RequirementLevel: Recommended
13826 // Stability: Development
13827 //
13828 // Examples: "in"
13829 SystemPagingDirectionKey = attribute.Key("system.paging.direction")
13830
13831 // SystemPagingFaultTypeKey is the attribute Key conforming to the
13832 // "system.paging.fault.type" semantic conventions. It represents the paging
13833 // fault type.
13834 //
13835 // Type: Enum
13836 // RequirementLevel: Recommended
13837 // Stability: Development
13838 //
13839 // Examples: "minor"
13840 SystemPagingFaultTypeKey = attribute.Key("system.paging.fault.type")
13841
13842 // SystemPagingStateKey is the attribute Key conforming to the
13843 // "system.paging.state" semantic conventions. It represents the memory paging
13844 // state.
13845 //
13846 // Type: Enum
13847 // RequirementLevel: Recommended
13848 // Stability: Development
13849 //
13850 // Examples: "free"
13851 SystemPagingStateKey = attribute.Key("system.paging.state")
13852 )
13853
13854 // SystemDevice returns an attribute KeyValue conforming to the "system.device"
13855 // semantic conventions. It represents the device identifier.
13856 func SystemDevice(val string) attribute.KeyValue {
13857 return SystemDeviceKey.String(val)
13858 }
13859
13860 // SystemFilesystemMode returns an attribute KeyValue conforming to the
13861 // "system.filesystem.mode" semantic conventions. It represents the filesystem
13862 // mode.
13863 func SystemFilesystemMode(val string) attribute.KeyValue {
13864 return SystemFilesystemModeKey.String(val)
13865 }
13866
13867 // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
13868 // "system.filesystem.mountpoint" semantic conventions. It represents the
13869 // filesystem mount path.
13870 func SystemFilesystemMountpoint(val string) attribute.KeyValue {
13871 return SystemFilesystemMountpointKey.String(val)
13872 }
13873
13874 // Enum values for system.filesystem.state
13875 var (
13876 // used
13877 // Stability: development
13878 SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
13879 // free
13880 // Stability: development
13881 SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
13882 // reserved
13883 // Stability: development
13884 SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
13885 )
13886
13887 // Enum values for system.filesystem.type
13888 var (
13889 // fat32
13890 // Stability: development
13891 SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
13892 // exfat
13893 // Stability: development
13894 SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
13895 // ntfs
13896 // Stability: development
13897 SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
13898 // refs
13899 // Stability: development
13900 SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
13901 // hfsplus
13902 // Stability: development
13903 SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
13904 // ext4
13905 // Stability: development
13906 SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
13907 )
13908
13909 // Enum values for system.memory.state
13910 var (
13911 // Actual used virtual memory in bytes.
13912 // Stability: development
13913 SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
13914 // free
13915 // Stability: development
13916 SystemMemoryStateFree = SystemMemoryStateKey.String("free")
13917 // buffers
13918 // Stability: development
13919 SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
13920 // cached
13921 // Stability: development
13922 SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
13923 )
13924
13925 // Enum values for system.paging.direction
13926 var (
13927 // in
13928 // Stability: development
13929 SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
13930 // out
13931 // Stability: development
13932 SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
13933 )
13934
13935 // Enum values for system.paging.fault.type
13936 var (
13937 // major
13938 // Stability: development
13939 SystemPagingFaultTypeMajor = SystemPagingFaultTypeKey.String("major")
13940 // minor
13941 // Stability: development
13942 SystemPagingFaultTypeMinor = SystemPagingFaultTypeKey.String("minor")
13943 )
13944
13945 // Enum values for system.paging.state
13946 var (
13947 // used
13948 // Stability: development
13949 SystemPagingStateUsed = SystemPagingStateKey.String("used")
13950 // free
13951 // Stability: development
13952 SystemPagingStateFree = SystemPagingStateKey.String("free")
13953 )
13954
13955 // Namespace: telemetry
13956 const (
13957 // TelemetryDistroNameKey is the attribute Key conforming to the
13958 // "telemetry.distro.name" semantic conventions. It represents the name of the
13959 // auto instrumentation agent or distribution, if used.
13960 //
13961 // Type: string
13962 // RequirementLevel: Recommended
13963 // Stability: Development
13964 //
13965 // Examples: "parts-unlimited-java"
13966 // Note: Official auto instrumentation agents and distributions SHOULD set the
13967 // `telemetry.distro.name` attribute to
13968 // a string starting with `opentelemetry-`, e.g.
13969 // `opentelemetry-java-instrumentation`.
13970 TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
13971
13972 // TelemetryDistroVersionKey is the attribute Key conforming to the
13973 // "telemetry.distro.version" semantic conventions. It represents the version
13974 // string of the auto instrumentation agent or distribution, if used.
13975 //
13976 // Type: string
13977 // RequirementLevel: Recommended
13978 // Stability: Development
13979 //
13980 // Examples: "1.2.3"
13981 TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
13982
13983 // TelemetrySDKLanguageKey is the attribute Key conforming to the
13984 // "telemetry.sdk.language" semantic conventions. It represents the language of
13985 // the telemetry SDK.
13986 //
13987 // Type: Enum
13988 // RequirementLevel: Recommended
13989 // Stability: Stable
13990 //
13991 // Examples:
13992 TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
13993
13994 // TelemetrySDKNameKey is the attribute Key conforming to the
13995 // "telemetry.sdk.name" semantic conventions. It represents the name of the
13996 // telemetry SDK as defined above.
13997 //
13998 // Type: string
13999 // RequirementLevel: Recommended
14000 // Stability: Stable
14001 //
14002 // Examples: "opentelemetry"
14003 // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
14004 // `opentelemetry`.
14005 // If another SDK, like a fork or a vendor-provided implementation, is used,
14006 // this SDK MUST set the
14007 // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
14008 // this SDK's main entry point
14009 // or another suitable identifier depending on the language.
14010 // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
14011 // All custom identifiers SHOULD be stable across different versions of an
14012 // implementation.
14013 TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
14014
14015 // TelemetrySDKVersionKey is the attribute Key conforming to the
14016 // "telemetry.sdk.version" semantic conventions. It represents the version
14017 // string of the telemetry SDK.
14018 //
14019 // Type: string
14020 // RequirementLevel: Recommended
14021 // Stability: Stable
14022 //
14023 // Examples: "1.2.3"
14024 TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
14025 )
14026
14027 // TelemetryDistroName returns an attribute KeyValue conforming to the
14028 // "telemetry.distro.name" semantic conventions. It represents the name of the
14029 // auto instrumentation agent or distribution, if used.
14030 func TelemetryDistroName(val string) attribute.KeyValue {
14031 return TelemetryDistroNameKey.String(val)
14032 }
14033
14034 // TelemetryDistroVersion returns an attribute KeyValue conforming to the
14035 // "telemetry.distro.version" semantic conventions. It represents the version
14036 // string of the auto instrumentation agent or distribution, if used.
14037 func TelemetryDistroVersion(val string) attribute.KeyValue {
14038 return TelemetryDistroVersionKey.String(val)
14039 }
14040
14041 // TelemetrySDKName returns an attribute KeyValue conforming to the
14042 // "telemetry.sdk.name" semantic conventions. It represents the name of the
14043 // telemetry SDK as defined above.
14044 func TelemetrySDKName(val string) attribute.KeyValue {
14045 return TelemetrySDKNameKey.String(val)
14046 }
14047
14048 // TelemetrySDKVersion returns an attribute KeyValue conforming to the
14049 // "telemetry.sdk.version" semantic conventions. It represents the version string
14050 // of the telemetry SDK.
14051 func TelemetrySDKVersion(val string) attribute.KeyValue {
14052 return TelemetrySDKVersionKey.String(val)
14053 }
14054
14055 // Enum values for telemetry.sdk.language
14056 var (
14057 // cpp
14058 // Stability: stable
14059 TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
14060 // dotnet
14061 // Stability: stable
14062 TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
14063 // erlang
14064 // Stability: stable
14065 TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
14066 // go
14067 // Stability: stable
14068 TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
14069 // java
14070 // Stability: stable
14071 TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
14072 // nodejs
14073 // Stability: stable
14074 TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
14075 // php
14076 // Stability: stable
14077 TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
14078 // python
14079 // Stability: stable
14080 TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
14081 // ruby
14082 // Stability: stable
14083 TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
14084 // rust
14085 // Stability: stable
14086 TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
14087 // swift
14088 // Stability: stable
14089 TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
14090 // webjs
14091 // Stability: stable
14092 TelemetrySDKLanguageWebJS = TelemetrySDKLanguageKey.String("webjs")
14093 )
14094
14095 // Namespace: test
14096 const (
14097 // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
14098 // semantic conventions. It represents the fully qualified human readable name
14099 // of the [test case].
14100 //
14101 // Type: string
14102 // RequirementLevel: Recommended
14103 // Stability: Development
14104 //
14105 // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
14106 // "ExampleTestCase1_test1"
14107 //
14108 // [test case]: https://wikipedia.org/wiki/Test_case
14109 TestCaseNameKey = attribute.Key("test.case.name")
14110
14111 // TestCaseResultStatusKey is the attribute Key conforming to the
14112 // "test.case.result.status" semantic conventions. It represents the status of
14113 // the actual test case result from test execution.
14114 //
14115 // Type: Enum
14116 // RequirementLevel: Recommended
14117 // Stability: Development
14118 //
14119 // Examples: "pass", "fail"
14120 TestCaseResultStatusKey = attribute.Key("test.case.result.status")
14121
14122 // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
14123 // semantic conventions. It represents the human readable name of a [test suite]
14124 // .
14125 //
14126 // Type: string
14127 // RequirementLevel: Recommended
14128 // Stability: Development
14129 //
14130 // Examples: "TestSuite1"
14131 //
14132 // [test suite]: https://wikipedia.org/wiki/Test_suite
14133 TestSuiteNameKey = attribute.Key("test.suite.name")
14134
14135 // TestSuiteRunStatusKey is the attribute Key conforming to the
14136 // "test.suite.run.status" semantic conventions. It represents the status of the
14137 // test suite run.
14138 //
14139 // Type: Enum
14140 // RequirementLevel: Recommended
14141 // Stability: Development
14142 //
14143 // Examples: "success", "failure", "skipped", "aborted", "timed_out",
14144 // "in_progress"
14145 TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
14146 )
14147
14148 // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
14149 // semantic conventions. It represents the fully qualified human readable name of
14150 // the [test case].
14151 //
14152 // [test case]: https://wikipedia.org/wiki/Test_case
14153 func TestCaseName(val string) attribute.KeyValue {
14154 return TestCaseNameKey.String(val)
14155 }
14156
14157 // TestSuiteName returns an attribute KeyValue conforming to the
14158 // "test.suite.name" semantic conventions. It represents the human readable name
14159 // of a [test suite].
14160 //
14161 // [test suite]: https://wikipedia.org/wiki/Test_suite
14162 func TestSuiteName(val string) attribute.KeyValue {
14163 return TestSuiteNameKey.String(val)
14164 }
14165
14166 // Enum values for test.case.result.status
14167 var (
14168 // pass
14169 // Stability: development
14170 TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
14171 // fail
14172 // Stability: development
14173 TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
14174 )
14175
14176 // Enum values for test.suite.run.status
14177 var (
14178 // success
14179 // Stability: development
14180 TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
14181 // failure
14182 // Stability: development
14183 TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
14184 // skipped
14185 // Stability: development
14186 TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
14187 // aborted
14188 // Stability: development
14189 TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
14190 // timed_out
14191 // Stability: development
14192 TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
14193 // in_progress
14194 // Stability: development
14195 TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
14196 )
14197
14198 // Namespace: thread
14199 const (
14200 // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
14201 // conventions. It represents the current "managed" thread ID (as opposed to OS
14202 // thread ID).
14203 //
14204 // Type: int
14205 // RequirementLevel: Recommended
14206 // Stability: Development
14207 //
14208 // Note:
14209 // Examples of where the value can be extracted from:
14210 //
14211 // | Language or platform | Source |
14212 // | --- | --- |
14213 // | JVM | `Thread.currentThread().threadId()` |
14214 // | .NET | `Thread.CurrentThread.ManagedThreadId` |
14215 // | Python | `threading.current_thread().ident` |
14216 // | Ruby | `Thread.current.object_id` |
14217 // | C++ | `std::this_thread::get_id()` |
14218 // | Erlang | `erlang:self()` |
14219 ThreadIDKey = attribute.Key("thread.id")
14220
14221 // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
14222 // conventions. It represents the current thread name.
14223 //
14224 // Type: string
14225 // RequirementLevel: Recommended
14226 // Stability: Development
14227 //
14228 // Examples: main
14229 // Note:
14230 // Examples of where the value can be extracted from:
14231 //
14232 // | Language or platform | Source |
14233 // | --- | --- |
14234 // | JVM | `Thread.currentThread().getName()` |
14235 // | .NET | `Thread.CurrentThread.Name` |
14236 // | Python | `threading.current_thread().name` |
14237 // | Ruby | `Thread.current.name` |
14238 // | Erlang | `erlang:process_info(self(), registered_name)` |
14239 ThreadNameKey = attribute.Key("thread.name")
14240 )
14241
14242 // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
14243 // conventions. It represents the current "managed" thread ID (as opposed to OS
14244 // thread ID).
14245 func ThreadID(val int) attribute.KeyValue {
14246 return ThreadIDKey.Int(val)
14247 }
14248
14249 // ThreadName returns an attribute KeyValue conforming to the "thread.name"
14250 // semantic conventions. It represents the current thread name.
14251 func ThreadName(val string) attribute.KeyValue {
14252 return ThreadNameKey.String(val)
14253 }
14254
14255 // Namespace: tls
14256 const (
14257 // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
14258 // conventions. It represents the string indicating the [cipher] used during the
14259 // current connection.
14260 //
14261 // Type: string
14262 // RequirementLevel: Recommended
14263 // Stability: Development
14264 //
14265 // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
14266 // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
14267 // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
14268 // of the [registered TLS Cipher Suits].
14269 //
14270 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
14271 // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
14272 TLSCipherKey = attribute.Key("tls.cipher")
14273
14274 // TLSClientCertificateKey is the attribute Key conforming to the
14275 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
14276 // stand-alone certificate offered by the client. This is usually
14277 // mutually-exclusive of `client.certificate_chain` since this value also exists
14278 // in that list.
14279 //
14280 // Type: string
14281 // RequirementLevel: Recommended
14282 // Stability: Development
14283 //
14284 // Examples: "MII..."
14285 TLSClientCertificateKey = attribute.Key("tls.client.certificate")
14286
14287 // TLSClientCertificateChainKey is the attribute Key conforming to the
14288 // "tls.client.certificate_chain" semantic conventions. It represents the array
14289 // of PEM-encoded certificates that make up the certificate chain offered by the
14290 // client. This is usually mutually-exclusive of `client.certificate` since that
14291 // value should be the first certificate in the chain.
14292 //
14293 // Type: string[]
14294 // RequirementLevel: Recommended
14295 // Stability: Development
14296 //
14297 // Examples: "MII...", "MI..."
14298 TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
14299
14300 // TLSClientHashMd5Key is the attribute Key conforming to the
14301 // "tls.client.hash.md5" semantic conventions. It represents the certificate
14302 // fingerprint using the MD5 digest of DER-encoded version of certificate
14303 // offered by the client. For consistency with other hash values, this value
14304 // should be formatted as an uppercase hash.
14305 //
14306 // Type: string
14307 // RequirementLevel: Recommended
14308 // Stability: Development
14309 //
14310 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
14311 TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
14312
14313 // TLSClientHashSha1Key is the attribute Key conforming to the
14314 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
14315 // fingerprint using the SHA1 digest of DER-encoded version of certificate
14316 // offered by the client. For consistency with other hash values, this value
14317 // should be formatted as an uppercase hash.
14318 //
14319 // Type: string
14320 // RequirementLevel: Recommended
14321 // Stability: Development
14322 //
14323 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
14324 TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
14325
14326 // TLSClientHashSha256Key is the attribute Key conforming to the
14327 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
14328 // fingerprint using the SHA256 digest of DER-encoded version of certificate
14329 // offered by the client. For consistency with other hash values, this value
14330 // should be formatted as an uppercase hash.
14331 //
14332 // Type: string
14333 // RequirementLevel: Recommended
14334 // Stability: Development
14335 //
14336 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
14337 TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
14338
14339 // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
14340 // semantic conventions. It represents the distinguished name of [subject] of
14341 // the issuer of the x.509 certificate presented by the client.
14342 //
14343 // Type: string
14344 // RequirementLevel: Recommended
14345 // Stability: Development
14346 //
14347 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
14348 //
14349 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
14350 TLSClientIssuerKey = attribute.Key("tls.client.issuer")
14351
14352 // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
14353 // semantic conventions. It represents a hash that identifies clients based on
14354 // how they perform an SSL/TLS handshake.
14355 //
14356 // Type: string
14357 // RequirementLevel: Recommended
14358 // Stability: Development
14359 //
14360 // Examples: "d4e5b18d6b55c71272893221c96ba240"
14361 TLSClientJa3Key = attribute.Key("tls.client.ja3")
14362
14363 // TLSClientNotAfterKey is the attribute Key conforming to the
14364 // "tls.client.not_after" semantic conventions. It represents the date/Time
14365 // indicating when client certificate is no longer considered valid.
14366 //
14367 // Type: string
14368 // RequirementLevel: Recommended
14369 // Stability: Development
14370 //
14371 // Examples: "2021-01-01T00:00:00.000Z"
14372 TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
14373
14374 // TLSClientNotBeforeKey is the attribute Key conforming to the
14375 // "tls.client.not_before" semantic conventions. It represents the date/Time
14376 // indicating when client certificate is first considered valid.
14377 //
14378 // Type: string
14379 // RequirementLevel: Recommended
14380 // Stability: Development
14381 //
14382 // Examples: "1970-01-01T00:00:00.000Z"
14383 TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
14384
14385 // TLSClientSubjectKey is the attribute Key conforming to the
14386 // "tls.client.subject" semantic conventions. It represents the distinguished
14387 // name of subject of the x.509 certificate presented by the client.
14388 //
14389 // Type: string
14390 // RequirementLevel: Recommended
14391 // Stability: Development
14392 //
14393 // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
14394 TLSClientSubjectKey = attribute.Key("tls.client.subject")
14395
14396 // TLSClientSupportedCiphersKey is the attribute Key conforming to the
14397 // "tls.client.supported_ciphers" semantic conventions. It represents the array
14398 // of ciphers offered by the client during the client hello.
14399 //
14400 // Type: string[]
14401 // RequirementLevel: Recommended
14402 // Stability: Development
14403 //
14404 // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
14405 // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
14406 TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
14407
14408 // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
14409 // conventions. It represents the string indicating the curve used for the given
14410 // cipher, when applicable.
14411 //
14412 // Type: string
14413 // RequirementLevel: Recommended
14414 // Stability: Development
14415 //
14416 // Examples: "secp256r1"
14417 TLSCurveKey = attribute.Key("tls.curve")
14418
14419 // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
14420 // semantic conventions. It represents the boolean flag indicating if the TLS
14421 // negotiation was successful and transitioned to an encrypted tunnel.
14422 //
14423 // Type: boolean
14424 // RequirementLevel: Recommended
14425 // Stability: Development
14426 //
14427 // Examples: true
14428 TLSEstablishedKey = attribute.Key("tls.established")
14429
14430 // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
14431 // semantic conventions. It represents the string indicating the protocol being
14432 // tunneled. Per the values in the [IANA registry], this string should be lower
14433 // case.
14434 //
14435 // Type: string
14436 // RequirementLevel: Recommended
14437 // Stability: Development
14438 //
14439 // Examples: "http/1.1"
14440 //
14441 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
14442 TLSNextProtocolKey = attribute.Key("tls.next_protocol")
14443
14444 // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
14445 // semantic conventions. It represents the normalized lowercase protocol name
14446 // parsed from original string of the negotiated [SSL/TLS protocol version].
14447 //
14448 // Type: Enum
14449 // RequirementLevel: Recommended
14450 // Stability: Development
14451 //
14452 // Examples:
14453 //
14454 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
14455 TLSProtocolNameKey = attribute.Key("tls.protocol.name")
14456
14457 // TLSProtocolVersionKey is the attribute Key conforming to the
14458 // "tls.protocol.version" semantic conventions. It represents the numeric part
14459 // of the version parsed from the original string of the negotiated
14460 // [SSL/TLS protocol version].
14461 //
14462 // Type: string
14463 // RequirementLevel: Recommended
14464 // Stability: Development
14465 //
14466 // Examples: "1.2", "3"
14467 //
14468 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
14469 TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
14470
14471 // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
14472 // conventions. It represents the boolean flag indicating if this TLS connection
14473 // was resumed from an existing TLS negotiation.
14474 //
14475 // Type: boolean
14476 // RequirementLevel: Recommended
14477 // Stability: Development
14478 //
14479 // Examples: true
14480 TLSResumedKey = attribute.Key("tls.resumed")
14481
14482 // TLSServerCertificateKey is the attribute Key conforming to the
14483 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
14484 // stand-alone certificate offered by the server. This is usually
14485 // mutually-exclusive of `server.certificate_chain` since this value also exists
14486 // in that list.
14487 //
14488 // Type: string
14489 // RequirementLevel: Recommended
14490 // Stability: Development
14491 //
14492 // Examples: "MII..."
14493 TLSServerCertificateKey = attribute.Key("tls.server.certificate")
14494
14495 // TLSServerCertificateChainKey is the attribute Key conforming to the
14496 // "tls.server.certificate_chain" semantic conventions. It represents the array
14497 // of PEM-encoded certificates that make up the certificate chain offered by the
14498 // server. This is usually mutually-exclusive of `server.certificate` since that
14499 // value should be the first certificate in the chain.
14500 //
14501 // Type: string[]
14502 // RequirementLevel: Recommended
14503 // Stability: Development
14504 //
14505 // Examples: "MII...", "MI..."
14506 TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
14507
14508 // TLSServerHashMd5Key is the attribute Key conforming to the
14509 // "tls.server.hash.md5" semantic conventions. It represents the certificate
14510 // fingerprint using the MD5 digest of DER-encoded version of certificate
14511 // offered by the server. For consistency with other hash values, this value
14512 // should be formatted as an uppercase hash.
14513 //
14514 // Type: string
14515 // RequirementLevel: Recommended
14516 // Stability: Development
14517 //
14518 // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
14519 TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
14520
14521 // TLSServerHashSha1Key is the attribute Key conforming to the
14522 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
14523 // fingerprint using the SHA1 digest of DER-encoded version of certificate
14524 // offered by the server. For consistency with other hash values, this value
14525 // should be formatted as an uppercase hash.
14526 //
14527 // Type: string
14528 // RequirementLevel: Recommended
14529 // Stability: Development
14530 //
14531 // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
14532 TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
14533
14534 // TLSServerHashSha256Key is the attribute Key conforming to the
14535 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
14536 // fingerprint using the SHA256 digest of DER-encoded version of certificate
14537 // offered by the server. For consistency with other hash values, this value
14538 // should be formatted as an uppercase hash.
14539 //
14540 // Type: string
14541 // RequirementLevel: Recommended
14542 // Stability: Development
14543 //
14544 // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
14545 TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
14546
14547 // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
14548 // semantic conventions. It represents the distinguished name of [subject] of
14549 // the issuer of the x.509 certificate presented by the client.
14550 //
14551 // Type: string
14552 // RequirementLevel: Recommended
14553 // Stability: Development
14554 //
14555 // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
14556 //
14557 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
14558 TLSServerIssuerKey = attribute.Key("tls.server.issuer")
14559
14560 // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
14561 // semantic conventions. It represents a hash that identifies servers based on
14562 // how they perform an SSL/TLS handshake.
14563 //
14564 // Type: string
14565 // RequirementLevel: Recommended
14566 // Stability: Development
14567 //
14568 // Examples: "d4e5b18d6b55c71272893221c96ba240"
14569 TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
14570
14571 // TLSServerNotAfterKey is the attribute Key conforming to the
14572 // "tls.server.not_after" semantic conventions. It represents the date/Time
14573 // indicating when server certificate is no longer considered valid.
14574 //
14575 // Type: string
14576 // RequirementLevel: Recommended
14577 // Stability: Development
14578 //
14579 // Examples: "2021-01-01T00:00:00.000Z"
14580 TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
14581
14582 // TLSServerNotBeforeKey is the attribute Key conforming to the
14583 // "tls.server.not_before" semantic conventions. It represents the date/Time
14584 // indicating when server certificate is first considered valid.
14585 //
14586 // Type: string
14587 // RequirementLevel: Recommended
14588 // Stability: Development
14589 //
14590 // Examples: "1970-01-01T00:00:00.000Z"
14591 TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
14592
14593 // TLSServerSubjectKey is the attribute Key conforming to the
14594 // "tls.server.subject" semantic conventions. It represents the distinguished
14595 // name of subject of the x.509 certificate presented by the server.
14596 //
14597 // Type: string
14598 // RequirementLevel: Recommended
14599 // Stability: Development
14600 //
14601 // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
14602 TLSServerSubjectKey = attribute.Key("tls.server.subject")
14603 )
14604
14605 // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
14606 // semantic conventions. It represents the string indicating the [cipher] used
14607 // during the current connection.
14608 //
14609 // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
14610 func TLSCipher(val string) attribute.KeyValue {
14611 return TLSCipherKey.String(val)
14612 }
14613
14614 // TLSClientCertificate returns an attribute KeyValue conforming to the
14615 // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
14616 // stand-alone certificate offered by the client. This is usually
14617 // mutually-exclusive of `client.certificate_chain` since this value also exists
14618 // in that list.
14619 func TLSClientCertificate(val string) attribute.KeyValue {
14620 return TLSClientCertificateKey.String(val)
14621 }
14622
14623 // TLSClientCertificateChain returns an attribute KeyValue conforming to the
14624 // "tls.client.certificate_chain" semantic conventions. It represents the array
14625 // of PEM-encoded certificates that make up the certificate chain offered by the
14626 // client. This is usually mutually-exclusive of `client.certificate` since that
14627 // value should be the first certificate in the chain.
14628 func TLSClientCertificateChain(val ...string) attribute.KeyValue {
14629 return TLSClientCertificateChainKey.StringSlice(val)
14630 }
14631
14632 // TLSClientHashMd5 returns an attribute KeyValue conforming to the
14633 // "tls.client.hash.md5" semantic conventions. It represents the certificate
14634 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
14635 // by the client. For consistency with other hash values, this value should be
14636 // formatted as an uppercase hash.
14637 func TLSClientHashMd5(val string) attribute.KeyValue {
14638 return TLSClientHashMd5Key.String(val)
14639 }
14640
14641 // TLSClientHashSha1 returns an attribute KeyValue conforming to the
14642 // "tls.client.hash.sha1" semantic conventions. It represents the certificate
14643 // fingerprint using the SHA1 digest of DER-encoded version of certificate
14644 // offered by the client. For consistency with other hash values, this value
14645 // should be formatted as an uppercase hash.
14646 func TLSClientHashSha1(val string) attribute.KeyValue {
14647 return TLSClientHashSha1Key.String(val)
14648 }
14649
14650 // TLSClientHashSha256 returns an attribute KeyValue conforming to the
14651 // "tls.client.hash.sha256" semantic conventions. It represents the certificate
14652 // fingerprint using the SHA256 digest of DER-encoded version of certificate
14653 // offered by the client. For consistency with other hash values, this value
14654 // should be formatted as an uppercase hash.
14655 func TLSClientHashSha256(val string) attribute.KeyValue {
14656 return TLSClientHashSha256Key.String(val)
14657 }
14658
14659 // TLSClientIssuer returns an attribute KeyValue conforming to the
14660 // "tls.client.issuer" semantic conventions. It represents the distinguished name
14661 // of [subject] of the issuer of the x.509 certificate presented by the client.
14662 //
14663 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
14664 func TLSClientIssuer(val string) attribute.KeyValue {
14665 return TLSClientIssuerKey.String(val)
14666 }
14667
14668 // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
14669 // semantic conventions. It represents a hash that identifies clients based on
14670 // how they perform an SSL/TLS handshake.
14671 func TLSClientJa3(val string) attribute.KeyValue {
14672 return TLSClientJa3Key.String(val)
14673 }
14674
14675 // TLSClientNotAfter returns an attribute KeyValue conforming to the
14676 // "tls.client.not_after" semantic conventions. It represents the date/Time
14677 // indicating when client certificate is no longer considered valid.
14678 func TLSClientNotAfter(val string) attribute.KeyValue {
14679 return TLSClientNotAfterKey.String(val)
14680 }
14681
14682 // TLSClientNotBefore returns an attribute KeyValue conforming to the
14683 // "tls.client.not_before" semantic conventions. It represents the date/Time
14684 // indicating when client certificate is first considered valid.
14685 func TLSClientNotBefore(val string) attribute.KeyValue {
14686 return TLSClientNotBeforeKey.String(val)
14687 }
14688
14689 // TLSClientSubject returns an attribute KeyValue conforming to the
14690 // "tls.client.subject" semantic conventions. It represents the distinguished
14691 // name of subject of the x.509 certificate presented by the client.
14692 func TLSClientSubject(val string) attribute.KeyValue {
14693 return TLSClientSubjectKey.String(val)
14694 }
14695
14696 // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
14697 // "tls.client.supported_ciphers" semantic conventions. It represents the array
14698 // of ciphers offered by the client during the client hello.
14699 func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
14700 return TLSClientSupportedCiphersKey.StringSlice(val)
14701 }
14702
14703 // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
14704 // conventions. It represents the string indicating the curve used for the given
14705 // cipher, when applicable.
14706 func TLSCurve(val string) attribute.KeyValue {
14707 return TLSCurveKey.String(val)
14708 }
14709
14710 // TLSEstablished returns an attribute KeyValue conforming to the
14711 // "tls.established" semantic conventions. It represents the boolean flag
14712 // indicating if the TLS negotiation was successful and transitioned to an
14713 // encrypted tunnel.
14714 func TLSEstablished(val bool) attribute.KeyValue {
14715 return TLSEstablishedKey.Bool(val)
14716 }
14717
14718 // TLSNextProtocol returns an attribute KeyValue conforming to the
14719 // "tls.next_protocol" semantic conventions. It represents the string indicating
14720 // the protocol being tunneled. Per the values in the [IANA registry], this
14721 // string should be lower case.
14722 //
14723 // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
14724 func TLSNextProtocol(val string) attribute.KeyValue {
14725 return TLSNextProtocolKey.String(val)
14726 }
14727
14728 // TLSProtocolVersion returns an attribute KeyValue conforming to the
14729 // "tls.protocol.version" semantic conventions. It represents the numeric part of
14730 // the version parsed from the original string of the negotiated
14731 // [SSL/TLS protocol version].
14732 //
14733 // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
14734 func TLSProtocolVersion(val string) attribute.KeyValue {
14735 return TLSProtocolVersionKey.String(val)
14736 }
14737
14738 // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
14739 // semantic conventions. It represents the boolean flag indicating if this TLS
14740 // connection was resumed from an existing TLS negotiation.
14741 func TLSResumed(val bool) attribute.KeyValue {
14742 return TLSResumedKey.Bool(val)
14743 }
14744
14745 // TLSServerCertificate returns an attribute KeyValue conforming to the
14746 // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
14747 // stand-alone certificate offered by the server. This is usually
14748 // mutually-exclusive of `server.certificate_chain` since this value also exists
14749 // in that list.
14750 func TLSServerCertificate(val string) attribute.KeyValue {
14751 return TLSServerCertificateKey.String(val)
14752 }
14753
14754 // TLSServerCertificateChain returns an attribute KeyValue conforming to the
14755 // "tls.server.certificate_chain" semantic conventions. It represents the array
14756 // of PEM-encoded certificates that make up the certificate chain offered by the
14757 // server. This is usually mutually-exclusive of `server.certificate` since that
14758 // value should be the first certificate in the chain.
14759 func TLSServerCertificateChain(val ...string) attribute.KeyValue {
14760 return TLSServerCertificateChainKey.StringSlice(val)
14761 }
14762
14763 // TLSServerHashMd5 returns an attribute KeyValue conforming to the
14764 // "tls.server.hash.md5" semantic conventions. It represents the certificate
14765 // fingerprint using the MD5 digest of DER-encoded version of certificate offered
14766 // by the server. For consistency with other hash values, this value should be
14767 // formatted as an uppercase hash.
14768 func TLSServerHashMd5(val string) attribute.KeyValue {
14769 return TLSServerHashMd5Key.String(val)
14770 }
14771
14772 // TLSServerHashSha1 returns an attribute KeyValue conforming to the
14773 // "tls.server.hash.sha1" semantic conventions. It represents the certificate
14774 // fingerprint using the SHA1 digest of DER-encoded version of certificate
14775 // offered by the server. For consistency with other hash values, this value
14776 // should be formatted as an uppercase hash.
14777 func TLSServerHashSha1(val string) attribute.KeyValue {
14778 return TLSServerHashSha1Key.String(val)
14779 }
14780
14781 // TLSServerHashSha256 returns an attribute KeyValue conforming to the
14782 // "tls.server.hash.sha256" semantic conventions. It represents the certificate
14783 // fingerprint using the SHA256 digest of DER-encoded version of certificate
14784 // offered by the server. For consistency with other hash values, this value
14785 // should be formatted as an uppercase hash.
14786 func TLSServerHashSha256(val string) attribute.KeyValue {
14787 return TLSServerHashSha256Key.String(val)
14788 }
14789
14790 // TLSServerIssuer returns an attribute KeyValue conforming to the
14791 // "tls.server.issuer" semantic conventions. It represents the distinguished name
14792 // of [subject] of the issuer of the x.509 certificate presented by the client.
14793 //
14794 // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
14795 func TLSServerIssuer(val string) attribute.KeyValue {
14796 return TLSServerIssuerKey.String(val)
14797 }
14798
14799 // TLSServerJa3s returns an attribute KeyValue conforming to the
14800 // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
14801 // servers based on how they perform an SSL/TLS handshake.
14802 func TLSServerJa3s(val string) attribute.KeyValue {
14803 return TLSServerJa3sKey.String(val)
14804 }
14805
14806 // TLSServerNotAfter returns an attribute KeyValue conforming to the
14807 // "tls.server.not_after" semantic conventions. It represents the date/Time
14808 // indicating when server certificate is no longer considered valid.
14809 func TLSServerNotAfter(val string) attribute.KeyValue {
14810 return TLSServerNotAfterKey.String(val)
14811 }
14812
14813 // TLSServerNotBefore returns an attribute KeyValue conforming to the
14814 // "tls.server.not_before" semantic conventions. It represents the date/Time
14815 // indicating when server certificate is first considered valid.
14816 func TLSServerNotBefore(val string) attribute.KeyValue {
14817 return TLSServerNotBeforeKey.String(val)
14818 }
14819
14820 // TLSServerSubject returns an attribute KeyValue conforming to the
14821 // "tls.server.subject" semantic conventions. It represents the distinguished
14822 // name of subject of the x.509 certificate presented by the server.
14823 func TLSServerSubject(val string) attribute.KeyValue {
14824 return TLSServerSubjectKey.String(val)
14825 }
14826
14827 // Enum values for tls.protocol.name
14828 var (
14829 // ssl
14830 // Stability: development
14831 TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
14832 // tls
14833 // Stability: development
14834 TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
14835 )
14836
14837 // Namespace: url
14838 const (
14839 // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
14840 // conventions. It represents the domain extracted from the `url.full`, such as
14841 // "opentelemetry.io".
14842 //
14843 // Type: string
14844 // RequirementLevel: Recommended
14845 // Stability: Development
14846 //
14847 // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
14848 // "[1080:0:0:0:8:800:200C:417A]"
14849 // Note: In some cases a URL may refer to an IP and/or port directly, without a
14850 // domain name. In this case, the IP address would go to the domain field. If
14851 // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
14852 // and `]` characters should also be captured in the domain field.
14853 //
14854 // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
14855 URLDomainKey = attribute.Key("url.domain")
14856
14857 // URLExtensionKey is the attribute Key conforming to the "url.extension"
14858 // semantic conventions. It represents the file extension extracted from the
14859 // `url.full`, excluding the leading dot.
14860 //
14861 // Type: string
14862 // RequirementLevel: Recommended
14863 // Stability: Development
14864 //
14865 // Examples: "png", "gz"
14866 // Note: The file extension is only set if it exists, as not every url has a
14867 // file extension. When the file name has multiple extensions `example.tar.gz`,
14868 // only the last one should be captured `gz`, not `tar.gz`.
14869 URLExtensionKey = attribute.Key("url.extension")
14870
14871 // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
14872 // conventions. It represents the [URI fragment] component.
14873 //
14874 // Type: string
14875 // RequirementLevel: Recommended
14876 // Stability: Stable
14877 //
14878 // Examples: "SemConv"
14879 //
14880 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
14881 URLFragmentKey = attribute.Key("url.fragment")
14882
14883 // URLFullKey is the attribute Key conforming to the "url.full" semantic
14884 // conventions. It represents the absolute URL describing a network resource
14885 // according to [RFC3986].
14886 //
14887 // Type: string
14888 // RequirementLevel: Recommended
14889 // Stability: Stable
14890 //
14891 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
14892 // Note: For network calls, URL usually has
14893 // `scheme://host[:port][path][?query][#fragment]` format, where the fragment
14894 // is not transmitted over HTTP, but if it is known, it SHOULD be included
14895 // nevertheless.
14896 //
14897 // `url.full` MUST NOT contain credentials passed via URL in form of
14898 // `https://username:[email protected]/`.
14899 // In such case username and password SHOULD be redacted and attribute's value
14900 // SHOULD be `https://REDACTED:[email protected]/`.
14901 //
14902 // `url.full` SHOULD capture the absolute URL when it is available (or can be
14903 // reconstructed).
14904 //
14905 // Sensitive content provided in `url.full` SHOULD be scrubbed when
14906 // instrumentations can identify it.
14907 //
14908 //
14909 // Query string values for the following keys SHOULD be redacted by default and
14910 // replaced by the
14911 // value `REDACTED`:
14912 //
14913 // - [`AWSAccessKeyId`]
14914 // - [`Signature`]
14915 // - [`sig`]
14916 // - [`X-Goog-Signature`]
14917 //
14918 // This list is subject to change over time.
14919 //
14920 // When a query string value is redacted, the query string key SHOULD still be
14921 // preserved, e.g.
14922 // `https://www.example.com/path?color=blue&sig=REDACTED`.
14923 //
14924 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
14925 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
14926 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
14927 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
14928 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
14929 URLFullKey = attribute.Key("url.full")
14930
14931 // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
14932 // conventions. It represents the unmodified original URL as seen in the event
14933 // source.
14934 //
14935 // Type: string
14936 // RequirementLevel: Recommended
14937 // Stability: Development
14938 //
14939 // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
14940 // "search?q=OpenTelemetry"
14941 // Note: In network monitoring, the observed URL may be a full URL, whereas in
14942 // access logs, the URL is often just represented as a path. This field is meant
14943 // to represent the URL as it was observed, complete or not.
14944 // `url.original` might contain credentials passed via URL in form of
14945 // `https://username:[email protected]/`. In such case password and
14946 // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
14947 URLOriginalKey = attribute.Key("url.original")
14948
14949 // URLPathKey is the attribute Key conforming to the "url.path" semantic
14950 // conventions. It represents the [URI path] component.
14951 //
14952 // Type: string
14953 // RequirementLevel: Recommended
14954 // Stability: Stable
14955 //
14956 // Examples: "/search"
14957 // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
14958 // instrumentations can identify it.
14959 //
14960 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
14961 URLPathKey = attribute.Key("url.path")
14962
14963 // URLPortKey is the attribute Key conforming to the "url.port" semantic
14964 // conventions. It represents the port extracted from the `url.full`.
14965 //
14966 // Type: int
14967 // RequirementLevel: Recommended
14968 // Stability: Development
14969 //
14970 // Examples: 443
14971 URLPortKey = attribute.Key("url.port")
14972
14973 // URLQueryKey is the attribute Key conforming to the "url.query" semantic
14974 // conventions. It represents the [URI query] component.
14975 //
14976 // Type: string
14977 // RequirementLevel: Recommended
14978 // Stability: Stable
14979 //
14980 // Examples: "q=OpenTelemetry"
14981 // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
14982 // instrumentations can identify it.
14983 //
14984 //
14985 // Query string values for the following keys SHOULD be redacted by default and
14986 // replaced by the value `REDACTED`:
14987 //
14988 // - [`AWSAccessKeyId`]
14989 // - [`Signature`]
14990 // - [`sig`]
14991 // - [`X-Goog-Signature`]
14992 //
14993 // This list is subject to change over time.
14994 //
14995 // When a query string value is redacted, the query string key SHOULD still be
14996 // preserved, e.g.
14997 // `q=OpenTelemetry&sig=REDACTED`.
14998 //
14999 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
15000 // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
15001 // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
15002 // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
15003 // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
15004 URLQueryKey = attribute.Key("url.query")
15005
15006 // URLRegisteredDomainKey is the attribute Key conforming to the
15007 // "url.registered_domain" semantic conventions. It represents the highest
15008 // registered url domain, stripped of the subdomain.
15009 //
15010 // Type: string
15011 // RequirementLevel: Recommended
15012 // Stability: Development
15013 //
15014 // Examples: "example.com", "foo.co.uk"
15015 // Note: This value can be determined precisely with the [public suffix list].
15016 // For example, the registered domain for `foo.example.com` is `example.com`.
15017 // Trying to approximate this by simply taking the last two labels will not work
15018 // well for TLDs such as `co.uk`.
15019 //
15020 // [public suffix list]: https://publicsuffix.org/
15021 URLRegisteredDomainKey = attribute.Key("url.registered_domain")
15022
15023 // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
15024 // conventions. It represents the [URI scheme] component identifying the used
15025 // protocol.
15026 //
15027 // Type: string
15028 // RequirementLevel: Recommended
15029 // Stability: Stable
15030 //
15031 // Examples: "https", "ftp", "telnet"
15032 //
15033 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
15034 URLSchemeKey = attribute.Key("url.scheme")
15035
15036 // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
15037 // semantic conventions. It represents the subdomain portion of a fully
15038 // qualified domain name includes all of the names except the host name under
15039 // the registered_domain. In a partially qualified domain, or if the
15040 // qualification level of the full name cannot be determined, subdomain contains
15041 // all of the names below the registered domain.
15042 //
15043 // Type: string
15044 // RequirementLevel: Recommended
15045 // Stability: Development
15046 //
15047 // Examples: "east", "sub2.sub1"
15048 // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
15049 // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
15050 // subdomain field should contain `sub2.sub1`, with no trailing period.
15051 URLSubdomainKey = attribute.Key("url.subdomain")
15052
15053 // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
15054 // conventions. It represents the low-cardinality template of an
15055 // [absolute path reference].
15056 //
15057 // Type: string
15058 // RequirementLevel: Recommended
15059 // Stability: Development
15060 //
15061 // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
15062 //
15063 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
15064 URLTemplateKey = attribute.Key("url.template")
15065
15066 // URLTopLevelDomainKey is the attribute Key conforming to the
15067 // "url.top_level_domain" semantic conventions. It represents the effective top
15068 // level domain (eTLD), also known as the domain suffix, is the last part of the
15069 // domain name. For example, the top level domain for example.com is `com`.
15070 //
15071 // Type: string
15072 // RequirementLevel: Recommended
15073 // Stability: Development
15074 //
15075 // Examples: "com", "co.uk"
15076 // Note: This value can be determined precisely with the [public suffix list].
15077 //
15078 // [public suffix list]: https://publicsuffix.org/
15079 URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
15080 )
15081
15082 // URLDomain returns an attribute KeyValue conforming to the "url.domain"
15083 // semantic conventions. It represents the domain extracted from the `url.full`,
15084 // such as "opentelemetry.io".
15085 func URLDomain(val string) attribute.KeyValue {
15086 return URLDomainKey.String(val)
15087 }
15088
15089 // URLExtension returns an attribute KeyValue conforming to the "url.extension"
15090 // semantic conventions. It represents the file extension extracted from the
15091 // `url.full`, excluding the leading dot.
15092 func URLExtension(val string) attribute.KeyValue {
15093 return URLExtensionKey.String(val)
15094 }
15095
15096 // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
15097 // semantic conventions. It represents the [URI fragment] component.
15098 //
15099 // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
15100 func URLFragment(val string) attribute.KeyValue {
15101 return URLFragmentKey.String(val)
15102 }
15103
15104 // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
15105 // conventions. It represents the absolute URL describing a network resource
15106 // according to [RFC3986].
15107 //
15108 // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
15109 func URLFull(val string) attribute.KeyValue {
15110 return URLFullKey.String(val)
15111 }
15112
15113 // URLOriginal returns an attribute KeyValue conforming to the "url.original"
15114 // semantic conventions. It represents the unmodified original URL as seen in the
15115 // event source.
15116 func URLOriginal(val string) attribute.KeyValue {
15117 return URLOriginalKey.String(val)
15118 }
15119
15120 // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
15121 // conventions. It represents the [URI path] component.
15122 //
15123 // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
15124 func URLPath(val string) attribute.KeyValue {
15125 return URLPathKey.String(val)
15126 }
15127
15128 // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
15129 // conventions. It represents the port extracted from the `url.full`.
15130 func URLPort(val int) attribute.KeyValue {
15131 return URLPortKey.Int(val)
15132 }
15133
15134 // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
15135 // conventions. It represents the [URI query] component.
15136 //
15137 // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
15138 func URLQuery(val string) attribute.KeyValue {
15139 return URLQueryKey.String(val)
15140 }
15141
15142 // URLRegisteredDomain returns an attribute KeyValue conforming to the
15143 // "url.registered_domain" semantic conventions. It represents the highest
15144 // registered url domain, stripped of the subdomain.
15145 func URLRegisteredDomain(val string) attribute.KeyValue {
15146 return URLRegisteredDomainKey.String(val)
15147 }
15148
15149 // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
15150 // semantic conventions. It represents the [URI scheme] component identifying the
15151 // used protocol.
15152 //
15153 // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
15154 func URLScheme(val string) attribute.KeyValue {
15155 return URLSchemeKey.String(val)
15156 }
15157
15158 // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
15159 // semantic conventions. It represents the subdomain portion of a fully qualified
15160 // domain name includes all of the names except the host name under the
15161 // registered_domain. In a partially qualified domain, or if the qualification
15162 // level of the full name cannot be determined, subdomain contains all of the
15163 // names below the registered domain.
15164 func URLSubdomain(val string) attribute.KeyValue {
15165 return URLSubdomainKey.String(val)
15166 }
15167
15168 // URLTemplate returns an attribute KeyValue conforming to the "url.template"
15169 // semantic conventions. It represents the low-cardinality template of an
15170 // [absolute path reference].
15171 //
15172 // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
15173 func URLTemplate(val string) attribute.KeyValue {
15174 return URLTemplateKey.String(val)
15175 }
15176
15177 // URLTopLevelDomain returns an attribute KeyValue conforming to the
15178 // "url.top_level_domain" semantic conventions. It represents the effective top
15179 // level domain (eTLD), also known as the domain suffix, is the last part of the
15180 // domain name. For example, the top level domain for example.com is `com`.
15181 func URLTopLevelDomain(val string) attribute.KeyValue {
15182 return URLTopLevelDomainKey.String(val)
15183 }
15184
15185 // Namespace: user
15186 const (
15187 // UserEmailKey is the attribute Key conforming to the "user.email" semantic
15188 // conventions. It represents the user email address.
15189 //
15190 // Type: string
15191 // RequirementLevel: Recommended
15192 // Stability: Development
15193 //
15194 // Examples: "[email protected]"
15195 UserEmailKey = attribute.Key("user.email")
15196
15197 // UserFullNameKey is the attribute Key conforming to the "user.full_name"
15198 // semantic conventions. It represents the user's full name.
15199 //
15200 // Type: string
15201 // RequirementLevel: Recommended
15202 // Stability: Development
15203 //
15204 // Examples: "Albert Einstein"
15205 UserFullNameKey = attribute.Key("user.full_name")
15206
15207 // UserHashKey is the attribute Key conforming to the "user.hash" semantic
15208 // conventions. It represents the unique user hash to correlate information for
15209 // a user in anonymized form.
15210 //
15211 // Type: string
15212 // RequirementLevel: Recommended
15213 // Stability: Development
15214 //
15215 // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
15216 // Note: Useful if `user.id` or `user.name` contain confidential information and
15217 // cannot be used.
15218 UserHashKey = attribute.Key("user.hash")
15219
15220 // UserIDKey is the attribute Key conforming to the "user.id" semantic
15221 // conventions. It represents the unique identifier of the user.
15222 //
15223 // Type: string
15224 // RequirementLevel: Recommended
15225 // Stability: Development
15226 //
15227 // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
15228 UserIDKey = attribute.Key("user.id")
15229
15230 // UserNameKey is the attribute Key conforming to the "user.name" semantic
15231 // conventions. It represents the short name or login/username of the user.
15232 //
15233 // Type: string
15234 // RequirementLevel: Recommended
15235 // Stability: Development
15236 //
15237 // Examples: "a.einstein"
15238 UserNameKey = attribute.Key("user.name")
15239
15240 // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
15241 // conventions. It represents the array of user roles at the time of the event.
15242 //
15243 // Type: string[]
15244 // RequirementLevel: Recommended
15245 // Stability: Development
15246 //
15247 // Examples: "admin", "reporting_user"
15248 UserRolesKey = attribute.Key("user.roles")
15249 )
15250
15251 // UserEmail returns an attribute KeyValue conforming to the "user.email"
15252 // semantic conventions. It represents the user email address.
15253 func UserEmail(val string) attribute.KeyValue {
15254 return UserEmailKey.String(val)
15255 }
15256
15257 // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
15258 // semantic conventions. It represents the user's full name.
15259 func UserFullName(val string) attribute.KeyValue {
15260 return UserFullNameKey.String(val)
15261 }
15262
15263 // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
15264 // conventions. It represents the unique user hash to correlate information for a
15265 // user in anonymized form.
15266 func UserHash(val string) attribute.KeyValue {
15267 return UserHashKey.String(val)
15268 }
15269
15270 // UserID returns an attribute KeyValue conforming to the "user.id" semantic
15271 // conventions. It represents the unique identifier of the user.
15272 func UserID(val string) attribute.KeyValue {
15273 return UserIDKey.String(val)
15274 }
15275
15276 // UserName returns an attribute KeyValue conforming to the "user.name" semantic
15277 // conventions. It represents the short name or login/username of the user.
15278 func UserName(val string) attribute.KeyValue {
15279 return UserNameKey.String(val)
15280 }
15281
15282 // UserRoles returns an attribute KeyValue conforming to the "user.roles"
15283 // semantic conventions. It represents the array of user roles at the time of the
15284 // event.
15285 func UserRoles(val ...string) attribute.KeyValue {
15286 return UserRolesKey.StringSlice(val)
15287 }
15288
15289 // Namespace: user_agent
15290 const (
15291 // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
15292 // semantic conventions. It represents the name of the user-agent extracted from
15293 // original. Usually refers to the browser's name.
15294 //
15295 // Type: string
15296 // RequirementLevel: Recommended
15297 // Stability: Development
15298 //
15299 // Examples: "Safari", "YourApp"
15300 // Note: [Example] of extracting browser's name from original string. In the
15301 // case of using a user-agent for non-browser products, such as microservices
15302 // with multiple names/versions inside the `user_agent.original`, the most
15303 // significant name SHOULD be selected. In such a scenario it should align with
15304 // `user_agent.version`
15305 //
15306 // [Example]: https://www.whatsmyua.info
15307 UserAgentNameKey = attribute.Key("user_agent.name")
15308
15309 // UserAgentOriginalKey is the attribute Key conforming to the
15310 // "user_agent.original" semantic conventions. It represents the value of the
15311 // [HTTP User-Agent] header sent by the client.
15312 //
15313 // Type: string
15314 // RequirementLevel: Recommended
15315 // Stability: Stable
15316 //
15317 // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
15318 // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
15319 // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
15320 // grpc-java-okhttp/1.27.2"
15321 //
15322 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
15323 UserAgentOriginalKey = attribute.Key("user_agent.original")
15324
15325 // UserAgentOSNameKey is the attribute Key conforming to the
15326 // "user_agent.os.name" semantic conventions. It represents the human readable
15327 // operating system name.
15328 //
15329 // Type: string
15330 // RequirementLevel: Recommended
15331 // Stability: Development
15332 //
15333 // Examples: "iOS", "Android", "Ubuntu"
15334 // Note: For mapping user agent strings to OS names, libraries such as
15335 // [ua-parser] can be utilized.
15336 //
15337 // [ua-parser]: https://github.com/ua-parser
15338 UserAgentOSNameKey = attribute.Key("user_agent.os.name")
15339
15340 // UserAgentOSVersionKey is the attribute Key conforming to the
15341 // "user_agent.os.version" semantic conventions. It represents the version
15342 // string of the operating system as defined in [Version Attributes].
15343 //
15344 // Type: string
15345 // RequirementLevel: Recommended
15346 // Stability: Development
15347 //
15348 // Examples: "14.2.1", "18.04.1"
15349 // Note: For mapping user agent strings to OS versions, libraries such as
15350 // [ua-parser] can be utilized.
15351 //
15352 // [Version Attributes]: /docs/resource/README.md#version-attributes
15353 // [ua-parser]: https://github.com/ua-parser
15354 UserAgentOSVersionKey = attribute.Key("user_agent.os.version")
15355
15356 // UserAgentSyntheticTypeKey is the attribute Key conforming to the
15357 // "user_agent.synthetic.type" semantic conventions. It represents the specifies
15358 // the category of synthetic traffic, such as tests or bots.
15359 //
15360 // Type: Enum
15361 // RequirementLevel: Recommended
15362 // Stability: Development
15363 //
15364 // Examples:
15365 // Note: This attribute MAY be derived from the contents of the
15366 // `user_agent.original` attribute. Components that populate the attribute are
15367 // responsible for determining what they consider to be synthetic bot or test
15368 // traffic. This attribute can either be set for self-identification purposes,
15369 // or on telemetry detected to be generated as a result of a synthetic request.
15370 // This attribute is useful for distinguishing between genuine client traffic
15371 // and synthetic traffic generated by bots or tests.
15372 UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type")
15373
15374 // UserAgentVersionKey is the attribute Key conforming to the
15375 // "user_agent.version" semantic conventions. It represents the version of the
15376 // user-agent extracted from original. Usually refers to the browser's version.
15377 //
15378 // Type: string
15379 // RequirementLevel: Recommended
15380 // Stability: Development
15381 //
15382 // Examples: "14.1.2", "1.0.0"
15383 // Note: [Example] of extracting browser's version from original string. In the
15384 // case of using a user-agent for non-browser products, such as microservices
15385 // with multiple names/versions inside the `user_agent.original`, the most
15386 // significant version SHOULD be selected. In such a scenario it should align
15387 // with `user_agent.name`
15388 //
15389 // [Example]: https://www.whatsmyua.info
15390 UserAgentVersionKey = attribute.Key("user_agent.version")
15391 )
15392
15393 // UserAgentName returns an attribute KeyValue conforming to the
15394 // "user_agent.name" semantic conventions. It represents the name of the
15395 // user-agent extracted from original. Usually refers to the browser's name.
15396 func UserAgentName(val string) attribute.KeyValue {
15397 return UserAgentNameKey.String(val)
15398 }
15399
15400 // UserAgentOriginal returns an attribute KeyValue conforming to the
15401 // "user_agent.original" semantic conventions. It represents the value of the
15402 // [HTTP User-Agent] header sent by the client.
15403 //
15404 // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
15405 func UserAgentOriginal(val string) attribute.KeyValue {
15406 return UserAgentOriginalKey.String(val)
15407 }
15408
15409 // UserAgentOSName returns an attribute KeyValue conforming to the
15410 // "user_agent.os.name" semantic conventions. It represents the human readable
15411 // operating system name.
15412 func UserAgentOSName(val string) attribute.KeyValue {
15413 return UserAgentOSNameKey.String(val)
15414 }
15415
15416 // UserAgentOSVersion returns an attribute KeyValue conforming to the
15417 // "user_agent.os.version" semantic conventions. It represents the version string
15418 // of the operating system as defined in [Version Attributes].
15419 //
15420 // [Version Attributes]: /docs/resource/README.md#version-attributes
15421 func UserAgentOSVersion(val string) attribute.KeyValue {
15422 return UserAgentOSVersionKey.String(val)
15423 }
15424
15425 // UserAgentVersion returns an attribute KeyValue conforming to the
15426 // "user_agent.version" semantic conventions. It represents the version of the
15427 // user-agent extracted from original. Usually refers to the browser's version.
15428 func UserAgentVersion(val string) attribute.KeyValue {
15429 return UserAgentVersionKey.String(val)
15430 }
15431
15432 // Enum values for user_agent.synthetic.type
15433 var (
15434 // Bot source.
15435 // Stability: development
15436 UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot")
15437 // Synthetic test source.
15438 // Stability: development
15439 UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test")
15440 )
15441
15442 // Namespace: vcs
15443 const (
15444 // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id"
15445 // semantic conventions. It represents the ID of the change (pull request/merge
15446 // request/changelist) if applicable. This is usually a unique (within
15447 // repository) identifier generated by the VCS system.
15448 //
15449 // Type: string
15450 // RequirementLevel: Recommended
15451 // Stability: Development
15452 //
15453 // Examples: "123"
15454 VCSChangeIDKey = attribute.Key("vcs.change.id")
15455
15456 // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state"
15457 // semantic conventions. It represents the state of the change (pull
15458 // request/merge request/changelist).
15459 //
15460 // Type: Enum
15461 // RequirementLevel: Recommended
15462 // Stability: Development
15463 //
15464 // Examples: "open", "closed", "merged"
15465 VCSChangeStateKey = attribute.Key("vcs.change.state")
15466
15467 // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title"
15468 // semantic conventions. It represents the human readable title of the change
15469 // (pull request/merge request/changelist). This title is often a brief summary
15470 // of the change and may get merged in to a ref as the commit summary.
15471 //
15472 // Type: string
15473 // RequirementLevel: Recommended
15474 // Stability: Development
15475 //
15476 // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
15477 // dependency"
15478 VCSChangeTitleKey = attribute.Key("vcs.change.title")
15479
15480 // VCSLineChangeTypeKey is the attribute Key conforming to the
15481 // "vcs.line_change.type" semantic conventions. It represents the type of line
15482 // change being measured on a branch or change.
15483 //
15484 // Type: Enum
15485 // RequirementLevel: Recommended
15486 // Stability: Development
15487 //
15488 // Examples: "added", "removed"
15489 VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type")
15490
15491 // VCSOwnerNameKey is the attribute Key conforming to the "vcs.owner.name"
15492 // semantic conventions. It represents the group owner within the version
15493 // control system.
15494 //
15495 // Type: string
15496 // RequirementLevel: Recommended
15497 // Stability: Development
15498 //
15499 // Examples: "my-org", "myteam", "business-unit"
15500 VCSOwnerNameKey = attribute.Key("vcs.owner.name")
15501
15502 // VCSProviderNameKey is the attribute Key conforming to the "vcs.provider.name"
15503 // semantic conventions. It represents the name of the version control system
15504 // provider.
15505 //
15506 // Type: Enum
15507 // RequirementLevel: Recommended
15508 // Stability: Development
15509 //
15510 // Examples: "github", "gitlab", "gitea", "bitbucket"
15511 VCSProviderNameKey = attribute.Key("vcs.provider.name")
15512
15513 // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name"
15514 // semantic conventions. It represents the name of the [reference] such as
15515 // **branch** or **tag** in the repository.
15516 //
15517 // Type: string
15518 // RequirementLevel: Recommended
15519 // Stability: Development
15520 //
15521 // Examples: "my-feature-branch", "tag-1-test"
15522 // Note: `base` refers to the starting point of a change. For example, `main`
15523 // would be the base reference of type branch if you've created a new
15524 // reference of type branch from it and created new commits.
15525 //
15526 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
15527 VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name")
15528
15529 // VCSRefBaseRevisionKey is the attribute Key conforming to the
15530 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
15531 // literally [revised version], The revision most often refers to a commit
15532 // object in Git, or a revision number in SVN.
15533 //
15534 // Type: string
15535 // RequirementLevel: Recommended
15536 // Stability: Development
15537 //
15538 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
15539 // "main", "123", "HEAD"
15540 // Note: `base` refers to the starting point of a change. For example, `main`
15541 // would be the base reference of type branch if you've created a new
15542 // reference of type branch from it and created new commits. The
15543 // revision can be a full [hash value (see
15544 // glossary)],
15545 // of the recorded change to a ref within a repository pointing to a
15546 // commit [commit] object. It does
15547 // not necessarily have to be a hash; it can simply define a [revision
15548 // number]
15549 // which is an integer that is monotonically increasing. In cases where
15550 // it is identical to the `ref.base.name`, it SHOULD still be included.
15551 // It is up to the implementer to decide which value to set as the
15552 // revision based on the VCS system and situational context.
15553 //
15554 // [revised version]: https://www.merriam-webster.com/dictionary/revision
15555 // [hash value (see
15556 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
15557 // [commit]: https://git-scm.com/docs/git-commit
15558 // [revision
15559 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
15560 VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision")
15561
15562 // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type"
15563 // semantic conventions. It represents the type of the [reference] in the
15564 // repository.
15565 //
15566 // Type: Enum
15567 // RequirementLevel: Recommended
15568 // Stability: Development
15569 //
15570 // Examples: "branch", "tag"
15571 // Note: `base` refers to the starting point of a change. For example, `main`
15572 // would be the base reference of type branch if you've created a new
15573 // reference of type branch from it and created new commits.
15574 //
15575 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
15576 VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type")
15577
15578 // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name"
15579 // semantic conventions. It represents the name of the [reference] such as
15580 // **branch** or **tag** in the repository.
15581 //
15582 // Type: string
15583 // RequirementLevel: Recommended
15584 // Stability: Development
15585 //
15586 // Examples: "my-feature-branch", "tag-1-test"
15587 // Note: `head` refers to where you are right now; the current reference at a
15588 // given time.
15589 //
15590 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
15591 VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name")
15592
15593 // VCSRefHeadRevisionKey is the attribute Key conforming to the
15594 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
15595 // literally [revised version], The revision most often refers to a commit
15596 // object in Git, or a revision number in SVN.
15597 //
15598 // Type: string
15599 // RequirementLevel: Recommended
15600 // Stability: Development
15601 //
15602 // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
15603 // "main", "123", "HEAD"
15604 // Note: `head` refers to where you are right now; the current reference at a
15605 // given time.The revision can be a full [hash value (see
15606 // glossary)],
15607 // of the recorded change to a ref within a repository pointing to a
15608 // commit [commit] object. It does
15609 // not necessarily have to be a hash; it can simply define a [revision
15610 // number]
15611 // which is an integer that is monotonically increasing. In cases where
15612 // it is identical to the `ref.head.name`, it SHOULD still be included.
15613 // It is up to the implementer to decide which value to set as the
15614 // revision based on the VCS system and situational context.
15615 //
15616 // [revised version]: https://www.merriam-webster.com/dictionary/revision
15617 // [hash value (see
15618 // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
15619 // [commit]: https://git-scm.com/docs/git-commit
15620 // [revision
15621 // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
15622 VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision")
15623
15624 // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type"
15625 // semantic conventions. It represents the type of the [reference] in the
15626 // repository.
15627 //
15628 // Type: Enum
15629 // RequirementLevel: Recommended
15630 // Stability: Development
15631 //
15632 // Examples: "branch", "tag"
15633 // Note: `head` refers to where you are right now; the current reference at a
15634 // given time.
15635 //
15636 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
15637 VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type")
15638
15639 // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic
15640 // conventions. It represents the type of the [reference] in the repository.
15641 //
15642 // Type: Enum
15643 // RequirementLevel: Recommended
15644 // Stability: Development
15645 //
15646 // Examples: "branch", "tag"
15647 //
15648 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
15649 VCSRefTypeKey = attribute.Key("vcs.ref.type")
15650
15651 // VCSRepositoryNameKey is the attribute Key conforming to the
15652 // "vcs.repository.name" semantic conventions. It represents the human readable
15653 // name of the repository. It SHOULD NOT include any additional identifier like
15654 // Group/SubGroup in GitLab or organization in GitHub.
15655 //
15656 // Type: string
15657 // RequirementLevel: Recommended
15658 // Stability: Development
15659 //
15660 // Examples: "semantic-conventions", "my-cool-repo"
15661 // Note: Due to it only being the name, it can clash with forks of the same
15662 // repository if collecting telemetry across multiple orgs or groups in
15663 // the same backends.
15664 VCSRepositoryNameKey = attribute.Key("vcs.repository.name")
15665
15666 // VCSRepositoryURLFullKey is the attribute Key conforming to the
15667 // "vcs.repository.url.full" semantic conventions. It represents the
15668 // [canonical URL] of the repository providing the complete HTTP(S) address in
15669 // order to locate and identify the repository through a browser.
15670 //
15671 // Type: string
15672 // RequirementLevel: Recommended
15673 // Stability: Development
15674 //
15675 // Examples:
15676 // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
15677 // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
15678 // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include
15679 // the `.git` extension.
15680 //
15681 // [canonical URL]: https://support.google.com/webmasters/answer/10347851
15682 VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
15683
15684 // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the
15685 // "vcs.revision_delta.direction" semantic conventions. It represents the type
15686 // of revision comparison.
15687 //
15688 // Type: Enum
15689 // RequirementLevel: Recommended
15690 // Stability: Development
15691 //
15692 // Examples: "ahead", "behind"
15693 VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction")
15694 )
15695
15696 // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id"
15697 // semantic conventions. It represents the ID of the change (pull request/merge
15698 // request/changelist) if applicable. This is usually a unique (within
15699 // repository) identifier generated by the VCS system.
15700 func VCSChangeID(val string) attribute.KeyValue {
15701 return VCSChangeIDKey.String(val)
15702 }
15703
15704 // VCSChangeTitle returns an attribute KeyValue conforming to the
15705 // "vcs.change.title" semantic conventions. It represents the human readable
15706 // title of the change (pull request/merge request/changelist). This title is
15707 // often a brief summary of the change and may get merged in to a ref as the
15708 // commit summary.
15709 func VCSChangeTitle(val string) attribute.KeyValue {
15710 return VCSChangeTitleKey.String(val)
15711 }
15712
15713 // VCSOwnerName returns an attribute KeyValue conforming to the "vcs.owner.name"
15714 // semantic conventions. It represents the group owner within the version control
15715 // system.
15716 func VCSOwnerName(val string) attribute.KeyValue {
15717 return VCSOwnerNameKey.String(val)
15718 }
15719
15720 // VCSRefBaseName returns an attribute KeyValue conforming to the
15721 // "vcs.ref.base.name" semantic conventions. It represents the name of the
15722 // [reference] such as **branch** or **tag** in the repository.
15723 //
15724 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
15725 func VCSRefBaseName(val string) attribute.KeyValue {
15726 return VCSRefBaseNameKey.String(val)
15727 }
15728
15729 // VCSRefBaseRevision returns an attribute KeyValue conforming to the
15730 // "vcs.ref.base.revision" semantic conventions. It represents the revision,
15731 // literally [revised version], The revision most often refers to a commit object
15732 // in Git, or a revision number in SVN.
15733 //
15734 // [revised version]: https://www.merriam-webster.com/dictionary/revision
15735 func VCSRefBaseRevision(val string) attribute.KeyValue {
15736 return VCSRefBaseRevisionKey.String(val)
15737 }
15738
15739 // VCSRefHeadName returns an attribute KeyValue conforming to the
15740 // "vcs.ref.head.name" semantic conventions. It represents the name of the
15741 // [reference] such as **branch** or **tag** in the repository.
15742 //
15743 // [reference]: https://git-scm.com/docs/gitglossary#def_ref
15744 func VCSRefHeadName(val string) attribute.KeyValue {
15745 return VCSRefHeadNameKey.String(val)
15746 }
15747
15748 // VCSRefHeadRevision returns an attribute KeyValue conforming to the
15749 // "vcs.ref.head.revision" semantic conventions. It represents the revision,
15750 // literally [revised version], The revision most often refers to a commit object
15751 // in Git, or a revision number in SVN.
15752 //
15753 // [revised version]: https://www.merriam-webster.com/dictionary/revision
15754 func VCSRefHeadRevision(val string) attribute.KeyValue {
15755 return VCSRefHeadRevisionKey.String(val)
15756 }
15757
15758 // VCSRepositoryName returns an attribute KeyValue conforming to the
15759 // "vcs.repository.name" semantic conventions. It represents the human readable
15760 // name of the repository. It SHOULD NOT include any additional identifier like
15761 // Group/SubGroup in GitLab or organization in GitHub.
15762 func VCSRepositoryName(val string) attribute.KeyValue {
15763 return VCSRepositoryNameKey.String(val)
15764 }
15765
15766 // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
15767 // "vcs.repository.url.full" semantic conventions. It represents the
15768 // [canonical URL] of the repository providing the complete HTTP(S) address in
15769 // order to locate and identify the repository through a browser.
15770 //
15771 // [canonical URL]: https://support.google.com/webmasters/answer/10347851
15772 func VCSRepositoryURLFull(val string) attribute.KeyValue {
15773 return VCSRepositoryURLFullKey.String(val)
15774 }
15775
15776 // Enum values for vcs.change.state
15777 var (
15778 // Open means the change is currently active and under review. It hasn't been
15779 // merged into the target branch yet, and it's still possible to make changes or
15780 // add comments.
15781 // Stability: development
15782 VCSChangeStateOpen = VCSChangeStateKey.String("open")
15783 // WIP (work-in-progress, draft) means the change is still in progress and not
15784 // yet ready for a full review. It might still undergo significant changes.
15785 // Stability: development
15786 VCSChangeStateWip = VCSChangeStateKey.String("wip")
15787 // Closed means the merge request has been closed without merging. This can
15788 // happen for various reasons, such as the changes being deemed unnecessary, the
15789 // issue being resolved in another way, or the author deciding to withdraw the
15790 // request.
15791 // Stability: development
15792 VCSChangeStateClosed = VCSChangeStateKey.String("closed")
15793 // Merged indicates that the change has been successfully integrated into the
15794 // target codebase.
15795 // Stability: development
15796 VCSChangeStateMerged = VCSChangeStateKey.String("merged")
15797 )
15798
15799 // Enum values for vcs.line_change.type
15800 var (
15801 // How many lines were added.
15802 // Stability: development
15803 VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added")
15804 // How many lines were removed.
15805 // Stability: development
15806 VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed")
15807 )
15808
15809 // Enum values for vcs.provider.name
15810 var (
15811 // [GitHub]
15812 // Stability: development
15813 //
15814 // [GitHub]: https://github.com
15815 VCSProviderNameGithub = VCSProviderNameKey.String("github")
15816 // [GitLab]
15817 // Stability: development
15818 //
15819 // [GitLab]: https://gitlab.com
15820 VCSProviderNameGitlab = VCSProviderNameKey.String("gitlab")
15821 // [Gitea]
15822 // Stability: development
15823 //
15824 // [Gitea]: https://gitea.io
15825 VCSProviderNameGitea = VCSProviderNameKey.String("gitea")
15826 // [Bitbucket]
15827 // Stability: development
15828 //
15829 // [Bitbucket]: https://bitbucket.org
15830 VCSProviderNameBitbucket = VCSProviderNameKey.String("bitbucket")
15831 )
15832
15833 // Enum values for vcs.ref.base.type
15834 var (
15835 // [branch]
15836 // Stability: development
15837 //
15838 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
15839 VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch")
15840 // [tag]
15841 // Stability: development
15842 //
15843 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
15844 VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag")
15845 )
15846
15847 // Enum values for vcs.ref.head.type
15848 var (
15849 // [branch]
15850 // Stability: development
15851 //
15852 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
15853 VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch")
15854 // [tag]
15855 // Stability: development
15856 //
15857 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
15858 VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag")
15859 )
15860
15861 // Enum values for vcs.ref.type
15862 var (
15863 // [branch]
15864 // Stability: development
15865 //
15866 // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
15867 VCSRefTypeBranch = VCSRefTypeKey.String("branch")
15868 // [tag]
15869 // Stability: development
15870 //
15871 // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
15872 VCSRefTypeTag = VCSRefTypeKey.String("tag")
15873 )
15874
15875 // Enum values for vcs.revision_delta.direction
15876 var (
15877 // How many revisions the change is behind the target ref.
15878 // Stability: development
15879 VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind")
15880 // How many revisions the change is ahead of the target ref.
15881 // Stability: development
15882 VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead")
15883 )
15884
15885 // Namespace: webengine
15886 const (
15887 // WebEngineDescriptionKey is the attribute Key conforming to the
15888 // "webengine.description" semantic conventions. It represents the additional
15889 // description of the web engine (e.g. detailed version and edition
15890 // information).
15891 //
15892 // Type: string
15893 // RequirementLevel: Recommended
15894 // Stability: Development
15895 //
15896 // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
15897 // 2.2.2.Final"
15898 WebEngineDescriptionKey = attribute.Key("webengine.description")
15899
15900 // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
15901 // semantic conventions. It represents the name of the web engine.
15902 //
15903 // Type: string
15904 // RequirementLevel: Recommended
15905 // Stability: Development
15906 //
15907 // Examples: "WildFly"
15908 WebEngineNameKey = attribute.Key("webengine.name")
15909
15910 // WebEngineVersionKey is the attribute Key conforming to the
15911 // "webengine.version" semantic conventions. It represents the version of the
15912 // web engine.
15913 //
15914 // Type: string
15915 // RequirementLevel: Recommended
15916 // Stability: Development
15917 //
15918 // Examples: "21.0.0"
15919 WebEngineVersionKey = attribute.Key("webengine.version")
15920 )
15921
15922 // WebEngineDescription returns an attribute KeyValue conforming to the
15923 // "webengine.description" semantic conventions. It represents the additional
15924 // description of the web engine (e.g. detailed version and edition information).
15925 func WebEngineDescription(val string) attribute.KeyValue {
15926 return WebEngineDescriptionKey.String(val)
15927 }
15928
15929 // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
15930 // semantic conventions. It represents the name of the web engine.
15931 func WebEngineName(val string) attribute.KeyValue {
15932 return WebEngineNameKey.String(val)
15933 }
15934
15935 // WebEngineVersion returns an attribute KeyValue conforming to the
15936 // "webengine.version" semantic conventions. It represents the version of the web
15937 // engine.
15938 func WebEngineVersion(val string) attribute.KeyValue {
15939 return WebEngineVersionKey.String(val)
15940 }
15941
15942 // Namespace: zos
15943 const (
15944 // ZOSSmfIDKey is the attribute Key conforming to the "zos.smf.id" semantic
15945 // conventions. It represents the System Management Facility (SMF) Identifier
15946 // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
15947 // and is used for system and performance analysis.
15948 //
15949 // Type: string
15950 // RequirementLevel: Recommended
15951 // Stability: Development
15952 //
15953 // Examples: "SYS1"
15954 ZOSSmfIDKey = attribute.Key("zos.smf.id")
15955
15956 // ZOSSysplexNameKey is the attribute Key conforming to the "zos.sysplex.name"
15957 // semantic conventions. It represents the name of the SYSPLEX to which the z/OS
15958 // system belongs too.
15959 //
15960 // Type: string
15961 // RequirementLevel: Recommended
15962 // Stability: Development
15963 //
15964 // Examples: "SYSPLEX1"
15965 ZOSSysplexNameKey = attribute.Key("zos.sysplex.name")
15966 )
15967
15968 // ZOSSmfID returns an attribute KeyValue conforming to the "zos.smf.id" semantic
15969 // conventions. It represents the System Management Facility (SMF) Identifier
15970 // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
15971 // and is used for system and performance analysis.
15972 func ZOSSmfID(val string) attribute.KeyValue {
15973 return ZOSSmfIDKey.String(val)
15974 }
15975
15976 // ZOSSysplexName returns an attribute KeyValue conforming to the
15977 // "zos.sysplex.name" semantic conventions. It represents the name of the SYSPLEX
15978 // to which the z/OS system belongs too.
15979 func ZOSSysplexName(val string) attribute.KeyValue {
15980 return ZOSSysplexNameKey.String(val)
15981 }